/* ==========================================================================
   YourEventHub — Luxury Event Operations OS
   Design System v2 · Apple + Linear + Stripe + VisionOS inspired
   Palette: Lavender · Cream · Midnight Navy · Soft Coral · Mint
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* === Brand Accent (subtle, used sparingly) === */
  --yeh-indigo:        #5B5BF1;
  --yeh-indigo-soft:   #8A8AFB;
  --yeh-violet:        #7C5CFF;
  --yeh-coral:         #FF8A6B;
  --yeh-mint:          #5DD3B0;
  --yeh-amber:         #F5B544;
  --yeh-rose:          #F47DA0;
  --yeh-sky:           #6FB5F5;

  /* === Surfaces (light mode — daylight operations) === */
  --yeh-bg:            #F5F4FB;   /* canvas — soft lavender-cream */
  --yeh-bg-warm:       #FAF7F2;   /* warm cream wash */
  --yeh-surface:       #FFFFFF;
  --yeh-surface-2:     #FBFAFE;
  --yeh-surface-3:     #F1EEFA;
  --yeh-elev-1:        rgba(255, 255, 255, 0.72);
  --yeh-elev-2:        rgba(255, 255, 255, 0.86);
  --yeh-elev-3:        rgba(255, 255, 255, 0.96);

  /* === Text === */
  --yeh-ink:           #0F1438;   /* midnight navy ink */
  --yeh-ink-2:         #2A2F5C;
  --yeh-ink-3:         #565C84;
  --yeh-ink-muted:     #8B91B5;
  --yeh-ink-faint:     #B8BCD6;

  /* === Borders === */
  --yeh-border:        rgba(15, 20, 56, 0.06);
  --yeh-border-2:      rgba(15, 20, 56, 0.10);
  --yeh-border-strong: rgba(15, 20, 56, 0.16);

  /* === Status === */
  --yeh-success:       #2DBA8F;
  --yeh-warn:          #E89B3C;
  --yeh-danger:        #E55A6B;
  --yeh-info:          #5B8CF5;

  /* === Soft tints (for KPI cards, pills) === */
  --tint-lavender:     #ECE9FB;
  --tint-cream:        #FBF3E7;
  --tint-mint:         #DFF5EC;
  --tint-coral:        #FCE5DE;
  --tint-sky:          #E1ECFB;
  --tint-rose:         #FBE3EC;
  --tint-pearl:        #F1EEFA;

  /* === Shadows (soft, layered, premium) === */
  --shadow-xs:         0 1px 2px rgba(15, 20, 56, 0.04);
  --shadow-sm:         0 2px 8px rgba(15, 20, 56, 0.05), 0 1px 2px rgba(15, 20, 56, 0.03);
  --shadow-md:         0 8px 24px rgba(15, 20, 56, 0.07), 0 2px 6px rgba(15, 20, 56, 0.04);
  --shadow-lg:         0 16px 48px rgba(15, 20, 56, 0.10), 0 4px 12px rgba(15, 20, 56, 0.05);
  --shadow-xl:         0 24px 64px rgba(15, 20, 56, 0.14);
  --shadow-glow:       0 0 0 4px rgba(91, 91, 241, 0.08), 0 4px 16px rgba(91, 91, 241, 0.15);

  /* === Radius === */
  --r-sm:              8px;
  --r-md:              12px;
  --r-lg:              16px;
  --r-xl:              22px;
  --r-2xl:             28px;
  --r-full:            999px;

  /* === Motion === */
  --t-fast:            120ms cubic-bezier(0.32, 0.72, 0, 1);
  --t-base:            220ms cubic-bezier(0.32, 0.72, 0, 1);
  --t-slow:            420ms cubic-bezier(0.32, 0.72, 0, 1);

  /* === Layout === */
  --sidebar-w:         260px;
  --topbar-h:          72px;
}

/* === Reset & Base === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.55;
  color: var(--yeh-ink);
  background: var(--yeh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* === Ambient gradient atmosphere (the magic) === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 700px at 8% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 600px at 100% 5%, rgba(255, 138, 107, 0.13), transparent 55%),
    radial-gradient(800px 700px at 95% 100%, rgba(93, 211, 176, 0.10), transparent 60%),
    radial-gradient(900px 800px at -10% 90%, rgba(91, 140, 245, 0.10), transparent 55%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 20, 56, 0.025) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
}

#app { position: relative; z-index: 1; }

/* === Typography === */
.h-display {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--yeh-ink);
}
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.022em; margin: 0; color: var(--yeh-ink); font-weight: 700; }
h1 { font-size: 1.85rem; line-height: 1.2; }
h2 { font-size: 1.45rem; line-height: 1.25; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; font-weight: 650; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-ligatures: none; letter-spacing: -0.01em; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.825rem; }
.text-md { font-size: 0.9rem; }
.text-lg { font-size: 1.05rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.6rem; }
.text-3xl { font-size: 2rem; }

