/* ═══════════════════════════════════════════════════════════════════
   FLIPKART MINUTES — PICKER-PACKER TRAINING
   Premium Dark UI • Flipkart Colors • OmniRAG-style Interactivity
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Flipkart Core */
  --fk-blue:        #2874F0;
  --fk-blue-dark:   #1259C3;
  --fk-blue-bright: #4C94FF;
  --fk-blue-glow:   rgba(40, 116, 240, 0.35);
  --fk-yellow:      #FFE11B;
  --fk-yellow-deep: #FFC200;
  --fk-yellow-glow: rgba(255, 194, 0, 0.4);

  /* Dark Background System */
  --bg-base:        #07090F;
  --bg-surface:     #0D1117;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(40,116,240,0.08);
  --bg-glass:       rgba(13,17,23,0.75);

  /* Text */
  --text-primary:   #F1F5F9;
  --text-muted:     #64748B;
  --text-accent:    #93BBFF;
  --fk-ink:         #0F172A;

  /* Level Colors */
  --l1-color:  #2874F0;
  --l1-glow:   rgba(40,116,240,0.4);
  --l2-color:  #FFE11B;
  --l2-glow:   rgba(255,225,27,0.4);
  --l3-color:  #10B981;
  --l3-glow:   rgba(16,185,129,0.4);

  /* Status */
  --ok:         #10B981;
  --ok-glow:    rgba(16,185,129,0.35);
  --danger:     #EF4444;
  --danger-glow:rgba(239,68,68,0.35);
  --warn:       #F59E0B;

  /* Borders & Lines */
  --border:     rgba(255,255,255,0.08);
  --border-fk:  rgba(40,116,240,0.3);
  --line:       rgba(255,255,255,0.06);

  /* Shadows */
  --shadow-blue: 0 0 30px rgba(40,116,240,0.25), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(40,116,240,0.4);

  /* Radius */
  --radius-lg:  20px;
  --radius-md:  14px;
  --radius-sm:  10px;

  /* Compat for old refs */
  --fk-blue-light: rgba(40,116,240,0.12);
  --fk-yellow-light: rgba(255,225,27,0.12);
  --muted: #64748B;
  --white: #F1F5F9;
  --soft: #0D1117;
  --ok-soft: rgba(16,185,129,0.12);
  --danger-soft: rgba(239,68,68,0.12);
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.25);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', Inter, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow orbs — like omnirage */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(40,116,240,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 8s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255,194,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* ── Shell / Layout ────────────────────────────────────────────── */
.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
  animation: fadeInSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Brand Header ──────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fk-blue) 0%, var(--fk-blue-dark) 100%);
  display: grid;
  place-items: center;
  color: var(--fk-yellow);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 20px var(--fk-blue-glow), 0 8px 20px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite linear;
}

.brand h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.minutesPill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--fk-yellow) 0%, var(--fk-yellow-deep) 100%);
  color: #713F12;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--fk-yellow-glow);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.apkNavBtn { flex-shrink: 0; white-space: nowrap; }
@media (max-width:540px) { .apkNavBtn span { display: none; } }

/* ── Panels ────────────────────────────────────────────────────── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.panel:hover {
  border-color: var(--border-fk);
  box-shadow: var(--shadow-blue);
}

/* Hero Panel */
.hero {
  padding: 50px 40px 42px;
  background: linear-gradient(135deg, rgba(40,116,240,0.12) 0%, var(--bg-card) 60%, rgba(255,194,0,0.06) 100%);
  border: 1px solid rgba(40,116,240,0.25);
  box-shadow: var(--shadow-blue);
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(40,116,240,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero h2 {
  font-size: 42px;
  line-height: 1.15;
  margin: 14px 0;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--fk-blue-bright) 0%, var(--fk-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Level Cards (Home grid) ───────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40,116,240,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--border-fk);
  box-shadow: 0 0 0 1px rgba(40,116,240,0.2), var(--shadow-blue);
}

.card:hover::before { opacity: 1; }

/* Level-specific card accent colors */
.card:nth-child(1) { --card-accent: var(--l1-color); --card-glow: var(--l1-glow); }
.card:nth-child(2) { --card-accent: var(--l2-color); --card-glow: var(--l2-glow); }
.card:nth-child(3) { --card-accent: var(--l3-color); --card-glow: var(--l3-glow); }

.card:hover { box-shadow: 0 0 24px var(--card-glow, var(--fk-blue-glow)), 0 8px 30px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.12); }

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent, var(--fk-blue));
  box-shadow: 0 0 8px var(--card-glow, var(--fk-blue-glow));
  animation: dotPulse 2s infinite;
}

