/* Copied from cardee-eventflow-admin/EFA-EFP-design-system @ f4d5536 (tokens/colors.css, typography.css, spacing.css, base.css).
   Do not edit here without updating the source. */

/* ============================================================
   Yekwa / EventFlow — Color tokens
   Base palette (raw ramps) + semantic aliases (light + dark).
   Brand derived from the Yekwa wordmark: purple #935ED2, blue #17A4F6.
   ============================================================ */

:root {
  /* ---- Brand: Purple (primary) ---- */
  --purple-50:  #F4EEFB;
  --purple-100: #E7DBF7;
  --purple-200: #D0BCEF;
  --purple-300: #B79AE6;
  --purple-400: #A57BDC;
  --purple-500: #935ED2;   /* Yekwa brand purple */
  --purple-600: #7E45C2;
  --purple-700: #6935A3;
  --purple-800: #522A7E;
  --purple-900: #3B1E5A;

  /* ---- Accent: Blue (the apostrophe in the wordmark) ---- */
  --blue-50:  #E6F5FE;
  --blue-100: #C7E9FD;
  --blue-200: #92D3FB;
  --blue-300: #58BCF9;
  --blue-400: #17A4F6;    /* Yekwa accent blue */
  --blue-500: #0B8FE0;
  --blue-600: #0A76BC;
  --blue-700: #0B5E95;
  --blue-800: #0C4970;
  --blue-900: #0A3550;

  /* ---- Neutrals: cool slate ---- */
  --gray-0:   #FFFFFF;
  --gray-50:  #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #E1E5EC;
  --gray-300: #CBD2DD;
  --gray-400: #A5AEBE;
  --gray-500: #7C8798;
  --gray-600: #5A6474;
  --gray-700: #414A58;
  --gray-800: #2A313C;
  --gray-900: #1A1F27;
  --gray-950: #11151B;

  /* ---- Semantic status ramps ---- */
  --green-50:  #E7F7EE;  --green-100: #C6ECD5; --green-500: #16A34A; --green-600: #12833B; --green-700: #0E6A30;
  --amber-50:  #FEF4E2;  --amber-100: #FCE6BD; --amber-500: #F59E0B; --amber-600: #D6870A; --amber-700: #A66607;
  --red-50:    #FDE9EE;  --red-100:   #F9C8D4; --red-500:   #E11D48; --red-600:   #C01440; --red-700:   #9C0F34;

  /* ============================================================
     SEMANTIC ALIASES — Light theme (default)
     ============================================================ */

  /* Brand */
  --brand:            var(--purple-500);
  --brand-hover:      var(--purple-600);
  --brand-active:     var(--purple-700);
  --brand-subtle:     var(--purple-50);
  --brand-subtle-fg:  var(--purple-700);
  --accent:           var(--blue-400);
  --accent-hover:     var(--blue-500);
  --accent-subtle:    var(--blue-50);
  --accent-subtle-fg: var(--blue-700);

  /* Surfaces */
  --bg-page:        var(--gray-50);
  --surface-card:   var(--gray-0);
  --surface-raised: var(--gray-0);
  --surface-sunken: var(--gray-100);
  --surface-input:  var(--gray-0);
  --surface-hover:  var(--gray-50);

  /* Text */
  --text-strong:  var(--gray-900);
  --text-body:    var(--gray-700);
  --text-muted:   var(--gray-500);
  --text-faint:   var(--gray-400);
  --text-inverse: var(--gray-0);
  --text-brand:   var(--purple-600);
  --text-link:    var(--blue-600);

  /* Borders & rings */
  --border:        var(--gray-200);
  --border-strong: var(--gray-300);
  --border-brand:  var(--purple-500);
  --focus-ring:    rgba(147, 94, 210, 0.35);

  /* Status (fg = text/icon on subtle bg) */
  --success:       var(--green-500);
  --success-bg:    var(--green-50);
  --success-fg:    var(--green-700);
  --warning:       var(--amber-500);
  --warning-bg:    var(--amber-50);
  --warning-fg:    var(--amber-700);
  --danger:        var(--red-500);
  --danger-bg:     var(--red-50);
  --danger-fg:     var(--red-700);
  --info:          var(--blue-400);
  --info-bg:       var(--blue-50);
  --info-fg:       var(--blue-700);

  /* Money / pricing clarity */
  --price-line:    var(--text-body);   /* ticket price line items */
  --price-fee:     var(--text-muted);  /* service fee */
  --price-tax:     var(--text-muted);  /* tax */
  --price-total:   var(--text-strong); /* grand total, emphasized */
  --price-free:    var(--green-600);   /* "Free" / $0 */
  --price-refund:  var(--red-600);     /* refunds / negatives */

  color-scheme: light;
}

