/* SUPER ID · Code Bharat 2026 Flagship Theme
   Powered by SASA Engineers
   Obsidian Dark, Saffron Energy (#F97316), India Emerald (#22C55E) & Cyber Gold (#F59E0B) */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-wght.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Code Bharat Obsidian Dark Surfaces */
  --bg-dark: #08090D;
  --paper: rgba(16, 20, 28, 0.88);
  --paper-hi: rgba(22, 27, 38, 0.96);
  --desk: rgba(30, 36, 50, 0.75);

  /* Primary Accent: Code Bharat Saffron */
  --blue: #F97316;
  --blue-deep: #EA580C;
  --blue-soft: #94A3B8;
  --blue-line: rgba(249, 115, 22, 0.24);

  /* Vibrant Accents */
  --pink: #F97316;
  --pink-ink: #FB923C;
  --pink-tint: rgba(25, 30, 44, 0.85);
  --pink-tint-2: rgba(20, 24, 36, 0.95);
  --pink-track: rgba(249, 115, 22, 0.2);
  --pink-display: #F8FAFC;
  --pink-note: #F59E0B;

  /* Status Colors */
  --go: #22C55E;
  --go-flash: #16A34A;
  --go-ink: #4ADE80;
  --stop: #EF4444;
  --stop-tint: rgba(239, 68, 68, 0.16);
  --stop-ink: #F87171;

  --r-row: 10px;
  --r-btn: 8px;
  --r-card: 10px;
  --gutter: clamp(16px, 5vw, 24px);
  --col: 480px;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-ui: "Barlow SC", "Arial Narrow", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: #07080C;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(rgba(249, 115, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: #F8FAFC;
  font: 500 17px/1.4 var(--f-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(249, 115, 22, 0.4); color: #FFF; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #FB923C; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

html { scrollbar-color: var(--blue) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, 0.5); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── typography & layout frame ────────────────────────────────── */
.app {
  width: min(100%, var(--col));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}
.app > :nth-last-child(2) { margin-bottom: 30px; }

.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
  min-height: 76px;
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
  margin-bottom: 16px;
}
.mast-center { justify-content: center; position: relative; }
.mast-role {
  font: 600 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-soft);
  display: flex; align-items: center; gap: 6px;
}
.mast-role.quiet { letter-spacing: .02em; text-transform: none; font-size: 15px; }

/* Code Bharat Signature Brand Header */
.brand-mast { display: flex; flex-direction: column; }
.brand-title {
  font-family: var(--f-display); font-size: 30px; font-weight: 700;
  letter-spacing: 1px; line-height: 1; text-decoration: none;
  background: linear-gradient(135deg, #FF7322 0%, #FFFFFF 48%, #22C55E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.3));
}
.brand-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #F97316; margin-top: 4px;
}