.kpi {
  font-size: 36px;
  font-weight: 900;
  color: var(--fk-blue-bright);
  letter-spacing: -1.5px;
  text-shadow: 0 0 20px var(--fk-blue-glow);
}

/* ── Grid Layouts ──────────────────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn.primary {
  background: linear-gradient(135deg, var(--fk-blue) 0%, var(--fk-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 0 20px var(--fk-blue-glow), 0 4px 16px rgba(0,0,0,0.3);
}
.btn.primary:hover {
  box-shadow: 0 0 32px var(--fk-blue-glow), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(40,116,240,0.12);
  color: var(--fk-blue-bright);
  border: 1px solid rgba(40,116,240,0.25);
}
.btn.secondary:hover {
  background: rgba(40,116,240,0.2);
  border-color: rgba(40,116,240,0.5);
  transform: translateY(-1px);
}

.btn.danger {
  background: rgba(239,68,68,0.12);
  color: #F87171;
  border: 1px solid rgba(239,68,68,0.2);
}
.btn.danger:hover { background: rgba(239,68,68,0.2); }

.btn.gold {
  background: linear-gradient(135deg, var(--fk-yellow) 0%, var(--fk-yellow-deep) 100%);
  color: #713F12;
  box-shadow: 0 0 20px var(--fk-yellow-glow), 0 4px 14px rgba(0,0,0,0.3);
}
.btn.gold:hover {
  box-shadow: 0 0 32px var(--fk-yellow-glow), 0 8px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ── Form Fields ───────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.field input::placeholder { color: var(--text-muted); opacity: 0.6; }

.field input:focus, .field select:focus {
  border-color: var(--fk-blue);
  background: rgba(40,116,240,0.08);
  box-shadow: 0 0 0 4px var(--fk-blue-glow);
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(40,116,240,0.15);
  color: var(--fk-blue-bright);
  border: 1px solid rgba(40,116,240,0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge.warn {
  background: rgba(245,158,11,0.15);
  color: #FCD34D;
  border-color: rgba(245,158,11,0.25);
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.topbar h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Timer Badge ───────────────────────────────────────────────── */
.timerBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.12);
  border: 1.5px solid rgba(245,158,11,0.3);
  color: #FCD34D;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(245,158,11,0.2);
}

.timerBadge.warning {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.35);
  color: #F87171;
  animation: pulseWarn 0.9s infinite;
  box-shadow: 0 0 14px rgba(239,68,68,0.3);
}

/* ── Store Tag ─────────────────────────────────────────────────── */
.storeTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,225,27,0.1);
  border: 1px solid rgba(255,194,0,0.25);
  color: var(--fk-yellow);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 0 8px var(--fk-yellow-glow);
}

/* ── Notices / Alerts ──────────────────────────────────────────── */
.notice {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: rgba(40,116,240,0.1);
  border: 1px solid rgba(40,116,240,0.2);
  color: var(--text-accent);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInSlide 0.25s ease;
}

.notice.warn {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
  color: #FCD34D;
}

.notice.error {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #F87171;
  font-weight: 700;
}

/* Verified Banner — glowing green */
.notice.verifiedBanner {
  background: rgba(16,185,129,0.12);
  border: 2px solid rgba(16,185,129,0.5);
  color: #6EE7B7;
  box-shadow: 0 0 24px var(--ok-glow), inset 0 0 20px rgba(16,185,129,0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 20px;
  animation: popVerified 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Error Banner — glowing red */
.notice.errorBanner {
  background: rgba(239,68,68,0.12);
  border: 2px solid rgba(239,68,68,0.5);
  color: #FCA5A5;
  box-shadow: 0 0 24px var(--danger-glow), inset 0 0 20px rgba(239,68,68,0.05);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 20px;
  animation: shakeError 0.4s ease-in-out;
}

/* ── Progress Bar ──────────────────────────────────────────────── */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%);
  animation: shimmer 2s infinite;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fk-blue) 0%, var(--fk-blue-bright) 50%, var(--fk-yellow) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--fk-blue-glow);
  border-radius: 999px;
  position: relative;
}