.text-ink { color: var(--yeh-ink); }
.text-ink-2 { color: var(--yeh-ink-2); }
.text-ink-3 { color: var(--yeh-ink-3); }
.text-dim { color: var(--yeh-ink-3); }
.text-muted { color: var(--yeh-ink-muted); }
.text-faint { color: var(--yeh-ink-faint); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, #5B5BF1 0%, #7C5CFF 45%, #FF8A6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Layout primitives === */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.page-wrap {
  padding: 1.75rem 2rem 3rem;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   Mobile shell (header + off-canvas drawer + backdrop) — hidden on desktop.
   Note: the bulk of the responsive overrides live AFTER the .sidebar block
   below so CSS source order beats the unscoped desktop rules.
   ============================================================ */
.mobile-header { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-close-btn { display: none; }
@keyframes backdropFade { from { opacity: 0; } to { opacity: 1; } }

/* === Sidebar — calm, refined, premium === */
.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(251, 247, 242, 0.82) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid var(--yeh-border);
  padding: 1.25rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.6rem 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--yeh-border);
}
.sidebar-brand-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5B5BF1 0%, #7C5CFF 70%, #FF8A6B 130%);
  box-shadow: 0 6px 16px rgba(91, 91, 241, 0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.sidebar-brand-icon i { color: white; font-size: 1rem; }
.sidebar-brand .brand-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--yeh-ink); line-height: 1.1; }
.sidebar-brand .brand-tag { font-size: 0.68rem; color: var(--yeh-ink-muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; margin-top: 1px; }

.nav-section-title {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yeh-ink-muted);
  padding: 0.85rem 0.75rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--yeh-ink-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1px;
  transition: all var(--t-fast);
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 0.95rem; color: var(--yeh-ink-3); transition: color var(--t-fast); }
.nav-item:hover { background: rgba(91, 91, 241, 0.06); color: var(--yeh-ink); }
.nav-item:hover i { color: var(--yeh-indigo); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(91, 91, 241, 0.10), rgba(124, 92, 255, 0.06));
  color: var(--yeh-ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(91, 91, 241, 0.10);
}
.nav-item.active i { color: var(--yeh-indigo); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: linear-gradient(180deg, var(--yeh-indigo), var(--yeh-violet));
  border-radius: 2px;
}
.nav-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.nav-badge.live { background: var(--tint-mint); color: var(--yeh-success); }
.nav-badge.ai   { background: linear-gradient(135deg, #ECE9FB, #FCE5DE); color: var(--yeh-violet); }

/* Sidebar workspace switcher */
.workspace-switcher {
  margin-top: auto;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.workspace-switcher:hover { background: var(--yeh-surface); box-shadow: var(--shadow-sm); }
.workspace-avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #FF8A6B, #F5B544);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.workspace-info { flex: 1; min-width: 0; }
.workspace-name { font-size: 0.85rem; font-weight: 600; color: var(--yeh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-role { font-size: 0.7rem; color: var(--yeh-ink-muted); }

.sidebar-user {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  margin-top: 0.5rem;
  border-radius: 12px;
  transition: all var(--t-fast);
}
.sidebar-user:hover { background: var(--yeh-elev-2); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B5BF1, #7C5CFF);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem;
  flex-shrink: 0;
}
.sidebar-foot {
  display: flex; gap: 0.3rem; padding: 0.5rem 0.3rem 0;
  border-top: 1px solid var(--yeh-border);
  margin-top: 0.6rem;
}
.foot-btn {
  flex: 1;
  background: transparent; border: none;
  color: var(--yeh-ink-muted);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--t-fast);
}
.foot-btn:hover { background: var(--yeh-elev-2); color: var(--yeh-ink); }

/* ============================================================
   MOBILE RESPONSIVE — Off-canvas drawer, mobile header, topbar shrink
   Placed AFTER the unscoped .sidebar rules so source order wins the cascade.
   ============================================================ */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .page-wrap { padding: 1.25rem 1rem 2rem !important; }

  /* Mobile header bar — sticky at top */
  .mobile-header {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--yeh-border);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .mobile-header-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
  }
  .mobile-header-brand .brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yeh-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-menu-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--yeh-border);
    background: var(--yeh-elev-2);
    color: var(--yeh-ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--t-fast);
    flex-shrink: 0;
  }
  .mobile-menu-btn:hover, .mobile-menu-btn:active { background: var(--yeh-surface); }

  /* Sidebar becomes off-canvas drawer — !important beats the unscoped block above */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(86vw, 320px) !important;
    height: 100vh !important;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 200 !important;
    box-shadow: 8px 0 40px rgba(15, 20, 56, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
  }
  .sidebar.is-open { transform: translateX(0); }

  .sidebar-close-btn {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--yeh-ink-muted);
    cursor: pointer;
    margin-left: auto;
    font-size: 0.95rem;
  }
  .sidebar-close-btn:hover { background: var(--yeh-elev-2); color: var(--yeh-ink); }

  /* Backdrop — only shown when drawer is open (controlled by [hidden]) */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 56, 0.42);
    backdrop-filter: blur(2px);
    z-index: 199;
    animation: backdropFade 220ms ease-out;
  }
  .sidebar-backdrop[hidden] { display: none; }

  /* Lock body scroll when drawer is open */
  body.drawer-open { overflow: hidden; }

  /* Topbar tightens on mobile */
  .topbar { padding: 1rem 0 1rem !important; gap: 0.85rem !important; }
  .topbar-title h1 { font-size: 1.35rem !important; }
  .topbar-title p { font-size: 0.85rem !important; }
  .search-box { display: none !important; }   /* search hidden on mobile to avoid overflow */
  .topbar-actions { gap: 0.4rem; }
}

/* === Topbar — clean, breathable === */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0 1.5rem;
  flex-wrap: wrap;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.8rem; font-weight: 750; letter-spacing: -0.025em; margin: 0; }
.topbar-title h1 .wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100%{transform:rotate(0)} 10%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 30%{transform:rotate(14deg)} 40%{transform:rotate(-4deg)} 50%{transform:rotate(10deg)} }
.topbar-title p { color: var(--yeh-ink-muted); margin: 0.25rem 0 0; font-size: 0.92rem; }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.search-box {
  flex: 1; max-width: 360px;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  border-radius: 12px;
  color: var(--yeh-ink-muted);
  font-size: 0.88rem;
  transition: all var(--t-fast);
}
.search-box:hover { background: var(--yeh-surface); box-shadow: var(--shadow-sm); }
.search-box input { background: transparent; border: none; outline: none; flex: 1; color: var(--yeh-ink); font-size: 0.88rem; font-family: inherit; min-width: 0; }
.search-box input::placeholder { color: var(--yeh-ink-muted); }
.search-box kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; padding: 0.1rem 0.4rem; border: 1px solid var(--yeh-border-2); border-radius: 5px; color: var(--yeh-ink-muted); background: var(--yeh-surface); }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  color: var(--yeh-ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 0.95rem;
}
.icon-btn:hover { background: var(--yeh-surface); box-shadow: var(--shadow-sm); color: var(--yeh-ink); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  background: var(--yeh-coral);
  color: white;
  font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--yeh-bg);
}

