/* ==========================================================================
   MAISON AURELIA · Mobile-Only Luxury Astrology/MBTI Entertainment Playground
   4-Tab Native App Feel · Houdini @property · 3D Card Flips · POS Checkout
   ========================================================================== */

@property --gold-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}

:root {
  --bg-obsidian: #07050C;
  --bg-card: rgba(20, 15, 31, 0.76);
  --gold-bright: #FDF2D6;
  --gold-light: #F2D79C;
  --gold-mid: #D5AF67;
  --gold-deep: #967031;
  --text-ivory: #FAF4E8;
  --text-champagne: #E2CFB4;
  --text-muted: rgba(226, 209, 184, 0.64);
  --border-gold: rgba(213, 175, 103, 0.24);
  --border-gold-hi: rgba(242, 215, 156, 0.56);
  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040307;
  color: var(--text-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior: none;
}

.hidden { display: none !important; }
.desktop-ambient { display: none; }

.mobile-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-obsidian);
  display: flex;
  flex-direction: column;
}

@media (min-width: 500px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 20% 20%, rgba(213, 175, 103, 0.12), transparent 45%),
      radial-gradient(circle at 80% 80%, rgba(128, 86, 178, 0.14), transparent 45%),
      #040308;
  }
  .desktop-ambient {
    display: flex;
    position: fixed;
    inset: 0;
    pointer-events: none;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
  }
  .desktop-ambient-label {
    font-family: var(--font-serif);
    font-size: 11px;
    letter-spacing: 0.26em;
    color: rgba(213, 175, 103, 0.42);
  }
  .mobile-shell {
    width: 412px;
    height: min(880px, calc(100dvh - 44px));
    border-radius: 40px;
    border: 1px solid rgba(242, 215, 156, 0.26);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 60px rgba(213, 175, 103, 0.12);
  }
}

.bg-shader-canvas, .fx-particle-canvas, .silk-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-shader-canvas { z-index: 0; }
.silk-vignette {
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,5,12,0.45) 0%, rgba(7,5,12,0.12) 38%, rgba(7,5,12,0.68) 100%);
}
.fx-particle-canvas { z-index: 70; }

/* ==========================================================================
   TOP BAR & BLACK-CARD WALLET PILL
   ========================================================================== */
.top-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 14px 8px;
  background: linear-gradient(180deg, rgba(7,5,12,0.9), rgba(7,5,12,0));
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(242, 215, 156, 0.25), rgba(150, 112, 49, 0.1));
  border: 1px solid rgba(242, 215, 156, 0.48);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-en { font-family: var(--font-serif); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-light); }
.brand-zh { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

.top-actions { display: flex; align-items: center; gap: 7px; }

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 215, 156, 0.5);
  background: linear-gradient(135deg, rgba(242,215,156,0.22), rgba(24,18,36,0.82));
  backdrop-filter: blur(12px);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease;
}
.wallet-pill:active { transform: scale(0.94); }
.wallet-plus {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-light);
  color: #161006;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.glass-music-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(20,15,31,0.78);
  color: var(--text-champagne);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.glass-music-pill.active {
  border-color: var(--gold-bright);
  background: rgba(213,175,103,0.22);
  color: var(--gold-bright);
}
.glass-music-pill.active .audio-bars i:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite; }
.glass-music-pill.active .audio-bars i:nth-child(2) { animation: eqBar 0.65s ease-in-out 0.15s infinite; }
.glass-music-pill.active .audio-bars i:nth-child(3) { animation: eqBar 0.95s ease-in-out 0.1s infinite; }

.music-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.music-track-card {
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  background: rgba(11, 8, 19, 0.76);
  color: var(--text-ivory);
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.music-track-card.active {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(242,215,156,0.2), rgba(22,15,36,0.88));
  box-shadow: 0 0 20px rgba(213,175,103,0.2);
}
.mtc-ico { font-size: 22px; flex-shrink: 0; }
.mtc-body { flex: 1; min-width: 0; }
.mtc-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--gold-bright); }
.mtc-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.mtc-status { font-size: 10.5px; color: var(--gold-light); flex-shrink: 0; }

.music-vol-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.vol-pill.active {
  border-color: var(--gold-bright);
  background: rgba(242,215,156,0.22);
  color: var(--gold-bright);
  font-weight: 700;
}
.music-footer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audio-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.audio-bars i { display: block; width: 2px; height: 4px; border-radius: 2px; background: var(--gold-light); }
.glass-icon-btn.active .audio-bars i:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite; }
.glass-icon-btn.active .audio-bars i:nth-child(2) { animation: eqBar 0.65s ease-in-out 0.15s infinite; }
.glass-icon-btn.active .audio-bars i:nth-child(3) { animation: eqBar 0.95s ease-in-out 0.1s infinite; }
@keyframes eqBar { 0%,100% { height: 3px; } 50% { height: 11px; } }