/* ── Scanner Target Box ────────────────────────────────────────── */
.target {
  margin: 16px 0;
  padding: 28px 24px;
  border: 1.5px solid var(--border-fk);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(40,116,240,0.06) 0%, var(--bg-card) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(40,116,240,0.1), inset 0 0 30px rgba(40,116,240,0.04);
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.target * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Scanner HUD — Automated Scan-Only status */
.scannerHud {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(40, 116, 240, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-top: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hudPulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 12px #10B981;
  animation: pulseGlow 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.hudContent {
  flex: 1;
}

.hudTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--fk-blue-bright);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hudSub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hudVoiceTag {
  font-size: 11px;
  font-weight: 700;
  color: var(--fk-yellow);
  background: rgba(255, 225, 27, 0.1);
  border: 1px solid rgba(255, 225, 27, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Corner scanner brackets */
.target::before, .target::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--fk-blue);
  border-style: solid;
  opacity: 0.7;
  animation: bracketPulse 2s infinite ease-in-out;
}
.target::before {
  top: 10px; left: 10px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}
.target::after {
  top: 10px; right: 10px;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

/* Animated laser beam */
.target .laserLine {
  position: absolute;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fk-blue), var(--fk-yellow), var(--fk-blue), transparent);
  box-shadow: 0 0 12px var(--fk-blue), 0 0 6px var(--fk-yellow);
  animation: laserScan 2.5s infinite ease-in-out;
  pointer-events: none;
  border-radius: 1px;
}

.target .big {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(40,116,240,0.4);
}

.target .muted {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Scanner Input (hidden, used by hardware wedge) ─────────────── */
.scan {
  font-size: 22px !important;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  border: 2px solid var(--fk-blue) !important;
  background: rgba(40,116,240,0.08) !important;
  color: var(--text-primary);
}
.scan:focus {
  background: rgba(40,116,240,0.12) !important;
  box-shadow: 0 0 0 4px var(--fk-blue-glow) !important;
}

/* ── Tables ─────────────────────────────────────────────────────── */
.tableWrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.table th, .table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
  color: var(--text-primary);
}

.table th {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.7px;
}

.table tr:hover td {
  background: rgba(40,116,240,0.05);
}

/* ── File Upload Box ─────────────────────────────────────────────── */
.fileBox {
  padding: 18px;
  border: 2px dashed rgba(40,116,240,0.25);
  border-radius: var(--radius-sm);
  background: rgba(40,116,240,0.05);
  margin: 12px 0;
  transition: all 0.2s ease;
}
.fileBox:hover {
  border-color: rgba(40,116,240,0.5);
  background: rgba(40,116,240,0.08);
}
.fileBox input[type="file"] { color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 18px 10px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Camera Scanner ──────────────────────────────────────────────── */
#reader-wrap {
  width: 100%;
  max-width: 440px;
  margin: 12px auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-fk);
  background: #000;
  box-shadow: 0 0 24px var(--fk-blue-glow), 0 8px 30px rgba(0,0,0,0.5);
}

#reader { width: 100% !important; border: none !important; }

#reader video {
  width: 100% !important;
  height: auto !important;
  max-height: 280px;
  object-fit: cover !important;
}

#reader__scan_region { background: transparent !important; }
#reader__dashboard {
  padding: 8px !important;
  background: rgba(0,0,0,0.9);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

/* Camera section label */
#cameraScannerSection label {
  color: var(--text-primary) !important;
}