/* === Glass card system === */
.glass {
  background: var(--yeh-elev-1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--yeh-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.glass-strong {
  background: var(--yeh-elev-3);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--yeh-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.glass-card { padding: 1.25rem 1.35rem; }
.card-lg { padding: 1.5rem 1.65rem; }

/* === KPI Card (the hero metric cards) === */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 1280px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--yeh-elev-3);
  border: 1px solid var(--yeh-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--t-base);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.kpi-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.kpi-icon.lavender { background: var(--tint-lavender); color: var(--yeh-indigo); }
.kpi-icon.coral    { background: var(--tint-coral);    color: #DA5C3F; }
.kpi-icon.mint     { background: var(--tint-mint);     color: var(--yeh-success); }
.kpi-icon.cream    { background: var(--tint-cream);    color: #B07A1F; }
.kpi-icon.sky      { background: var(--tint-sky);      color: var(--yeh-info); }
.kpi-icon.rose     { background: var(--tint-rose);     color: #C5476A; }
.kpi-label { font-size: 0.82rem; color: var(--yeh-ink-3); font-weight: 500; }
.kpi-value { font-family: 'Manrope', sans-serif; font-size: 1.85rem; font-weight: 750; letter-spacing: -0.03em; color: var(--yeh-ink); line-height: 1.05; }
.kpi-delta { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.45rem; font-size: 0.78rem; }
.kpi-delta .up { color: var(--yeh-success); font-weight: 600; }
.kpi-delta .down { color: var(--yeh-danger); font-weight: 600; }
.kpi-delta .compare { color: var(--yeh-ink-muted); }

/* === Layout grid for dashboard === */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* === Section header inside cards === */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 0.75rem;
}
.section-head h3 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.section-head .link {
  font-size: 0.82rem; color: var(--yeh-indigo); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.section-head .link:hover { color: var(--yeh-violet); }

/* === Event Card (the operational hero) === */
.event-card {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 14px;
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  margin-bottom: 0.7rem;
  transition: all var(--t-base);
  cursor: pointer;
}
.event-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--yeh-border-2); }
.event-card:last-child { margin-bottom: 0; }
.event-thumb {
  width: 96px; height: 72px;
  border-radius: 11px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.event-thumb-fallback {
  width: 96px; height: 72px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--yeh-indigo), var(--yeh-violet));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.event-info { min-width: 0; }
.event-title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
.event-title { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; color: var(--yeh-ink); letter-spacing: -0.015em; }
.event-meta { display: flex; align-items: center; gap: 0.9rem; font-size: 0.78rem; color: var(--yeh-ink-3); flex-wrap: wrap; }
.event-meta i { color: var(--yeh-ink-muted); margin-right: 0.3rem; }
.event-type-tag { font-size: 0.72rem; color: var(--yeh-ink-3); margin-top: 0.3rem; }
.event-type-tag span { font-weight: 600; }
.event-type-tag .public { color: var(--yeh-info); }
.event-type-tag .private { color: var(--yeh-violet); }
.event-type-tag .hybrid { color: var(--yeh-coral); }
.event-type-tag .approval { color: var(--yeh-amber); }

.event-stats { text-align: right; min-width: 110px; }
.event-stats .num { font-family: 'Manrope', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--yeh-ink); }
.event-stats .label { font-size: 0.72rem; color: var(--yeh-ink-muted); margin-top: 1px; }
.event-progress {
  height: 5px; border-radius: 999px;
  background: var(--yeh-elev-3); margin-top: 0.4rem;
  overflow: hidden; min-width: 110px;
}
.event-progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yeh-indigo), var(--yeh-violet)); transition: width var(--t-slow); }
.event-progress.full > div { background: linear-gradient(90deg, var(--yeh-success), var(--yeh-mint)); }

.event-status {
  min-width: 110px;
  padding: 0.5rem 0.65rem;
  border-radius: 11px;
  text-align: center;
}
.event-status .label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.event-status .sub { font-size: 0.78rem; margin-top: 0.15rem; font-weight: 600; color: var(--yeh-ink); }
.event-status.live    { background: var(--tint-mint);     color: var(--yeh-success); }
.event-status.upcoming{ background: var(--tint-lavender); color: var(--yeh-indigo); }
.event-status.draft   { background: var(--yeh-elev-3);    color: var(--yeh-ink-muted); }
.event-status.ended   { background: var(--tint-pearl);    color: var(--yeh-ink-3); }
.event-status .sub-muted { font-size: 0.72rem; color: inherit; opacity: 0.85; margin-top: 0.15rem; }