/* ==========================================================================
   MAIN STAGE, TABS & SCROLL PANES
   ========================================================================== */
.app-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tab-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.tab-view.active {
  display: flex;
  animation: fadeSlide 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.scroll-pane::-webkit-scrollbar,
.game-switcher::-webkit-scrollbar,
.chip-scroll-row::-webkit-scrollbar { display: none; }

.sub-pane {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  padding: 4px 14px 0;
  background: rgba(8, 6, 14, 0.94);
  backdrop-filter: blur(18px);
}
.sub-scroll { padding: 8px 0 16px; }
.tab-bottom-spacer { height: 78px; flex-shrink: 0; }

/* ==========================================================================
   COMMON LUXURY CARDS & BUTTONS
   ========================================================================== */
.luxury-card {
  padding: 15px 14px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-sec-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.card-sec-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sh-en {
  display: block;
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--gold-mid);
}
.sh-zh {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold-bright);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2px 2px 0;
}
.sh-count {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.gold-tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(213, 175, 103, 0.18);
  border: 1px solid rgba(242, 215, 156, 0.36);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.btn-luxury-primary {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FDF2D6 0%, #DFBA74 52%, #B2853E 100%);
  color: #171005;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(213, 175, 103, 0.28);
  transition: transform 0.16s ease;
}
.btn-luxury-primary:active { transform: scale(0.97); }
.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.5) 50%, transparent 75%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%,55% { transform: translateX(-120%); } 100% { transform: translateX(130%); } }
.btn-content { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

.btn-luxury-ghost {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 215, 156, 0.38);
  background: rgba(20, 15, 31, 0.72);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-luxury-ghost:active { transform: scale(0.97); background: rgba(213, 175, 103, 0.16); }

.mini-gold-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #FDF2D6, #D5AF67);
  color: #161006;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.mini-ghost-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 215, 156, 0.36);
  background: rgba(16, 12, 26, 0.72);
  color: var(--gold-light);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}

.luxury-input, .luxury-select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid rgba(242, 215, 156, 0.28);
  background: rgba(9, 7, 15, 0.78);
  color: var(--gold-bright);
  font-size: 13.5px;
  outline: none;
}
.luxury-input.sm, .luxury-select { height: 36px; font-size: 12.5px; padding: 0 10px; }
.luxury-select option { background: #140F20; color: #FAF4E8; }

/* ==========================================================================
   TAB 1: VIP HERO STRIP & 6 TESTS CATALOG
   ========================================================================== */
.vip-hero-strip {
  padding: 15px 15px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 215, 156, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(32, 22, 50, 0.88), rgba(14, 10, 24, 0.92));
  border: 1px solid rgba(242, 215, 156, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vhs-top { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; }
.vhs-badge { font-family: var(--font-serif); letter-spacing: 0.16em; color: var(--gold-light); font-weight: 700; }
.vhs-spent { color: var(--text-champagne); }
.vhs-spent b { color: var(--gold-bright); }
.vhs-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.32;
  color: var(--text-ivory);
}
.vhs-title em { font-style: normal; color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }
.vhs-sub { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-muted); }
.vhs-quick-bar { display: flex; gap: 8px; margin-top: 2px; }

.tests-catalog-grid { display: flex; flex-direction: column; gap: 10px; }

.test-catalog-card {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 14px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(150deg, rgba(26, 19, 40, 0.82), rgba(13, 9, 22, 0.86));
  color: var(--text-ivory);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.16s ease, border-color 0.2s ease;
}
.test-catalog-card:active { transform: scale(0.98); border-color: var(--gold-bright); }

.tcc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcc-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(213, 175, 103, 0.16);
  color: var(--gold-light);
}
.tcc-price { font-size: 11px; color: var(--gold-bright); font-weight: 600; }
.tcc-price del { color: var(--text-muted); margin-right: 4px; font-weight: 400; }
.tcc-title-row { display: flex; align-items: center; gap: 8px; }
.tcc-icon { font-size: 20px; }
.tcc-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--gold-bright); }
.tcc-desc { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.tcc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--gold-mid); padding-top: 4px; border-top: 1px solid rgba(213,175,103,0.12); }

/* Quiz Runner & Result View */
.sub-header { display: flex; align-items: center; gap: 10px; padding: 6px 0 8px; flex-shrink: 0; }
.sub-header-titles { flex: 1; }
.sub-title { margin: 2px 0 0; font-family: var(--font-serif); font-size: 18px; color: var(--gold-bright); }
.back-circle-btn, .close-circle-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(20,15,31,0.8);
  color: var(--gold-light);
  font-size: 15px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}

