/* ==========================================================================
   LocalEventPass — Civic Editorial Design System
   Warm paper ground, cinnabar accent, system-first modern sans (Apple's own
   San Francisco / PingFang SC on Apple devices, Inter / Noto Sans SC elsewhere).
   Content flows on the page (hairline rules, no card-soup); only true
   objects (cover, registration card, partner strip) carry a surface.
   ========================================================================== */

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

:root,
[data-theme="light"] {
  color-scheme: light;

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Inter', 'Segoe UI', 'Noto Sans SC', 'Microsoft YaHei', Roboto, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Inter', 'Segoe UI', 'Noto Sans SC', 'Microsoft YaHei', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Warm paper neutrals — Light Mode */
  --paper: #faf8f4;
  --paper-deep: #f2ede5;
  --surface: #ffffff;
  --surface-2: #f5f1ea;
  --surface-3: #ebe5da;

  --line: #e4ddd1;
  --line-soft: #efe9df;
  --line-strong: #d3c9b9;

  --ink: #1a1512;
  --ink-2: #5b5148;
  --ink-3: #8d8378;

  /* Accents — Light Mode */
  --accent: #bd4630;          /* cinnabar — dates, rails, marks */
  --accent-deep: #9c3524;
  --accent-soft: #fbf0ec;
  --accent-line: #f0d5cb;

  --jade: #17694e;            /* verified / included */
  --jade-soft: #eaf4ef;
  --jade-line: #cbe4d8;

  --gold: #9a6c15;
  --gold-soft: #faf2df;
  --gold-line: #ecdcb6;

  /* Legacy aliases — Light Mode */
  --bg-page: var(--paper);
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-2);
  --bg-subtle-hover: var(--surface-3);
  --border: var(--line);
  --border-subtle: var(--line-soft);
  --border-hover: var(--line-strong);
  --color-border: var(--line);
  --text-main: var(--ink);
  --text-muted: var(--ink-2);
  --text-subtle: var(--ink-3);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--ink-2);
  --color-text-tertiary: var(--ink-3);
  --color-surface-subtle: var(--surface-2);
  --brand-primary: var(--ink);
  --brand-primary-hover: #322822;
  --brand-primary-text: #ffffff;
  --brand-civic: var(--accent);
  --brand-civic-light: var(--accent-soft);
  --color-civic-blue: var(--accent);
  --brand-success: var(--jade);
  --brand-success-light: var(--jade-soft);
  --color-jade-emerald: var(--jade);
  --color-amber-gold: var(--gold);

  /* Header & Buttons — Light Mode */
  --header-bg: rgba(250, 248, 244, 0.85);
  --header-border: var(--line);
  --btn-black-bg: #1a1512;
  --btn-black-text: #ffffff;
  --btn-black-hover: #2c231d;
  --btn-black-border: #1a1512;

  /* Spacing (8px baseline) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 26px; --r-full: 9999px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 9999px;

  /* Shadows — Light Mode */
  --shadow-sm: 0 1px 2px rgba(60, 42, 28, 0.05);
  --shadow-card: 0 1px 2px rgba(60, 42, 28, 0.05), 0 10px 24px -12px rgba(60, 42, 28, 0.14);
  --shadow-hover: 0 2px 4px rgba(60, 42, 28, 0.05), 0 18px 34px -14px rgba(60, 42, 28, 0.20);
  --shadow-sticky: 0 2px 4px rgba(60, 42, 28, 0.04), 0 22px 44px -20px rgba(60, 42, 28, 0.26);
  --shadow-modal: 0 40px 80px -24px rgba(26, 21, 18, 0.45);
  --shadow-subtle: var(--shadow-sm);
  --shadow-pass: var(--shadow-sticky);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Theme (Luma Signature Obsidian Aesthetic)
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;

  /* Obsidian neutrals — Dark Mode */
  --paper: #0b0c0e;
  --paper-deep: #060708;
  --surface: #131518;
  --surface-2: #181a1e;
  --surface-3: #22252b;

  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #f8fafc;
  --ink-2: #94a3b8;
  --ink-3: #64748b;

  /* Accents — Dark Mode */
  --accent: #f43f5e;
  --accent-deep: #e11d48;
  --accent-soft: rgba(244, 63, 94, 0.15);
  --accent-line: rgba(244, 63, 94, 0.3);

  --jade: #10b981;
  --jade-soft: rgba(16, 185, 129, 0.15);
  --jade-line: rgba(16, 185, 129, 0.3);

  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.15);
  --gold-line: rgba(245, 158, 11, 0.3);

  /* Legacy aliases — Dark Mode */
  --bg-page: var(--paper);
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-2);
  --bg-subtle-hover: var(--surface-3);
  --border: var(--line);
  --border-subtle: var(--line-soft);
  --border-hover: var(--line-strong);
  --color-border: var(--line);
  --text-main: var(--ink);
  --text-muted: var(--ink-2);
  --text-subtle: var(--ink-3);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--ink-2);
  --color-text-tertiary: var(--ink-3);
  --color-surface-subtle: var(--surface-2);
  --brand-primary: #ffffff;
  --brand-primary-hover: #e2e8f0;
  --brand-primary-text: #0b0c0e;
  --brand-civic: var(--accent);
  --brand-civic-light: var(--accent-soft);
  --color-civic-blue: var(--accent);
  --brand-success: var(--jade);
  --brand-success-light: var(--jade-soft);
  --color-jade-emerald: var(--jade);
  --color-amber-gold: var(--gold);

  /* Header & Buttons — Dark Mode */
  --header-bg: rgba(11, 12, 14, 0.85);
  --header-border: rgba(255, 255, 255, 0.09);
  --btn-black-bg: #ffffff;
  --btn-black-text: #0b0c0e;
  --btn-black-hover: #e2e8f0;
  --btn-black-border: rgba(255, 255, 255, 0.2);

  /* Shadows — Dark Mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-sticky: 0 12px 36px -6px rgba(0, 0, 0, 0.7);
  --shadow-modal: 0 40px 80px -20px rgba(0, 0, 0, 0.85);
  --shadow-subtle: var(--shadow-sm);
  --shadow-pass: var(--shadow-sticky);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b0c0e;
    --paper-deep: #060708;
    --surface: #131518;
    --surface-2: #181a1e;
    --surface-3: #22252b;

    --line: rgba(255, 255, 255, 0.09);
    --line-soft: rgba(255, 255, 255, 0.05);
    --line-strong: rgba(255, 255, 255, 0.16);

    --ink: #f8fafc;
    --ink-2: #94a3b8;
    --ink-3: #64748b;

    --accent: #f43f5e;
    --accent-deep: #e11d48;
    --accent-soft: rgba(244, 63, 94, 0.15);
    --accent-line: rgba(244, 63, 94, 0.3);

    --jade: #10b981;
    --jade-soft: rgba(16, 185, 129, 0.15);
    --jade-line: rgba(16, 185, 129, 0.3);

    --gold: #f59e0b;
    --gold-soft: rgba(245, 158, 11, 0.15);
    --gold-line: rgba(245, 158, 11, 0.3);

    --bg-page: var(--paper);
    --bg-card: var(--surface);
    --bg-subtle: var(--surface-2);
    --bg-subtle-hover: var(--surface-3);
    --border: var(--line);
    --border-subtle: var(--line-soft);
    --border-hover: var(--line-strong);
    --color-border: var(--line);
    --text-main: var(--ink);
    --text-muted: var(--ink-2);
    --text-subtle: var(--ink-3);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--ink-2);
    --color-text-tertiary: var(--ink-3);
    --color-surface-subtle: var(--surface-2);
    --brand-primary: #ffffff;
    --brand-primary-hover: #e2e8f0;
    --brand-primary-text: #0b0c0e;
    --brand-civic: var(--accent);
    --brand-civic-light: var(--accent-soft);
    --color-civic-blue: var(--accent);
    --brand-success: var(--jade);
    --brand-success-light: var(--jade-soft);
    --color-jade-emerald: var(--jade);
    --color-amber-gold: var(--gold);

    --header-bg: rgba(11, 12, 14, 0.85);
    --header-border: rgba(255, 255, 255, 0.09);
    --btn-black-bg: #ffffff;
    --btn-black-text: #0b0c0e;
    --btn-black-hover: #e2e8f0;
    --btn-black-border: rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
    --shadow-sticky: 0 12px 36px -6px rgba(0, 0, 0, 0.7);
    --shadow-modal: 0 40px 80px -20px rgba(0, 0, 0, 0.85);
    --shadow-subtle: var(--shadow-sm);
    --shadow-pass: var(--shadow-sticky);
  }
}

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

html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; }

/* Display type — one serif voice for titles, numbers, and the wordmark */
h1, h2,
.event-main-title,
.discover-title,
.sponsor-hero-title,
.explore-hero-title,
.section-block > h3,
.reg-price-val,
.pass-user-name,
.discover-section-title,
.stat-metric-val,
.date-day,
.brand-badge,
.brand-logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.luma-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--header-border);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.luma-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-8);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1875rem;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(189, 70, 48, 0.30);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-left: auto;
  margin-right: var(--s-4);
}

