@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/redirects/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === SECTION: hub.html === */
/* ==========================================================================
       TOC DESIGN SYSTEM: THEMES & COLOR FOUNDATION
       Warm Ivory Porcelain / Deep Slate Teal / Warm Amber Gold
       ========================================================================== */
    :root {
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-display: 'Plus Jakarta Sans', sans-serif;
      --radius-xs: 8px;
      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 20px;
      --radius-xl: 24px;
      --radius-full: 9999px;
      --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      --transition-spring: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
      --gold-primary: #C88D38;
      --gold-hover: #D9A75F;
      --gold-active: #B87B28;
      --gold-glow: rgba(200, 141, 56, 0.22);
      --teal-primary: #12333B;
      --teal-surface: #194650;
    }

    /* 1. LIGHT THEME (Default Porcelain / Warm Ivory Canvas) */
    html[data-theme="light"], .theme-light {
      --bg: #FAF8F5;
      --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 35%, #F3EFE8 100%);
      --surface: #F3EFE8;
      --surface-card: #FFFFFF;
      --surface-hover: #FAF8F5;
      --surface-active: #EDE8DF;
      --border: #E8E4DD;
      --border-specular: #DFDAD2;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #1C2628;
      --text-muted: #5D6E72;
      --primary: #12333B;
      --primary-hover: #194650;
      --primary-glow: rgba(18, 51, 59, 0.12);
      --accent: #C88D38;
      --accent-glow: rgba(200, 141, 56, 0.2);
      --shadow-ambient: rgba(28, 38, 40, 0.05);
      --shadow-elevated: 0 12px 30px -4px rgba(28, 38, 40, 0.08), 0 4px 10px -2px rgba(28, 38, 40, 0.04);
      --blur: 14px;
      --card-radius: 20px;
      --btn-radius: 14px;
    }

    /* 2. DARK THEME (Nocturno, Charcoal & Gold Slate) */
    html[data-theme="dark"], .theme-dark {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #18181b 0%, #09090b 70%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --surface-active: #3f3f46;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.22);
      --accent: #194650;
      --accent-glow: rgba(25, 70, 80, 0.3);
      --shadow-ambient: rgba(0, 0, 0, 0.45);
      --shadow-elevated: 0 16px 36px -4px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
      --blur: 16px;
      --card-radius: 20px;
      --btn-radius: 14px;
    }

    /* 3. ELEGANT THEME (Alta Cocina, Vinos, Hoteles Boutique) */
    html[data-theme="elegant"], .theme-elegant {
      --font-display: 'Playfair Display', Georgia, serif;
      --bg: #0C0A09;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #201B17 0%, #0C0A09 75%);
      --surface: #171412;
      --surface-card: #151210;
      --surface-hover: #221D18;
      --surface-active: #2F2822;
      --border: rgba(212, 175, 55, 0.28);
      --border-specular: rgba(212, 175, 55, 0.5);
      --border-accent: rgba(212, 175, 55, 0.6);
      --text: #FDFBF7;
      --text-muted: #B8AEA3;
      --primary: #D4AF37;
      --primary-hover: #E7C875;
      --primary-glow: rgba(212, 175, 55, 0.25);
      --accent: #C88D38;
      --accent-glow: rgba(200, 141, 56, 0.22);
      --shadow-ambient: rgba(0, 0, 0, 0.6);
      --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.7);
      --blur: 16px;
      --card-radius: 14px;
      --btn-radius: 10px;
    }

    /* 4. WARM THEME (Pizzerías, Bodegones, Bistrós) */
    html[data-theme="warm"], .theme-warm {
      --bg: #140E0A;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #281B13 0%, #140E0A 75%);
      --surface: #241811;
      --surface-card: #1F140E;
      --surface-hover: #2F1E16;
      --surface-active: #3E291E;
      --border: rgba(200, 141, 56, 0.24);
      --border-specular: rgba(200, 141, 56, 0.45);
      --border-accent: rgba(200, 141, 56, 0.55);
      --text: #FFFDF5;
      --text-muted: #D9BFAD;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.25);
      --accent: #EA580C;
      --accent-glow: rgba(234, 88, 12, 0.22);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 16px 36px rgba(0, 0, 0, 0.6);
      --blur: 16px;
      --card-radius: 20px;
      --btn-radius: 14px;
    }

    /* 5. MINIMAL THEME (Diseño arquitectónico, Cafés nórdicos) */
    html[data-theme="minimal"], .theme-minimal {
      --bg: #FFFFFF;
      --bg-gradient: none;
      --surface: #F4F4F5;
      --surface-card: #FFFFFF;
      --surface-hover: #F4F4F5;
      --surface-active: #E4E4E7;
      --border: #E4E4E7;
      --border-specular: #D4D4D8;
      --border-accent: #18181B;
      --text: #09090B;
      --text-muted: #71717A;
      --primary: #09090B;
      --primary-hover: #27272A;
      --primary-glow: rgba(9, 9, 11, 0.08);
      --accent: #12333B;
      --accent-glow: rgba(18, 51, 59, 0.12);
      --shadow-ambient: rgba(0, 0, 0, 0.04);
      --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.06);
      --blur: 0px;
      --card-radius: 10px;
      --btn-radius: 8px;
    }

    /* 6. BRAND THEME (Custom Accent Merchant, TOC Slate Foundation) */
    html[data-theme="brand"], .theme-brand {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, rgba(245, 158, 11, 0.12) 0%, #09090b 75%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --surface-active: #3f3f46;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.4);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: var(--brand-primary, #C88D38);
      --primary-hover: var(--brand-primary-hover, #D9A75F);
      --primary-glow: rgba(200, 141, 56, 0.25);
      --accent: var(--brand-accent, #194650);
      --accent-glow: rgba(25, 70, 80, 0.3);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 16px 36px rgba(0, 0, 0, 0.6);
      --blur: 16px;
      --card-radius: 20px;
      --btn-radius: 14px;
    }

    /* Global Reset & Base Setup */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
    body {
      font-family: var(--font-sans);
      background-color: var(--bg);
      background-image: var(--bg-gradient);
      background-attachment: fixed;
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.75rem 1.15rem 2.5rem;
      position: relative;
      overflow-x: hidden;
      transition: background 0.3s ease, color 0.3s ease;
    }

    .container {
      width: 100%;
      max-width: 440px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      z-index: 1;
      flex: 1;
    }

    /* Top Navigation Header (Theme Toggle + TOC Mini Mark) */
    .top-nav {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.25rem;
    }
    .top-brand-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.75rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 700;
      transition: all var(--transition-fast);
    }
    .top-brand-pill:hover {
      border-color: var(--border-accent);
      color: var(--text);
    }
    .top-brand-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--gold-primary);
      box-shadow: 0 0 8px var(--gold-primary);
    }

    /* Theme Switcher Button (Luna / Sol) */
    .theme-toggle-btn {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-full);
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 8px var(--shadow-ambient);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      transition: all var(--transition-fast);
    }
    .theme-toggle-btn:hover {
      background: var(--surface-hover);
      border-color: var(--border-specular);
      transform: scale(1.05);
    }
    .theme-toggle-btn:active {
      transform: scale(0.95);
    }
    .theme-toggle-icon {
      line-height: 1;
      display: none;
    }
    html[data-theme="dark"] .icon-sun,
    html[data-theme="elegant"] .icon-sun,
    html[data-theme="warm"] .icon-sun,
    html[data-theme="brand"] .icon-sun {
      display: inline-flex;
    }
    html[data-theme="light"] .icon-moon,
    html[data-theme="minimal"] .icon-moon {
      display: inline-flex;
    }

    /* Profile Header Section */
    .profile {
      text-align: center;
      margin-bottom: 1.75rem;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      animation: fadeInDown 0.4s ease-out;
    }
    .avatar-wrapper {
      position: relative;
      margin-bottom: 1rem;
    }
    .avatar {
      width: 86px;
      height: 86px;
      border-radius: 24px;
      background: var(--surface-card);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--gold-primary);
      box-shadow: var(--shadow-elevated);
      border: 2px solid var(--border-specular);
      overflow: hidden;
      position: relative;
    }
    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .avatar-badge-verified {
      position: absolute;
      bottom: -4px;
      right: -4px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--gold-primary);
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2.5px solid var(--bg);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    .title-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 0.35rem;
    }
    .title {
      font-family: var(--font-display);
      font-size: 1.65rem;
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.2;
      color: var(--text);
    }

    .meta-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      margin-top: 0.45rem;
    }
    .location-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.76rem;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--surface);
      padding: 0.3rem 0.85rem;
      border-radius: var(--radius-full);
      border: 1px solid var(--border);
    }
    .table-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--gold-primary);
      background: rgba(200, 141, 56, 0.1);
      border: 1px solid rgba(200, 141, 56, 0.25);
      padding: 0.3rem 0.85rem;
      border-radius: var(--radius-full);
    }

    /* Native WiFi Card */
    .wifi-card {
      width: 100%;
      background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface) 100%);
      border: 1px solid var(--border-accent);
      border-radius: var(--card-radius);
      padding: 1rem 1.15rem;
      display: flex;
      align-items: center;
      gap: 0.95rem;
      cursor: pointer;
      text-decoration: none;
      color: var(--text);
      text-align: left;
      font-family: inherit;
      font-size: inherit;
      margin-bottom: 1.25rem;
      box-shadow: 0 4px 16px var(--shadow-ambient);
      transition: all var(--transition-fast);
      position: relative;
      overflow: hidden;
    }
    .wifi-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-elevated);
      border-color: var(--gold-primary);
    }
    .wifi-card:active {
      transform: scale(0.985);
    }
    .wifi-icon-circle {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      background: rgba(200, 141, 56, 0.12);
      border: 1px solid rgba(200, 141, 56, 0.3);
      color: var(--gold-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .wifi-info {
      flex: 1;
      text-align: left;
      min-width: 0;
    }
    .wifi-title {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .wifi-desc {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .wifi-pill {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: var(--radius-full);
      background: var(--gold-primary);
      color: #FFFFFF;
    }

    /* High-Impact Commercial Promotions (SPEC-PROMOTIONS) */
    .promotions-section {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 0.95rem;
      margin-bottom: 1.35rem;
    }
    .promo-card {
      width: 100%;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-top: 1px solid var(--border-specular);
      border-radius: var(--card-radius);
      overflow: hidden;
      text-decoration: none;
      color: var(--text);
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 18px var(--shadow-ambient);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      position: relative;
    }
    .promo-card:hover {
      transform: translateY(-2.5px);
      border-color: var(--gold-primary);
      box-shadow: var(--shadow-elevated);
    }
    .promo-card:active {
      transform: scale(0.985);
    }
    .promo-image-cover {
      width: 100%;
      height: 145px;
      object-fit: cover;
      display: block;
      background: var(--surface);
    }
    .promo-body {
      padding: 1.1rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .promo-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }
    .promo-badge {
      display: inline-flex;
      align-items: center;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 0.25rem 0.65rem;
      border-radius: var(--radius-full);
      background: var(--gold-primary);
      color: #FFFFFF;
      box-shadow: 0 2px 8px var(--gold-glow);
    }
    .promo-badge.offer-badge {
      background: linear-gradient(135deg, #E0533C 0%, #C83B25 100%);
      box-shadow: 0 2px 8px rgba(224, 83, 60, 0.35);
    }
    .promo-badge.event-badge {
      background: linear-gradient(135deg, #12333B 0%, #194650 100%);
      box-shadow: 0 2px 8px rgba(18, 51, 59, 0.35);
    }
    .promo-title {
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1.3;
      color: var(--text);
    }
    .promo-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
    }
    .promo-cta-btn {
      margin-top: 0.35rem;
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--gold-primary);
      transition: gap var(--transition-fast);
    }
    .promo-card:hover .promo-cta-btn {
      gap: 0.65rem;
    }

    /* Template: Simple Promo Banner */
    .promo-simple-card {
      padding: 1.15rem 1.25rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface) 100%);
      border: 1px solid var(--border-accent);
    }
    .promo-icon-circle {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      background: rgba(200, 141, 56, 0.12);
      color: var(--gold-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1px solid rgba(200, 141, 56, 0.3);
    }

    /* Social / Quick Contact Bar */
    .social-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      width: 100%;
    }
    .social-icon-btn {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-top: 1px solid var(--border-specular);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: var(--text);
      transition: all var(--transition-fast);
      box-shadow: 0 4px 12px var(--shadow-ambient);
    }
    .social-icon-btn:hover {
      background: var(--surface-hover);
      transform: translateY(-2.5px);
      border-color: var(--border-accent);
      box-shadow: 0 8px 18px var(--shadow-ambient);
    }
    .social-icon-btn:active {
      transform: scale(0.94);
      opacity: 0.85;
      background: var(--surface-hover);
    }
    .social-icon-btn svg {
      width: 22px;
      height: 22px;
    }

    /* Primary Action Links & Navigation Cards */
    .links {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      margin-bottom: 2rem;
    }
    .link-card {
      display: flex;
      align-items: center;
      padding: 1.05rem 1.15rem;
      background: var(--surface-card);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      border: 1px solid var(--border);
      border-top: 1px solid var(--border-specular);
      border-radius: var(--card-radius);
      text-decoration: none;
      color: var(--text);
      transition: all var(--transition-fast);
      box-shadow: 0 3px 14px var(--shadow-ambient);
      position: relative;
    }
    .link-card:hover {
      background: var(--surface-hover);
      transform: translateY(-2px);
      border-color: var(--border-accent);
      box-shadow: var(--shadow-elevated);
    }
    .link-card:active {
      transform: scale(0.985);
      opacity: 0.88;
      background: var(--surface-hover);
    }
    .link-icon-box {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 0.95rem;
      flex-shrink: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .link-card:hover .link-icon-box {
      border-color: var(--gold-primary);
      background: rgba(200, 141, 56, 0.1);
    }
    .icon-svg {
      width: 24px;
      height: 24px;
    }
    .link-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      text-align: left;
    }
    .link-title {
      font-size: 0.98rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .link-subtitle {
      font-size: 0.77rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .link-action {
      color: var(--text-muted);
      margin-left: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      transition: transform var(--transition-fast), color var(--transition-fast);
      position: relative;
    }
    .link-card:hover .link-action {
      transform: translateX(3px);
      color: var(--gold-primary);
    }
    .link-card.is-loading {
      transform: scale(0.975);
      border-color: var(--gold-primary);
      background: var(--surface-hover);
      box-shadow: 0 4px 18px rgba(200, 141, 56, 0.18);
    }
    .link-card.is-loading .link-action {
      transform: none;
      color: var(--gold-primary);
    }
    .link-spinner {
      display: none;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(200, 141, 56, 0.25);
      border-top-color: var(--gold-primary);
      border-radius: 50%;
      animation: link-spinner-spin 0.6s linear infinite;
    }
    @keyframes link-spinner-spin {
      to { transform: rotate(360deg); }
    }
    .link-card.is-loading .link-action svg {
      display: none;
    }
    .link-card.is-loading .link-spinner {
      display: inline-block;
    }
    .links-container.has-active-card .link-card:not(.is-loading) {
      opacity: 0.65;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    /* Dedicated TOC Commercial Sponsor Banner */
    .ad-sponsor-banner {
      width: 100%;
      margin-bottom: 1.5rem;
      text-decoration: none;
      border-radius: var(--card-radius);
      background: linear-gradient(135deg, var(--surface-card) 0%, rgba(200, 141, 56, 0.08) 100%);
      border: 1px solid rgba(200, 141, 56, 0.35);
      padding: 1.15rem 1.25rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 18px rgba(200, 141, 56, 0.08);
      transition: all 0.25s ease;
    }
    .ad-sponsor-banner:hover {
      background: linear-gradient(135deg, var(--surface-card) 0%, rgba(200, 141, 56, 0.14) 100%);
      border-color: var(--gold-primary);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px var(--gold-glow);
    }
    .ad-sponsor-pill {
      font-size: 0.62rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.2rem 0.55rem;
      border-radius: var(--radius-full);
      background: rgba(200, 141, 56, 0.15);
      color: var(--gold-primary);
      border: 1px solid rgba(200, 141, 56, 0.3);
      display: inline-block;
      margin-bottom: 0.3rem;
    }

    /* Footer & Official TOC Badge */
    .footer {
      margin-top: auto;
      text-align: center;
      padding-top: 1.25rem;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    .toc-brand-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.45rem 1rem;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.74rem;
      font-weight: 600;
      transition: all var(--transition-fast);
      box-shadow: 0 3px 12px var(--shadow-ambient);
    }
    .toc-brand-badge:hover {
      background: var(--surface-hover);
      border-color: var(--border-accent);
      color: var(--text);
      transform: translateY(-1.5px);
    }
    .toc-badge-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: var(--gold-primary);
      color: #FFFFFF;
      font-weight: 900;
      font-size: 0.68rem;
      letter-spacing: -0.02em;
    }
    .toc-badge-brand {
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }
    .toc-badge-dot {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--border-specular);
    }

    /* WiFi Modal (SPEC-043) */
    .modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      background: rgba(18, 23, 24, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 1.25rem;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .modal-backdrop.open {
      display: flex;
      opacity: 1;
    }
    .modal-dialog {
      background: var(--bg);
      border: 1px solid var(--border-specular);
      border-radius: 24px;
      padding: 1.75rem 1.5rem;
      width: 100%;
      max-width: 360px;
      text-align: center;
      box-shadow: var(--shadow-elevated);
      position: relative;
      transform: scale(0.95);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .modal-backdrop.open .modal-dialog {
      transform: scale(1);
    }
    .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-muted);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .modal-close:hover {
      background: var(--surface-hover);
      color: var(--text);
    }
    .wifi-qr-box {
      background: #FFFFFF;
      padding: 1rem;
      border-radius: 16px;
      display: inline-flex;
      margin: 1.25rem auto 1rem;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }
    .wifi-badge {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.25rem 0.65rem;
      border-radius: 9999px;
      background: rgba(200, 141, 56, 0.12);
      color: var(--gold-primary);
      border: 1px solid rgba(200, 141, 56, 0.3);
      margin-bottom: 0.5rem;
    }
    .copy-btn {
      width: 100%;
      background: var(--gold-primary);
      color: #FFFFFF;
      border: none;
      padding: 0.85rem 1rem;
      border-radius: var(--btn-radius);
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1rem;
      box-shadow: 0 4px 14px var(--gold-glow);
      transition: all 0.2s ease;
    }
    .copy-btn:hover {
      background: var(--gold-hover);
      transform: translateY(-1.5px);
    }
    .copy-btn:active {
      transform: scale(0.97);
    }

    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }

/* === SECTION: menu.html === */
/* ==========================================================================
       TOC DIGITAL MENU DESIGN SYSTEM
       Warm Ivory Porcelain / Deep Slate Teal / Warm Amber Gold
       ========================================================================== */
    :root {
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-display: 'Plus Jakarta Sans', sans-serif;
      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 20px;
      --radius-xl: 24px;
      --radius-full: 9999px;
      --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      --gold-primary: #C88D38;
      --gold-hover: #D9A75F;
      --gold-glow: rgba(200, 141, 56, 0.22);
      --emerald-primary: #10B981;
      --emerald-glow: rgba(16, 185, 129, 0.25);
    }

    /* 1. LIGHT THEME */
    html[data-theme="light"], .theme-light {
      --bg: #FAF8F5;
      --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 35%, #F3EFE8 100%);
      --surface: #F3EFE8;
      --surface-card: #FFFFFF;
      --surface-hover: #FAF8F5;
      --surface-active: #EDE8DF;
      --border: #E8E4DD;
      --border-specular: #DFDAD2;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #1C2628;
      --text-muted: #5D6E72;
      --primary: #12333B;
      --primary-hover: #194650;
      --primary-glow: rgba(18, 51, 59, 0.15);
      --shadow-ambient: rgba(28, 38, 40, 0.06);
      --shadow-elevated: 0 12px 30px -4px rgba(28, 38, 40, 0.08), 0 4px 10px -2px rgba(28, 38, 40, 0.04);
      --card-radius: 20px;
    }

    /* 2. DARK THEME */
    html[data-theme="dark"], .theme-dark {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #18181b 0%, #09090b 70%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --surface-active: #3f3f46;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.22);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
      --card-radius: 20px;
    }

    /* 3. ELEGANT THEME */
    html[data-theme="elegant"], .theme-elegant {
      --font-display: 'Playfair Display', Georgia, serif;
      --bg: #0C0A09;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #201B17 0%, #0C0A09 75%);
      --surface: #171412;
      --surface-card: #151210;
      --surface-hover: #221D18;
      --border: rgba(212, 175, 55, 0.28);
      --border-specular: rgba(212, 175, 55, 0.5);
      --border-accent: rgba(212, 175, 55, 0.65);
      --text: #FDFBF7;
      --text-muted: #B8AEA3;
      --primary: #D4AF37;
      --primary-hover: #E7C875;
      --primary-glow: rgba(212, 175, 55, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.6);
      --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.7);
      --card-radius: 14px;
    }

    /* 4. WARM THEME */
    html[data-theme="warm"], .theme-warm {
      --bg: #140E0A;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #281B13 0%, #140E0A 75%);
      --surface: #241811;
      --surface-card: #1F140E;
      --surface-hover: #2F1E16;
      --border: rgba(200, 141, 56, 0.25);
      --border-specular: rgba(200, 141, 56, 0.5);
      --border-accent: rgba(200, 141, 56, 0.6);
      --text: #FFFDF5;
      --text-muted: #D9BFAD;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.65);
      --card-radius: 20px;
    }

    /* 5. MINIMAL THEME */
    html[data-theme="minimal"], .theme-minimal {
      --bg: #FFFFFF;
      --bg-gradient: none;
      --surface: #F4F4F5;
      --surface-card: #FFFFFF;
      --surface-hover: #F4F4F5;
      --border: #E4E4E7;
      --border-specular: #D4D4D8;
      --border-accent: #18181B;
      --text: #09090B;
      --text-muted: #71717A;
      --primary: #09090B;
      --primary-hover: #27272A;
      --primary-glow: rgba(9, 9, 11, 0.08);
      --shadow-ambient: rgba(0, 0, 0, 0.04);
      --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.06);
      --card-radius: 10px;
    }

    /* 6. BRAND THEME */
    html[data-theme="brand"], .theme-brand {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, rgba(245, 158, 11, 0.12) 0%, #09090b 75%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.4);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: var(--brand-primary, #C88D38);
      --primary-hover: var(--brand-primary-hover, #D9A75F);
      --primary-glow: rgba(200, 141, 56, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 16px 36px rgba(0, 0, 0, 0.6);
      --card-radius: 20px;
    }

    /* Global Reset */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
    body {
      font-family: var(--font-sans);
      background-color: var(--bg);
      background-image: var(--bg-gradient);
      background-attachment: fixed;
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      transition: background 0.3s ease, color 0.3s ease;
      padding-bottom: 5rem;
      overflow-x: clip;
      width: 100%;
    }

    .container {
      width: 100%;
      max-width: 520px;
      margin: 0 auto;
      padding: 1.25rem 1.15rem 3rem;
      flex: 1;
      position: relative;
      align-items: stretch;
    }

    /* Header Banner Image (Optional) */
    .header-banner {
      width: 100%;
      height: 170px;
      position: relative;
      background: var(--surface);
      overflow: hidden;
    }
    .header-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Top Action Bar */
    .top-action-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 1.25rem;
    }
    .back-hub-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.35rem 0.85rem;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 700;
      box-shadow: 0 2px 8px var(--shadow-ambient);
      transition: all var(--transition-fast);
    }
    .back-hub-btn:hover {
      border-color: var(--border-accent);
      transform: translateX(-2px);
    }

    /* Theme Toggle */
    .theme-toggle-btn {
      width: 38px;
      height: 38px;
      border-radius: var(--radius-full);
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 8px var(--shadow-ambient);
      transition: all var(--transition-fast);
    }
    .theme-toggle-btn:hover {
      background: var(--surface-hover);
      border-color: var(--border-specular);
    }
    .theme-toggle-icon {
      display: none;
      line-height: 1;
    }
    html[data-theme="dark"] .icon-sun,
    html[data-theme="elegant"] .icon-sun,
    html[data-theme="warm"] .icon-sun,
    html[data-theme="brand"] .icon-sun {
      display: inline-flex;
    }
    html[data-theme="light"] .icon-moon,
    html[data-theme="minimal"] .icon-moon {
      display: inline-flex;
    }

    /* Business Profile Header */
    .biz-profile {
      text-align: center;
      margin-top: -35px;
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .avatar {
      width: 82px;
      height: 82px;
      border-radius: 22px;
      background: var(--surface-card);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 2.1rem;
      font-weight: 800;
      color: var(--gold-primary);
      box-shadow: var(--shadow-elevated);
      border: 3px solid var(--bg);
      overflow: hidden;
      margin-bottom: 0.65rem;
    }
    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .menu-title {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text);
    }
    .menu-desc {
      font-size: 0.84rem;
      color: var(--text-muted);
      margin-top: 0.25rem;
      max-width: 320px;
    }
    .loc-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.28rem 0.8rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-top: 0.5rem;
    }

    /* Live Search Box */
    .search-box {
      margin-bottom: 1.25rem;
      position: relative;
    }
    .search-input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }
    .search-icon {
      position: absolute;
      left: 1rem;
      width: 18px;
      height: 18px;
      color: var(--text-muted);
      pointer-events: none;
    }
    .search-input {
      width: 100%;
      padding: 0.8rem 1rem 0.8rem 2.85rem;
      border-radius: var(--radius-md);
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 1rem;
      font-family: inherit;
      outline: none;
      box-shadow: 0 2px 10px var(--shadow-ambient);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .search-input:focus {
      border-color: var(--gold-primary);
      outline: 2px solid var(--gold-primary);
      outline-offset: 2px;
    }
    .search-clear-btn {
      position: absolute;
      right: 0.85rem;
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: none;
      padding: 0.25rem;
    }

    /* Category Pill Nav (Sticky horizontal scroll) */
    .cat-nav-wrapper {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--bg);
      padding: 0.5rem 0 0.85rem;
      margin: 0 -1.15rem 1.25rem;
      max-width: 100vw;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid transparent;
      transition: border-color var(--transition-fast), background var(--transition-fast);
    }
    .cat-nav-wrapper.is-stuck {
      border-bottom-color: var(--border);
      box-shadow: 0 4px 16px var(--shadow-ambient);
    }
    .cat-nav {
      display: flex;
      gap: 0.5rem;
      overflow-x: auto;
      padding: 0 1.15rem;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }
    .cat-nav::-webkit-scrollbar {
      display: none;
    }
    .cat-pill {
      white-space: nowrap;
      padding: 0.45rem 1rem;
      border-radius: var(--radius-full);
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 700;
      text-decoration: none;
      transition: all var(--transition-fast);
      box-shadow: 0 2px 6px var(--shadow-ambient);
      flex-shrink: 0;
      scroll-margin: 0 1.15rem;
    }
    .cat-pill:hover, .cat-pill.active {
      background: var(--gold-primary);
      color: #FFFFFF;
      border-color: var(--gold-primary);
      box-shadow: 0 2px 6px rgba(28, 38, 40, 0.16);
    }

    /* Category Sections & Items List */
    .category-section {
      margin-bottom: 2rem;
      scroll-margin-top: 4.5rem;
    }
    .category-header {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.015em;
      margin-bottom: 0.35rem;
      color: var(--text);
    }
    .category-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    .items-list {
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    /* Item Card */
    .item-card {
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-top: 1px solid var(--border-specular);
      border-radius: var(--card-radius);
      padding: 1.15rem;
      display: flex;
      gap: 1rem;
      box-shadow: 0 2px 10px var(--shadow-ambient);
      transition: all var(--transition-fast);
      position: relative;
    }
    .item-card:hover {
      border-color: var(--border-accent);
      box-shadow: var(--shadow-elevated);
      transform: translateY(-1.5px);
    }
    .item-card.unavailable {
      opacity: 0.6;
      filter: grayscale(0.8);
    }
    .item-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .item-name-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 0.35rem;
    }
    .item-name {
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: var(--text);
      word-break: break-word;
    }
    .star-featured {
      font-size: 0.75rem;
      font-weight: 800;
      padding: 0.15rem 0.5rem;
      border-radius: var(--radius-full);
      background: rgba(200, 141, 56, 0.15);
      color: var(--gold-primary);
      border: 1px solid rgba(200, 141, 56, 0.3);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 2px;
    }
    .item-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 0.75rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .item-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      gap: 0.75rem;
    }
    .item-price {
      font-size: 1.1rem;
      font-weight: 900;
      color: var(--text);
      letter-spacing: -0.02em;
      line-height: 1.2;
    }
    .item-price-prefix {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .item-net-price {
      margin: 0.35rem 0 0;
      font-size: 0.75rem;
      font-weight: 600;
      line-height: 1.35;
      color: var(--text-muted);
    }
    .item-add-btn {
      flex-shrink: 0;
      align-self: center;
      min-height: 44px;
      padding: 0.55rem 0.95rem;
      border-radius: var(--radius-sm);
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-weight: 700;
      font-size: 0.875rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all var(--transition-fast);
    }
    .item-add-btn:hover {
      background: var(--gold-primary);
      color: #FFFFFF;
      border-color: var(--gold-primary);
      box-shadow: 0 2px 6px rgba(28, 38, 40, 0.16);
    }
    .item-add-btn:active {
      transform: scale(0.95);
    }
    .sold-out-badge {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--text-muted);
      background: var(--surface);
      padding: 0.25rem 0.6rem;
      border-radius: var(--radius-full);
    }
    .item-img {
      width: 96px;
      height: 96px;
      border-radius: 16px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--surface);
      border: 1px solid var(--border);
    }

    /* Floating Cart Summary Bar */
    .cart-bar {
      position: fixed;
      bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 2.3rem);
      max-width: 480px;
      background: var(--primary);
      color: #FFFFFF;
      padding: 0.95rem 1.25rem;
      border-radius: var(--radius-xl);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
      display: none;
      align-items: center;
      justify-content: space-between;
      z-index: 100;
      cursor: pointer;
      font-weight: 800;
      font-size: 0.92rem;
      animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .cart-bar-badge {
      background: var(--gold-primary);
      color: #FFFFFF;
      padding: 0.2rem 0.6rem;
      border-radius: var(--radius-full);
      font-size: 0.78rem;
    }
    @keyframes slideUp {
      from { transform: translate(-50%, 100%); opacity: 0; }
      to { transform: translate(-50%, 0); opacity: 1; }
    }

    /* Bottom Sheet Cart Modal */
    .cart-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(18, 23, 24, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 200;
      display: none;
      align-items: flex-end;
      justify-content: center;
    }
    @media (min-width: 640px) {
      .cart-modal-backdrop {
        align-items: center;
        padding: 1rem;
      }
    }
    .cart-modal {
      width: 100%;
      max-width: 480px;
      max-height: 85vh;
      background: var(--bg);
      border: 1px solid var(--border-specular);
      border-radius: 28px 28px 0 0;
      padding: 1.5rem;
      padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    }
    @media (min-width: 640px) {
      .cart-modal {
        border-radius: 28px;
        box-shadow: var(--shadow-elevated);
      }
    }
    .cart-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border);
    }
    .qty-btn {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-weight: 800;
      font-size: 1.1rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast);
    }
    .qty-btn:hover {
      background: var(--surface-hover);
      border-color: var(--border-specular);
    }
    .cart-input {
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 1rem;
      font-family: inherit;
      outline: none;
    }
    .cart-input:focus {
      border-color: var(--gold-primary);
      outline: 2px solid var(--gold-primary);
      outline-offset: 2px;
    }
    .order-btn {
      width: 100%;
      padding: 0.95rem;
      border-radius: 14px;
      background: var(--emerald-primary);
      color: #FFFFFF;
      font-weight: 800;
      font-size: 0.98rem;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 20px var(--emerald-glow);
      transition: all 0.2s;
    }
    .order-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* Footer & TOC Badge */
    .footer {
      margin-top: 2rem;
      text-align: center;
      padding-top: 1.5rem;
      width: 100%;
      display: flex;
      justify-content: center;
    }
    .toc-brand-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.45rem 1rem;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.74rem;
      font-weight: 600;
      transition: all var(--transition-fast);
      box-shadow: 0 3px 12px var(--shadow-ambient);
    }
    .toc-brand-badge:hover {
      border-color: var(--border-accent);
      color: var(--text);
      transform: translateY(-1.5px);
    }
    .toc-badge-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: var(--gold-primary);
      color: #FFFFFF;
      font-weight: 900;
      font-size: 0.68rem;
    }
    .toc-badge-brand {
      font-weight: 800;
      color: var(--text);
    }
    .toc-badge-dot {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--border-specular);
    }

    /* Editorial & Boutique Layout */
    .layout-editorial .items-list {
      display: flex;
      flex-direction: column;
      gap: 1.15rem;
      background: transparent;
      padding: 0;
    }
    .layout-editorial .editorial-item {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      padding: 0.5rem 0;
      border-bottom: 1px dashed var(--border);
      position: relative;
    }
    .layout-editorial .editorial-item:last-child {
      border-bottom: none;
    }
    .layout-editorial .editorial-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      width: 100%;
      gap: 0.75rem;
    }
    .layout-editorial .editorial-name {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--text);
    }
    .layout-editorial .editorial-dots {
      flex: 1;
      border-bottom: 1.5px dotted var(--border-specular);
      height: 1px;
      min-width: 16px;
      margin-bottom: 4px;
      opacity: 0.7;
    }
    .layout-editorial .editorial-price {
      font-family: var(--font-sans);
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--gold-primary);
      white-space: nowrap;
      text-align: right;
    }
    .layout-editorial .editorial-desc {
      font-size: 0.825rem;
      line-height: 1.4;
      color: var(--text-muted);
      font-style: italic;
    }
    .variants-selector {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.35rem;
    }
    .variant-chip {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      border-radius: var(--radius-sm);
      transition: all var(--transition-fast);
    }
    .variant-pill {
      font-size: 0.75rem;
      color: var(--text-muted);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.2rem 0.5rem;
      line-height: 1.3;
      font-weight: 600;
    }
    .variant-tax-notice {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-weight: 500;
      margin-top: 2px;
      line-height: 1.2;
    }
    .category-footer-note {
      font-size: 0.8rem;
      color: var(--gold-primary);
      font-style: italic;
      margin-top: 0.5rem;
      padding-left: 0.25rem;
    }
    .menu-footer-notes {
      margin-top: 2.5rem;
      padding: 1.25rem;
      background: var(--surface);
      border-radius: var(--card-radius);
      border: 1px dashed var(--border-accent);
      text-align: center;
      font-family: var(--font-display);
      font-size: 0.85rem;
      line-height: 1.6;
      color: var(--text);
    }

