  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    --bg: #0A0912;
    --surface: #15131F;
    --surface-alt: #1D1A2B;
    --surface-hi: #262138;
    --line: #29253A;
    --text: #F3F1F7;
    --text-muted: #948FA3;
    --text-dim: #6B667C;
    --accent: #7C5CFC;
    --accent-soft: #9B7CFF;
    --accent-dim: #4B3AA3;
    --accent-2: #FF3D81;
    --success: #4ADE80;
    --warn: #FFC857;
    --danger: #FF6767;
    --blue: #38B6FF;
    --teal: #2EE6C7;
    --gold: #D4AF37;

    --font-display: 'Unbounded', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  #app { min-height: 100%; display: flex; flex-direction: column; }
  a { color: inherit; }

  /* ---------- Top bar (flow / detail screens) ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 20;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
    background: linear-gradient(180deg, rgba(10,9,18,0.97) 65%, rgba(10,9,18,0));
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: space-between;
  }
  .brand { display: flex; align-items: center; gap: 8px; }
  .brand-mark { height: 26px; width: auto; flex-shrink: 0; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4)); }
  .brand-word { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
  .brand-word span { color: var(--text-dim); font-weight: 500; }
  .topbar-icons { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
  .topbar-icons svg { display: block; }
  .progress-dots { display: flex; gap: 6px; }
  .progress-dots i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--line);
    transition: background .25s, transform .25s; display: block;
  }
  .progress-dots i.active { background: var(--accent); transform: scale(1.4); }
  .progress-dots i.done { background: var(--accent-2); }
  .step-count { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }

  .back-row { display: flex; align-items: center; gap: 12px; }
  .back-btn {
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
  }
  .back-btn:hover { border-color: var(--accent-dim); }

  /* ---------- Main ---------- */
  main { flex: 1; padding: 4px 18px 130px; max-width: 640px; width: 100%; margin: 0 auto; }
  main.with-tabbar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .step { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) { .step { animation: none; } }

  h1.hero { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.18; margin: 0 0 6px; letter-spacing: -0.01em; }
  p.lede { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin: 0 0 24px; max-width: 46ch; }
  h2.step-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; }
  p.step-sub { color: var(--text-muted); font-size: 13.5px; margin: 4px 0 18px; }
  .title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }

  /* ---------- Buttons ---------- */
  .btn-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 100px; font-family: var(--font-body); font-weight: 700;
    font-size: 15px; cursor: pointer; padding: 16px 24px; transition: transform .1s, opacity .15s;
  }
  .btn-pill:active { transform: scale(0.98); }
  .btn-pill.primary { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: #fff; box-shadow: 0 10px 28px -10px rgba(124,92,252,0.6); }
  .btn-pill.block { width: 100%; }
  .btn-pill:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

  /* ---------- Hero card (home) ---------- */
  .hero-card {
    position: relative; border-radius: 22px; overflow: hidden; min-height: 210px;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
    margin-bottom: 22px; margin-top: 6px;
  }
  .hero-layer { position: absolute; inset: 0; background-size: cover; background-position: center 55%; opacity: 0; transition: opacity 1.1s ease; }
  .hero-layer.active { opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .hero-layer { transition: none; } }
  .hero-dots { position: absolute; bottom: 12px; right: 16px; z-index: 2; display: flex; gap: 5px; }
  .hero-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.35); display: block; }
  .hero-dots i.on { background: #fff; }
  .hero-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,18,0.15) 0%, rgba(10,9,18,0.94) 92%); }
  .hero-card .hc-inner { position: relative; z-index: 1; }
  .hero-card .hc-eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent-2); margin-bottom: 6px; }
  .hero-card h1 { font-size: 24px; margin-bottom: 14px; }
  .hero-card h1 b { color: var(--accent-soft); font-weight: 700; }

  /* ---------- Quick access icons ---------- */
  .quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 22px; }
  .quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border: none; background: none; padding: 4px; }
  img.quick-icon { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-hi); border: 1px solid var(--line); }
  .quick-item span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-align: center; }

  /* ---------- Info card (home) ---------- */
  .info-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 20px; }
  .info-card .info-rows { flex: 1; display: flex; flex-direction: column; gap: 10px; }
  .info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); }
  .info-row svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-soft); }
  .info-row b { color: var(--text); font-weight: 600; }
  .info-row a { color: var(--text-muted); text-decoration: none; }

  .social-row { display: flex; gap: 10px; margin-bottom: 22px; }
  .social-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
    color: var(--text-muted); text-decoration: none; font-size: 11px; font-weight: 600;
  }
  .social-btn svg { color: var(--accent-soft); }
  .social-logo { width: 30px; height: 30px; display: block; object-fit: contain; }
  .social-btn:active { transform: scale(0.97); }

  .home-sec-title { font-family: var(--font-display, inherit); font-size: 19px; font-weight: 800; margin: 4px 2px 10px; letter-spacing: .2px; }
  .home-sec-title small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-top: 2px; letter-spacing: 0; }
  .live-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 20px; }
  .live-item { padding: 12px 0; border-top: 1px solid var(--line); }
  .live-item:first-child { border-top: 0; padding-top: 2px; }
  .live-item .lv-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
  .live-item .lv-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
  .live-item .lv-date { margin-left: auto; font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
  .live-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; font-style: italic; }
  .live-empty { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; text-align: center; padding: 6px 4px; }
  .ta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 20px; }
  .ta-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .ta-badge { display: flex; align-items: center; gap: 8px; }
  .ta-stars { color: var(--warn); font-size: 14px; letter-spacing: 1px; }
  .ta-score { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
  .ta-count { font-size: 11.5px; color: var(--text-dim); }
  .ta-link { font-size: 10px; color: var(--accent-soft); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .ta-quote-wrap { position: relative; min-height: 78px; }
  .ta-quote { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
  .ta-quote.active { opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .ta-quote { transition: none; } }
  .ta-quote p { font-size: 14px; line-height: 1.5; margin: 0 0 8px; font-style: italic; color: var(--text); }
  .ta-quote .ta-author { font-size: 12px; color: var(--text-muted); font-weight: 600; font-style: normal; }
  .ta-dots { display: flex; gap: 5px; margin-top: 10px; }
  .ta-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: block; }
  .ta-dots i.on { background: var(--accent-soft); }

  .ticket-card { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; margin-bottom: 12px; border: 2px solid var(--line); background: var(--surface); transition: border-color .2s, transform .15s; }
  .ticket-row { display: flex; gap: 10px; margin-bottom: 4px; }
  .ticket-row .ticket-card { flex: 1; min-width: 0; margin-bottom: 0; }
  .ticket-card:active { transform: scale(0.98); }
  .ticket-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(124,92,252,0.25); }
  .ticket-card img { display: block; width: 100%; height: auto; padding-bottom: 0; background: var(--surface); }
  .ticket-row .ticket-caption { padding: 6px 12px 8px; gap: 1px; }
  .ticket-row .ticket-caption b { font-size: 14px; }
  .ticket-row { margin-bottom: 0; }
  .contact-box .field { margin-bottom: 10px; }
  .contact-box .field label { margin-bottom: 5px; }
  .contact-box .promo-row { margin-bottom: 10px; }
  .ticket-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
  .ticket-check svg { width: 13px; height: 13px; }
  .ticket-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px 12px; background: var(--surface); }
  .ticket-caption span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
  .ticket-caption b { font-family: var(--font-display); font-size: 15px; color: var(--accent-2); }

  .map-card {
    position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
    background: var(--surface); margin-bottom: 20px; cursor: pointer; display: block; text-decoration: none;
  }
  .map-card svg { display: block; width: 100%; height: 80px; }
  .map-card .map-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: var(--surface);
  }
  .map-card .map-addr { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
  .map-card .map-addr b { color: var(--text); display: block; font-size: 12px; margin-bottom: 1px; }
  .map-card .map-cta { flex-shrink: 0; display: flex; align-items: center; gap: 6px; color: var(--accent-soft); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
  .map-pin-pulse { animation: pin-pulse 2.2s ease-in-out infinite; transform-origin: center; }
  @keyframes pin-pulse { 0%,100% { r: 5; opacity: 0.35; } 50% { r: 11; opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .map-pin-pulse { animation: none; opacity: 0; } }

  /* ---------- Activity list (icon-row style) ---------- */
  .activity-list { display: flex; flex-direction: column; gap: 10px; }
  button { color: var(--text); font-family: inherit; }
  :root[data-theme="light"] {
    --bg: #F6F4FB; --surface: #FFFFFF; --surface-alt: #F1EEF8; --surface-hi: #E9E4F5; --line: #E0DAEE;
    --text: #17141F; --text-muted: #5C5670; --text-dim: #847E97;
    --accent: #6A48F0; --accent-soft: #7C5CFC; --accent-dim: #CBBEFB; --accent-2: #E0266A;
    --success: #15984A; --warn: #B7791F; --danger: #D63A3A; --blue: #0B7FCC; --teal: #0E9A83; --gold: #9E7A12;
  }
  :root[data-theme="light"] .topbar { background: linear-gradient(180deg, rgba(246,244,251,0.97) 65%, rgba(246,244,251,0)); }
  :root[data-theme="light"] .bottombar { background: linear-gradient(0deg, rgba(246,244,251,0.98) 60%, rgba(246,244,251,0)); }
  :root[data-theme="light"] .tabbar { background: rgba(255,255,255,0.94); }
  :root[data-theme="light"] .toast { background: rgba(30,26,44,0.94); color: #F3F1F7; border-color: transparent; }
  :root[data-theme="light"] .ident-overlay { background: rgba(20,16,32,0.45); }
  :root[data-theme="light"] .brand-mark { filter: brightness(0.3) contrast(1.2); }
  :root[data-theme="light"] .xp-bar { background: rgba(0,0,0,0.08); }
  :root[data-theme="light"] .uni-avatar-card, :root[data-theme="light"] .uni-avatar-card * { color: #F3F1F7; }
  :root[data-theme="light"] .hero-card, :root[data-theme="light"] .hero-card * { color: #fff; }
  :root[data-theme="light"] .room-card, :root[data-theme="light"] .room-card * { color: #fff; }
  :root[data-theme="light"] .game-art-fallback { background: radial-gradient(circle at 50% 40%, rgba(124,92,252,.35), rgba(56,182,255,.12) 55%, #ECE8F7 80%); }
  .topbar-tools { display: flex; align-items: center; gap: 8px; position: relative; }
  .tool-btn { height: 34px; min-width: 34px; padding: 0 9px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .tool-btn svg { display: block; }
  .flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
  .flag svg { width: 100%; height: 100%; }
  .lang-menu { position: absolute; top: 42px; right: 0; z-index: 60; min-width: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 16px 36px -12px rgba(0,0,0,0.45); }
  .lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: none; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; text-align: start; }
  .lang-menu button.active { background: var(--surface-hi); }
  [dir="rtl"] .lang-menu { right: auto; left: 0; }
  :root[lang="ar"] { --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; --font-display: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }
  :root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; }
  [dir="rtl"] .back-btn svg, [dir="rtl"] .chev svg, [dir="rtl"] .activity-row .chev { transform: scaleX(-1); }
  [dir="rtl"] .game-check { right: auto; left: 8px; }
  [dir="rtl"] .slot, [dir="rtl"] .ref-box, [dir="rtl"] .admin-res-ref { direction: ltr; unicode-bidi: isolate; }
  [dir="rtl"] input, [dir="rtl"] textarea { text-align: right; }
  [dir="rtl"] input[type=tel], [dir="rtl"] input[type=email] { direction: ltr; text-align: right; }
  .activity-row {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left;
    transition: border-color .2s, transform .15s;
  }
  .activity-row:active { transform: scale(0.99); }
  .activity-row:hover { border-color: var(--accent-dim); }
  .activity-row .ic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-hi); border: 1px solid var(--line); }
  .activity-row .info { flex: 1; min-width: 0; }
  .activity-row h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 3px; }
  .activity-row p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
  .activity-row .chev { color: var(--text-dim); flex-shrink: 0; }

  /* ---------- Room cards ---------- */
  .room-grid { display: flex; flex-direction: column; gap: 12px; }
  .room-card {
    border-radius: 16px; padding: 16px; cursor: pointer; position: relative;
    border: 2px solid transparent; overflow: hidden; min-height: 150px; aspect-ratio: 16 / 8;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; transition: border-color .2s, transform .15s;
    background-size: cover; background-position: center 55%;
  }
  .room-card:active { transform: scale(0.98); }
  .room-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(124,92,252,0.25); }
  .room-scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,9,18,0) 30%, rgba(10,9,18,0.92) 100%); }
  .room-card .room-name, .room-card .room-cap, .room-card .full-badge, .room-card .room-tag { position: relative; z-index: 1; }
  .room-card .room-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 3px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
  .room-card .room-cap { font-size: 13px; opacity: 0.9; }
  .room-card.full { filter: grayscale(0.6); opacity: 0.55; cursor: not-allowed; }
  .room-card .full-badge, .room-card .room-tag {
    position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700;
    background: rgba(10,9,18,0.6); backdrop-filter: blur(3px); padding: 4px 9px; border-radius: 20px; letter-spacing: 0.01em;
  }
  .room-card .room-tag { color: var(--accent-2); }

  /* ---------- Pack cards ---------- */
  .tk { position: relative; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 14px; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .15s; }
  .tk.selected { border-color: var(--accent); background: var(--surface-alt); box-shadow: 0 0 0 2px var(--accent) inset; }
  .tk { border-color: color-mix(in srgb, var(--tkc) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--tkc) 16%, var(--surface)) 0, var(--surface) 70%); }
  .tk.selected { border-color: var(--tkc) !important; box-shadow: 0 0 0 2px var(--tkc) inset, 0 0 18px color-mix(in srgb, var(--tkc) 35%, transparent) !important; }
  .tk-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: color-mix(in srgb, var(--tkc) 30%, transparent); border: 2px solid var(--tkc); flex: none; margin-right: 12px; }
  .tk-top > .tk-av + .tk-title { flex: 1; }
  .tk-foot b { color: var(--tkc); }
  .tk.selected .tk-check { background: var(--tkc) !important; border-color: var(--tkc) !important; color: #111; }

  .tk-cut { border-top-color: color-mix(in srgb, var(--tkc) 55%, var(--line)); }
  .tk-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
  .tk-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .tk-title h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
  .tk-unl { display:inline-block; font-weight: 900; color: #ff9f1c; border: 2px solid #ff9f1c; border-radius: 8px; padding: 2px 8px; font-size: 13px; letter-spacing: .1em; transform: rotate(-6deg); background: rgba(255,159,28,.12); box-shadow: 0 0 0 2px rgba(255,159,28,.18); text-transform: uppercase; }
  .tk-stamp { font-style: normal; font-weight: 900; color: #22d3ee; border: 2px solid #22d3ee; border-radius: 8px; padding: 2px 9px; font-size: 13px; letter-spacing: .1em; transform: rotate(-7deg); background: rgba(34,211,238,.12); text-transform: uppercase; white-space: nowrap; }
  .tk-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; flex: none; }
  .tk.selected .tk-check { background: var(--accent); border-color: var(--accent); color: #fff; }
  .tk-acts { list-style: none; margin: 0; padding: 6px 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
  .tk-acts li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.25; min-width: 0; }
  .tk-acts li::before { content: '✓'; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #111; background: var(--tkc); }
  .tk-cut { position: relative; border-top: 2px dashed var(--line); margin: 0 14px; height: 0; }
  .tk-cut i { position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg, #0b0b12); border: 2px solid var(--line); }
  .tk-cut i:first-child { left: -25px; } .tk-cut i:last-child { right: -25px; }
  .tk-foot { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 18px 15px; }
  .tk-foot span { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .tk-foot b { font-size: 22px; font-family: var(--font-display); } .tk-foot small { font-size: 12px; color: var(--text-dim); font-weight: 500; }
  .pack-card { border: 2px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; margin-bottom: 12px; cursor: pointer; background: var(--surface); transition: border-color .2s; }
  .pack-card.selected { border-color: var(--accent); background: var(--surface-alt); }
  .parents-note { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; padding: 14px 16px; border: 1.5px solid var(--warn); border-radius: 14px; background: rgba(255,200,87,0.14); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.45; }
  .parents-note-ic { font-size: 26px; line-height: 1; flex: 0 0 auto; }
  .pack-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
  .pack-card-head h3 { font-family: var(--font-display); font-size: 16px; margin: 0; }
  .pack-price { font-family: var(--font-display); font-size: 16px; color: var(--accent-2); white-space: nowrap; }
  .pack-items { display: flex; flex-wrap: wrap; gap: 6px; }
  .pack-items span { font-size: 12px; color: var(--text-muted); background: var(--surface-hi); padding: 4px 9px; border-radius: 20px; }

  /* ---------- Form controls ---------- */
  .field { margin-bottom: 18px; }
  .field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
  input[type=date], input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
    width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
    border-radius: 14px; padding: 13px 14px; font-family: var(--font-body); font-size: 15px;
  }
  input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  textarea { resize: vertical; min-height: 70px; }

  .slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  @media (max-width: 380px) { .slot-grid { grid-template-columns: repeat(2, 1fr); } }
  .slot { padding: 10px 4px; text-align: center; border-radius: 12px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-muted); }
  .slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
  .slot.blocked { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

  .stepper { display: flex; align-items: center; gap: 16px; }
  .stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; font-family: var(--font-body); }
  .stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
  .stepper .count { font-family: var(--font-display); font-size: 22px; min-width: 40px; text-align: center; }
  .stepper .cap-note { color: var(--text-dim); font-size: 12.5px; margin-left: auto; }

  /* ---------- Tariff rows (mockup "Tarif par personne" style) ---------- */
  .tariff-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }

  /* ---------- Menu (drinks) accordion ---------- */
  .menu-cat { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; background: var(--surface); transition: border-color .2s; }
  .menu-cat-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: none; cursor: pointer; text-align: left; }
  .menu-cat-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
  .menu-cat-name { flex: 1; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
  .menu-cat-chev { color: var(--text-dim); transition: transform .2s; flex-shrink: 0; }
  .menu-cat-body { padding: 0 16px 16px; }
  .menu-formats { font-size: 12px; color: var(--text-dim); margin: 0 0 10px; }
  .menu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .menu-chip { font-size: 12px; color: var(--text-muted); background: var(--surface-hi); padding: 5px 10px; border-radius: 20px; }
  .menu-price-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .menu-price-pill { flex: 1; min-width: 70px; text-align: center; background: var(--surface-hi); border-radius: 12px; padding: 8px 4px; }
  .menu-price-pill span { display: block; font-size: 10.5px; color: var(--text-dim); margin-bottom: 2px; }
  .menu-price-pill b { font-family: var(--font-display); font-size: 13px; color: var(--accent-2); }
  .menu-group-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 4px; }
  .menu-cat-body .summary-row { padding: 9px 0; }
  .tariff-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); font-size: 13.5px;
  }
  .tariff-row.active { border-color: var(--accent); background: var(--surface-alt); }
  .tariff-row .t-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface-hi); color: var(--accent-soft); }
  .tariff-row .t-label { flex: 1; color: var(--text-muted); font-weight: 500; }
  .tariff-row.active .t-label { color: var(--text); }
  .tariff-row .t-price { font-weight: 700; font-family: var(--font-display); font-size: 13px; }

  /* ---------- Anniversaire activity list ---------- */
  .game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
  .game-rows { margin-bottom: 8px; }
  .q, #sg-overlay .gqt, #sg-overlay .q, #sgMir .gqt { unicode-bidi: plaintext !important; }
  @keyframes blinkCta { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,61,129,0.75), 0 0 14px 2px rgba(255,61,129,0.55); filter: brightness(1); } 50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255,61,129,0), 0 0 30px 8px rgba(255,61,129,0.9); filter: brightness(1.3); } }
  .blink-cta { animation: blinkCta 1.1s ease-in-out infinite; }
  #sg-overlay .aopt { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
  #sg-overlay .aopt button { flex: 1 1 30%; padding: 11px 6px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
  #sg-overlay .aopt button.on { border-color: #ff4452; background: rgba(255,68,82,.28); }
  #sg-overlay .ainp { width: 100%; padding: 15px; border-radius: 14px; border: 2px solid rgba(255,255,255,.28); background: rgba(0,0,0,.35); color: #fff; font-size: 20px; text-align: center; margin: 6px 0 10px; }
  #sg-overlay .acode { font-size: 46px; font-weight: 900; letter-spacing: .18em; text-align: center; color: #fff; }
  #sg-overlay .qtext, #sg-overlay .answer { unicode-bidi: plaintext; }
  @media (prefers-reduced-motion: reduce) { .blink-cta { animation-duration: 2.4s; } }
  .game-row { gap: 12px; }
  .game-row.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,92,252,.25); }
  .game-row-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; display: block; background: #0b0a12; }
  .game-row-img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
  .game-row-logo .game-art-fallback { font-size: 26px; }
  .game-card { position: relative; display: block; padding: 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
  .game-card:active { transform: scale(.97); }
  .game-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,252,.28), 0 8px 24px rgba(124,92,252,.25); }
  .game-art { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0a12; }
  .game-art-fallback { display: flex; align-items: center; justify-content: center; font-size: 54px; background: radial-gradient(circle at 50% 40%, rgba(124,92,252,.45), rgba(56,182,255,.12) 55%, #0b0a12 80%); }
  .game-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: transparent; background: rgba(10,9,18,.55); border: 2px solid rgba(255,255,255,.75); }
  .game-card.selected .game-check { color: #fff; background: var(--accent); border-color: #fff; }
  .game-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 11px 10px; }
  .game-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
  .game-price { font-size: 12.5px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
  .game-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
  .game-thumb.game-art-fallback { font-size: 18px; }
  .anniv-activity { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
  .anniv-activity-head { display: flex; align-items: center; justify-content: space-between; }
  .anniv-activity-head label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
  .anniv-activity-head input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
  .anniv-activity-head .price-hint { color: var(--text-dim); font-size: 12.5px; font-weight: 500; }
  .pass-levels { display: flex; gap: 6px; margin-top: 12px; }
  .pass-levels button { flex: 1; padding: 8px 2px; font-size: 12.5px; font-weight: 600; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-hi); color: var(--text-muted); cursor: pointer; }
  .pass-levels button.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

  .option-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
  .option-row .opt-name { font-size: 14.5px; font-weight: 600; }
  .option-row .opt-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
  .switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
  .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
  .switch .track { position: absolute; inset: 0; background: var(--surface-hi); border-radius: 20px; transition: background .2s; }
  .switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: transform .2s, background .2s; }
  .switch input:checked ~ .track { background: var(--accent-dim); }
  .switch input:checked ~ .thumb { transform: translateX(18px); background: var(--accent); }

  .badge-discount { font-size: 10.5px; font-weight: 700; color: var(--success); background: rgba(74,222,128,0.12); padding: 2px 7px; border-radius: 20px; margin-left: 6px; }

  /* ---------- Récap screen ---------- */
  .recap-hero { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 16px; }
  .recap-hero .thumb { width: 64px; height: 64px; border-radius: 14px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--surface-hi); }
  .recap-hero .rh-info h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 3px; }
  .recap-hero .rh-info p { margin: 0; font-size: 12.5px; color: var(--text-muted); }

  .summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px; margin-bottom: 14px; }
  .summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .summary-row:last-child { border-bottom: none; }
  .summary-row .k { color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
  .summary-row .k svg { color: var(--accent-soft); }
  .summary-row .v { font-weight: 600; text-align: right; }

  .promo-row { display: flex; gap: 8px; margin-bottom: 16px; }
  .promo-row input { flex: 1; }
  .promo-row button { width: 48px; border-radius: 14px; border: none; background: var(--surface-hi); color: var(--text); font-size: 18px; cursor: pointer; flex-shrink: 0; }
  .promo-msg { font-size: 12.5px; margin: -10px 0 16px; font-weight: 600; }
  .promo-msg.ok { color: var(--success); }
  .promo-msg.err { color: var(--danger); }

  .total-box { display: flex; align-items: baseline; justify-content: space-between; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, var(--surface-alt), var(--surface-hi)); border: 1px solid var(--line); }
  .anniv-banner { position: relative; margin: 16px 0 6px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(124,92,252,.45); background: #08050f; aspect-ratio: 2.1 / 1; min-height: 168px; cursor: pointer; }
  .anniv-banner .ab-media { position: absolute; inset: 0; background-size: cover; background-position: 78% center; }
  .anniv-banner .ab-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
  .anniv-banner .ab-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,3,16,.95) 0%, rgba(6,3,16,.8) 42%, rgba(6,3,16,.15) 72%, rgba(6,3,16,0) 100%); pointer-events: none; }
  .anniv-banner .ab-body { position: absolute; left: 0; top: 0; bottom: 0; width: 66%; padding: 10px 10px 10px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; pointer-events: none; }
  .anniv-banner .ab-badge { background: #ff2d9b; color: #fff; font-weight: 800; font-size: 8.5px; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; }
  .anniv-banner h3 { margin: 0; font-family: var(--font-display); font-size: 14px; line-height: 1.12; color: #fff; text-shadow: 0 0 12px rgba(140,160,255,.45); }
  .anniv-banner p { margin: 0; font-size: 9px; line-height: 1.25; color: rgba(255,255,255,.88); }
  .anniv-banner .ab-cta { pointer-events: auto; margin-top: 2px; border: none; border-radius: 999px; padding: 6px 11px; font-weight: 700; font-size: 10.5px; color: #fff; cursor: pointer; background: linear-gradient(135deg, #6c4cf5, #b068ff); box-shadow: 0 0 14px rgba(140,90,255,.5); }
  .anniv-banner .ab-tag { position: absolute; right: 10px; bottom: 9px; white-space: nowrap; text-align: right; font-weight: 700; font-size: 10px; line-height: 1.2; color: #fff; text-shadow: 0 0 8px #b46bff, 0 0 14px #7c5cfc; transform: rotate(-6deg); pointer-events: none; }
  .anniv-banner .ab-play { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(10,6,24,.55); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(3px); }
  .anniv-banner .ab-close { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; cursor: pointer; z-index: 3; }
  .anniv-banner.playing .ab-play, .anniv-banner.playing .ab-tag { display: none; }
  .anniv-banner.playing .ab-shade { background: linear-gradient(90deg, rgba(6,3,16,.8) 0%, rgba(6,3,16,.45) 40%, rgba(6,3,16,0) 70%); }
  .anniv-banner.playing .ab-video { z-index: 0; }
  .anniv-banner.playing .ab-body { pointer-events: none; }
  .total-box.compact { padding: 9px 16px; border-radius: 14px; align-items: center; }
  .total-box.compact .label { font-size: 13px; }
  .total-box.compact .amount { font-size: 22px; }
  .total-box .label { font-size: 14px; color: var(--text-muted); font-weight: 600; }
  .total-box .amount { font-family: var(--font-display); font-size: 30px; color: var(--accent-2); }
  .total-box .amount.pulse { animation: pulse .35s ease; }
  @keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .total-box .amount.pulse { animation: none; } }
  .disclaimer { font-size: 11.5px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }

  /* ---------- Confirmation ---------- */
  .confirm-wrap { text-align: center; padding-top: 12px; }
  .confetti-wrap { position: relative; height: 90px; margin-bottom: 4px; }
  .confirm-icon {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto;
    background: radial-gradient(circle, rgba(74,222,128,0.18), transparent 70%);
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 2;
  }
  .confetti-dot { position: absolute; border-radius: 3px; animation: confetti-fall 1.1s ease-out both; }
  @keyframes confetti-fall { 0% { transform: translateY(-14px) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(70px) rotate(200deg); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .confetti-dot { animation: none; opacity: 0; } }
  .ref-box { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; color: var(--accent-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 16px 0 22px; }
  .wa-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #25D366; color: #06210F; font-weight: 700; font-size: 15px; padding: 15px; border-radius: 100px; border: none; text-decoration: none; cursor: pointer; }
  .action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .action-row.full { grid-template-columns: 1fr; }
  .ghost-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
  .ghost-btn:hover { border-color: var(--accent-dim); }
  .toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom,0px)); transform: translateX(-50%); background: var(--surface-hi); border: 1px solid var(--line); color: var(--text); padding: 10px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; z-index: 60; animation: toast-in .25s ease both; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
  .restart-link { display: block; margin-top: 20px; color: var(--text-muted); font-size: 13.5px; background: none; border: none; cursor: pointer; text-decoration: underline; }

  /* ---------- Reservations tab ---------- */
  .tabs-row { display: flex; gap: 8px; margin-bottom: 18px; }
  .tabs-row button { flex: 1; padding: 11px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .tabs-row button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .res-card { display: flex; flex-direction: column; gap: 0; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
  .res-card .res-thumb { width: 54px; height: 54px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--surface-hi); }
  .res-card .res-info { flex: 1; min-width: 0; }
  .res-card .res-info h3 { font-family: var(--font-display); font-size: 14px; margin: 0 0 4px; }
  .res-card .res-info p { margin: 0; font-size: 12px; color: var(--text-muted); }
  .res-status { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 20px; align-self: flex-start; white-space: nowrap; }
  .res-status.pending { background: rgba(255,200,87,0.15); color: var(--warn); }
  .empty-state { text-align: center; padding: 50px 20px; color: var(--text-dim); }
  .empty-state svg { margin-bottom: 14px; opacity: 0.5; }
  .empty-state p { font-size: 13.5px; }

  /* ---------- Account tab ---------- */
  .account-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 20px; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display:block; }
  .pf { position: relative; display: flex; gap: 8px; direction: ltr; }
  .pf-cc { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 0 12px; font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; }
  .pf-cc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pf-fl { font-size: 20px; line-height: 1; }
  .pf-car { font-size: 10px; opacity: .6; }
  .pf input { flex: 1; min-width: 0; direction: ltr; text-align: left; }
  .pf-panel { position: fixed; z-index: 10050; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); overflow: hidden; }
  .pf-panel input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .pf-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pf-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; background: none; border: 0; color: var(--text); font-family: var(--font-body); font-size: 15px; text-align: start; cursor: pointer; }
  .pf-it:hover, .pf-it.sel { background: rgba(124,92,252,.18); }
  .pf-nm { flex: 1; }
  .pf-it .pf-dc { color: var(--text-muted); direction: ltr; }
  .pf-none { padding: 14px; color: var(--text-muted); font-size: 14px; }
  .avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; flex-shrink: 0; }
  .account-card h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 3px; }
  .account-card p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
  .menu-list { display: flex; flex-direction: column; gap: 8px; }
  .menu-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .menu-row svg { color: var(--accent-soft); flex-shrink: 0; }
  .menu-row .chev { margin-left: auto; color: var(--text-dim); }
  .admin-entry { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px 8px 8px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
  .admin-entry img { width: 22px; height: 22px; border-radius: 50%; display: block; }
  .admin-entry span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .admin-entry:active { transform: scale(0.97); }

  /* ---------- Admin dashboard ---------- */
  .admin-legend { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
  .admin-legend span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
  .admin-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
  @keyframes resflash { 0%,100% { box-shadow: 0 0 0 0 rgba(255,200,87,0); } 20%,70% { box-shadow: 0 0 0 3px var(--warn); } }
  .res-flash { animation: resflash 2.2s ease; }
  .admin-res-card { scroll-margin-top: 84px; }
  .admin-grid-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
  .admin-grid { display: grid; gap: 3px; padding: 10px; background: var(--surface); width: max-content; }
  .admin-cell { display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--text-muted); }
  .admin-corner { background: transparent; }
  .admin-head { font-weight: 700; color: var(--text-dim); height: 26px; }
  .admin-room { justify-content: flex-start; font-weight: 600; color: var(--text); font-size: 11.5px; padding-right: 8px; white-space: nowrap; }
  .admin-slot { height: 38px; border-radius: 6px; }
  .admin-slot.named { flex-direction: column; line-height: 1.15; color: #1a0a0a; font-weight: 700; padding: 0 3px; overflow: hidden; text-align: center; }
  .admin-slot.named span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
  .admin-slot.named small { font-size: 9.5px; font-weight: 600; opacity: .8; }
  .admin-slot.free { background: rgba(74,222,128,0.75); }
  .admin-slot.res { background: rgba(255,103,103,0.85); }
  .admin-slot.ra-blink { animation: raBlink 1s infinite; background: #ff2d3d !important; box-shadow: 0 0 14px #ff3040; }
  .admin-slot.ra-taken { background: #e8a33c !important; box-shadow: 0 0 8px rgba(232,163,60,.7); }
  @keyframes raBlink { 50% { opacity: .3; } }
  .ra-inc { margin: 10px 0; border: 1.5px solid #e0485a; background: rgba(224,72,90,.09); border-radius: 14px; padding: 10px 12px; }
  .ra-inc h4 { margin: 0 0 6px; font-size: 13.5px; color: #ff8c9b; }
  .ra-sep { height: 1px; background: rgba(224,72,90,.35); margin: 8px 0; }
  .ra-lab { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 4px; }
  .ra-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
  .ra-step { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
  .ra-step button { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 18px; font-weight: 700; }
  .ra-step b { min-width: 52px; text-align: center; }
  .ra-set { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .ra-set span { flex: 1; font-weight: 600; font-size: 14px; }
  .ra-set select { flex: 1.2; }
  .ra-tvrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
  .ra-tvrow small { color: var(--text-muted); }
  .ra-tvrow input { font-size: 11px; }
  .ra-type { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font-size: 14px; }
  .ra-type i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; }
  .ra-type.on { border-color: var(--accent); }
  .ra-type.on i { background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); border-color: var(--accent); }
  .ra-line { font-size: 13px; padding: 4px 0; }
  .ra-inc .tk-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
  .ra-inc .tk-row span { color: var(--text-muted); }
  .ra-inc .tk-row b { text-align: right; }
  .admin-slot.done { background: rgba(107,104,128,0.75); }
  .admin-slot.occ { background: rgba(255,200,87,0.85); }

  .admin-res-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
  .admin-res-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .admin-res-ref { font-family: var(--font-display); font-size: 12.5px; color: var(--accent-soft); letter-spacing: 0.03em; }
  .admin-res-card h3 { font-family: var(--font-display); font-size: 14.5px; margin: 0 0 2px; }
  .admin-res-sub { margin: 0 0 2px; font-size: 12.5px; color: var(--text-muted); }
  .admin-res-edit { display: flex; gap: 10px; margin-top: 10px; }
  .admin-status-row { display: flex; gap: 6px; flex-wrap: wrap; }
  .admin-status-row button { padding: 7px 11px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-hi); color: var(--text-muted); font-size: 11.5px; font-weight: 700; cursor: pointer; }
  .readonly-section input,
  .readonly-section select,
  .readonly-section textarea,
  .readonly-section .switch,
  .readonly-section .btn-pill.primary,
  .readonly-section .admin-status-row button { pointer-events: none; opacity: 0.55; }
  .team-perm-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
  .team-perm-row .label { flex: 1; font-size: 13px; font-weight: 600; }
  .team-perm-row label.chk { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-dim); }
  .team-perm-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

  /* ---------- Outmind Universe (Noir + Or) ---------- */
  .uni-avatar-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #1a1608, #0f0d05); border: 1px solid #4a3c14; border-radius: 20px; padding: 18px; cursor: pointer; margin-bottom: 14px; }
  .uni-avatar { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #3a2e0d, #0f0d05); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; border: 2px solid var(--gold); overflow: hidden; }
  .uni-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .uni-avatar-info { flex: 1; min-width: 0; }
  .uni-rank-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.03em; }
  .xp-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
  .xp-fill { height: 100%; background: linear-gradient(90deg, #7a5c14, var(--gold)); border-radius: 4px; transition: width .4s ease; }
  .xp-caption { font-size: 11px; color: var(--text-dim); margin: 5px 0 0; }
  .uni-stats-row { display: flex; gap: 10px; margin-bottom: 6px; }
  .uni-chip { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; text-align: center; cursor: pointer; }
  .uni-chip b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--gold); }
  .uni-chip span { font-size: 10.5px; color: var(--text-dim); }
  .uni-mission-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
  .uni-mission-row.done { border-color: var(--gold); }
  .uni-mission-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .uni-mission-info b { font-size: 13px; }
  .uni-mission-info span { font-size: 11px; color: var(--text-dim); }
  .uni-mission-progress { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
  .uni-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .uni-nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
  .uni-nav-ic { font-size: 22px; }
  .uni-nav-item span:last-child { font-size: 10.5px; color: var(--text-muted); font-weight: 600; text-align: center; }
  .uni-big-avatar { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #3a2e0d, #0f0d05); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 56px; margin: 0 auto 14px; overflow: hidden; }
  .uni-big-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .rank-hero-wrap { text-align: center; }
  .rank-hero { position: relative; width: min(230px, 62vw); aspect-ratio: 3 / 5; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 2px solid var(--rc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 18%, transparent), 0 18px 50px -12px var(--rc); background: #07060c; }
  .rank-hero img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  .rank-hero.locked img { filter: grayscale(0.85) brightness(0.5); }
  .rank-lock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(10,9,18,0.8); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }
  .rank-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .rank-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 0 10px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font: inherit; color: var(--text); }
  .rank-card-img { position: relative; display: block; width: 100%; aspect-ratio: 5 / 11; background: #07060c; margin-bottom: 6px; }
  .rank-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  .rank-card.locked .rank-card-img img { filter: grayscale(0.9) brightness(0.45); }
  .rank-card-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
  .rank-card b { font-size: 11.5px; letter-spacing: .02em; color: var(--rc); }
  .rank-card.locked b { color: var(--text-dim); }
  .rank-card > span:not(.rank-card-img) { font-size: 11px; color: var(--text-muted); }
  .rank-card em { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 800; background: var(--rc); color: #0A0912; padding: 3px 8px; border-radius: 10px; }
  .rank-card.current { border-color: var(--rc); box-shadow: 0 8px 24px -10px var(--rc); }
  .rank-card.selected { outline: 2px solid var(--rc); outline-offset: 2px; }
  @media (min-width: 768px) { .rank-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .rank-gallery { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; } .rank-card-img { aspect-ratio: 165 / 940; } }
  .uni-rank-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); }
  .uni-rank-row.reached { background: rgba(212,175,55,0.08); border-color: var(--gold); }
  .uni-rank-row.locked { opacity: 0.5; }
  .uni-rank-row.locked .uni-rank-avatar img { filter: grayscale(1) brightness(0.5); }
  .uni-rank-avatar { font-size: 22px; width: 34px; height: 34px; text-align: center; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
  .uni-rank-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .uni-rank-row-info { flex: 1; display: flex; flex-direction: column; }
  .uni-rank-row-info b { font-size: 13px; }
  .uni-rank-row-info span { font-size: 11px; color: var(--text-dim); }
  .uni-current-tag { font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 20px; padding: 3px 8px; }
  .uni-filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
  .uni-filter-row button { flex-shrink: 0; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; }
  .uni-filter-row button.active { background: var(--gold); border-color: var(--gold); color: #0f0d05; }
  .uni-badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .uni-badge-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
  .uni-badge-cell.unlocked { border-color: var(--gold); background: rgba(212,175,55,0.08); }
  .uni-badge-cell.locked { opacity: 0.45; }
  .uni-badge-ic { font-size: 26px; }
  .uni-badge-ic-img { width: 52px; height: 52px; object-fit: contain; }
  .uni-badge-cell.locked .uni-badge-ic-img { filter: grayscale(1) brightness(0.5); }
  .uni-badge-name { font-size: 10px; text-align: center; color: var(--text-muted); font-weight: 600; line-height: 1.3; }
  .uni-mission-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .uni-mission-card.done { border-color: var(--gold); }
  .uni-mission-card-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
  .uni-mission-card-head span { font-size: 12px; color: var(--gold); font-weight: 700; }
  .uni-mission-card p { font-size: 12px; color: var(--text-dim); margin: 0 0 10px; }
  .uni-mission-reward { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
  .uni-reward-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .uni-reward-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .uni-reward-info b { font-size: 13.5px; }
  .uni-reward-info span { font-size: 11.5px; color: var(--text-dim); }
  .uni-reward-stock { color: var(--text-dim) !important; font-size: 10.5px !important; }
  .uni-reward-btn { flex-shrink: 0; padding: 10px 14px; border-radius: 20px; border: none; background: var(--gold); color: #0f0d05; font-weight: 700; font-size: 12.5px; cursor: pointer; }
  .uni-reward-btn:disabled { background: var(--surface-hi); color: var(--text-dim); cursor: not-allowed; }
  .uni-lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--line); }
  .uni-lb-row.me { border-color: var(--gold); background: rgba(212,175,55,0.1); }
  .uni-lb-rank { font-family: var(--font-display); font-size: 12px; color: var(--text-dim); width: 28px; }
  .uni-lb-name { flex: 1; font-size: 13px; font-weight: 600; }
  .uni-lb-xp { font-size: 12px; color: var(--gold); font-weight: 700; }

  /* ---------- Identification modal ---------- */
  .ident-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5,4,10,0.72); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: ident-fade .25s ease; }
  @media (min-width: 480px) { .ident-overlay { align-items: center; } }
  @keyframes ident-fade { from { opacity: 0; } to { opacity: 1; } }
  .ident-card { position: relative; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 26px 22px calc(24px + env(safe-area-inset-bottom,0px)); animation: ident-up .3s ease; }
  @media (min-width: 480px) { .ident-card { border-radius: 24px; } }
  @keyframes ident-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ident-overlay, .ident-card { animation: none; } }
  .ident-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-hi); border: 1px solid var(--line); color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; }
  .ident-head { text-align: center; margin-bottom: 20px; }
  .ident-head h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
  .ident-head p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
  .ident-social { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface-hi); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
  .ident-social:active { transform: scale(0.98); }
  .ident-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-dim); font-size: 12px; }
  .ident-divider::before, .ident-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
  .ident-later { display: block; width: 100%; text-align: center; margin-top: 12px; background: none; border: none; color: var(--text-dim); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px; }
  .qr-wrap { display: flex; flex-direction: column; align-items: center; margin: 18px 0 6px; }
  .qr-wrap #qrCodeBox, .qr-modal #qrCodeBox2 { background: #fff; padding: 10px; border-radius: 14px; line-height: 0; }
  .qr-caption { font-size: 11.5px; color: var(--text-dim); margin-top: 8px; }
  .qr-modal-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(5,4,10,0.75); display: flex; align-items: center; justify-content: center; padding: 20px; }
  .qr-modal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; max-width: 300px; }
  .qr-modal h3 { font-family: var(--font-display); font-size: 15px; margin: 14px 0 4px; }
  .qr-modal p { font-size: 12px; color: var(--text-dim); margin: 0 0 6px; }
  .qr-modal button { margin-top: 14px; }
  .review-stars { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
  .review-star { font-size: 32px; color: var(--line); cursor: pointer; line-height: 1; }
  .review-star.on { color: var(--gold); }
  .banner-reminder { background: rgba(255,200,87,0.12); border: 1px solid rgba(255,200,87,0.4); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
  .banner-promo { background: linear-gradient(135deg, rgba(255,61,129,0.15), rgba(124,92,252,0.15)); border: 1px solid var(--accent-dim); color: var(--text); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
  .omc-ic { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: -3px; margin-right: 4px; }
  .omc-ic-lg { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
  .omc-ic-tiny { width: 12px; height: 12px; border-radius: 50%; object-fit: cover; vertical-align: -1px; margin: 0 2px; }
  .uni-chip span { display: flex; align-items: center; justify-content: center; gap: 0; }

  /* ---------- Bottom bar (flow CTA) ---------- */
  .bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 14px); background: linear-gradient(0deg, rgba(10,9,18,0.98) 60%, rgba(10,9,18,0)); backdrop-filter: blur(6px); display: flex; justify-content: center; }
  .bottombar-inner { max-width: 640px; width: 100%; display: flex; gap: 10px; align-items: center; }
  .cta { flex: 1; padding: 16px; border-radius: 100px; border: none; font-family: var(--font-body); font-weight: 700; font-size: 15.5px; cursor: pointer; transition: opacity .15s, transform .1s; }
  .cta:active { transform: scale(0.98); }
  .cta.primary { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: #fff; }
  .cta.primary:disabled { opacity: 0.35; cursor: not-allowed; }
  .cta-total { font-family: var(--font-display); font-size: 15px; color: var(--accent-2); white-space: nowrap; padding: 0 4px; }

  /* ---------- Tab bar (hub navigation) ---------- */
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: center; background: rgba(15,13,24,0.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 6px); }
  .tabbar-inner { max-width: 640px; width: 100%; display: flex; }
  .tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px 2px; color: var(--text-dim); }
  .tab-btn.active { color: var(--accent-soft); }
  .tab-btn span { font-size: 10.5px; font-weight: 600; }
  /* ---------- Sélecteur de date en pastilles ---------- */
  .date-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .date-chips::-webkit-scrollbar { display: none; }
  .date-chip { position: relative; flex: 0 0 auto; width: 62px; padding: 9px 4px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; scroll-snap-align: center; font-family: var(--font-body); transition: transform .12s, border-color .2s, background .2s; }
  .date-chip:active { transform: scale(0.95); }
  .date-chip .dc-dow { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: capitalize; }
  .date-chip .dc-day { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15; }
  .date-chip .dc-mon { font-size: 10.5px; color: var(--text-dim); }
  .date-chip.weekend .dc-dow { color: var(--accent-2); }
  .date-chip .dc-hot { position: absolute; top: 4px; right: 6px; font-size: 10px; }
  .date-chip.selected { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); border-color: var(--accent); box-shadow: 0 8px 20px -8px rgba(124,92,252,0.7); }
  .date-chip.selected .dc-dow, .date-chip.selected .dc-mon, .date-chip.selected .dc-day { color: #fff; }
  .date-chip.other { border-style: dashed; }
  .date-native-hidden { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
  /* ---------- Accueil (design v2) ---------- */
  .hero-card { min-height: 280px; }
  .hero-card h1 { font-size: 27px; }
  .hc-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(10,9,18,0.55); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 20px; margin-bottom: 10px; }
  .hc-sub { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.88); margin: -6px 0 14px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
  .hero-card .hc-eyebrow { color: #fff; }
  .hero-hot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, rgba(255,61,129,0.9), rgba(124,92,252,0.9)); padding: 6px 12px; border-radius: 20px; margin: -4px 0 14px; box-shadow: 0 6px 18px -6px rgba(255,61,129,0.7); animation: hot-pulse 2.4s ease-in-out infinite; }
  @keyframes hot-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
  .home-section-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin: 4px 0 12px; }
  .quick-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 20px; }
  .quick-item { gap: 7px; padding: 2px; }
  img.quick-icon { width: 60px; height: 60px; border: 2px solid transparent; background: linear-gradient(var(--surface-hi), var(--surface-hi)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box; box-shadow: 0 6px 16px -8px rgba(124,92,252,0.8); transition: transform .15s; }
  .quick-item:active img.quick-icon { transform: scale(0.92); }
  .quick-item span { font-size: 11.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
  .action-strip { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-bottom: 20px; }
  .action-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 12px; font-weight: 700; text-align: center; transition: transform .1s; }
  .action-pill:active { transform: scale(0.96); }
  .action-pill .ap-ic { font-size: 20px; line-height: 1; }
  .action-pill small { font-size: 10.5px; font-weight: 600; color: var(--text-dim); }
  .action-pill.open small { color: var(--success); }
  .action-pill.closed small { color: var(--warn); }
  /* ---------- Finitions (design v2) ---------- */
  .slot.selected, .date-chip.selected, .room-card.selected, .pack-card.selected, .ticket-card.selected { animation: sel-pop .22s ease-out; }
  @keyframes sel-pop { 0% { transform: scale(0.94); } 70% { transform: scale(1.03); } 100% { transform: scale(1); } }
  .toast { display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); text-align: center; background: rgba(38,33,56,0.92); backdrop-filter: blur(8px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7); }
  .confetti-wrap { height: 120px; }
  .confetti-dot { animation-duration: 1.6s; }
  .confirm-icon { width: 88px; height: 88px; animation: check-pop .6s cubic-bezier(.2,1.6,.4,1) both; }
  .confirm-icon svg { width: 44px; height: 44px; }
  @keyframes check-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
  .ref-box { position: relative; overflow: hidden; }
  .ref-box::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); animation: shine 2.8s ease-in-out 0.8s infinite; }
  @keyframes shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
  .skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hi) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
  @keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .hero-hot, .ref-box::after, .skeleton, .confirm-icon, .slot.selected, .date-chip.selected { animation: none !important; } }
  /* ---------- Statistiques (graphiques) ---------- */
  .stat-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
  .stat-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .stat-kpi:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, var(--surface-alt), var(--surface-hi)); }
  .stat-kpi .sk-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .stat-kpi .sk-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 2px; }
  .stat-kpi:first-child .sk-value { font-size: 28px; }
  .stat-kpi .sk-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
  .stat-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .stat-badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--text); background: var(--surface-hi); padding: 3px 9px; border-radius: 20px; }
  .stat-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 10px; }
  .stat-chart svg { display: block; overflow: visible; }
  .stat-axis { font-size: 10px; fill: var(--text-dim); font-family: var(--font-body); }
  .stat-bar { cursor: pointer; }
  .stat-bar.on path { filter: brightness(1.25); }
  .stat-bar.on rect:first-child { fill: rgba(255,255,255,0.05); }
  .stat-tip { margin-top: 8px; font-size: 12px; color: var(--text-muted); min-height: 18px; }
  .stat-tip b { color: var(--text); }
  .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; }
  .stat-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stat-row:last-child { border-bottom: none; }
  .sr-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 7px; }
  .sr-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
  .sr-name i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
  .sr-val { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
  .sr-track { height: 8px; border-radius: 4px; background: var(--surface-hi); overflow: hidden; }
  .sr-fill { height: 100%; border-radius: 4px; }
  /* Tablette (≥ 768 px) : plus large, cartes sur 2 colonnes */
  @media (min-width: 768px) {
    main { max-width: 880px; padding: 8px 28px 140px; }
    .bottombar-inner, .tabbar-inner { max-width: 880px; }
    .step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
    .step > * { grid-column: 1 / -1; min-width: 0; }
    .step > .pack-card, .step > .anniv-activity { grid-column: auto; }
    .step > .map-card > div:nth-child(2) { height: 300px !important; }
    .step > .map-card > div:nth-child(2) img { height: 100% !important; object-fit: cover !important; }
    .room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slot-grid { grid-template-columns: repeat(6, 1fr); }
    .hero-card { min-height: 340px; }
    .hero-card h1 { font-size: 34px; }
    .quick-grid { gap: 12px; }
    .toast { bottom: 110px; }
  }
  /* PC (≥ 1100 px) : mise en page large, menu en haut */
  @media (min-width: 1100px) {
    main { max-width: 1140px; padding: 8px 40px 140px; }
    main.with-tabbar { padding-bottom: 60px; }
    .bottombar-inner { max-width: 1140px; justify-content: flex-end; gap: 22px; }
    .cta { flex: 0 0 340px; }
    .cta-total { font-size: 20px; }
    .step { column-gap: 22px; }
    .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .slot-grid { grid-template-columns: repeat(8, 1fr); }
    .hero-card { min-height: 430px; }
    .hero-card h1 { font-size: 46px; }
    .quick-grid { max-width: 820px; margin-left: auto; margin-right: auto; gap: 18px; }
    .action-strip { max-width: 820px; width: 100%; margin-left: auto; margin-right: auto; }
    .quick-grid { width: 100%; }
    .tabbar { top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: auto; background: transparent !important; border-top: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 0; z-index: 30; }
    .tabbar-inner { width: auto; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 4px; box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6); }
    .tab-btn { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 8px 16px; border-radius: 24px; }
    .tab-btn span { font-size: 13px; }
    .tab-btn.active { background: var(--surface-hi); }
    .ident-card { max-width: 460px; }
  }

  .faq-link { width: 100%; margin-bottom: 20px; text-align: start; }
  .faq-link .chev, .faq-account .chev { margin-inline-start: auto; }
  .faq-sec { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 22px 0 10px; }
  .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
  .faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--text); }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: '+'; margin-inline-start: auto; font-size: 20px; font-weight: 400; line-height: 1; color: var(--text-muted); transition: transform .2s; }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .faq-a { padding: 0 16px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
  .faq-a b { color: var(--text); }
  .faq-a ul { margin: 6px 0 0; padding-inline-start: 18px; }
  .faq-a li { margin: 2px 0; }
  .faq-a a { color: var(--accent); font-weight: 700; }
  .faq-contact { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; }
  .faq-contact h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; }
  .faq-contact p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }
  .faq-contact .action-strip { grid-template-columns: 1fr 1fr; margin: 0; }
  @media (min-width: 768px) { .faq-list { max-width: 760px; margin: 0 auto; } }

  /* ---- Universe aux couleurs du rank ---- */
  #app.uni-themed { --rct: var(--rc); --gold: var(--rct); }
  :root[data-theme="light"] #app.uni-themed { --rct: color-mix(in srgb, var(--rc) 62%, #000); }
  #app.uni-themed main { position: relative; z-index: 1; }
  .uni-glow { position: fixed; left: 0; right: 0; top: 0; height: 560px; z-index: 0; pointer-events: none; overflow: hidden; }
  .uni-glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--rc) 38%, transparent), transparent 72%); }
  .uni-glow img { position: absolute; left: 50%; top: -40px; transform: translateX(-50%); width: min(520px, 110vw); height: 620px; object-fit: cover; object-position: top center; opacity: .20; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%); }
  :root[data-theme="light"] .uni-glow img { opacity: .12; }
  #app.uni-themed .uni-avatar-card { background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 20%, var(--surface)), color-mix(in srgb, var(--rc) 6%, var(--surface))); border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 14px 40px -18px var(--rc); }
  :root[data-theme="light"] #app.uni-themed .uni-avatar-card { background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 38%, #110f1c), #0f0d18); }
  :root[data-theme="light"] #app.uni-themed .uni-avatar-card .uni-rank-name { color: var(--rc); }
  #app.uni-themed .uni-avatar, #app.uni-themed .uni-big-avatar { background: radial-gradient(circle, color-mix(in srgb, var(--rc) 30%, #000), #07060c); border-color: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 22%, transparent), 0 0 24px -4px var(--rc); }
  #app.uni-themed .xp-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 45%, #000), var(--rc)); box-shadow: 0 0 10px -2px var(--rc); }
  #app.uni-themed .uni-rank-name { font-size: 17px; text-shadow: 0 0 18px color-mix(in srgb, var(--rc) 55%, transparent); }
  #app.uni-themed .uni-chip, #app.uni-themed .uni-nav-item, #app.uni-themed .uni-mission-row { border-color: color-mix(in srgb, var(--rc) 22%, var(--line)); }
  #app.uni-themed .uni-rank-row.reached, #app.uni-themed .uni-badge-cell.unlocked { background: color-mix(in srgb, var(--rc) 10%, transparent); }
  #app.uni-themed .uni-filter-row button.active { color: #0A0912; }
  #app.uni-themed .ghost-btn { border-color: color-mix(in srgb, var(--rc) 30%, var(--line)); }
  /* Ranks prestige (OUTMIND HERO / GOD) : reflet brillant */
  #app.uni-themed.uni-prestige .xp-fill { background-size: 200% 100%; animation: uniShine 3.2s linear infinite; }
  #app.uni-themed.uni-prestige .xp-fill { background-image: linear-gradient(90deg, color-mix(in srgb, var(--rc) 45%, #000), var(--rc), #fff8dc, var(--rc), color-mix(in srgb, var(--rc) 45%, #000)); }
  @keyframes uniShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
  /* Célébration montée de rank */
  .rankup-overlay { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 35%, rgba(5,4,10,.9)), rgba(5,4,10,.94) 70%); animation: rankupIn .35s ease; }
  .rankup-box { text-align: center; max-width: 320px; }
  .rankup-box small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--rc); margin-bottom: 10px; }
  .rankup-img { width: 190px; aspect-ratio: 3 / 5; margin: 0 auto 16px; border-radius: 18px; overflow: hidden; border: 2px solid var(--rc); box-shadow: 0 0 60px -6px var(--rc); animation: rankupPop .7s cubic-bezier(.2,1.4,.4,1); }
  .rankup-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  .rankup-box h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; color: #fff; }
  .rankup-box h2 b { color: var(--rc); }
  .rankup-box p { color: rgba(255,255,255,.75); font-size: 13.5px; margin: 0 0 18px; }
  .rankup-box .btn-pill { background: var(--rc); color: #0A0912; border-color: var(--rc); }
  @keyframes rankupIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rankupPop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .rankup-overlay, .rankup-img, #app.uni-themed.uni-prestige .xp-fill { animation: none; } }

  /* ---- Barre d'onglets sur toutes les pages : la barre Valider se place au-dessus ---- */
  #app.tabs-everywhere .bottombar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  #app.tabs-everywhere.has-bottombar main.with-tabbar { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
  #app.tabs-everywhere.has-bottombar .toast { bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 1100px) {
    #app.tabs-everywhere .bottombar { bottom: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
    #app.tabs-everywhere.has-bottombar main.with-tabbar { padding-bottom: 140px; }
  }

  .pc-form input[type=number] { width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px; }
  .pc-form input[type=number]:focus { outline: none; border-color: var(--accent); }
  .pc-form input::placeholder { color: var(--text-dim); }

  /* ---- Parties arcade ---- */
  .arcade-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .arcade-game { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
  .arcade-game .ag-ic { font-size: 24px; }
  .arcade-game b { font-size: 12.5px; text-align: center; }
  .arcade-game span:last-child { font-size: 11.5px; color: var(--text-muted); }
  .arcade-game.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
  .arcade-scan { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
  .arcade-scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .arcade-scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
  .my-qr-btn .chev { margin-inline-start: auto; }

  /* ---- Onglet Actualiser + fiches clients compactes ---- */
  .tab-btn.spinning svg { animation: tabSpin .8s linear infinite; }
  @keyframes tabSpin { to { transform: rotate(360deg); } }
  .client-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; }
  .client-mini .cm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .client-mini .cm-top b { font-size: 13.5px; }
  .client-mini .cm-top a { font-size: 12.5px; color: var(--accent-soft); white-space: nowrap; text-decoration: none; }
  .client-mini .cm-mail { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .client-mini .cm-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); }

  /* ---- Clients : tri + fiche ; alerte réservations en attente ---- */
  .client-mini.open { border-color: var(--accent); }
  .client-mini .cm-rank { color: var(--text-dim); font-weight: 600; font-size: 12px; }
  .client-mini .cm-new { font-size: 10px; font-weight: 700; color: #0A0912; background: var(--success); border-radius: 100px; padding: 1px 7px; vertical-align: middle; }
  .cm-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); cursor: default; }
  .cm-detail .cm-head { display: flex; align-items: center; gap: 10px; }
  .cm-detail .cm-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
  .cm-detail .cm-rankname { font-weight: 700; font-size: 13px; color: var(--gold); }
  .cm-detail .cm-sub { font-size: 11.5px; color: var(--text-dim); }
  .pend-bell { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 100px; padding: 3px 10px 3px 8px; font-size: 13px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
  .pend-bell span { min-width: 18px; height: 18px; border-radius: 9px; background: var(--line); color: var(--text-muted); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
  .pend-bell.on { border-color: var(--danger); animation: pendPulse 1.6s ease-in-out infinite; }
  .pend-bell.on span { background: var(--danger); color: #fff; }
  @keyframes pendPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,103,103,.45); } 50% { box-shadow: 0 0 0 6px rgba(255,103,103,0); } }
  .pend-pill { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--danger); border-radius: 100px; padding: 2px 8px; vertical-align: middle; margin-left: 4px; }

  /* ---- Compte unique : code pour la caisse ---- */
  .link-code-box { margin-top: 12px; padding: 12px; border: 1px dashed var(--accent); border-radius: 14px; text-align: center; }
  .link-code-box p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
  .link-code { font-family: var(--font-display, inherit); font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--text); margin: 6px 0; }

  /* ---- Ticket de réservation complet + alertes menu admin + Actualiser admin ---- */
  .res-ticket { margin: 8px 0 4px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .res-ticket .tk-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
  .res-ticket .tk-row:last-of-type { border-bottom: 0; }
  .res-ticket .tk-row span { color: var(--text-muted); white-space: nowrap; }
  .res-ticket .tk-row b { text-align: right; font-weight: 600; }
  .res-ticket .tk-note { margin-top: 6px; padding: 8px; border-radius: 10px; background: rgba(255,200,87,0.12); border: 1px solid rgba(255,200,87,0.35); }
  .res-ticket .tk-note span { font-size: 11.5px; font-weight: 700; color: var(--warn); }
  .res-ticket .tk-note p { margin: 3px 0 0; font-size: 13px; white-space: pre-wrap; color: var(--text); }
  .activity-row.alert-green { background: rgba(74,222,128,0.16); border-color: var(--success); box-shadow: 0 0 0 1px rgba(74,222,128,.35) inset; }
  .activity-row.alert-green h3 { color: var(--success); }
  .activity-row.soon { opacity: .55; }
  .back-row { position: relative; }
  .admin-refresh { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 100px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .admin-refresh.spinning svg { animation: tabSpin .8s linear infinite; }

  /* ---- Commandes boissons ---- */
  .menu-chip.pickable { border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 12px; }
  .menu-chip.pickable.on { border-color: var(--accent); color: var(--text); background: rgba(155,124,255,0.18); }
  .pick-row { width: 100%; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; }
  .pick-row.on .k { color: var(--accent-2); }
  .add-pill { position: relative; border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
  .add-pill i { position: absolute; top: -7px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 800; font-size: 14px; line-height: 20px; }
  .add-btn { margin-left: 8px; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; line-height: 26px; cursor: pointer; vertical-align: middle; }
  .cart-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); z-index: 40; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 6px; padding: 14px 18px; border: none; border-radius: 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); cursor: pointer; }
  .cart-bar span { margin-left: auto; }
  @media (min-width: 768px) { .cart-bar { bottom: 20px; } }
  .cart-sheet { max-width: 420px !important; width: 100%; text-align: left !important; max-height: 88vh; overflow-y: auto; }
  .cart-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .cl-name { flex: 1; font-size: 14px; font-weight: 600; } .cl-name small { display: block; font-weight: 400; color: var(--text-dim); font-size: 12px; }
  .cl-qty { display: flex; align-items: center; gap: 10px; } .cl-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-hi); color: var(--text); font-size: 17px; cursor: pointer; }
  .cart-total, .dt-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-size: 15px; } .cart-total b, .dt-total b { font-family: var(--font-display); color: var(--accent-2); }
  .my-drinks { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface); }
  .my-drinks h3 { font-size: 14px; margin: 0 0 6px; }
  .my-drink { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
  .my-drink > div { flex: 1; } .my-drink p { margin: 2px 0 0; color: var(--text-muted); font-size: 12.5px; }
  .link-btn { background: none; border: none; color: var(--danger); font: inherit; font-size: 12px; padding: 4px 0 0; cursor: pointer; text-decoration: underline; }
  .drink-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
  .st-pending { background: rgba(255,200,87,0.18); color: var(--warn); } .st-prep { background: rgba(56,182,255,0.18); color: var(--blue); }
  .st-served { background: rgba(74,222,128,0.18); color: var(--success); } .st-cancel { background: rgba(255,90,90,0.15); color: var(--danger); }
  .drink-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .drink-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); border-radius: 100px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
  .drink-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .drink-ticket { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
  .drink-ticket.preparing { border-left-color: var(--blue); } .drink-ticket.served { border-left-color: var(--success); opacity: .8; } .drink-ticket.cancelled { border-left-color: var(--danger); opacity: .6; }
  .dt-head { display: flex; align-items: center; gap: 10px; font-size: 14px; } .dt-head span:nth-child(2) { color: var(--text-dim); font-size: 12.5px; } .dt-head .drink-st { margin-left: auto; }
  .dt-client, .dt-place, .dt-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; } .dt-client a { color: inherit; }
  .dt-items { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; } .dt-items > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 3px 0; }
  .dt-actions { display: flex; gap: 8px; margin-top: 10px; } .dt-actions:empty { display: none; }

  .place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .place-btn { border: 1px solid var(--line); background: var(--surface-hi); color: var(--text); border-radius: 12px; padding: 10px 4px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .place-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

  .note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .note-chip { border: 1px solid var(--line); background: var(--surface-hi); color: var(--text); border-radius: 100px; padding: 8px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .note-chip.on { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
  .esp-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
  .esp-opt { border: 1px solid var(--line); background: var(--surface-hi); color: var(--text-muted); border-radius: 100px; padding: 4px 10px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
  .esp-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }

  .cart-disc { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0 0; font-size: 12.5px; color: var(--text-muted); } .cart-disc b { color: var(--success); font-weight: 700; }
  .dt-disc { font-size: 12.5px; color: var(--success); margin-top: 8px; }

  .fruit-badge { display: inline-block; margin-left: 6px; font-family: var(--font-body, inherit); font-size: 10.5px; font-weight: 700; color: var(--success); background: rgba(74,222,128,0.16); border: 1px solid rgba(74,222,128,0.45); border-radius: 100px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }
  .fruit-note { font-size: 12.5px; font-weight: 600; color: var(--success); margin: 0 0 8px; }

  .st-ready { background: rgba(255,61,129,0.18); color: var(--accent-2); }
  .drink-ticket.ready { border-left-color: var(--accent-2); }
  .ready-btn { background: var(--accent-2) !important; color: #fff !important; border: none; }
  .drink-ready-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(5,4,10,0.82); display: flex; align-items: center; justify-content: center; padding: 20px; animation: drbIn .25s ease; }
  .drink-ready-box { width: min(360px, 100%); background: var(--surface); border: 2px solid var(--accent-2); border-radius: 24px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 20px 60px rgba(255,61,129,0.35); }
  .drb-ic { font-size: 54px; animation: drbPop 1s ease infinite alternate; }
  .drink-ready-box h2 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 4px; }
  .drb-ref { font-family: var(--font-display); font-weight: 800; letter-spacing: 2px; color: var(--accent-2); margin: 0 0 8px; }
  .drink-ready-box p { color: var(--text-muted); font-size: 14px; margin: 0 0 6px; } .drb-loc { color: var(--text) !important; font-weight: 600; }
  .drink-ready-box .btn-pill { margin-top: 12px; }
  @keyframes drbIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drbPop { from { transform: scale(1); } to { transform: scale(1.15); } }

  .menu-cat-body .menu-group-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 8px 12px; border-radius: 10px; border-left: 4px solid var(--cat, var(--accent)); background: rgba(255,255,255,0.05); background: color-mix(in srgb, var(--cat, var(--accent)) 16%, transparent); color: var(--text); font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; }
  .menu-cat-body .menu-group-title:first-child, .menu-cat-body .menu-formats + .menu-group-title, .menu-cat-body .fruit-note + .menu-group-title { margin-top: 8px; }
  .menu-cat-body .mgt-ic { font-size: 15px; letter-spacing: 0; }

  .news-form .uni-filter-row { flex-wrap: wrap; overflow: visible; }
  .news-overlay { position: fixed; inset: 0; z-index: 1900; background: rgba(5,4,10,0.8); display: flex; align-items: center; justify-content: center; padding: 20px; animation: drbIn .25s ease; }
  .news-box { width: min(380px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 2px solid var(--c); border-radius: 24px; padding: 24px 22px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); box-shadow: 0 20px 60px color-mix(in srgb, var(--c) 35%, transparent); }
  .news-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--c); background: rgba(255,255,255,0.08); background: color-mix(in srgb, var(--c) 16%, transparent); border-radius: 100px; padding: 4px 12px; margin-bottom: 8px; }
  .news-ic { font-size: 52px; line-height: 1.2; }
  .news-box h2 { font-family: var(--font-display); font-size: 20px; margin: 8px 0; line-height: 1.3; }
  .news-text { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0 0 6px; white-space: pre-line; }
  .news-dates { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
  .news-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
  .news-btn { width: 100%; border: 0; border-radius: 100px; padding: 14px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: #fff; background: var(--c); }
  .news-later { background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px; cursor: pointer; }
  .news-dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
  .news-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
  .news-dots button.on { background: var(--c); }

  #sophia-root { position: fixed; z-index: 40; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); }
  @media (min-width: 768px) { #sophia-root { right: 22px; bottom: 22px; } }
  .soph-fab { position: relative; width: 62px; height: 62px; padding: 0; border-radius: 50%; border: 2px solid #ff2d55; background: #0b0b0e; box-shadow: 0 0 0 4px rgba(255,45,85,0.18), 0 10px 26px -6px rgba(0,0,0,0.6); cursor: pointer; overflow: visible; animation: sophPulse 2.8s ease-in-out infinite; }
  .soph-fab img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
  .soph-fab[hidden], .soph-panel[hidden], .soph-mic[hidden] { display: none !important; }
  .soph-dot { position: absolute; right: 1px; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2ee59d; border: 2px solid #0b0b0e; }
  @keyframes sophPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,45,85,0.18), 0 10px 26px -6px rgba(0,0,0,0.6); } 50% { box-shadow: 0 0 0 9px rgba(255,45,85,0.05), 0 10px 26px -6px rgba(0,0,0,0.6); } }
  .soph-panel { position: fixed; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: min(380px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 24px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px -12px rgba(0,0,0,0.7); overflow: hidden; z-index: 60; }
  .soph-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #1b0b10, #2a0d16); color: #fff; border-bottom: 2px solid #ff2d55; }
  .soph-head img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #ff2d55; }
  .soph-title { flex: 1; line-height: 1.25; } .soph-title b { font-size: 16px; display: block; } .soph-title small { opacity: .75; font-size: 12px; }
  .soph-x { background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer; }
  .soph-msgs { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
  .soph-row { display: flex; gap: 8px; align-items: flex-end; } .soph-row.u { justify-content: flex-end; }
  .soph-av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; }
  .soph-bubble { position: relative; max-width: 84%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; background: var(--surface-2, rgba(255,255,255,0.07)); color: var(--text); border-bottom-left-radius: 4px; }
  .soph-row.u .soph-bubble { background: #ff2d55; color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
  .soph-bubble small { opacity: .75; } .soph-ul { margin: 6px 0; padding-left: 18px; } .soph-ul li { margin: 4px 0; }
  .soph-speak { display: inline-block; margin-left: 6px; background: none; border: 0; cursor: pointer; font-size: 13px; opacity: .6; padding: 0; vertical-align: middle; }
  .soph-link { color: #ff2d55; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 4px; }
  .soph-choices { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 8px; max-height: 38%; overflow-y: auto; }
  .soph-chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 100px; padding: 8px 13px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: start; }
  .soph-chip.primary { background: #ff2d55; border-color: #ff2d55; color: #fff; }
  .soph-input { display: flex; gap: 6px; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px); border-top: 1px solid var(--line); }
  .soph-input input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--surface-2, transparent); color: var(--text); border-radius: 100px; padding: 10px 14px; font: inherit; font-size: 15px; }
  .soph-send, .soph-mic { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 16px; background: #ff2d55; color: #fff; flex: 0 0 auto; }
  .soph-mic { background: var(--surface-2, rgba(255,255,255,0.1)); color: var(--text); } .soph-mic.on { background: #ff2d55; color: #fff; }
  @media (max-width: 520px) { .soph-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; } }
  /* Sophia 3D */
  .soph-fab, .soph-head img { perspective: 300px; }
  .soph-fab { animation: none !important; transform-style: preserve-3d; }
  .soph-fab img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04); animation: sophFloat 3.6s ease-in-out infinite; transition: transform .15s ease-out; box-shadow: inset -7px -9px 14px rgba(0,0,0,0.55), inset 5px 5px 10px rgba(255,255,255,0.14), 0 8px 14px -4px rgba(255,45,85,0.45); }
  .soph-fab::after { content: ''; position: absolute; left: 11%; top: 8%; width: 46%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%); transform: rotate(-24deg); pointer-events: none; }
  .soph-head img { box-shadow: inset -4px -5px 8px rgba(0,0,0,0.5), inset 3px 3px 6px rgba(255,255,255,0.14), 0 5px 10px -3px rgba(255,45,85,0.4); animation: sophBob 3.2s ease-in-out infinite; }
  .soph-av { box-shadow: inset -3px -4px 6px rgba(0,0,0,0.45), inset 2px 2px 4px rgba(255,255,255,0.14), 0 3px 6px -2px rgba(0,0,0,0.5); }
  @keyframes sophFloat { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -4px; rotate: 2deg; } }
  @keyframes sophBob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -2px; rotate: 3deg; } }
  @media (prefers-reduced-motion: reduce) { .soph-fab, .soph-head img { animation: none !important; } }
  /* Sophia 3D corrigé : perspective dans la transformation, pas de preserve-3d (évitait une coupure de l'image) */
  .soph-fab, .soph-head img { perspective: none; }
  .soph-fab { transform-style: flat; }
  .soph-fab img { transform: perspective(400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04); }
  /* Sophia plus grande */
  .soph-fab { width: 80px; height: 80px; }
  .soph-dot { width: 16px; height: 16px; }
  @media (min-width: 521px) { .soph-panel { width: min(440px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 24px)); } }
  .soph-head img { width: 56px; height: 56px; }
  .soph-title b { font-size: 18px; } .soph-title small { font-size: 13px; }
  .soph-av { width: 38px; height: 38px; }
  .soph-bubble { font-size: 15.5px; }
  .soph-chip { font-size: 15px; padding: 10px 15px; }
  .soph-input input { font-size: 16px; }
  .soph-send, .soph-mic { width: 44px; height: 44px; font-size: 18px; }

  /* ---------- Style néon des cartes Administration + Activités ---------- */
  .activity-row.adm-row{background:linear-gradient(135deg,#0c1030,#1c0f40) padding-box,linear-gradient(90deg,#2ec8ff,#9b4dff,#ff3fd0) border-box;border:2px solid transparent;border-radius:26px;padding:12px 16px;gap:14px;box-shadow:0 0 16px rgba(130,80,255,.28);min-height:92px}
  .activity-row.adm-row:hover{border-color:transparent;box-shadow:0 0 22px rgba(160,90,255,.5)}
  .activity-row.adm-row .ic{width:76px;height:76px;border-radius:18px;background:none!important;border:0;font-size:42px;overflow:hidden}
  .activity-row.adm-row .ic img, .activity-row.adm-row img.ic{mix-blend-mode:screen;object-fit:cover}
  .activity-row.adm-row h3{font-size:19px;color:#fff}
  .activity-row.adm-row p{font-size:13.5px;color:#b8b6d8;line-height:1.35}
  .activity-row.adm-row .chev{color:#ff5ce0}
  .activity-row.adm-row .chev svg{width:28px;height:28px}
  .activity-row.adm-row.alert-green{background:linear-gradient(135deg,#0c1030,#12301f) padding-box,linear-gradient(90deg,#4ade80,#2ec8ff) border-box;box-shadow:0 0 18px rgba(74,222,128,.4)}
  .activity-row.adm-row.alert-green h3{color:#4ade80}

/* Pastille Happy Hour cliquable (accueil) */
button.hero-hot{border:0;font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:13px;gap:8px;padding:7px 8px 7px 13px;text-align:left}
.hero-hot .hh-go{background:rgba(255,255,255,.24);border-radius:14px;padding:3px 10px;font-size:12px;white-space:nowrap}
button.hero-hot:active{transform:scale(.97)}

/* Créneaux Happy Hour (réservation) */
.slot.hh{border-color:rgba(255,61,129,.8)}
.slot.hh:not(.selected){background:linear-gradient(160deg,rgba(255,61,129,.18),rgba(124,92,252,.16))}
.slot.hh .hh-tag{display:block;margin-top:2px;font-size:10.5px;font-weight:700;color:#ff6fa6;white-space:nowrap}
.slot.hh .hh-tag s{opacity:.65;font-weight:500;margin-right:2px}
.slot.hh.selected .hh-tag{color:#fff}