.header-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { transform: scaleX(1); }

.header-nav a.active {
  color: var(--ink);
  font-weight: 600;
}
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

@media (max-width: 860px) {
  .header-nav { display: none; }
  .luma-header-inner { padding: 0 var(--s-5); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              transform 0.18s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(0) scale(0.985); }

.btn-black {
  background: var(--btn-black-bg);
  color: var(--btn-black-text);
  border: 1px solid var(--btn-black-border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.btn-black:hover {
  background: var(--btn-black-hover);
  color: var(--btn-black-text);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--accent);
  transform: scale(1.05);
}
.theme-toggle-btn:active {
  transform: scale(0.95);
}
.theme-toggle-btn svg {
  display: block;
}

/* Toggle icon display: Sun in Dark, Moon in Light */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

:root:not([data-theme="dark"]) .sun-icon,
[data-theme="light"] .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon,
[data-theme="light"] .moon-icon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun-icon { display: block; }
  :root:not([data-theme="light"]) .moon-icon { display: none; }
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink-3); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px -2px rgba(189, 70, 48, 0.42);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(189, 70, 48, 0.55);
}

.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-3); }

[data-theme="dark"] .btn-outline {
  background: #181b20;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .btn-outline:hover {
  background: #242933;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .btn-secondary {
  background: #232730;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .btn-secondary:hover {
  background: #2d323e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Event page — two-column editorial layout
   ========================================================================== */
.luma-container {
  max-width: 1160px;
  margin: var(--s-10) auto var(--s-12);
  padding: 0 var(--s-8);
  width: 100%;
}

.luma-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1000px) {
  .luma-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
}

