    :root {
      --bg: #05070f;
      --card-bg: rgba(15, 20, 38, 0.75);
      --theme-primary: #e11d48;
      --theme-glow: rgba(225, 29, 72, 0.35);
      --gold: #f59e0b;
      --gold-light: #fde68a;
      --text: #f8fafc;
      --text-muted: #94a3b8;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Pretendard Variable", -apple-system, sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    #bgCanvas {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      z-index: 0;
      pointer-events: none;
    }

    .cinema-container {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 1160px;
      padding: 40px 24px 80px;
      display: flex;
      flex-direction: column;
    }

    /* 상단 네비 & API 설정 */
    .top-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .top-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 18px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--theme-primary);
      border-radius: 999px;
      font-size: 13.5px;
      font-weight: 800;
      color: var(--gold-light);
      transition: all 0.4s;
    }

    .btn-key-setup {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 700;
      padding: 6px 12px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s;
    }

    .btn-key-setup:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

    header {
      text-align: center;
      margin-bottom: 30px;
    }

    h1 {
      font-size: clamp(28px, 4vw, 42px);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.25;
      margin-bottom: 10px;
      background: linear-gradient(135deg, #ffffff 40%, var(--gold-light) 70%, #d97706 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    p.sub {
      font-size: 16px;
      color: var(--text-muted);
    }

    /* 2열 시네마틱 스플릿 스테이지 */
    .cinema-stage {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: start;
      margin-top: 10px;
    }

    /* 좌측: 큼직한 3D 캐릭터 쇼케이스 */
    .master-visual-col {
      position: sticky;
      top: 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      z-index: 5;
    }

    .master-glow-aura {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 440px;
      height: 540px;
      background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
      filter: blur(45px);
      z-index: 1;
      pointer-events: none;
      transition: background 0.6s ease;
    }

    .master-main-figure {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 440px;
      height: 580px;
      border-radius: 28px;
      overflow: hidden;
      border: 1.5px solid var(--theme-primary);
      box-shadow: 0 25px 60px -15px rgba(0,0,0,0.9), 0 0 35px var(--theme-glow);
      background: #000;
      transition: border-color 0.4s, box-shadow 0.4s;
    }

    .master-img-tag {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .master-main-figure:hover .master-img-tag {
      transform: scale(1.03);
    }

    .master-info-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 3;
      padding: 34px 24px 22px;
      background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 15, 0.95) 55%, #05070f 100%);
      text-align: left;
    }

    .master-tag-badge {
      display: inline-block;
      font-size: 11.5px;
      font-weight: 800;
      letter-spacing: 0.1em;
      color: #fff;
      background: var(--theme-primary);
      padding: 3px 10px;
      border-radius: 6px;
      margin-bottom: 8px;
      transition: background 0.4s;
    }

    .master-display-name {
      font-size: 25px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 8px;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }

    .master-dialogue-quote {
      font-size: 14.5px;
      font-weight: 600;
      color: var(--gold-light);
      line-height: 1.55;
    }

    /* 우측: 콘솔, 입력 폼 & 3D 인터랙티브 카드 */
    .interaction-col {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .switcher-row {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .switch-btn {
      flex: 1;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 10px 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.25s;
    }

    .switch-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      transform: translateY(-2px);
    }

    .switch-btn.active {
      border-color: var(--theme-primary);
      background: rgba(255, 255, 255, 0.1);
      box-shadow: 0 0 18px var(--theme-glow);
    }

    .switch-thumb {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top;
      border: 1.5px solid rgba(255, 255, 255, 0.2);
    }

    .switch-btn.active .switch-thumb {
      border-color: var(--theme-primary);
    }

    .switch-text { text-align: left; }
    .switch-title { font-size: 13.5px; font-weight: 800; color: #fff; }
    .switch-desc { font-size: 11px; color: var(--text-muted); }

    .glass-box {
      background: var(--card-bg);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 24px;
      padding: 26px 22px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.6);
      text-align: left;
    }

    .form-group { margin-bottom: 16px; }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: #cbd5e1;
      margin-bottom: 6px;
    }

    .radio-grid {
      display: grid;
      gap: 8px;
    }

    .radio-btn {
      cursor: pointer;
      text-align: center;
      padding: 12px;
      background: rgba(0,0,0,0.3);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    input[type="radio"] { display: none; }
    input[type="radio"]:checked + .radio-btn {
      border-color: var(--theme-primary);
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    @keyframes formPulse {
      0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); border-color: #f59e0b; transform: scale(1); }
      50% { box-shadow: 0 0 25px 8px rgba(245, 158, 11, 0.5); border-color: #fbbf24; transform: scale(1.01); }
      100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); transform: scale(1); }
    }
    .form-highlight-pulse {
      animation: formPulse 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .input-stylish, select {
      width: 100%;
      height: 50px;
      background: rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 0 14px;
      font-size: 15px;
      color: #fff;
      outline: none;
      transition: border-color 0.2s;
    }

    .input-stylish:focus, select:focus {
      border-color: var(--theme-primary);
    }

    .btn-submit {
      width: 100%;
      height: 56px;
      background: linear-gradient(135deg, var(--theme-primary) 0%, #d97706 100%);
      border: none;
      border-radius: 14px;
      font-size: 16.5px;
      font-weight: 900;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 10px 25px var(--theme-glow);
      transition: all 0.2s;
    }

    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px var(--theme-glow);
    }

    /* 로딩 애니메이션 */
    #loadingBox {
      display: none;
      text-align: center;
      padding: 30px 10px;
    }

    .ai-spinner {
      width: 48px;
      height: 48px;
      border: 3px solid rgba(255,255,255,0.1);
      border-top-color: var(--theme-primary);
      border-radius: 50%;
      margin: 0 auto 16px;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .ai-step-text {
      font-size: 15px;
      font-weight: 800;
      color: var(--gold-light);
      margin-bottom: 6px;
    }

    .ai-step-sub {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* 결과 영역 */
    #resultArea {
      display: none;
      animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .card-3d-scene {
      perspective: 1200px;
      margin: 10px auto 26px;
      width: 300px;
      height: 430px;
    }

    .card-3d-box {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.15s ease-out;
      cursor: pointer;
    }

    .card-3d-box.flipped {
      transform: rotateY(180deg) !important;
      transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 20px;
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      box-shadow: 0 25px 50px rgba(0,0,0,0.85);
      border: 1.5px solid rgba(255, 255, 255, 0.25);
    }

    .card-front {
      background: linear-gradient(145deg, #181d38 0%, #0c0f24 100%);
    }

    .card-front::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        var(--theme-glow) 50%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 80%
      );
      pointer-events: none;
      transform: translateZ(1px);
    }

    .card-badge-top {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.15em;
      color: var(--gold);
      display: flex;
      justify-content: space-between;
    }

    .card-symbol {
      width: 105px;
      height: 105px;
      margin: 10px auto;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 50px;
      box-shadow: 0 0 35px var(--theme-glow);
      animation: breathe 3s infinite alternate;
      transition: background 0.4s;
    }

    @keyframes breathe {
      0% { transform: scale(0.95); }
      100% { transform: scale(1.05); }
    }

    .card-title {
      font-size: 22px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 4px;
    }

    .card-desc {
      font-size: 13px;
      color: #cbd5e1;
      font-weight: 600;
      line-height: 1.4;
    }

    .card-touch-guide {
      font-size: 11.5px;
      color: var(--gold-light);
      font-weight: 700;
    }

    .card-back {
      background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
      transform: rotateY(180deg);
      border-color: var(--theme-primary);
      text-align: left;
    }

    .card-back h4 {
      font-size: 16px;
      font-weight: 900;
      color: var(--gold);
      margin-bottom: 12px;
    }

    .card-back p {
      font-size: 13.5px;
      color: #e2e8f0;
      line-height: 1.6;
      margin-bottom: 10px;
    }

    .receipt-box {
      background: #ffffff;
      color: #0f172a;
      border-radius: 18px;
      padding: 22px 20px;
      text-align: left;
      font-family: monospace;
      margin-bottom: 20px;
      box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    }

    .receipt-header {
      border-bottom: 1.5px dashed #cbd5e1;
      padding-bottom: 10px;
      margin-bottom: 12px;
      text-align: center;
    }

    .receipt-header h3 {
      font-size: 16px;
      font-weight: 900;
      color: #000;
    }

    .receipt-row {
      display: flex;
      justify-content: space-between;
      font-size: 13.5px;
      margin-bottom: 8px;
      font-family: "Pretendard Variable", sans-serif;
    }

    .receipt-row.bold {
      font-weight: 800;
      color: #000;
      font-size: 14.5px;
    }

    /* 결제 배너 */
    .pay-card {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(225, 29, 72, 0.15) 100%);
      border: 1.5px solid rgba(245, 158, 11, 0.4);
      border-radius: 20px;
      padding: 22px 18px;
      text-align: center;
    }

    .pay-card h3 {
      font-size: 18px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 6px;
    }

    .pay-card p {
      font-size: 13.5px;
      color: #e2e8f0;
      margin-bottom: 16px;
      line-height: 1.5;
    }

    .btn-naverpay {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      height: 54px;
      background: #03c75a;
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      border-radius: 14px;
      text-decoration: none;
      box-shadow: 0 8px 25px rgba(3, 199, 90, 0.4);
      transition: all 0.2s;
    }

    .btn-naverpay:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(3, 199, 90, 0.6);
    }

    /* API Key 설정 모달 */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.8);
      z-index: 999;
      place-items: center;
      padding: 20px;
    }

    .modal-box {
      background: #111827;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 18px;
      max-width: 440px;
      width: 100%;
      padding: 24px;
      text-align: left;
    }

    .modal-box h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
    .modal-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

    .modal-input {
      width: 100%;
      height: 46px;
      background: #000;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 10px;
      padding: 0 14px;
      color: #fff;
      font-size: 14px;
      margin-bottom: 14px;
      outline: none;
    }

    .modal-btn-row {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }

    .modal-btn {
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
      border: none;
    }

    .btn-download-item {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #1e293b;
      border: 1px solid var(--gold);
      color: #fff;
      padding: 12px 8px;
      border-radius: 10px;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      transition: all 0.2s;
    }
    .btn-download-item:hover {
      background: var(--gold);
      color: #000;
    }
    .btn-element-tab {
      display: block;
      text-align: center;
      background: #0f172a;
      border: 1px solid rgba(255,255,255,0.15);
      color: #cbd5e1;
      padding: 8px 4px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.2s;
    }
    .btn-element-tab:hover {
      border-color: var(--gold);
      color: var(--gold-light);
      background: rgba(245, 158, 11, 0.1);
    }

    /* ── 모드 탭 (사주풀이 / 궁합) ── */
    .mode-tab-row {
      display: flex;
      gap: 6px;
      margin-bottom: 18px;
    }
    .mode-tab {
      flex: 1;
      padding: 11px 8px;
      border-radius: 12px;
      font-size: 13.5px;
      font-weight: 800;
      cursor: pointer;
      border: 1.5px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      color: var(--text-muted);
      transition: all 0.22s;
      letter-spacing: 0.03em;
    }
    .mode-tab.active {
      background: var(--theme-primary);
      border-color: var(--theme-primary);
      color: #fff;
      box-shadow: 0 0 18px var(--theme-glow);
    }

    /* ── 퀵 마이크로 기능 바 ── */
    .quick-feature-bar {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 6px;
      margin-bottom: 14px;
    }
    .quick-feat-btn {
      padding: 9px 4px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      transition: all 0.2s;
      text-align: center;
    }
    .quick-feat-btn:hover {
      border-color: var(--theme-primary);
      color: #fff;
      background: rgba(255,255,255,0.08);
    }
    .quick-feat-btn.highlight {
      border-color: var(--gold);
      color: var(--gold-light);
      background: rgba(245,158,11,0.1);
    }

    /* ── 시네마틱 1:1 채팅창 ── */
    .cinema-chat-wrap {
      max-height: 300px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 10px 4px;
      margin-bottom: 12px;
    }
    .cinema-bubble {
      max-width: 82%;
      padding: 12px 14px;
      border-radius: 14px;
      font-size: 13px;
      line-height: 1.55;
    }
    .cinema-bubble-master {
      align-self: flex-start;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      color: #f1f5f9;
      border-bottom-left-radius: 2px;
    }
    .cinema-bubble-user {
      align-self: flex-end;
      background: var(--theme-primary);
      color: #fff;
      border-bottom-right-radius: 2px;
      box-shadow: 0 4px 14px var(--theme-glow);
    }

    /* ── 궁합 UI ── */
    .gung-section { display: none; }
    .gung-person {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 10px;
    }
    .gung-person-label {
      font-size: 11.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: var(--gold);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .gung-result-box {
      display: none;
      animation: fadeIn 0.5s ease;
    }
    .gung-score-ring {
      width: 120px;
      height: 120px;
      margin: 0 auto 16px;
      position: relative;
    }
    .gung-score-ring svg { transform: rotate(-90deg); }
    .gung-score-num {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-weight: 900;
      color: #fff;
    }
    .gung-score-label {
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 700;
    }
    .gung-verdict {
      text-align: center;
      font-size: 18px;
      font-weight: 900;
      color: var(--gold-light);
      margin-bottom: 8px;
    }
    .gung-aspects {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 12px;
    }
    .gung-aspect-item {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 12px;
    }
    .gung-aspect-item .label { color: var(--text-muted); font-size: 10.5px; margin-bottom: 4px; }
    .gung-aspect-item .val { color: #fff; font-weight: 800; font-size: 13.5px; }

    /* ── 🪐 귀인 지도 (Threads Circle 스타일) ── */
    .guiin-section { display: none; }
    .guiin-canvas-wrap {
      width: 100%;
      max-width: 440px;
      margin: 16px auto;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px var(--theme-glow);
      border: 1.5px solid rgba(255,255,255,0.15);
      background: #070a14;
    }
    #guiinOrbitCanvas {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 1 / 1;
    }
    .guiin-cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 14px;
    }
    .guiin-card-item {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 12px;
      font-size: 12px;
      text-align: left;
    }
    .guiin-card-item .tag {
      font-size: 11px;
      font-weight: 800;
      color: var(--gold);
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .guiin-card-item .main {
      font-size: 14px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 4px;
    }
    .guiin-card-item .desc {
      font-size: 11.5px;
      color: var(--text-muted);
      line-height: 1.45;
    }

    /* ── 공유 버튼 묶음 ── */
    .share-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 7px;
      margin: 14px 0;
    }
    .btn-share {
      padding: 11px 6px;
      border-radius: 11px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      border: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      transition: all 0.2s;
    }
    .btn-share .ico { font-size: 20px; }
    .btn-share-kakao  { background: #FEE500; color: #000; }
    .btn-share-link   { background: #1e293b; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
    .btn-share-img    { background: #0f172a; color: var(--gold-light); border: 1.5px solid var(--gold); }
    .btn-share:hover  { transform: translateY(-2px); }

    /* 숨겨진 카드 렌더 캔버스 (off-screen) */
    #shareCardCanvas { position: fixed; left: -9999px; top: 0; }

    @media (max-width: 860px) {
      .cinema-stage {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .master-visual-col {
        position: relative;
        top: 0;
      }
      .master-main-figure {
        max-width: 360px;
        height: 460px;
      }
      .master-glow-aura {
        width: 340px;
        height: 420px;
      }
    }

    /* ══════════════════════════════════════════
       도령 벤치마킹 무료 마이크로 서비스 & 카테고리 (시네마틱 럭셔리)
       ══════════════════════════════════════════ */
    .cinema-services-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 12px;
    }
    .cinema-service-card {
      background: rgba(15, 23, 42, 0.7);
      border: 1.5px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      padding: 14px 12px;
      cursor: pointer;
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }
    .cinema-service-card::after {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--theme-primary), transparent);
      opacity: 0;
      transition: opacity 0.25s;
    }
    .cinema-service-card:hover {
      transform: translateY(-2px);
      border-color: var(--gold);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 12px var(--theme-glow);
    }
    .cinema-service-card:hover::after {
      opacity: 1;
    }
    .cinema-service-card .card-icon {
      font-size: 24px;
      margin-bottom: 6px;
    }
    .cinema-service-card .card-title {
      font-size: 14px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 3px;
    }
    .cinema-service-card .card-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .cinema-service-card .card-price {
      font-size: 11.5px;
      font-weight: 900;
      color: var(--gold-light);
      align-self: flex-start;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.4);
      padding: 2px 7px;
      border-radius: 6px;
    }

    .cinema-consult-pill {
      background: rgba(245, 158, 11, 0.08);
      border: 1.5px solid rgba(245, 158, 11, 0.35);
      border-radius: 16px;
      padding: 12px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      transition: all 0.25s;
      margin-bottom: 18px;
    }
    .cinema-consult-pill:hover {
      border-color: var(--gold);
      background: rgba(245, 158, 11, 0.15);
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    }

    .cinema-category-sections {
      margin-bottom: 20px;
    }
    .cat-group-title {
      font-size: 13px;
      font-weight: 900;
      color: var(--gold-light);
      margin: 18px 0 8px 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .cat-row-list {
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      overflow: hidden;
      margin-bottom: 12px;
    }
    .cat-row-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 13px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      cursor: pointer;
      transition: background 0.2s;
    }
    .cat-row-item:last-child {
      border-bottom: none;
    }
    .cat-row-item:hover {
      background: rgba(255, 255, 255, 0.06);
    }
    .cat-row-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .cat-row-badge {
      font-size: 18px;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cat-row-name {
      font-size: 13px;
      font-weight: 800;
      color: #fff;
    }
    .cat-row-sub {
      font-size: 11px;
      color: var(--text-muted);
    }
    .cat-row-arrow {
      color: var(--text-muted);
      font-size: 18px;
    }
    .badge-new {
      font-size: 9.5px;
      font-weight: 900;
      background: var(--theme-primary);
      color: #fff;
      padding: 2px 5px;
      border-radius: 5px;
      margin-left: 4px;
    }

    .cinema-exam-banner {
      background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(245, 158, 11, 0.15));
      border: 1.5px solid var(--gold);
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 14px;
      cursor: pointer;
      transition: all 0.25s;
    }
    .cinema-exam-banner:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }

    .cat-pill-btn {
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 12px;
      text-align: center;
      font-size: 12.5px;
      font-weight: 800;
      color: #fff;
      cursor: pointer;
      transition: all 0.2s;
    }
    .cat-pill-btn:hover {
      border-color: var(--gold);
      background: rgba(245, 158, 11, 0.1);
    }

    .cinema-guiin-banner {
      background: linear-gradient(135deg, #1e1b4b, #312e81);
      border: 1.5px solid #6366f1;
      border-radius: 14px;
      padding: 14px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #fff;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.25s;
    }
    .cinema-guiin-banner:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    }

    .cinema-today-banner {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 12px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .cinema-today-banner:hover {
      border-color: var(--gold);
      background: rgba(255, 255, 255, 0.05);
    }

    /* 하단 플로팅 네비게이션 바 */
    .cinema-bottom-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      background: rgba(5, 7, 15, 0.94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      justify-content: space-around;
      padding: 8px 6px 14px;
    }
    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      font-size: 10.5px;
      font-weight: 800;
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.2s;
      flex: 1;
      text-align: center;
    }
    .bottom-nav-item .nav-ico {
      font-size: 18px;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:hover {
      color: var(--gold-light);
    }


    /* ══════════════════════════════════════════
       성능 고도화: GPU 가속, 사운드 토글, 토스트 알림
       ══════════════════════════════════════════ */
    .card-3d, .card-face, .modal-box, .cinema-bottom-bar, .cinema-services-grid {
      transform: translateZ(0);
      will-change: transform;
      -webkit-font-smoothing: antialiased;
    }
    
    /* 사운드 ON/OFF 플로팅 토글 버튼 */
    .sound-toggle-btn {
      position: fixed;
      top: 14px;
      right: 14px;
      z-index: 999;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: var(--gold-light);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 11.5px;
      font-weight: 800;
      cursor: pointer;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s;
    }
    .sound-toggle-btn:hover {
      background: rgba(245, 158, 11, 0.2);
      border-color: var(--gold);
      transform: scale(1.05);
    }

    /* 초경량 토스트 팝업 */
    .cinema-toast {
      position: fixed;
      top: 60px;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      background: rgba(15, 23, 42, 0.95);
      border: 1.5px solid var(--gold);
      color: #fff;
      padding: 10px 22px;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 16px rgba(245, 158, 11, 0.3);
      z-index: 10000;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .cinema-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }


    /* ══════════════════════════════════════════
       리드어세상 벤치마킹: 정통 만세력 사주원국표 & 오행 밸런스 차트
       ══════════════════════════════════════════ */
    .saju-engine-dashboard {
      margin: 18px 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .saju-card-panel {
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 16px 14px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    .card-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .card-panel-title {
      font-size: 13.5px;
      font-weight: 900;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* 4기둥 원국표 그리드 */
    .pillars-table-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      text-align: center;
    }
    .pillar-col {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 10px 4px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      position: relative;
    }
    .pillar-col.is-me {
      background: rgba(245, 158, 11, 0.06);
      border-color: var(--gold);
      box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
    }
    .pillar-col-tag {
      font-size: 11px;
      font-weight: 800;
      color: var(--text-muted);
    }
    .pillar-col.is-me .pillar-col-tag {
      color: var(--gold-light);
    }
    
    .pillar-cell-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
    .tengod-badge {
      font-size: 9.5px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      color: #cbd5e1;
    }
    .pillar-col.is-me .tengod-badge.me-badge {
      background: var(--gold);
      color: #000;
      font-weight: 900;
    }
    .hanja-char {
      font-size: 26px;
      font-weight: 900;
      line-height: 1.1;
      font-family: serif;
    }
    .hanja-sub {
      font-size: 10.5px;
      color: var(--text-muted);
    }
    .wunsung-badge {
      font-size: 9.5px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.3);
    }

    /* 오행 5색 클래스 */
    .color-wood  { color: #34d399 !important; }
    .color-fire  { color: #f87171 !important; }
    .color-earth { color: #fbbf24 !important; }
    .color-metal { color: #e2e8f0 !important; }
    .color-water { color: #38bdf8 !important; }
    .color-none  { color: #64748b !important; opacity: 0.6; }

    /* 오행 밸런스 바 */
    .elem-bars-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .elem-bar-item {
      display: grid;
      grid-template-columns: 62px 1fr 38px;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
      font-weight: 800;
    }
    .elem-track {
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    .elem-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .fill-wood  { background: linear-gradient(90deg, #059669, #34d399); }
    .fill-fire  { background: linear-gradient(90deg, #dc2626, #f87171); }
    .fill-earth { background: linear-gradient(90deg, #d97706, #fbbf24); }
    .fill-metal { background: linear-gradient(90deg, #64748b, #cbd5e1); }
    .fill-water { background: linear-gradient(90deg, #0284c7, #38bdf8); }

    .yongshin-card {
      margin-top: 10px;
      background: rgba(245, 158, 11, 0.08);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 11.5px;
      color: #f1f5f9;
      line-height: 1.5;
    }

  
    /* 대운 타임라인 카드 */
    .daewoon-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(251,191,36,0.2);
      border-radius: 8px;
      padding: 8px 10px;
      min-width: 72px;
      text-align: center;
      transition: all .2s;
      cursor: default;
    }
    .daewoon-card.current-dw {
      border-color: #f59e0b;
      background: rgba(245,158,11,0.1);
      box-shadow: 0 0 12px rgba(245,158,11,0.3);
    }
    .daewoon-card .dw-age {
      font-size: 10px;
      color: #94a3b8;
      margin-bottom: 3px;
    }
    .daewoon-card.current-dw .dw-age { color: #fbbf24; font-weight: 700; }
    .daewoon-card .dw-gan { font-size: 18px; font-weight: 900; }
    .daewoon-card .dw-ji  { font-size: 18px; font-weight: 900; }
    .daewoon-card .dw-tg  { font-size: 9px; color: #64748b; margin-top: 3px; }
    .daewoon-card.current-dw .dw-tg { color: #f59e0b; }

    
    /* 지장간(地藏干) */
    .jijanggan-row {
      display: flex;
      gap: 3px;
      flex-wrap: wrap;
      margin-top: 4px;
      justify-content: center;
    }
    .jijanggan-pill {
      font-size: 9px;
      padding: 2px 5px;
      border-radius: 3px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      white-space: nowrap;
      line-height: 1.4;
    }
    .jijanggan-pill .jj-tg { color: #fbbf24; font-weight: 700; }
    .jijanggan-pill .jj-gan { font-weight: 700; }
    .jijanggan-pill .jj-label { color: #64748b; font-size: 8px; }

    