.quiz-prog-wrap { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.quiz-prog-meta { display: flex; justify-content: space-between; align-items: center; }
.gold-num { font-family: var(--font-serif); font-size: 13px; color: var(--gold-light); }
.gold-progress-track { height: 4px; border-radius: 99px; background: rgba(242,215,156,0.16); overflow: hidden; }
.gold-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #B2853E, #FDF2D6); transition: width 0.35s ease; }

.quiz-body-center { flex: 1; display: flex; align-items: center; padding-bottom: 66px; overflow-y: auto; }
.quiz-card { width: 100%; gap: 13px; }
.quiz-scene-pill {
  align-self: flex-start;
  font-size: 11px; padding: 4px 11px; border-radius: 999px;
  background: rgba(213,175,103,0.16); border: 1px solid rgba(242,215,156,0.3); color: var(--gold-light);
}
.quiz-q-title { margin: 0; font-family: var(--font-serif); font-size: 18.5px; line-height: 1.48; color: var(--text-ivory); }
.quiz-options { display: flex; flex-direction: column; gap: 9px; }

.quiz-option-btn {
  width: 100%; text-align: left; padding: 13px 13px; border-radius: 16px;
  border: 1px solid rgba(213,175,103,0.22); background: rgba(11,8,19,0.72);
  color: var(--text-ivory); cursor: pointer; display: flex; align-items: flex-start; gap: 10px;
  transition: all 0.18s ease;
}
.quiz-option-btn:active, .quiz-option-btn.picked {
  border-color: var(--gold-bright);
  background: rgba(242, 215, 156, 0.2);
  transform: scale(0.985);
}
.opt-letter {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(242,215,156,0.45);
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 12px; color: var(--gold-light); flex-shrink: 0;
}
.opt-main { font-size: 13.5px; line-height: 1.48; display: block; }
.opt-note { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }

/* Sovereign Card & VIP Addon */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.15s ease-out;
}
.sovereign-card {
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(from var(--gold-angle), rgba(150,112,49,0.4), #FDF2D6, #D5AF67, rgba(229,185,160,0.6), #967031, #F2D79C);
  animation: rotateGold 8s linear infinite;
  overflow: hidden;
}
@keyframes rotateGold { to { --gold-angle: 495deg; } }
.sovereign-inner {
  position: relative; z-index: 2; border-radius: 22.5px; padding: 17px 15px;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(242,215,156,0.16), transparent 55%), linear-gradient(160deg, #1B132C, #0D0916);
  display: flex; flex-direction: column; gap: 10px;
}
.card-holo-foil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.22;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,244,210,0.85), rgba(180,140,240,0.15) 55%, transparent 80%);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(242,215,156,0.34); background: rgba(12,9,20,0.7); color: var(--text-champagne); }
.sc-tag-gold { background: linear-gradient(135deg,#FDF2D6,#D5AF67); color: #161006; font-weight: 700; border-color: transparent; }
.res-for-user { font-size: 11.5px; color: var(--gold-light); }
.res-main-title { margin: 0; font-family: var(--font-serif); font-size: 22px; color: var(--gold-bright); line-height: 1.3; }
.res-subtitle { font-size: 12px; color: var(--text-muted); }

.radar-canvas-box { display: flex; justify-content: center; }
#radar-chart-canvas { width: 100%; max-width: 320px; height: auto; }
.cognitive-stack-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cog-chip { padding: 8px 4px; border-radius: 12px; background: rgba(242,215,156,0.1); border: 1px solid rgba(242,215,156,0.25); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.cog-code { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--gold-bright); }
.cog-role { font-size: 9.5px; color: var(--gold-mid); }
.cog-label { font-size: 10px; color: var(--text-champagne); }

.editorial-prose { font-size: 13px; line-height: 1.72; color: var(--text-ivory); white-space: pre-line; }
.editorial-prose p { margin: 0 0 8px; }
.editorial-prose p:last-child { margin-bottom: 0; }
.editorial-prose strong { color: var(--gold-light); }

.vip-addon-card { border-color: rgba(242, 215, 156, 0.46); background: linear-gradient(155deg, rgba(34,24,52,0.86), rgba(16,11,26,0.9)); }
.val-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--gold-bright); }
.val-price del { color: var(--text-muted); font-weight: 400; margin-right: 4px; }
.val-price em { font-style: normal; color: #FFE39C; }
.val-tease { margin: 6px 0 10px; font-size: 12px; line-height: 1.55; color: var(--text-muted); }
.val-unlocked-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold-bright); margin-bottom: 6px; }
.result-bottom-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }

/* ==========================================================================
   TAB 2: GAMES PLAYGROUND (TAROT, ASTRO DICE, CP LAB, GACHA, TRIVIA)
   ========================================================================== */
.game-switcher {
  display: flex;
  gap: 7px;
  padding: 4px 14px 8px;
  overflow-x: auto;
  flex-shrink: 0;
}
.g-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(18, 13, 28, 0.78);
  color: var(--text-champagne);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.g-pill.active {
  background: linear-gradient(135deg, #FDF2D6, #D5AF67);
  color: #161006;
  border-color: transparent;
  font-weight: 700;
}

.games-scroll { padding-top: 2px; }
.game-panel { display: none; flex-direction: column; gap: 12px; }
.game-panel.active { display: flex; animation: fadeSlide 0.28s ease both; }
.game-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gc-title { margin: 2px 0 0; font-family: var(--font-serif); font-size: 18px; color: var(--gold-bright); }
.gc-desc { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-muted); }

/* Tarot */
.chip-scroll-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.preset-chip {
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(213,175,103,0.24);
  background: rgba(11,8,19,0.7); color: var(--text-champagne); font-size: 11px; white-space: nowrap; cursor: pointer;
}
.spread-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.spread-btn {
  padding: 9px 6px; border-radius: 13px; border: 1px solid var(--border-gold);
  background: rgba(11,8,19,0.72); color: var(--text-champagne); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.spread-btn b { font-size: 11.5px; }
.spread-btn span { font-size: 10px; color: var(--gold-mid); }
.spread-btn del { color: var(--text-muted); }
.spread-btn.active { border-color: var(--gold-bright); background: rgba(242,215,156,0.18); color: var(--gold-bright); }

.tarot-stage { display: flex; flex-direction: column; gap: 12px; }
.tarot-pick-hint { text-align: center; font-size: 12px; color: var(--gold-light); }
.tarot-fan-deck {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 6px 0;
}
.tarot-back-card {
  width: 56px; height: 90px; border-radius: 10px;
  border: 1px solid rgba(242, 215, 156, 0.55);
  background:
    radial-gradient(circle at 50% 50%, rgba(242,215,156,0.25), transparent 62%),
    linear-gradient(145deg, #25193D, #0E0919);
  display: grid; place-items: center; color: var(--gold-light); font-size: 18px;
  cursor: pointer; transition: transform 0.22s ease, opacity 0.25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}
.tarot-back-card:active { transform: translateY(-8px) scale(1.06); }
.tarot-back-card.picked { opacity: 0.2; pointer-events: none; transform: translateY(-14px); }

.tarot-drawn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 9px; }
.tarot-reveal-card {
  padding: 12px 9px; border-radius: 16px;
  border: 1px solid rgba(242,215,156,0.52);
  background: linear-gradient(160deg, #23183A, #100B1C);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px;
  animation: cardFlipIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardFlipIn {
  from { opacity: 0; transform: perspective(700px) rotateY(90deg) scale(0.9); }
  to { opacity: 1; transform: perspective(700px) rotateY(0deg) scale(1); }
}
.trc-pos { font-size: 10px; color: var(--gold-mid); }
.trc-icon { font-size: 26px; display: inline-block; }
.trc-icon.reversed { transform: rotate(180deg); filter: hue-rotate(25deg); }
.trc-name { font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--gold-bright); }
.trc-dir { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(213,175,103,0.2); color: var(--gold-light); }
.trc-dir.rev { background: rgba(224,116,142,0.22); color: #FFB7C8; }

/* Astro Dice & Book of Answers */
.dice-arena { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 6px 0; }
.astro-die {
  padding: 14px 6px; border-radius: 18px;
  border: 1px solid rgba(242,215,156,0.42);
  background: radial-gradient(circle at 50% 25%, rgba(242,215,156,0.2), rgba(14,10,24,0.9));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.astro-die.rolling { animation: dieShake 0.45s ease-in-out; }
@keyframes dieShake {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-12deg) scale(0.92); }
  50% { transform: rotate(12deg) scale(1.06); }
  75% { transform: rotate(-8deg) scale(0.96); }
  100% { transform: rotate(0) scale(1); }
}
.die-type { font-size: 10px; color: var(--gold-mid); }
.die-glyph { font-size: 28px; color: var(--gold-bright); line-height: 1.1; }
.die-name { font-size: 12.5px; font-weight: 600; color: var(--text-ivory); }
.dice-result-box {
  padding: 12px 13px; border-radius: 14px;
  background: rgba(11,8,19,0.78); border: 1px solid rgba(242,215,156,0.28);
  font-size: 12.5px; line-height: 1.68; color: var(--text-ivory);
}

.boa-page {
  min-height: 104px; padding: 16px 14px; border-radius: 16px;
  background: radial-gradient(circle, rgba(242,215,156,0.12), rgba(11,8,19,0.85));
  border: 1px double rgba(242,215,156,0.38);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
}
.boa-ornament { color: var(--gold-mid); font-size: 12px; }
.boa-text { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--gold-bright); line-height: 1.45; }

/* CP Synastry */
.rel-mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rel-btn {
  padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border-gold);
  background: rgba(11,8,19,0.7); color: var(--text-champagne); font-size: 12px; cursor: pointer;
}
.rel-btn.active { border-color: var(--gold-bright); background: rgba(242,215,156,0.2); color: var(--gold-bright); font-weight: 600; }