/* Scallops / Cyber Glow Track */
.scallops {
  height: 3px;
  background: linear-gradient(90deg, #F97316 0%, #FFFFFF 50%, #22C55E 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
  margin-top: auto;
  border-radius: 2px;
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.section-gap { margin-top: 28px; }
h2.head, .head {
  font: 700 24px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 0; color: #F8FAFC;
}
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sub { font: 500 15px/1.45 var(--f-ui); color: var(--blue-soft); margin: 0; }
.fine { font: 500 13.5px/1.4 var(--f-ui); color: var(--blue-soft); }

/* ── poster (Code Bharat Hero Card) ───────────────────────────── */
.poster {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  aspect-ratio: 1 / .88; background: var(--paper-hi) center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(249, 115, 22, 0.08);
  backdrop-filter: blur(14px);
}
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.2) 0%, rgba(8, 9, 13, 0.85) 80%, rgba(8, 9, 13, 0.96) 100%);
}
.poster > * { position: relative; z-index: 3; }
.poster-title {
  font: 700 clamp(38px, 12vw, 56px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
  color: #F8FAFC; margin: 0;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.poster-club {
  font: 600 clamp(16px, 5vw, 20px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em;
  color: #FB923C; margin: 6px 0 0;
}
.poster-when {
  margin-top: 10px; align-self: flex-start;
  font: 600 13px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; color: #FFF;
  background: linear-gradient(135deg, #FF7322, #F97316); padding: 5px 10px; border-radius: 4px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* ── Code Bharat KPI Metrics Bar ──────────────────────────────── */
.stat-grid-super {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin: 12px 0 18px;
}
.stat-card-super {
  background: rgba(16, 20, 30, 0.88); border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(10px);
}
.stat-card-super:hover {
  border-color: #F97316; transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.25);
}
.stat-card-num {
  font-family: var(--f-display); font-size: 28px; line-height: 1.1;
  color: #F8FAFC; font-weight: 700;
}
.stat-card-lbl {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 600; color: var(--blue-soft); margin-top: 4px;
}

/* Quick Navigation Action Buttons */
.btn-quick-nav {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border-radius: 8px; background: rgba(22, 27, 40, 0.9); border: 1.5px solid rgba(249, 115, 22, 0.35);
  color: #F8FAFC; font-weight: 700; font-size: 13.5px; text-decoration: none;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-quick-nav:hover {
  background: linear-gradient(135deg, #FF7322, #F97316);
  border-color: #F97316; color: #FFF;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

/* ── buttons & inputs ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-btn);
  border: 1.5px solid rgba(249, 115, 22, 0.4); background: rgba(20, 24, 36, 0.85); color: #F8FAFC;
  font: 600 16px/1 var(--f-display); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: all .15s var(--ease-out);
}
.btn:hover {
  background: rgba(249, 115, 22, 0.18); border-color: #F97316; color: #FFF;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.danger { border-color: rgba(239, 68, 68, 0.5); color: #F87171; }
.btn.danger:hover { background: rgba(239, 68, 68, 0.18); color: #FFF; border-color: #EF4444; }

.btn-primary {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 12px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-btn);
  background: linear-gradient(135deg, #FF7322 0%, #F97316 100%); color: #FFF; text-align: left; text-decoration: none;
  font: 700 20px/1.1 var(--f-display); letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  transition: all .18s var(--ease-out);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.55);
  transform: translateY(-1.5px);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.5; cursor: progress; }
.btn-primary .label { flex: 1; min-width: 0; }
.btn-primary .label small { display: block; font: 500 13px/1.2 var(--f-ui); color: rgba(255, 255, 255, 0.85); margin-top: 2px; }
.btn-primary .arrow { width: 22px; height: 22px; flex: none; transition: transform .2s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-primary.compact { min-height: 52px; font-size: 18px; padding: 10px 16px; }

/* Form inputs & fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-soft); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid rgba(249, 115, 22, 0.25); background: rgba(13, 16, 24, 0.95); color: #F8FAFC;
  font: 500 16px/1.3 var(--f-ui); caret-color: #F97316;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #64748B; opacity: 1; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: #F97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
  background: rgba(18, 22, 32, 0.98);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23F97316' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.err { color: #F87171; font: 600 14px/1.35 var(--f-ui); margin: 0; }

/* ── gate camera & scanner ────────────────────────────────────── */
.viewport {
  position: relative; border-radius: 12px; overflow: hidden; background: #0A0C14;
  aspect-ratio: 1 / 1.15; max-height: 56dvh; width: 100%;
  border: 2px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}
.viewport video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brackets { position: absolute; inset: 10% 12% 16%; pointer-events: none; }
.brackets i { position: absolute; width: 18%; height: 15%; border: 5px solid #F97316; }
.brackets i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.brackets i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.brackets i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.brackets i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.viewport.hunting .brackets { animation: breathe 2.2s var(--ease-out) infinite; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: .96; } }

.cam-tools { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: flex; gap: 8px; z-index: 3; }
.cam-tools .icon-btn { background: rgba(16, 20, 28, 0.9); border-color: rgba(249, 115, 22, 0.4); color: #F97316; cursor: pointer; }

/* Verdict result card */
.verdict {
  display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 18px; border-radius: var(--r-row);
  margin-top: 12px; border: 1.5px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px);
}
.verdict .v-ico { width: 48px; height: 48px; flex: none; }
.verdict .v-text { flex: 1; min-width: 0; }
.v-main { font: 700 clamp(22px, 6.5vw, 28px)/1.1 var(--f-display); margin: 0; }
.v-sub { font: 500 14px/1.3 var(--f-ui); margin: 3px 0 0; color: rgba(255, 255, 255, 0.85); }
.verdict.idle { background: rgba(22, 27, 40, 0.9); color: #F8FAFC; border-color: rgba(249, 115, 22, 0.25); }
.verdict.ok { background: rgba(34, 197, 94, 0.95); color: #FFF; box-shadow: 0 0 24px rgba(34, 197, 94, 0.4); border-color: #22C55E; }
.verdict.dup { background: rgba(239, 68, 68, 0.95); color: #FFF; box-shadow: 0 0 24px rgba(239, 68, 68, 0.4); border-color: #EF4444; }
.verdict.warn { background: rgba(245, 158, 11, 0.95); color: #FFF; border-color: #F59E0B; }

/* Screen Flash feedback */
.flash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.flash svg { width: min(40vw, 200px); height: auto; }
.flash.ok { background: rgba(34, 197, 94, 0.7); }
.flash.dup { background: rgba(239, 68, 68, 0.7); }
.flash.show { animation: flash 0.8s var(--ease-out) forwards; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

.counter {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 16px;
  border-radius: var(--r-row); background: rgba(22, 27, 40, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.counter .c-label { font: 600 15px/1 var(--f-display); text-transform: uppercase; color: var(--blue-soft); }
.counter .c-num { font: 700 28px/1 var(--f-display); color: #F97316; }
.counter .bar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.counter .bar > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #FF7322, #22C55E); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease-out); }

/* ── diet & role badges ───────────────────────────────────────── */
.badge-diet {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 6px;
}
.diet-veg { background: rgba(34, 197, 94, 0.2); color: #4ADE80; border: 1px solid #22C55E; }
.diet-nonveg { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid #EF4444; }
.diet-jain { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid #3B82F6; }
.badge-tshirt {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid #F59E0B;
  font-weight: 700; font-size: 11.5px; margin-left: 6px;
}

/* ── passes list ──────────────────────────────────────────────── */
.passlist { list-style: none; margin: 0; padding: 0; }
.passlist li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(18, 22, 32, 0.88);
  border-radius: 8px; border: 1px solid rgba(249, 115, 22, 0.16); margin-bottom: 8px;
  transition: border-color .15s ease, background-color .15s ease;
}
.passlist li:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(24, 30, 44, 0.95);
}
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(16, 20, 28, 0.8); color: #F8FAFC; text-decoration: none;
  transition: all .15s ease;
}
.icon-btn:hover {
  background: rgba(249, 115, 22, 0.2); border-color: #F97316; color: #FFF;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ── Attendee Ticket Pass View ────────────────────────────────── */
.ticket-wrap { padding: 4px 0 0; }
.ticket {
  position: relative; isolation: isolate; padding: 18px 12px 14px;
  background: rgba(18, 22, 34, 0.95); border: 2px solid rgba(249, 115, 22, 0.35);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(249, 115, 22, 0.15);
}
.t-art {
  height: clamp(100px, 26vw, 120px); background: center / cover no-repeat;
  border-radius: 8px; margin-bottom: 12px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.t-body { padding: 6px 14px; }
.t-name { font: 700 clamp(32px, 9vw, 44px)/1.05 var(--f-display); letter-spacing: 0.5px; margin: 0; color: #F8FAFC; }
.t-rule { height: 2.5px; background: linear-gradient(90deg, #FF7322, #22C55E); margin: 10px 0 12px; border-radius: 2px; }
.t-event { font: 700 clamp(24px, 7vw, 32px)/1 var(--f-display); text-transform: uppercase; color: #F97316; margin: 0; }
.t-when { font: 500 17px/1.2 var(--f-display); margin: 8px 0 0; color: #CBD5E1; }
.t-where { font: 500 16px/1.2 var(--f-display); margin: 3px 0 0; color: var(--blue-soft); }
.t-qr { position: relative; display: grid; place-items: center; padding: 18px 0; }
.t-qr svg {
  width: min(52vw, 210px); height: auto; aspect-ratio: 1;
  background: #FFF; padding: 8px; border-radius: 8px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}
.t-stub {
  text-align: center; font: 700 20px/1 var(--f-display); letter-spacing: 1px;
  color: #F97316; text-transform: uppercase; margin-top: 10px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0;
  z-index: 60; background: rgba(16, 20, 28, 0.98); border: 1.5px solid #F97316;
  color: #FFF; font: 600 16px/1.2 var(--f-display); padding: 12px 20px;
  border-radius: 8px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(249, 115, 22, 0.35);
  animation: toast .25s var(--ease-out);
}
.toast svg { width: 18px; height: 18px; color: #F97316; flex: none; }
@keyframes toast { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(25, 30, 44, 0.6) 0 40%, rgba(35, 42, 60, 0.8) 50%, rgba(25, 30, 44, 0.6) 60% 100%) 0 0 / 300% 100%;
  animation: shimmer 1.5s linear infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* Wide Screens */
@media (min-width: 980px) {
  body.wide .app { width: min(100%, 1100px); }
  .dash { display: grid; grid-template-columns: 440px 1fr; gap: 36px; align-items: start; }
  .dash > .left { position: sticky; top: 16px; }
}