/* === Badges (general) === */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.badge-vip      { background: linear-gradient(135deg, #FBF3E7, #FCE5DE); color: #B07A1F; border: 1px solid rgba(176,122,31,0.15); }
.badge-live     { background: var(--tint-mint); color: var(--yeh-success); }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--yeh-success); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1; box-shadow: 0 0 0 0 rgba(45,186,143,0.5)} 50%{opacity:.85; box-shadow: 0 0 0 6px rgba(45,186,143,0)} }
.badge-upcoming { background: var(--tint-lavender); color: var(--yeh-indigo); }
.badge-purple   { background: var(--tint-lavender); color: var(--yeh-violet); }
.badge-blue     { background: var(--tint-sky); color: var(--yeh-info); }
.badge-green    { background: var(--tint-mint); color: var(--yeh-success); }
.badge-amber    { background: var(--tint-cream); color: #B07A1F; }
.badge-rose     { background: var(--tint-rose); color: #C5476A; }
.badge-gray     { background: var(--yeh-elev-3); color: var(--yeh-ink-3); }
.badge-cyan     { background: var(--tint-sky); color: var(--yeh-info); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--yeh-indigo), var(--yeh-violet));
  color: white;
  box-shadow: 0 6px 16px rgba(91, 91, 241, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(91, 91, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-ghost {
  background: var(--yeh-elev-2);
  color: var(--yeh-ink-2);
  border-color: var(--yeh-border);
}
.btn-ghost:hover { background: var(--yeh-surface); color: var(--yeh-ink); box-shadow: var(--shadow-sm); }
.btn-ghost.active { background: var(--yeh-surface); color: var(--yeh-ink); box-shadow: var(--shadow-sm); border-color: var(--yeh-border-2); }
.btn-soft {
  background: var(--tint-lavender);
  color: var(--yeh-indigo);
}
.btn-soft:hover { background: var(--yeh-surface-3); box-shadow: var(--shadow-sm); }
.btn-danger {
  background: linear-gradient(135deg, #F47086, var(--yeh-danger));
  color: white;
  box-shadow: 0 4px 12px rgba(229, 90, 107, 0.22);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(229, 90, 107, 0.32); }
.btn-success {
  background: linear-gradient(135deg, var(--yeh-mint), var(--yeh-success));
  color: white;
  box-shadow: 0 4px 12px rgba(45, 186, 143, 0.22);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; border-radius: 9px; }
.btn-lg { padding: 0.75rem 1.4rem; font-size: 0.95rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0.5rem; aspect-ratio: 1; }

/* === Quick Actions grid (right rail) === */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.quick-action {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem;
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.quick-action:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--yeh-border-2); }
.qa-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.qa-icon.lavender { background: var(--tint-lavender); color: var(--yeh-indigo); }
.qa-icon.coral    { background: var(--tint-coral); color: #DA5C3F; }
.qa-icon.mint     { background: var(--tint-mint); color: var(--yeh-success); }
.qa-icon.cream    { background: var(--tint-cream); color: #B07A1F; }
.qa-icon.sky      { background: var(--tint-sky); color: var(--yeh-info); }
.qa-icon.rose     { background: var(--tint-rose); color: #C5476A; }
.qa-title { font-size: 0.86rem; font-weight: 650; color: var(--yeh-ink); line-height: 1.2; }
.qa-sub   { font-size: 0.72rem; color: var(--yeh-ink-muted); margin-top: 1px; }

/* === Activity feed === */
.activity-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--yeh-border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.activity-dot.checkin { background: var(--tint-mint); color: var(--yeh-success); }
.activity-dot.reg     { background: var(--tint-lavender); color: var(--yeh-indigo); }
.activity-dot.upload  { background: var(--tint-cream); color: #B07A1F; }
.activity-dot.send    { background: var(--tint-sky); color: var(--yeh-info); }
.activity-dot.wa      { background: var(--tint-mint); color: var(--yeh-success); }
.activity-text { font-size: 0.86rem; color: var(--yeh-ink); line-height: 1.35; }
.activity-meta { font-size: 0.74rem; color: var(--yeh-ink-muted); margin-top: 2px; }
.activity-time { font-size: 0.72rem; color: var(--yeh-ink-muted); margin-left: auto; white-space: nowrap; }

/* === Funnel stage === */
.funnel-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 1100px) { .funnel-row { grid-template-columns: repeat(2, 1fr); } }
.funnel-stage {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
}
.funnel-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.funnel-label { font-size: 0.74rem; color: var(--yeh-ink-3); font-weight: 500; }
.funnel-num   { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--yeh-ink); letter-spacing: -0.025em; margin-top: 1px; }
.funnel-pct   { font-size: 0.72rem; color: var(--yeh-ink-muted); margin-top: 2px; }

/* === Forms === */
.field { margin-bottom: 0.95rem; }
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--yeh-ink-2);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border-2);
  color: var(--yeh-ink);
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--t-fast);
  font-weight: 450;
}
.input::placeholder, .textarea::placeholder { color: var(--yeh-ink-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--yeh-border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--yeh-indigo);
  box-shadow: 0 0 0 4px rgba(91, 91, 241, 0.10);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238B91B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

/* === Tables === */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yeh-ink-muted);
  padding: 0.85rem 1.1rem;
  background: var(--yeh-elev-2);
  border-bottom: 1px solid var(--yeh-border);
}
.table tbody td {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--yeh-ink);
  border-bottom: 1px solid var(--yeh-border);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--yeh-elev-2); }