.cp-inputs-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cp-person-box { display: flex; flex-direction: column; gap: 6px; }
.cp-label { font-size: 11px; color: var(--gold-light); font-weight: 600; text-align: center; }
.cp-vs-orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #FDF2D6, #C99D50); color: #161006;
  font-family: var(--font-serif); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

.cp-score-banner { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border-gold); }
.cps-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--text-muted); }
.cps-item b { font-family: var(--font-serif); font-size: 28px; color: var(--gold-bright); }
.cps-div { width: 1px; height: 34px; background: var(--border-gold); }
.cp-res-headline { margin: 0; font-family: var(--font-serif); font-size: 17px; color: var(--gold-bright); text-align: center; }
.dom-bar-wrap { display: flex; flex-direction: column; gap: 5px; }
.dom-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-champagne); }
.dom-track { height: 7px; border-radius: 99px; background: rgba(229,185,160,0.3); overflow: hidden; }
.dom-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FDF2D6, #D5AF67); transition: width 0.5s ease; }
.cp-vip-secret {
  padding: 12px; border-radius: 14px; background: rgba(242,215,156,0.12);
  border-left: 2px solid var(--gold-bright); font-size: 12.5px; line-height: 1.65; color: var(--gold-bright);
}

/* Gacha Machine */
.gacha-stage {
  position: relative; padding: 20px 12px; border-radius: 18px;
  background: radial-gradient(circle, rgba(242,215,156,0.16), rgba(10,7,18,0.88));
  border: 1px solid rgba(242,215,156,0.3); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gacha-capsule { font-size: 46px; filter: drop-shadow(0 0 18px rgba(242,215,156,0.6)); transition: transform 0.25s ease; }
.gacha-capsule.shaking { animation: dieShake 0.45s ease-in-out infinite; }
.gacha-caption { font-size: 11.5px; color: var(--text-muted); }
.gacha-btn-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; }
.gacha-drops-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.drop-item {
  padding: 10px 9px; border-radius: 14px; background: rgba(11,8,19,0.82);
  border: 1px solid var(--border-gold); display: flex; flex-direction: column; gap: 3px;
  animation: fadeSlide 0.3s ease both;
}
.drop-item.r-UR { border-color: #FFE492; background: linear-gradient(145deg, rgba(255,220,115,0.26), rgba(40,22,55,0.9)); box-shadow: 0 0 18px rgba(255,220,115,0.32); }
.drop-item.r-SSR { border-color: #F4A9C8; background: linear-gradient(145deg, rgba(244,169,200,0.2), rgba(26,16,38,0.88)); }
.drop-item.r-SR { border-color: #A5D8FF; }
.di-top { display: flex; justify-content: space-between; align-items: center; }
.di-rarity { font-family: var(--font-serif); font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,0.12); color: var(--gold-bright); }
.di-name { font-size: 12px; font-weight: 600; color: var(--text-ivory); }
.di-desc { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }

.gacha-collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.col-slot {
  padding: 8px 4px; border-radius: 11px; text-align: center;
  border: 1px solid rgba(213,175,103,0.15); background: rgba(10,8,18,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.col-slot.locked { opacity: 0.32; filter: grayscale(1); }
.col-slot.owned { border-color: rgba(242,215,156,0.44); background: rgba(242,215,156,0.1); }
.col-ico { font-size: 18px; }
.col-txt { font-size: 9.5px; color: var(--text-champagne); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Trivia Arcade */
.trivia-stats-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-champagne); }
.trivia-stats-bar b { color: var(--gold-bright); font-family: var(--font-serif); font-size: 15px; }
.cheat-pill-btn {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(242,215,156,0.45);
  background: rgba(242,215,156,0.14); color: var(--gold-bright); font-size: 10.5px; cursor: pointer;
}
.trivia-q-box { display: flex; flex-direction: column; gap: 10px; }
.trivia-q-text { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.5; color: var(--text-ivory); }
.trivia-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.triv-opt-btn {
  padding: 12px 10px; border-radius: 14px; border: 1px solid var(--border-gold);
  background: rgba(11,8,19,0.74); color: var(--text-ivory); font-size: 12.5px; line-height: 1.35; cursor: pointer;
}
.triv-opt-btn.correct { border-color: #8CF0B6; background: rgba(102,224,154,0.24); color: #DFFFEA; font-weight: 700; }
.triv-opt-btn.wrong { border-color: #FF8DA1; background: rgba(255,120,145,0.22); color: #FFD6DE; }
.trivia-feedback {
  padding: 10px 12px; border-radius: 12px; background: rgba(242,215,156,0.12);
  font-size: 12px; line-height: 1.55; color: var(--gold-bright);
}

/* ==========================================================================
   TAB 3: BLACK-CARD SHOPPING MALL & SCRATCH ORACLE
   ========================================================================== */
.card-stage { perspective: 1000px; }
.black-card {
  width: 100%; aspect-ratio: 1.72 / 1; border-radius: 22px; padding: 1.5px;
  background: conic-gradient(from var(--gold-angle), rgba(150,112,49,0.4), #FDF2D6, #D5AF67, rgba(229,185,160,0.55), #967031, #F2D79C);
  animation: rotateGold 7s linear infinite; overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,0.65);
}
.card-inner {
  position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 20.5px; padding: 15px 16px;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(242,215,156,0.18), transparent 55%), linear-gradient(145deg, #171126, #090710);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-specular {
  position: absolute; inset: -40%; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255,248,230,0.24) 50%, transparent 64%);
  transform: translateX(calc((var(--mx) - 50%) * 0.45));
}
.card-row-top, .card-row-bottom { display: flex; justify-content: space-between; align-items: center; }
.card-maison { font-family: var(--font-serif); font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-light); }
.card-tier-badge { font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg,#FDF2D6,#D5AF67); color: #161006; font-weight: 700; }
.card-label-micro { font-family: var(--font-serif); font-size: 9.5px; letter-spacing: 0.22em; color: rgba(242,215,156,0.62); }
.card-big-num { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--gold-bright); margin-top: 2px; }
.card-holder-mini { font-family: var(--font-serif); font-size: 14px; color: var(--gold-light); }
.card-spent-mini { font-size: 11px; color: var(--text-champagne); }
.card-spent-mini b { color: var(--gold-bright); }

.mall-quick-actions { display: flex; flex-direction: column; gap: 8px; }

.theme-shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-card {
  padding: 10px 10px; border-radius: 14px; border: 1px solid var(--border-gold);
  background: rgba(11,8,19,0.72); text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; color: var(--text-ivory);
}
.theme-card.active { border-color: var(--gold-bright); box-shadow: 0 0 18px rgba(242,215,156,0.22); }
.theme-swatch { height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); }
.theme-name { font-size: 12px; font-weight: 600; }
.theme-price { font-size: 10.5px; color: var(--gold-light); }

.mall-items-list { display: flex; flex-direction: column; gap: 9px; }
.mall-item-row {
  padding: 12px; border-radius: 15px; border: 1px solid var(--border-gold);
  background: rgba(11,8,19,0.7); display: flex; align-items: center; gap: 11px;
}
.mir-ico { font-size: 26px; flex-shrink: 0; }
.mir-info { flex: 1; min-width: 0; }
.mir-title { font-size: 13px; font-weight: 600; color: var(--gold-bright); }
.mir-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.mir-btn {
  padding: 7px 11px; border-radius: 999px; border: none;
  background: linear-gradient(135deg,#FDF2D6,#D5AF67); color: #161006;
  font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.mir-btn.owned { background: rgba(242,215,156,0.16); color: var(--gold-light); border: 1px solid var(--border-gold); }

/* 24K Scratch Card */
.scratch-wrapper {
  position: relative; width: 100%; min-height: 170px; border-radius: 18px;
  overflow: hidden; border: 1px solid rgba(242,215,156,0.45); touch-action: none; user-select: none;
}
.scratch-underneath {
  min-height: 170px; padding: 16px 14px;
  background: radial-gradient(circle at 50% 0%, rgba(242,215,156,0.18), transparent 65%), linear-gradient(155deg,#1E162F,#0D0916);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px;
}
.oracle-tag { font-family: var(--font-serif); font-size: 9.5px; letter-spacing: 0.2em; color: var(--gold-mid); }
.oracle-headline { font-family: var(--font-serif); font-size: 16.5px; font-weight: 600; color: var(--gold-bright); }
.oracle-body { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-champagne); }
.oracle-footer-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.oracle-footer-pills span { font-size: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(213,175,103,0.16); color: var(--gold-light); }
.scratch-foil-canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; cursor: pointer; transition: opacity 0.55s ease; }
.scratch-foil-canvas.cleared { opacity: 0; pointer-events: none; }
.scratch-quick-btn {
  position: absolute; right: 9px; bottom: 9px; z-index: 4; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(14,10,22,0.78); color: var(--gold-bright); font-size: 10.5px; cursor: pointer;
}

.rainbow-bubble {
  padding: 14px; border-radius: 16px; background: rgba(242,215,156,0.1);
  border: 1px solid rgba(242,215,156,0.32); font-family: var(--font-serif);
  font-size: 14.5px; line-height: 1.6; color: var(--gold-bright); text-align: center;
}

/* ==========================================================================
   TAB 4: PROFILE ARCHIVE & SOUND SANCTUARY
   ========================================================================== */
.prof-top-row { display: flex; align-items: center; gap: 12px; }
.prof-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; color: var(--gold-bright);
  background: radial-gradient(circle, rgba(242,215,156,0.28), rgba(14,10,24,0.9));
  border: 1px solid rgba(242,215,156,0.52); flex-shrink: 0;
}
.prof-info { flex: 1; }
.prof-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prof-name-row h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; color: var(--gold-bright); }
.prof-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.sc-metrics-row { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center; padding-top: 10px; border-top: 1px solid rgba(213,175,103,0.2); }
.sc-metric { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scm-label { font-size: 10px; color: var(--text-muted); }
.scm-val { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--gold-bright); }
.sc-metric-div { width: 1px; height: 24px; background: rgba(213,175,103,0.24); }