/* ============================================================
   SEMANTIC ALIASES — Dark theme
   EFP ships a first-class dark mode; EFA supports it too.
   Apply via <html data-theme="dark"> (or .theme-dark).
   ============================================================ */
:root[data-theme="dark"],
.theme-dark {
  --brand:            var(--purple-400);
  --brand-hover:      var(--purple-300);
  --brand-active:     var(--purple-200);
  --brand-subtle:     rgba(147, 94, 210, 0.16);
  --brand-subtle-fg:  var(--purple-200);
  --accent:           var(--blue-400);
  --accent-hover:     var(--blue-300);
  --accent-subtle:    rgba(23, 164, 246, 0.16);
  --accent-subtle-fg: var(--blue-200);

  --bg-page:        #0C0F14;
  --surface-card:   var(--gray-900);
  --surface-raised: var(--gray-800);
  --surface-sunken: var(--gray-950);
  --surface-input:  #161B22;
  --surface-hover:  rgba(255, 255, 255, 0.04);

  --text-strong:  #F4F6FA;
  --text-body:    var(--gray-300);
  --text-muted:   var(--gray-500);
  --text-faint:   var(--gray-600);
  --text-inverse: var(--gray-900);
  --text-brand:   var(--purple-300);
  --text-link:    var(--blue-300);

  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-brand:  var(--purple-400);
  --focus-ring:    rgba(165, 123, 220, 0.45);

  --success-bg:    rgba(22, 163, 74, 0.16);
  --success-fg:    #6EE7A0;
  --warning-bg:    rgba(245, 158, 11, 0.16);
  --warning-fg:    #FCD277;
  --danger-bg:     rgba(225, 29, 72, 0.18);
  --danger-fg:     #FB8BA6;
  --info-bg:       rgba(23, 164, 246, 0.16);
  --info-fg:       var(--blue-200);

  --price-total:   var(--text-strong);
  --price-free:    #6EE7A0;
  --price-refund:  #FB8BA6;

  color-scheme: dark;
}

/* ============================================================
   Yekwa / EventFlow — Typography tokens
   Plus Jakarta Sans = display / headings / brand.
   Ubuntu = body copy, forms, dense tables (strong numerals).
   Two weights available per family: 400 & 700.
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: "Plus Jakarta Sans", "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Ubuntu", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-icon:    "cardee-icons";

  /* ---- Weights (only 400 / 700 shipped) ---- */
  --fw-regular: 400; /* @kind other */
  --fw-bold:    700; /* @kind other */

  /* ---- Type scale (rem, 16px base) ---- */
  --text-2xs:  0.6875rem;  /* 11px — table micro-labels, EFA only */
  --text-xs:   0.75rem;    /* 12px — captions, badges */
  --text-sm:   0.875rem;   /* 14px — dense body, table cells, forms */
  --text-base: 1rem;       /* 16px — default body */
  --text-md:   1.125rem;   /* 18px — lead paragraph */
  --text-lg:   1.375rem;   /* 22px — card titles */
  --text-xl:   1.75rem;    /* 28px — section headings */
  --text-2xl:  2.25rem;    /* 36px — page titles */
  --text-3xl:  3rem;       /* 48px — hero / marketing */
  --text-4xl:  3.75rem;    /* 60px — big display */

  /* ---- Line heights ---- */
  --leading-tight:   1.15;  /* display headings */
  --leading-snug:    1.3;   /* subheads */
  --leading-normal:  1.5;   /* body */
  --leading-relaxed: 1.65;  /* long-form marketing copy */

  /* ---- Letter spacing ---- */
  --tracking-tight:  -0.02em;  /* large display */
  --tracking-snug:   -0.01em;  /* headings */
  --tracking-normal: 0;
  --tracking-wide:   0.02em;
  --tracking-caps:   0.06em;   /* uppercase eyebrows / labels */

  /* ---- Semantic role aliases ---- */
  --font-heading: var(--font-display);
  --font-ui:      var(--font-body);
  --font-numeric: var(--font-body);  /* Ubuntu: clean tabular-ish figures for money */
}