/* === SECTION: review.html === */
/* ==========================================================================
       TOC REVIEW FLOW DESIGN SYSTEM
       Warm Ivory Porcelain / Deep Slate Teal / Warm Amber Gold
       ========================================================================== */
    :root {
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-display: 'Plus Jakarta Sans', sans-serif;
      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 20px;
      --radius-xl: 24px;
      --radius-full: 9999px;
      --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      --star-gold: #F59E0B;
      --gold-primary: #C88D38;
      --gold-hover: #D9A75F;
      --gold-glow: rgba(200, 141, 56, 0.25);
    }

    /* 1. LIGHT THEME */
    html[data-theme="light"], .theme-light {
      --bg: #FAF8F5;
      --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 45%, #F3EFE8 100%);
      --surface: #F3EFE8;
      --surface-card: #FFFFFF;
      --surface-hover: #FAF8F5;
      --border: #E8E4DD;
      --border-specular: #DFDAD2;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #1C2628;
      --text-muted: #5D6E72;
      --primary: #12333B;
      --primary-hover: #194650;
      --primary-glow: rgba(18, 51, 59, 0.15);
      --shadow-ambient: rgba(28, 38, 40, 0.06);
      --shadow-elevated: 0 16px 36px -4px rgba(28, 38, 40, 0.1), 0 4px 12px -2px rgba(28, 38, 40, 0.05);
      --card-radius: 24px;
    }

    /* 2. DARK THEME */
    html[data-theme="dark"], .theme-dark {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #18181b 0%, #09090b 70%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.35);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 18px 40px -4px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.35);
      --card-radius: 24px;
    }

    /* 3. ELEGANT THEME */
    html[data-theme="elegant"], .theme-elegant {
      --font-display: 'Playfair Display', Georgia, serif;
      --bg: #0C0A09;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #201B17 0%, #0C0A09 75%);
      --surface: #171412;
      --surface-card: #151210;
      --surface-hover: #221D18;
      --border: rgba(212, 175, 55, 0.3);
      --border-specular: rgba(212, 175, 55, 0.55);
      --border-accent: rgba(212, 175, 55, 0.65);
      --text: #FDFBF7;
      --text-muted: #B8AEA3;
      --primary: #D4AF37;
      --primary-hover: #E7C875;
      --primary-glow: rgba(212, 175, 55, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.6);
      --shadow-elevated: 0 20px 45px rgba(0, 0, 0, 0.7);
      --card-radius: 16px;
    }

    /* 4. WARM THEME */
    html[data-theme="warm"], .theme-warm {
      --bg: #140E0A;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, #281B13 0%, #140E0A 75%);
      --surface: #241811;
      --surface-card: #1F140E;
      --surface-hover: #2F1E16;
      --border: rgba(200, 141, 56, 0.25);
      --border-specular: rgba(200, 141, 56, 0.5);
      --border-accent: rgba(200, 141, 56, 0.6);
      --text: #FFFDF5;
      --text-muted: #D9BFAD;
      --primary: #C88D38;
      --primary-hover: #D9A75F;
      --primary-glow: rgba(200, 141, 56, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.65);
      --card-radius: 24px;
    }

    /* 5. MINIMAL THEME */
    html[data-theme="minimal"], .theme-minimal {
      --bg: #FFFFFF;
      --bg-gradient: none;
      --surface: #F4F4F5;
      --surface-card: #FFFFFF;
      --surface-hover: #F4F4F5;
      --border: #E4E4E7;
      --border-specular: #D4D4D8;
      --border-accent: #18181B;
      --text: #09090B;
      --text-muted: #71717A;
      --primary: #09090B;
      --primary-hover: #27272A;
      --primary-glow: rgba(9, 9, 11, 0.08);
      --shadow-ambient: rgba(0, 0, 0, 0.04);
      --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.06);
      --card-radius: 12px;
    }

    /* 6. BRAND THEME */
    html[data-theme="brand"], .theme-brand {
      --bg: #09090b;
      --bg-gradient: radial-gradient(ellipse at 50% -10%, rgba(245, 158, 11, 0.12) 0%, #09090b 75%);
      --surface: #121215;
      --surface-card: #18181b;
      --surface-hover: #27272a;
      --border: #27272a;
      --border-specular: #3f3f46;
      --border-accent: rgba(200, 141, 56, 0.4);
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --primary: var(--brand-primary, #C88D38);
      --primary-hover: var(--brand-primary-hover, #D9A75F);
      --primary-glow: rgba(200, 141, 56, 0.25);
      --shadow-ambient: rgba(0, 0, 0, 0.5);
      --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.65);
      --card-radius: 24px;
    }

    /* Base Reset */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
    body {
      font-family: var(--font-sans);
      background-color: var(--bg);
      background-image: var(--bg-gradient);
      background-attachment: fixed;
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.75rem 1.15rem 2.5rem;
      position: relative;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .container {
      width: 100%;
      max-width: 440px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      flex: 1;
    }

    /* Top Navigation Header */
    .top-nav {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.25rem;
    }
    .nav-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.8rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.78rem;
      font-weight: 700;
      transition: all var(--transition-fast);
    }
    .nav-back-btn:hover {
      border-color: var(--border-accent);
      color: var(--text);
      transform: translateX(-2px);
    }

    /* Theme Switcher */
    .theme-toggle-btn {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-full);
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 8px var(--shadow-ambient);
      transition: all var(--transition-fast);
    }
    .theme-toggle-btn:hover {
      background: var(--surface-hover);
      border-color: var(--border-specular);
      transform: scale(1.05);
    }
    .theme-toggle-icon {
      display: none;
      line-height: 1;
    }
    html[data-theme="dark"] .icon-sun,
    html[data-theme="elegant"] .icon-sun,
    html[data-theme="warm"] .icon-sun,
    html[data-theme="brand"] .icon-sun {
      display: inline-flex;
    }
    html[data-theme="light"] .icon-moon,
    html[data-theme="minimal"] .icon-moon {
      display: inline-flex;
    }

    /* Profile Header */
    .avatar-wrapper {
      position: relative;
      margin-bottom: 1rem;
    }
    .avatar {
      width: 82px;
      height: 82px;
      border-radius: 22px;
      background: var(--surface-card);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.1rem;
      font-weight: 800;
      color: var(--gold-primary);
      box-shadow: var(--shadow-elevated);
      border: 2px solid var(--border-specular);
      overflow: hidden;
    }
    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .business-name {
      font-family: var(--font-display);
      font-size: 1.55rem;
      font-weight: 800;
      letter-spacing: -0.025em;
      margin-bottom: 0.35rem;
      text-align: center;
    }
    .location-info {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 1.75rem;
      text-align: center;
    }

    /* Flow Cards */
    .card {
      width: 100%;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-top: 1px solid var(--border-specular);
      border-radius: var(--card-radius);
      padding: 2rem 1.5rem;
      text-align: center;
      box-shadow: var(--shadow-elevated);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      animation: fadeInUp 0.35s ease-out;
    }
    .prompt-title {
      font-size: 1.22rem;
      font-weight: 800;
      letter-spacing: -0.015em;
      margin-bottom: 0.45rem;
      color: var(--text);
    }
    .prompt-desc {
      font-size: 0.86rem;
      color: var(--text-muted);
      margin-bottom: 1.65rem;
      line-height: 1.45;
    }

    /* Stars Row */
    .stars-row {
      display: flex;
      justify-content: center;
      gap: 0.65rem;
      margin-bottom: 1.25rem;
    }
    .star-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.35rem;
      transition: transform 0.15s ease;
      position: relative;
    }
    .star-btn:hover {
      transform: scale(1.18);
    }
    .star-btn:active {
      transform: scale(1.3);
    }
    .star-icon {
      width: 44px;
      height: 44px;
      color: var(--border);
      fill: currentColor;
      transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    }
    .star-btn.active .star-icon,
    .star-btn:hover .star-icon {
      color: var(--star-gold);
      filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
    }
    #rating-hint {
      font-size: 0.82rem;
      color: var(--text-muted);
      font-weight: 700;
      min-height: 1.2rem;
    }

    /* Feedback Tags */
    .feedback-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .feedback-tag-btn {
      padding: 0.55rem 0.85rem;
      border-radius: var(--radius-full);
      background: var(--surface);
      border: 1px solid var(--border);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text-muted);
      cursor: pointer;
      min-height: 38px;
      transition: all var(--transition-fast);
    }
    .feedback-tag-btn.active, .feedback-tag-btn:hover {
      background: rgba(200, 141, 56, 0.12);
      border-color: var(--gold-primary);
      color: var(--gold-primary);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      width: 100%;
      padding: 0.95rem 1.25rem;
      border-radius: 14px;
      font-size: 0.95rem;
      font-weight: 800;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
      border: none;
    }
    .btn-primary {
      background: var(--gold-primary);
      color: #FFFFFF;
      box-shadow: 0 4px 16px var(--gold-glow);
    }
    .btn-primary:hover {
      background: var(--gold-hover);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px var(--gold-glow);
    }
    .btn-primary:active {
      transform: scale(0.98);
    }
    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      margin-top: 0.75rem;
    }
    .btn-secondary:hover {
      background: var(--surface-hover);
      border-color: var(--border-specular);
    }

    /* Textarea */
    .textarea-feedback {
      width: 100%;
      min-height: 105px;
      padding: 0.85rem 1rem;
      border-radius: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: inherit;
      font-size: 1rem;
      resize: vertical;
      margin-bottom: 0.85rem;
      outline: none;
      transition: border-color 0.2s ease;
    }
    .textarea-feedback:focus {
      border-color: var(--gold-primary);
      outline: 2px solid var(--gold-primary);
      outline-offset: 2px;
    }

    /* Footer & TOC Badge */
    .footer {
      margin-top: auto;
      text-align: center;
      padding-top: 1.5rem;
      width: 100%;
      display: flex;
      justify-content: center;
    }
    .toc-brand-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.45rem 1rem;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.74rem;
      font-weight: 600;
      transition: all var(--transition-fast);
      box-shadow: 0 3px 12px var(--shadow-ambient);
    }
    .toc-brand-badge:hover {
      border-color: var(--border-accent);
      color: var(--text);
      transform: translateY(-1.5px);
    }
    .toc-badge-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: var(--gold-primary);
      color: #FFFFFF;
      font-weight: 900;
      font-size: 0.68rem;
    }
    .toc-badge-brand {
      font-weight: 800;
      color: var(--text);
    }
    .toc-badge-dot {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--border-specular);
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