@media (max-width: 900px) {
  .luma-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); }
  .luma-container { padding: 0 var(--s-5); margin-top: var(--s-6); }
}

/* Cover */
.luma-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-3);
  margin-bottom: var(--s-8);
  box-shadow: var(--shadow-card);
}

.luma-cover-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, 0.08);
  pointer-events: none;
}

.luma-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.luma-cover-wrapper:hover .luma-cover-img { transform: scale(1.02); }

/* Title cluster */
.event-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: var(--s-4);
}

.event-date-pill::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.event-main-title {
  font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.15rem);
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: var(--s-6);
  text-wrap: balance;
}

.event-main-title .title-zh {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  margin-top: 0.38em;
}

/* Host row — a rule, not a card */
.host-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: var(--s-8);
}

.host-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.host-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.host-by {
  font-size: 0.6875rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.host-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* inline so the verified tick trails the last word instead of the line box */
.host-name svg { display: inline-block; vertical-align: -2px; margin-left: 5px; stroke: var(--jade); }

/* Key facts — plain rows */
.event-meta-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: var(--s-10);
}

.meta-row-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: 0;
  border: none;
}

.meta-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.meta-row-text { padding-top: 2px; }

.meta-row-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.meta-row-text p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }

.meta-row-text a { color: var(--accent); text-decoration: none; font-weight: 600; }
.meta-row-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sections — hairline separated, no boxes */
.section-block {
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: var(--s-10) 0 0;
  margin-bottom: var(--s-10);
}

.section-block > h3 {
  font-size: 1.4375rem;
  color: var(--ink);
  margin-bottom: var(--s-5);
  line-height: 1.25;
}

.section-block p {
  font-size: 1.0313rem;
  color: var(--ink-2);
  line-height: 1.72;
  margin-bottom: var(--s-4);
  max-width: 64ch;
}

.section-block p:last-child { margin-bottom: 0; }
.section-block strong { color: var(--ink); font-weight: 700; }

/* Timeline with a real rail */
.open-timeline { display: flex; flex-direction: column; margin-top: var(--s-6); }

.timeline-entry {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.timeline-entry:hover { background: none; }

.timeline-time-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: none;
  border: none;
  border-radius: 0;
  padding: 2px 0 0;
  width: 76px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.timeline-content {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0 0 var(--s-6) var(--s-6);
  border-left: 1px solid var(--line);
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.timeline-entry:last-child .timeline-content {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  line-height: 1.4;
}

.timeline-desc { font-size: 0.875rem; color: var(--ink-2); line-height: 1.55; }

/* Legacy flat schedule list */
.schedule-list { list-style: none; padding: 0; display: flex; flex-direction: column; }

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  font-size: 0.9375rem;
}

.schedule-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent);
  background: none;
  padding: 0;
  white-space: nowrap;
}

.schedule-title { font-weight: 600; color: var(--ink); }

/* Perks — open columns capped with a rule */
.perks-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-8);
  margin-top: var(--s-6);
}

.perk-bento-card {
  background: none;
  border: none;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding: var(--s-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color 0.22s var(--ease);
}

.perk-bento-card:hover {
  border-top-color: var(--accent);
  transform: none;
  background: none;
  box-shadow: none;
}

.perk-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  color: var(--accent);
  margin-bottom: var(--s-1);
}

.perk-icon-wrap svg { stroke: currentColor; }