/* ── Level Complete Modal ────────────────────────────────────────── */
.levelCompleteOverlay {
  position: fixed;
  inset: 0;
  background: rgba(7,9,15,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

.levelCompleteCard {
  background: var(--bg-surface);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(16,185,129,0.25), 0 24px 60px rgba(0,0,0,0.6);
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.levelCompleteCard h2 { color: var(--text-primary); }
.levelCompleteCard p { color: var(--text-muted); }

/* ── Keyframe Animations ─────────────────────────────────────────── */
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes laserScan {
  0%   { top: 8%; opacity: 0.6; }
  50%  { top: 88%; opacity: 1; }
  100% { top: 8%; opacity: 0.6; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 6px var(--fk-yellow-glow); }
  50%       { box-shadow: 0 0 18px var(--fk-yellow-glow), 0 0 30px rgba(255,194,0,0.3); }
}

@keyframes shine {
  0%       { left: -100%; }
  20%, 100%{ left: 200%; }
}

@keyframes pulseWarn {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.04); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--card-glow, var(--fk-blue-glow)); }
  50%       { opacity: 0.5; box-shadow: 0 0 10px var(--card-glow, var(--fk-blue-glow)); }
}

@keyframes bracketPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes shimmer {
  0%  { transform: translateX(-100%); }
  100%{ transform: translateX(200%); }
}