/* === Tabs === */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs .tab-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--yeh-ink-3);
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.tabs .tab-btn:hover { color: var(--yeh-ink); }
.tabs .tab-btn.active {
  background: var(--yeh-surface);
  color: var(--yeh-ink);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* === Modal === */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw; height: 100vh;
  background: rgba(15, 20, 56, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999 !important;
  padding: 1.5rem;
  animation: fadeIn var(--t-base);
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.modal {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 22px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  animation: slideUp var(--t-base);
}
@keyframes slideUp { from {opacity:0; transform: translateY(20px)} to {opacity:1; transform: translateY(0)} }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-title { font-family: 'Manrope', sans-serif; font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border: none; background: var(--yeh-elev-3); color: var(--yeh-ink-3);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--yeh-elev-3); color: var(--yeh-ink); }

/* === Toast === */
/* z-index must be HIGHER than modal-backdrop (9999) so error/success toasts
   stay visible while a modal is open. Otherwise users click Save, an error
   toast fires, and it renders behind the dark backdrop — looks like "nothing
   happened". Lesson learned from production. */
.toast-host { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 10050; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast-host > * { pointer-events: auto; }

/* === Inline form error (shown inside modals/forms when submit fails) === */
.form-error {
  background: color-mix(in srgb, var(--yeh-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--yeh-danger) 40%, transparent);
  color: var(--yeh-danger);
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-error i { margin-top: 0.15rem; flex-shrink: 0; }
.form-error[hidden] { display: none !important; }
.toast {
  background: var(--yeh-elev-3);
  backdrop-filter: blur(20px);
  border: 1px solid var(--yeh-border);
  color: var(--yeh-ink);
  padding: 0.85rem 1.1rem;
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  min-width: 260px;
  animation: toastIn var(--t-base);
}
@keyframes toastIn { from {opacity:0; transform: translateX(20px)} to {opacity:1; transform: translateX(0)} }
.toast.success { border-left: 3px solid var(--yeh-success); }
.toast.error   { border-left: 3px solid var(--yeh-danger); }
.toast.warning { border-left: 3px solid var(--yeh-warn); }
.toast.info    { border-left: 3px solid var(--yeh-info); }

/* === Utility === */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* === Live status indicator === */
.live-pulse {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--yeh-success);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-pulse::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px;
  background: var(--yeh-success);
  box-shadow: 0 0 0 0 rgba(45, 186, 143, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}

/* === Doughnut chart label === */
.donut-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.donut-label .big { font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 750; letter-spacing: -0.025em; color: var(--yeh-ink); }
.donut-label .sub { font-size: 0.7rem; color: var(--yeh-ink-muted); margin-top: -2px; }

/* === Scrollbar polish === */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(15, 20, 56, 0.10); border-radius: 999px; border: 2px solid var(--yeh-bg); }
*::-webkit-scrollbar-thumb:hover { background: rgba(15, 20, 56, 0.18); }

/* === Login page === */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
}
.login-card {
  width: 100%; max-width: 440px;
  padding: 2.5rem 2.25rem;
  background: var(--yeh-elev-3);
  border: 1px solid var(--yeh-border);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(28px) saturate(180%);
}
.demo-fill {
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  color: var(--yeh-ink-2);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.demo-fill:hover { background: var(--yeh-surface); }

/* === Marketing/Landing === */
.marketing-shell {
  min-height: 100vh;
  padding: 2rem;
}

/* Legacy aliases for marketing/landing pages */
:root {
  --yeh-primary: var(--yeh-indigo);
  --yeh-secondary: var(--yeh-violet);
  --yeh-text-dim: var(--yeh-ink-3);
  --yeh-text: var(--yeh-ink);
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yeh-success);
  box-shadow: 0 0 0 0 rgba(45, 186, 143, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.btn-secondary {
  background: var(--yeh-elev-3);
  color: var(--yeh-ink);
  border: 1px solid var(--yeh-border-2);
}
.btn-secondary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }

/* Force-fix any hardcoded white text from old code */
.stat-value { color: var(--yeh-ink) !important; }
.stat-label { color: var(--yeh-ink-3) !important; }

/* ==========================================================================
   PUBLIC EVENT LANDING PAGE — v2 luxury enterprise design
   ========================================================================== */

.lp-shell {
  --brand-primary: var(--yeh-indigo);
  --brand-secondary: var(--yeh-violet);
  min-height: 100vh;
  background: var(--yeh-bg);
  color: var(--yeh-ink);
  font-family: 'Inter', -apple-system, sans-serif;
}

.lp-error, .landing-error {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--yeh-bg);
  color: var(--yeh-ink);
  font-family: 'Inter', sans-serif;
}

/* ---------- NAV ---------- */
.lp-nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--yeh-border);
}
.lp-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.lp-brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
  color: var(--yeh-ink);
  font-weight: 700;
}
.lp-brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(91, 91, 241, 0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.lp-brand-logo {
  height: 36px; width: auto; max-width: 140px;
  object-fit: contain;
}
.lp-brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
  color: var(--yeh-ink);
}
.lp-nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.lp-nav-links a {
  color: var(--yeh-ink-3);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.lp-nav-links a:hover { color: var(--yeh-ink); }
.lp-type-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tint-lavender), var(--tint-pearl));
  color: var(--brand-primary);
  font-weight: 600; font-size: 0.78rem;
  border: 1px solid rgba(91, 91, 241, 0.12);
}
.lp-type-pill i { font-size: 0.7rem; }

/* ---------- HERO ---------- */
.lp-hero {
  position: relative;
  background:
    radial-gradient(700px 500px at 10% 0%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 90% 50%, rgba(91, 91, 241, 0.08), transparent 65%),
    linear-gradient(180deg, var(--yeh-surface-3) 0%, var(--yeh-bg) 100%);
  padding: 3rem 0 0;
  overflow: hidden;
}
.lp-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}
.lp-hero-text {
  z-index: 2; position: relative;
}
.lp-hero-badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
}
.lp-hero-badge-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 12px 32px rgba(91, 91, 241, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  background: white; /* fallback so inline style cleanly overrides */
}
.lp-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--yeh-ink);
  margin: 0 0 1rem;
}
.lp-hero-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--brand-primary); /* fallback */
}
.lp-hero-desc {
  color: var(--yeh-ink-3);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

.lp-hero-visual {
  position: relative;
  z-index: 1;
}
.lp-hero-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0 28px 120px 28px;
  background-size: cover;
  background-position: center;
  background-color: var(--yeh-surface-3);
  box-shadow: 0 24px 64px rgba(15, 20, 56, 0.18), 0 6px 16px rgba(15, 20, 56, 0.08);
  position: relative;
  overflow: hidden;
}
.lp-hero-image-fallback {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 5rem;
}
.lp-hero-curve {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 80px;
  display: block;
}

/* ---------- INFO STRIP (date · location · type · organizer) ---------- */
.lp-info-section {
  background: var(--yeh-bg);
  padding: 0.5rem 0 1.75rem;
}
.lp-info-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.lp-info-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  min-height: 64px;
}
.lp-info-text {
  display: flex; flex-direction: column;
  min-width: 0; flex: 1;
}
.lp-info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--tint-lavender);
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.lp-info-label {
  font-size: 0.72rem;
  color: var(--yeh-ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.lp-info-value {
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--yeh-ink);
  line-height: 1.3;
  word-break: break-word;
}
.lp-info-sub {
  font-size: 0.8rem;
  color: var(--yeh-ink-3);
  margin-top: 3px;
  line-height: 1.35;
  word-break: break-word;
}

/* ---------- BODY (2-col with sticky right) ---------- */
.lp-body {
  background: var(--yeh-bg);
  padding: 2.5rem 0 3rem;
}
.lp-body-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 3rem;
  align-items: start;
}
.lp-content { min-width: 0; }
.lp-section { margin-bottom: 3rem; }
.lp-section:last-child { margin-bottom: 0; }

.lp-h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--yeh-ink);
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.lp-h2-rule {
  width: 36px; height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}
.lp-prose {
  color: var(--yeh-ink-2);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0 0 1.75rem;
}

/* Feature pills (Learn · Connect · Secure · Scale) */
.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.lp-feature {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: all var(--t-base);
}
.lp-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--yeh-border-2); }
.lp-feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--tint-lavender);
  color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.lp-feature-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--yeh-ink);
  margin-bottom: 0.3rem;
}
.lp-feature-desc {
  font-size: 0.78rem;
  color: var(--yeh-ink-3);
  line-height: 1.45;
}