.perk-card-title { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.perk-card-desc { font-size: 0.875rem; color: var(--ink-2); line-height: 1.55; }

/* Partner strip */
.sponsor-strip-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  box-shadow: none;
}

.sponsor-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.sponsor-logos-flex { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; }

.sponsor-logos-flex img {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.sponsor-logos-flex img:hover { filter: grayscale(0); opacity: 1; }

.partner-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.partner-wordmark:hover { color: var(--ink); }

.partner-more {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ==========================================================================
   Sticky registration card
   ========================================================================== */
.sticky-reg-sidebar { position: sticky; top: 92px; z-index: 20; }

.luma-reg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sticky);
}

.reg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}

.reg-price-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 2px;
}

.reg-price-val {
  font-family: var(--font-display);
  font-size: 2.125rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.attendees-social-proof {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.avatar-stack { display: flex; align-items: center; flex-direction: row; }

.stack-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: -6px;
  flex-shrink: 0;
  box-shadow: none;
}

.stack-avatar:first-child { margin-left: 0; }

.proof-text { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; }
.proof-text strong { color: var(--ink); font-weight: 700; }

.reg-btn-large {
  width: 100%;
  height: 52px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 14px;
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -10px rgba(26, 21, 18, 0.55);
}

.reg-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8438rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.reg-perk-item svg { color: var(--jade); flex-shrink: 0; margin-top: 3px; }

.reg-sponsor-bridge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: var(--ink-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.reg-sponsor-bridge:hover { color: var(--ink); }

/* Mobile action bar */
.mobile-reg-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--header-border);
  align-items: center;
  gap: var(--s-4);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.mobile-reg-bar .bar-meta { flex: 1; min-width: 0; line-height: 1.25; }

.mobile-reg-bar .bar-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}

.mobile-reg-bar .bar-note { font-size: 0.75rem; color: var(--ink-2); }
.mobile-reg-bar .btn { min-height: 48px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .mobile-reg-bar { display: flex; }
  body { padding-bottom: 78px; }
  .sticky-reg-sidebar { position: static; }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.luma-modal-overlay,
.quickview-modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.luma-modal-overlay.active,
.quickview-modal-backdrop.active,
.modal-overlay.active { display: flex; }

.luma-modal-card,
.modal-dialog {
  background: var(--surface);
  border-radius: var(--r-2xl);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: modalPop 0.24s var(--ease);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-luma,
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}

.modal-header-luma h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.modal-body-luma,
.modal-body { padding: var(--s-5) var(--s-6) var(--s-6); }

.field-label,
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.field-input,
.form-input {
  width: 100%;
  height: 46px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: var(--s-4);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field-input:focus,
.form-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(189, 70, 48, 0.14);
  outline: none;
}

select.field-input { appearance: none; -webkit-appearance: none; cursor: pointer; }

.success-ticket-box { text-align: center; padding: var(--s-2) 0; }

.success-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
  border: 1px solid var(--jade-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}

.success-ticket-box h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qr-code-img { width: 150px; height: 150px; object-fit: contain; margin: var(--s-3) auto; display: block; }

/* ==========================================================================
   Digital Citizen Pass (pass.html)
   ========================================================================== */
.wallet-shell {
  max-width: 560px;
  margin: var(--s-12) auto 80px;
  padding: 0 var(--s-6);
  text-align: center;
}

.pass-empty-state {
  max-width: 520px;
  margin: var(--s-6) auto 40px;
  padding: var(--s-10) var(--s-6);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-pass-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto var(--s-4);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.citizen-pass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sticky);
  position: relative;
  text-align: left;
  margin: var(--s-6) 0;
}

.citizen-pass-card::before,
.citizen-pass-card::after {
  content: "";
  position: absolute;
  top: 54px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  z-index: 10;
  border: 1px solid var(--line);
}

.citizen-pass-card::before { left: -12px; }
.citizen-pass-card::after  { right: -12px; }

.pass-perforation-divider {
  position: absolute;
  top: 64px;
  left: 18px;
  right: 18px;
  border-top: 2px dashed var(--line);
  pointer-events: none;
}