@keyframes popVerified {
  0%   { transform: scale(0.88); opacity: 0.5; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-7px); }
  40%, 80%  { transform: translateX(7px); }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Marquee Strip (Home page) ───────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  width: 100%;
  margin: 20px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.marquee-pill span { font-size: 14px; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Flow Steps (Home cards) ─────────────────────────────────────── */
.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0 8px;
  position: relative;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
  position: relative;
}
.flow-step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  z-index: 2;
}
.flow-step:last-child::after { display: none; }
.flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 0 auto 10px;
  border: 2px solid;
  position: relative;
  transition: all 0.3s ease;
}
.flow-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.15;
  filter: blur(8px);
}
.flow-step:nth-child(1) .flow-icon { background: rgba(40,116,240,0.15); border-color: rgba(40,116,240,0.5); color: var(--fk-blue-bright); }
.flow-step:nth-child(2) .flow-icon { background: rgba(255,225,27,0.12); border-color: rgba(255,194,0,0.5); color: var(--fk-yellow); }
.flow-step:nth-child(3) .flow-icon { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.5); color: var(--ok); }
.flow-step-label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; }
.flow-step-title { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-top: 4px; }
.flow-step-sub   { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* ── Level Accent Overrides (Training panel) ─────────────────────── */
.level-1-accent { --active-color: var(--l1-color); --active-glow: var(--l1-glow); }
.level-2-accent { --active-color: var(--l2-color); --active-glow: var(--l2-glow); }
.level-3-accent { --active-color: var(--l3-color); --active-glow: var(--l3-glow); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .shell { padding: 12px; }
  .brand { gap: 10px; margin-bottom: 14px; padding: 12px 14px; }
  .logo  { width: 40px; height: 40px; font-size: 18px; }
  .brand h1 { font-size: 15px; }
  .hero { padding: 28px 20px; }
  .hero h2 { font-size: 26px; letter-spacing: -0.5px; }
  .hero p  { font-size: 14px; }
  .panel { padding: 16px 14px; border-radius: 16px; margin-bottom: 14px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar h2 { font-size: 18px; }
  .target { padding: 16px 14px; }
  .target .big { font-size: clamp(17px, 4.5vw, 22px); }
  .actions .btn { flex: 1; }
  .flow-steps { flex-direction: column; gap: 12px; }
  .flow-step::after { display: none; }
  .kpi { font-size: 28px; }
}

@media (max-width: 480px) {
  .shell { padding: 8px; }
  .panel { padding: 14px 12px; }
  .hero h2 { font-size: 22px; }
  .target { padding: 12px 10px; margin: 8px 0; }
  .btn { padding: 12px 14px; font-size: 14px; }
}

/* ── Stack util ─────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--text-muted); }

/* Premium light theme: Flipkart blue/yellow accents on a clean operations surface. */
:root {
  --bg-base: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-card: rgba(255,255,255,0.94);
  --bg-card-hover: rgba(40,116,240,0.045);
  --bg-glass: rgba(255,255,255,0.86);
  --text-primary: #172033;
  --text-muted: #64748b;
  --text-accent: #1d5fd1;
  --border: rgba(15,23,42,0.09);
  --line: rgba(15,23,42,0.07);
  --border-fk: rgba(40,116,240,0.28);
  --shadow-card: 0 12px 32px rgba(30,58,95,0.08);
  --shadow-blue: 0 16px 42px rgba(40,116,240,0.14), 0 8px 24px rgba(30,58,95,0.08);
  --shadow-glow: 0 8px 24px rgba(40,116,240,0.16);
  --shadow: 0 12px 30px rgba(30,58,95,0.10);
  --shadow-sm: 0 5px 16px rgba(30,58,95,0.08);
  --soft: #ffffff;
  --white: #172033;
  --muted: #64748b;
  --fk-blue-light: rgba(40,116,240,0.09);
  --fk-yellow-light: rgba(255,225,27,0.22);
  --ok-soft: rgba(16,185,129,0.10);
  --danger-soft: rgba(239,68,68,0.09);
}

body {
  background: radial-gradient(circle at 8% 0%, rgba(40,116,240,0.10), transparent 30%), radial-gradient(circle at 94% 16%, rgba(255,225,27,0.16), transparent 24%), var(--bg-base);
}

body::before { background: radial-gradient(ellipse at center, rgba(40,116,240,0.08) 0%, transparent 70%); }
body::after { background: radial-gradient(ellipse at center, rgba(255,194,0,0.10) 0%, transparent 70%); }

.brand {
  background: rgba(255,255,255,0.82);
  border-color: rgba(40,116,240,0.12);
  box-shadow: 0 12px 28px rgba(30,58,95,0.08);
}

.logo {
  background: linear-gradient(145deg, #2874f0, #1457be);
  color: #ffe11b;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -6px;
  padding-right: 5px;
  text-shadow: 1px 2px 0 rgba(0,0,0,0.08);
}

.panel, .card { background: rgba(255,255,255,0.9); }
.hero { background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92) 70%, rgba(255,249,210,0.65)); }
.field input, .field select { background: #fff; color: var(--text-primary); }
.marquee-pill, .scannerHud { background: rgba(255,255,255,0.76); }
#reader__dashboard { background: rgba(15,23,42,0.92); }

@media (max-width: 768px) {
  .brand { align-items: flex-start; }
  .brand > div:nth-child(2) { min-width: 0; }
  .brand h1 { line-height: 1.35; }
  .brand p { line-height: 1.45; }
  .apkNavBtn { margin-left: auto; }
  .hero .actions .btn { width: 100%; }
  #reader-wrap { max-width: 100%; }
  .scannerHud { flex-wrap: wrap; gap: 10px; }
  .hudContent { min-width: 0; flex: 1 1 180px; }
  .hudVoiceTag { width: 100%; }
}

@media (max-width: 480px) {
  .brand { padding: 10px; gap: 9px; }
  .logo { width: 38px; height: 38px; font-size: 29px; }
  .brand h1 { font-size: 13px; }
  .brand p { font-size: 10px; }
  .minutesPill { font-size: 8px; padding: 3px 6px; }
  .apkNavBtn { padding: 8px 10px !important; }
  .hero { padding: 24px 14px; }
}

/* Flipkart brand color treatment for the landing page. */
.hero h2 {
  color: #172337;
  background: none;
  -webkit-text-fill-color: #172337;
}

.heroAccent {
  color: #2874f0;
  background: none !important;
  -webkit-text-fill-color: #2874f0 !important;
}

.heroBadge {
  background: #2874f0 !important;
  border-color: #2874f0 !important;
  color: #ffe11b !important;
  box-shadow: 0 8px 18px rgba(40,116,240,0.22) !important;
}

.hero p {
  color: #536b89;
}

.hero .btn.secondary {
  color: #2874f0;
  background: #edf4ff;
  border-color: #a9c9ff;
}

.hero .btn.secondary:hover {
  background: #dceaff;
  border-color: #2874f0;
}

.hero .btn.gold {
  background: #ffe11b;
  color: #172337;
  border: 1px solid #f4c900;
  box-shadow: 0 8px 20px rgba(255,193,7,0.26);
}