/* Agenda */
.lp-agenda {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 16px;
  overflow: hidden;
}
.lp-agenda-row {
  display: grid;
  grid-template-columns: 110px 1px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--yeh-border);
}
.lp-agenda-row:last-child { border-bottom: none; }
.lp-agenda-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-primary);
  padding-top: 0.1rem;
}
.lp-agenda-divider { background: var(--yeh-border); width: 1px; }
.lp-agenda-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--yeh-ink);
}
.lp-agenda-speaker {
  font-size: 0.8rem;
  color: var(--yeh-ink-3);
  margin-top: 0.2rem;
}

/* Speakers */
.lp-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.lp-speaker {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 14px;
  padding: 1.1rem 0.9rem;
  text-align: center;
  transition: all var(--t-base);
}
.lp-speaker:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-speaker-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  box-shadow: var(--shadow-sm);
}
.lp-speaker-fallback {
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.lp-speaker-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yeh-ink);
  margin-bottom: 0.15rem;
}
.lp-speaker-role {
  font-size: 0.76rem;
  color: var(--yeh-ink-3);
}

/* Sponsors */
.lp-sponsors-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yeh-ink-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}
.lp-sponsors {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.lp-sponsor {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  color: var(--yeh-ink-2);
  font-size: 0.88rem;
}
.lp-sponsor img { max-height: 32px; display: block; }

/* Please-note box */
.lp-note {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--tint-lavender);
  border: 1px solid rgba(91, 91, 241, 0.15);
  border-radius: 14px;
}
.lp-note-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: white;
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.lp-note-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--yeh-ink);
  margin-bottom: 0.25rem;
}
.lp-note-text {
  font-size: 0.85rem;
  color: var(--yeh-ink-2);
  line-height: 1.5;
}

/* ---------- REGISTRATION CARD (sticky right) ---------- */
.lp-register-wrap {
  position: sticky;
  top: 96px;
  align-self: start;
}
.lp-register {
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border);
  border-radius: 22px;
  padding: 2rem 1.85rem;
  box-shadow: 0 16px 48px rgba(15, 20, 56, 0.08), 0 4px 12px rgba(15, 20, 56, 0.04);
}
.lp-register-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--yeh-ink);
  margin: 0 0 0.4rem;
}
.lp-register-sub {
  font-size: 0.88rem;
  color: var(--yeh-ink-3);
  margin: 0 0 1.5rem;
}
.lp-register-secure {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--yeh-ink-muted);
}
.lp-register-secure i { margin-right: 0.3rem; color: var(--yeh-ink-muted); }

/* Form fields */
.lp-form { display: block; }
.lp-field { margin-bottom: 1rem; }
.lp-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yeh-ink-2);
  margin-bottom: 0.4rem;
}
.lp-req { color: var(--yeh-danger); font-weight: 700; margin-left: 1px; }
.lp-input {
  width: 100%;
  background: var(--yeh-surface);
  border: 1px solid var(--yeh-border-2);
  color: var(--yeh-ink);
  padding: 0.7rem 0.9rem;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--t-fast);
}
.lp-input::placeholder { color: var(--yeh-ink-muted); }
.lp-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(91, 91, 241, 0.10);
}
.lp-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.lp-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238B91B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.lp-consent {
  margin: 0.5rem 0 1.1rem;
  font-size: 0.78rem;
  color: var(--yeh-ink-3);
  line-height: 1.5;
}
.lp-consent label { display: flex; align-items: flex-start; gap: 0.55rem; cursor: pointer; }
.lp-consent input[type=checkbox] {
  accent-color: var(--brand-primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.lp-consent a { color: var(--brand-primary); text-decoration: none; font-weight: 500; }
.lp-consent a:hover { text-decoration: underline; }

.lp-submit {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  box-shadow: 0 8px 20px rgba(91, 91, 241, 0.30), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all var(--t-fast);
}
.lp-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(91, 91, 241, 0.40), inset 0 1px 0 rgba(255,255,255,0.22);
}
.lp-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.lp-submit-ghost {
  background: var(--yeh-elev-2);
  color: var(--yeh-ink);
  box-shadow: var(--shadow-sm);
}
.lp-submit-ghost:hover:not(:disabled) { background: var(--yeh-surface); }

/* Empty / success states inside form */
.lp-empty {
  text-align: center;
  padding: 1rem 0;
}
.lp-empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  background: var(--tint-cream);
  color: #B07A1F;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.lp-empty-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yeh-ink);
  margin-bottom: 0.4rem;
}
.lp-empty-text { font-size: 0.88rem; color: var(--yeh-ink-2); margin: 0 0 0.3rem; }
.lp-empty-sub { font-size: 0.78rem; color: var(--yeh-ink-3); margin: 0; }

.lp-success { text-align: center; padding: 0.5rem 0; }
.lp-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.lp-success-success { background: var(--tint-mint); color: var(--yeh-success); }
.lp-success-warn    { background: var(--tint-cream); color: #B07A1F; }
.lp-success-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--yeh-ink);
  margin: 0 0 0.4rem;
}
.lp-success-text { font-size: 0.9rem; color: var(--yeh-ink-2); margin: 0 0 1.25rem; }
.lp-qr-card {
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.lp-qr-card canvas { display: block; margin: 0 auto 0.6rem; border-radius: 8px; }
.lp-qr-code {
  font-size: 0.78rem;
  color: var(--yeh-ink-3);
  word-break: break-all;
  margin-bottom: 0.5rem;
}
.lp-qr-hint { font-size: 0.74rem; color: var(--yeh-ink-muted); }
.lp-confirm-channel {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--yeh-ink-3);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- HELP BAR ---------- */
.lp-help {
  background: var(--yeh-bg);
  padding: 1.5rem 0 2rem;
}
.lp-help-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.6rem;
  background: var(--yeh-surface-3);
  border: 1px solid var(--yeh-border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lp-help-item {
  display: flex; align-items: center; gap: 0.85rem;
}
.lp-help-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: white;
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.lp-help-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yeh-ink);
  margin-bottom: 1px;
}
.lp-help-text {
  font-size: 0.85rem;
  color: var(--yeh-ink-3);
}
.lp-help-text a { color: var(--brand-primary); text-decoration: none; font-weight: 500; }
.lp-help-text a:hover { text-decoration: underline; }
.lp-help-phone {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--yeh-ink);
}