.pass-header {
  background: linear-gradient(135deg, #241b16 0%, #3a2b23 100%);
  color: #fff;
  padding: var(--s-4) var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-brand { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; }

.pass-admit {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 3px 9px;
  border-radius: 5px;
}

.pass-body {
  padding: var(--s-8) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pass-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.pass-user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.pass-user-sub {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin: 6px 0 20px;
  max-width: 420px;
  line-height: 1.4;
}

.pass-qr-box {
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.pass-qr-img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pass-num-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin: 16px auto 6px;
  white-space: nowrap;
}

.pass-meta-time {
  font-size: 0.75rem;
  color: var(--ink-2);
  margin: 0;
}

.pass-footer-sponsor {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: var(--s-3) var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.sponsor-highlight { font-weight: 700; color: var(--accent); }

/* ==========================================================================
   Directory & feed
   ========================================================================== */
.explore-shell { max-width: 1160px; margin: 0 auto; padding: var(--s-10) var(--s-8) 80px; }

.explore-hero-card {
  background: linear-gradient(145deg, #241b16 0%, #33251d 55%, #452f22 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: var(--s-10);
  margin-bottom: var(--s-8);
  box-shadow: var(--shadow-card);
  border: none;
  position: relative;
  overflow: hidden;
}

.explore-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #e5a08e;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-4);
}

.explore-hero-title {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: var(--s-3);
  color: #fff;
}

.explore-hero-sub {
  font-size: 1rem;
  color: #c9bcb2;
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: var(--s-6);
}

.explore-stats-row {
  display: flex;
  gap: var(--s-10);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}

.stat-metric { display: flex; flex-direction: column; gap: 2px; }

.stat-metric-val { font-size: 1.625rem; color: #fff; letter-spacing: -0.02em; }

.stat-metric-lbl { font-size: 0.8125rem; color: #c9bcb2; font-weight: 500; }

.search-filter-stack { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-8); }

.search-box-large { position: relative; width: 100%; }

.search-input-large {
  width: 100%;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0 52px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-large:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 70, 48, 0.14);
}

.search-icon-inside {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.search-shortcut-kbd {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
}

.category-chips-row,
.sponsor-sector-pills,
.region-tabs-row {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-1);
  scrollbar-width: none;
}

.category-chips-row::-webkit-scrollbar,
.sponsor-sector-pills::-webkit-scrollbar,
.region-tabs-row::-webkit-scrollbar { display: none; }

.category-chip,
.sponsor-sector-pill,
.region-tab-pill,
.calendar-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong, var(--line));
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8438rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.category-chip:hover,
.sponsor-sector-pill:hover,
.region-tab-pill:hover,
.calendar-follow-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  transform: none;
}

.category-chip.active,
.sponsor-sector-pill.active,
.region-tab-pill.selected {
  background: var(--btn-black-bg);
  color: var(--btn-black-text) !important;
  border-color: var(--btn-black-border);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.calendar-follow-btn { padding: 5px 15px; font-size: 0.8125rem; }
.calendar-follow-btn:hover { background: var(--btn-black-bg); color: var(--btn-black-text) !important; border-color: var(--btn-black-border); }
.calendar-follow-btn.following { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }

.category-chip-count {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.category-chip.active .category-chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

/* Specific high-contrast theme overrides for active/selected pills */
[data-theme="dark"] .category-chip,
[data-theme="dark"] .sponsor-sector-pill,
[data-theme="dark"] .region-tab-pill {
  background: #181b20;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .category-chip:hover,
[data-theme="dark"] .sponsor-sector-pill:hover,
[data-theme="dark"] .region-tab-pill:hover {
  background: #232730;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .category-chip.active,
[data-theme="dark"] .sponsor-sector-pill.active,
[data-theme="dark"] .region-tab-pill.selected {
  background: #ffffff !important;
  color: #0b0c0e !important;
  border-color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .category-chip-count {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .category-chip.active .category-chip-count {
  background: rgba(11, 12, 14, 0.15) !important;
  color: #0b0c0e !important;
  font-weight: 700;
  border: none;
}

.events-feed-list { display: flex; flex-direction: column; gap: var(--s-3); margin: 0 auto 64px; }

.luma-feed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  box-shadow: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}

.luma-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}

.card-left { display: flex; align-items: center; gap: var(--s-4); flex: 1; min-width: 0; }

.date-badge-box {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-month {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 3px;
}

.date-day { font-size: 1.25rem; color: var(--ink); line-height: 1; }

.card-thumb-wrapper {
  width: 96px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.card-event-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.luma-feed-card:hover .card-event-thumb { transform: scale(1.06); }

.card-text-main { flex: 1; min-width: 0; }

.card-header-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: 4px; }

.card-title-en { font-size: 1.0313rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.card-title-zh { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }

.tier-badge-chip,
.tier-badge-pill {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tier-s { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.tier-a { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent-line); }
.tier-b { background: var(--jade-soft); color: var(--jade); border: 1px solid var(--jade-line); }
.tier-c { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.card-details-sub {
  font-size: 0.8125rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.meta-inline-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-inline-item svg { color: var(--ink-3); flex-shrink: 0; }

.card-right { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.verified-rsvp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jade);
  background: var(--jade-soft);
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--jade-line);
}

@media (max-width: 650px) {
  .luma-feed-card { flex-direction: column; align-items: stretch; gap: var(--s-3); padding: var(--s-4); overflow: hidden; }
  .card-left { align-items: flex-start; gap: var(--s-3); min-width: 0; }
  .card-thumb-wrapper { width: 68px; height: 48px; flex-shrink: 0; }
  .card-header-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .card-title-en { word-break: break-word; font-size: 0.9375rem; }
  .card-right { width: 100%; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 10px; }
}

/* ==========================================================================
   Sponsors matrix (sponsor.html)
   ========================================================================== */
.sponsor-hero { max-width: 1160px; margin: 0 auto; padding: var(--s-12) var(--s-8) var(--s-5); }

.sponsor-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-3);
}

.sponsor-hero-title {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}

.sponsor-hero-sub { font-size: 1.0313rem; color: var(--ink-2); max-width: 68ch; line-height: 1.65; }

.sponsor-filter-bar {
  max-width: 1160px;
  margin: var(--s-6) auto;
  padding: 0 var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.sponsor-search-wrapper { position: relative; }

.sponsor-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.sponsor-search-input {
  width: 100%;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0 20px 0 46px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.sponsor-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 70, 48, 0.14);
}

.sponsor-grid-40 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-4);
  max-width: 1160px;
  margin: 0 auto 64px;
  padding: 0 var(--s-8);
}

.sponsor-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sponsor-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}

.sponsor-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  gap: var(--s-3);
}

.sponsor-logo-box { width: 140px; height: 44px; display: flex; align-items: center; justify-content: flex-start; }
.sponsor-logo-img { max-width: 100%; max-height: 38px; object-fit: contain; }

.sponsor-monogram-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.sponsor-intel-box {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: var(--s-3);
  margin: var(--s-3) 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.sponsor-intel-label { font-weight: 700; color: var(--ink); margin-right: 4px; }

.sponsor-profile-card a[href^="mailto"] { color: var(--accent); text-decoration: none; }
.sponsor-profile-card a[href^="mailto"]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.luma-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: var(--s-10) var(--s-8);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.footer-inner strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.footer-inner a { color: var(--ink-2); text-decoration: none; transition: color 0.15s ease; }
.footer-inner a:hover { color: var(--accent); }

/* ==========================================================================
   Discover page (events.html / discover.html)
   ========================================================================== */
.luma-discover-body { background-color: var(--paper); color: var(--ink); }

.zm-container { max-width: 1160px; margin: 0 auto; padding: 0 var(--s-8); width: 100%; }

.discover-page-header { padding-top: var(--s-12); padding-bottom: var(--s-5); }

.discover-title {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: var(--s-3);
}

.discover-subtitle { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.6; max-width: 68ch; }

.discover-divider { border-bottom: 1px solid var(--line); margin: var(--s-8) 0 var(--s-10); }

.discover-section { margin-bottom: var(--s-12); }

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-5);
  gap: var(--s-4);
}

.discover-section-title {
  font-size: 1.375rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.section-meta-count {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: none;
  padding: 0;
  border: none;
}

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: var(--s-3); }

.discover-category-card,
.discover-city-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative;
  user-select: none;
}

.discover-category-card:hover,
.discover-city-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.discover-category-card.active,
.discover-city-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
}