.prof-results-list { display: flex; flex-direction: column; gap: 8px; }
.prof-res-item {
  padding: 11px 12px; border-radius: 14px; background: rgba(11,8,19,0.7);
  border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pri-k { font-size: 11px; color: var(--text-muted); }
.pri-v { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--gold-bright); margin-top: 2px; }

.sound-sanctuary-card { flex-direction: row; align-items: center; justify-content: space-between; }
.ss-title { margin: 3px 0; font-family: var(--font-serif); font-size: 16px; color: var(--gold-bright); }
.ss-desc { margin: 0; font-size: 11.5px; color: var(--text-muted); }
.ss-play-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-light);
  background: rgba(242,215,156,0.18); color: var(--gold-bright); font-size: 16px; flex-shrink: 0; cursor: pointer;
}
.ss-play-btn.playing { background: linear-gradient(135deg,#FDF2D6,#C99D50); color: #161006; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; }

/* ==========================================================================
   PERSISTENT MOBILE 4-TAB BOTTOM NAVIGATION DOCK
   ========================================================================== */
.bottom-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(10px + var(--safe-bottom));
  background: rgba(10, 7, 17, 0.92);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(242, 215, 156, 0.22);
  flex-shrink: 0;
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-ico { font-size: 18px; line-height: 1; }
.nav-txt { font-size: 10.5px; letter-spacing: 0.04em; }
.nav-btn.active { color: var(--gold-bright); transform: translateY(-2px); }
.nav-btn.active .nav-ico { text-shadow: 0 0 14px rgba(242,215,156,0.85); }

/* ==========================================================================
   MODALS: POS BLACK-CARD CHECKOUT, IDENTITY, RECEIPT & POSTER
   ========================================================================== */
.modal-overlay {
  position: absolute; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,8,0.78); backdrop-filter: blur(10px); }
.modal-sheet {
  position: relative; z-index: 2; max-height: 90%; overflow-y: auto;
  padding: 10px 18px calc(18px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1B132B, #0C0915);
  border-top: 1px solid rgba(242,215,156,0.44);
  display: flex; flex-direction: column; gap: 12px;
  animation: sheetUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 38px; height: 4px; border-radius: 99px; background: rgba(242,215,156,0.3); margin: 0 auto; }
.pos-header { display: flex; align-items: center; justify-content: space-between; }
.pos-eyebrow { font-family: var(--font-serif); font-size: 10px; letter-spacing: 0.22em; color: var(--gold-mid); display: block; }
.sheet-title { margin: 2px 0 0; font-family: var(--font-serif); font-size: 18px; color: var(--gold-bright); }

.pos-item-box {
  padding: 13px; border-radius: 16px; background: rgba(255,248,232,0.04);
  border: 1px solid rgba(242,215,156,0.24);
}
.pos-item-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--gold-bright); }
.pos-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.pos-price-breakdown {
  padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(213,175,103,0.35);
  display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-champagne);
}
.ppb-row { display: flex; justify-content: space-between; }
.ppb-row.gold { color: var(--gold-light); }
.ppb-div { height: 1px; background: rgba(213,175,103,0.22); }
.ppb-row.total { font-weight: 700; color: var(--gold-bright); font-size: 14px; }
.ppb-zero { font-family: var(--font-serif); font-size: 22px; color: #FFF1C2; text-shadow: 0 0 14px rgba(242,215,156,0.6); }

.pos-stamp {
  align-self: center;
  padding: 6px 18px; border-radius: 8px;
  border: 2px solid #FFE492; color: #FFE492;
  font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
  transform: rotate(-4deg);
  animation: stampSlam 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes stampSlam { from { opacity: 0; transform: scale(1.8) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-4deg); } }

/* Zodiac Grid in Identity Sheet */
.zodiac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.zodiac-btn {
  padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(213,175,103,0.18);
  background: rgba(12,9,20,0.72); color: var(--text-champagne);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.zodiac-btn .z-glyph { font-size: 16px; color: var(--gold-mid); }
.zodiac-btn .z-name { font-size: 11px; }
.zodiac-btn.selected { border-color: var(--gold-bright); background: rgba(242,215,156,0.22); color: var(--gold-bright); }

/* Paper Luxury Receipt */
.paper-receipt {
  padding: 16px 15px; border-radius: 14px;
  background: #FAF5E8; color: #21190E;
  font-family: 'Courier New', 'PingFang SC', monospace;
  font-size: 12px; line-height: 1.65;
  box-shadow: inset 0 0 24px rgba(150, 112, 49, 0.14);
}
.pr-head { text-align: center; border-bottom: 1px dashed #8B6C3A; padding-bottom: 8px; margin-bottom: 8px; }
.pr-head b { font-size: 14px; letter-spacing: 0.12em; display: block; }
.pr-row { display: flex; justify-content: space-between; gap: 8px; }
.pr-foot { border-top: 1px dashed #8B6C3A; margin-top: 8px; padding-top: 8px; font-weight: 700; }

.poster-preview-wrap { display: flex; justify-content: center; }
.poster-preview-img { max-height: 46dvh; max-width: 100%; border-radius: 14px; border: 1px solid rgba(242,215,156,0.44); }

/* Toast */
.luxury-toast {
  position: absolute; left: 50%; top: calc(58px + var(--safe-top)); transform: translate(-50%, -12px);
  z-index: 90; padding: 8px 16px; border-radius: 999px;
  background: rgba(22,16,34,0.95); border: 1px solid rgba(242,215,156,0.52);
  color: var(--gold-bright); font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
}
.luxury-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   ZERO-LOGIN DEVICE PASSPORT & SELF-MANAGED ASSET GOVERNANCE CONSOLE
   ========================================================================== */
.device-passport-card {
  border-color: rgba(242, 215, 156, 0.36);
  background: linear-gradient(155deg, rgba(24, 18, 38, 0.84), rgba(11, 8, 19, 0.9));
}

.sync-live-pill {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(114, 216, 158, 0.16);
  border: 1px solid rgba(114, 216, 158, 0.44);
  color: #B4F5CE;
}

.device-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.dm-cell {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 6, 14, 0.72);
  border: 1px solid rgba(213, 175, 103, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-cell.full { grid-column: 1 / -1; }
.dm-k { font-size: 10px; color: var(--text-muted); }
.dm-v { font-family: 'Courier New', var(--font-sans), monospace; font-size: 11.5px; color: var(--gold-bright); font-weight: 600; word-break: break-all; }

.vault-btn-trio {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 7px;
}

.gov-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(213, 175, 103, 0.14);
}
.gov-block:first-of-type { border-top: none; padding-top: 2px; }
.gov-label { font-size: 11.5px; color: var(--text-champagne); font-weight: 500; }

.gov-pill-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gov-pill {
  padding: 7px 4px;
  border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: rgba(11, 8, 19, 0.75);
  color: var(--gold-light);
  font-size: 10.5px;
  cursor: pointer;
}
.gov-pill:active { background: rgba(242, 215, 156, 0.22); color: var(--gold-bright); }

.gov-toggle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gov-toggle-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(11, 8, 19, 0.72);
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.gov-toggle-chip.equipped {
  border-color: var(--gold-bright);
  background: rgba(242, 215, 156, 0.2);
  color: var(--gold-bright);
  font-weight: 600;
}

.gov-charm-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.gov-charm-row::-webkit-scrollbar { display: none; }

.gov-danger-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mini-danger-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 126, 150, 0.45);
  background: rgba(255, 92, 126, 0.14);
  color: #FFB8C8;
  font-size: 11px;
  cursor: pointer;
}

.pri-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pr-del-btn {
  border: none;
  background: transparent;
  color: #9A3B49;
  font-size: 11px;
  cursor: pointer;
  padding: 0 3px;
}

.vault-tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.vault-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(242, 215, 156, 0.3);
  background: rgba(8, 6, 14, 0.85);
  color: var(--gold-bright);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.45;
  resize: none;
  outline: none;
}