/* ---------- FOOTER ---------- */
.lp-footer {
  background: var(--yeh-bg);
  border-top: 1px solid var(--yeh-border);
  margin-top: 1rem;
}
.lp-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lp-footer-copy {
  font-size: 0.78rem;
  color: var(--yeh-ink-muted);
}
.lp-footer-links {
  display: flex; gap: 1.5rem; align-items: center;
  flex-wrap: wrap;
}
.lp-footer-links a {
  color: var(--yeh-ink-3);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color var(--t-fast);
}
.lp-footer-links a:hover { color: var(--yeh-ink); }
.lp-powered {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .lp-nav-inner { padding: 0.85rem 1.25rem; gap: 1rem; flex-wrap: wrap; }
  .lp-nav-links { gap: 1rem; font-size: 0.82rem; flex-wrap: wrap; }
  .lp-nav-links a:not(.lp-type-pill) { display: none; }

  .lp-hero { padding: 2rem 0 0; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 3rem; }
  .lp-hero-image { aspect-ratio: 16/10; border-radius: 0 20px 60px 20px; }
  .lp-info-strip { grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 0 1.25rem 2rem; }

  .lp-body-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem; }
  .lp-register-wrap { position: static; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-help-inner { padding: 1rem; flex-direction: column; align-items: flex-start; }
  .lp-footer-inner { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .lp-info-strip { grid-template-columns: 1fr; }
  .lp-hero-title { font-size: 1.9rem; }
  .lp-features { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   CHECK-IN: Welcome Overlay (full-bleed flash on QR scan)
   ============================================================ */
.checkin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yeh-success) 0%, #1aa07a 100%);
  color: #fff;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.96);
  animation: checkinIn 280ms cubic-bezier(0.2, 0.9, 0.3, 1.15) forwards;
}
.checkin-overlay.fading {
  animation: checkinOut 380ms ease forwards;
}
.checkin-overlay.success { background: linear-gradient(135deg, #2DBA8F 0%, #109670 100%); }
.checkin-overlay.duplicate { background: linear-gradient(135deg, #F0A93B 0%, #d68a1d 100%); }
.checkin-overlay.blocked { background: linear-gradient(135deg, #E55A6B 0%, #b8364a 100%); }

.checkin-overlay .co-icon {
  font-size: clamp(4rem, 10vw, 7rem);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.25));
}
.checkin-overlay .co-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}
.checkin-overlay .co-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 6px 28px rgba(0,0,0,0.25);
}
.checkin-overlay .co-meta {
  font-size: clamp(1rem, 2vw, 1.4rem);
  opacity: 0.85;
  margin-top: 0.75rem;
  font-weight: 500;
}
.checkin-overlay .co-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.18);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}
.checkin-overlay .co-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.8;
}
.checkin-overlay .co-tap {
  position: absolute;
  bottom: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes checkinIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes checkinOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.02); }
}

/* ============================================================
   CHECK-IN: Fullscreen scanner mode (hides sidebar + topbar)
   ============================================================ */
body.checkin-fullscreen .sidebar { display: none !important; }
body.checkin-fullscreen .main-area { margin-left: 0 !important; padding: 0 !important; }
body.checkin-fullscreen .page-wrap { padding: 0 !important; max-width: 100% !important; }
body.checkin-fullscreen .topbar { display: none !important; }
body.checkin-fullscreen .scanner-page-fs { padding: 1rem; min-height: 100vh; }
body.checkin-fullscreen .scanner-fs-exit {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9000;
  background: rgba(15, 20, 56, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.scanner-fs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   Contact picker (landing page) — Email/Mobile toggle + ISD code dropdown
   ============================================================ */
.lp-contact-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  background: rgba(91, 91, 241, 0.06);
  padding: 0.25rem;
  border-radius: 10px;
  width: fit-content;
}
.lp-contact-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yeh-ink-muted, #7d80a4);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lp-contact-tab:hover { color: var(--yeh-ink, #0F1438); }
.lp-contact-tab.is-active {
  background: #fff;
  color: var(--yeh-primary, #5B5BF1);
  box-shadow: 0 2px 8px rgba(15, 20, 56, 0.08);
}
.lp-contact-pane { position: relative; }
.lp-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.lp-phone-cc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #E5E3EE;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--yeh-ink, #0F1438);
  cursor: pointer;
  min-width: 110px;
  transition: border-color 0.18s ease;
}
.lp-phone-cc:hover { border-color: var(--yeh-primary, #5B5BF1); }
.lp-phone-cc-flag img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: block; }
.lp-phone-cc-code { font-variant-numeric: tabular-nums; }
.lp-phone-cc-caret { font-size: 0.75rem; opacity: 0.6; }
.lp-phone-num { flex: 1; min-width: 0; }
.lp-phone-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #E5E3EE;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 20, 56, 0.14);
  overflow: hidden;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
/* CRITICAL: HTML [hidden] attribute must beat the display:flex above */
.lp-phone-dropdown[hidden] { display: none !important; }
.lp-phone-search {
  border: 0;
  border-bottom: 1px solid #ECEAF5;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  outline: 0;
  width: 100%;
  background: #FAFAFC;
}
.lp-phone-list {
  overflow-y: auto;
  max-height: 260px;
}
.lp-phone-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.88rem;
  text-align: left;
  color: var(--yeh-ink, #0F1438);
  transition: background 0.12s ease;
}
.lp-phone-item:hover { background: rgba(91, 91, 241, 0.06); }
.lp-phone-item-flag img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: block; }
.lp-phone-item-country { flex: 1; }
.lp-phone-item-code { color: var(--yeh-ink-muted, #7d80a4); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.lp-phone-divider {
  height: 1px;
  background: #ECEAF5;
  margin: 0.3rem 0;
}
.lp-phone-empty {
  padding: 1rem;
  text-align: center;
  color: var(--yeh-ink-muted, #7d80a4);
  font-size: 0.85rem;
}


/* ============================================================
   Scanner / Check-in page — responsive layout
   Works in both regular and fullscreen modes
   ============================================================ */
.scanner-wrap { width: 100%; min-width: 0; }
/* 4-up KPI row that gracefully collapses */
.scanner-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.scanner-stats > * { min-width: 0; }
@media (max-width: 900px) {
  .scanner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 380px) {
  .scanner-stats { grid-template-columns: 1fr !important; gap: 0.5rem; }
}
/* Scanner + Search row — stack on tablet and below, side-by-side only with real space */
.scanner-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem;
}
@media (min-width: 900px) {
  .scanner-grid { grid-template-columns: 1.2fr 1fr !important; }
}
.scanner-grid > * { min-width: 0; max-width: 100%; }
/* QR reader video should fill its container, not overflow */
#reader { width: 100% !important; max-width: 100%; min-height: 240px; }
#reader video, #reader canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
}
/* Topbar action buttons (Fullscreen / Back) wrap on mobile */
@media (max-width: 720px) {
  .topbar .flex.gap-2 { width: 100%; }
  .topbar .flex.gap-2 .btn { flex: 1; font-size: 0.85rem; padding: 0.55rem 0.7rem; }
  .topbar .flex.gap-2 .btn i { margin-right: 0.3rem; }
}

/* ============================================================
   Check-in fullscreen — make it truly responsive (overrides scanner styles)
   ============================================================ */
body.checkin-fullscreen { overflow-y: auto; }
body.checkin-fullscreen .scanner-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  body.checkin-fullscreen .scanner-wrap { padding: 0.75rem; }
  body.checkin-fullscreen .scanner-fs-exit {
    top: 0.5rem !important;
    right: 0.5rem !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
}
/* In fullscreen, give the scanner more breathing room when there's space */
@media (min-width: 1200px) {
  body.checkin-fullscreen .scanner-grid {
    grid-template-columns: 1.4fr 1fr !important;
  }
  body.checkin-fullscreen #reader { min-height: 420px; }
}

/* ============================================================
   Image Upload Widget — dropzone, preview, status
   ============================================================ */
.img-upload { display: flex; flex-direction: column; }
.img-upload-zone {
  border: 1.5px dashed var(--yeh-border);
  border-radius: 12px;
  background: var(--yeh-elev-2);
  transition: all var(--t-fast);
  overflow: hidden;
  position: relative;
}
.img-upload-zone:hover {
  border-color: var(--yeh-primary, #5B5BF1);
  background: rgba(91, 91, 241, 0.04);
}
.img-upload-zone.is-drag {
  border-color: var(--yeh-primary, #5B5BF1);
  background: rgba(91, 91, 241, 0.10);
  border-style: solid;
}
.img-upload-zone.has-image { border-style: solid; background: var(--yeh-surface, #fff); }

.img-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  cursor: pointer;
  text-align: center;
  gap: 0.4rem;
}
/* HTML `hidden` attribute must win over the display:flex above */
.img-upload-empty[hidden],
.img-upload-preview[hidden] {
  display: none !important;
}
.img-upload-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91,91,241,0.10), rgba(124,92,255,0.10));
  display: flex; align-items: center; justify-content: center;
  color: var(--yeh-primary, #5B5BF1);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.img-upload-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--yeh-ink, #0F1438);
}
.img-upload-hint {
  font-size: 0.78rem;
  color: var(--yeh-ink-muted, #7d80a4);
  line-height: 1.4;
}

.img-upload-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
}
.img-upload-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--yeh-elev-2);
  border: 1px solid var(--yeh-border);
  flex-shrink: 0;
}
.img-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}
.img-upload-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  justify-content: flex-start;
}