/* Category/city chips carry per-item hues inline; pull them toward the warm ground */
.category-icon-box { filter: saturate(0.78); }
.city-icon-circle { filter: saturate(0.62); }

.category-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.discover-category-card:hover .category-icon-box { transform: scale(1.06); }

.category-text-title { font-size: 0.9375rem; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.category-text-count { font-size: 0.8125rem; color: var(--ink-2); margin-top: 2px; }

.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: var(--s-4); }

.discover-calendar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.discover-calendar-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.calendar-top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

.calendar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

.calendar-name { font-size: 0.9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }

.calendar-desc {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-2);
  margin-top: var(--s-1);
}

.region-tabs-row { margin-bottom: var(--s-4); }
.region-tab-pill { padding: 6px 15px; font-size: 0.8125rem; }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: var(--s-3); }

.discover-city-card { padding: 10px 14px; }

.city-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.city-info-col { min-width: 0; }
.city-name { font-size: 0.875rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.city-count { font-size: 0.75rem; color: var(--ink-2); margin-top: 1px; }

.active-filter-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: var(--s-4);
  font-size: 0.875rem;
  color: var(--accent-deep);
}

.active-filter-banner button {
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .zm-container,
  .explore-shell,
  .sponsor-hero,
  .sponsor-filter-bar,
  .sponsor-grid-40,
  .luma-footer,
  .nav-container,
  .event-detail-shell { padding-left: var(--s-5); padding-right: var(--s-5); }
  .explore-hero-card { padding: var(--s-6); }
  .discover-page-header { padding-top: var(--s-8); }
}

