/* Gathera Tickets — ETSF design system.
   Sourced from the real product surfaces:
   - mobile app GlassCard.tsx (Bezold-edge liquid glass, blur 60–90)
   - mobile (visitor branch) tab bar + event cards
   - etsf-admin-portal globals.css (canvas/ink/line tokens, brand gradients,
     card shadows, ceremonial entrance)
   - real assets: etsf-logo.png badge, denim + leather backgrounds, rodeo photo */

@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/jakarta-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/jakarta-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/jakarta-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/jakarta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/assets/fonts/jakarta-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  /* ETSF brand — mobile/src/lib/colors.ts, exact */
  --blue: #2B5EA7;
  --blue-dark: #1A3D6E;
  --blue-light: #4A8BD4;
  --gold: #E8A931;
  --gold-dark: #C48A1A;
  --leather: #8B5E3C;
  --navy: #152A4A;
  --hover-blue: #1E4F8E;

  /* Portal surfaces (etsf-admin-portal) */
  --canvas: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-2: #1F2937;
  --ink-soft: #475467;
  --ink-muted: #6B7280;
  --ink-faint: #98A2B3;
  --line: #E7EAEF;
  --line-soft: #F0F2F5;

  --ok: #16A34A;
  --ok-bright: #22C55E;
  --ok-soft: #DCFCE7;
  --danger: #D92D20;
  --danger-soft: #FEE4E2;
  --warn: #E8A931;
  --warn-soft: #FDF0D5;

  /* App gradients — colors.ts PRIMARY_GRADIENT / ACCENT_GRADIENT */
  --grad-primary: linear-gradient(135deg, #2B5EA7, #1A3D6E);
  --grad-accent: linear-gradient(135deg, #E8A931, #C48A1A);
  /* Portal gradients — globals.css verbatim */
  --grad-brand: linear-gradient(165deg, #1A3D6E 0%, #2B5EA7 55%, #21508F 100%);
  --grad-navy: linear-gradient(180deg, #152A4A 0%, #1A3D6E 100%);

  --font: 'Jakarta', -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  /* Portal radii */
  --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-card: 20px;

  /* Portal shadows — globals.css verbatim */
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-soft: 0 4px 16px -4px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .05);
  --shadow-pop: 0 16px 40px -12px rgba(16, 24, 40, .22);
  /* App glass shadow — GlassCard.tsx */
  --shadow-glass: 0 8px 24px rgba(0, 0, 0, .08);

  /* seat states — tier colors echo the fair's official 2026 rodeo map dots */
  --seat-ga25: #5B7FD6;   /* blue — General Admission $25 */
  --seat-ga35: #E794BC;   /* pink — Premium $35 */
  --seat-ga45: #F0A04C;   /* orange — Front Rail $45 */
  --seat-vip: #62BE85;    /* green — VIP $125 */
  --seat-suite: #E06A5F;  /* red — Chute Suites */
  --seat-access: #4FC8C6; /* teal — accessible */
  --seat-hover: #8FB3F0;
  --seat-selected: #E8A931;
  --seat-held: #93A3B8;
  --seat-sold: #39435577;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, canvas, video { display: block; }
::selection { background: rgba(232, 169, 49, .35); }
[hidden] { display: none !important; }

/* ------------------------------------------------ liquid glass (GlassCard) */
.glass {
  position: relative;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-top: 1.5px solid rgba(255, 255, 255, .60);
  border-left: 1.5px solid rgba(255, 255, 255, .50);
  border-bottom: 2px solid rgba(0, 0, 0, .12);
  border-right: 2px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow-glass);
}
.glass-strong { background: rgba(255, 255, 255, .88); }
.glass-deep {
  border-radius: var(--r-card);
  background: rgba(21, 42, 74, .58);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-top: 1.5px solid rgba(255, 255, 255, .18);
  border-left: 1.5px solid rgba(255, 255, 255, .14);
  border-bottom: 2px solid rgba(0, 0, 0, .30);
  border-right: 2px solid rgba(0, 0, 0, .22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  color: #fff;
}

/* photo backdrops */
/* No background-attachment:fixed — it forces a full-viewport repaint on every
   scroll frame. A normally-attached cover image scrolls with the content and
   composites cleanly. */
.bg-denim { background: url('/assets/img/denim-bg.jpg') center top / cover no-repeat, var(--blue-dark); }
.bg-leather { background: url('/assets/img/leather-bg.jpg') center / cover no-repeat, var(--navy); }

/* white surface card (portal) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }

/* ------------------------------------------------ buttons (app-style rounded rects) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 16px; padding: 13px 22px; font-size: 15px;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, opacity .14s, filter .14s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px rgba(43, 94, 167, .32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(43, 94, 167, .45); filter: brightness(1.05); }
.btn-gold { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 20px rgba(232, 169, 49, .38); text-shadow: 0 1px 2px rgba(122, 79, 10, .35); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(232, 169, 49, .5); filter: brightness(1.04); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.btn-quiet:hover { border-color: var(--blue-light); color: var(--blue); }
.btn-danger { background: var(--danger); color: #fff; border-radius: 14px; }

/* pills / chips — app category-pill language */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 12px; letter-spacing: .02em;
}
.chip-gold { background: rgba(232, 169, 49, .16); color: var(--gold-dark); }
.chip-blue { background: rgba(43, 94, 167, .12); color: var(--blue); }
.chip-green { background: rgba(22, 163, 74, .12); color: var(--ok); }
.chip-red { background: rgba(217, 45, 32, .10); color: var(--danger); }
.chip-glass { background: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* kicker — portal entrance language */
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.gold-rule { height: 2px; width: 120px; border-radius: 999px; background: linear-gradient(90deg, transparent, #E8A931 18%, #F3C866 50%, #E8A931 82%, transparent); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: .03em; text-transform: uppercase; }
.field input, .field select {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 15px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(74, 139, 212, .15); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.stepper button { width: 40px; height: 40px; font-size: 20px; font-weight: 700; color: var(--blue); display: grid; place-items: center; transition: background .12s; }
.stepper button:hover { background: rgba(43, 94, 167, .08); }
.stepper button:disabled { color: var(--ink-faint); }
.stepper .qty { min-width: 34px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* motion — portal fade-in-up + app FadeInDown(400) */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.72); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.animate-in { animation: rise .4s cubic-bezier(.22, 1, .36, 1) both; }

.money { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* toasts */
.gt-toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gt-toast { background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(10px); transition: all .3s ease; max-width: 88vw; text-align: center; }
.gt-toast.on { opacity: 1; transform: none; }
.gt-toast-err { background: var(--danger); }
.gt-toast-ok { background: var(--ok); }