.img-upload-status {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}
.img-upload-status.info    { background: rgba(91, 91, 241, 0.08); color: var(--yeh-primary, #5B5BF1); }
.img-upload-status.success { background: rgba(45, 186, 143, 0.10); color: var(--yeh-success, #2DBA8F); }
.img-upload-status.error   { background: rgba(229, 90, 107, 0.10); color: var(--yeh-danger, #E55A6B); }

@media (max-width: 560px) {
  .img-upload-preview { flex-direction: column; align-items: stretch; }
  .img-upload-thumb { width: 100%; height: 140px; }
  .img-upload-actions { flex-direction: row; }
  .img-upload-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   BADGE STUDIO — Phase 1
   ============================================================ */

/* iOS-style toggle */
.bs-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.bs-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bs-switch .bs-track {
  width: 46px; height: 26px; border-radius: 99px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--yeh-border);
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.bs-switch .bs-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.18s ease;
}
.bs-switch input:checked + .bs-track {
  background: linear-gradient(135deg, var(--yeh-primary), var(--yeh-secondary));
  border-color: transparent;
}
.bs-switch input:checked + .bs-track .bs-thumb { transform: translateX(20px); }
.bs-switch input:disabled + .bs-track { opacity: 0.5; cursor: not-allowed; }
.bs-switch-label { font-size: 0.9rem; font-weight: 600; color: var(--yeh-ink); }

/* Checkbox row */
.bs-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--yeh-ink-2);
  cursor: pointer;
  user-select: none;
}
.bs-check input { width: 16px; height: 16px; accent-color: var(--yeh-indigo, #6366f1); }

/* Template grid */
.bs-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.bs-tpl-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--yeh-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
  display: flex;
  flex-direction: column;
}
.bs-tpl-card:hover { border-color: var(--yeh-indigo, #6366f1); transform: translateY(-2px); }
.bs-tpl-card.is-inactive { opacity: 0.5; }
.bs-tpl-thumb {
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.35);
}
.bs-tpl-bg-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.6); color: white; border-radius: 6px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.bs-tpl-body { padding: 0.85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.bs-tpl-title {
  font-weight: 600; color: var(--yeh-ink); font-size: 0.95rem;
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.bs-tpl-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.5rem;
  font-size: 0.75rem; color: var(--yeh-ink-muted, #94a3b8); margin-bottom: 0.75rem;
}
.bs-tpl-meta i { width: 14px; opacity: 0.7; margin-right: 0.25rem; }
.bs-tpl-actions {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  padding-top: 0.5rem; border-top: 1px solid var(--yeh-border);
  margin-bottom: 0.5rem;
}
.bs-tpl-foot { padding-top: 0.5rem; border-top: 1px dashed var(--yeh-border); }

/* Pills */
.bs-pill {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 99px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.bs-pill-default { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1f1f1f; }
.bs-pill-inactive { background: rgba(239,68,68,0.15); color: #fca5a5; }