/* ==========================================================================
   Legacy standalone detail page (event.html)
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.125rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: var(--s-6); }

.nav-link { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }

.event-detail-shell { max-width: 1160px; margin: 0 auto; padding: var(--s-10) var(--s-8) 80px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 64px; align-items: start; }

@media (max-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); } }

.story-card,
.schedule-card,
.perks-card {
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: var(--s-10) 0 0;
  margin-bottom: var(--s-10);
}

.timeline-list { display: flex; flex-direction: column; list-style: none; padding: 0; }

.timeline-item { display: flex; align-items: flex-start; gap: var(--s-5); }

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  width: 76px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}

.perks-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-8); }

.perk-box { display: flex; flex-direction: column; gap: var(--s-2); border-top: 2px solid var(--ink); padding-top: var(--s-5); }
.perk-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.perk-sub { font-size: 0.875rem; color: var(--ink-2); line-height: 1.55; }

.form-group { margin-bottom: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Dark Theme Component Polish
   ========================================================================== */
[data-theme="dark"] .host-avatar {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sponsor-logo-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 4px 8px;
}

[data-theme="dark"] .pass-header {
  background: linear-gradient(135deg, #181a1e 0%, #22252b 100%);
}

[data-theme="dark"] .luma-modal-overlay,
[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .active-filter-banner {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

[data-theme="dark"] .active-filter-banner button {
  color: #f43f5e;
}

[data-theme="dark"] .sponsor-strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

[data-theme="dark"] .partner-wordmark {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

[data-theme="dark"] .filter-search-input {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .discover-search-box {
  background: var(--surface);
  border-color: var(--line);
}

/* ==========================================================================
   Luma Calendar Profile Surface
   ========================================================================== */
.calendar-hero-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-8) var(--s-12);
}

.calendar-banner-box {
  width: 100%;
  height: 220px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, rgba(189, 70, 48, 0.85) 0%, rgba(26, 21, 18, 0.95) 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: -50px;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .calendar-banner-box {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3) 0%, rgba(19, 21, 24, 0.95) 100%);
}

.calendar-profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  box-shadow: var(--shadow-sticky);
  position: relative;
  z-index: 10;
  margin-bottom: var(--s-10);
}

.calendar-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.calendar-profile-info {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  flex: 1;
  min-width: 280px;
}

.calendar-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 3px solid var(--surface);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  overflow: hidden;
}

.calendar-profile-title-col h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}

.calendar-profile-bio {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 65ch;
  margin-bottom: var(--s-4);
}

.calendar-stats-pills {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-weight: 600;
}

.calendar-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Tab navigation */
.luma-tabs-bar {
  display: flex;
  gap: var(--s-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-8);
  overflow-x: auto;
  padding-bottom: 2px;
}

.luma-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: var(--r-full);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.luma-tab-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.luma-tab-btn.active {
  background: var(--btn-black-bg);
  color: var(--btn-black-text) !important;
  font-weight: 700;
}

[data-theme="dark"] .luma-tab-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .luma-tab-btn:hover {
  color: #ffffff;
  background: #232730;
}

[data-theme="dark"] .luma-tab-btn.active {
  background: #ffffff !important;
  color: #0b0c0e !important;
  font-weight: 700;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */
.quickview-modal-dialog {
  max-width: 580px;
  width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-modal);
  animation: modalPop 0.22s var(--ease);
  position: relative;
}

.quickview-header-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--surface-3);
}

.quickview-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quickview-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.quickview-banner-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 3;
}

.quickview-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
  transition: transform 0.15s ease, background 0.15s ease;
}

.quickview-close-btn:hover {
  transform: scale(1.08);
  background: rgba(0,0,0,0.8);
}

.quickview-body {
  padding: var(--s-6);
}

.quickview-date-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.quickview-title {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}

.quickview-title-zh {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-civic);
  margin-bottom: 16px;
}

.quickview-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

@media (max-width: 500px) {
  .quickview-meta-grid {
    grid-template-columns: 1fr;
  }
}

.qv-meta-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.qv-meta-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.qv-meta-info {
  overflow: hidden;
}

.qv-meta-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
}

.qv-meta-val {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qv-sponsors-section {
  margin: 16px 0;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
}

.qv-section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
}

.qv-sponsors-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.qv-sponsor-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.qv-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   RSVP Progress Bar
   ========================================================================== */
.rsvp-progress-shell {
  margin-bottom: var(--s-5);
  background: var(--surface-2);
  border-radius: var(--r-full);
  padding: 4px;
  border: 1px solid var(--line);
}

.rsvp-progress-track {
  width: 100%;
  height: 8px;
  background: var(--line-soft);
  border-radius: var(--r-full);
  overflow: hidden;
}