/* === SECTION: loyalty.html === */
:root {
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      --radius-sm: 12px;
      --radius-md: 16px;
      --radius-lg: 20px;
      --radius-xl: 24px;
      --radius-full: 9999px;
      --gold: #C88D38;
      --gold-hover: #D9A75F;
      --teal: #12333B;
      --teal-surface: #194650;
      --bg: #FAF8F5;
      --surface: #FFFFFF;
      --surface-subtle: #F3EFE8;
      --border: #E8E4DD;
      --text: #1C2628;
      --text-muted: #5D6E72;
    }
    html[data-theme="dark"], .theme-dark {
      --bg: #09090b;
      --surface: #18181b;
      --surface-subtle: #121215;
      --border: #27272a;
      --text: #FAFAFA;
      --text-muted: #A1A1AA;
      --gold: #D9A75F;
      --teal: #194650;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.25rem 1rem 3rem;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      width: 100%;
      max-width: 440px;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding-bottom: 0.5rem;
    }
    .brand-logo {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      object-fit: cover;
      background: var(--surface-subtle);
      border: 1px solid var(--border);
    }
    .brand-info h1 {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--text);
      line-height: 1.2;
    }
    .brand-info p {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: 500;
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    /* Points Hero Card */
    .hero-card {
      background: linear-gradient(135deg, var(--teal) 0%, #0D2429 100%);
      color: #FFFFFF;
      border: 1px solid rgba(200, 141, 56, 0.3);
      position: relative;
      overflow: hidden;
    }
    .hero-card::after {
      content: "";
      position: absolute;
      top: -30px;
      right: -30px;
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(200, 141, 56, 0.25) 0%, transparent 70%);
      pointer-events: none;
    }
    .points-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }
    .points-count {
      font-size: 3rem;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -0.03em;
      margin-bottom: 0.25rem;
    }
    .points-label {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 1.25rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 0.85rem 1.25rem;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      border: none;
      transition: all 0.2s ease;
      text-decoration: none;
    }
    .btn-gold {
      background: var(--teal);
      color: #FFFFFF;
      box-shadow: 0 1px 2px rgba(18, 51, 59, 0.12);
    }
    .btn-gold:hover { background: var(--teal-surface); transform: translateY(-1px); }
    .btn:active { transform: scale(0.98); }
    .btn:disabled, .btn[disabled] {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
    .btn-spinner {
      display: inline-block;
      width: 1.1rem;
      height: 1.1rem;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-radius: 50%;
      border-top-color: #FFFFFF;
      animation: loyalty-spin 0.6s linear infinite;
      margin-right: 0.5rem;
      vertical-align: middle;
    }
    @keyframes loyalty-spin { to { transform: rotate(360deg); } }
    .text-link-btn {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.65);
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
      padding: 0.25rem 0.5rem;
      margin-top: 0.5rem;
      display: inline-block;
    }
    .text-link-btn:hover { color: #FFFFFF; }
    .btn-secondary {
      background: var(--surface-subtle);
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-secondary:hover { background: var(--border); }

    /* Onboarding State */
    .input-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    .input-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text);
    }
    .phone-input {
      width: 100%;
      padding: 0.85rem 1rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--surface-subtle);
      color: var(--text);
      font-size: 1.1rem;
      font-weight: 700;
      outline: none;
    }
    .phone-input:focus {
      border-color: var(--gold);
    }

    /* Catalog Section */
    .section-title {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 0.75rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .reward-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .reward-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
    }
    .reward-info h4 {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.2rem;
    }
    .reward-info p {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .reward-cost {
      font-size: 0.8rem;
      font-weight: 800;
      color: var(--gold);
      background: rgba(200, 141, 56, 0.1);
      padding: 0.25rem 0.6rem;
      border-radius: var(--radius-full);
      white-space: nowrap;
    }
    .btn-claim {
      padding: 0.65rem 1rem;
      min-height: 40px;
      font-size: 0.82rem;
      font-weight: 700;
      border-radius: var(--radius-sm);
      background: var(--teal);
      color: #FFFFFF;
      border: none;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-claim:disabled {
      background: var(--border);
      color: var(--text-muted);
      cursor: not-allowed;
    }
    @media (max-width: 380px) {
      .reward-item { flex-wrap: wrap; }
      .btn-claim { width: 100%; margin-top: 0.5rem; }
    }

    /* Modal Backdrop */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 100;
    }
    .modal-backdrop.open { display: flex; }
    .modal-dialog {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 2rem 1.5rem;
      width: 100%;
      max-width: 360px;
      text-align: center;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      position: relative;
    }
    .otp-qr {
      width: 180px;
      height: 180px;
      margin: 1rem auto 0;
    }
    .otp-qr svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .otp-pin {
      font-size: 3.25rem;
      font-weight: 900;
      letter-spacing: 0.2em;
      color: var(--teal);
      margin: 1rem 0 0.5rem;
      font-variant-numeric: tabular-nums;
    }
    .otp-timer {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: 600;
    }
    .modal-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.5rem;
      cursor: pointer;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

/* === SECTION: device_error.html === */
:root {
      --bg: #FAF8F5;
      --card-bg: #FFFFFF;
      --text: #1C2628;
      --text-muted: #5D6E72;
      --primary: #12333B;
      --primary-hover: #194650;
      --accent: #73461E;
      --gold: #C88D38;
      --border: #E8E4DD;
      --radius: 16px;
    }

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

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
      line-height: 1.5;
      text-align: center;
    }

    .error-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 40px 24px;
      max-width: 440px;
      width: 100%;
      box-shadow: 0 10px 25px -5px rgba(28, 38, 40, 0.06), 0 8px 10px -6px rgba(28, 38, 40, 0.04);
    }

    .logo-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: #12333B;
      color: #FFFFFF;
      margin-bottom: 20px;
      font-weight: 800;
      font-size: 22px;
      letter-spacing: -0.5px;
    }

    .status-badge {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      background: rgba(115, 70, 30, 0.08);
      border: 1px solid rgba(115, 70, 30, 0.18);
      padding: 4px 12px;
      border-radius: 9999px;
      margin-bottom: 16px;
    }

    h1 {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 12px;
      line-height: 1.3;
    }

    p {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 24px;
      line-height: 1.6;
    }

    .error-code-wrapper {
      margin-bottom: 28px;
    }

    .error-code {
      display: inline-block;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 11px;
      font-weight: 600;
      color: #85969A;
      background: #F3EFE8;
      padding: 3px 10px;
      border-radius: 6px;
    }

    .actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary);
      color: #FFFFFF;
      font-size: 14px;
      font-weight: 700;
      padding: 13px 20px;
      border-radius: 12px;
      text-decoration: none;
      transition: background-color 0.15s ease;
    }

    .btn-primary:hover, .btn-primary:focus {
      background: var(--primary-hover);
    }

    .btn-secondary {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #FFFFFF;
      color: var(--text);
      border: 1px solid var(--border);
      font-size: 13px;
      font-weight: 600;
      padding: 12px 20px;
      border-radius: 12px;
      text-decoration: none;
      transition: background-color 0.15s ease;
    }

    .btn-secondary:hover, .btn-secondary:focus {
      background: #FAF8F5;
    }

    .footer-note {
      margin-top: 32px;
      font-size: 12px;
      color: #85969A;
    }

    .footer-note a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
    }