/* ============================================================
   Yekwa / EventFlow — Spacing, radius, elevation, motion, layout
   4px base grid. EFP breathes; EFA compresses via --space-* directly.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0:   0;
  --space-1:   0.25rem;  /*  4px */
  --space-2:   0.5rem;   /*  8px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-8:   2rem;     /* 32px */
  --space-10:  2.5rem;   /* 40px */
  --space-12:  3rem;     /* 48px */
  --space-16:  4rem;     /* 64px */
  --space-20:  5rem;     /* 80px */
  --space-24:  6rem;     /* 96px */

  /* ---- Radii ---- */
  --radius-xs:   4px;   /* badges, tags, chips */
  --radius-sm:   6px;   /* inputs, small buttons */
  --radius-md:   10px;  /* buttons, form controls */
  --radius-lg:   14px;  /* cards, panels */
  --radius-xl:   20px;  /* modals, hero cards, event tiles */
  --radius-2xl:  28px;  /* large marketing surfaces */
  --radius-pill: 999px; /* pills, avatars, toggles */

  /* ---- Elevation (light) — soft, purple-tinted shadows ---- */
  --shadow-xs:  0 1px 2px rgba(26, 31, 39, 0.06);
  --shadow-sm:  0 1px 3px rgba(26, 31, 39, 0.08), 0 1px 2px rgba(26, 31, 39, 0.04);
  --shadow-md:  0 4px 12px rgba(26, 31, 39, 0.08), 0 2px 4px rgba(26, 31, 39, 0.04);
  --shadow-lg:  0 12px 28px rgba(26, 31, 39, 0.12), 0 4px 8px rgba(26, 31, 39, 0.06);
  --shadow-xl:  0 24px 56px rgba(26, 31, 39, 0.16), 0 8px 16px rgba(26, 31, 39, 0.08);
  --shadow-brand: 0 8px 24px rgba(147, 94, 210, 0.28);  /* brand-colored glow on primary CTAs */

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */

  /* ---- Layout ---- */
  --container-sm:  640px;  /* @kind spacing */
  --container-md:  860px;
  --container-lg:  1120px;
  --container-xl:  1320px;
  --efa-sidebar:   256px;   /* EFA admin nav rail */
  --efa-topbar:    60px;
  --tap-target:    44px;    /* min touch target (EFP mobile-first) */
  --z-header:  100;  /* @kind other */
  --z-overlay: 900;  /* @kind other */
  --z-modal:   1000; /* @kind other */
  --z-toast:   1100; /* @kind other */
}

/* Dark elevation: deeper, near-black shadows (soft tints read poorly on dark) */
:root[data-theme="dark"],
.theme-dark {
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 12px 28px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-xl:  0 24px 56px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 8px 28px rgba(147, 94, 210, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms; /* @kind other */
    --dur-base: 0ms; /* @kind other */
    --dur-slow: 0ms; /* @kind other */
  }
}

/* ============================================================
   Yekwa / EventFlow — Base reset & element defaults
   Minimal, hand-authored (no build step). Sets brand type + theme.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-normal); }
h4 { font-size: var(--text-md); letter-spacing: var(--tracking-normal); }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { text-decoration: underline; }

small { font-size: var(--text-sm); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

img, svg, video { max-width: 100%; display: block; }

::selection { background: var(--brand-subtle); color: var(--brand-subtle-fg); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Utility: uppercase eyebrow / label */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Icon glyph sizing helper */
.icon { font-family: var(--font-icon); font-style: normal; line-height: 1; display: inline-block; }