.rsvp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: var(--r-full);
  transition: width 0.6s var(--ease);
}

.rsvp-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-2);
  font-weight: 600;
  margin-top: 6px;
  padding: 0 4px;
}

/* ==========================================================================
   Apple Wallet & Google Wallet pass buttons
   ========================================================================== */
.wallet-badges-row {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-5);
}

.wallet-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.wallet-badge-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ==========================================================================
   Print Ticketing CSS
   ========================================================================== */
@media print {
  .luma-header,
  .luma-footer,
  .theme-toggle-btn,
  .btn,
  .wallet-badges-row {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .citizen-pass-card {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    max-width: 100% !important;
    margin: 0 !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Luma Independent Event Page Architecture (SummerSocial2026 Standard)
   ========================================================================== */
.luma-event-page-shell {
  max-width: 1140px;
  margin: 40px auto 100px;
  padding: 0 var(--s-6);
}

@media (min-width: 960px) {
  .luma-event-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  
  .luma-event-left {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 959px) {
  .luma-event-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .luma-event-page-shell {
    margin: 20px auto 80px;
    padding: 0 var(--s-4);
  }
}

.luma-event-cover-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.luma-event-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.luma-event-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.luma-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-sticky);
}

.luma-side-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.luma-host-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.luma-host-avatar-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.luma-host-details {
  flex: 1;
  min-width: 0;
}

.luma-host-name-link {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luma-host-sub-text {
  font-size: 0.75rem;
  color: var(--ink-2);
  margin-top: 2px;
}

.luma-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.luma-event-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.luma-right-title-box {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.luma-event-heading {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
}

.luma-event-heading-zh {
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem);
  font-weight: 600;
  color: var(--brand-civic);
  display: block;
  margin-top: 4px;
}

.luma-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.luma-meta-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 14px 18px;
  box-shadow: var(--shadow-sticky);
}

.luma-meta-icon-sq {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.luma-meta-texts h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.luma-meta-texts p {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin: 0;
}

.luma-ticket-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow-sticky);
  position: relative;
}

.luma-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: var(--shadow-sticky);
}

.luma-section-header {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Luma 9uxgw8l4 Specific Components (Tech Pickleball Pattern)
   ========================================================================== */
.luma-follow-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 15px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-strong, var(--line));
  background: var(--surface-2);
  color: var(--ink);
  transition: all 0.16s var(--ease);
}

.luma-follow-pill:hover {
  background: var(--btn-black-bg);
  color: var(--btn-black-text) !important;
  border-color: var(--btn-black-border);
}

.luma-follow-pill.following {
  background: #16a34a;
  color: #ffffff !important;
  border-color: #16a34a;
}

[data-theme="dark"] .luma-follow-pill {
  background: #1e2229;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .luma-follow-pill:hover {
  background: #ffffff;
  color: #0b0c0e !important;
  border-color: #ffffff;
}

.luma-host-bio {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 12px 0 10px;
}

.luma-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.luma-social-link {
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
  text-decoration: none;
}

.luma-social-link:hover {
  color: var(--ink);
  background: var(--surface-3);
  transform: translateY(-1px);
}

[data-theme="dark"] .luma-social-link {
  background: #1c2027;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .luma-social-link:hover {
  color: #ffffff;
  background: #282d38;
}

.luma-hosts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.luma-host-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.luma-host-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.luma-host-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}

.luma-host-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.luma-host-name-sm {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luma-host-icons-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}

.luma-going-names {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 8px;
  display: block;
  text-decoration: none;
  line-height: 1.4;
}

.luma-going-names strong {
  color: var(--ink);
}

.luma-going-names:hover {
  color: var(--accent);
}

.luma-event-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.luma-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.15s ease;
}

.luma-tag-chip:hover {
  background: var(--surface-3);
  color: var(--ink);
  border-color: var(--line-strong);
}

[data-theme="dark"] .luma-tag-chip {
  background: #181b20;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .luma-tag-chip:hover {
  background: #232730;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.luma-secondary-actions-flat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.luma-flat-action-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.luma-flat-action-btn:hover {
  color: var(--ink);
}

[data-theme="dark"] .luma-flat-action-btn {
  color: #94a3b8;
}

[data-theme="dark"] .luma-flat-action-btn:hover {
  color: #f8fafc;
}

/* Registration Notice Box (9uxgw8l4 Pattern) */
.luma-reg-notice-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.luma-reg-notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(66, 108, 230, 0.12);
  color: #426ce6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .luma-reg-notice-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.luma-reg-notice-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.luma-reg-notice-desc {
  font-size: 0.75rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
}

/* Toast Notification (Luma / Linear feedback) */
.cep-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface, #1e293b);
  color: var(--ink, #f8fafc);
  padding: 12px 22px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong, #334155);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cep-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}



