﻿    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --void:      #01010c;
      --deep:      #060616;
      --gold:      #c8a84a;
      --gold-lt:   #e6cc80;
      --gold-pale: #f0e0a0;
      --gold-dim:  rgba(200,168,74,0.10);
      --text:      #ede9e0;
      --soft:      #c0bbb0;
      --muted:     #706880;
      --border:    rgba(200,168,74,0.12);
      --glass:     rgba(255,255,255,0.024);
      --r:         18px;
      --cosmic-glass-bg: rgba(12, 10, 24, 0.42);
      --cosmic-glow-outer: rgba(167, 139, 250, 0.15);
      --cosmic-glow-inset: rgba(167, 139, 250, 0.05);
      --bg-dark-color: rgba(10, 8, 18, 0.98);
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--void);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Ambient background */
    .bg {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 90% 60% at 50% -6%,  rgba(200,168,74,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 92%  70%, rgba(90,50,185,0.07)  0%, transparent 52%),
        linear-gradient(170deg, var(--void) 0%, #060612 55%, var(--deep) 100%);
    }
    #cv { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

    /* Layout */
    .page {
      position: relative; z-index: 10;
      max-width: 1000px; margin: 0 auto;
      padding: 44px 20px 190px;
    }

    /* ---- Page header (unified with index.html brand) ---- */
    .hd { text-align: center; margin-bottom: 60px; }

    .back-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 18px;
      background: var(--glass);
      border: 1px solid var(--border);
      border-radius: 50px;
      font-size: 11px; font-weight: 500;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--muted); text-decoration: none;
      transition: color 0.2s, border-color 0.2s;
      margin-bottom: 36px;
    }
    .back-btn:hover { color: var(--gold-lt); border-color: rgba(200,168,74,0.34); }
    .back-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

    .master-k-logo-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 16px;
    }
    .master-k-main-logo {
      width: 140px;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
      transition: transform 0.4s ease, filter 0.4s ease;
    }
    .master-k-main-logo:hover {
      transform: scale(1.05);
      filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.65));
    }
    .hd-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 32px; font-weight: 600;
      color: var(--gold-lt);
      letter-spacing: 0.06em; line-height: 1.2;
    }
    .hd-meta {
      margin-top: 11px;
      font-size: 11px; color: var(--muted);
      letter-spacing: 0.12em; text-transform: uppercase;
    }
    .dom-pill {
      display: inline-flex; align-items: center; gap: 8px;
      margin-top: 18px; padding: 6px 24px;
      border-radius: 50px; border: 1px solid;
      font-size: 11px; font-weight: 600;
      letter-spacing: 0.10em; text-transform: uppercase;
    }

    /* ---- Summary strip ---- */
    .strip {
      display: grid; grid-template-columns: repeat(4, 1fr);
      border: 1px solid var(--border); border-radius: var(--r);
      overflow: visible;
      background: var(--glass); backdrop-filter: blur(16px);
      margin-bottom: 24px;
    }
    .ss {
      position: relative;
      padding: 18px 16px; text-align: center;
      border-right: 1px solid var(--border);
      cursor: default;
    }
    .ss:last-child { border-right: none; }
    .ss-lbl { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .ss-val { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--gold-lt); }

    /* ---- Luxurious tooltips ---- */
    .tip {
      position: absolute;
      bottom: calc(100% + 14px);
      left: 50%; transform: translateX(-50%) translateY(8px);
      width: 230px;
      padding: 16px 18px;
      background: rgba(4, 4, 18, 0.97);
      border: 1px solid rgba(200,168,74,0.38);
      border-radius: 14px;
      box-shadow:
        0 24px 70px rgba(0,0,0,0.75),
        0 0 0 1px rgba(200,168,74,0.06) inset,
        0 0 28px rgba(200,168,74,0.06);
      font-size: 11.5px; line-height: 1.75;
      color: rgba(224,209,170,0.82);
      text-align: left;
      letter-spacing: 0.01em;
      font-family: 'DM Sans', sans-serif;
      font-style: italic;
      opacity: 0; pointer-events: none;
      transition: opacity 0.28s ease, transform 0.28s ease;
      z-index: 200;
      white-space: normal;
    }
    .tip::after {
      content: '';
      position: absolute;
      top: 100%; left: 50%; transform: translateX(-50%);
      border: 7px solid transparent;
      border-top-color: rgba(200,168,74,0.38);
    }
    .tip::before {
      content: '';
      position: absolute;
      top: 100%; left: 50%; transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: rgba(4,4,18,0.97);
      margin-top: -1px;
      z-index: 1;
    }
    .ss:hover .tip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    .tip-icon {
      display: block;
      font-style: normal;
      font-size: 13px;
      margin-bottom: 7px;
      color: var(--gold);
      letter-spacing: 0.09em;
      text-transform: uppercase;
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
      font-size: 12px;
    }

    /* ---- Info banners (lunar / TST) ---- */
    .info-banner {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 12px 18px; margin-bottom: 18px;
      background: rgba(200,168,74,0.06);
      border: 1px solid rgba(200,168,74,0.18);
      border-radius: 12px;
      font-size: 12px; line-height: 1.6;
      color: rgba(230,204,128,0.75);
    }
    .info-banner .bi { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

    /* ---- Glass card ---- */
    .card {
      background: var(--cosmic-glass-bg);
      border: none;
      border-radius: 24px;
      padding: 34px 38px;
      backdrop-filter: blur(20px) saturate(130%);
      -webkit-backdrop-filter: blur(20px) saturate(130%);
      box-shadow:
        0 0 20px var(--cosmic-glow-outer),
        inset 0 0 15px var(--cosmic-glow-inset),
        0 30px 100px rgba(0, 0, 0, 0.45);
      margin-bottom: 22px;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px; font-weight: 600;
      color: var(--gold-lt);
      letter-spacing: 0.04em; margin-bottom: 28px;
      display: flex; align-items: center; gap: 14px;
    }
    .section-title::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, rgba(200,168,74,0.24), transparent);
    }

    /* ---- Four Pillars ---- */
    .pillars-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    }
    @media (max-width: 680px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }

    /* Asian cultural reading order: Year on the far right, Hour on the far left.
       05S: DOM display order for ko/ja is already hour→day→month→year in result.html.
       Do NOT also flex-reverse .a9-pillars.saju-rtl (would double-reverse).
       Legacy .saju-rtl without a9-pillars may still use flex reverse. */
    .pillars-grid.saju-rtl:not(.a9-pillars) {
      display: flex;
      flex-direction: row-reverse;
      flex-wrap: nowrap;
      gap: 14px;
    }
    .pillars-grid.saju-rtl:not(.a9-pillars) .pillar-card {
      flex: 1 1 0;
      min-width: 0;
    }
    @media (max-width: 680px) {
      .pillars-grid.saju-rtl:not(.a9-pillars) {
        flex-wrap: wrap;
      }
      .pillars-grid.saju-rtl:not(.a9-pillars) .pillar-card {
        flex: 1 1 calc(50% - 7px);
      }
    }

    .pillar-card {
      position: relative;
      background: rgba(255,255,255,0.022);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 15px;
      padding: 22px 14px 20px;
      text-align: center;
      transition: transform 0.26s, border-color 0.26s;
      overflow: visible; /* allow tooltips to escape the card boundary */
    }
    .pillar-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    }
    .pillar-card:hover { transform: translateY(-4px); border-color: rgba(200,168,74,0.22); }
    .pillar-card.is-day {
      border-color: rgba(200,168,74,0.34);
      background: rgba(200,168,74,0.05);
      box-shadow: 0 0 36px rgba(200,168,74,0.07);
    }
    .pillar-card.is-day::before {
      background: linear-gradient(90deg, transparent, rgba(200,168,74,0.55), transparent);
    }

    .p-label {
      font-size: 8px; font-weight: 600;
      letter-spacing: 0.20em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 14px;
    }
    .is-day .p-label { color: var(--gold); }

    .core-badge {
      display: inline-block; margin-left: 4px;
      font-size: 7px; padding: 1px 5px;
      background: rgba(200,168,74,0.22); border-radius: 3px;
      color: var(--gold); vertical-align: middle; letter-spacing: 0.1em;
    }

    /* Roman numeral -- the main visual anchor replacing Chinese characters */
    .p-numeral {
      font-family: 'Cormorant Garamond', serif;
      font-size: 50px; font-weight: 300; line-height: 1;
      margin-bottom: 5px;
      filter: drop-shadow(0 0 10px currentColor);
      opacity: 0.88;
    }
    .p-name   { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 3px; }
    /* ko/ja ganzi (天干/地支 Hanja) — enlarge so the classical glyph is the hero */
    .p-name--hanja {
      font-family: 'Noto Serif KR', 'Noto Serif JP', 'Cormorant Garamond', 'Songti SC', serif;
      font-size: 24px;
      font-weight: 700;
      letter-spacing: 0.08em;
      line-height: 1.15;
      margin-bottom: 4px;
    }
    .p-elem   { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
    .p-sep    { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent); margin: 10px 0; }
    /* [a11y] Slightly brighter muted platinum — was rgba(112,104,128,0.80), unreadable at 100% zoom */
    .p-tgod   { font-size: 9px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(196,188,210,0.92); }

    /* ---- Latent Powers (Ji-jang-gan hidden stems) ---- */
    .p-latent-wrap {
      position: relative;
      margin-top: 12px;
    }
    .p-latent-lbl {
      position: relative;
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 7.5px; font-weight: 700;
      letter-spacing: 0.20em; text-transform: uppercase;
      /* [a11y] Was rgba(112,104,128,0.60) — keep hierarchy, raise contrast only */
      color: rgba(186,178,200,0.88);
      cursor: default;
      margin-bottom: 8px;
      padding: 0 4px;
    }
    .p-latent-lbl::before,
    .p-latent-lbl::after {
      content: ''; display: block;
      height: 1px; width: 18px;
      background: linear-gradient(90deg, transparent, rgba(200,168,74,0.22));
    }
    .p-latent-lbl::before { transform: scaleX(-1); }

    /* Latent Powers tooltip */
    .p-latent-lbl .latent-tip {
      position: absolute;
      bottom: calc(100% + 12px);
      left: 50%; transform: translateX(-50%) translateY(8px);
      width: 210px;
      padding: 15px 17px;
      background: rgba(4,4,20,0.98);
      border: 1px solid rgba(200,168,74,0.36);
      border-radius: 13px;
      box-shadow:
        0 20px 60px rgba(0,0,0,0.80),
        0 0 0 1px rgba(200,168,74,0.05) inset,
        0 0 24px rgba(200,168,74,0.05);
      font-size: 11px; line-height: 1.75;
      color: rgba(220,205,165,0.80);
      text-align: center; letter-spacing: 0.01em;
      font-family: 'DM Sans', sans-serif; font-style: italic;
      font-weight: 400; text-transform: none;
      opacity: 0; pointer-events: none;
      transition: opacity 0.26s ease, transform 0.26s ease;
      z-index: 400;
      white-space: normal;
    }
    .p-latent-lbl .latent-tip::after {
      content: '';
      position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
      border: 7px solid transparent;
      border-top-color: rgba(200,168,74,0.36);
    }
    .p-latent-lbl .latent-tip::before {
      content: '';
      position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: rgba(4,4,20,0.98);
      margin-top: -1px; z-index: 1;
    }
    .p-latent-lbl:hover .latent-tip {
      opacity: 1; transform: translateX(-50%) translateY(0);
    }

    /* Individual hidden stem badges */
    .lp-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
    .lp-badge {
      display: inline-block;
      padding: 3px 9px;
      background: rgba(200,168,74,0.055);
      border: 1px solid rgba(200,168,74,0.16);
      border-radius: 20px;
      font-size: 9px; font-style: italic;
      color: rgba(224,209,170,0.62);
      letter-spacing: 0.03em;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .pillar-card:hover .lp-badge {
      background: rgba(200,168,74,0.10);
      border-color: rgba(200,168,74,0.28);
      color: rgba(230,215,175,0.82);
    }

    /* ---- Premium Paywall ---- */

    .paywall-section {
      background: #05050c;
      border: 1px solid rgba(200,168,74,0.22);
      border-radius: 20px;
      overflow: hidden;
      font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    /* ---- terminal header bar ---- */
    .pw-hd {
      background: #0b0b14;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      padding: 14px 28px;
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 10px;
    }
    .pw-hd-left  { display: flex; align-items: center; gap: 14px; }
    .pw-class-badge {
      font-size: 7px; font-weight: 700; letter-spacing: 0.22em;
      padding: 4px 10px; border-radius: 3px;
      background: rgba(200,168,74,0.15);
      border: 1px solid rgba(200,168,74,0.35);
      color: #c8a84a;
    }
    .pw-hd-title {
      font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
      color: #e2e8f0;
    }
    .pw-serial {
      font-family: 'IBM Plex Mono', 'Courier New', monospace;
      font-size: 9px; color: rgba(148,163,184,0.55);
      letter-spacing: 0.08em;
    }

    /* ---- body padding ---- */
    .pw-body { padding: 28px 28px 32px; }

    /* ---- verified strip ---- */
    .pw-verified-strip {
      display: flex; gap: 24px; flex-wrap: wrap;
      padding: 14px 18px;
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 10px;
      margin-bottom: 28px;
    }
    .pw-vstat { display: flex; flex-direction: column; gap: 3px; }
    .pw-vstat-lbl {
      font-size: 7.5px; font-weight: 700; letter-spacing: 0.16em;
      text-transform: uppercase; color: rgba(100,116,139,0.8);
    }
    .pw-vstat-val {
      font-size: 12px; font-weight: 700;
      font-family: 'IBM Plex Mono', 'Courier New', monospace;
      color: #e2e8f0;
    }
    .pw-vstat-val.gold  { color: #c8a84a; }
    .pw-vstat-val.indigo{ color: #818cf8; }
    .pw-verified-tick {
      font-size: 9px; font-weight: 700; letter-spacing: 0.10em;
      color: #4ade80; margin-left: auto; align-self: center;
    }

    /* ---- chart ---- */
    .pw-chart-section { margin-bottom: 26px; }
    .pw-chart-label {
      font-size: 8px; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: rgba(100,116,139,0.7);
      margin-bottom: 10px;
    }
    .pw-chart-wrap {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.06);
      background: #080810;
    }
    #pwChart { display: block; width: 100%; height: auto; }

    .pw-future-veil {
      position: absolute;
      top: 0; bottom: 0; right: 0;
      width: 42%;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: linear-gradient(90deg,
        rgba(5,5,12,0) 0%,
        rgba(5,5,12,0.72) 20%,
        rgba(5,5,12,0.88) 100%);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 10px;
    }
    .pw-lock-icon {
      width: 38px; height: 38px;
      border: 2px solid rgba(200,168,74,0.5);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: rgba(5,5,12,0.70);
      box-shadow: 0 0 24px rgba(200,168,74,0.18);
    }
    .pw-lock-icon svg { color: #c8a84a; }
    .pw-locked-lbl {
      font-size: 8px; font-weight: 700; letter-spacing: 0.18em;
      color: rgba(200,168,74,0.7);
    }

    /* ---- redacted table ---- */
    .pw-forecast-table {
      width: 100%; border-collapse: collapse;
      margin-bottom: 28px;
      font-family: 'IBM Plex Mono', 'Courier New', monospace;
    }
    .pw-forecast-table th {
      padding: 9px 14px; text-align: left;
      font-size: 7px; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: rgba(100,116,139,0.7);
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .pw-forecast-table td {
      padding: 11px 14px;
      font-size: 11px; color: rgba(226,232,240,0.5);
      border-bottom: 1px solid rgba(255,255,255,0.035);
    }
    .pw-forecast-table tr:last-child td { border-bottom: none; }
    .pw-yr-cell { color: #c8a84a !important; font-weight: 700; font-size: 13px !important; }
    .pw-redact {
      display: inline-block;
      background: rgba(100,116,139,0.28);
      border-radius: 3px;
      color: transparent !important;
      user-select: none;
      padding: 0 2px;
    }
    .pw-locked-row td { opacity: 0.6; filter: blur(2.5px); }

    /* ---- copy + dual pricing ---- */
    .pw-copy-wrap { text-align: center; margin-bottom: 30px; }
    .pw-copy-title {
      font-size: 19px; font-weight: 700;
      color: #e2e8f0; letter-spacing: -0.02em;
      margin-bottom: 12px; line-height: 1.35;
    }
    .pw-copy-body {
      font-size: 13px; line-height: 1.80;
      color: rgba(148,163,184,0.72);
      max-width: 560px; margin: 0 auto;
    }

    /* ---- lead-capture form ---- */
    .pw-form-section {
      margin-bottom: 28px;
    }
    .pw-form-hd {
      margin-bottom: 18px;
    }
    .pw-form-step-label {
      font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: #FFD700;
      margin-bottom: 8px;
    }
    .pw-form-title {
      font-size: 17px; font-weight: 700;
      color: #FFFFFF; letter-spacing: 0.01em;
      margin-bottom: 8px; line-height: 1.4;
    }
    .pw-form-sub {
      font-size: 14px; color: #E0E0E0;
      line-height: 1.65; font-weight: 500;
    }
    .pw-preview-hint {
      margin-top: 10px;
      font-size: 13px;
      color: #E0E0E0;
      letter-spacing: 0.02em;
      font-weight: 500;
      line-height: 1.5;
    }

    .pw-input-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 16px;
    }
    @media (max-width: 520px) { .pw-input-row { grid-template-columns: 1fr; } }

    .pw-field { display: flex; flex-direction: column; gap: 7px; }
    .pw-field label {
      font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: #FFFFFF;
    }
    .pw-field input {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 9px;
      color: #FFFFFF;
      font-family: 'Inter', Helvetica, Arial, sans-serif;
      font-size: 15px;
      font-weight: 500;
      padding: 13px 14px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .pw-field input::placeholder { color: rgba(224,224,224,0.45); }
    .pw-field input:focus {
      border-color: rgba(200,168,74,0.55);
      box-shadow: 0 0 0 3px rgba(200,168,74,0.10);
    }
    .pw-field input.invalid {
      border-color: rgba(239,68,68,0.55);
      box-shadow: 0 0 0 3px rgba(239,68,68,0.07);
    }

    /* LINE (ja) accent */
    .pw-form--line .pw-contact-label { color: #06C755; }
    .pw-form--line .pw-contact-input--line:focus {
      border-color: #06C755;
      box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.18);
    }
    .pw-form--line .pw-consent-item--channel input[type="checkbox"]:not(.pw-master) {
      border-color: rgba(6, 199, 85, 0.55);
    }
    .pw-form--line .pw-consent-item--channel input[type="checkbox"]:not(.pw-master):checked {
      background: rgba(6, 199, 85, 0.22);
      border-color: #06C755;
    }
    .pw-form--line .pw-consent-item--channel input[type="checkbox"]:not(.pw-master):checked::after {
      border-color: #06C755;
    }
    .pw-form--line .pw-consent-channel-text { color: #06C755; font-weight: 700; }

    /* KakaoTalk (ko) accent */
    .pw-form--kakao .pw-contact-label { color: #FEE500; }
    .pw-form--kakao .pw-contact-input--kakao:focus {
      border-color: #FEE500;
      box-shadow: 0 0 0 3px rgba(254, 229, 0, 0.18);
    }
    .pw-form--kakao .pw-consent-item--channel input[type="checkbox"]:not(.pw-master) {
      border-color: rgba(254, 229, 0, 0.65);
      background: rgba(254, 229, 0, 0.08);
    }
    .pw-form--kakao .pw-consent-item--channel input[type="checkbox"]:not(.pw-master):checked {
      background: #FEE500;
      border-color: #FEE500;
    }
    .pw-form--kakao .pw-consent-item--channel input[type="checkbox"]:not(.pw-master):checked::after {
      border-color: #191919;
    }
    .pw-form--kakao .pw-consent-channel-text {
      color: #FEE500;
      font-weight: 700;
      text-shadow: 0 0 1px #191919;
    }

    /* checkboxes */
    .pw-consent-list {
      display: flex; flex-direction: column; gap: 12px;
      margin-bottom: 4px;
    }
    .pw-consent-item {
      display: flex; align-items: flex-start; gap: 12px;
      cursor: pointer;
    }
    /* hide native checkbox, draw custom */
    .pw-consent-item input[type="checkbox"] {
      appearance: none; -webkit-appearance: none;
      flex-shrink: 0;
      width: 19px; height: 19px; margin-top: 2px;
      border-radius: 5px; cursor: pointer;
      transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
    }
    /* regular checkbox */
    .pw-consent-item input[type="checkbox"]:not(.pw-master) {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.28);
    }
    .pw-consent-item input[type="checkbox"]:not(.pw-master):checked {
      background: rgba(200,168,74,0.20);
      border-color: rgba(200,168,74,0.60);
    }
    .pw-consent-item input[type="checkbox"]:not(.pw-master):checked::after {
      content: '';
      display: block; width: 5px; height: 9px;
      border: 2px solid #c8a84a; border-top: none; border-left: none;
      transform: rotate(45deg) translate(3px, -1px);
    }
    /* master toggle -- gold ring */
    .pw-consent-item input.pw-master {
      background: rgba(200,168,74,0.06);
      border: 1px solid rgba(200,168,74,0.40);
    }
    .pw-consent-item input.pw-master:checked {
      background: rgba(200,168,74,0.22);
      border-color: #c8a84a;
      box-shadow: 0 0 10px rgba(200,168,74,0.22);
    }
    .pw-consent-item input.pw-master:checked::after {
      content: '';
      display: block; width: 5px; height: 9px;
      border: 2px solid #c8a84a; border-top: none; border-left: none;
      transform: rotate(45deg) translate(3px, -1px);
    }
    .pw-consent-text {
      font-size: 14px; line-height: 1.6;
      color: #E0E0E0;
      font-weight: 500;
      user-select: none;
    }
    .pw-consent-text.master-text {
      font-size: 15px; font-weight: 700;
      color: #FFFFFF;
    }
    .pw-required-badge {
      color: #ff6b6b;
      font-size: 11px;
      letter-spacing: 0.10em;
      margin-right: 6px;
      font-weight: 700;
    }
    .pw-consent-text a { color: #FFD700; text-decoration: none; font-weight: 600; }
    .pw-consent-text a:hover { color: #ffe66d; }

    .pw-form-divider {
      height: 1px;
      background: linear-gradient(90deg,
        transparent 0%, rgba(200,168,74,0.18) 30%,
        rgba(200,168,74,0.18) 70%, transparent 100%);
      margin: 22px 0;
    }

    /* CTA locked state */
    .pw-cta-btn.locked {
      opacity: 0.45; cursor: not-allowed;
      pointer-events: none;
    }

    /* pricing grid */
    .pw-pricing-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 20px;
    }
    @media (max-width: 600px) { .pw-pricing-grid { grid-template-columns: 1fr; } }

    @keyframes premiumGoldPulse {
      0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8); }
      70%  { box-shadow: 0 0 0 25px rgba(255, 215, 0, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
    }
    .premium-glow-pulse {
      animation: premiumGoldPulse 2s ease-out;
      border-color: #FFD700 !important;
      transition: border-color 0.3s ease;
    }

    .pw-price-card {
      border-radius: 16px;
      padding: 28px 24px 26px;
      display: flex; flex-direction: column; gap: 0;
      position: relative; overflow: hidden;
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .pw-price-card:hover { transform: translateY(-3px); }

    /* single report -- gold card */
    .pw-price-card.single {
      background: linear-gradient(155deg, #0f0e08 0%, #16120a 100%);
      border: 1px solid rgba(200,168,74,0.38);
      box-shadow: 0 0 40px rgba(200,168,74,0.08) inset,
                  0 8px 32px rgba(0,0,0,0.55);
    }
    .pw-price-card.single:hover {
      box-shadow: 0 0 60px rgba(200,168,74,0.14) inset,
                  0 16px 48px rgba(200,168,74,0.14);
    }
    /* pro subscription -- indigo/premium card */
    .pw-price-card.pro {
      background: linear-gradient(155deg, #090814 0%, #0e0d1c 100%);
      border: 1px solid rgba(129,140,248,0.40);
      box-shadow: 0 0 40px rgba(129,140,248,0.08) inset,
                  0 8px 32px rgba(0,0,0,0.55);
    }
    .pw-price-card.pro:hover {
      box-shadow: 0 0 60px rgba(129,140,248,0.14) inset,
                  0 16px 48px rgba(129,140,248,0.14);
    }

    /* "MOST POPULAR" ribbon */
    .pw-ribbon {
      position: absolute; top: 14px; right: -22px;
      transform: rotate(36deg);
      background: #818cf8; color: #050508;
      font-size: 6.5px; font-weight: 800; letter-spacing: 0.16em;
      padding: 4px 32px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .pw-plan-badge {
      font-size: 7.5px; font-weight: 700; letter-spacing: 0.20em;
      text-transform: uppercase; margin-bottom: 16px;
    }
    .single .pw-plan-badge { color: rgba(200,168,74,0.70); }
    .pro    .pw-plan-badge { color: rgba(129,140,248,0.70); }

    .pw-plan-price {
      display: flex; align-items: baseline; gap: 4px;
      margin-bottom: 6px;
    }
    .pw-price-amt {
      font-family: 'IBM Plex Mono', 'Courier New', monospace;
      font-size: 38px; font-weight: 800; line-height: 1;
      letter-spacing: -0.03em;
    }
    .single .pw-price-amt { color: #c8a84a; }
    .pro    .pw-price-amt { color: #a5b4fc; }
    .pw-price-period {
      font-size: 11px; color: rgba(148,163,184,0.55);
      margin-bottom: 2px;
    }

    .pw-plan-name {
      font-size: 16px; font-weight: 700;
      letter-spacing: -0.01em; margin-bottom: 14px;
    }
    .single .pw-plan-name { color: #f0e6c8; }
    .pro    .pw-plan-name { color: #e0e7ff; }

    .pw-plan-divider {
      height: 1px; margin-bottom: 16px;
    }
    .single .pw-plan-divider { background: rgba(200,168,74,0.18); }
    .pro    .pw-plan-divider { background: rgba(129,140,248,0.18); }

    .pw-plan-benefit {
      font-size: 12.5px; line-height: 1.70;
      flex: 1; margin-bottom: 22px;
    }
    .single .pw-plan-benefit { color: rgba(224,214,180,0.72); }
    .pro    .pw-plan-benefit { color: rgba(200,210,255,0.72); }

    /* feature checklist */
    .pw-feature-list {
      list-style: none; padding: 0; margin: 0 0 22px;
      display: flex; flex-direction: column; gap: 7px;
    }
    .pw-feature-list li {
      display: flex; align-items: flex-start; gap: 8px;
      font-size: 11.5px;
    }
    .pw-feature-list .chk {
      font-size: 10px; margin-top: 1px; flex-shrink: 0;
    }
    .single .pw-feature-list li { color: rgba(224,214,180,0.70); }
    .single .pw-feature-list .chk { color: #c8a84a; }
    .pro    .pw-feature-list li { color: rgba(200,210,255,0.70); }
    .pro    .pw-feature-list .chk { color: #818cf8; }

    /* CTA buttons */
    .pw-cta-btn {
      display: flex; align-items: center; justify-content: center;
      gap: 8px; width: 100%;
      font-family: 'Inter', Helvetica, Arial, sans-serif;
      font-size: 12.5px; font-weight: 800;
      letter-spacing: 0.07em; text-transform: uppercase;
      padding: 15px 20px; border-radius: 10px;
      border: none; cursor: pointer;
      transition: box-shadow 0.22s, transform 0.15s;
      text-decoration: none;
    }
    .pw-cta-btn:active { transform: translateY(0) !important; }

    .pw-cta-btn.gold {
      background: linear-gradient(135deg, #a87c08 0%, #c8a84a 50%, #a87c08 100%);
      color: #050508;
      box-shadow: 0 4px 20px rgba(200,168,74,0.32), 0 1px 4px rgba(0,0,0,0.5);
    }
    .pw-cta-btn.gold:hover {
      box-shadow: 0 8px 36px rgba(200,168,74,0.48), 0 1px 4px rgba(0,0,0,0.5);
      transform: translateY(-2px);
    }
    .pw-cta-btn.indigo {
      background: linear-gradient(135deg, #3730a3 0%, #6366f1 50%, #3730a3 100%);
      color: #e0e7ff;
      box-shadow: 0 4px 20px rgba(99,102,241,0.32), 0 1px 4px rgba(0,0,0,0.5);
    }
    .pw-cta-btn.indigo:hover {
      box-shadow: 0 8px 36px rgba(99,102,241,0.48), 0 1px 4px rgba(0,0,0,0.5);
      transform: translateY(-2px);
    }

    .pw-security-note {
      text-align: center;
      font-size: 9.5px; color: rgba(100,116,139,0.55);
      letter-spacing: 0.04em; line-height: 1.8;
    }

    .dev-bypass-wrap {
      text-align: center;
      margin-top: 22px;
    }
    #devBypassBtn {
      background: #444 !important;
      color: #ddd !important;
      font-size: 0.85rem !important;
      letter-spacing: 0.06em;
      min-width: auto;
      padding: 12px 22px !important;
      box-shadow: none !important;
    }
    #devBypassBtn:hover {
      background: #555 !important;
      transform: scale(1.02);
    }

    /* ---- VIP Post-Payment Reading ---- */
    .vip-reading-section {
      margin-top: 36px;
      padding: 36px 32px;
      background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
                  rgba(8, 8, 14, 0.92);
      border: 1px solid rgba(255, 215, 0, 0.28);
      border-radius: 18px;
      box-shadow: 0 0 48px rgba(255, 215, 0, 0.08), inset 0 0 30px rgba(255, 215, 0, 0.03);
    }
    .vip-reading-section.hidden { display: none !important; }
    .vip-reading-section.is-revealed {
      display: block !important;
      visibility: visible !important;
      opacity: 1;
      animation: vipRevealIn 1.2s ease forwards;
    }
    @keyframes vipRevealIn {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .vip-header {
      text-align: center;
      margin-bottom: 32px;
    }
    .vip-header .vip-badge {
      display: inline-block;
      padding: 5px 14px;
      border: 1px solid rgba(255, 215, 0, 0.5);
      border-radius: 50px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      color: #FFD700;
      margin-bottom: 14px;
    }
    .vip-header h2 {
      font-family: 'Cinzel', serif;
      font-size: 1.85rem;
      color: #FFD700;
      margin-bottom: 10px;
    }
    .vip-header p {
      color: rgba(224, 224, 224, 0.82);
      font-size: 0.95rem;
      line-height: 1.7;
      max-width: 62ch;
      margin: 0 auto;
    }

    .extreme-fortune-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 22px;
      margin-bottom: 32px;
    }
    .fortune-card {
      padding: 26px 24px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.35);
    }
    .fortune-card h4 {
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .fortune-card h4 i { font-size: 0.85rem; }
    .best-fortune {
      border-color: rgba(255, 215, 0, 0.35);
      box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.06);
    }
    .best-fortune h4 { color: #FFD700; }
    .worst-fortune {
      border-color: rgba(239, 68, 68, 0.35);
      box-shadow: inset 0 0 24px rgba(239, 68, 68, 0.06);
    }
    .worst-fortune h4 { color: #f87171; }
    .gold-text {
      font-family: 'Cinzel', serif;
      font-size: 1.45rem;
      color: #FFD700;
      margin-bottom: 10px;
      text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    }
    .red-text {
      font-family: 'Cinzel', serif;
      font-size: 1.45rem;
      color: #f87171;
      margin-bottom: 10px;
      text-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
    }
    .phase-badge {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      padding: 4px 10px;
      border-radius: 4px;
      margin-bottom: 14px;
    }
    .best-fortune .phase-badge {
      background: rgba(255, 215, 0, 0.12);
      color: #FFD700;
      border: 1px solid rgba(255, 215, 0, 0.3);
    }
    .worst-fortune .phase-badge {
      background: rgba(239, 68, 68, 0.12);
      color: #fca5a5;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
    .fortune-card p:last-child {
      font-size: 0.92rem;
      line-height: 1.72;
      color: rgba(224, 224, 224, 0.88);
      margin: 0;
    }

    .twelve-phase-reveal {
      margin-bottom: 32px;
    }
    .three-year-waves-section {
      margin-top: 50px;
      margin-bottom: 32px;
      display: block;
      visibility: visible;
      position: relative;
      z-index: 2;
    }
    .three-year-waves-section h3 {
      color: #FFD700;
      font-family: 'Cinzel', serif;
      text-align: center;
      margin-bottom: 10px;
      font-size: 1.15rem;
    }
    .three-year-waves-section .trajectory-sub {
      text-align: center;
      color: #aaa;
      margin-bottom: 30px;
      font-size: 0.88rem;
      line-height: 1.6;
      max-width: 58ch;
      margin-left: auto;
      margin-right: auto;
    }
    /* RULE_VVIP_STRATEGY_CARD_UI */
    .strategy-wave-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      max-width: 720px;
      margin: 0 auto;
      min-height: 0;
      position: relative;
      z-index: 2;
    }
    .strategy-wave-card {
      display: block;
      padding: 20px 24px 20px 20px;
      padding-right: 24px;
      border-radius: 14px;
      border: 1px solid rgba(212, 175, 55, 0.42);
      background: linear-gradient(165deg, rgba(18, 22, 40, 0.92), rgba(8, 10, 20, 0.96));
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    }
    .strategy-wave-headline {
      margin: 0 0 12px;
      font-family: 'Cinzel', 'Noto Serif KR', serif;
      font-size: 1.05rem;
      font-weight: 600;
      color: #E8C766;
      line-height: 1.65;
    }
    .strategy-wave-oneliner {
      margin: 0;
      font-size: 0.98rem;
      line-height: 1.7;
      color: rgba(232, 228, 216, 0.92);
    }
    .ten-gods-wave-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      min-height: 200px;
      position: relative;
      z-index: 2;
    }
    .vip-wave-card {
      padding: 18px 16px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255, 215, 0, 0.14);
      background: rgba(0, 0, 0, 0.32);
      display: flex;
      flex-direction: column;
      min-height: 280px;
      overflow: visible;
      position: relative;
    }
    .vip-wave-card h4 {
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      color: #FFD700;
      margin: 0 0 6px;
    }
    .vip-wave-card .vip-wave-theme {
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }
    .vip-wave-years {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 12px;
    }
    .vip-wave-year {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.78rem;
      padding: 5px 8px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.03);
    }
    .vip-wave-year .yr { color: #FFD700; font-weight: 600; }
    .vip-wave-year .stage { color: rgba(224, 224, 224, 0.75); }
    .vip-wave-year .volt {
      font-family: 'IBM Plex Mono', monospace;
      color: #c8a84a;
      font-weight: 700;
    }
    .vip-wave-year.is-peak { background: rgba(255, 215, 0, 0.08); border: 1px solid rgba(255, 215, 0, 0.2); }
    .vip-wave-year.is-valley { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.18); }
    .vip-wave-year.is-valley .volt { color: #f87171; }
    .vip-wave-chart-wrap {
      position: relative;
      display: block;
      width: 100%;
      height: 160px;
      min-height: 160px;
      margin-top: 8px;
      overflow: visible;
      z-index: 2;
    }
    .vip-wave-chart-wrap canvas {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100%;
      position: absolute;
      inset: 0;
      z-index: 2;
    }

    .close-card-btn {
      display: none;
      position: absolute;
      top: 15px;
      right: 20px;
      background: transparent;
      border: none;
      color: #FFD700;
      font-size: 32px;
      font-weight: bold;
      cursor: pointer;
      z-index: 10001;
      line-height: 1;
      padding: 4px 8px;
    }
    .close-card-btn:hover {
      color: #FFF;
    }
    .wave-card.expanded-modal .close-card-btn {
      display: block;
    }
    .wave-card-modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      z-index: 9999;
    }
    .wave-card-modal-backdrop.is-active {
      display: block;
    }
    .wave-card.expanded-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: min(92vw, 440px);
      max-height: 88vh;
      overflow-y: auto;
      z-index: 10000;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.92);
      border-color: rgba(255, 215, 0, 0.45);
      cursor: default;
    }
    .wave-card.expanded-modal .vip-wave-chart-wrap,
    .wave-card.expanded-modal [style*="height: 160px"] {
      height: 220px !important;
      min-height: 220px !important;
    }
    @media (max-width: 768px) {
      .ten-god-wave-item.wave-card,
      .vip-wave-card.wave-card {
        cursor: pointer;
      }
    }

    .vip-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      margin-top: 8px;
    }
    #downloadPdfBtn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 32px;
      background: linear-gradient(135deg, #B8860B 0%, #FFD700 50%, #B8860B 100%);
      color: #000;
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    #downloadPdfBtn:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 28px rgba(255, 215, 0, 0.4);
    }

    .daily-push-box {
      width: 100%;
      max-width: 560px;
      padding: 26px 24px;
      border-radius: 14px;
      border: 1px solid rgba(129, 140, 248, 0.35);
      background: rgba(129, 140, 248, 0.06);
      text-align: center;
    }
    .daily-push-box h4 {
      font-family: 'Cinzel', serif;
      font-size: 1.1rem;
      color: #a5b4fc;
      margin-bottom: 10px;
    }
    .daily-push-box p {
      font-size: 0.88rem;
      line-height: 1.7;
      color: rgba(224, 224, 224, 0.85);
      margin-bottom: 18px;
    }
    .daily-push-box em {
      color: rgba(200, 168, 74, 0.9);
      font-style: normal;
    }
    #enablePushBtn {
      padding: 13px 24px;
      background: transparent;
      border: 1px solid rgba(129, 140, 248, 0.55);
      border-radius: 8px;
      color: #a5b4fc;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    #enablePushBtn:hover {
      background: rgba(129, 140, 248, 0.12);
      border-color: #818cf8;
    }
    #enablePushBtn.is-enabled {
      border-color: rgba(74, 222, 128, 0.5);
      color: #4ade80;
    }

    /* ---- Viral Netflix-style poster ---- */
    #viral-poster-section {
      text-align: center;
      margin-top: 60px;
      padding: 40px 20px 48px;
      background: rgba(10, 10, 15, 0.92);
      border-top: 1px solid rgba(255, 215, 0, 0.3);
      border-radius: 0 0 14px 14px;
    }
    #viral-poster-section h3 {
      color: #fff;
      font-family: 'Cinzel', serif;
      font-size: 1.8rem;
      margin-bottom: 10px;
      letter-spacing: 0.06em;
    }
    #viral-poster-section .viral-poster-sub {
      color: #aaa;
      font-size: 1rem;
      margin-bottom: 30px;
      line-height: 1.6;
    }
    .mk-btn {
      font-family: 'DM Sans', sans-serif;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    }
    .mk-btn:hover { transform: scale(1.03); }
    .mk-btn:disabled { opacity: 0.55; cursor: wait; }
    #triggerUploadBtn {
      background: #E50914;
      color: #fff;
      font-weight: 700;
      padding: 15px 40px;
      font-size: 1.05rem;
      border: none;
      border-radius: 5px;
      box-shadow: 0 8px 28px rgba(229, 9, 20, 0.35);
    }
    #posterCanvas {
      display: none;
      width: 100%;
      max-width: 320px;
      margin: 30px auto 0;
      border-radius: 10px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    }
    #posterCanvas.is-visible { display: block; }
    #action-buttons {
      display: none;
      justify-content: center;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 20px;
    }
    #action-buttons.is-visible { display: flex; }
    #downloadPosterBtn {
      background: #333;
      color: #fff;
      padding: 12px 20px;
      border-radius: 5px;
      border: 1px solid #555;
    }
    #sharePosterBtn {
      background: #FFD700;
      color: #000;
      padding: 12px 20px;
      border-radius: 5px;
      font-weight: 700;
      border: none;
    }
    #posterGeneratingMsg {
      display: none;
      color: #FFD700;
      font-size: 0.9rem;
      margin-top: 16px;
      letter-spacing: 0.06em;
    }
    #posterGeneratingMsg.is-visible { display: block; }

    /* VIP payment cinematic overlay */
    #vipCinematicOverlay {
      position: fixed;
      inset: 0;
      z-index: 100000;
      background: rgba(2, 2, 8, 0.97);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
      transition: opacity 0.9s ease;
    }
    #vipCinematicOverlay.hidden { display: none !important; }
    #vipCinematicOverlay.is-fading { opacity: 0; pointer-events: none; }
    #vipCinematicText {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.4rem, 4vw, 2.4rem);
      font-weight: 700;
      color: #FFD700;
      text-align: center;
      padding: 24px;
      max-width: 90vw;
      line-height: 1.5;
      opacity: 0;
      transition: opacity 0.6s ease;
      text-shadow: 0 0 30px rgba(255, 215, 0, 0.35);
    }
    #vipCinematicText.visible { opacity: 1; }

    .paywall-pre-unlock.hidden-section { display: none !important; }

    /* ---- Cosmic Weather Navigator ---- */

    .cw-nav {
      display: flex; align-items: flex-end; justify-content: space-between;
      flex-wrap: wrap; gap: 14px;
      margin-bottom: 28px;
    }
    .cw-nav-label {
      font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
      color: #E0E0E0;
      margin-bottom: 10px;
      line-height: 1.45;
    }
    .cw-date-row {
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    }
    .cw-date-input {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.20);
      border-radius: 10px;
      color: #FFFFFF;
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      font-weight: 500;
      padding: 11px 14px;
      outline: none;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .cw-date-input:hover, .cw-date-input:focus {
      border-color: rgba(200,168,74,0.45);
    }
    /* Make date picker arrow gold in Chrome */
    .cw-date-input::-webkit-calendar-picker-indicator {
      filter: invert(0.7) sepia(1) saturate(2) hue-rotate(5deg);
      cursor: pointer;
    }
    .cw-today-btn {
      background: rgba(200,168,74,0.12);
      border: 1px solid rgba(200,168,74,0.35);
      border-radius: 8px;
      color: #FFD700;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.06em;
      padding: 10px 16px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .cw-today-btn:hover { background: rgba(200,168,74,0.22); }

    .cw-mode-badge {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; padding: 8px 16px;
      border-radius: 20px;
    }
    .cw-mode-badge.past    { background:rgba(251,146,60,0.12); color:#fb923c; border:1px solid rgba(251,146,60,0.25); }
    .cw-mode-badge.present { background:rgba(74,222,128,0.12); color:#4ade80; border:1px solid rgba(74,222,128,0.25); }
    .cw-mode-badge.future  { background:rgba(167,139,250,0.12); color:#a78bfa; border:1px solid rgba(167,139,250,0.25); }
    /* [TZ] Contract B — withhold temporal badge until living timezone is resolved */
    #cwModeBadge[data-cw-tz-pending="1"] { min-height: 1.5rem; opacity: 0; pointer-events: none; }
    #cwModeBadge[data-cw-tz-pending="0"] { opacity: 1; transition: opacity 0.15s ease; }
    #cwSection.cw-tz-pending .cw-day-vds-header .vds-title,
    #cwSection.cw-tz-pending .mk-daily-alerts-btn { visibility: hidden; }

    .cw-loading {
      display: flex; align-items: center; gap: 10px;
      font-size: 14px; color: #E0E0E0; letter-spacing: 0.04em;
      font-weight: 500;
      padding: 18px 0;
    }

    .cw-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
    }
    @media (min-width: 768px) {
      .cw-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }
      #cw-day.cw-card--daily,
      #cw-day {
        grid-column: 1 / -1;
      }
    }

    .cw-card {
      background: rgba(255,255,255,0.025);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 22px 20px 20px;
      display: flex; flex-direction: column; gap: 0;
      transition: border-color 0.3s;
      min-height: 280px;
    }
    .cw-card:hover { border-color: rgba(200,168,74,0.20); }

    /* Merged Daily card — VDS header sits above voltage ring */
    #cw-day.cw-card--daily,
    #cw-day {
      min-height: 0;
    }
    #cw-day .cw-day-vds-bundle {
      margin: 0 0 1.1rem;
      padding: 0 0 1rem;
      border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    }
    #cw-day .cw-day-vds-header.vds-header {
      text-align: center;
      margin: 0 0 0.85rem;
    }
    #cw-day .cw-day-vds-header .vds-title {
      font-size: clamp(1.2rem, 2.8vw, 1.55rem);
      margin: 0 0 0.4rem;
    }
    #cw-day .cw-day-vds-header .vds-subtitle {
      margin: 0;
      font-size: 0.82rem;
    }
    #cw-day .cw-day-vds-meta {
      margin: 0;
    }
    #cw-day .vds-meta-grid {
      margin-bottom: 0.35rem;
    }
    #cw-day .vds-gender-alert {
      margin: 0.75rem 0 0;
    }
    #cw-day .cw-period {
      margin-top: 0.15rem;
    }
    #cw-day .cw-volt-wrap {
      margin-top: 0.85rem;
    }

    /* 05X-H2N-R4: FREE Year/Month fog overlay only — original card geometry.
       Hide FREE date navigator; Day uses original .cw-grid layout. */
    #cwSection.cw-section--free-preview .cw-nav,
    #cwSection.cw-section--free-preview #cwCompositeWaveNote,
    #cwSection.cw-section--free-preview #cwModeBadge {
      display: none !important;
    }
    .cw-lower-detail {
      position: relative;
      margin-top: 16px;
    }
    .cw-lower-detail--fogged {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      min-height: var(--cw-ym-teaser-min, 10rem);
    }
    .cw-lower-detail--fogged .cw-lower-body {
      filter: blur(7px);
      opacity: 0.42;
      -webkit-user-select: none;
      user-select: none;
      pointer-events: none;
    }
    .cw-lower-fog {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 10px 12px;
      box-sizing: border-box;
      overflow: hidden;
      border: 1px solid rgba(200, 168, 74, 0.28);
      border-radius: 16px;
      cursor: pointer;
      background:
        linear-gradient(
          180deg,
          rgba(8, 8, 16, 0.22) 0%,
          rgba(8, 8, 16, 0.52) 42%,
          rgba(10, 9, 6, 0.82) 100%
        ),
        radial-gradient(ellipse at 18% 80%, rgba(200, 168, 74, 0.16), transparent 48%),
        radial-gradient(ellipse at 88% 12%, rgba(200, 168, 74, 0.10), transparent 42%);
      backdrop-filter: blur(8px) saturate(120%);
      -webkit-backdrop-filter: blur(8px) saturate(120%);
      color: #e8d5a3;
      font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
      letter-spacing: 0.03em;
      line-height: 1.45;
      text-align: left;
      appearance: none;
      -webkit-appearance: none;
      width: 100%;
      transition: border-color 0.28s ease, box-shadow 0.28s ease;
    }
    .cw-lower-fog:hover,
    .cw-lower-fog:focus-visible {
      border-color: rgba(200, 168, 74, 0.55);
      color: #f3e6b8;
      box-shadow: 0 0 22px rgba(212, 175, 55, 0.14);
      outline: none;
    }
    .cw-lower-fog-inner {
      display: grid;
      grid-template-columns: minmax(4.4rem, 0.42fr) minmax(0, 1fr);
      gap: 0.55rem 0.85rem;
      align-items: center;
      width: 100%;
      min-width: 0;
    }
    .cw-lower-fog-visual {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 5rem;
      min-height: 0;
      pointer-events: none;
    }
    .cw-lower-fog-visual--emblem {
      width: 4.4rem;
      height: 4.4rem;
      min-height: 4.4rem;
      margin: 0 auto;
      border-radius: 50%;
      border: 1px solid rgba(200, 168, 74, 0.38);
      background:
        radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.32), transparent 58%),
        conic-gradient(from 18deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0));
      box-shadow:
        inset 0 0 0 7px rgba(8, 8, 16, 0.55),
        0 0 16px rgba(212, 175, 55, 0.18);
    }
    .cw-lower-fog-figure {
      display: block;
      height: 5rem;
      width: auto;
      max-width: 100%;
      max-height: 5rem;
      object-fit: contain;
      object-position: center center;
      mix-blend-mode: lighten;
      filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.16));
    }
    .cw-lower-fog-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.28rem;
      min-width: 0;
    }
    .cw-lower-fog-title {
      font-size: 0.98rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: #f3e6c2;
      text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
    }
    .cw-lower-fog-hint {
      font-size: 0.72rem;
      line-height: 1.55;
      color: rgba(232, 220, 186, 0.78);
    }
    .cw-lower-fog-msg {
      max-width: 22rem;
      text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
    }
    .cw-lower-fog-cta {
      display: inline-flex;
      align-items: center;
      margin-top: 0.22rem;
      padding: 0.32rem 0.78rem;
      border: 1px solid rgba(200, 168, 74, 0.45);
      border-radius: 999px;
      background: rgba(212, 175, 55, 0.08);
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      color: #f0e0b0;
    }
    .cw-lower-fog:hover .cw-lower-fog-cta,
    .cw-lower-fog:focus-visible .cw-lower-fog-cta {
      border-color: rgba(212, 175, 55, 0.78);
      background: rgba(212, 175, 55, 0.16);
    }
    @media (max-width: 767px) {
      .cw-lower-fog-inner {
        grid-template-columns: 3.5rem minmax(0, 1fr);
        gap: 0.4rem 0.65rem;
      }
      .cw-lower-fog-visual,
      .cw-lower-fog-figure {
        height: 3.6rem;
        max-height: 3.6rem;
      }
      .cw-lower-fog-title {
        font-size: 0.88rem;
      }
      .cw-lower-fog-hint {
        font-size: 0.68rem;
      }
    }

    /* 05X-P0B JA premium Owner Flow — geometry + celestial map.
       Scoped to html[lang="ja"]. EN cards keep the prior renderer. */
    html[lang="ja"] #cwSection {
      --cw-ym-outer-height: 46.75rem;
      --cw-celestial-ym: 13.25rem;
      --cw-celestial-day: 18.75rem;
      --cw-ym-reading-min: 7.25rem;
      --cw-ym-teaser-min: 10rem;
      --cw-gold-line: rgba(200, 168, 74, 0.38);
      --cw-gold-bright: rgba(212, 175, 55, 0.92);
    }
    html[lang="ja"] #cw-year.cw-card--period,
    html[lang="ja"] #cw-month.cw-card--period {
      display: flex;
      flex-direction: column;
    }
    html[lang="ja"] #cwSection.cw-section--free-preview #cw-year.cw-card--period,
    html[lang="ja"] #cwSection.cw-section--free-preview #cw-month.cw-card--period {
      overflow: hidden;
      height: var(--cw-ym-outer-height);
      min-height: var(--cw-ym-outer-height);
      max-height: var(--cw-ym-outer-height);
    }
    html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-year.cw-card--period,
    html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-month.cw-card--period {
      height: auto;
      max-height: none;
      overflow: visible;
    }
    @media (min-width: 768px) {
      html[lang="ja"] #cwGrid.cw-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
      }
      html[lang="ja"] #cw-year.cw-card--period,
      html[lang="ja"] #cw-month.cw-card--period {
        width: auto;
        min-width: 0;
      }
      html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-year.cw-card--period,
      html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-month.cw-card--period {
        min-height: var(--cw-ym-outer-height);
      }
    }
    @media (max-width: 767px) {
      html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-year.cw-card--period,
      html[lang="ja"] #cwSection:not(.cw-section--free-preview) #cw-month.cw-card--period {
        min-height: 0;
      }
    }
    html[lang="ja"] .cw-card--ja-flow .cw-pillar-name {
      min-height: 0;
      margin-bottom: 0.55rem;
      font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
      font-size: 1.42rem;
      letter-spacing: 0.14em;
      color: #f3e6c2;
    }
    html[lang="ja"] .cw-ja-primary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 16px;
      margin: 0 0 0.85rem;
    }
    html[lang="ja"] .cw-ja-kicker,
    html[lang="ja"] .cw-ja-ground-kicker {
      display: block;
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.16em;
      color: rgba(200, 168, 74, 0.72);
      margin-bottom: 0.2rem;
    }
    html[lang="ja"] .cw-ja-primary-val {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.08rem;
      color: #eee6d4;
    }
    html[lang="ja"] .cw-celestial {
      margin: 0 0 0.85rem;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    html[lang="ja"] .cw-celestial-caption {
      margin: 0 0 0.4rem;
      font-size: 0.68rem;
      letter-spacing: 0.18em;
      color: rgba(200, 168, 74, 0.7);
    }
    html[lang="ja"] .cw-celestial svg {
      width: var(--cw-celestial-ym);
      height: var(--cw-celestial-ym);
      display: block;
      overflow: visible;
    }
    html[lang="ja"] .cw-celestial--day svg {
      width: var(--cw-celestial-day);
      height: var(--cw-celestial-day);
    }
    html[lang="ja"] .cw-celestial-ring {
      fill: none;
      stroke: var(--cw-gold-line);
      stroke-width: 0.7;
    }
    html[lang="ja"] .cw-celestial-ring--outer {
      stroke: rgba(200, 168, 74, 0.48);
      stroke-width: 0.85;
    }
    html[lang="ja"] .cw-celestial-ring--mid {
      stroke: rgba(200, 168, 74, 0.22);
      stroke-dasharray: 2.2 2.8;
    }
    html[lang="ja"] .cw-celestial-cross {
      stroke: rgba(200, 168, 74, 0.12);
      stroke-width: 0.5;
    }
    html[lang="ja"] .cw-celestial-tick {
      stroke: rgba(212, 175, 55, 0.55);
      stroke-width: 0.8;
    }
    html[lang="ja"] .cw-celestial-stage {
      fill: rgba(232, 220, 186, 0.78);
      font-size: 7.2px;
      font-family: 'Noto Serif JP', serif;
      pointer-events: none;
    }
    html[lang="ja"] .cw-celestial-core {
      fill: rgba(8, 8, 16, 0.9);
      stroke: rgba(212, 175, 55, 0.7);
      stroke-width: 0.9;
      pointer-events: none;
    }
    html[lang="ja"] .cw-celestial-hit {
      fill: transparent;
      stroke: none;
      pointer-events: all;
      cursor: pointer;
    }
    html[lang="ja"] .cw-celestial-mark-g {
      outline: none;
      cursor: pointer;
    }
    html[lang="ja"] .cw-celestial-mark {
      fill: #f2eee4;
      stroke: rgba(255, 248, 230, 0.88);
      stroke-width: 0.85;
      pointer-events: none;
    }
    html[lang="ja"] .cw-celestial-mark--primary {
      fill: #d4af37;
      stroke: rgba(255, 228, 160, 0.95);
      stroke-width: 1.2;
      filter: drop-shadow(0 0 1.6px rgba(212, 175, 55, 0.85));
    }
    html[lang="ja"] .cw-celestial-map-wrap {
      position: relative;
      display: block;
      width: var(--cw-celestial-ym);
      max-width: 100%;
    }
    html[lang="ja"] .cw-celestial--day .cw-celestial-map-wrap {
      width: var(--cw-celestial-day);
    }
    html[lang="ja"] .cw-celestial-live-tip {
      position: absolute;
      left: 50%;
      top: 0;
      z-index: 4;
      margin: 0;
      padding: 0.2rem 0.48rem;
      min-height: 0;
      max-width: min(11.5rem, calc(100% - 8px));
      transform: translate(-50%, calc(-100% - 7px));
      background: rgba(8, 8, 16, 0.94);
      border: 1px solid rgba(200, 168, 74, 0.38);
      border-radius: 6px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      line-height: 1.35;
      color: #f3e6c2;
      text-align: center;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
    }
    html[lang="ja"] .cw-celestial-live-tip.is-on {
      opacity: 1;
      visibility: visible;
    }
    html[lang="ja"] .cw-celestial-live-tip.is-below {
      transform: translate(-50%, 8px);
    }
    html[lang="ja"] .cw-celestial-legend,
    html[lang="ja"] .cw-celestial-explain,
    html[lang="ja"] .cw-celestial-note {
      margin: 0.38rem 0 0;
      max-width: var(--cw-celestial-ym);
      font-size: 0.56rem;
      line-height: 1.55;
      letter-spacing: 0.03em;
      color: rgba(200, 188, 160, 0.72);
      text-align: center;
    }
    html[lang="ja"] .cw-celestial-legend {
      white-space: pre-line;
      color: rgba(212, 196, 160, 0.78);
    }
    html[lang="ja"] .cw-celestial-explain {
      font-size: 0.52rem;
      color: rgba(188, 176, 150, 0.62);
    }
    html[lang="en"] #cwSection {
      --cw-celestial-ym: 13.25rem;
      --cw-celestial-day: 18.75rem;
      --cw-gold-line: rgba(200, 168, 74, 0.38);
      --cw-gold-bright: rgba(212, 175, 55, 0.92);
    }
    html[lang="en"] .cw-celestial {
      margin: 0 0 0.85rem;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    html[lang="en"] .cw-celestial-caption {
      margin: 0 0 0.4rem;
      font-size: 0.68rem;
      letter-spacing: 0.18em;
      color: rgba(200, 168, 74, 0.7);
    }
    html[lang="en"] .cw-celestial-legend,
    html[lang="en"] .cw-celestial-explain,
    html[lang="en"] .cw-celestial-note {
      margin: 0.38rem 0 0;
      max-width: var(--cw-celestial-ym);
      font-size: 0.56rem;
      line-height: 1.5;
      color: rgba(200, 188, 160, 0.72);
      text-align: center;
    }
    html[lang="en"] .cw-celestial-legend {
      white-space: pre-line;
      color: rgba(212, 196, 160, 0.78);
    }
    html[lang="en"] .cw-celestial-explain {
      font-size: 0.52rem;
      color: rgba(188, 176, 150, 0.62);
    }
    html[lang="en"] .cw-celestial svg {
      width: var(--cw-celestial-ym);
      height: var(--cw-celestial-ym);
      display: block;
      overflow: visible;
    }
    html[lang="en"] .cw-celestial--day svg {
      width: var(--cw-celestial-day);
      height: var(--cw-celestial-day);
    }
    html[lang="en"] .cw-celestial-ring {
      fill: none;
      stroke: var(--cw-gold-line);
      stroke-width: 0.7;
    }
    html[lang="en"] .cw-celestial-ring--outer {
      stroke: rgba(200, 168, 74, 0.48);
      stroke-width: 0.85;
    }
    html[lang="en"] .cw-celestial-ring--mid {
      stroke: rgba(200, 168, 74, 0.22);
      stroke-dasharray: 2.2 2.8;
    }
    html[lang="en"] .cw-celestial-cross {
      stroke: rgba(200, 168, 74, 0.12);
      stroke-width: 0.5;
    }
    html[lang="en"] .cw-celestial-tick {
      stroke: rgba(212, 175, 55, 0.55);
      stroke-width: 0.8;
    }
    html[lang="en"] .cw-celestial-stage {
      fill: rgba(232, 220, 186, 0.78);
      font-size: 5.1px;
      font-family: 'Cormorant Garamond', serif;
      pointer-events: none;
    }
    html[lang="en"] .cw-celestial-core {
      fill: rgba(8, 8, 16, 0.9);
      stroke: rgba(212, 175, 55, 0.7);
      stroke-width: 0.9;
      pointer-events: none;
    }
    html[lang="en"] .cw-celestial-hit {
      fill: transparent;
      stroke: none;
      pointer-events: all;
      cursor: pointer;
    }
    html[lang="en"] .cw-celestial-mark-g {
      outline: none;
      cursor: pointer;
    }
    html[lang="en"] .cw-celestial-mark {
      fill: #f2eee4;
      stroke: rgba(255, 248, 230, 0.88);
      stroke-width: 0.85;
      pointer-events: none;
    }
    html[lang="en"] .cw-celestial-mark--primary {
      fill: #d4af37;
      stroke: rgba(255, 228, 160, 0.95);
      stroke-width: 1.2;
      filter: drop-shadow(0 0 1.6px rgba(212, 175, 55, 0.85));
    }
    html[lang="en"] .cw-celestial-map-wrap {
      position: relative;
      display: block;
      width: var(--cw-celestial-ym);
      max-width: 100%;
    }
    html[lang="en"] .cw-celestial--day .cw-celestial-map-wrap {
      width: var(--cw-celestial-day);
    }
    html[lang="en"] .cw-celestial-live-tip {
      position: absolute;
      left: 50%;
      top: 0;
      z-index: 4;
      margin: 0;
      padding: 0.2rem 0.48rem;
      min-height: 0;
      max-width: min(12.5rem, calc(100% - 8px));
      transform: translate(-50%, calc(-100% - 7px));
      background: rgba(8, 8, 16, 0.94);
      border: 1px solid rgba(200, 168, 74, 0.38);
      border-radius: 6px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
      font-size: 0.7rem;
      letter-spacing: 0.03em;
      line-height: 1.35;
      color: #f3e6c2;
      text-align: center;
      white-space: normal;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
    }
    html[lang="en"] .cw-celestial-live-tip.is-on {
      opacity: 1;
      visibility: visible;
    }
    html[lang="en"] .cw-celestial-live-tip.is-below {
      transform: translate(-50%, 8px);
    }
    html[lang="ja"] .cw-ja-ground {
      margin: 0 0 0.65rem;
      padding: 0.55rem 0.7rem;
      border: 1px solid rgba(200, 168, 74, 0.2);
      border-radius: 10px;
      background: linear-gradient(180deg, rgba(200, 168, 74, 0.07), rgba(8, 8, 16, 0.18));
    }
    html[lang="ja"] .cw-ja-ground-val {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.02rem;
      color: #eee4c8;
    }
    html[lang="ja"] .cw-ja-ix {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 0.4rem;
    }
    html[lang="ja"] .cw-ja-ix-tag {
      font-size: 0.68rem;
      letter-spacing: 0.04em;
      color: rgba(232, 220, 186, 0.78);
      border: 1px solid rgba(200, 168, 74, 0.22);
      border-radius: 999px;
      padding: 0.12rem 0.55rem;
    }
    html[lang="ja"] #cw-year.cw-card--period .cw-lower-detail,
    html[lang="ja"] #cw-month.cw-card--period .cw-lower-detail {
      flex: 1 1 auto;
      min-height: var(--cw-ym-reading-min);
      margin-top: 0.15rem;
    }
    html[lang="ja"] #cw-year.cw-card--period .cw-lower-detail--fogged,
    html[lang="ja"] #cw-month.cw-card--period .cw-lower-detail--fogged {
      flex: 1 0 var(--cw-ym-teaser-min);
      min-height: var(--cw-ym-teaser-min);
    }
    html[lang="ja"] .cw-ja-reading-heading {
      margin: 0 0 0.45rem;
      font-family: 'Noto Serif JP', serif;
      font-size: 0.95rem;
      color: #e8d5a3;
      letter-spacing: 0.08em;
      font-weight: 600;
    }
    .cw-deep-reading {
      margin: 0.85rem 0 0.2rem;
      padding-top: 0.7rem;
      border-top: 1px solid rgba(200, 168, 74, 0.18);
    }
    .cw-deep-reading-btn {
      appearance: none;
      background: transparent;
      border: 1px solid rgba(200, 168, 74, 0.38);
      border-radius: 999px;
      color: #e8d5a3;
      cursor: pointer;
      font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
      font-size: 0.78rem;
      letter-spacing: 0.06em;
      padding: 0.28rem 0.85rem;
    }
    .cw-deep-reading-btn:hover,
    .cw-deep-reading-btn:focus-visible {
      border-color: rgba(212, 175, 55, 0.7);
      color: #f3e6c2;
      outline: none;
    }
    .cw-deep-reading-btn[disabled] {
      opacity: 0.65;
      cursor: wait;
    }
    .cw-deep-reading-body {
      margin-top: 0.65rem;
    }
    .cw-deep-reading-body .cw-ja-reading-p,
    .cw-deep-reading-p {
      margin: 0 0 0.65rem;
      font-size: 0.82rem;
      line-height: 1.75;
      color: rgba(236, 230, 214, 0.86);
    }
    html[lang="ja"] .cw-ja-reading-p {
      margin: 0 0 0.65rem;
      font-size: 0.82rem;
      line-height: 1.75;
      color: rgba(236, 230, 214, 0.86);
    }
    html[lang="ja"] .cw-ja-tile-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      margin-top: 0.35rem;
    }
    @media (min-width: 768px) {
      html[lang="ja"] .cw-ja-tile-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }
    html[lang="ja"] .cw-ja-tile {
      padding: 0.42rem 0.3rem 0.38rem;
      border: 1px solid rgba(200, 168, 74, 0.16);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.025);
      text-align: center;
    }
    html[lang="ja"] .cw-ja-tile--primary {
      border-color: rgba(212, 175, 55, 0.55);
      box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
    }
    html[lang="ja"] .cw-ja-tile-role {
      display: block;
      font-size: 0.78rem;
      color: #eee4c8;
    }
    html[lang="ja"] .cw-ja-tile-stage {
      display: block;
      margin-top: 0.12rem;
      font-size: 0.68rem;
      color: rgba(200, 168, 74, 0.82);
    }
    html[lang="ja"] .cw-ja-day-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin: 0.15rem 0 1rem;
    }
    html[lang="ja"] .cw-ja-chip {
      font-family: 'Noto Serif JP', serif;
      font-size: 0.92rem;
      color: #eee6d4;
      padding: 0.28rem 0.7rem;
      border: 1px solid rgba(200, 168, 74, 0.22);
      border-radius: 999px;
      background: rgba(8, 8, 16, 0.28);
    }
    html[lang="ja"] .cw-ja-chip--ganzi {
      letter-spacing: 0.12em;
      color: #f3e6c2;
    }
    html[lang="ja"] .cw-ja-chip--ground em {
      font-style: normal;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      color: rgba(200, 168, 74, 0.72);
      margin-right: 0.35rem;
    }
    html[lang="ja"] .cw-ja-day-body {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem 1.4rem;
      align-items: start;
    }
    @media (min-width: 768px) {
      html[lang="ja"] .cw-ja-day-body {
        grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.25fr);
      }
    }
    html[lang="ja"] .cw-ja-day-copy .cw-ja-reading-p {
      font-size: 0.92rem;
      line-height: 1.85;
    }
    html[lang="ja"] #cw-day.cw-card--ja-flow .cw-ja-tiles {
      margin-top: 1.1rem;
    }

    /* Legacy full-card Year/Month overlay (unused on current VIP/FREE preview path) */
    #cw-year > .vip-lock-overlay,
    #cw-month > .vip-lock-overlay {
      background: rgba(255, 255, 255, 0.08) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Cosmic Weather — 일운 open card: more transparent for fractal bleed */
    #cw-day.cw-card {
      background: rgba(255, 255, 255, 0.012);
    }
    #cw-day .cw-vvip-dossier {
      background:
        radial-gradient(circle at 0 0, rgba(200,168,74,0.08), transparent 32%),
        rgba(3, 3, 12, 0.22);
    }

    #cosmic-push-toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(24px);
      min-width: 280px;
      max-width: 90vw;
      padding: 14px 22px;
      border-radius: 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      text-align: center;
      z-index: 100000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease, transform 0.35s ease;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    }
    #cosmic-push-toast.is-visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    #cosmic-push-toast.is-success {
      background: linear-gradient(135deg, rgba(20, 18, 10, 0.98), rgba(10, 10, 12, 0.98));
      border: 1px solid rgba(255, 215, 0, 0.55);
      color: #FFD700;
    }
    #cosmic-push-toast.is-error {
      background: linear-gradient(135deg, rgba(20, 10, 10, 0.98), rgba(10, 10, 12, 0.98));
      border: 1px solid rgba(239, 68, 68, 0.45);
      color: #fca5a5;
    }
    #cosmic-push-toast.is-info {
      background: rgba(15, 15, 20, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #ddd;
    }

    .cw-period {
      font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
      color: #FFFFFF;
      margin-bottom: 12px;
      line-height: 1.35;
    }
    h3.cw-period {
      margin-top: 0;
      font-family: inherit;
    }
    .cw-composite-wave-note {
      font-size: 0.78rem;
      line-height: 1.45;
      color: rgba(224, 226, 236, 0.72);
      margin: 0 0 12px;
      letter-spacing: 0.02em;
    }
    .cw-pillar-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px; font-weight: 700; line-height: 1.3;
      color: #E0E0E0;
      margin-bottom: 16px;
      min-height: 40px;
    }

    /* Voltage ring using conic-gradient */
    .cw-volt-wrap {
      display: flex; align-items: center; gap: 14px;
      margin-bottom: 16px;
    }
    .cw-volt-ring {
      flex-shrink: 0;
      width: 64px; height: 64px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .cw-volt-inner {
      width: 50px; height: 50px; border-radius: 50%;
      background: var(--bg-deep, #040412);
      display: flex; align-items: center; justify-content: center;
      font-size: 17px; font-weight: 800;
      font-variant-numeric: tabular-nums;
    }
    .cw-volt-info { flex: 1; min-width: 0; }
    .cw-peak-wave {
      font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
      text-transform: uppercase;
      margin-bottom: 3px;
    }
    .cw-peak-stage {
      font-family: 'Cormorant Garamond', serif;
      font-size: 15px; font-weight: 700;
      color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Five wave mini-bars */
    .cw-waves { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 12px; }
    .cw-wave-row { display: grid; grid-template-columns: 80px 1fr 28px; gap: 6px; align-items: center; }
    .cw-wave-lbl { font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cw-wave-track { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
    .cw-wave-bar   { height: 100%; border-radius: 2px; transition: width 0.9s cubic-bezier(0.16,1,0.3,1); }
    .cw-wave-val   { font-size: 8.5px; font-weight: 700; text-align: right; }

    .cw-flow-kicker {
      font-size: 8px;
      font-weight: 600;
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: rgba(224, 226, 236, 0.55);
      margin: 6px 0 2px;
    }
    .cw-flow-primary .cw-flow-kicker:first-child { margin-top: 0; }
    .cw-flow-channels {
      display: grid;
      grid-template-columns: 1fr;
      gap: 4px;
      margin: 6px 0 10px;
    }
    .cw-flow-channel {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: baseline;
      font-size: 10px;
      line-height: 1.35;
      color: rgba(224, 226, 236, 0.78);
    }
    .cw-flow-channel--primary {
      color: #e8d5a3;
      font-weight: 700;
    }
    .cw-flow-channel-role { min-width: 0; }
    .cw-flow-channel-stage { text-align: right; white-space: nowrap; }
    .cw-flow-ground, .cw-flow-ix {
      margin-top: 8px;
      font-size: 10.5px;
      line-height: 1.4;
      color: rgba(224, 226, 236, 0.82);
    }
    .cw-flow-ground-val, .cw-flow-ix-vals { display: inline; }

/* =====================================================================
   Destiny Traffic Light Hero (top-of-page universal hook)
   ===================================================================== */
    .dtl-hero {
      margin-bottom: 1.5rem;
      padding: 1.5rem 1.25rem 1.75rem;
      border: 1px solid rgba(200,168,74,0.28);
      background: linear-gradient(165deg, rgba(14,12,10,0.98) 0%, rgba(6,6,10,0.99) 100%);
      box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,215,0,0.08);
    }
    .dtl-hero-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 1.5rem 1rem;
      color: rgba(243,244,246,0.65);
      font-size: 0.88rem;
    }
    .dtl-hero-content { text-align: center; }
    .dtl-hero-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.1rem, 2.8vw, 1.45rem);
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #F3F4F6;
      margin: 0 0 1.25rem;
      line-height: 1.4;
    }
    .dtl-hero-title em {
      font-style: normal;
      color: #FFD700;
    }
    .dtl-hero-body {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.25rem;
    }
    @media (min-width: 640px) {
      .dtl-hero-body {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
      }
    }
    .dtl-signal-housing {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 12px;
      border-radius: 22px;
      background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
      border: 2px solid rgba(255,255,255,0.1);
      box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.6),
        0 8px 24px rgba(0,0,0,0.45);
      flex-shrink: 0;
    }
    .dtl-lamp {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      opacity: 0.12;
      transition: opacity 0.45s ease, box-shadow 0.45s ease, transform 0.35s ease;
      border: 2px solid rgba(0,0,0,0.5);
    }
    .dtl-lamp--red {
      background: radial-gradient(circle at 35% 30%, #5c2020 0%, #2a0a0a 70%);
    }
    .dtl-lamp--yellow {
      background: radial-gradient(circle at 35% 30%, #5c4a10 0%, #2a2208 70%);
    }
    .dtl-lamp--green {
      background: radial-gradient(circle at 35% 30%, #1a4a28 0%, #0a2214 70%);
    }
    .dtl-lamp.is-active.dtl-lamp--red {
      opacity: 1;
      background: radial-gradient(circle at 32% 28%, #ff6b6b 0%, #dc2626 45%, #991b1b 100%);
      box-shadow:
        0 0 28px rgba(239,68,68,0.85),
        0 0 56px rgba(239,68,68,0.35),
        inset 0 -4px 12px rgba(0,0,0,0.25);
      transform: scale(1.04);
    }
    .dtl-lamp.is-active.dtl-lamp--yellow {
      opacity: 1;
      background: radial-gradient(circle at 32% 28%, #fde047 0%, #eab308 45%, #a16207 100%);
      box-shadow:
        0 0 28px rgba(234,179,8,0.8),
        0 0 56px rgba(234,179,8,0.3),
        inset 0 -4px 12px rgba(0,0,0,0.2);
      transform: scale(1.04);
    }
    .dtl-lamp.is-active.dtl-lamp--green {
      opacity: 1;
      background: radial-gradient(circle at 32% 28%, #4ade80 0%, #22c55e 45%, #15803d 100%);
      box-shadow:
        0 0 28px rgba(34,197,94,0.85),
        0 0 56px rgba(34,197,94,0.35),
        inset 0 -4px 12px rgba(0,0,0,0.2);
      transform: scale(1.04);
    }
    .dtl-hero-status {
      margin: 0;
      max-width: 22rem;
      text-align: center;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      line-height: 1.55;
      color: rgba(243,244,246,0.88);
    }
    @media (min-width: 640px) {
      .dtl-hero-status { text-align: left; }
    }
    .dtl-hero-status.is-green { color: rgba(134,239,172,0.95); }
    .dtl-hero-status.is-red { color: rgba(252,165,165,0.95); }
    .dtl-hero-status.is-yellow { color: rgba(253,224,71,0.92); }

/* =====================================================================
   VVIP Daily Destiny Scanner — merged into #cw-day (no standalone section)
   ===================================================================== */
    .vds-header { text-align: center; margin-bottom: 1.5rem; }
    .vds-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.35rem, 3.2vw, 1.85rem);
      font-weight: 700;
      letter-spacing: 0.06em;
      color: #FFD700;
      margin: 0 0 0.5rem;
      text-shadow: 0 0 24px rgba(255,215,0,0.25);
    }
    .vds-subtitle {
      margin: 0;
      font-size: 0.88rem;
      color: rgba(243,244,246,0.72);
      letter-spacing: 0.04em;
    }
    .vds-meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    @media (min-width: 720px) {
      .vds-meta-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }
    .vds-meta-chip {
      padding: 12px 12px 11px;
      border-radius: 12px;
      border: 1px solid rgba(255, 215, 0, 0.18);
      background: rgba(255, 255, 255, 0.03);
      text-align: center;
    }
    .vds-meta-chip .lbl {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.75);
      margin-bottom: 6px;
    }
    .vds-meta-chip .val {
      display: block;
      font-size: 0.92rem;
      font-weight: 600;
      color: #f3f4f6;
      line-height: 1.35;
      word-break: keep-all;
    }
    .vds-gender-alert {
      margin-top: 0.85rem;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.28);
      background: rgba(255, 215, 0, 0.06);
      color: rgba(243, 244, 246, 0.9);
      font-size: 0.86rem;
      line-height: 1.55;
      text-align: left;
    }
    .vds-gender-alert strong { color: #FFD700; }

    .cw-vvip-dossier {
      margin-top: 18px;
      padding: 18px;
      border: 1px solid rgba(200,168,74,0.18);
      border-radius: 16px;
      background:
        radial-gradient(circle at 0 0, rgba(200,168,74,0.10), transparent 32%),
        rgba(3,3,12,0.42);
      box-shadow: inset 0 0 24px rgba(200,168,74,0.035);
    }
    .cw-vvip-eyebrow {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold-lt);
      margin-bottom: 10px;
    }
    .cw-vvip-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }
    .cw-vvip-meta span {
      padding: 5px 9px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 999px;
      background: rgba(255,255,255,0.035);
      color: rgba(237,233,224,0.76);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .cw-vvip-block {
      padding: 16px 0;
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .cw-vvip-block:first-of-type { border-top-color: rgba(200,168,74,0.18); }
    .cw-vvip-block-title {
      margin-bottom: 12px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px;
      font-weight: 700;
      color: #f0e0a0;
      letter-spacing: 0.04em;
    }
    .cw-vvip-field {
      margin-bottom: 13px;
    }
    .cw-vvip-field:last-child {
      margin-bottom: 0;
    }
    .cw-vvip-label {
      margin-bottom: 5px;
      color: rgba(200,168,74,0.86);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .cw-vvip-copy {
      color: rgba(237,233,224,0.86);
      font-size: 13px;
      line-height: 1.82;
      letter-spacing: -0.01em;
      white-space: pre-wrap;
      word-break: keep-all;
    }

    /* ---- Destiny Vault ---- */

    /* summary sentence */
    .vault-summary {
      font-family: 'Cormorant Garamond', serif;
      font-size: 16px; line-height: 1.75;
      color: rgba(224,209,170,0.80);
      font-style: italic;
      border-left: 2px solid rgba(200,168,74,0.35);
      padding-left: 18px;
      margin-bottom: 32px;
    }

    /* two extreme cards side by side */
    .vault-extremes {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 32px;
    }
    @media (max-width: 560px) { .vault-extremes { grid-template-columns: 1fr; } }

    .vault-extreme-card {
      border-radius: 18px;
      padding: 28px 26px 24px;
      position: relative;
      overflow: hidden;
    }
    .vault-extreme-card.is-peak {
      background: linear-gradient(135deg,
        rgba(200,168,74,0.10) 0%,
        rgba(200,168,74,0.04) 100%);
      border: 1px solid rgba(200,168,74,0.28);
    }
    .vault-extreme-card.is-valley {
      background: linear-gradient(135deg,
        rgba(99,102,241,0.12) 0%,
        rgba(30,30,60,0.08) 100%);
      border: 1px solid rgba(99,102,241,0.28);
    }

    /* ambient glow behind card */
    .vault-extreme-card::before {
      content: '';
      position: absolute;
      inset: 0; border-radius: inherit;
      pointer-events: none;
    }
    .vault-extreme-card.is-peak::before {
      box-shadow: inset 0 0 60px rgba(200,168,74,0.07);
    }
    .vault-extreme-card.is-valley::before {
      box-shadow: inset 0 0 60px rgba(99,102,241,0.08);
    }

    .vault-card-badge {
      display: inline-block;
      font-size: 7.5px; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; padding: 4px 10px;
      border-radius: 20px; margin-bottom: 16px;
    }
    .is-peak .vault-card-badge {
      background: rgba(200,168,74,0.14);
      color: #c8a84a; border: 1px solid rgba(200,168,74,0.25);
    }
    .is-valley .vault-card-badge {
      background: rgba(99,102,241,0.14);
      color: #818cf8; border: 1px solid rgba(99,102,241,0.28);
    }

    .vault-card-wave {
      font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; margin-bottom: 8px;
    }
    .is-peak .vault-card-wave  { color: rgba(200,168,74,0.65); }
    .is-valley .vault-card-wave { color: rgba(130,130,220,0.65); }

    .vault-card-stage {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px; font-weight: 700; line-height: 1.1;
      margin-bottom: 12px;
    }
    .is-peak .vault-card-stage  { color: var(--gold-lt); }
    .is-valley .vault-card-stage { color: #a5b4fc; }

    .vault-card-meta {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 18px;
    }
    .vault-card-volt {
      font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
    }
    .is-peak .vault-card-volt  { color: #c8a84a; }
    .is-valley .vault-card-volt { color: #818cf8; }

    .vault-card-volt-label {
      font-size: 9px; color: rgba(224, 226, 236, 0.78);
      letter-spacing: 0.08em; text-transform: uppercase;
    }

    .vault-card-bar-track {
      height: 5px; border-radius: 3px;
      background: rgba(255,255,255,0.06); overflow: hidden;
    }
    .vault-card-bar-fill {
      height: 100%; border-radius: 3px;
      transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
    }
    .vault-card-bar-fill--peak {
      background: linear-gradient(90deg, #8a6010, #c8a84a);
    }
    .vault-card-bar-fill--valley {
      background: linear-gradient(90deg, #3730a3, #818cf8);
    }

    .month-card {
      border-radius: 8px;
      padding: 20px 10px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .p-numeral--branch {
      font-size: 34px;
    }

    .vault-card-year {
      margin-top: 14px;
      font-size: 10px; color: rgba(200, 204, 220, 0.82); letter-spacing: 0.06em;
    }
    .vault-card-year strong { color: var(--text); font-size: 11px; }

    /* compact reference grid */
    .vault-ref-toggle {
      display: flex; align-items: center; gap: 8px;
      font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
      color: rgba(210, 214, 228, 0.88); cursor: pointer; margin-bottom: 14px;
      background: none; border: none; padding: 0;
    }
    .vault-ref-toggle:hover { color: var(--text); }
    .vault-ref-toggle svg { transition: transform 0.25s; }
    .vault-ref-toggle.open svg { transform: rotate(90deg); }

    .vault-ref-grid {
      display: none; overflow-x: auto;
    }
    .vault-ref-grid.open { display: block; }

    .vault-voltage-legend {
      margin-top: 18px;
      font-size: 10px;
      color: rgba(200, 204, 220, 0.82);
      line-height: 1.7;
      letter-spacing: 0.04em;
    }

    .vault-ref-table {
      width: 100%; border-collapse: collapse;
      font-size: 10px; color: var(--muted);
    }
    .vault-ref-table th {
      padding: 7px 10px; text-align: left;
      font-size: 7.5px; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--muted);
      border-bottom: 1px solid var(--border);
    }
    .vault-ref-table td {
      padding: 8px 10px;
      border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .vault-ref-table tr:last-child td { border-bottom: none; }
    .vault-ref-table .vrt-year { color: var(--gold-lt); font-weight: 600; font-size: 12px; }
    .vault-ref-table .vrt-branch { color: var(--muted); font-size: 9px; }
    .vrt-peak-cell  { color: #c8a84a; font-weight: 600; }
    .vrt-val-cell   { color: #818cf8; font-weight: 600; }

    /* ---- Five Elements ---- */
    .elem-wrap {
      display: grid; grid-template-columns: minmax(330px, 1fr) 1fr;
      gap: 40px; align-items: center;
    }
    @media (max-width: 640px) { .elem-wrap { grid-template-columns: 1fr; } }

    .chart-box {
      position: relative;
      height: 420px;
      min-height: 420px;
      padding: 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.025);
      box-shadow: inset 0 0 14px rgba(167, 139, 250, 0.06);
    }
    .chart-box canvas {
      display: block;
    }

    .elem-bars {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 18px 20px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.02);
      box-shadow: inset 0 0 12px rgba(167, 139, 250, 0.05);
    }
    .ebar { display: grid; grid-template-columns: 100px 1fr 50px; gap: 10px; align-items: center; }
    .ebar-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
    .ebar-track { height: 1.5rem; min-height: 24px; background: rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
    .ebar-fill  { height: 100%; min-width: 0; width: 0; border-radius: 12px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
    .ebar-val   { font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; }

    /* 05X-H2M — compact unique-fact row above Five Elements radar (EN/JA) */
    .elem-lead-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 0 0 18px;
    }
    .elem-lead-item {
      border: 1px solid rgba(212, 175, 55, 0.28);
      border-radius: 10px;
      background: rgba(12, 16, 36, 0.72);
      padding: 8px 10px;
      text-align: center;
      min-width: 0;
    }
    .elem-lead-lbl {
      display: block;
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #D4AF37;
      margin-bottom: 4px;
    }
    .elem-lead-val {
      display: block;
      font-size: 0.88rem;
      color: #f2eadc;
      line-height: 1.35;
      word-break: break-word;
    }
    html[lang="ja"] .elem-lead-lbl { color: #e8c766; }
    html[lang="ja"] .elem-lead-val { color: #f2eadc; }
    @media (max-width: 640px) {
      .elem-lead-summary { grid-template-columns: 1fr; }
    }

    /* ---- Cosmic Body & Health ---- */
    .health-cosmic-section {
      margin-bottom: 22px;
      padding: 34px 38px;
      background: rgba(10, 10, 15, 0.6);
      border: 1px solid #6a0dad;
      border-radius: 15px;
      box-shadow: 0 30px 100px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.03);
      backdrop-filter: blur(22px);
    }
    .health-cosmic-title {
      color: #FF4500;
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 10px;
      letter-spacing: 3px;
    }
    .health-cosmic-sub {
      color: #D1D5DB;
      text-align: center;
      margin-bottom: 36px;
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.6;
      font-style: italic;
    }
    .health-cosmic-body {
      max-width: 650px;
      margin: 0 auto;
      background: transparent;
      padding: 28px 16px 12px;
    }
    .health-cosmic-heading {
      color: #FFD700;
      margin-bottom: 12px;
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-align: left;
    }
    .health-cosmic-caption {
      color: #D1D5DB;
      text-align: center;
      font-size: 0.9rem;
      font-weight: 500;
      line-height: 1.6;
      margin-bottom: 16px;
    }
    .health-radar-wrap {
      position: relative;
      height: 320px;
      max-width: 420px;
      margin: 0 auto 30px;
    }
    .health-radar-wrap canvas {
      display: block;
      width: 100% !important;
      height: 100% !important;
    }
    .health-cosmic-copy {
      color: #E5E7EB;
      font-size: 1.08rem;
      font-weight: 500;
      line-height: 1.75;
      letter-spacing: 0.02em;
      margin-bottom: 1.15em;
    }
    .health-cosmic-symptoms {
      font-style: italic;
      margin-bottom: 24px;
    }
    .health-stage-line {
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(255, 215, 0, 0.06);
      border: 1px solid rgba(255, 215, 0, 0.2);
    }
    .health-hl-critical {
      color: #FF4500;
      font-weight: 700;
    }
    .health-hl-gold {
      color: #FFD700;
      font-weight: 700;
    }
    .health-cosmic-list,
    .mk-prescription-list {
      list-style: none;
      color: #E5E7EB;
      line-height: 1.75;
      margin: 0 0 1.4rem;
      padding: 0;
      font-size: 1.05rem;
      font-weight: 500;
    }
    .health-cosmic-list li,
    .mk-prescription-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 0 0 0.95rem;
      padding: 12px 14px;
      border-radius: 10px;
      background: rgba(212, 175, 55, 0.05);
      border: 1px solid rgba(212, 175, 55, 0.16);
    }
    .health-cosmic-list strong,
    .mk-prescription-list strong {
      color: #F3E6B8;
      font-weight: 700;
    }
    .mk-check {
      color: #7dcea0;
      font-weight: 700;
      flex: 0 0 auto;
    }
    .mk-hl-keyword { color: #D4AF37 !important; font-weight: 700; }
    .mk-hl-remedy { color: #9fd9b0; font-weight: 600; }
    .health-vuln-box {
      margin-top: 18px;
      margin-bottom: 28px;
      background: rgba(52, 16, 35, 0.37);
      border-left: 4px solid #FF4500;
      border-radius: 10px;
      padding: 23px 30px;
    }
    .health-cosmic-alert {
      margin-top: 35px;
      padding: 20px;
      background: rgba(255, 69, 0, 0.1);
      border: 1px solid rgba(255, 69, 0, 0.4);
      border-radius: 8px;
      text-align: center;
    }
    .health-alert-title {
      color: #FF4500;
      font-weight: 700;
      font-size: 1.2rem;
      letter-spacing: 1.5px;
    }

    /* Fractal Health Suite 4-Part (Chapter 6 renew) */
    .ch6-fractal-suite { display: flex; flex-direction: column; gap: 28px; }
    .ch6-fh-header { text-align: center; margin-bottom: 4px; }
    .ch6-fh-radar-title { text-align: center; margin-bottom: 14px; }
    .ch6-fh-part-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
    .ch6-fh-part-num {
      font-family: Cinzel, "Times New Roman", serif;
      font-size: 1.35rem; font-weight: 600; letter-spacing: 0.08em;
      color: #D4AF37; line-height: 1.2; padding-top: 2px;
    }
    .ch6-fh-part-title {
      margin: 0 0 6px; font-family: Cinzel, "Noto Serif KR", serif;
      font-size: 1.15rem; font-weight: 600; color: #f3e6c0; letter-spacing: 0.04em;
    }
    .ch6-fh-part-sub { margin: 0; color: rgba(209, 213, 219, 0.82); font-size: 0.92rem; line-height: 1.65; }
    .ch6-fh-card {
      padding: 22px 20px; border-radius: 16px;
      border: 1px solid rgba(212, 175, 55, 0.28);
      background: linear-gradient(165deg, rgba(36, 24, 48, 0.72), rgba(14, 10, 20, 0.88));
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    }
    .ch6-fh-copy { margin: 0 0 1em; color: #e8e4d8; font-size: 1.02rem; line-height: 1.8; }
    .ch6-fh-copy:last-child { margin-bottom: 0; }
    .ch6-fh-meta { margin: 0 0 0.75em; }
    .ch6-fh-meta-lbl, .ch6-fh-inline-lbl {
      display: inline-block; color: #D4AF37; font-size: 0.78rem;
      letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.35em;
    }
    .ch6-fh-inline-lbl { display: block; margin-bottom: 0.55em; }
    .ch6-fh-organ-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.15em; padding: 0; }
    .ch6-fh-chip {
      padding: 8px 12px; border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.35); background: rgba(212, 175, 55, 0.08);
      color: #f5ecd0; font-size: 0.88rem;
    }
    .ch6-fh-defense { padding-top: 0.35em; border-top: 1px solid rgba(212, 175, 55, 0.18); }
    .ch6-fh-macro-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: stretch; }
    .ch6-fh-macro-card.is-bull { border-color: rgba(80, 200, 120, 0.45); }
    .ch6-fh-macro-card.is-alert { border-color: rgba(220, 120, 80, 0.45); }
    .ch6-fh-year-badge {
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      min-width: 92px; padding: 14px 12px; border-radius: 14px;
      background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(212, 175, 55, 0.4); text-align: center;
    }
    .ch6-fh-year-num { font-family: Cinzel, serif; font-size: 1.55rem; font-weight: 700; color: #D4AF37; }
    .ch6-fh-year-tag {
      margin-top: 6px; font-size: 0.68rem; letter-spacing: 0.14em;
      text-transform: uppercase; color: rgba(243, 230, 192, 0.75);
    }
    .ch6-fh-stage-note { margin: 0.65em 0 0; color: rgba(209, 213, 219, 0.7); font-size: 0.9rem; }
    .ch6-fh-calendar {
      margin: 0 auto; padding: 18px 14px 28px; background: rgba(30, 16, 42, 0.58);
      border-radius: 20px; max-width: 830px; border: 1px solid rgba(212, 175, 55, 0.18);
    }
    .ch6-fh-calendar .month-card.has-micro-hit {
      box-shadow: 0 0 0 1px rgba(220, 120, 80, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
    }
    .ch6-fh-daily-lead { margin-bottom: 1.15em; }
    .ch6-fh-essay-body {
      margin: 0; white-space: pre-line; color: #e8e4d8;
      font-size: 1.02rem; line-height: 1.85; letter-spacing: 0.015em;
    }
    .ch6-fh-innate-essay {
      margin: 1em 0 1.15em; padding-top: 0.85em;
      border-top: 1px solid rgba(212, 175, 55, 0.18);
    }
    @media (max-width: 640px) {
      .ch6-fh-macro-card { grid-template-columns: 1fr; }
      .ch6-fh-year-badge { flex-direction: row; justify-content: space-between; gap: 12px; min-width: 0; }
      .ch6-fh-year-tag { margin-top: 0; }
    }

    .elem-roles-section {
      margin-top: 36px;
      padding-top: 8px;
    }
    .elem-roles-title {
      font-family: 'Cinzel', serif;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold-lt);
      margin: 0 0 10px;
    }
    .elem-teaser-fade-wrap {
      position: relative;
      margin-bottom: 8px;
      padding-bottom: 36px;
      max-height: none;
    }
    .elem-teaser-fade-wrap::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 72px;
      pointer-events: none;
      z-index: 2;
      background: linear-gradient(to bottom, transparent 0%, rgba(8, 6, 16, 0.55) 70%, var(--bg-dark-color) 100%);
    }
    .elem-roles-intro {
      margin: 0 0 14px;
      font-size: 0.92rem;
      line-height: 1.65;
      color: #D1D5DB;
      max-width: 640px;
      padding: 4px 0 0;
    }
    .elem-roles-disclaimer {
      margin: 0 0 22px;
      font-size: 0.82rem;
      line-height: 1.6;
      color: rgba(210, 202, 178, 0.88);
      max-width: 680px;
      padding: 0 0 4px;
    }
    .elem-roles-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .elem-role-item {
      display: grid;
      grid-template-columns: minmax(140px, 200px) 1fr;
      gap: 12px 20px;
      align-items: start;
      padding: 16px 20px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.03);
      border: none;
      box-shadow:
        inset 0 0 10px rgba(167, 139, 250, 0.04),
        0 4px 18px rgba(0, 0, 0, 0.22);
    }
    @media (max-width: 560px) {
      .elem-role-item { grid-template-columns: 1fr; gap: 6px; }
    }
    .elem-role-label {
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      white-space: nowrap;
    }
    .elem-role-marker {
      display: block;
      font-size: 0.78rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.92);
      margin: 0 0 2px;
      line-height: 1.45;
    }
    .elem-role-body {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }
    .elem-role-desc {
      font-size: 0.92rem;
      line-height: 1.65;
      color: #D1D5DB;
      padding: 4px 6px 4px 0;
    }

    /* [HOTFIX EN-only] Long EN role titles overflow the 200px grid column
       (white-space:nowrap) and paint over the description. Stack label → desc
       vertically for English only — KO / JA keep the side-by-side grid. */
    html[lang="en"] .elem-role-item,
    body[data-ui-language="en"] .elem-role-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
      grid-template-columns: none;
      align-items: stretch;
    }
    html[lang="en"] .elem-role-label,
    body[data-ui-language="en"] .elem-role-label {
      display: block;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.4;
      margin: 0;
      max-width: 100%;
    }
    html[lang="en"] .elem-role-desc,
    body[data-ui-language="en"] .elem-role-desc {
      display: block;
      margin: 0;
      padding: 0;
      max-width: 100%;
    }
    .elem-vip-upsell {
      position: relative;
      z-index: 3;
      padding: 28px 28px 26px;
      border-radius: 16px;
      background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, rgba(8, 6, 16, 0.92) 55%);
      border: 1px solid rgba(255, 215, 0, 0.32);
      text-align: center;
      box-shadow:
        0 0 28px rgba(255, 215, 0, 0.14),
        0 0 48px rgba(167, 139, 250, 0.08),
        inset 0 0 22px rgba(255, 215, 0, 0.06);
      animation: elem-vip-glow 4.5s ease-in-out infinite;
    }
    @keyframes elem-vip-glow {
      0%, 100% {
        box-shadow:
          0 0 28px rgba(255, 215, 0, 0.14),
          0 0 48px rgba(167, 139, 250, 0.08),
          inset 0 0 22px rgba(255, 215, 0, 0.06);
        border-color: rgba(255, 215, 0, 0.32);
      }
      50% {
        box-shadow:
          0 0 38px rgba(255, 215, 0, 0.28),
          0 0 64px rgba(255, 215, 0, 0.1),
          inset 0 0 28px rgba(255, 215, 0, 0.1);
        border-color: rgba(255, 215, 0, 0.52);
      }
    }
    .elem-vip-copy {
      margin: 0 0 20px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      line-height: 1.72;
      color: rgba(245, 235, 210, 0.92);
      max-width: 580px;
      margin-left: auto;
      margin-right: auto;
      letter-spacing: 0.02em;
    }
    .elem-vip-copy strong {
      color: #FFD700;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
    }
    .elem-vip-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 15px 32px;
      border: none;
      border-radius: 16px;
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: #0a0a0c;
      background: linear-gradient(135deg, #FFD700, #DAA520);
      box-shadow: 0 10px 28px rgba(255, 215, 0, 0.32);
      transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    }
    .elem-vip-cta:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 14px 36px rgba(255, 215, 0, 0.45);
      filter: brightness(1.08);
    }

    /* RULE_GLOBAL_PAYWALL_TRIGGER — shared clickable VIP unlock CTA */
    .btn-trigger-paywall {
      cursor: pointer !important;
      pointer-events: auto !important;
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
    }
    .btn-trigger-paywall:hover,
    .btn-trigger-paywall:focus-visible {
      transform: scale(1.05);
      filter: brightness(1.1);
      outline: none;
    }
    .btn-trigger-paywall:active {
      transform: scale(0.98);
    }

    /* ---- VIP Checkout Modal (floating popup) ---- */
    .checkout-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 200000;
      display: none;
      justify-content: center;
      align-items: center;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    /* Legacy VVIP paywall shell — must stay hidden until explicit paywall open.
       A13 overlay geometry alone must never paint this over FREE /analyze. */
    #vip-paywall-modal {
      display: none !important;
    }
    body.vip-paywall-open #vip-paywall-modal {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }
    .checkout-modal-overlay.is-open,
    #vipCheckoutModal.is-open {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    /* Planner-only dev shortcut — absolute visibility (cache-proof via !important) */
    .dev-checkout-trigger,
    #devCheckoutTrigger {
      position: fixed !important;
      right: 8px !important;
      bottom: 8px !important;
      z-index: 99999 !important;
      padding: 10px !important;
      font-size: 16px !important;
      font-weight: bold !important;
      font-family: 'DM Sans', monospace, sans-serif !important;
      letter-spacing: 0.04em;
      line-height: 1.2 !important;
      color: white !important;
      background-color: red !important;
      border: 2px solid #fff !important;
      border-radius: 5px !important;
      opacity: 1.0 !important;
      cursor: pointer !important;
      pointer-events: auto !important;
    }
    .dev-checkout-trigger:hover,
    .dev-checkout-trigger:focus-visible,
    #devCheckoutTrigger:hover,
    #devCheckoutTrigger:focus-visible {
      opacity: 1.0 !important;
      background-color: #ff2222 !important;
      outline: none;
    }

    .checkout-tier-grid--trio {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .checkout-modal-box {
      position: relative;
      width: min(92vw, 520px);
      max-height: 90vh;
      overflow-y: auto;
      padding: 40px 32px 34px;
      border-radius: 24px;
      background: var(--cosmic-glass-bg);
      border: none;
      box-shadow:
        0 0 20px var(--cosmic-glow-outer),
        inset 0 0 15px var(--cosmic-glow-inset),
        0 0 40px rgba(255, 215, 0, 0.08),
        0 28px 80px rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(22px) saturate(130%);
      -webkit-backdrop-filter: blur(22px) saturate(130%);
      text-align: center;
    }
    .checkout-modal-close {
      position: sticky;
      top: 8px;
      float: right;
      z-index: 20;
      width: 36px;
      height: 36px;
      margin: 0 0 8px auto;
      padding: 0;
      border: 1px solid rgba(255, 215, 0, 0.35);
      border-radius: 50%;
      background: rgba(10, 10, 14, 0.92);
      color: #F3F4F6;
      font-size: 1.45rem;
      line-height: 1;
      cursor: pointer;
      transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    }
    .checkout-modal-close:hover,
    .checkout-modal-close:focus-visible {
      color: #FFD700;
      background: rgba(255, 215, 0, 0.14);
      border-color: rgba(255, 215, 0, 0.65);
      outline: none;
    }
    .checkout-modal-crown {
      font-size: 2.4rem;
      margin-bottom: 12px;
      filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.45));
    }
    .checkout-modal-title {
      margin: 0 0 26px;
      font-family: 'Cinzel', serif;
      font-size: clamp(1.35rem, 4vw, 1.75rem);
      font-weight: 800;
      letter-spacing: 0.08em;
      line-height: 1.35;
      background: linear-gradient(135deg, #FFE566 0%, #FFD700 45%, #DAA520 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .checkout-modal-benefits {
      list-style: none;
      margin: 0 0 28px;
      padding: 0;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .checkout-modal-benefits li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.03);
      box-shadow: inset 0 0 10px rgba(167, 139, 250, 0.05);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.02rem;
      line-height: 1.45;
      color: rgba(232, 228, 220, 0.92);
    }
    .checkout-benefit-icon {
      flex-shrink: 0;
      color: #FFD700;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .checkout-tier-grid {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin: 0 0 26px;
      text-align: left;
    }
    .checkout-tier-grid.is-tier-focused .checkout-tier-card:not(.is-selected) {
      opacity: 0.6;
      transform: scale(1);
      filter: saturate(0.85);
    }
    .checkout-tier-card {
      position: relative;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 18px 18px 18px 16px;
      border-radius: 22px;
      border: 1px solid transparent;
      background:
        linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.6)) padding-box,
        linear-gradient(135deg, rgba(212, 175, 55, 0.42), rgba(255, 215, 0, 0.1), rgba(184, 134, 11, 0.32)) border-box;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.35);
      cursor: pointer;
      opacity: 1;
      transform: scale(1);
      transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease,
        opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .checkout-tier-card:hover {
      background:
        linear-gradient(rgba(24, 22, 18, 0.72), rgba(20, 20, 20, 0.65)) padding-box,
        linear-gradient(135deg, rgba(255, 215, 0, 0.55), rgba(212, 175, 55, 0.18), rgba(255, 215, 0, 0.38)) border-box;
    }
    .checkout-tier-card.is-selected {
      opacity: 1;
      transform: scale(1.02);
      background:
        linear-gradient(rgba(28, 24, 14, 0.78), rgba(20, 18, 12, 0.68)) padding-box,
        linear-gradient(135deg, rgba(255, 215, 0, 0.85), rgba(212, 175, 55, 0.35), rgba(255, 215, 0, 0.65)) border-box;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 36px rgba(212, 175, 55, 0.38),
        0 12px 40px rgba(0, 0, 0, 0.45);
      z-index: 1;
    }
    .checkout-tier-card--featured {
      background:
        linear-gradient(rgba(22, 20, 12, 0.68), rgba(20, 20, 20, 0.6)) padding-box,
        linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(212, 175, 55, 0.2), rgba(255, 215, 0, 0.42)) border-box;
    }
    .checkout-tier-card--featured.is-selected {
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 44px rgba(255, 215, 0, 0.42),
        0 14px 48px rgba(0, 0, 0, 0.5);
    }
    .checkout-tier-badge {
      position: absolute;
      top: -10px;
      right: 16px;
      padding: 4px 10px;
      border-radius: 999px;
      font-family: 'Cinzel', serif;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #0a0a0c;
      background: linear-gradient(135deg, #FFD700, #DAA520);
      box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
    }
    .checkout-tier-input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      pointer-events: none;
    }
    .checkout-tier-radio {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      margin-top: 2px;
      border-radius: 50%;
      border: 2px solid rgba(255, 215, 0, 0.35);
      background: rgba(0, 0, 0, 0.25);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .checkout-tier-card.is-selected .checkout-tier-radio {
      border-color: #FFD700;
      box-shadow: inset 0 0 0 4px rgba(255, 215, 0, 0.85);
    }
    .checkout-tier-body {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      min-width: 0;
    }
    .checkout-tier-label {
      font-family: 'Cinzel', serif;
      font-size: clamp(0.95rem, 2.2vw, 1.15rem);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #FFFFFF;
    }
    .checkout-tier-price {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.7rem, 4.5vw, 2.15rem);
      font-weight: 800;
      color: #FFFFFF;
      line-height: 1.15;
      text-shadow: 0 0 16px rgba(255, 215, 0, 0.28);
    }
    .checkout-tier-card--featured .checkout-tier-price {
      color: #FFD700;
    }
    .checkout-price-stack {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 2px;
    }
    .checkout-price-was {
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      font-weight: 600;
      color: #888;
      text-decoration: line-through;
      text-decoration-color: #FF1744;
      text-decoration-thickness: 2px;
      letter-spacing: 0.04em;
    }
    .checkout-price-now {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.7rem, 4.5vw, 2.15rem);
      font-weight: 800;
      color: #FFD700;
      line-height: 1.15;
      text-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
    }

    /* ---- Fixed-price display (no comparison / % anchors) ---- */
    .mk-fixed-price,
    .mk-anchor-price {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      width: 100%;
    }
    .mk-fixed-price.mk-anchor-price--checkout,
    .mk-fixed-price.mk-anchor-price--paywall,
    .mk-fixed-price.mk-anchor-price--matrix,
    .mk-anchor-price--checkout,
    .mk-anchor-price--paywall,
    .mk-anchor-price--matrix {
      align-items: center;
      text-align: center;
    }
    .mk-fixed-price-amount {
      font-family: 'Cinzel', serif;
      font-size: 1.55rem;
      font-weight: 700;
      color: #FFD700;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }
    .mk-fixed-price-model {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(226, 209, 179, 0.82);
    }
    .checkout-tier-features {
      list-style: none;
      margin: 10px 0 0;
      padding: 0;
      text-align: left;
      width: 100%;
    }
    .checkout-tier-features li {
      position: relative;
      padding: 4px 0 4px 16px;
      font-size: 0.78rem;
      line-height: 1.45;
      color: #F3F4F6;
    }
    .checkout-tier-card:not(.is-selected) {
      opacity: 0.92;
    }
    .checkout-tier-card:not(.is-selected) .checkout-tier-label {
      color: #FFFFFF;
    }
    .checkout-cancel-note {
      margin: 12px 0 0;
      font-size: 0.82rem;
      line-height: 1.4;
      color: #E5E7EB;
    }
    .checkout-tier-features li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #D4AF37;
      font-size: 0.65rem;
    }
    .mk-anchor-price-row,
    .mk-anchor-was,
    .mk-anchor-off-badge {
      display: none !important;
    }
    .mk-anchor-now {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.75rem, 5vw, 2.35rem);
      font-weight: 900;
      line-height: 1.1;
      color: #FFD700;
      text-shadow:
        0 0 12px rgba(255, 215, 0, 0.55),
        0 0 28px rgba(255, 215, 0, 0.28);
      letter-spacing: 0.02em;
    }
    .mk-anchor-price--paywall .mk-anchor-now {
      font-size: clamp(1.55rem, 4vw, 2rem);
    }
    .premium-tier-price-wrap {
      margin: 6px 0 10px;
      min-height: 4.5rem;
    }
    .premium-tier-price-wrap .mk-anchor-now {
      font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    }

    .checkout-discount-ribbon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 0 14px;
      padding: 7px 14px;
      border-radius: 999px;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #0a0a0c;
      background: linear-gradient(135deg, #FFD700, #FF8C00);
      box-shadow: 0 0 24px rgba(255, 140, 0, 0.35);
    }
    .checkout-discount-sub {
      margin: 0 0 22px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      line-height: 1.45;
      color: #F3F4F6;
    }
    .checkout-pay-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 0 0 14px;
    }
    @media (max-width: 520px) {
      .checkout-pay-grid { grid-template-columns: 1fr; }
    }
    .checkout-pay-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255, 215, 0, 0.35);
      text-decoration: none;
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #FFFFFF;
      background: rgba(255, 255, 255, 0.05);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .checkout-pay-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(255, 215, 0, 0.7);
      box-shadow: 0 0 22px rgba(255, 215, 0, 0.22);
    }
    .checkout-pay-btn--stripe {
      background: linear-gradient(135deg, rgba(99, 91, 255, 0.85), rgba(99, 91, 255, 0.55));
    }
    .checkout-pay-btn--paypal {
      background: linear-gradient(135deg, rgba(0, 112, 186, 0.9), rgba(0, 156, 222, 0.65));
    }
    .checkout-tier-desc {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.02rem;
      line-height: 1.45;
      color: #F3F4F6;
      margin-top: 2px;
    }
    .checkout-tier-bullet {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.92rem;
      font-weight: 600;
      color: #F9FAFB;
      letter-spacing: 0.02em;
    }
    .checkout-tier-bullet::before {
      content: '';
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(255, 215, 0, 0.55);
      flex-shrink: 0;
    }

    .checkout-modal-proceed {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin: 8px 0 0;
      padding: 18px 20px;
      border-radius: 16px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      text-decoration: none;
      text-align: center;
      font-family: 'Cinzel', serif;
      font-size: clamp(0.95rem, 2.4vw, 1.1rem);
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #0a0a0c;
      background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #FFD700 100%);
      box-shadow:
        0 10px 32px rgba(255, 215, 0, 0.28),
        0 0 24px rgba(212, 175, 55, 0.22);
      transition: transform 0.22s ease, box-shadow 0.22s ease;
      cursor: pointer;
    }
    .checkout-modal-proceed--solo {
      margin-top: 4px;
    }
    .checkout-modal-proceed:hover {
      transform: translateY(-2px);
      box-shadow:
        0 14px 40px rgba(255, 215, 0, 0.38),
        0 0 32px rgba(212, 175, 55, 0.32);
    }
    .checkout-modal-trust {
      margin: 18px 0 0;
      font-size: 0.76rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(160, 160, 170, 0.85);
    }

    /* ---- Daily Cosmic Ritual ---- */
    .cosmic-ritual-card {
      position: relative;
      overflow: hidden;
      margin-bottom: 26px;
      padding: 28px 32px 26px;
      border-radius: 24px;
    }
    .cosmic-ritual-card.is-claiming {
      animation: cosmic-ritual-pulse 0.85s ease-out;
    }
    @keyframes cosmic-ritual-pulse {
      0% { box-shadow: 0 0 20px var(--cosmic-glow-outer), inset 0 0 15px var(--cosmic-glow-inset); }
      40% { box-shadow: 0 0 36px rgba(255, 215, 0, 0.35), inset 0 0 28px rgba(255, 215, 0, 0.12); }
      100% { box-shadow: 0 0 20px var(--cosmic-glow-outer), inset 0 0 15px var(--cosmic-glow-inset); }
    }
    .cosmic-ritual-card::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    }
    .cosmic-ritual-header {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    .cosmic-ritual-star {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      font-size: 1.1rem;
      color: #FFD700;
      background: rgba(255, 215, 0, 0.1);
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
      animation: cosmic-star-glow 3s ease-in-out infinite;
    }
    @keyframes cosmic-star-glow {
      0%, 100% { box-shadow: 0 0 14px rgba(255, 215, 0, 0.28); transform: scale(1); }
      50% { box-shadow: 0 0 26px rgba(255, 215, 0, 0.55); transform: scale(1.06); }
    }
    .cosmic-ritual-title {
      margin: 0;
      font-family: 'Cinzel', serif;
      font-size: clamp(1.05rem, 2.8vw, 1.35rem);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #FFD700;
      text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    }
    .cosmic-ritual-insight {
      position: relative;
      margin: 0 0 22px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.12rem;
      font-style: italic;
      line-height: 1.65;
      color: rgba(232, 225, 210, 0.88);
      max-width: 62ch;
    }
    /* 05X-F1D-2V-B — cycle label + count directly under card title */
    .checkin-cycle-status-head {
      position: relative;
      margin: 0 0 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 215, 0, 0.14);
    }
    .checkin-cycle-status-head .checkin-cycle-label {
      margin: 0 0 0.35rem;
    }
    .checkin-cycle-status-head .karma-fragment-label {
      margin: 0;
    }
    .karma-fragment-tracker {
      position: relative;
      margin-bottom: 16px;
    }
    .karma-fragment-label {
      margin: 0 0 12px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      letter-spacing: 0.04em;
      color: rgba(210, 205, 195, 0.82);
    }
    .karma-fragment-label strong {
      color: #FFD700;
      font-weight: 700;
      font-size: 1rem;
    }
    .karma-progress-track {
      position: relative;
      height: 12px;
      margin-right: 52px;
      margin-bottom: 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
      overflow: visible;
    }
    .karma-progress-fill {
      height: 100%;
      min-width: 4px;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(167, 139, 250, 0.65), #FFD700);
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
      transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }
    .karma-progress-milestone {
      position: absolute;
      top: 50%;
      right: -52px;
      transform: translateY(-50%);
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      min-width: 120px;
    }
    .karma-progress-milestone.is-cycle-complete {
      display: flex;
    }
    .karma-progress-milestone.is-unlocked {
      cursor: default;
    }
    .karma-progress-milestone.is-unlocked .karma-milestone-icon {
      filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.85));
    }
    .karma-milestone-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 1.05rem;
      background: rgba(12, 10, 20, 0.95);
      border: 1px solid rgba(255, 215, 0, 0.45);
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.28);
    }
    .karma-milestone-caption {
      font-family: 'Cinzel', serif;
      font-size: 0.52rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      line-height: 1.35;
      color: rgba(255, 215, 0, 0.72);
      max-width: 110px;
    }
    .cosmic-ritual-claim-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 26px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      border-radius: 16px;
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #0a0a0c;
      background: linear-gradient(135deg, #FFE566, #FFD700);
      box-shadow: 0 0 22px rgba(255, 215, 0, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }
    .cosmic-ritual-claim-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 0 32px rgba(255, 215, 0, 0.42);
    }
    .cosmic-ritual-claim-btn:disabled {
      cursor: default;
      opacity: 0.72;
      color: rgba(240, 235, 220, 0.92);
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 215, 0, 0.22);
      box-shadow: none;
    }
    .cosmic-ritual-spark {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      border-radius: inherit;
    }
    .cosmic-ritual-spark::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 120%;
      height: 120%;
      transform: translate(-50%, -50%) scale(0.2);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 215, 0, 0.45) 0%, transparent 65%);
      animation: cosmic-spark-burst 0.75s ease-out forwards;
    }
    @keyframes cosmic-spark-burst {
      to { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    }
  /* 05X-F1B-1 — Flow Archive + milestone rail */
    .checkin-archive-hint,
    .checkin-archive-unlocked {
      font-size: 0.88rem;
      line-height: 1.5;
      color: rgba(220, 214, 196, 0.88);
      margin: 0.35rem 0 0.65rem;
    }
    .checkin-archive-unlocked {
      color: #e8d48a;
      font-weight: 600;
      letter-spacing: 0.04em;
    }
    .checkin-milestone-rail {
      list-style: none;
      margin: 0 0 0.65rem;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem 1rem;
    }
    .checkin-milestone-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.78rem;
      color: rgba(210, 205, 190, 0.9);
      padding: 0.15rem 0;
    }
    .checkin-milestone-item.is-locked {
      color: rgba(170, 165, 150, 0.78);
    }
    .checkin-milestone-item.is-reached {
      color: rgba(220, 210, 185, 0.95);
    }
    .checkin-milestone-item.is-unlocked {
      color: #e8d48a;
    }
    .checkin-milestone-item.is-complete {
      color: #ffd700;
    }
    .checkin-milestone-mark {
      color: #d4af37;
      font-weight: 700;
      min-width: 1.1rem;
      font-size: 0.72rem;
    }
    .checkin-milestone-item.is-locked .checkin-milestone-mark {
      color: rgba(180, 175, 160, 0.85);
    }
    /* 05X-F1D-2 — Recurring cycle label + Flow History */
    .checkin-cycle-label {
      margin: 0 0 0.35rem;
      font-family: 'Cinzel', serif;
      font-size: 0.92rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #e8d48a;
      font-weight: 600;
      min-height: 1.2em;
    }
    .checkin-cycle-label:empty::before {
      content: '\00a0';
      visibility: hidden;
    }
    /* Milestone rail supersedes redundant unlock hint lines */
    .karma-fragment-tracker .checkin-archive-hint,
    .karma-fragment-tracker .checkin-review-hint,
    .karma-fragment-tracker .checkin-personal-review-hint {
      display: none !important;
    }
    .checkin-cycle-complete-badge,
    .checkin-next-cycle-ready {
      margin: 0 0 0.5rem;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      color: rgba(232, 212, 138, 0.95);
      line-height: 1.45;
    }
    .checkin-legacy-unavailable {
      margin: 0 0 1rem;
      padding: 0.85rem 1rem;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.28);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(220, 214, 196, 0.92);
      font-size: 0.9rem;
      line-height: 1.55;
    }
    .cosmic-ritual-history-btn {
      display: block;
      width: 100%;
      margin-top: 0.65rem;
      padding: 11px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.35);
      background: transparent;
      color: rgba(232, 220, 190, 0.92);
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    .cosmic-ritual-history-btn:hover {
      background: rgba(255, 215, 0, 0.08);
      box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
    }
    .flow-history-cycle-card {
      border: 1px solid rgba(255, 215, 0, 0.28);
      border-radius: 12px;
      padding: 14px 14px 12px;
      margin-bottom: 12px;
      background: rgba(255, 255, 255, 0.03);
    }
    .flow-history-cycle-title {
      font-family: 'Cinzel', serif;
      color: #ffd700;
      font-size: 0.95rem;
      letter-spacing: 0.08em;
      margin-bottom: 0.25rem;
    }
    .flow-history-cycle-status {
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(200, 190, 165, 0.9);
      margin-bottom: 0.35rem;
    }
    .flow-history-cycle-count {
      font-size: 0.88rem;
      color: rgba(230, 225, 210, 0.92);
      margin-bottom: 0.35rem;
    }
    .flow-history-cycle-dates {
      font-size: 0.78rem;
      color: rgba(180, 175, 160, 0.88);
      margin-bottom: 0.65rem;
      line-height: 1.4;
      word-break: break-word;
    }
    .flow-history-cycle-actions {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
    .flow-history-cycle-actions .flow-history-action-btn {
      width: 100%;
      margin-top: 0;
      font-size: 0.74rem;
      padding: 10px 12px;
    }
    .cosmic-ritual-archive-btn.is-locked {
      cursor: not-allowed;
      opacity: 0.62;
      color: rgba(200, 194, 180, 0.82);
      border-color: rgba(255, 215, 0, 0.18);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-archive-btn.is-locked:hover {
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-archive-btn.is-active {
      opacity: 1;
    }
    .cosmic-ritual-archive-btn {
      display: block;
      width: 100%;
      margin-top: 0.65rem;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      background: rgba(255, 215, 0, 0.08);
      color: #f3e6b8;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    .cosmic-ritual-archive-btn:hover {
      background: rgba(255, 215, 0, 0.14);
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
    }
    .cosmic-ritual-review-btn.is-locked {
      cursor: not-allowed;
      opacity: 0.62;
      color: rgba(200, 194, 180, 0.82);
      border-color: rgba(255, 215, 0, 0.18);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-review-btn.is-locked:hover {
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-review-btn.is-active {
      opacity: 1;
    }
    .cosmic-ritual-review-btn {
      display: block;
      width: 100%;
      margin-top: 0.65rem;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      background: rgba(255, 215, 0, 0.08);
      color: #f3e6b8;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    .cosmic-ritual-review-btn:hover:not(:disabled):not(.is-locked) {
      background: rgba(255, 215, 0, 0.14);
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
    }
    .cosmic-ritual-personal-review-btn.is-locked {
      cursor: not-allowed;
      opacity: 0.62;
      color: rgba(200, 194, 180, 0.82);
      border-color: rgba(255, 215, 0, 0.18);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-personal-review-btn.is-locked:hover {
      background: rgba(255, 255, 255, 0.04);
      box-shadow: none;
    }
    .cosmic-ritual-personal-review-btn.is-active {
      opacity: 1;
    }
    .cosmic-ritual-personal-review-btn {
      display: block;
      width: 100%;
      margin-top: 0.65rem;
      padding: 12px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      background: rgba(255, 215, 0, 0.08);
      color: #f3e6b8;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    .cosmic-ritual-personal-review-btn:hover:not(:disabled):not(.is-locked) {
      background: rgba(255, 215, 0, 0.14);
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
    }
    .cosmic-ritual-personal-review-btn:focus-visible {
      outline: 2px solid rgba(255, 215, 0, 0.65);
      outline-offset: 2px;
    }
    .cosmic-ritual-archive-btn:focus-visible,
    .cosmic-ritual-review-btn:focus-visible {
      outline: 2px solid rgba(255, 215, 0, 0.65);
      outline-offset: 2px;
    }
    .flow-archive-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .flow-archive-entry {
      border: 1px solid rgba(255, 215, 0, 0.18);
      border-radius: 10px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.03);
    }
    .flow-archive-date {
      font-family: 'Cinzel', serif;
      color: #ffd700;
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      margin-bottom: 6px;
    }
    .flow-archive-line {
      color: rgba(230, 228, 220, 0.92);
      font-size: 0.9rem;
      line-height: 1.55;
    }
    .flow-archive-line.muted {
      color: rgba(180, 178, 170, 0.85);
      font-size: 0.85rem;
    }
    @media (max-width: 640px) {
      .cosmic-ritual-card { padding: 22px 20px 20px; }
      .karma-progress-milestone { right: -2px; min-width: 96px; }
      .karma-milestone-caption { font-size: 0.48rem; max-width: 90px; }
    }

    /* ---- Day Master ---- */
    .dm-wrap { display: flex; gap: 32px; align-items: flex-start; }
    @media (max-width: 560px) { .dm-wrap { flex-direction: column; align-items: center; text-align: center; } }

    /* The main hero visual: large Roman numeral in a circular medallion */
    .dm-medallion {
      flex-shrink: 0;
      width: 100px; height: 100px;
      border-radius: 50%;
      border: 2px solid;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .dm-medallion::before {
      content: '';
      position: absolute; inset: 6px;
      border-radius: 50%;
      border: 1px solid;
      opacity: 0.3;
      border-color: inherit;
    }
    .dm-numeral {
      font-family: 'Cormorant Garamond', serif;
      font-size: 44px; font-weight: 300; line-height: 1;
      filter: drop-shadow(0 0 16px currentColor);
    }

    .dm-content { min-width: 0; }
    .dm-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .dm-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; margin-bottom: 5px; }
    .dm-meta { font-size: 11px; color: var(--muted); letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 13px; }
    .dm-desc { font-size: 14px; line-height: 1.74; color: var(--soft); max-width: 54ch; }

    .stage-pill {
      display: inline-flex; align-items: center; gap: 10px;
      margin-top: 22px; padding: 10px 22px;
      background: rgba(200,168,74,0.07);
      border: 1px solid rgba(200,168,74,0.20);
      border-radius: 50px;
    }
    .stage-name  { font-size: 12px; font-weight: 600; color: var(--gold-lt); }
    .stage-dot   { color: var(--muted); }
    .stage-score { font-size: 11px; color: var(--muted); }

    /* ---- Narrative ---- */
    .narrative-body { line-height: 1.86; color: var(--soft); }
    .narrative-body h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px; font-weight: 600;
      color: var(--gold-lt);
      margin: 36px 0 13px;
      padding-bottom: 11px;
      border-bottom: 1px solid rgba(200,168,74,0.13);
      letter-spacing: 0.03em;
    }
    .narrative-body h2:first-child { margin-top: 0; }
    .narrative-body p { font-size: 14.5px; margin-bottom: 14px; max-width: 74ch; }
    .narrative-body strong { color: var(--text); font-weight: 600; }
    .narrative-body em     { color: var(--muted); font-style: italic; }
    .narrative-body hr     { border: none; border-top: 1px solid rgba(200,168,74,0.10); margin: 28px 0; }

    /* ---- Premium Analysis Container (result.html) ---- */
    .premium-analysis-container {
      display: block !important;
      visibility: visible !important;
      position: relative;
      padding: 30px 20px;
      margin: 20px 0;
      background: rgba(15, 15, 15, 0.8);
      border: 1px solid rgba(255, 215, 0, 0.3);
      border-radius: 12px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    }
    .premium-analysis-title {
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 1.3rem;
      text-align: left;
      margin: 0 0 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 215, 0, 0.3);
      letter-spacing: 0.06em;
    }
    .premium-analysis-locked-zone {
      position: relative;
    }
    .premium-chapters-wrapper {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .premium-analysis-container .chapter-wrapper {
      border: 1px solid #444;
      padding: 20px;
      margin: 10px 0;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.35);
    }
    .premium-analysis-container .chapter-title {
      margin: 0 0 12px;
      font-family: 'Cinzel', serif;
      font-size: 1.05rem;
      font-weight: 600;
      color: #FFD700;
      letter-spacing: 0.04em;
    }
    .premium-analysis-container .chapter-title--vip {
      margin-bottom: 0;
    }
    .premium-analysis-container .chapter-reading-link {
      color: #FFD700;
      text-decoration: none;
      transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    .premium-analysis-container .chapter-reading-link:hover {
      color: #FFE566;
      text-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
    }
    .premium-analysis-container .teaser-text {
      height: 3em;
      overflow: hidden;
      margin: 0 0 14px;
      color: #ccc;
      font-size: 0.95rem;
      line-height: 1.5;
      mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      filter: blur(2px);
    }
    .premium-analysis-container .chapter-unlock-btn {
      display: inline-block;
      background: linear-gradient(45deg, #FFD700, #FFA500);
      color: #000;
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
      padding: 10px 22px;
      border-radius: 8px;
      text-decoration: none;
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .premium-analysis-container .chapter-unlock-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
    }
    .premium-analysis-container .chapter-accordion {
      display: block !important;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid rgba(255, 215, 0, 0.12);
      background: rgba(0, 0, 0, 0.45);
    }
    .premium-analysis-container .chapter-accordion-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0;
      padding: 14px 16px;
      font-family: 'Cinzel', serif;
      font-size: 1.05rem;
      font-weight: 600;
      color: #FFD700;
      letter-spacing: 0.04em;
      background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      cursor: default;
      text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
    }
    .premium-analysis-container .chapter-accordion-title {
      flex: 1;
      min-width: 0;
    }
    .premium-analysis-container .chapter-accordion-chevron {
      flex-shrink: 0;
      color: #FFD700;
      font-size: 0.85rem;
      opacity: 0.85;
    }
    .premium-analysis-container .chapter-accordion-body {
      padding: 10px 16px 14px;
      background: rgba(0, 0, 0, 0.35);
    }
    .premium-analysis-container .chapter-accordion-placeholder {
      margin: 0;
      color: #bbb;
      font-size: 0.92rem;
      line-height: 1.6;
      font-style: italic;
    }
    .premium-analysis-container .premium-vip-lock-overlay {
      position: absolute;
      inset: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.25) 0%,
        rgba(10, 10, 15, 0.62) 42%,
        rgba(10, 10, 15, 0.82) 100%
      );
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      pointer-events: none;
    }
    .premium-analysis-container.is-unlocked .premium-vip-lock-overlay {
      display: none;
    }
    .premium-analysis-container .premium-vip-lock-cta {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      pointer-events: auto;
    }
    .premium-analysis-container .premium-unlock-btn {
      background: linear-gradient(45deg, #FFD700, #FFA500);
      color: #000;
      font-family: 'Cinzel', serif;
      font-weight: 700;
      font-size: 1.05rem;
      letter-spacing: 0.06em;
      padding: 15px 35px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .premium-analysis-container .premium-unlock-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 32px rgba(255, 215, 0, 0.6);
    }
    .premium-analysis-container .premium-unlock-sub {
      margin: 14px 0 0;
      max-width: 320px;
      color: #bbb;
      font-size: 0.92rem;
      font-style: italic;
      line-height: 1.5;
    }

    /* ---- Premium Analysis Accordion ---- */
    .premium-analysis-section {
      display: block !important;
      visibility: visible !important;
    }
    .narrative-accordion {
      display: flex !important;
      flex-direction: column;
      gap: 10px;
      visibility: visible !important;
      position: relative;
      z-index: 1;
    }
    .narrative-chapter {
      border-radius: 12px;
      overflow: visible;
      background: rgba(8, 8, 14, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.06);
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .narrative-chapter-header {
      display: flex !important;
      visibility: visible !important;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 20px;
      border: none;
      background: rgba(12, 10, 22, 0.55);
      backdrop-filter: blur(10px);
      cursor: pointer;
      text-align: left;
      transition: background 0.25s ease, border-color 0.25s ease;
    }
    .narrative-teaser-wrap.is-unlocked .narrative-chapter:hover,
    .narrative-teaser-wrap.is-unlocked .narrative-chapter.is-open {
      border-color: rgba(255, 215, 0, 0.22);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .narrative-chapter-panel {
      display: block !important;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .narrative-chapter.is-open .narrative-chapter-panel {
      max-height: 16000px;
    }
    .narrative-chapter-placeholder {
      color: var(--muted);
      font-style: italic;
      font-size: 14px;
      padding: 4px 0 8px;
    }
    .narrative-teaser-wrap.is-unlocked .narrative-chapter-header:hover {
      background: rgba(255, 215, 0, 0.06);
    }
    .narrative-chapter-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--gold-lt, #FFD700);
      letter-spacing: 0.04em;
    }
    .narrative-chapter-icon {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 1px solid rgba(255, 215, 0, 0.35);
      color: #FFD700;
      font-size: 1rem;
      font-weight: 700;
      line-height: 1;
      transition: transform 0.35s ease, background 0.25s ease;
    }
    .narrative-chapter-icon::before {
      content: '+';
    }
    .narrative-chapter.is-open .narrative-chapter-icon {
      background: rgba(255, 215, 0, 0.12);
    }
    .narrative-chapter.is-open .narrative-chapter-icon::before {
      content: '▼';
      font-size: 0.72rem;
    }
    .narrative-chapter-body {
      padding: 8px 20px 22px;
    }
    .narrative-chapter-body h2 {
      display: none;
    }
    .narrative-empty {
      color: var(--muted);
      font-style: italic;
      padding: 12px 0;
    }

    /* ---- Premium Analysis Free Tier Teaser ---- */
    .premium-analysis-section .narrative-teaser-wrap {
      position: relative;
      border-radius: 12px;
      min-height: 480px;
    }
    .narrative-teaser-wrap:not(.is-unlocked) .narrative-chapter-body p {
      max-height: 85px;
      overflow: hidden;
      position: relative;
    }
    .narrative-teaser-wrap:not(.is-unlocked) .narrative-chapter-body p::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 52px;
      background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0) 0%,
        rgba(15, 15, 15, 0.82) 55%,
        rgba(15, 15, 15, 1) 100%
      );
      pointer-events: none;
    }
    .narrative-lock-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 0 20px 28px;
      background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0) 0%,
        rgba(15, 15, 15, 0.15) 25%,
        rgba(15, 15, 15, 0.55) 50%,
        rgba(15, 15, 15, 0.88) 72%,
        rgba(15, 15, 15, 0.98) 100%
      );
      pointer-events: none;
    }
    .narrative-teaser-wrap.is-unlocked .narrative-lock-overlay {
      display: none;
    }
    .narrative-lock-cta {
      pointer-events: auto;
      text-align: center;
      max-width: 420px;
      padding: 8px 12px;
    }
    .narrative-vip-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px 32px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      border-radius: 12px;
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      color: #0a0a0c;
      background: linear-gradient(90deg, #FFD700, #FF8C00);
      box-shadow:
        0 0 24px rgba(255, 215, 0, 0.35),
        0 12px 32px rgba(255, 140, 0, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      animation: narrative-vip-glow 2.4s ease-in-out infinite;
    }
    .narrative-vip-btn:hover {
      transform: translateY(-2px);
      box-shadow:
        0 0 32px rgba(255, 215, 0, 0.5),
        0 16px 38px rgba(255, 140, 0, 0.38);
    }
    @keyframes narrative-vip-glow {
      0%, 100% {
        box-shadow:
          0 0 20px rgba(255, 215, 0, 0.28),
          0 12px 28px rgba(255, 140, 0, 0.25);
      }
      50% {
        box-shadow:
          0 0 36px rgba(255, 215, 0, 0.48),
          0 14px 34px rgba(255, 140, 0, 0.38);
      }
    }
    .narrative-vip-sub {
      margin: 14px 0 0;
      font-size: 0.88rem;
      line-height: 1.55;
      color: rgba(240, 230, 210, 0.78);
      font-style: italic;
      letter-spacing: 0.02em;
    }

    /* ---- Destiny Dashboard (asymmetric grid v2) ---- */
    .destiny-dashboard-grid,
    .destiny-dashboard-grid--asymmetric {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "radar profile_top"
        "radar profile_bottom"
        "full_width full_width";
      gap: 20px;
      margin: 30px 0;
      align-items: stretch;
    }
    @media (max-width: 900px) {
      .destiny-dashboard-grid,
      .destiny-dashboard-grid--asymmetric {
        grid-template-columns: 1fr;
        grid-template-areas:
          "radar"
          "profile_top"
          "profile_bottom"
          "full_width";
      }
    }
    .destiny-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      justify-content: flex-start;
      background: rgba(15, 15, 20, 0.65);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 215, 0, 0.15);
      border-radius: 16px;
      padding: 25px;
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
      transition: transform 0.3s ease, border-color 0.3s ease;
    }
    .destiny-card--radar {
      grid-area: radar;
      align-self: stretch;
    }
    .destiny-card--profile-top {
      grid-area: profile_top;
    }
    .destiny-card--profile-bottom {
      grid-area: profile_bottom;
    }
    .destiny-card--full {
      grid-area: full_width;
      padding: 28px 30px;
    }
    .destiny-card.destiny-card--stretch {
      display: flex;
      flex-direction: column;
      height: 100%;
      align-self: stretch;
    }
    .destiny-card:hover {
      transform: translateY(-3px);
      border-color: rgba(255, 215, 0, 0.4);
    }
    .destiny-card .card-title {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: 1.15rem;
      margin-bottom: 15px;
      border-bottom: 1px solid rgba(255, 215, 0, 0.2);
      padding-bottom: 10px;
      flex: 0 0 auto;
    }
    .destiny-card .card-title i {
      margin-right: 8px;
      opacity: 0.85;
    }
    .badge-container {
      margin-bottom: 14px;
      flex: 0 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .destiny-badge {
      display: inline-block;
      padding: 5px 12px;
      margin: 0;
      border: 1px solid #FFD700;
      color: #FFD700;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: bold;
      letter-spacing: 1px;
      background: rgba(255, 215, 0, 0.06);
    }
    .destiny-highlight {
      color: #FFD700;
      font-weight: bold;
      text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
    .destiny-card .card-summary {
      color: #E0E0E0;
      font-size: 1rem;
      line-height: 1.7;
      margin: 0;
      flex: 1 1 auto;
    }
    .destiny-card .card-summary-ext {
      margin-top: auto;
      padding-top: 14px;
      font-size: 0.95rem;
      line-height: 1.75;
      color: rgba(224, 224, 224, 0.88);
      flex: 0 0 auto;
    }
    .destiny-card.chart-card .chart-container {
      position: relative;
      height: min(420px, 48vh);
      min-height: 280px;
      width: 100%;
      margin-bottom: 16px;
      flex: 1 1 auto;
    }
    .destiny-card .badge-container {
      flex: 0 0 auto;
    }
    .destiny-full-panels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px 36px;
      height: 100%;
    }
    .destiny-full-panel {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      padding: 4px 0;
    }
    .destiny-full-panel + .destiny-full-panel {
      border-left: 1px solid rgba(255, 215, 0, 0.12);
      padding-left: 28px;
    }
    @media (max-width: 900px) {
      .destiny-full-panels {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .destiny-full-panel + .destiny-full-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 215, 0, 0.12);
        padding-left: 0;
        padding-top: 24px;
      }
      .destiny-card.chart-card .chart-container {
        height: 300px;
        min-height: 260px;
        flex: 0 0 auto;
      }
    }

    /* ---- Synastry Matrix Scanner (PRO) ---- */
    .synergy-scanner-section {
      margin-bottom: 22px;
    }
    .synergy-scanner-section .premium-sub {
      text-align: left;
      color: var(--soft);
      margin-bottom: 24px;
      font-size: 0.95rem;
      line-height: 1.65;
      text-shadow: 0 2px 6px rgba(0,0,0,0.90);
    }
    .synergy-inner {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
    }
    .synergy-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px 20px;
    }
    @media (max-width: 720px) {
      .synergy-form-grid { grid-template-columns: 1fr; }
    }
    .synergy-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .synergy-field.is-wide,
    .synergy-field-wide { grid-column: 1 / -1; }
    .synergy-label {
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255, 215, 0, 0.82);
    }
    .synergy-input-area {
      display: flex;
      flex-direction: column;
      gap: 22px;
    }
    .premium-input,
    .premium-select {
      background: rgba(0, 0, 0, 0.55);
      border: 1px solid rgba(255, 215, 0, 0.22);
      color: #fff;
      padding: 13px 16px;
      border-radius: 10px;
      font-size: 0.95rem;
      width: 100%;
      font-family: 'DM Sans', sans-serif;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .premium-select {
      appearance: none;
      cursor: pointer;
      background-image: linear-gradient(45deg, transparent 50%, #FFD700 50%), linear-gradient(135deg, #FFD700 50%, transparent 50%);
      background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 36px;
    }
    .premium-input:focus,
    .premium-select:focus {
      outline: none;
      border-color: #FFD700;
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.18);
    }
    .premium-input-hint {
      font-size: 0.72rem;
      color: rgba(170, 170, 170, 0.85);
      letter-spacing: 0.04em;
    }
    .premium-input[type="time"] {
      color-scheme: dark;
    }
    .premium-input[type="time"]::-webkit-calendar-picker-indicator {
      filter: invert(0.85) sepia(1) saturate(3) hue-rotate(5deg);
      cursor: pointer;
    }
    .synergy-calendar-row {
      display: flex;
      gap: 10px;
    }
    .synergy-calendar-pill {
      flex: 1;
      position: relative;
    }
    .synergy-calendar-pill input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    .synergy-calendar-pill label {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 10px;
      border: 1px solid rgba(255, 215, 0, 0.22);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.55);
      color: rgba(200, 200, 200, 0.85);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
      user-select: none;
    }
    .synergy-calendar-pill input:checked + label {
      border-color: rgba(255, 215, 0, 0.65);
      background: rgba(255, 215, 0, 0.10);
      color: #FFD700;
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
    }
    .synergy-reltype-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }
    .synergy-reltype-pill {
      flex: 1 1 240px;
      position: relative;
    }
    .synergy-reltype-pill input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    .synergy-reltype-pill label {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 56px;
      padding: 14px 16px;
      border: 1px solid rgba(255, 215, 0, 0.22);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(20, 12, 40, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%);
      color: rgba(210, 205, 195, 0.88);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      font-weight: 600;
      line-height: 1.35;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
      user-select: none;
    }
    .synergy-reltype-pill label:hover {
      border-color: rgba(255, 215, 0, 0.42);
      transform: translateY(-1px);
    }
    .synergy-reltype-pill input:checked + label {
      border-color: rgba(255, 215, 0, 0.72);
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.16) 0%, rgba(120, 80, 20, 0.22) 100%);
      color: #FFD700;
      box-shadow: 0 0 22px rgba(255, 215, 0, 0.18);
    }
    .synergy-reltype-pill.reltype-romance input:checked + label {
      border-color: rgba(224, 17, 95, 0.55);
      box-shadow: 0 0 22px rgba(224, 17, 95, 0.15);
    }
    .synergy-reltype-pill.reltype-business input:checked + label {
      border-color: rgba(15, 82, 186, 0.55);
      box-shadow: 0 0 22px rgba(15, 82, 186, 0.15);
    }
    .synergy-actions {
      display: flex;
      justify-content: center;
      margin-top: 4px;
    }
    .pro-scan-btn {
      margin-top: 0 !important;
      padding: 14px 32px !important;
      font-size: 0.95rem !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: none !important;
      min-width: 240px;
      letter-spacing: 0.12em;
    }
    .synergy-loading {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 36px 20px;
      text-align: center;
    }
    .synergy-loading.is-visible { display: flex; }
    .synergy-loading-ring {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 3px solid rgba(255, 215, 0, 0.15);
      border-top-color: #FFD700;
      animation: synergy-spin 0.9s linear infinite;
    }
    @keyframes synergy-spin { to { transform: rotate(360deg); } }
    .synergy-loading-text {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: 1rem;
      letter-spacing: 0.08em;
    }
    .synergy-teaser-area {
      margin-top: 28px;
      display: none;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 215, 0, 0.15);
    }
    .synergy-teaser-area.is-visible { display: block; }
    .synergy-teaser-badge {
      display: inline-block;
      margin-bottom: 14px;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 215, 0, 0.35);
      background: rgba(255, 215, 0, 0.08);
      color: #FFD700;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }
    .synergy-teaser-copy {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      line-height: 1.65;
      color: #e8e0d0;
      text-align: center;
      max-width: 52ch;
      margin: 0 auto 22px;
    }
    .synergy-teaser-chart-wrap {
      position: relative;
      height: 280px;
      width: 100%;
      margin-bottom: 24px;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(255, 215, 0, 0.12);
      background: rgba(0, 0, 0, 0.25);
    }
    .synergy-teaser-chart-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, 0.35) 100%);
    }
    .synergy-vip-cta {
      display: block;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      padding: 16px 24px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: #0a0a0c;
      background: linear-gradient(90deg, #FFD700, #FF8C00);
      box-shadow: 0 12px 28px rgba(255, 140, 0, 0.28);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .synergy-vip-cta:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 16px 34px rgba(255, 140, 0, 0.38);
    }
    .synergy-vip-cta:disabled,
    .pro-scan-btn:disabled {
      cursor: wait;
      opacity: 0.88;
    }
    .synergy-vip-cta.is-loading,
    .pro-scan-btn.is-loading {
      animation: synergy-btn-pulse 1.5s ease-in-out infinite;
    }
    @keyframes synergy-btn-pulse {
      0%, 100% { box-shadow: 0 12px 28px rgba(255, 140, 0, 0.28); }
      50% { box-shadow: 0 12px 36px rgba(255, 215, 0, 0.45); }
    }
    .vip-cta-inner,
    .scan-btn-inner {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .synergy-btn-spinner {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid rgba(10, 10, 12, 0.2);
      border-top-color: #0a0a0c;
      animation: synergy-spin 0.75s linear infinite;
      flex-shrink: 0;
    }
    .pro-scan-btn.is-loading .synergy-btn-spinner {
      border-color: rgba(255, 215, 0, 0.2);
      border-top-color: #FFD700;
    }
    .synergy-result-area {
      margin-top: 30px;
      display: none;
    }
    .synergy-result-area.is-visible { display: block; }
    .synergy-score { text-align: center; margin-bottom: 20px; }
    .score-label {
      display: block;
      color: #888;
      font-size: 0.9rem;
      letter-spacing: 2px;
      margin-bottom: 5px;
      text-transform: uppercase;
    }
    .score-value {
      color: #FFD700;
      font-size: 2.5rem;
      font-family: 'Cinzel', serif;
      font-weight: 700;
    }
    .synergy-scanner-section .chart-container {
      position: relative;
      height: 300px;
      width: 100%;
    }
    @media (max-width: 600px) {
      .pro-scan-btn { width: 100%; min-width: 0; }
    }

    /* ---- Ten Gods Past Wave Charts ---- */
    .ten-gods-waves-section {
      margin-top: 10px;
    }
    .ten-gods-waves-intro {
      font-size: 14px;
      line-height: 1.75;
      color: rgba(210, 214, 228, 0.88);
      max-width: 72ch;
      margin-bottom: 24px;
    }
    .ten-role-official {
      margin: 0 0 6px;
      font-size: 0.92rem;
      color: rgba(226, 209, 179, 0.92);
      letter-spacing: 0.02em;
    }
    .ten-role-record-label {
      margin: 0 0 10px;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(200, 204, 220, 0.78);
    }
    .ten-role-channel-score-tag {
      color: rgba(212, 175, 55, 0.9);
    }
    .ten-role-insight {
      margin-top: 12px;
    }
    .ten-role-insight p {
      margin: 0 0 8px;
      font-size: 0.88rem;
      line-height: 1.55;
      color: rgba(224, 226, 236, 0.9);
    }
    .ten-role-insight p:last-child { margin-bottom: 0; }
    .ten-role-section-cta {
      margin-top: 28px;
      padding: 22px 20px;
      border: 1px solid rgba(212, 175, 55, 0.28);
      border-radius: 12px;
      background: rgba(20, 18, 28, 0.45);
    }
    .ten-role-cta-title {
      margin: 0 0 10px;
      font-size: 1.05rem;
      color: #E2D1B3;
      font-weight: 600;
    }
    .ten-role-cta-body {
      margin: 0 0 16px;
      font-size: 0.92rem;
      line-height: 1.6;
      color: rgba(210, 214, 228, 0.88);
      max-width: 68ch;
    }
    .ten-role-cta-btn {
      background: transparent;
      border: 1px solid rgba(212, 175, 55, 0.55);
      color: #D4AF37;
      padding: 10px 16px;
      border-radius: 4px;
      cursor: pointer;
      font: inherit;
      text-decoration: none;
      display: inline-block;
    }
    .ten-role-cta-btn:hover,
    .ten-role-cta-btn:focus-visible {
      border-color: #D4AF37;
      color: #f0d78c;
      outline: none;
    }
    a.ten-role-cta-btn--auth {
      text-align: center;
    }
    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }
    .ten-gods-waves-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 22px;
    }
    .ten-god-wave-item {
      background: rgba(10, 10, 15, 0.72);
      border: 1px solid rgba(255, 215, 0, 0.14);
      border-radius: 14px;
      padding: 20px 18px 16px;
      box-shadow: inset 0 0 18px rgba(255, 215, 0, 0.03);
      transition: border-color 0.25s ease, transform 0.25s ease;
      position: relative;
    }
    .ten-god-wave-item:hover {
      border-color: rgba(255, 215, 0, 0.32);
      transform: translateY(-2px);
    }
    .ten-god-wave-item h4 {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: 1rem;
      margin: 0 0 8px;
      letter-spacing: 0.03em;
    }
    .ten-god-wave-item p {
      font-size: 12.5px;
      line-height: 1.65;
      color: rgba(224, 224, 224, 0.82);
      margin: 0 0 14px;
      min-height: 3.2em;
    }
    .ten-god-wave-chart {
      position: relative;
      height: 160px;
      min-height: 160px;
      width: 100%;
    }
    .ten-god-wave-chart canvas {
      display: block !important;
      visibility: visible !important;
      width: 100% !important;
      height: 100% !important;
    }

    .spinner-wrap {
      display: flex; flex-direction: column;
      align-items: center; gap: 14px;
      padding: 36px; color: var(--muted); font-size: 13px;
    }
    .spinner-ring {
      width: 36px; height: 36px;
      border: 2px solid rgba(200,168,74,0.14);
      border-top-color: var(--gold);
      border-radius: 50%; animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Error */
    .error-card { text-align: center; padding: 40px; }
    .error-title { font-size: 20px; font-weight: 600; color: #f87171; }
    .retry-link {
      display: inline-block; margin-top: 18px;
      color: var(--gold); text-decoration: none;
      font-size: 11px; font-weight: 700;
      letter-spacing: 0.14em; text-transform: uppercase;
      border: 1px solid rgba(200,168,74,0.32); padding: 9px 24px;
      border-radius: 50px; transition: background 0.2s;
    }
    .retry-link:hover { background: var(--gold-dim); }

    /* ---- Chat widget ---- */
    #chatWidget {
      position: fixed; bottom: 26px; right: 26px; z-index: 900;
      display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    }

    .chat-panel {
      display: none; flex-direction: column;
      width: 374px; height: 530px;
      background: rgba(4,4,18,0.98);
      border: 1px solid rgba(200,168,74,0.22);
      border-radius: 20px; overflow: hidden;
      backdrop-filter: blur(30px);
      box-shadow: 0 34px 110px rgba(0,0,0,0.75), 0 0 50px rgba(200,168,74,0.05);
    }
    .chat-panel.open {
      display: flex;
      animation: pop-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes pop-up {
      from { opacity: 0; transform: translateY(24px) scale(0.94); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .chat-hd {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid rgba(200,168,74,0.10);
      background: rgba(200,168,74,0.038);
    }
    .chat-hd-left { display: flex; align-items: center; gap: 12px; }
    .chat-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      flex-shrink: 0;
      background: rgba(4, 4, 10, 0.95);
      border: 1px solid rgba(200, 168, 74, 0.38);
      box-shadow: 0 0 12px rgba(255, 215, 0, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 4px;
    }
    .chat-avatar-logo {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: contain;
      display: block;
    }
    .chat-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--gold-lt); }
    .chat-sub   { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
    .chat-online {
      display: inline-block; width: 7px; height: 7px; border-radius: 50%;
      background: #4ade80; box-shadow: 0 0 7px rgba(74,222,128,0.8);
      margin-left: 5px; vertical-align: middle;
    }
    .chat-close {
      background: none; border: none; width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); font-size: 20px; cursor: pointer;
      border-radius: 50%; transition: color 0.2s, background 0.2s;
    }
    .chat-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

    .chat-msgs {
      flex: 1; overflow-y: auto; padding: 16px;
      display: flex; flex-direction: column; gap: 10px;
      scrollbar-width: thin; scrollbar-color: rgba(200,168,74,0.10) transparent;
    }
    .msg {
      max-width: 88%; font-size: 13px; line-height: 1.62;
      padding: 10px 14px; border-radius: 14px; word-break: break-word;
    }
    .msg.user {
      align-self: flex-end;
      background: linear-gradient(130deg, rgba(200,168,74,0.85), rgba(148,104,24,0.85));
      color: #07050c; border-bottom-right-radius: 4px;
    }
    .msg.assistant {
      align-self: flex-start;
      background: rgba(255,255,255,0.052);
      border: 1px solid rgba(255,255,255,0.07);
      color: var(--text); border-bottom-left-radius: 4px;
    }
    .msg.typing { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
    .msg.typing span {
      display: inline-block;
      width: 5px; height: 5px; border-radius: 50%;
      background: var(--muted); margin: 0 2px;
      animation: dot-b 1s infinite both;
    }
    .msg.typing span:nth-child(2) { animation-delay: 0.16s; }
    .msg.typing span:nth-child(3) { animation-delay: 0.32s; }
    @keyframes dot-b {
      0%,60%,100% { transform: translateY(0); }
      30%          { transform: translateY(-5px); }
    }

    .chat-inp-row {
      display: flex; align-items: center; gap: 8px;
      padding: 12px 14px;
      border-top: 1px solid rgba(255,255,255,0.052);
    }
    #chatInput {
      flex: 1; padding: 10px 14px;
      background: rgba(255,255,255,0.050);
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 10px; color: var(--text);
      font-size: 13px; font-family: 'DM Sans', sans-serif;
      outline: none; transition: border-color 0.2s;
    }
    #chatInput:focus { border-color: rgba(200,168,74,0.40); }
    #chatInput::placeholder { color: rgba(112,104,128,0.65); }
    #sendBtn {
      width: 40px; height: 40px; flex-shrink: 0;
      background: linear-gradient(130deg, #c8a84a, #8a6010);
      border: none; border-radius: 10px; color: #07050c;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    #sendBtn:hover { transform: scale(1.09); box-shadow: 0 5px 20px rgba(200,168,74,0.34); }

    .chat-mic-btn {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      border: 1px solid rgba(200, 168, 74, 0.35);
      border-radius: 10px;
      background: rgba(200, 168, 74, 0.1);
      color: #e6cc80;
      font-size: 17px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .chat-mic-btn:hover:not(:disabled) {
      transform: scale(1.06);
      border-color: rgba(255, 215, 0, 0.55);
      background: rgba(255, 215, 0, 0.14);
    }
    .chat-mic-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .chat-mic-btn.is-listening {
      border-color: rgba(255, 80, 80, 0.75);
      background: rgba(255, 60, 60, 0.16);
      color: #ffb4b4;
      animation: chat-mic-pulse 1.4s ease-in-out infinite;
      box-shadow: 0 0 16px rgba(255, 80, 80, 0.35);
    }
    .chat-mic-btn.is-continuous-mode {
      border-color: rgba(255, 215, 0, 0.65);
      background: rgba(255, 215, 0, 0.14);
      color: #ffe566;
      animation: chat-mic-pulse 1.8s ease-in-out infinite;
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
    }
    .chat-mic-btn.is-continuous-mode.is-processing {
      border-color: rgba(200, 168, 74, 0.55);
      color: #c8a84a;
      animation: chat-mic-pulse 2.2s ease-in-out infinite;
    }
    @keyframes chat-mic-pulse {
      0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.25); transform: scale(1); }
      50% { box-shadow: 0 0 20px rgba(255, 100, 100, 0.55); transform: scale(1.06); }
    }

    .msg.assistant.msg-assistant-voice {
      position: relative;
      padding-right: 36px;
    }
    .msg.assistant.msg-assistant-voice.is-speaking {
      border-color: rgba(255, 215, 0, 0.35);
      box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.08);
    }
    .chat-voice-stop-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 26px;
      height: 26px;
      padding: 0;
      border: none;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 215, 0, 0.85);
      font-size: 13px;
      line-height: 1;
      cursor: pointer;
      opacity: 0.85;
      transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }
    .chat-voice-stop-btn:hover {
      opacity: 1;
      background: rgba(255, 215, 0, 0.16);
      transform: scale(1.08);
    }

    .chat-fab {
      display: flex; align-items: center; gap: 9px;
      padding: 13px 26px;
      background: linear-gradient(130deg, #c8a84a 0%, #8a6010 45%, #c8a84a 100%);
      background-size: 200% 100%;
      border: none; border-radius: 50px;
      color: #07050c;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; font-weight: 700;
      letter-spacing: 0.10em; text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 8px 34px rgba(200,168,74,0.24);
      transition: background-position 0.5s, transform 0.2s, box-shadow 0.2s;
    }
    .chat-fab:hover {
      background-position: 100% 0;
      transform: translateY(-2px);
      box-shadow: 0 16px 48px rgba(200,168,74,0.36);
    }

    @media (max-width: 440px) {
      .chat-panel { width: calc(100vw - 32px); }
      .master-k-main-logo { width: 110px; }
      .hd-name { font-size: 26px; }
      .strip { grid-template-columns: 1fr 1fr; }
      .ss:nth-child(2) { border-right: none; }
    }
    @media (max-width: 700px) {
      .card { padding: 28px 22px; }
    }

    /* ================================================================
       Cinematic Past Trauma Overlay
       ================================================================ */
    .hidden { display: none !important; }

    .cinematic-overlay {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      background: #050505; z-index: 99999;
      display: flex; justify-content: center; align-items: center;
      text-align: center;
    }
    .cinematic-overlay.hidden { display: none !important; }

    .seq-text {
      color: #fff;
      font-family: 'Cinzel', 'Cormorant Garamond', serif;
      font-size: 2.2rem !important;
      font-weight: bold;
      text-align: center;
      line-height: 1.5;
      padding: 20px;
      opacity: 0;
      transition: opacity 1.2s ease;
      position: absolute;
      max-width: 92vw;
    }
    .seq-text.visible { opacity: 1; }

    .massive-empathy-modal {
      width: 92vw;
      max-width: 900px !important;
      padding: 50px 30px !important;
      background: radial-gradient(circle, #1a1a24 0%, #050505 100%);
      border: none;
      border-radius: 12px;
      box-shadow: none;
      opacity: 0;
      transition: opacity 1.5s ease;
      font-family: 'Cormorant Garamond', 'Cinzel', serif;
    }
    .massive-empathy-modal.visible { opacity: 1; }

    .empathy-title {
      font-family: 'Cinzel', serif;
      font-size: 2.2rem !important;
      font-weight: 900;
      margin-bottom: 25px;
      color: #FFD700;
      letter-spacing: 0.04em;
    }
    .empathy-body {
      font-size: 1.4rem !important;
      line-height: 1.8;
      color: #E0E0E0;
      word-break: keep-all;
      text-align: left;
    }
    .dynamic-trauma { word-break: keep-all; }
    .cinematic-overlay .mk-proceed-btn {
      font-size: 1.3rem !important;
      padding: 18px 35px;
      margin: 35px auto 0 auto;
    }
    @media (max-width: 768px) {
      .seq-text { font-size: 1.6rem !important; padding: 16px; }
      .massive-empathy-modal { width: 95vw; padding: 40px 22px !important; }
      .empathy-title { font-size: 1.7rem !important; }
      .empathy-body { font-size: 1.2rem !important; line-height: 1.75; }
    }

    .mk-proceed-btn {
      display: block;
      margin: auto auto 0 auto;
      padding: 18px 40px;
      min-width: 280px;
      max-width: 90%;
      background: linear-gradient(135deg, #FFD700, #DAA520);
      color: #111 !important;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(15px);
      transition: opacity 1s ease, transform 1s ease, box-shadow 0.3s ease, filter 0.3s ease;
      box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35);
    }
    .mk-proceed-btn.show-btn {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .mk-proceed-btn:hover {
      background: linear-gradient(135deg, #FFE44D, #FFD700);
      box-shadow: 0 8px 28px rgba(255, 215, 0, 0.55);
      transform: translateY(-2px) scale(1.03);
      filter: brightness(1.05);
    }

    /* ============================================================
       PREMIUM GLASSMORPHISM -- matches index.html design language
       ============================================================ */

    /* Upgrade existing .card to true glass */
    .card {
      background: var(--cosmic-glass-bg) !important;
      backdrop-filter: blur(20px) saturate(130%) !important;
      -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
      border: none !important;
      border-radius: 24px !important;
      box-shadow:
        0 0 20px var(--cosmic-glow-outer),
        inset 0 0 15px var(--cosmic-glow-inset),
        0 8px 32px rgba(0, 0, 0, 0.55) !important;
    }

    /* .glass-card -- new utility class for any dashboard panel */
    .glass-card {
      background: var(--cosmic-glass-bg);
      backdrop-filter: blur(20px) saturate(130%);
      -webkit-backdrop-filter: blur(20px) saturate(130%);
      border: none;
      border-radius: 24px;
      padding: 24px;
      box-shadow:
        0 0 20px var(--cosmic-glow-outer),
        inset 0 0 15px var(--cosmic-glow-inset),
        0 8px 32px rgba(0, 0, 0, 0.55);
      margin-bottom: 22px;
    }
    .glass-card h2, .glass-card h3 {
      color: #FFD700;
      text-shadow: 0 4px 12px rgba(0,0,0,0.90);
      margin-bottom: 14px;
    }

    /* Section titles in gold */
    .section-title {
      color: #FFD700 !important;
      text-shadow: 0 4px 12px rgba(0,0,0,0.90) !important;
    }

    /* Clean text over glass */
    .card .tip-content,
    .card p, .card li,
    .card .ss-val, .card .ss-lbl {
      text-shadow: 0 2px 6px rgba(0,0,0,0.90), 0 0 2px rgba(0,0,0,1);
    }

    /* ============================================================
       12-DIVISION ASTROLABE WATERMARK -- max visibility
       ============================================================ */

    /* 1. MAX VISIBILITY WRAPPER */
    .cosmic-watermark {
      position: fixed;
      top: 50%; left: 50%;
      width: 120vmax; height: 120vmax;
      z-index: 0 !important;
      pointer-events: none;
      opacity: 0.8 !important;
      mix-blend-mode: screen;
      animation: watermark-spin 120s linear infinite;
    }

    /* 2. BRIGHTER CENTRAL CORE */
    .cosmic-watermark .core-star {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 80px; height: 80px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,215,0,1) 0%, rgba(255,215,0,0) 70%);
      box-shadow: 0 0 60px rgba(255, 215, 0, 1);
      z-index: 2;
    }

    /* 3. THICKER, GLOWING RINGS */
    .cosmic-watermark .ring {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    }
    .cosmic-watermark .outer-ring {
      width: 70%; height: 70%;
      border: 4px dashed rgba(255, 215, 0, 0.9) !important;
    }
    .cosmic-watermark .inner-ring {
      width: 50%; height: 50%;
      border: 3px solid rgba(255, 215, 0, 0.7) !important;
    }

    /* 4. THE 12-DIVISION CROSSHAIRS (12 Earthly Branches / Zodiac) */
    .cosmic-watermark .crosshairs {
      position: absolute; top: 50%; left: 50%;
      width: 100%; height: 2px;
      background: rgba(255, 215, 0, 0.7) !important;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    /* 12 equal slices -- 360 / 12 = 30 degrees each */
    .cosmic-watermark .line-1  { transform: translate(-50%, -50%) rotate(0deg); }
    .cosmic-watermark .line-2  { transform: translate(-50%, -50%) rotate(30deg); }
    .cosmic-watermark .line-3  { transform: translate(-50%, -50%) rotate(60deg); }
    .cosmic-watermark .line-4  { transform: translate(-50%, -50%) rotate(90deg); }
    .cosmic-watermark .line-5  { transform: translate(-50%, -50%) rotate(120deg); }
    .cosmic-watermark .line-6  { transform: translate(-50%, -50%) rotate(150deg); }
    .cosmic-watermark .line-7  { transform: translate(-50%, -50%) rotate(180deg); }
    .cosmic-watermark .line-8  { transform: translate(-50%, -50%) rotate(210deg); }
    .cosmic-watermark .line-9  { transform: translate(-50%, -50%) rotate(240deg); }
    .cosmic-watermark .line-10 { transform: translate(-50%, -50%) rotate(270deg); }
    .cosmic-watermark .line-11 { transform: translate(-50%, -50%) rotate(300deg); }
    .cosmic-watermark .line-12 { transform: translate(-50%, -50%) rotate(330deg); }

    /* 5. TWELVE EARTHLY BRANCHES -- emoji zodiac ring */
    .zodiac-container {
      position: absolute;
      top: 50%; left: 50%;
      width: 100%; height: 100%;
      transform: translate(-50%, -50%);
      z-index: 10 !important;
      pointer-events: none;
    }

    /* DIMMED ANCIENT GOLD EFFECT */
    .animal-img {
      width: 450px !important;
      height: 450px !important;
      object-fit: contain;
      /* Reduced brightness, saturation, and shadow for a subtle, elegant look */
      filter: sepia(100%) saturate(150%) hue-rotate(5deg) brightness(0.7) contrast(1.1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
      opacity: 0.5; /* Makes them blend into the background beautifully */
      mix-blend-mode: screen;
    }

    .letter {
      position: absolute;
      top: -140px !important; /* Pushed a bit higher */
      font-family: 'Pinyon Script', cursive !important; /* The new elegant font */
      font-size: 10rem !important; /* Massive and dramatic */
      font-weight: 400;
      color: rgba(255, 215, 0, 0.6);
      text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
      pointer-events: none;
      transform: rotate(0deg);
    }

    /* MASSIVE WESTERN ZODIAC OUTER RING - ADJUSTED POSITION & SIZE */
    .western-sign {
      position: absolute;
      top: -580px !important; /* Pushed significantly further out into the center of the outer wedge */
      font-family: "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif !important;
      font-size: 16rem !important; /* Doubled in size (from 8rem to 16rem) */
      font-weight: 400;
      color: rgba(255, 215, 0, 0.4) !important;
      text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
      pointer-events: none;
      transform: rotate(0deg); 
    }

    /* Ensure the zodiac items are positioned to allow the letter to sit above them */
    .zodiac-item {
      position: absolute;
      top: 50%; left: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 20 !important;
    }

    /* 2. PULL CLOSER TO CENTER (-36vmax -> -22vmax) */
    /* Keep the rotation so heads point out and feet point in */
    .zodiac-item.z-1 { transform: translate(-50%, -50%) rotate(15deg) translateY(-22vmax); }
    .zodiac-item.z-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(-22vmax); }
    .zodiac-item.z-3 { transform: translate(-50%, -50%) rotate(75deg) translateY(-22vmax); }
    .zodiac-item.z-4 { transform: translate(-50%, -50%) rotate(105deg) translateY(-22vmax); }
    .zodiac-item.z-5 { transform: translate(-50%, -50%) rotate(135deg) translateY(-22vmax); }
    .zodiac-item.z-6 { transform: translate(-50%, -50%) rotate(165deg) translateY(-22vmax); }
    .zodiac-item.z-7 { transform: translate(-50%, -50%) rotate(195deg) translateY(-22vmax); }
    .zodiac-item.z-8 { transform: translate(-50%, -50%) rotate(225deg) translateY(-22vmax); }
    .zodiac-item.z-9 { transform: translate(-50%, -50%) rotate(255deg) translateY(-22vmax); }
    .zodiac-item.z-10 { transform: translate(-50%, -50%) rotate(285deg) translateY(-22vmax); }
    .zodiac-item.z-11 { transform: translate(-50%, -50%) rotate(315deg) translateY(-22vmax); }
    .zodiac-item.z-12 { transform: translate(-50%, -50%) rotate(345deg) translateY(-22vmax); }

    @keyframes watermark-spin {
      0%   { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Ensure main wrapper does not hide watermark */
    html, body {
      background-color: #05050a;
    }
    .bg, #cv {
      z-index: -1 !important;
    }
    .dashboard-container, .main-content, .page-wrapper, .page {
      background: transparent !important;
      position: relative;
      z-index: 10 !important;
    }
    .force-mk-wrapper {
      text-align: center;
      margin-top: 10px;
      margin-bottom: 20px;
      z-index: 999;
      position: relative;
    }
    .force-mk-main {
      font-family: 'Cinzel', 'Times New Roman', serif !important;
      font-size: 3.8rem !important;
      font-weight: 900 !important;
      color: #FFD700 !important;
      letter-spacing: 6px !important;
      margin: 0 !important;
      line-height: 1.2 !important;
      text-shadow: 0px 4px 10px rgba(0, 0, 0, 1), 0px 0px 20px rgba(0, 0, 0, 0.9), 0px 0px 40px rgba(0, 0, 0, 0.8) !important;
    }
    .force-mk-sub {
      font-family: 'Cinzel', 'Times New Roman', serif !important;
      font-size: 1.2rem !important;
      font-weight: bold !important;
      color: #FFFFFF !important;
      letter-spacing: 5px !important;
      margin: 5px 0 0 0 !important;
      text-shadow: 0px 2px 8px rgba(0, 0, 0, 1), 0px 0px 15px rgba(0, 0, 0, 0.9) !important;
    }
    #pdf-master-container {
      position: absolute;
      left: -9999px;
      top: 0;
      width: 210mm;
      background-color: #0A0A12;
      color: #EAEAEA;
      font-family: Helvetica, sans-serif;
      visibility: hidden;
      pointer-events: none;
      z-index: -1;
    }
    #pdf-master-container .pdf-cover-page {
      width: 210mm;
      height: 297mm;
      position: relative;
      page-break-after: always;
      z-index: 1;
    }
    #pdf-master-container .pdf-cover-page img,
    #pdf-master-container > img.pdf-inner-border {
      width: 210mm;
      height: 297mm;
    }
    #pdf-master-container .pdf-cover-page img {
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
    }
    #pdf-master-container > img.pdf-inner-border {
      position: fixed;
      top: 0;
      left: 0;
      z-index: -2;
    }
    #pdf-dynamic-content {
      padding: 25mm 20mm;
      z-index: 1;
      position: relative;
      font-size: 11pt;
      line-height: 1.6;
    }
    #web-reading-container.oracle-manual-panel {
      width: 100%;
      max-width: none;
      margin: 0 0 22px 0;
      padding: 34px 38px;
      font-family: 'DM Sans', sans-serif;
    }
    #web-reading-container .web-reading-subtitle {
      margin: -12px 0 24px;
      font-size: 0.95rem;
      color: var(--soft);
      font-style: italic;
      text-shadow: 0 2px 6px rgba(0,0,0,0.90);
    }
    .web-reading-placeholder {
      text-align: center;
      color: var(--soft);
    }
    .web-reading-placeholder-lead {
      margin: 0 0 24px;
      font-size: 1rem;
      line-height: 1.75;
      text-shadow: 0 2px 6px rgba(0,0,0,0.90);
    }
    .web-reading-toc {
      list-style: none;
      margin: 0 auto;
      padding: 0;
      max-width: 100%;
      text-align: left;
    }
    .web-reading-toc li {
      padding: 10px 14px;
      margin-bottom: 8px;
      border: none;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.03);
      box-shadow: inset 0 0 10px rgba(167, 139, 250, 0.05);
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
      color: rgba(255, 215, 0, 0.88);
      text-shadow: 0 2px 6px rgba(0,0,0,0.90);
    }
    .web-reading-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      padding: 48px 20px;
      text-align: center;
    }
    .web-reading-loading[hidden],
    .web-reading-content[hidden],
    .web-reading-placeholder[hidden] {
      display: none !important;
    }
    .web-reading-loading-ring {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 3px solid rgba(212, 175, 55, 0.18);
      border-top-color: #D4AF37;
      animation: synergy-spin 0.9s linear infinite;
    }
    .web-reading-loading-text {
      margin: 0;
      font-family: 'Cinzel', serif;
      color: #D4AF37;
      font-size: 1rem;
      letter-spacing: 0.08em;
    }
    .web-reading-content {
      min-height: 0;
    }
    #web-reading-container.has-content .web-reading-subtitle {
      margin-bottom: 28px;
    }
    #web-reading-content h3 {
      text-align: center;
      color: #D4AF37;
      font-size: 26px;
      margin-top: 60px;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(212, 175, 55, 0.2);
      letter-spacing: 3px;
      text-transform: uppercase;
    }
    #web-reading-content h3:first-child { margin-top: 10px; }
    #web-reading-content p {
      text-align: justify;
      font-size: 16px;
      line-height: 1.8;
      color: #EAEAEA;
      margin-bottom: 25px;
      letter-spacing: 0.5px;
    }
    #web-reading-content strong, #web-reading-content b {
      color: #D4AF37;
      font-weight: normal;
      letter-spacing: 1px;
    }
    #pdf-dynamic-content h3 {
      color: #D4AF37;
      text-align: center;
      font-size: 20px;
      margin-top: 48px;
      margin-bottom: 20px;
      border-bottom: 1px solid #D4AF37;
      padding-bottom: 10px;
      font-weight: bold;
      page-break-before: always;
      break-before: page;
      page-break-after: avoid;
      break-after: avoid-page;
    }
    #pdf-dynamic-content p {
      color: #EAEAEA;
      line-height: 1.8;
      margin-bottom: 15px;
      text-align: justify;
      font-size: 14px;
      page-break-inside: avoid;
      break-inside: avoid-page;
      orphans: 3;
      widows: 3;
    }
    #pdf-dynamic-content strong { color: #E8C766; }
    .calendar-sync-hint {
      color: var(--muted);
      font-size: 0.85rem;
      font-style: italic;
      line-height: 1.5;
      margin: 0 auto 8px;
      max-width: 560px;
    }

    /* ---- 5-Chapter Destiny Report Freemium Accordion ---- */
    .destiny-report-accordion {
      overflow: hidden;
    }
    .destiny-accordion {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }
    .destiny-accordion-item {
      border: 1px solid rgba(212, 175, 55, 0.22);
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.28);
      overflow: hidden;
      transition: border-color 0.25s ease;
    }
    .destiny-accordion-item.is-open {
      border-color: rgba(212, 175, 55, 0.42);
    }
    .destiny-accordion-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 18px;
      border: none;
      background: transparent;
      cursor: pointer;
      text-align: left;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      letter-spacing: 0.05em;
      color: rgba(255, 215, 0, 0.92);
      transition: box-shadow 0.28s ease, background 0.28s ease;
    }
    .destiny-accordion-header:hover,
    .destiny-accordion-header:focus-visible {
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
      background: rgba(255, 215, 0, 0.04);
      outline: none;
    }
    .destiny-vip-owners-badge {
      margin: 0 0 16px;
    }
    .vip-owners-club-badge {
      display: block;
      box-sizing: border-box;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1px solid rgba(255, 215, 0, 0.65);
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(218, 165, 32, 0.12));
      color: #FFE566;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-align: center;
      text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.18);
    }
    .destiny-accordion-item.is-locked .destiny-accordion-header:hover,
    .destiny-accordion-header--locked:hover {
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
      filter: brightness(1.08);
      transform: scale(1.01);
    }
    .destiny-accordion-title {
      flex: 1;
      line-height: 1.35;
    }
    .destiny-accordion-lock {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 2rem;
      min-height: 2rem;
      margin-left: 12px;
      font-size: 1.35rem;
      line-height: 1;
      opacity: 1 !important;
      flex-shrink: 0;
      filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.65));
      animation: destiny-lock-pulse 1.8s ease-in-out infinite;
    }
    @keyframes destiny-lock-pulse {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.45)); }
      50% { transform: scale(1.12); filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9)); }
    }
    .destiny-accordion-item.is-locked .destiny-accordion-panel,
    .destiny-accordion-item.is-locked .destiny-accordion-panel[hidden] {
      display: none !important;
      grid-template-rows: 0fr !important;
      visibility: hidden !important;
      height: 0 !important;
      overflow: hidden !important;
    }
    
    .destiny-accordion-item.is-locked.is-open .destiny-accordion-panel {
      display: none !important;
      grid-template-rows: 0fr !important;
    }
    .destiny-accordion-panel {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.45s ease;
    }
    .destiny-accordion-item.is-open .destiny-accordion-panel {
      grid-template-rows: 1fr;
    }
    .destiny-accordion-inner {
      overflow: hidden;
      position: relative;
    }
    .destiny-accordion-item.is-open .destiny-accordion-inner {
      overflow: visible;
    }
    .destiny-accordion-body {
      padding: 0 22px 12px;
    }
    .destiny-chapter-pdf-wrap {
      display: flex;
      justify-content: flex-end;
      padding: 4px 22px 22px;
      border-top: 1px solid rgba(212, 175, 55, 0.12);
      margin-top: 8px;
    }
    .chapter-pdf-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 16px;
      border: 1px solid rgba(212, 175, 55, 0.35);
      border-radius: 999px;
      background: rgba(212, 175, 55, 0.06);
      color: rgba(255, 215, 0, 0.88);
      font-family: 'Cinzel', serif;
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }
    .chapter-pdf-btn i {
      font-size: 0.85rem;
      opacity: 0.9;
    }
    .chapter-pdf-btn:hover,
    .chapter-pdf-btn:focus-visible {
      color: #FFD700;
      border-color: rgba(255, 215, 0, 0.55);
      background: rgba(255, 215, 0, 0.1);
      box-shadow: 0 0 14px rgba(255, 215, 0, 0.22);
      outline: none;
    }
    .chapter-pdf-btn:disabled {
      opacity: 0.55;
      cursor: wait;
    }
    .destiny-accordion-body.chapter-report-body h3 {
      display: block;
      margin: 1.75rem 0 0.85rem;
      padding: 0;
      font-family: Cinzel, 'Times New Roman', serif;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      line-height: 1.45;
      color: #E2D1B3;
      border: none;
      background: transparent;
    }
    .destiny-accordion-body.chapter-report-body h3:first-child {
      margin-top: 0.35rem;
    }
    .destiny-accordion-body.chapter-report-body p {
      text-align: justify;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      line-height: 1.8;
      color: #e0e0e0;
      margin: 0 0 22px;
      letter-spacing: 0.4px;
    }
    .destiny-accordion-body.chapter-report-body strong,
    .destiny-accordion-body.chapter-report-body b {
      color: #D4AF37;
      font-weight: normal;
    }

    /* ---- Oracle Karaoke — synchronized word highlighting ---- */
    .oracle-karaoke-word {
      display: inline;
      border-radius: 3px;
      transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    }
    .oracle-karaoke-word.active-word,
    .oracle-karaoke-word.tts-active {
      background-color: rgba(255, 235, 59, 0.4);
      color: #fff;
      border-radius: 3px;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
    }
    .oracle-karaoke-word.active-word.paused-word {
      background-color: rgba(255, 215, 0, 0.14);
      color: rgba(255, 255, 255, 0.88);
      box-shadow: 0 0 6px rgba(255, 215, 0, 0.18);
    }
    .oracle-karaoke-body.oracle-tap-active,
    .oracle-karaoke-title.oracle-tap-active {
      cursor: pointer;
    }
    .oracle-playback-toast {
      position: absolute;
      inset: 0;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
      background: rgba(4, 4, 14, 0.42);
      backdrop-filter: blur(2px);
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      color: #FFD700;
      text-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
    }
    .oracle-playback-toast.is-visible {
      opacity: 1;
    }
    .oracle-karaoke-title .oracle-karaoke-word.active-word {
      background-color: rgba(255, 215, 0, 0.38);
      color: #fff;
    }
    .destiny-report-accordion.oracle-karaoke-mode .destiny-accordion-item.is-open {
      border-color: rgba(255, 215, 0, 0.38);
    }
    .destiny-report-accordion.oracle-karaoke-mode .oracle-karaoke-body {
      scroll-margin-top: 80px;
    }

    .destiny-accordion-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 28px 20px 32px;
      text-align: center;
      color: #D4AF37;
      font-family: 'Cinzel', serif;
      font-size: 0.9rem;
      letter-spacing: 0.06em;
    }
    .destiny-accordion-loading[hidden] {
      display: none !important;
    }
    .destiny-accordion-loading-ring {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 3px solid rgba(212, 175, 55, 0.18);
      border-top-color: #D4AF37;
      animation: synergy-spin 0.9s linear infinite;
    }
    .destiny-report-actions {
      margin-top: 20px;
      margin-bottom: 8px;
      text-align: center;
    }
    .oracle-voice-hint {
      margin: 10px 0 0;
      font-size: 0.82rem;
      font-style: italic;
      color: rgba(255, 215, 0, 0.55);
      letter-spacing: 0.04em;
    }
    .destiny-chapter-voice-wrap {
      display: flex;
      justify-content: center;
      padding: 4px 22px 12px;
    }
    .oracle-voice-btn--chapter {
      padding: 12px 22px;
      font-size: 0.68rem;
      letter-spacing: 0.1em;
    }
    .oracle-voice-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 28px;
      border: 1px solid rgba(255, 215, 0, 0.55);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(138, 96, 16, 0.35) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: box-shadow 0.28s ease, transform 0.2s ease, border-color 0.28s ease;
      box-shadow: 0 0 16px rgba(255, 215, 0, 0.18);
    }
    .oracle-voice-btn:hover,
    .oracle-voice-btn:focus-visible {
      box-shadow: 0 0 22px rgba(255, 215, 0, 0.48);
      border-color: rgba(255, 215, 0, 0.78);
      transform: translateY(-1px);
      outline: none;
    }
    .oracle-voice-btn.is-playing {
      animation: oracle-voice-pulse 2s ease-in-out infinite;
      border-color: rgba(255, 215, 0, 0.85);
      box-shadow: 0 0 28px rgba(255, 215, 0, 0.55);
    }
    .oracle-voice-btn.is-loading {
      opacity: 0.72;
      cursor: wait;
      pointer-events: none;
    }
    .oracle-voice-icon {
      font-size: 1rem;
      line-height: 1;
    }
    @keyframes oracle-voice-pulse {
      0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.35); }
      50% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.65); }
    }
    .destiny-pdf-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 28px;
      border: 1px solid rgba(255, 215, 0, 0.55);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(138, 96, 16, 0.35) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: box-shadow 0.28s ease, transform 0.2s ease, border-color 0.28s ease;
    }
    .destiny-pdf-btn:hover {
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
      border-color: rgba(255, 215, 0, 0.75);
      transform: translateY(-1px);
    }
    .destiny-pdf-btn:disabled {
      opacity: 0.55;
      cursor: wait;
      transform: none;
    }

    /* ================================================================
       PREMIUM SUITE DROPDOWN MENU (top-right) — defer to suite-menu.css
       Keep z-index / color overrides from fighting the shared GNB.
       ================================================================ */
    .suite-menu-anchor {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 2147483000 !important;
      pointer-events: auto !important;
    }
    .suite-menu-link,
    button.suite-menu-link {
      color: #F5EFE0 !important;
      -webkit-text-fill-color: #F5EFE0;
    }
    .suite-menu-link.is-active,
    .suite-menu-link:hover {
      color: #FFD700 !important;
      -webkit-text-fill-color: #FFD700;
    }

    /* ================================================================
       PDF EXPORT — hide JS charts, show text fallbacks
       ================================================================ */
    .pdf-text-fallback {
      display: none;
    }

    .pdf-export-mode .chart-container,
    .pdf-export-mode .vip-wave-chart-wrap,
    .pdf-export-mode .synergy-teaser-chart-wrap,
    .pdf-export-mode canvas,
    .pdf-export-mode #healthElementRadar,
    .pdf-export-mode .close-card-btn,
    .pdf-export-mode .vip-actions,
    .pdf-export-mode .daily-push-box,
    .pdf-export-mode .suite-menu-anchor,
    .pdf-export-mode #cv {
      display: none !important;
    }

    .pdf-export-mode .pdf-text-fallback {
      display: block !important;
    }

    .vip-wave-text-summary {
      margin-top: 10px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 215, 0, 0.2);
      border-radius: 8px;
      background: rgba(255, 215, 0, 0.04);
      color: #ccc;
      font-size: 0.82rem;
      line-height: 1.6;
      text-align: center;
    }

    @media print {
      .chart-container,
      .vip-wave-chart-wrap,
      .synergy-teaser-chart-wrap,
      canvas,
      #healthElementRadar,
      .close-card-btn,
      .suite-menu-anchor,
      #cv,
      .cosmic-watermark {
        display: none !important;
      }

      .pdf-text-fallback {
        display: block !important;
      }

      body.result-suite-page .page {
        padding-top: 0;
      }
    }

.mk-month-back-btn {
  margin-top: 30px;
  padding: 15px;
  width: 100%;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #D4AF37;
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 2px;
}
.mk-month-back-btn:hover,
.mk-month-back-btn:focus-visible {
  background: #1c1c1c;
  color: #F3E6B8;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
  outline: none;
}

/* ===================================================================
   Desktop reading width — PC @768px+ (mobile layout unchanged)
   =================================================================== */
@media (min-width: 768px) {
  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    max-width: 900px !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .pw-copy-body,
  .daily-push-box,
  .health-cosmic-body,
  .elem-roles-intro,
  .elem-vip-copy,
  .calendar-sync-hint,
  .strategy-wave-grid,
  .ch6-fh-calendar {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Overrides inline <style> caps on result.html — no HTML edits */
  .vip-executive-card p,
  .vip-share-unlock-copy,
  .the-vault-copy {
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =========================================================
   [EN Daily Oracle] Compact VVIP modal — never full-bleed
========================================================= */
#welcome-oracle-modal {
  display: none;
  align-items: center;
  justify-content: center;
}
#welcome-oracle-modal.is-visible {
  display: flex !important;
}
.welcome-oracle-panel {
  max-width: 480px !important;
  width: min(92vw, 480px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}
#oracle-push-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  box-sizing: border-box;
}
#oracle-push-modal > div {
  max-width: 480px !important;
  width: min(92vw, 480px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* =========================================================
   [A13 확장] VVIP 글로벌 럭셔리 스크롤바 (모든 내부 팝업/결제창 강제 적용)
========================================================= */
*::-webkit-scrollbar {
  width: 6px !important;  
  height: 6px !important; 
}

*::-webkit-scrollbar-track {
  background: rgba(12, 12, 18, 0.5) !important; 
  border-radius: 4px !important;
}

*::-webkit-scrollbar-thumb {
  background: #D4AF37 !important; 
  border-radius: 4px !important;
}

*::-webkit-scrollbar-thumb:hover {
  background: #F1D570 !important; 
}

/* Firefox 브라우저 대응 */
* {
  scrollbar-width: thin !important;
  scrollbar-color: #D4AF37 rgba(12, 12, 18, 0.5) !important;
}

/* =========================================================
   [MTC] 30-Day Monthly Traffic Light Calendar — always visible
========================================================= */
#monthlyTrafficCalendar.mtc-section,
.mtc-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 20;
  margin: 48px 0 28px;
  padding: 22px 18px 24px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(165deg, rgba(12, 14, 22, 0.95), rgba(8, 10, 18, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.mtc-title {
  margin: 0 0 6px;
  color: #D4AF37;
  font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.mtc-subtitle {
  margin: 0 0 18px;
  color: rgba(230, 230, 230, 0.72);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}
.mtc-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  .mtc-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.mtc-cell {
  appearance: none;
  -webkit-appearance: none;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eee;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.mtc-cell:hover,
.mtc-cell:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
  outline: none;
}
.mtc-cell.is-active {
  border-color: #D4AF37;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.mtc-cell.is-today {
  background: rgba(212, 175, 55, 0.08);
}
.mtc-icon { font-size: 0.95rem; line-height: 1; }
.mtc-day {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mtc-guide-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mtc-guide-panel[hidden] { display: none !important; }
.mtc-guide-icon { font-size: 1.2rem; line-height: 1.4; }
.mtc-guide-text {
  margin: 0;
  color: rgba(245, 245, 245, 0.92);
  font-size: 0.92rem;
  line-height: 1.65;
}
.mtc-cta-banner {
  appearance: none;
  -webkit-appearance: none;
  display: block !important;
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(120, 90, 20, 0.35));
  color: #FFE9A8;
  font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.mtc-cta-banner:hover,
.mtc-cta-banner:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  outline: none;
}

/* VVIP Daily Radar Briefing Modal — Bloomberg / McKinsey dark report [A13] */
.mtc-radar-backdrop {
  position: fixed !important;
  inset: 0;
  z-index: 210000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mtc-radar-backdrop.is-open,
.mtc-radar-backdrop.is-open[hidden] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.mtc-radar-open { overflow: hidden; }
.mtc-radar-modal {
  position: relative;
  margin: auto;
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 26px 30px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(165deg, rgba(14, 16, 24, 0.97), rgba(6, 8, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.55);
  color: #f2f0e8;
}
.mtc-radar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.mtc-radar-close:hover,
.mtc-radar-close:focus-visible {
  color: #D4AF37;
  outline: none;
}
.mtc-radar-eyebrow {
  margin: 0 0 14px;
  color: rgba(212, 175, 55, 0.85);
  font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mtc-radar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mtc-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.mtc-badge--mode.mtc-badge--expand {
  color: #0d2a18;
  background: linear-gradient(135deg, #6dffb0, #2ecc71);
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.35);
}
.mtc-badge--mode.mtc-badge--optimize {
  color: #2a2208;
  background: linear-gradient(135deg, #ffe08a, #d4af37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
.mtc-badge--mode.mtc-badge--defend {
  color: #2a0a0a;
  background: linear-gradient(135deg, #ff8f8f, #e74c3c);
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.35);
}
.mtc-badge--tag {
  color: rgba(230, 230, 230, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mtc-radar-title {
  margin: 0 0 8px;
  color: #FFE9A8;
  font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.mtc-radar-meta {
  margin: 0 0 16px;
  color: rgba(220, 220, 220, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.mtc-radar-dot { margin: 0 6px; opacity: 0.5; }
.mtc-radar-divider {
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), transparent);
}
.mtc-radar-body {
  margin: 0;
  color: rgba(245, 242, 232, 0.92);
  font-size: 0.98rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ===================================================================
   F1 — Today's Brief modal (Desire Hook / ILWOON; not notification)
   =================================================================== */
.mk-todays-brief-modal .mk-todays-brief-body {
  color: rgba(230, 220, 200, 0.95);
  font-size: 0.98rem;
  line-height: 1.7;
}
.mk-todays-brief-modal .mk-todays-brief-line {
  margin: 0 0 1rem;
  color: rgba(255, 245, 220, 0.96);
  font-size: 1.05rem;
  line-height: 1.65;
}
.mk-todays-brief-modal .mk-todays-brief-reality,
.mk-todays-brief-modal .mk-todays-brief-decision {
  margin: 0 0 0.85rem;
  color: rgba(210, 200, 180, 0.92);
}
.mk-todays-brief-modal .mk-todays-brief-empty {
  margin: 0;
  color: rgba(180, 175, 165, 0.88);
}
.mk-todays-brief-modal .mk-todays-brief-meta {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ===================================================================
   05X-F1D-2V-B — Flow reward modals viewport fit (shell + inner scroll)
   =================================================================== */
.mk-flow-reward-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100100 !important;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
.mk-flow-reward-modal-panel {
  position: relative;
  box-sizing: border-box;
  width: min(92vw, 560px);
  max-height: calc(100dvh - 48px);
  max-height: calc(100vh - 48px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 15px;
  padding: 28px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.mk-flow-reward-modal-panel--archive { width: min(92vw, 520px); }
.mk-flow-reward-modal-panel--personal { width: min(92vw, 600px); }
.mk-flow-reward-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 5;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.mk-flow-reward-modal-close:hover,
.mk-flow-reward-modal-close:focus-visible {
  color: #ddd;
  outline: none;
}
.mk-flow-reward-modal-header {
  flex-shrink: 0;
  padding-right: 36px;
}
.mk-flow-reward-modal-title {
  color: #FFD700;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.mk-flow-reward-modal-basis {
  color: rgba(210, 200, 180, 0.9);
  font-size: 0.88rem;
  margin: 0 0 6px;
}
.mk-flow-reward-modal-dates {
  color: rgba(180, 175, 165, 0.85);
  font-size: 0.82rem;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.mk-flow-reward-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.flow-review-body,
.personal-flow-review-body {
  color: rgba(230, 228, 220, 0.95);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.flow-archive-empty,
.flow-history-empty {
  color: rgba(220, 220, 220, 0.85);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   05X-F1D-2V-JA-B — De-stack suite hamburger while Flow reward modals open
   (.suite-menu-anchor is z-index 999999 globally; flow shell is 100100)
   =================================================================== */
body:has(#flowHistoryModal:not([hidden])) .suite-menu-anchor,
body:has(#flowHistoryModal:not([hidden])) #suiteMenuAnchor,
body:has(#flowArchiveModal:not([hidden])) .suite-menu-anchor,
body:has(#flowArchiveModal:not([hidden])) #suiteMenuAnchor,
body:has(#flowReviewModal:not([hidden])) .suite-menu-anchor,
body:has(#flowReviewModal:not([hidden])) #suiteMenuAnchor,
body:has(#personalFlowReviewModal:not([hidden])) .suite-menu-anchor,
body:has(#personalFlowReviewModal:not([hidden])) #suiteMenuAnchor {
  z-index: 99989 !important;
  pointer-events: none !important;
}
/* ===== MASTER_K F7B4 RESULT-A/B BEGIN ===== */
/* F7B4 RESULT-B L3853 */
.mk-s-result-L3853-position-fixed-right-18px-to {
  position:fixed;right:18px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:10px;z-index:1500;
  opacity:1;transition:opacity 0.3s;
}

/* F7B4 RESULT-A L3781 */
.mk-s-result-L3781-background-transparent-color {
  background:transparent; color:rgba(220,220,220,0.82); font-size:0.9rem; border:none; cursor:pointer; text-decoration:underline; text-underline-offset:3px; min-height:44px; padding:8px 12px;
}

/* F7B4 RESULT-A L3780 */
.mk-s-result-L3780-background-ffd700-color-000- {
  background:#FFD700; color:#000; font-weight:bold; font-size:1rem; padding:15px 24px; width:100%; border-radius:8px; border:none; cursor:pointer; margin-bottom:14px; letter-spacing:0.04em;
}

/* F7B4 RESULT-A L3779 */
.mk-s-result-L3779-color-rgba-200-194-180-0-88- {
  color:rgba(200,194,180,0.88); font-size:0.88rem; line-height:1.6; margin-bottom:26px;
}

/* F7B4 RESULT-A L3778 */
.mk-s-result-L3778-color-ddd-font-size-0-98rem- {
  color:#ddd; font-size:0.98rem; line-height:1.7; margin-bottom:12px;
}

/* F7B4 RESULT-A L3777 */
.mk-s-result-L3777-color-ffd700-font-family-cin {
  color:#FFD700; font-family:'Cinzel', serif; font-size:clamp(1.15rem, 3.5vw, 1.45rem); margin-bottom:14px; letter-spacing:0.06em; font-weight:700; line-height:1.35;
}

/* F7B4 RESULT-A L3776 */
.mk-s-result-L3776-position-absolute-top-15px-r {
  position:absolute; top:15px; right:20px; background:transparent; border:none; color:#aaa; font-size:24px; cursor:pointer; line-height:1;
}

/* F7B4 RESULT-A L3775 */
.mk-s-result-L3775-background-111-border-1px-so {
  background:#111; border: 1px solid #FFD700; border-radius:15px; padding:36px 28px; width:min(92vw, 480px); max-width:480px; text-align:center; box-shadow:0 25px 60px rgba(0,0,0,0.9); position:relative; box-sizing:border-box; margin:auto;
}

/* F7B4 RESULT-B L3774 */
.mk-s-result-L3774-display-none-position-fixed- {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,0.85); z-index:20000; backdrop-filter:blur(10px); justify-content:center; align-items:center;
}

/* F7B4 RESULT-B L3753 */
.mk-s-result-L3753-display-none-z-index-20013 {
  display:none; z-index:20013;
}

/* F7B4 RESULT-B L3733 */
.mk-s-result-L3733-display-none-z-index-20012 {
  display:none; z-index:20012;
}

/* F7B4 RESULT-B L3712 */
.mk-s-result-L3712-display-none-z-index-20011 {
  display:none; z-index:20011;
}

/* F7B4 RESULT-B L3692 */
.mk-s-result-L3692-display-none-z-index-20010 {
  display:none; z-index:20010;
}

/* F7B4 RESULT-A L3681 */
.mk-s-result-L3681-color-555-font-size-0-75rem- {
  color: #555; font-size: 0.75rem; margin-top: 15px;
}

/* F7B4 RESULT-B L3678 */
.mk-s-result-L3678-display-block-width-100-box- {
  display:block; width: 100%; box-sizing:border-box; padding: 18px; background: linear-gradient(90deg, #FF4500, #FF8C00); border: none; border-radius: 10px; color: #fff; font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: bold; cursor: pointer; box-shadow: 0 10px 20px rgba(255,69,0,0.4); transition: transform 0.2s; letter-spacing: 2px; text-decoration:none;
}

/* F7B4 RESULT-B L3676 */
.mk-s-result-L3676-display-block-width-100-box- {
  display:block; width: 100%; box-sizing:border-box; padding: 18px; background: linear-gradient(90deg, #555, #777); border: none; border-radius: 10px; color: #fff; font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: bold; cursor: not-allowed; letter-spacing: 2px; text-decoration:none; pointer-events:none;
}

/* F7B4 RESULT-A L3667 */
.mk-s-result-L3667-color-f3e6b8-font-size-1-6re {
  color:#F3E6B8; font-size:1.6rem; font-weight:700;
}

/* F7B4 RESULT-B L3666 */
.mk-s-result-L3666-color-ffd700-display-block-m {
  color:#FFD700; display:block; margin-bottom:8px; font-size:1.15rem;
}

/* F7B4 RESULT-A L3665 */
.mk-s-result-L3665-margin-bottom-24px-padding-1 {
  margin-bottom: 24px; padding:18px 16px; border:1px solid rgba(255,215,0,0.35); border-radius:14px; background:rgba(255,215,0,0.06);
}

/* F7B4 RESULT-A L3663 */
.mk-s-result-L3663-color-aaa-font-size-0-9rem-m {
  color:#aaa; font-size:0.9rem; margin-bottom:24px; font-style:italic;
}

/* F7B4 RESULT-A L3662 */
.mk-s-result-L3662-color-ffd700-font-family-cin {
  color:#FFD700; font-family:'Cinzel', serif; font-size:1.8rem; margin-bottom:5px; letter-spacing: 1px;
}

/* F7B4 RESULT-A L3658 */
.mk-s-result-L3658-margin-0-auto-16px-max-width {
  margin:0 auto 16px; max-width:100%;
}

/* F7B4 RESULT-A L3656 */
.mk-s-result-L3656-font-size-3-5rem-filter-drop {
  font-size: 3.5rem; filter: drop-shadow(0 0 20px rgba(255,215,0,0.6)); margin-bottom: 10px;
}

/* F7B4 RESULT-A L3655 */
.mk-s-result-L3655-position-absolute-top-15px-r {
  position:absolute; top:15px; right:20px; background:transparent; border:none; color:#777; font-size:28px; cursor:pointer; transition: color 0.3s;
}

/* F7B4 RESULT-A L3654 */
.mk-s-result-L3654-background-linear-gradient-1 {
  background:linear-gradient(145deg, #12101a, #0a0a0c); border: 1px solid #FFD700; border-radius:20px; padding:40px 30px; width:92%; text-align:center; box-shadow:0 0 50px rgba(255,215,0,0.15); position:relative; max-height:90vh; overflow-y:auto;
}

/* F7B4 RESULT-B L3653 */
.mk-s-result-L3653-display-none-position-fixed- {
  display:none; position:fixed; inset:0; background:rgba(5, 5, 8, 0.95); z-index:99999; backdrop-filter:blur(15px); flex-direction:column; justify-content:center; align-items:center; opacity:0; transition: opacity 0.4s ease;
}

/* F7B4 RESULT-B L3636 */
.mk-s-result-L3636-display-block-width-100-text {
  display:block; width:100%; text-align:center; cursor:not-allowed; opacity:0.85;
}

/* F7B4 RESULT-B L3624 */
.mk-s-result-L3624-text-decoration-none-display {
  text-decoration:none; display:block; text-align:center;
}

/* F7B4 RESULT-B L3556 */
.mk-s-result-L3556-color-d4af37-display-block-m {
  color:#D4AF37; display:block; margin-top:10px; font-weight:bold; font-style:normal;
}

/* F7B4 RESULT-A L3555 */
.mk-s-result-L3555-font-family-cinzel-serif-fon {
  font-family:'Cinzel', serif; font-size:0.95rem; line-height:1.7; font-style:italic; margin:0;
}

/* F7B4 RESULT-A L3554 */
.mk-s-result-L3554-border-top-1px-solid-333-pad {
  border-top: 1px solid #333; padding-top: 25px; text-align: center;
}

/* F7B4 RESULT-A L3552 */
.mk-s-result-L3552-margin-0 {
  margin:0;
}

/* F7B4 RESULT-B L3550 */
.mk-s-result-L3550-color-d4af37-display-block-m {
  color:#D4AF37; display:block; margin-bottom: 14px; font-size:1.1rem;
}

/* F7B4 RESULT-A L3549 */
.mk-s-result-L3549-background-rgba-212-175-55-0 {
  background: rgba(212, 175, 55, 0.06); border-left: 4px solid #D4AF37; padding: 20px; text-align: left; margin-bottom: 25px; border-radius: 0 8px 8px 0;
}

/* F7B4 RESULT-A L3547 */
.mk-s-result-L3547-margin-0 {
  margin:0;
}

/* F7B4 RESULT-B L3546 */
.mk-s-result-L3546-color-d4af37-display-block-m {
  color:#D4AF37; display:block; margin-bottom: 12px; font-size:1.1rem;
}

/* F7B4 RESULT-A L3545 */
.mk-s-result-L3545-background-rgba-255-69-0-0-1 {
  background: rgba(255, 69, 0, 0.1); border-left: 4px solid #FF4500; padding: 20px; text-align: left; margin-bottom: 22px; border-radius: 0 8px 8px 0;
}

/* F7B4 RESULT-B L3540 */
.mk-s-result-L3540-display-none {
  display:none;
}

/* F7B4 RESULT-A L3506 */
.mk-s-result-L3506-color-888 {
  color:#888;
}

/* F7B4 RESULT-A L3505 */
.mk-s-result-L3505-color-ffd700 {
  color:#FFD700;
}

/* F7B4 RESULT-B L3503 */
.mk-s-result-L3503-display-flex-align-items-cen {
  display:flex;align-items:center;gap:6px;padding:5px 12px;font-size:0.76rem;color:#D4AF37;border-bottom:1px solid rgba(212,175,55,0.15);font-family:'Cinzel',serif;
}

/* F7B4 RESULT-B L3015 */
.mk-s-result-L3015-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-A L3007 */
.mk-s-result-L3007-width-100-margin-top-10px-pa {
  width: 100%; margin-top: 10px; padding: 10px; background: transparent; border: 1px solid rgba(255, 215, 0, 0.28); border-radius: 8px; color: rgba(232, 226, 214, 0.88); font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
}

/* F7B4 RESULT-A L3003 */
.mk-s-result-L3003-width-100-margin-top-15px-pa {
  width: 100%; margin-top: 15px; padding: 10px; background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.5); border-radius: 8px; color: #FFD700; font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px;
}

/* F7B4 RESULT-A L3002 */
.mk-s-result-L3002-opacity-35 {
  opacity:.35;
}

/* F7B4 RESULT-A L2991 */
.mk-s-result-L2991-opacity-35 {
  opacity:.35;
}

/* F7B4 RESULT-A L2989 */
.mk-s-result-L2989-position-relative {
  position: relative;
}

/* F7B4 RESULT-A L2987 */
.mk-s-result-L2987-opacity-35 {
  opacity:.35;
}

/* F7B4 RESULT-A L2985 */
.mk-s-result-L2985-position-relative {
  position: relative;
}

/* F7B4 RESULT-A L2978 */
.mk-s-result-L2978-width-20px-height-20px-borde {
  width:20px;height:20px;border-width:2px;
}

/* F7B4 RESULT-B L2977 */
.mk-s-result-L2977-display-none {
  display:none;
}

/* F7B4 RESULT-B L2965 */
.mk-s-result-L2965-position-relative-overflow-h {
  position: relative; overflow: hidden;
}

/* F7B4 RESULT-B L2939 */
.mk-s-result-L2939-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-B L2920 */
.mk-s-result-L2920-display-none {
  display:none;
}

/* F7B4 RESULT-A L2907 */
.mk-s-result-L2907-margin-top-20px-color-777-fo {
  margin-top: 20px; color: #777; font-size: 0.9rem; letter-spacing: 2px;
}

/* F7B4 RESULT-A L2903 */
.mk-s-result-L2903-color-ffd700-font-weight-bol {
  color: #FFD700; font-weight: bold;
}

/* F7B4 RESULT-A L2901 */
.mk-s-result-L2901-color-ddd-font-family-cinzel {
  color: #ddd; font-family: 'Cinzel', serif; font-size: 1.2rem; line-height: 1.8; font-style: italic; position: relative; z-index: 1;
}

/* F7B4 RESULT-A L2899 */
.mk-s-result-L2899-margin-80px-auto-padding-0-2 {
  margin: 80px auto; padding: 0 20px; text-align: center; position: relative;
}

/* F7B4 RESULT-A L2849 */
.mk-s-result-L2849-background-444-color-ddd-imp {
  background:#444;color:#ddd!important;
}

/* F7B4 RESULT-B L2766 */
.mk-s-result-L2766-display-inline-block-backgro {
  display:inline-block;background:transparent;border:1px solid rgba(200,168,74,0.45);border-radius:10px;color:#c8a84a;font-family:'Inter',Helvetica,Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:0.08em;padding:13px 28px;cursor:pointer;position:relative;z-index:10;text-decoration:none;pointer-events:auto;
}

/* F7B4 RESULT-A L2759 */
.mk-s-result-L2759-text-align-center-margin-bot {
  text-align:center;margin-bottom:28px;position:relative;z-index:10;
}

/* F7B4 RESULT-A L2753 */
.mk-s-result-L2753-background-transparent-borde {
  background:transparent;border:1px solid rgba(200,168,74,0.45);border-radius:10px;color:#c8a84a;font-family:'Inter',Helvetica,Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:0.08em;padding:13px 28px;cursor:pointer;position:relative;z-index:10;pointer-events:auto;
}

/* F7B4 RESULT-A L2741 */
.mk-s-result-L2741-text-align-center-margin-bot {
  text-align:center;margin-bottom:28px;position:relative;z-index:10;
}

/* F7B4 RESULT-A L2716 */
.mk-s-result-L2716-color-c8a84a-filter-none-opa {
  color:#c8a84a;filter:none;opacity:1;font-size:8px;letter-spacing:.12em;
}

/* F7B4 RESULT-A L2706 */
.mk-s-result-L2706-color-4ade80-font-size-8px-l {
  color:#4ade80;font-size:8px;letter-spacing:.12em;
}

/* F7B4 RESULT-A L2546 */
.mk-s-result-L2546-position-relative-height-160 {
  position: relative; height: 160px; width: 100%;
}

/* F7B4 RESULT-A L2444 */
.mk-s-result-L2444-text-align-center {
  text-align:center;
}

/* F7B4 RESULT-B L2310 */
.mk-s-result-L2310-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-B L2309 */
.mk-s-result-L2309-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-B L2308 */
.mk-s-result-L2308-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-A L2213 */
.mk-s-result-L2213-color-888-font-style-italic- {
  color:#888;font-style:italic;padding:12px 0;
}

/* F7B4 RESULT-A L2125 */
.mk-s-result-L2125-scroll-margin-top-100px {
  scroll-margin-top: 100px;
}

/* F7B4 RESULT-B L2105 */
.mk-s-result-L2105-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-B L2104 */
.mk-s-result-L2104-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-B L2102 */
.mk-s-result-L2102-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-A L2002 */
.mk-s-result-L2002-max-width-280px-margin-22px- {
  max-width:280px;margin:22px auto 0;
}

/* F7B4 RESULT-A L1989 */
.mk-s-result-L1989-margin-top-20px-color-d4af37 {
  margin-top:20px;color:#D4AF37;font-size:0.85rem;letter-spacing:0.1em;
}

/* F7B4 RESULT-A L1924 */
.mk-s-result-L1924-margin-top-12px {
  margin-top:12px;
}

/* F7B4 RESULT-A L1769 */
.mk-s-result-L1769-scroll-margin-top-100px {
  scroll-margin-top: 100px;
}

/* F7B4 RESULT-A L1724 */
.mk-s-result-L1724-scroll-margin-top-100px {
  scroll-margin-top: 100px;
}

/* F7B4 RESULT-A L1650 */
.mk-s-result-L1650-grid-area-full-width {
  grid-area: full_width;
}

/* F7B4 RESULT-A L1636 */
.mk-s-result-L1636-grid-area-profile-bottom {
  grid-area: profile_bottom;
}

/* F7B4 RESULT-A L1625 */
.mk-s-result-L1625-grid-area-profile-top {
  grid-area: profile_top;
}

/* F7B4 RESULT-A L1612 */
.mk-s-result-L1612-grid-area-radar {
  grid-area: radar;
}

/* F7B4 RESULT-A L1609 */
.mk-s-result-L1609-background-transparent-borde {
  background:transparent;border:none;box-shadow:none;padding:0;
}

/* F7B4 RESULT-B L1605 */
.mk-s-result-L1605-display-none-important {
  display:none!important;
}

/* F7B4 RESULT-A L1501 */
.mk-s-result-L1501-margin-0-75rem-0-1rem-paddin {
  margin:0.75rem 0 1rem;padding:0.9rem 1.1rem;border:1px solid rgba(212,175,55,0.45);border-radius:12px;background:rgba(20,16,8,0.72);color:#F5E6C8;font-family:Georgia,'Times New Roman',serif;line-height:1.55;
}

/* F7B4 RESULT-B L1365 */
.mk-s-result-L1365-display-none {
  display:none;
}

/* F7B4 RESULT-A L1362 */
.mk-s-result-L1362-width-22px-height-22px-borde {
  width:22px;height:22px;border-width:2px;
}

/* F7B4 RESULT-A L1326 */
.mk-s-result-L1326-margin-top-6px-font-size-13p {
  margin-top:6px;font-size:13px;color:var(--muted);
}

/* F7B4 RESULT-A L1325 */
.mk-s-result-L1325-margin-top-10px-font-size-13 {
  margin-top:10px;font-size:13px;color:var(--muted);
}

/* ===== MASTER_K F7B4 RESULT-A/B BEGIN ===== */
/* JS state helpers (RESULT-B class toggles) */
.mk-r-is-hidden { display: none !important; }
.mk-r-is-flex { display: flex !important; }
.mk-r-is-block { display: block !important; }
body.mk-r-no-scroll { overflow: hidden !important; }
/* ===== MASTER_K F7B4 RESULT-A/B END ===== */

/* F7B5 finite element color map (ELEMENT_COLORS + fallback) */

/* Case1/Case2: override a9 gradient / bare fill with exact ELEMENT_COLORS */

.a9-energy-fill.mk-element-wood,
.ebar-fill.mk-element-wood {
  background-image: none;
  background-color: #4ade80;
}

.a9-energy-fill.mk-element-fire,
.ebar-fill.mk-element-fire {
  background-image: none;
  background-color: #f87171;
}

.a9-energy-fill.mk-element-earth,
.ebar-fill.mk-element-earth {
  background-image: none;
  background-color: #d4a853;
}

.a9-energy-fill.mk-element-metal,
.ebar-fill.mk-element-metal {
  background-image: none;
  background-color: #cbd5e1;
}

.a9-energy-fill.mk-element-water,
.ebar-fill.mk-element-water {
  background-image: none;
  background-color: #60a5fa;
}

.a9-energy-fill.mk-element-fallback,
.ebar-fill.mk-element-fallback {
  background-image: none;
  background-color: #D4AF37;
}

/* ==== F7B6 RESULT-E externalized style blocks (preserve order B1→B2→B3) ==== */

/* ---- F7B6 RESULT style block 1 (sha 9e471dbcfeb1) ---- */

/* ---- Dynamic Welcome Oracle Modal ---- */
    #welcome-oracle-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 100050;
      background: rgba(4, 4, 12, 0.92);
      backdrop-filter: blur(18px);
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
      opacity: 0;
      transition: opacity 0.45s ease;
    }
    #welcome-oracle-modal.is-visible {
      display: flex;
      opacity: 1;
    }
    #welcome-oracle-modal.is-fading {
      opacity: 0;
      pointer-events: none;
    }
    .welcome-oracle-panel {
      max-width: 480px;
      width: min(92vw, 480px);
      margin-left: auto;
      margin-right: auto;
      padding: 44px 38px 36px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      border-radius: 16px;
      background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.08) 0%, rgba(10, 10, 18, 0.96) 55%);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 215, 0, 0.12);
      text-align: center;
    }
    .welcome-oracle-title {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: clamp(1.35rem, 3.5vw, 1.75rem);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin: 0 0 24px;
      line-height: 1.35;
    }
    .welcome-oracle-body {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.15rem;
      line-height: 1.8;
      color: #e0e0e0;
      margin: 0 0 32px;
      text-align: center;
    }
    .welcome-oracle-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 28px;
      border: 1px solid rgba(255, 215, 0, 0.65);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(138, 96, 16, 0.28) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: box-shadow 0.28s ease, transform 0.2s ease, border-color 0.28s ease;
    }
    .welcome-oracle-btn:hover {
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
      border-color: rgba(255, 215, 0, 0.85);
      transform: translateY(-1px);
    }
    body.welcome-oracle-open {
      overflow: hidden;
    }

    /* VIP Premium Typography — Cinzel headings + Cormorant manuscript body */
    .section-title,
    .premium-chapters-heading,
    .chapter-header,
    .destiny-accordion-title,
    .destiny-accordion-header,
    .chapter-vip-enter,
    .oracle-manual-panel .section-title,
    #web-reading-container .section-title {
      font-family: 'Cinzel', serif !important;
    }
    .vip-manuscript-body,
    .chapter-report-body,
    .chapter-report-body p,
    .destiny-accordion-body.chapter-report-body,
    .destiny-accordion-body.chapter-report-body p,
    .chapter-teaser-content,
    .reading-room-body,
    .reading-room-body p {
      font-family: 'Cormorant Garamond', serif !important;
      font-size: 1.15rem;
      line-height: 1.8;
      color: #e0e0e0;
    }
    .premium-chapters-section { margin: 20px 0; }
    /* FREE UNIFIED COMPOSITION SEAL 05 */
    .free-primary-cta-section { margin: 28px 0 12px; text-align: center; }
    .free-primary-cta-btn {
      display: inline-block; width: 100%; max-width: 420px;
      padding: 14px 22px; border-radius: 12px; border: 1px solid rgba(212,175,55,0.55);
      background: linear-gradient(180deg, rgba(212,175,55,0.22), rgba(20,16,8,0.85));
      color: #F5E6C8; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
    }
    .free-primary-cta-btn:hover { border-color: #D4AF37; box-shadow: 0 0 18px rgba(212,175,55,0.25); }

    /* FREE Daily Decision Brief CTA (#cw-day) — restore dark/gold chrome (was unstyled browser default white) */
    #cw-day .mk-daily-alerts-btn,
    #enable-push-btn.mk-daily-alerts-btn {
      appearance: none;
      -webkit-appearance: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      box-sizing: border-box;
      width: 100%;
      max-width: 28rem;
      margin: 1.15rem auto 0.35rem;
      padding: 0.9rem 1.35rem;
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.55);
      background: linear-gradient(180deg, rgba(212, 175, 55, 0.22), rgba(20, 16, 8, 0.88));
      color: #F5E6C8;
      font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
      font-size: clamp(0.78rem, 2.4vw, 0.92rem);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 1.35;
      text-align: center;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: anywhere;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
    }
    #cw-day .mk-daily-alerts-btn:hover:not(:disabled),
    #enable-push-btn.mk-daily-alerts-btn:hover:not(:disabled) {
      border-color: #D4AF37;
      box-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
      filter: brightness(1.06);
    }
    #cw-day .mk-daily-alerts-btn:focus-visible,
    #enable-push-btn.mk-daily-alerts-btn:focus-visible {
      outline: 2px solid rgba(212, 175, 55, 0.75);
      outline-offset: 3px;
    }
    #cw-day .mk-daily-alerts-btn:active:not(:disabled),
    #enable-push-btn.mk-daily-alerts-btn:active:not(:disabled) {
      transform: translateY(1px);
      filter: brightness(0.98);
    }
    #cw-day .mk-daily-alerts-btn.is-enabled,
    #enable-push-btn.mk-daily-alerts-btn.is-enabled,
    #cw-day .mk-daily-alerts-btn:disabled {
      cursor: default;
      border-color: rgba(74, 222, 128, 0.5);
      background: rgba(74, 222, 128, 0.12);
      color: #86efac;
      box-shadow: none;
      filter: none;
    }
    @media (max-width: 560px) {
      #cw-day .mk-daily-alerts-btn,
      #enable-push-btn.mk-daily-alerts-btn {
        max-width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
      }
    }

    /* FREE EN Risk Matrix CTA (#cw-day) — secondary dark/gold (was browser-default white).
       Hierarchy: Daily Brief remains primary; this control stays quieter and less filled. */
    #cw-day #enLeadAccessOpenBtn.mk-en-lead-open-btn,
    #cw-day .mk-en-lead-open-btn {
      appearance: none;
      -webkit-appearance: none;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      width: 100%;
      max-width: 28rem;
      margin: 0.45rem auto 0.85rem;
      padding: 0.7rem 1.15rem;
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.38);
      background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(14, 12, 8, 0.92));
      color: #E2D1B3;
      font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
      font-size: clamp(0.72rem, 2.2vw, 0.84rem);
      font-weight: 600;
      letter-spacing: 0.03em;
      line-height: 1.35;
      text-align: center;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: anywhere;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
    }
    #cw-day #enLeadAccessOpenBtn.mk-en-lead-open-btn:hover,
    #cw-day .mk-en-lead-open-btn:hover {
      border-color: rgba(212, 175, 55, 0.62);
      box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
      color: #F5E6C8;
      filter: brightness(1.04);
    }
    #cw-day #enLeadAccessOpenBtn.mk-en-lead-open-btn:focus-visible,
    #cw-day .mk-en-lead-open-btn:focus-visible {
      outline: 2px solid rgba(212, 175, 55, 0.7);
      outline-offset: 3px;
    }
    #cw-day #enLeadAccessOpenBtn.mk-en-lead-open-btn:active,
    #cw-day .mk-en-lead-open-btn:active {
      transform: translateY(1px);
      filter: brightness(0.97);
    }
    @media (max-width: 560px) {
      #cw-day #enLeadAccessOpenBtn.mk-en-lead-open-btn,
      #cw-day .mk-en-lead-open-btn {
        max-width: 100%;
        padding: 0.65rem 0.9rem;
        font-size: 0.74rem;
        letter-spacing: 0.02em;
      }
    }
    .dtl-hero-daily-note {
      margin: 12px 0 4px; line-height: 1.65; color: rgba(245,230,200,0.92); font-size: 0.95rem;
    }
    .dtl-hero-daily-label {
      margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
      color: rgba(212,175,55,0.75);
    }
    .dtl-hero-daily-note--demoted { display: none !important; }
    .dtl-desire-hook {
      margin: 12px 0 4px;
      text-align: left;
      max-width: 36rem;
      margin-left: auto;
      margin-right: auto;
    }
    .dtl-desire-hook-line,
    .dtl-desire-reality-line,
    .dtl-desire-decision-line {
      margin: 0 0 0.55rem;
      line-height: 1.65;
      color: rgba(245, 230, 200, 0.92);
      font-size: 0.95rem;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .dtl-desire-hook-line { font-weight: 600; color: rgba(250, 240, 220, 0.96); }
    .dtl-desire-decision-line {
      color: rgba(226, 209, 179, 0.88);
      font-size: 0.9rem;
    }
    @media (max-width: 480px) {
      .dtl-desire-hook-line,
      .dtl-desire-reality-line,
      .dtl-desire-decision-line {
        font-size: 0.88rem;
        line-height: 1.6;
      }
    }
    .dtl-flow-explore-link {
      display: inline-block;
      margin-top: 0.85rem;
      padding: 0.55rem 1rem;
      border: 1px solid rgba(212, 175, 55, 0.45);
      border-radius: 8px;
      color: #E2D1B3;
      font-size: 0.88rem;
      font-weight: 650;
      letter-spacing: 0.03em;
      text-decoration: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .dtl-flow-explore-link:hover {
      border-color: #D4AF37;
      box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
      color: #F5E6C8;
    }
    .free-collapse-toggle {
      width: 100%; text-align: left; background: transparent; border: 1px solid rgba(212,175,55,0.28);
      color: #E2D1B3; padding: 10px 14px; border-radius: 10px; cursor: pointer; margin-bottom: 12px;
    }
    .free-collapse-panel[hidden] { display: none !important; }
    .free-unified-hidden { display: none !important; }
    /* FREE unified funnel: demote duplicate mid-page paywall CTAs (DOM preserved). */
    .free-unified-cta-demoted { display: none !important; }
    .mk-conversion-framing--sigil {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.85rem;
      max-width: 28rem;
      margin: 0 auto;
      text-align: center;
    }
    .mk-conversion-framing--sigil .mk-conversion-guide__heading {
      margin: 0;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      line-height: 1.55;
      color: rgba(245, 230, 200, 0.88);
      letter-spacing: 0.02em;
    }
    /* Unpaid locked chapters: never reveal body via CSS/JS spill */
    .destiny-accordion-item.is-locked .destiny-accordion-panel,
    .destiny-accordion-item.is-locked .destiny-accordion-body,
    .destiny-accordion-item[data-locked="true"] .destiny-accordion-body {
      display: none !important;
    }
    .destiny-locked-preview .destiny-locked-preview-body,
    .destiny-chapter6-free-preview .destiny-chapter6-preview {
      display: block;
      padding: 2px 18px 16px;
      margin: 0;
      color: rgba(232, 228, 240, 0.88);
      font-size: 0.95rem;
      line-height: 1.65;
    }
    .destiny-locked-preview .destiny-locked-preview-body p,
    .destiny-chapter6-free-preview .destiny-chapter6-preview p {
      margin: 0 0 0.55em;
    }
    .destiny-locked-preview .destiny-locked-preview-body p:last-child {
      margin-bottom: 0;
    }
    .destiny-chapter6-free-preview .destiny-chapter6-preview p:last-child {
      margin-bottom: 0;
      opacity: 0.84;
      font-size: 0.9rem;
    }
    .ch1-struct-summary { margin: 0; }
    .destiny-accordion-item[data-chapter="1"] .destiny-accordion-body.chapter-report-body .ch1-struct-lead {
      margin: 0 0 8px;
      color: rgba(232, 228, 240, 0.88);
      font-size: 0.98rem;
      line-height: 1.5;
    }
    .ch1-struct-grid {
      display: grid;
      grid-template-columns: max-content 1fr;
      column-gap: 14px;
      row-gap: 4px;
      margin: 0;
    }
    .ch1-struct-grid dt {
      margin: 0;
      color: rgba(212, 175, 55, 0.86);
      font-size: 0.78rem;
      letter-spacing: 0.03em;
      line-height: 1.45;
    }
    .ch1-struct-grid dd {
      margin: 0;
      color: #e8e4d6;
      font-size: 0.98rem;
      line-height: 1.45;
    }
    .destiny-accordion-item[data-chapter="1"] .destiny-accordion-body.chapter-report-body .ch1-struct-note {
      margin: 8px 0 0;
      color: rgba(232, 228, 240, 0.78);
      font-size: 0.9rem;
    }
    body[data-ui-language] .destiny-accordion-item.is-locked .destiny-accordion-loading {
      display: none !important;
    }

    .premium-portal-panel { padding: 4px 2px 8px; }
    .premium-portal-label {
      margin: 14px 0 6px;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.85);
      font-weight: 600;
    }
    .premium-portal-label:first-child { margin-top: 0; }
    .premium-portal-signal,
    .premium-portal-meaning,
    .premium-portal-scope {
      color: rgba(232, 228, 240, 0.88);
      line-height: 1.65;
      margin: 0 0 4px;
      font-size: 0.95rem;
    }
    .premium-portal-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 4px;
      list-style: none;
      padding: 0;
    }
    .premium-portal-chip {
      border: 1px solid rgba(212, 175, 55, 0.35);
      color: rgba(232, 228, 240, 0.9);
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.8rem;
      line-height: 1.4;
      background: rgba(20, 18, 28, 0.35);
    }
    .premium-portal-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
      margin-top: 14px;
    }
    .premium-portal-nav-btn {
      background: transparent;
      border: 1px solid rgba(212, 175, 55, 0.55);
      color: #D4AF37;
      padding: 8px 14px;
      border-radius: 4px;
      cursor: pointer;
      font: inherit;
      letter-spacing: 0.02em;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    }
    .premium-portal-nav-btn:hover,
    .premium-portal-nav-btn:focus-visible {
      border-color: #D4AF37;
      color: #f0d78c;
      box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
      outline: none;
    }
    .premium-portal-locked {
      margin: 0;
      color: rgba(196, 188, 210, 0.85);
      line-height: 1.55;
      font-size: 0.92rem;
    }
    .vip-executive-card {
      margin: 28px 0;
      padding: 36px 40px;
      border-radius: 24px;
      border: 1px solid rgba(255, 215, 0, 0.45);
      background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.10) 0%, rgba(8, 8, 16, 0.92) 58%);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 36px rgba(255, 215, 0, 0.10);
      text-align: center;
    }
    .vip-executive-card h2 {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: clamp(1.35rem, 3vw, 1.85rem);
      letter-spacing: 0.08em;
      margin-bottom: 12px;
    }
    .vip-executive-card p {
      color: rgba(255, 255, 255, 0.78);
      line-height: 1.7;
      max-width: 560px;
      margin: 0 auto 22px;
    }
    .vip-executive-enter {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 1rem;
      padding: 14px 32px;
      border-radius: 999px;
      border: 1px solid rgba(255, 215, 0, 0.65);
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(138, 96, 16, 0.28) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .vip-executive-enter:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
    }
    .past-wave-chart-wrap {
      position: relative;
    }
    .past-wave-trend-hook {
      position: absolute;
      top: 8px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      max-width: 92%;
      padding: 6px 12px;
      border-radius: 999px;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-align: center;
      backdrop-filter: blur(8px);
      pointer-events: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .past-wave-trend-hook.is-falling {
      color: #ff6b6b;
      border: 1px solid rgba(255, 77, 79, 0.55);
      background: rgba(40, 8, 10, 0.82);
    }
    .past-wave-trend-hook.is-flat {
      color: #3dd68c;
      border: 1px solid rgba(61, 214, 140, 0.5);
      background: rgba(8, 28, 18, 0.82);
    }
    .past-wave-trend-hook.is-rising {
      color: #FFD700;
      border: 1px solid rgba(255, 215, 0, 0.55);
      background: rgba(28, 22, 8, 0.85);
    }
    .past-wave-peek-cta-wrap {
      display: flex;
      justify-content: center;
      margin: 22px 0 8px;
    }
    .past-wave-peek-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: 999px;
      border: 1px solid rgba(255, 215, 0, 0.65);
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(138, 96, 16, 0.28));
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .past-wave-peek-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
    }
    .premium-upsell-card {
      margin: 28px 0;
      padding: 32px 36px;
      border-radius: 20px;
      border: 1px solid rgba(255, 215, 0, 0.28);
      background: rgba(10, 10, 18, 0.75);
      text-align: center;
    }
    .premium-chapters-heading {
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 1.3rem;
      letter-spacing: 0.06em;
      margin: 0 0 18px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    }
    .chapter-wrapper {
      display: block;
      border: 1px solid rgba(255, 215, 0, 0.22);
      padding: 0;
      margin: 15px 0;
      border-radius: 8px;
      background: rgba(15, 15, 15, 0.8);
      text-decoration: none;
      color: inherit;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
      overflow: hidden;
    }
    .chapter-wrapper--clickable { cursor: pointer; }
    .chapter-wrapper--clickable:hover {
      border-color: rgba(255, 215, 0, 0.45);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
      transform: translateY(-1px);
    }
    .chapter-header-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 20px;
      margin: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      text-align: left;
      color: inherit;
      font: inherit;
    }
    .chapter-header {
      color: #FFD700;
      font-family: 'Cinzel', serif;
      margin: 0;
      font-size: 1.15rem;
      letter-spacing: 0.04em;
      flex: 1;
    }
    .chapter-chevron {
      color: rgba(255, 215, 0, 0.75);
      font-size: 0.85rem;
      transition: transform 0.28s ease;
      flex-shrink: 0;
    }
    .chapter-wrapper.is-open .chapter-chevron {
      transform: rotate(180deg);
    }
    .chapter-body-panel {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.4s ease;
    }
    .chapter-wrapper.is-open .chapter-body-panel {
      grid-template-rows: 1fr;
    }
    .chapter-body-inner {
      overflow: hidden;
      min-height: 0;
    }
    .chapter-wrapper.is-open .chapter-body-inner {
      padding: 0 20px 20px;
    }
    .chapter-wrapper--locked .chapter-body-panel {
      display: block;
    }
    .chapter-wrapper--locked .chapter-body-inner {
      padding: 0 20px 20px;
      position: relative;
    }
    html[lang="ko"] .chapter-header,
    html[lang="ja"] .chapter-header,
    html[lang="ko"] .premium-subhead,
    html[lang="ja"] .premium-subhead,
    html[lang="ko"] #premiumChapterOneContent h3,
    html[lang="ja"] #premiumChapterOneContent h3,
    html[lang="ko"] .vip-tts-content h3.premium-subhead,
    html[lang="ja"] .vip-tts-content h3.premium-subhead,
    html[lang="ko"] .vip-tts-content h3.tts-paragraph,
    html[lang="ja"] .vip-tts-content h3.tts-paragraph,
    html[lang="ko"] .the-vault-generate-btn,
    html[lang="ja"] .the-vault-generate-btn,
    html[lang="ko"] .card-title,
    html[lang="ja"] .card-title,
    html[lang="ko"] .section-title,
    html[lang="ja"] .section-title {
      text-transform: none !important;
      letter-spacing: 0.02em;
    }
    .chapter-vip-enter {
      margin: 0;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.92rem;
      font-style: italic;
    }
    .chapter-teaser-fade {
      position: relative;
      max-height: 7.5em;
      overflow: hidden;
    }
    .chapter-teaser-preview {
      position: relative;
      max-height: none;
      overflow: visible;
    }
    .chapter-teaser-preview .chapter-teaser-content {
      color: #ddd;
      line-height: 1.6;
    }
    .chapter-body-full {
      margin: 0;
    }
    .chapter-body-paragraph {
      margin: 0 0 1.1rem;
      color: #ddd;
      line-height: 1.75;
      font-size: 0.97rem;
    }
    .chapter-body-paragraph:last-child {
      margin-bottom: 0;
    }
    .premium-subhead,
    #premiumChapterOneContent h3,
    .vip-tts-content h3.premium-subhead,
    .vip-tts-content h3.tts-paragraph {
      font-family: 'Cinzel', serif !important;
      color: #D4AF37 !important;
      font-size: 1.12rem !important;
      letter-spacing: 0.06em;
      margin: 1.5rem 0 0.65rem !important;
      text-transform: uppercase;
      line-height: 1.35;
      display: block;
    }
    #premiumChapterOneContent p,
    .vip-tts-content p.tts-paragraph {
      margin: 0 0 1.05rem;
      color: #ddd;
      line-height: 1.75;
      font-size: 0.97rem;
      display: block;
    }
    .vip-tts-toolbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 16px;
      padding: 10px 14px;
      border: 1px solid rgba(212, 175, 55, 0.35);
      border-radius: 10px;
      background: rgba(10, 8, 16, 0.55);
    }
    .vip-tts-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.55);
      background: rgba(212, 175, 55, 0.12);
      color: #D4AF37;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
    }
    .vip-tts-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .vip-tts-status {
      font-size: 0.82rem;
      color: rgba(212, 175, 55, 0.75);
      font-style: italic;
    }
    .vip-tts-content .tts-paragraph { margin: 0 0 1rem; }
    .vip-tts-content.tts-is-narrating .tts-sentence {
      opacity: 0.45;
      color: rgba(224, 224, 224, 0.72);
      transition: opacity 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
    }
    .vip-tts-content.tts-is-narrating .tts-sentence.active-sentence,
    .vip-tts-content.tts-is-narrating .tts-sentence.active-gold-text,
    .vip-tts-content.tts-is-narrating .tts-sentence.tts-active,
    .tts-sentence.active-gold-text,
    .tts-sentence.tts-active,
    .tts-active {
      opacity: 1;
      color: #D4AF37;
      text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
      background-color: rgba(255, 235, 59, 0.4);
      border-radius: 3px;
    }
    .chapter-teaser-content {
      margin: 0;
      font-size: 0.95rem;
    }
    .chapter-teaser-blur {
      position: absolute;
      left: 0;
      right: 0;
      top: 3.1em;
      bottom: 0;
      pointer-events: none;
      background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0) 0%,
        rgba(15, 15, 15, 0.55) 35%,
        rgba(15, 15, 15, 0.92) 100%
      );
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
    .chapter-wrapper--unlocked {
      border-color: rgba(255, 215, 0, 0.42);
      box-shadow: 0 0 22px rgba(255, 215, 0, 0.08);
    }
    .chapter-wrapper--locked {
      cursor: pointer;
    }
    .chapter-wrapper--locked .chapter-teaser-content {
      height: 4.5em;
      overflow: hidden;
      mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
      filter: blur(3.5px);
      color: #bbb;
      line-height: 1.5;
      pointer-events: none;
    }
    .chapter-teaser-lock {
      position: absolute;
      right: 10px;
      bottom: 6px;
      font-size: 0.8rem;
      opacity: 0.28;
      filter: grayscale(0.4);
      pointer-events: none;
      line-height: 1;
    }
    .chapter-teaser-vip-badge {
      position: absolute;
      right: 28px;
      bottom: 5px;
      z-index: 2;
      pointer-events: none;
      display: inline-block;
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.42);
      background: rgba(12, 10, 18, 0.35);
      color: #D4AF37;
      font-family: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', Georgia, serif;
      font-size: 0.62rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      line-height: 1.35;
      white-space: nowrap;
      text-shadow: 0 0 8px rgba(212, 175, 55, 0.22);
    }
    .premium-master-cta {
      margin-top: 28px;
      padding: 32px 28px;
      text-align: center;
      border: 1px solid rgba(255, 215, 0, 0.28);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(255, 215, 0, 0.06) 0%, rgba(10, 10, 15, 0.85) 100%);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    .premium-master-cta-lead {
      margin: 0 0 6px;
      color: #aaa;
      font-size: 0.95rem;
      font-style: italic;
      letter-spacing: 0.03em;
    }
    .premium-master-cta-title {
      margin: 0 0 22px;
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 1.35rem;
      letter-spacing: 0.05em;
      line-height: 1.4;
    }
    .premium-master-cta-btn {
      display: inline-block;
      padding: 14px 36px;
      border: 1px solid rgba(255, 215, 0, 0.55);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 165, 0, 0.12) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease, filter 0.2s ease;
    }
    .premium-master-cta-btn:hover {
      color: #fff;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.32) 0%, rgba(255, 165, 0, 0.22) 100%);
      box-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
      transform: scale(1.04);
      filter: brightness(1.08);
    }

    /* ---- Viral Loop: Share & Unlock ---- */
    .vip-share-unlock {
      margin: 28px 0 0;
      padding: 34px 28px 32px;
      text-align: center;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(212, 175, 55, 0.45);
      border-radius: 16px;
      background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
        linear-gradient(165deg, rgba(18, 14, 28, 0.96) 0%, rgba(8, 6, 14, 0.98) 100%);
      box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(212, 175, 55, 0.12),
        inset 0 1px 0 rgba(255, 215, 0, 0.12);
    }
    .vip-share-unlock::before {
      content: '';
      position: absolute;
      inset: -40% auto auto 50%;
      width: 280px;
      height: 280px;
      margin-left: -140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 70%);
      pointer-events: none;
      animation: vipShareGlow 4.5s ease-in-out infinite;
    }
    @keyframes vipShareGlow {
      0%, 100% { opacity: 0.55; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.08); }
    }
    .vip-share-unlock-eyebrow {
      position: relative;
      margin: 0 0 10px;
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.85);
    }
    .vip-share-unlock-title {
      position: relative;
      margin: 0 0 14px;
      font-family: 'Cinzel', serif;
      font-size: clamp(1.35rem, 3.2vw, 1.75rem);
      letter-spacing: 0.06em;
      color: #FFD700;
      text-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
    }
    .vip-share-unlock-copy {
      position: relative;
      margin: 0 auto 24px;
      max-width: 520px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.12rem;
      line-height: 1.7;
      color: rgba(232, 228, 220, 0.88);
    }
    .vip-share-unlock-copy strong {
      color: #D4AF37;
      font-weight: 600;
    }
    .vip-share-unlock-rewards {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin: 0 0 22px;
    }
    .vip-share-reward-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.35);
      background: rgba(212, 175, 55, 0.08);
      color: #D4AF37;
      font-family: 'Cinzel', serif;
      font-size: 0.68rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .vip-share-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-width: 260px;
      padding: 16px 34px;
      border: 1px solid rgba(255, 215, 0, 0.7);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.28) 0%, rgba(184, 134, 11, 0.35) 55%, rgba(255, 215, 0, 0.18) 100%);
      color: #FFD700;
      font-family: 'Cinzel', serif;
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow:
        0 0 28px rgba(255, 215, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.25s ease;
    }
    .vip-share-btn:hover,
    .vip-share-btn:focus-visible {
      color: #fff8dc;
      transform: translateY(-2px);
      box-shadow:
        0 0 40px rgba(255, 215, 0, 0.5),
        0 12px 28px rgba(0, 0, 0, 0.4);
      outline: none;
    }
    .vip-share-btn:active {
      transform: translateY(0);
    }
    .vip-share-btn i {
      font-size: 1.15rem;
      filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.55));
    }
    .vip-share-toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%) translateY(20px);
      z-index: 100100;
      padding: 14px 22px;
      border-radius: 999px;
      border: 1px solid rgba(212, 175, 55, 0.55);
      background: rgba(10, 8, 16, 0.96);
      color: #D4AF37;
      font-family: 'Cinzel', serif;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.2);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .vip-share-toast.is-visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    @media (max-width: 560px) {
      .vip-share-unlock { padding: 28px 18px 26px; }
      .vip-share-btn { min-width: 0; width: 100%; }
    }

    /* —— THE VAULT (locked teaser + upsell) —— */
    .the-vault { margin: 28px 0 8px; }
    .mk-vision-discovery {
      margin: 28px 0 12px;
      padding: 22px 20px 24px;
      border: 1px solid rgba(212, 175, 55, 0.35);
      border-radius: 12px;
      background: linear-gradient(165deg, rgba(28, 24, 16, 0.92), rgba(12, 10, 8, 0.96));
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }
    .mk-vision-discovery__eyebrow {
      margin: 0 0 6px;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.85);
    }
    .mk-vision-discovery__title {
      margin: 0 0 10px;
      font-size: 1.15rem;
      color: #f3e6c0;
      font-weight: 600;
    }
    .mk-vision-discovery__title i {
      margin-right: 8px;
      color: #d4af37;
    }
    .mk-vision-discovery__body {
      margin: 0 0 10px;
      color: rgba(230, 220, 195, 0.88);
      line-height: 1.55;
      font-size: 0.95rem;
    }
    .mk-vision-discovery__status {
      margin: 0 0 12px;
      color: rgba(200, 190, 160, 0.75);
      font-size: 0.82rem;
    }
    .mk-vision-discovery__badge {
      display: inline-block;
      margin: 0 0 14px;
      padding: 4px 10px;
      border: 1px solid rgba(212, 175, 55, 0.4);
      border-radius: 999px;
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      color: #d4af37;
    }
    .mk-vision-discovery__cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 10px 18px;
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(212, 175, 55, 0.95), rgba(160, 120, 30, 0.95));
      color: #1a1408;
      font-weight: 700;
      text-decoration: none;
      letter-spacing: 0.02em;
    }
    .mk-vision-discovery__cta:hover {
      filter: brightness(1.06);
      color: #1a1408;
    }
    .the-vault-inner {
      text-align: center;
      padding: 36px 28px 34px;
      border-radius: 22px;
      border: 1px solid rgba(255, 215, 0, 0.4);
      background:
        radial-gradient(ellipse at top, rgba(255, 215, 0, 0.1) 0%, rgba(8, 6, 14, 0.94) 55%),
        rgba(10, 8, 16, 0.92);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 36px rgba(255, 215, 0, 0.1);
    }
    .the-vault-inner--locked {
      filter: saturate(0.85);
      opacity: 0.88;
      position: relative;
    }
    .the-vault-inner--locked::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 22px;
      background: rgba(4, 3, 8, 0.28);
      pointer-events: none;
    }
    .the-vault-eyebrow {
      font-family: 'Cinzel', serif;
      font-size: 0.72rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.8);
      margin: 0 0 12px;
      position: relative;
      z-index: 1;
    }
    .the-vault-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.55rem, 3.5vw, 2.1rem);
      letter-spacing: 0.18em;
      color: #FFD700;
      margin: 0 0 14px;
      position: relative;
      z-index: 1;
    }
    .the-vault-copy {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.12rem;
      line-height: 1.7;
      color: rgba(232, 228, 220, 0.78);
      max-width: 540px;
      margin: 0 auto 24px;
      position: relative;
      z-index: 1;
    }
    .the-vault-generate-btn {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-family: 'Cinzel', serif;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(232, 228, 220, 0.55);
      background: linear-gradient(135deg, rgba(80, 70, 40, 0.55) 0%, rgba(40, 35, 20, 0.75) 100%);
      border: 1px solid rgba(212, 175, 55, 0.35);
      border-radius: 999px;
      padding: 15px 24px;
      cursor: pointer;
      box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
    }
    .the-vault-generate-btn--locked:hover {
      border-color: rgba(255, 215, 0, 0.55);
      color: rgba(255, 215, 0, 0.85);
    }
    .vault-upsell-modal[hidden] { display: none !important; }
    .vault-upsell-modal {
      position: fixed;
      inset: 0;
      z-index: 120000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .vault-upsell-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(8px);
    }
    .vault-upsell-panel {
      position: relative;
      z-index: 1;
      width: min(440px, 100%);
      padding: 36px 28px 32px;
      border-radius: 20px;
      border: 1px solid rgba(255, 215, 0, 0.5);
      background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.12) 0%, rgba(10, 8, 16, 0.98) 60%);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 215, 0, 0.15);
      text-align: center;
    }
    .vault-upsell-close {
      position: absolute;
      top: 12px;
      right: 14px;
      background: transparent;
      border: 0;
      color: #D4AF37;
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
    }
    .vault-upsell-eyebrow {
      font-family: 'Cinzel', serif;
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(212, 175, 55, 0.75);
      margin: 0 0 10px;
    }
    .vault-upsell-title {
      font-family: 'Cinzel', serif;
      color: #FFD700;
      font-size: 1.45rem;
      letter-spacing: 0.06em;
      margin: 0 0 14px;
    }
    .vault-upsell-copy {
      font-family: 'Cormorant Garamond', serif;
      color: rgba(232, 228, 220, 0.85);
      font-size: 1.12rem;
      line-height: 1.65;
      margin: 0 0 24px;
    }
    .vault-upsell-cta { width: 100%; }
    /* PC 화면 강제 확장 (최종 안정화: VIP 2단 레이아웃 분리 확장) */
    @media (min-width: 768px) {
      /* 1. 일반 1단 레이아웃 (900px 유지로 가독성 확보) */
      .page, .dashboard-container, .main-content, .page-wrapper, .result-container,
      .vip-master-shell, .monthly-plan-shell {
        max-width: 900px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
      .premium-chapters-section, .past-wave-chart-wrap, .vip-executive-card {
        max-width: 880px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      /* 🌟 1-2. VIP 대시보드 전용 광활한 확장 (좌측 340px 메뉴 + 우측 본문을 위해 1200px 배정) 🌟 */
      .vip-dashboard-wrapper {
        max-width: 1200px !important;
        width: 96% !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      /* 2. 결제/모달 오버레이 — Flex 중앙 + 여백 [A13] · 컨텐츠 패널 제외 */
      #vip-paywall-modal,
      #month-detail-modal,
      .checkout-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        z-index: 999999 !important;
        margin: 0 !important;
        padding: 2rem !important;
        box-sizing: border-box !important;
        background: rgba(4, 4, 12, 0.85) !important;
        align-items: center !important;
        justify-content: center !important;
      }
      /* 결제/월별 모달 내부 패널 — relative + breathing room [A13] */
      #vip-paywall-modal > div,
      #month-detail-modal > .mk-month-modal-panel,
      .checkout-modal-overlay > .checkout-modal-box {
        max-width: 600px !important;
        width: 90% !important;
        height: auto !important;
        max-height: min(82vh, 900px) !important;
        margin: 5vh auto !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex-shrink: 0 !important;
      }

      /* 3. 허공에 뜬 햄버거 메뉴를 화면 우측 상단으로 핀 고정 */
      .suite-menu-anchor, #suiteMenuAnchor {
        position: fixed !important;
        top: 25px !important;
        right: 25px !important;
        z-index: 999999 !important;
        margin: 0 !important;
      }
    }


/* ---- F7B6 RESULT style block 2 (sha 8b691d7d9079) ---- */

#enLeadAccessBackdrop.en-lead-access-backdrop {
    position: fixed !important;
    inset: 0;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(4, 4, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.45s ease;
  }
  /* Closed: honor [hidden] over display:flex !important */
  #enLeadAccessBackdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
  }
  #enLeadAccessBackdrop.is-open {
    opacity: 1;
    z-index: 999999 !important;
  }
  #enLeadAccessBackdrop.is-closing {
    opacity: 0;
  }
  .en-lead-access-modal {
    margin: auto;
    max-height: 85vh;
    overflow-y: auto;
    width: min(420px, 100%);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(165deg, rgba(18, 16, 28, 0.96) 0%, rgba(8, 6, 14, 0.98) 100%);
    box-shadow: 0 0 48px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0;
  }
  #enLeadAccessBackdrop.is-open .en-lead-access-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .en-lead-access-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: transparent;
    border: none;
    color: #D4AF37;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .en-lead-access-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    color: #FFD700;
    margin: 0 0 12px;
    text-align: center;
  }
  .en-lead-access-copy {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 20px;
    text-align: center;
  }
  .en-lead-access-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .en-lead-access-input.is-error,
  .en-lead-sns-select.is-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
  }
  .en-lead-section {
    margin-bottom: 16px;
  }
  .en-lead-section-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(212, 175, 55, 0.85);
    margin: 0 0 8px;
    text-transform: uppercase;
  }
  .en-lead-domain-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
  }
  .en-lead-domain-pill {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .en-lead-domain-pill:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.65);
  }
  .en-lead-sns-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
  }
  .en-lead-sns-select {
    flex: 0 0 38%;
    max-width: 140px;
    box-sizing: border-box;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #FFD700;
    font-size: 0.82rem;
    margin-bottom: 10px;
  }
  .en-lead-sns-input {
    flex: 1 1 auto;
    margin-bottom: 10px;
  }
  .en-lead-access-guidance {
    margin: 4px 0 14px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(209, 213, 219, 0.72);
    font-style: italic;
  }
  .en-lead-legal-wrap {
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }
  .en-lead-legal-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .en-lead-legal-checkbox {
    accent-color: #D4AF37;
  }
  .en-lead-legal-label {
    font-size: 0.78rem;
    color: rgba(229, 231, 235, 0.92);
    line-height: 1.45;
  }
  .en-lead-legal-toggle {
    margin-left: 2px;
    background: none;
    border: none;
    color: #D4AF37;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0;
  }
  .en-lead-legal-panel {
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(229, 231, 235, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    padding: 0 10px;
  }
  .en-lead-legal-panel.is-open {
    max-height: 140px;
    overflow-y: auto;
    opacity: 0.92;
    padding: 8px 10px;
  }
  .en-lead-legal-label {
    cursor: pointer;
    flex: 1;
  }
  .en-lead-legal-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .en-lead-legal-error {
    margin: 8px 0 0;
    color: #ef4444;
    font-size: 0.74rem;
    display: none;
  }
  .en-lead-legal-error.is-visible {
    display: block;
  }
  .en-lead-legal-wrap.is-error {
    border-color: rgba(239, 68, 68, 0.88) !important;
    animation: enLeadLegalBlink 0.42s ease 0s 2;
  }
  @keyframes enLeadLegalBlink {
    0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); }
    100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  }
  .en-lead-access-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #0a0a0f;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: filter 0.25s ease;
  }
  .en-lead-access-submit:disabled {
    opacity: 0.6;
    cursor: wait;
  }
  .en-lead-access-pending {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: #FFD700;
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .en-lead-access-pending.is-visible {
    opacity: 1;
  }
  .en-lead-access-form-wrap.is-hidden {
    display: none;
  }


/* ---- F7B6 RESULT style block 3 (sha 27553ea8b7f9) ---- */

/* A14 floating section dots — positioning restored after CSP inline-style removal */
#mkDotNav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1500;
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: auto;
}
@media(max-width:767px){ #mkDotNav{ opacity:0 !important; pointer-events:none !important; } }
.mk-dot {
  width:10px;height:10px;border-radius:50%;
  background:rgba(212,175,55,0.35);border:1.5px solid rgba(212,175,55,0.55);
  cursor:pointer;transition:all 0.25s;position:relative;
  flex-shrink:0;
}
.mk-dot:hover,.mk-dot.is-active {
  background:#D4AF37;width:14px;height:14px;margin-left:-2px;
  box-shadow:0 0 8px 2px rgba(212,175,55,0.6);
}
.mk-dot-tip {
  position:absolute;right:22px;top:50%;transform:translateY(-50%);
  background:rgba(10,10,20,0.92);color:#D4AF37;font-size:0.7rem;
  padding:3px 8px;border-radius:4px;white-space:nowrap;border:1px solid rgba(212,175,55,0.35);
  pointer-events:none;opacity:0;transition:opacity 0.2s;font-family:'Cinzel',serif;letter-spacing:0.04em;
}
.mk-dot:hover .mk-dot-tip { opacity:1; }


/* ========================================================================
   MASTER K - RESULT RESPONSIVE NORMALIZATION F1 / F1A
   Strategy B: CSS-first fluid sizing + component mobile treatment
   ------------------------------------------------------------------------
   F1A continuity: fluid tokens approach desktop values at 1023 so
   1023->1024 and 767->768 do not cliff; chat-panel uses vh then dvh;
   mild tablet cosmic dampening inside <=1023 (stronger phone <=767).
   Scope: presentation only. Desktop >=1024 base selectors unchanged.
   Rails: 1023 / 767 / 430 / 359 (+ one landscape short-height guard).
   ======================================================================== */

:root {
  --mk-safe-left: env(safe-area-inset-left, 0px);
  --mk-safe-right: env(safe-area-inset-right, 0px);
  --mk-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mk-mobile-gutter: 20px;
  --mk-fab-clearance: 190px;
  --mk-hero-title-fluid: 3.8rem;
  --mk-hero-sub-fluid: 1.2rem;
  --mk-hero-name-fluid: 32px;
  --mk-hero-logo-fluid: 140px;
  --mk-hero-tracking: 6px;
  --mk-hero-sub-tracking: 5px;
  --mk-mobile-section-gap: 60px;
}

/* ---- Tablet + below: continuous fluid approach toward desktop ---- */
@media (width < 1024px) {
  :root {
    /* Curves calibrated so preferred values near 1023 ~= production desktop */
    --mk-mobile-gutter: 18px;
    --mk-mobile-section-gap: clamp(28px, 4.5vw + 12px, 56px);
    --mk-hero-title-fluid: clamp(2.05rem, 4.1vw + 1.18rem, 3.8rem);
    --mk-hero-sub-fluid: clamp(0.78rem, 0.92vw + 0.61rem, 1.2rem);
    --mk-hero-name-fluid: clamp(1.2rem, 2.25vw + 0.5rem, 2rem);
    --mk-hero-logo-fluid: clamp(78px, 8.15vw + 56px, 140px);
    --mk-hero-tracking: clamp(0.5px, 0.55vw + 0.4px, 6px);
    --mk-hero-sub-tracking: clamp(0.5px, 0.45vw + 0.4px, 5px);
    --mk-fab-clearance: clamp(128px, 18vw + 64px, 176px);
  }

  .hd {
    margin-bottom: var(--mk-mobile-section-gap);
  }

  .master-k-logo-wrapper {
    margin-bottom: 12px;
  }

  .master-k-main-logo {
    width: var(--mk-hero-logo-fluid) !important;
  }

  .force-mk-wrapper {
    margin-top: 6px;
    margin-bottom: 14px;
  }

  .force-mk-main {
    font-size: var(--mk-hero-title-fluid) !important;
    letter-spacing: var(--mk-hero-tracking) !important;
    line-height: 1.15 !important;
    max-width: 100%;
  }

  .force-mk-sub {
    font-size: var(--mk-hero-sub-fluid) !important;
    letter-spacing: var(--mk-hero-sub-tracking) !important;
    line-height: 1.45 !important;
    max-width: min(36rem, 100%);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .hd-name {
    font-size: var(--mk-hero-name-fluid);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .hd-meta {
    letter-spacing: 0.08em;
    line-height: 1.55;
    padding: 0 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dom-pill {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .page {
    padding-left: max(var(--mk-mobile-gutter), var(--mk-safe-left));
    padding-right: max(var(--mk-mobile-gutter), var(--mk-safe-right));
    padding-bottom: calc(var(--mk-fab-clearance) + var(--mk-safe-bottom));
  }

  #chatWidget {
    bottom: max(18px, var(--mk-safe-bottom)) !important;
    right: max(18px, var(--mk-safe-right)) !important;
    max-width: calc(100vw - 36px - var(--mk-safe-left) - var(--mk-safe-right));
    box-sizing: border-box;
  }

  .chat-fab {
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .chat-panel {
    width: min(374px, calc(100vw - 36px - var(--mk-safe-left) - var(--mk-safe-right)));
    /* Progressive enhancement: vh fallback first, dvh second */
    max-height: min(530px, calc(100vh - 96px - var(--mk-safe-bottom)));
    max-height: min(530px, calc(100dvh - 96px - var(--mk-safe-bottom)));
  }

  /* Mild tablet cosmic dampening (768-1023 inherits; phone overrides below) */
  .cosmic-watermark {
    opacity: 0.58 !important;
  }

  .animal-img {
    width: clamp(200px, 36vw, 440px) !important;
    height: clamp(200px, 36vw, 440px) !important;
  }

  .letter {
    font-size: clamp(4rem, 9vw, 8.5rem) !important;
    top: clamp(-100px, -12vw, -60px) !important;
  }

  .western-sign {
    font-size: clamp(6rem, 14vw, 14rem) !important;
    top: clamp(-360px, -42vw, -200px) !important;
  }
}

/* ---- Phone: spacing/FAB/cosmic only — hero type tokens stay continuous ---- */
@media (width < 768px) {
  :root {
    --mk-mobile-gutter: 16px;
    --mk-mobile-section-gap: clamp(24px, 3.2vw + 12px, 40px);
    --mk-fab-clearance: clamp(136px, 22vw + 56px, 172px);
  }

  .back-btn {
    margin-bottom: 20px;
  }

  .force-mk-wrapper {
    margin-top: 2px;
    margin-bottom: 10px;
  }

  .master-k-logo-wrapper {
    margin-bottom: 8px;
  }

  .dom-pill {
    margin-top: 12px;
    padding: 6px 16px;
  }

  /* Stronger phone cosmic dampening */
  .cosmic-watermark {
    opacity: 0.38 !important;
  }

  .cosmic-watermark .core-star {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 36px rgba(255, 215, 0, 0.7);
  }

  .cosmic-watermark .outer-ring {
    border-width: 2px !important;
  }

  .cosmic-watermark .inner-ring {
    border-width: 1.5px !important;
  }

  .animal-img {
    width: clamp(110px, 36vw, 280px) !important;
    height: clamp(110px, 36vw, 280px) !important;
  }

  .letter {
    font-size: clamp(2.8rem, 11vw, 5rem) !important;
    top: -52px !important;
  }

  .western-sign {
    font-size: clamp(3.6rem, 16vw, 6.5rem) !important;
    top: -150px !important;
  }

  #chatWidget {
    bottom: max(14px, var(--mk-safe-bottom)) !important;
    right: max(14px, var(--mk-safe-right)) !important;
    max-width: calc(100vw - 28px - var(--mk-safe-left) - var(--mk-safe-right));
  }

  .chat-fab {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

/* ---- Standard / large phone: gutters + cosmic only (no type cliffs) ---- */
@media (max-width: 430px) {
  :root {
    --mk-mobile-gutter: 14px;
    --mk-fab-clearance: clamp(140px, 28vw + 48px, 168px);
  }

  .force-mk-sub {
    max-width: 22rem;
  }

  .hd-meta {
    letter-spacing: 0.05em;
    font-size: 10px;
  }

  .cosmic-watermark {
    opacity: 0.32 !important;
  }

  .animal-img {
    width: clamp(96px, 34vw, 160px) !important;
    height: clamp(96px, 34vw, 160px) !important;
  }
}

/* ---- Emergency small floor ---- */
@media (max-width: 359px) {
  :root {
    --mk-mobile-gutter: 12px;
    --mk-fab-clearance: 148px;
  }

  .force-mk-main {
    letter-spacing: 0.5px !important;
  }

  .chat-fab {
    padding-left: 12px;
    padding-right: 12px;
    letter-spacing: 0.04em;
  }
}

/* ---- Short-height landscape: compress hero chrome, protect FAB ---- */
@media (width < 1024px) and (max-height: 480px) and (orientation: landscape) {
  :root {
    --mk-hero-title-fluid: clamp(1.45rem, 5.5vh, 2.15rem);
    --mk-hero-logo-fluid: clamp(52px, 14vh, 84px);
    --mk-mobile-section-gap: 16px;
    --mk-fab-clearance: clamp(96px, 28vh, 128px);
  }

  .page {
    padding-top: 20px;
  }

  .back-btn {
    margin-bottom: 8px;
  }

  .master-k-logo-wrapper,
  .force-mk-wrapper {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .hd {
    margin-bottom: 16px;
  }

  .dom-pill {
    margin-top: 8px;
  }

  .cosmic-watermark {
    opacity: 0.22 !important;
  }

  #chatWidget {
    bottom: max(10px, var(--mk-safe-bottom)) !important;
    right: max(12px, var(--mk-safe-right)) !important;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1B
   ------------------------------------------------------------------------
   Goal: One adaptive VVIP experience across all device sizes.
   CSS-only append. Does not delete prior rules.
   Relies on F1/F1A for hero continuity + FAB safe-area + phone/tablet cosmic.
   F1B recovers page width, type/card breathing, and nested width locks.
   Rails: 1023 / 767 / 430 / 359 (no new breakpoint sprawl).
   Desktop >=1024: hero remains production 3.8rem / 6px / 140px (base + F1A).
   ======================================================================== */

:root {
  --mk-page-max: min(1120px, 92vw);
  --mk-section-title-fluid: clamp(1.05rem, 0.55vw + 0.92rem, 1.35rem);
  --mk-body-fluid: clamp(0.875rem, 0.2vw + 0.82rem, 0.95rem);
  --mk-meta-fluid: clamp(0.65rem, 0.12vw + 0.6rem, 0.72rem);
  --mk-card-padding-fluid: clamp(18px, 1.8vw + 12px, 38px);
  --mk-card-gap-fluid: clamp(14px, 1.2vw + 8px, 22px);
  --mk-prose-max-ch: 74ch;
}

/* ---- 1. Global page width recovery (override 900px !important locks) ---- */
.page,
.dashboard-container,
.main-content,
.page-wrapper,
.result-container {
  max-width: var(--mk-page-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Nested width locks that kept content narrow inside a wider page */
.premium-chapters-section,
.past-wave-chart-wrap,
.vip-executive-card,
.pw-copy-body,
.daily-push-box,
.health-cosmic-body,
.elem-roles-intro,
.elem-vip-copy,
.calendar-sync-hint,
.strategy-wave-grid,
.ch6-fh-calendar,
.vip-executive-card p,
.vip-share-unlock-copy,
.the-vault-copy {
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}

/* ---- 2. Scoped typography (result components only) ---- */
.section-title,
.card-title,
.premium-chapters-heading,
.elem-roles-title {
  font-size: var(--mk-section-title-fluid);
}

.narrative-body p,
.dm-desc,
.ten-role-insight p,
.ten-role-cta-body,
.card-summary,
.chapter-body-paragraph,
.elem-roles-intro,
.web-reading-placeholder-lead {
  font-size: var(--mk-body-fluid);
  line-height: 1.75;
  max-width: min(var(--mk-prose-max-ch), 100%);
}

.narrative-body h2 {
  font-size: clamp(1.15rem, 0.7vw + 0.95rem, 1.4rem);
}

.hd-meta,
.ss-lbl,
.back-btn,
.dom-pill {
  font-size: var(--mk-meta-fluid);
}

/* ---- 3. Hero protection (F1A owns fluid scale; F1B only prevents collapse) ---- */
.master-k-main-logo {
  min-width: 72px;
  max-width: 140px;
}

/* ---- 4. Cosmic hierarchy: reinforce desktop original; F1A owns <=1023 ---- */
@media (width >= 1024px) {
  .cosmic-watermark {
    opacity: 0.8 !important;
  }

  .animal-img {
    width: 450px !important;
    height: 450px !important;
  }

  .letter {
    font-size: 10rem !important;
    top: -140px !important;
  }

  .western-sign {
    font-size: 16rem !important;
    top: -580px !important;
  }

  .force-mk-main {
    font-size: 3.8rem !important;
    letter-spacing: 6px !important;
  }

  .force-mk-sub {
    font-size: 1.2rem !important;
    letter-spacing: 5px !important;
  }

  .master-k-main-logo {
    width: 140px !important;
    min-width: 140px;
  }
}

/* ---- 5. Card / dashboard breathing (spacing only) ---- */
.card,
.glass-card,
.destiny-card,
.dtl-hero,
.cosmic-ritual-card {
  padding: var(--mk-card-padding-fluid);
  box-sizing: border-box;
}

.card {
  margin-bottom: var(--mk-card-gap-fluid);
}

.destiny-dashboard-grid,
.destiny-dashboard-grid--asymmetric {
  gap: clamp(14px, 1.5vw + 8px, 22px);
}

.elem-wrap {
  gap: clamp(18px, 2vw + 10px, 40px);
}

@media (width >= 768px) {
  .elem-wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

/* ---- Rails: typography / spacing densify on smaller viewports ---- */
@media (width < 1024px) {
  :root {
    --mk-page-max: min(1120px, 94vw);
    --mk-card-padding-fluid: clamp(16px, 2.4vw + 10px, 28px);
    --mk-section-title-fluid: clamp(1.02rem, 1.1vw + 0.85rem, 1.25rem);
    --mk-body-fluid: clamp(0.86rem, 0.35vw + 0.78rem, 0.94rem);
  }
}

@media (width < 768px) {
  :root {
    --mk-page-max: 100%;
    --mk-card-padding-fluid: clamp(14px, 3.5vw + 8px, 22px);
    --mk-section-title-fluid: clamp(1rem, 2.2vw + 0.75rem, 1.15rem);
    --mk-body-fluid: clamp(0.84rem, 0.8vw + 0.72rem, 0.92rem);
    --mk-meta-fluid: clamp(0.62rem, 0.4vw + 0.55rem, 0.7rem);
  }

  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    max-width: 100% !important;
  }

  .master-k-main-logo {
    min-width: 78px;
  }

  .force-mk-main {
    /* Brand floor — F1A clamp still controls preferred size */
    font-size: max(1.85rem, var(--mk-hero-title-fluid, 2.05rem)) !important;
  }
}

@media (max-width: 430px) {
  :root {
    --mk-card-padding-fluid: clamp(12px, 3.2vw + 6px, 18px);
    --mk-body-fluid: clamp(0.82rem, 1vw + 0.7rem, 0.9rem);
  }

  .master-k-main-logo {
    min-width: 72px;
  }
}

@media (max-width: 359px) {
  :root {
    --mk-card-padding-fluid: 12px;
  }

  .master-k-main-logo {
    min-width: 68px;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1C
   ------------------------------------------------------------------------
   Mobile visual correction (owner QA 390×844):
   1) MASTER K one brand line (nowrap + phone-safe fluid)
   2) Today Flow / Daily Record full content width parity
   3) Cosmic ring recentered on phone (vmin orbit, not right-heavy vmax)
   4) Phone readability floors (no broad type inflation)
   Rails only: 1023 / 767 / 430 / 359. No change at >=1024.
   ======================================================================== */

/* ---- Brand line: allow full content width; prevent MASTER / K wrap ---- */
@media (width < 768px) {
  .force-mk-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .force-mk-main {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-x: clip;
    text-overflow: clip;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Today Flow + Daily Record: same usable canvas as .page content */
  .dtl-hero,
  #destinyTrafficLightHero,
  .cosmic-ritual-card,
  #cosmicRitualCard {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .dtl-hero-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dtl-hero-status,
  .dtl-desire-hook {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .dtl-desire-hook {
    text-align: left;
  }
}

/* ---- Phone 360–430: brand fit, cosmic center, readable floors ---- */
@media (max-width: 430px) {
  :root {
    /* Prefer one-line brand; still authoritative, not tiny */
    --mk-hero-title-fluid: clamp(1.7rem, 5.1vw + 0.72rem, 2.2rem);
    --mk-hero-tracking: clamp(0.35px, 0.32vw + 0.2px, 2.6px);
    /* Readability floors — raise only if F1B dipped too low */
    --mk-body-fluid: clamp(0.88rem, 1.05vw + 0.72rem, 0.95rem);
    --mk-meta-fluid: clamp(0.68rem, 0.45vw + 0.58rem, 0.74rem);
    --mk-section-title-fluid: clamp(1.05rem, 2.1vw + 0.78rem, 1.18rem);
  }

  .force-mk-main {
    /* Override F1B 1.85rem floor so nowrap fits 360–430 gutters */
    font-size: var(--mk-hero-title-fluid) !important;
    letter-spacing: var(--mk-hero-tracking) !important;
  }

  /* Cosmic: shrink artboard to viewport short-side; pull orbit inward */
  .cosmic-watermark {
    width: 110vmin;
    height: 110vmin;
    opacity: 0.26 !important;
  }

  .animal-img {
    width: clamp(64px, 20vmin, 108px) !important;
    height: clamp(64px, 20vmin, 108px) !important;
  }

  .letter {
    font-size: clamp(2rem, 8vmin, 3.4rem) !important;
    top: -36px !important;
  }

  .western-sign {
    font-size: clamp(2.4rem, 11vmin, 4.2rem) !important;
    top: -96px !important;
  }

  /* Replace -22vmax orbit (right-edge dominance on tall phones) with vmin */
  .zodiac-item.z-1 { transform: translate(-50%, -50%) rotate(15deg) translateY(-34vmin); }
  .zodiac-item.z-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(-34vmin); }
  .zodiac-item.z-3 { transform: translate(-50%, -50%) rotate(75deg) translateY(-34vmin); }
  .zodiac-item.z-4 { transform: translate(-50%, -50%) rotate(105deg) translateY(-34vmin); }
  .zodiac-item.z-5 { transform: translate(-50%, -50%) rotate(135deg) translateY(-34vmin); }
  .zodiac-item.z-6 { transform: translate(-50%, -50%) rotate(165deg) translateY(-34vmin); }
  .zodiac-item.z-7 { transform: translate(-50%, -50%) rotate(195deg) translateY(-34vmin); }
  .zodiac-item.z-8 { transform: translate(-50%, -50%) rotate(225deg) translateY(-34vmin); }
  .zodiac-item.z-9 { transform: translate(-50%, -50%) rotate(255deg) translateY(-34vmin); }
  .zodiac-item.z-10 { transform: translate(-50%, -50%) rotate(285deg) translateY(-34vmin); }
  .zodiac-item.z-11 { transform: translate(-50%, -50%) rotate(315deg) translateY(-34vmin); }
  .zodiac-item.z-12 { transform: translate(-50%, -50%) rotate(345deg) translateY(-34vmin); }
}

/* ---- Emergency <340-class: safe brand reduction (rail 359) ---- */
@media (max-width: 359px) {
  :root {
    --mk-hero-title-fluid: clamp(1.45rem, 6.2vw + 0.55rem, 1.85rem);
    --mk-hero-tracking: clamp(0.25px, 0.25vw + 0.15px, 1.2px);
  }

  .force-mk-main {
    font-size: var(--mk-hero-title-fluid) !important;
    letter-spacing: var(--mk-hero-tracking) !important;
  }

  .cosmic-watermark {
    width: 100vmin;
    height: 100vmin;
    opacity: 0.22 !important;
  }

  .zodiac-item.z-1 { transform: translate(-50%, -50%) rotate(15deg) translateY(-30vmin); }
  .zodiac-item.z-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(-30vmin); }
  .zodiac-item.z-3 { transform: translate(-50%, -50%) rotate(75deg) translateY(-30vmin); }
  .zodiac-item.z-4 { transform: translate(-50%, -50%) rotate(105deg) translateY(-30vmin); }
  .zodiac-item.z-5 { transform: translate(-50%, -50%) rotate(135deg) translateY(-30vmin); }
  .zodiac-item.z-6 { transform: translate(-50%, -50%) rotate(165deg) translateY(-30vmin); }
  .zodiac-item.z-7 { transform: translate(-50%, -50%) rotate(195deg) translateY(-30vmin); }
  .zodiac-item.z-8 { transform: translate(-50%, -50%) rotate(225deg) translateY(-30vmin); }
  .zodiac-item.z-9 { transform: translate(-50%, -50%) rotate(255deg) translateY(-30vmin); }
  .zodiac-item.z-10 { transform: translate(-50%, -50%) rotate(285deg) translateY(-30vmin); }
  .zodiac-item.z-11 { transform: translate(-50%, -50%) rotate(315deg) translateY(-30vmin); }
  .zodiac-item.z-12 { transform: translate(-50%, -50%) rotate(345deg) translateY(-30vmin); }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1D
   ------------------------------------------------------------------------
   Tablet / rail continuity:
   1) Kill 430→431 usable-width shrink (gutter 14→16 cliff)
   2) Kill 767→768 page-max cliff (100% → 94vw)
   3) Extend vmin cosmic orbit through entire <=1023 range
      (F1C only covered <=430; 431–1023 still used desktop -22vmax)
   Rails only: 1023 / 767 / 430 / 359. Desktop >=1024 unchanged.
   ======================================================================== */

@media (width < 1024px) {
  :root {
    /* Page canvas = full viewport; inset only via fluid gutter (monotonic) */
    --mk-page-max: min(1120px, 100%);
    /* Continuous gutter: ~14px near 430, easing toward 18px near 1023 */
    --mk-mobile-gutter: clamp(14px, 0.5vw + 12px, 18px);
    /* Viewport-short-side orbit — replaces desktop -22vmax on tall phones/tablets */
    --mk-cosmic-orbit: 34vmin;
    --mk-cosmic-board: clamp(110vmin, 65vmax, 120vmax);
  }

  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    max-width: var(--mk-page-max) !important;
  }

  .cosmic-watermark {
    width: var(--mk-cosmic-board);
    height: var(--mk-cosmic-board);
  }

  .zodiac-item.z-1 { transform: translate(-50%, -50%) rotate(15deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-3 { transform: translate(-50%, -50%) rotate(75deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-4 { transform: translate(-50%, -50%) rotate(105deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-5 { transform: translate(-50%, -50%) rotate(135deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-6 { transform: translate(-50%, -50%) rotate(165deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-7 { transform: translate(-50%, -50%) rotate(195deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-8 { transform: translate(-50%, -50%) rotate(225deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-9 { transform: translate(-50%, -50%) rotate(255deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-10 { transform: translate(-50%, -50%) rotate(285deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-11 { transform: translate(-50%, -50%) rotate(315deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-12 { transform: translate(-50%, -50%) rotate(345deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }

  /* Same-width cards through tablet rails (F1C covered <=767 only) */
  .dtl-hero,
  #destinyTrafficLightHero,
  .cosmic-ritual-card,
  #cosmicRitualCard {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Emergency floor — keep F1C 359 brand/cosmic intent after F1D 1023 overrides */
@media (max-width: 359px) {
  :root {
    --mk-mobile-gutter: 12px;
    --mk-cosmic-orbit: 30vmin;
    --mk-cosmic-board: 100vmin;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1E
   ------------------------------------------------------------------------
   Desktop entry continuity (1023→1024):
   Cause: at >=1024, F1B --mk-page-max:min(1120px,92vw) (~942px) + base
   .page padding 20px → usable ~902px, while F1D <=1023 uses 100% + ~17px
   gutter → usable ~989px (~87px cliff for +1px viewport).
   Fix: desktop uses min(1120px, 100%) and the same fluid pad curve as F1D
   gutter (cap 18px) so usable is continuous and monotonic into the 1120
   ceiling (~1084px at 1280/1440).
   Rails unchanged. No new breakpoints. Mobile/tablet F1D preserved.
   ======================================================================== */

@media (width >= 1024px) {
  :root {
    --mk-page-max: min(1120px, 100%);
    /* Same fluid as F1D gutter; cap 18px keeps usable flat once at 1120 */
    --mk-page-pad-x: clamp(14px, 0.5vw + 12px, 18px);
  }

  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    max-width: var(--mk-page-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(var(--mk-page-pad-x), var(--mk-safe-left, 0px));
    padding-right: max(var(--mk-page-pad-x), var(--mk-safe-right, 0px));
    box-sizing: border-box;
  }

  /* Nested recovery stays inside the page content box */
  .premium-chapters-section,
  .past-wave-chart-wrap,
  .vip-executive-card,
  .pw-copy-body,
  .daily-push-box,
  .health-cosmic-body,
  .elem-roles-intro,
  .elem-vip-copy,
  .calendar-sync-hint,
  .strategy-wave-grid,
  .ch6-fh-calendar,
  .vip-executive-card p,
  .vip-share-unlock-copy,
  .the-vault-copy,
  .elem-wrap,
  .destiny-dashboard-grid,
  .destiny-dashboard-grid--asymmetric {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1I
   ------------------------------------------------------------------------
   Mobile main-canvas restoration (owner QA 390×844 with F1A–F1E active):
   Cause: no page-level width:50%, but (1) fixed .cosmic-watermark reads as an
   empty right column behind translucent glass .card surfaces; (2) section
   canvas locks stopped at Today Flow / Daily Record — Reading / chapters /
   dashboard / pillars / elements still inherited desktop visual hierarchy;
   (3) .elem-wrap 2-col stayed live until ≤640 (hazard 641–767);
   (4) #chatWidget FAB painted over lower-right card edges.
   Fix at ≤767: one-column main canvas = full usable .page width; solidify
   card surfaces; subordinate cosmic; collapse leftover grids; compact FAB.
   Rails only: 1023 / 767 / 430 / 359. Desktop ≥1024 unchanged (F1E).
   ======================================================================== */

@media (width < 768px) {
  :root {
    /* Extra bottom clearance so fixed Counsel CTA clears last cards */
    --mk-fab-clearance: clamp(160px, 32vw + 72px, 210px);
    /* Cosmic stays background — smaller board, tighter orbit */
    --mk-cosmic-orbit: 28vmin;
    --mk-cosmic-board: 95vmin;
  }

  /* ---- 1. Main canvas: one column, full usable page width ---- */
  .page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page > .card,
  .page > section,
  .page > .premium-chapters-section,
  .page > .destiny-dashboard-section,
  #destinyTrafficLightHero,
  .dtl-hero,
  #cosmicRitualCard,
  .cosmic-ritual-card,
  #web-reading-container,
  #destiny-report-accordion,
  .destiny-report-accordion,
  .oracle-manual-panel,
  #destinyDashboardSection,
  .destiny-dashboard-section,
  .destiny-dashboard-grid,
  .destiny-dashboard-grid--asymmetric,
  .destiny-card,
  #fourPillarsArchitecture,
  #fiveElementsDistribution,
  .card-elements-cosmic,
  .elem-wrap,
  .elem-roles-section,
  #elementalRolesSection,
  .premium-chapters-section,
  .narrative-body,
  .mk-surface,
  .chart-box,
  .chart-container,
  .past-wave-chart-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* ---- 2. Collapse desktop / asymmetric grids on phone ---- */
  .destiny-dashboard-grid,
  .destiny-dashboard-grid--asymmetric {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "radar"
      "profile_top"
      "profile_bottom"
      "full_width" !important;
    gap: clamp(12px, 3vw, 18px);
  }

  .destiny-card--radar,
  .destiny-card--profile-top,
  .destiny-card--profile-bottom,
  .destiny-card--full {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100% !important;
  }

  .destiny-full-panels {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }

  .destiny-full-panel + .destiny-full-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 215, 0, 0.12);
    padding-top: 18px;
  }

  /* Extend elem-wrap collapse from ≤640 through entire phone rail */
  .elem-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(14px, 3vw, 22px);
    align-items: stretch;
  }

  .elem-lead-summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ch6-fh-macro-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Inner status / desire hooks fill the card canvas */
  .dtl-hero-status,
  .dtl-desire-hook,
  .dtl-hero-body,
  .dtl-hero-content,
  .narrative-body p,
  .dm-desc,
  .card-summary,
  .web-reading-placeholder-lead {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }

  .dtl-hero-body {
    align-items: stretch;
  }

  /* Charts fill their inner card */
  .chart-box,
  .chart-container,
  .destiny-card.chart-card .chart-container,
  .elem-wrap .chart-box,
  .elem-wrap canvas,
  .chart-box canvas {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .chart-box {
    height: auto;
    min-height: min(320px, 56vw);
  }

  /* ---- 3. Solidify card surfaces — cosmic must not read as 2nd column ---- */
  .page .card,
  .page .glass-card,
  .page .destiny-card,
  .page .dtl-hero,
  .page .cosmic-ritual-card,
  .page .mk-surface--prose,
  .page .mk-surface--chart {
    background: rgba(8, 8, 16, 0.92) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
  }

  /* ---- 4. Cosmic background subordination ---- */
  .cosmic-watermark {
    opacity: 0.16 !important;
    width: var(--mk-cosmic-board) !important;
    height: var(--mk-cosmic-board) !important;
  }

  .animal-img {
    width: clamp(48px, 14vmin, 88px) !important;
    height: clamp(48px, 14vmin, 88px) !important;
    opacity: 0.35;
  }

  .letter {
    font-size: clamp(1.6rem, 6vmin, 2.6rem) !important;
    top: -28px !important;
    opacity: 0.45;
  }

  .western-sign {
    font-size: clamp(2rem, 9vmin, 3.4rem) !important;
    top: -72px !important;
    opacity: 0.35;
  }

  .zodiac-item.z-1 { transform: translate(-50%, -50%) rotate(15deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-2 { transform: translate(-50%, -50%) rotate(45deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-3 { transform: translate(-50%, -50%) rotate(75deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-4 { transform: translate(-50%, -50%) rotate(105deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-5 { transform: translate(-50%, -50%) rotate(135deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-6 { transform: translate(-50%, -50%) rotate(165deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-7 { transform: translate(-50%, -50%) rotate(195deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-8 { transform: translate(-50%, -50%) rotate(225deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-9 { transform: translate(-50%, -50%) rotate(255deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-10 { transform: translate(-50%, -50%) rotate(285deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-11 { transform: translate(-50%, -50%) rotate(315deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }
  .zodiac-item.z-12 { transform: translate(-50%, -50%) rotate(345deg) translateY(calc(-1 * var(--mk-cosmic-orbit))); }

  /* ---- 5. Request Direct Counsel FAB — keep feature, reduce overlap ---- */
  #chatWidget {
    bottom: max(12px, var(--mk-safe-bottom)) !important;
    right: max(12px, var(--mk-safe-right)) !important;
    left: auto !important;
    width: auto;
    max-width: min(200px, calc(100vw - 28px - var(--mk-safe-left) - var(--mk-safe-right)));
    align-items: flex-end;
  }

  .chat-fab {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 10px;
    letter-spacing: 0.05em;
    box-sizing: border-box;
  }

  .chat-panel {
    width: min(360px, calc(100vw - 24px - var(--mk-safe-left) - var(--mk-safe-right)));
  }
}

/* Phone ≤430 — further subordinate cosmic; keep brand / F1C floors */
@media (max-width: 430px) {
  :root {
    --mk-cosmic-board: 88vmin;
    --mk-cosmic-orbit: 26vmin;
    --mk-fab-clearance: clamp(168px, 36vw + 64px, 208px);
  }

  .cosmic-watermark {
    opacity: 0.12 !important;
  }

  #chatWidget {
    max-width: min(180px, calc(100vw - 24px - var(--mk-safe-left) - var(--mk-safe-right)));
  }
}

/* Emergency floor — keep F1C/F1D 359 brand intent; tighter cosmic */
@media (max-width: 359px) {
  :root {
    --mk-cosmic-board: 82vmin;
    --mk-cosmic-orbit: 24vmin;
  }

  .cosmic-watermark {
    opacity: 0.10 !important;
  }

  #chatWidget {
    max-width: min(160px, calc(100vw - 20px - var(--mk-safe-left) - var(--mk-safe-right)));
  }

  .chat-fab {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 9px;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1J
   ------------------------------------------------------------------------
   Adaptive fixed-CTA collision control (owner QA with F1I active):
   Cause: #chatWidget{position:fixed;bottom/right} paints over lower-right
   content (incl. .mk-public-pricing__card--executive) while --mk-fab-clearance
   was not sized from FAB stack + safe inset + scroll gap, and CTA max-width
   used near-device caps instead of continuous available-space math.
   Fix: fluid --mk-fab-* tokens; authoritative .page padding-bottom; compact
   CTA max-width via min/clamp/calc + safe-area; panel stays in viewport.
   Rails only: 1023 / 767 / 430 / 359. No device-model CSS. Desktop ≥1024
   keeps premium lower-right placement (no clearance inflation).
   ======================================================================== */

@media (width < 1024px) {
  :root {
    --mk-fab-bottom-inset: max(12px, var(--mk-safe-bottom, 0px));
    --mk-fab-right-inset: max(12px, var(--mk-safe-right, 0px));
    /* Budget for single- or wrapped multi-line Counsel label */
    --mk-fab-height-budget: clamp(64px, 12vw + 44px, 110px);
    /* Breathing room above the fixed stack so last cards can scroll clear */
    --mk-fab-scroll-gap: clamp(36px, 8vw + 20px, 72px);
    --mk-fab-clearance: calc(
      var(--mk-fab-height-budget) + var(--mk-fab-scroll-gap)
    );
    /* Available inline space — continuous, not device-named */
    --mk-cta-max-inline: min(
      calc(
        100vw
        - var(--mk-fab-right-inset)
        - max(var(--mk-mobile-gutter, 14px), var(--mk-safe-left, 0px))
        - 8px
      ),
      clamp(9.5rem, 44vw, 13rem)
    );
  }

  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    padding-bottom: calc(
      var(--mk-fab-clearance) + var(--mk-fab-bottom-inset)
    ) !important;
  }

  /* Pricing ladder sits near page end — keep its own tail clear of CTA */
  .mk-public-pricing {
    padding-bottom: calc(1rem + var(--mk-fab-scroll-gap)) !important;
    box-sizing: border-box;
  }

  #chatWidget {
    bottom: var(--mk-fab-bottom-inset) !important;
    right: var(--mk-fab-right-inset) !important;
    left: auto !important;
    width: auto;
    max-width: var(--mk-cta-max-inline) !important;
    box-sizing: border-box;
    z-index: 900;
    align-items: flex-end;
  }

  .chat-fab {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: clamp(10px, 2vw + 6px, 13px) clamp(12px, 2.5vw + 6px, 18px);
    font-size: clamp(9px, 1.8vw + 5px, 11px);
    letter-spacing: 0.06em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.3;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .chat-panel {
    width: min(
      374px,
      calc(
        100vw
        - var(--mk-fab-right-inset)
        - max(12px, var(--mk-safe-left, 0px))
        - 12px
      )
    );
    max-width: calc(
      100vw
      - 24px
      - var(--mk-safe-left, 0px)
      - var(--mk-safe-right, 0px)
    );
    /* vh first, dvh progressive — keep panel inside available space */
    max-height: min(530px, calc(100vh - 96px - var(--mk-safe-bottom, 0px)));
    max-height: min(530px, calc(100dvh - 96px - var(--mk-safe-bottom, 0px)));
    box-sizing: border-box;
  }
}

@media (width < 768px) {
  :root {
    --mk-fab-height-budget: clamp(72px, 16vw + 48px, 120px);
    --mk-fab-scroll-gap: clamp(44px, 10vw + 24px, 88px);
    --mk-fab-clearance: calc(
      var(--mk-fab-height-budget) + var(--mk-fab-scroll-gap)
    );
    --mk-cta-max-inline: min(
      calc(
        100vw
        - var(--mk-fab-right-inset)
        - max(var(--mk-mobile-gutter, 14px), var(--mk-safe-left, 0px))
        - 8px
      ),
      clamp(8.75rem, 40vw, 11.5rem)
    );
  }
}

/* Very narrow available width — keep CTA usable, never hide */
@media (max-width: 430px) {
  :root {
    --mk-fab-height-budget: clamp(76px, 18vw + 48px, 124px);
    --mk-fab-scroll-gap: clamp(48px, 12vw + 24px, 92px);
    --mk-fab-clearance: calc(
      var(--mk-fab-height-budget) + var(--mk-fab-scroll-gap)
    );
  }
}

@media (max-width: 359px) {
  :root {
    --mk-fab-height-budget: clamp(80px, 20vw + 48px, 128px);
    --mk-fab-scroll-gap: clamp(52px, 14vw + 24px, 96px);
    --mk-fab-clearance: calc(
      var(--mk-fab-height-budget) + var(--mk-fab-scroll-gap)
    );
  }
}

/* Desktop: preserve lower-right premium CTA; do not inflate clearance */
@media (width >= 1024px) {
  #chatWidget {
    bottom: 26px;
    right: 26px;
    left: auto;
    max-width: none;
    width: auto;
  }

  .chat-fab {
    width: auto;
    max-width: none;
    min-height: 44px;
    padding: 13px 26px;
    font-size: 12px;
    letter-spacing: 0.10em;
    white-space: nowrap;
  }
}

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1K
   ------------------------------------------------------------------------
   Intrinsic CTA mode switch (owner QA with F1J active):
   Cause: fixed #chatWidget always paints over in-viewport cards (Today's
   Flow etc.); clearance math cannot guarantee zero obstruction.
   DOM: #chatWidget is a body-level sibling AFTER .page (not inside .page).
   JS only toggles .chat-panel.open — panel does not require a fixed parent.
   Constrained ≤1023: #chatWidget enters normal document flow (non-overlay);
   .chat-panel.open is independently position:fixed + viewport-safe.
   Wide ≥1024: restore lower-right floating CTA (F1J desktop intent).
   No device-model CSS. Rails: 1023 / 767 / 430 / 359 only as space bands.
   ======================================================================== */

@media (width < 1024px) {
  :root {
    /* CTA is in-flow — drop overlay clearance inflation from F1J */
    --mk-fab-clearance: clamp(12px, 2.5vw, 24px);
    --mk-fab-height-budget: 0px;
    --mk-fab-scroll-gap: clamp(12px, 2vw, 20px);
  }

  .page,
  .dashboard-container,
  .main-content,
  .page-wrapper,
  .result-container {
    padding-bottom: calc(
      var(--mk-fab-clearance) + var(--mk-safe-bottom, 0px)
    ) !important;
  }

  .mk-public-pricing {
    padding-bottom: 1rem !important;
  }

  /* ---- Narrow: non-overlay — participate in document flow ---- */
  #chatWidget {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: min(1120px, 100%) !important;
    margin-top: clamp(18px, 4vw, 32px);
    margin-bottom: max(20px, var(--mk-safe-bottom, 0px));
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--mk-mobile-gutter, 14px), var(--mk-safe-left, 0px));
    padding-right: max(var(--mk-mobile-gutter, 14px), var(--mk-safe-right, 0px));
    box-sizing: border-box;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .chat-fab {
    position: static;
    width: 100%;
    max-width: min(22rem, 100%);
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: clamp(12px, 2.2vw + 6px, 14px) clamp(14px, 3vw, 22px);
    font-size: clamp(10px, 1.6vw + 6px, 12px);
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Panel independently viewport-anchored (does not inherit static parent) */
  .chat-panel {
    position: fixed !important;
    left: max(12px, var(--mk-safe-left, 0px));
    right: max(12px, var(--mk-safe-right, 0px));
    bottom: max(12px, var(--mk-safe-bottom, 0px));
    top: auto;
    width: auto !important;
    max-width: none !important;
    height: auto;
    max-height: min(530px, calc(100vh - 96px - var(--mk-safe-bottom, 0px)));
    max-height: min(530px, calc(100dvh - 96px - var(--mk-safe-bottom, 0px)));
    z-index: 960;
    margin: 0;
    box-sizing: border-box;
  }

  .chat-panel.open {
    display: flex;
  }
}

@media (width < 768px) {
  #chatWidget {
    margin-top: clamp(16px, 5vw, 28px);
  }

  .chat-fab {
    max-width: min(20rem, 100%);
  }
}

/* Wide: floating lower-right premium CTA (unchanged product intent) */
@media (width >= 1024px) {
  #chatWidget {
    position: fixed !important;
    bottom: 26px !important;
    right: 26px !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .chat-fab {
    position: static;
    width: auto;
    max-width: none;
    min-height: 44px;
    padding: 13px 26px;
    font-size: 12px;
    letter-spacing: 0.10em;
    white-space: nowrap;
  }

  .chat-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 374px !important;
    max-width: none;
    max-height: none;
    z-index: auto;
  }

  .chat-panel.open {
    display: flex;
  }
}


/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1M
   ------------------------------------------------------------------------
   Fractional viewport rail closure:
   Paired integer rails (max-width:N)+(min-width:N+1) leave dead zones when
   CSS viewport width is fractional (e.g. 1023.2). Structural F1–F1K media
   queries now use continuous range syntax:
     (width < 768px) / (width >= 768px)
     (width < 1024px) / (width >= 1024px)
   Progressive floors (max-width:430 / 359) unchanged — no paired lower bound.
   No device-model CSS. F1L DOM order unchanged.
   ======================================================================== */

/* ========================================================================
   MASTER K - RESPONSIVE RECOVERY F1N
   ------------------------------------------------------------------------
   Gutter-aware CTA floating eligibility (owner QA at 1024 with F1M active):
   Cause: width >= 1024 alone floats #chatWidget while .page is still
   full-bleed (max 1120 / 100%) — fixed CTA sits inside the content canvas
   and overlays Daily Record / cards.
   Principle: float ONLY when right gutter can fully contain the CTA outside
   the centered page box.

   Geometry (current F1E ceiling + desktop FAB measure):
     PAGE_DESKTOP_MAX_OUTER = 1120px
     CTA_FLOAT_MAX          = 260px  (live intrinsic ~255; capped for math)
     CTA_RIGHT_INSET        = 26px
     SAFETY_GAP             = 16px
     required right gutter  = 260 + 26 + 16 = 302px
     (vw − 1120) / 2 >= 302  →  vw >= 1724

   --mk-cta-float-min-viewport = 1724px is a LAYOUT CAPACITY threshold,
   not a device target. Continuous ranges: (width < 1724px) / (width >= 1724px).
   F1L DOM order unchanged. Panel remains independently viewport-safe when
   FAB is in-flow.
   ======================================================================== */

:root {
  --mk-page-canvas-ceiling: 1120px;
  --mk-cta-float-max: 260px;
  --mk-cta-float-right-inset: 26px;
  --mk-cta-float-safety-gap: 16px;
  /* 1120 + 2 * (260 + 26 + 16) = 1724 */
  --mk-cta-float-min-viewport: 1724px;
}

/* ---- Capacity-insufficient: keep CTA in F1L document flow (no overlay) ---- */
@media (width < 1724px) {
  #chatWidget {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: min(1120px, 100%) !important;
    margin-top: clamp(18px, 4vw, 32px);
    margin-bottom: max(20px, var(--mk-safe-bottom, 0px));
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--mk-mobile-gutter, 14px), var(--mk-safe-left, 0px));
    padding-right: max(var(--mk-mobile-gutter, 14px), var(--mk-safe-right, 0px));
    box-sizing: border-box;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .chat-fab {
    position: static;
    width: 100%;
    max-width: min(22rem, 100%);
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: clamp(12px, 2.2vw + 6px, 14px) clamp(14px, 3vw, 22px);
    font-size: clamp(10px, 1.6vw + 6px, 12px);
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Panel independent of in-flow FAB parent */
  .chat-panel {
    position: fixed !important;
    left: max(12px, var(--mk-safe-left, 0px));
    right: max(12px, var(--mk-safe-right, 0px));
    bottom: max(12px, var(--mk-safe-bottom, 0px));
    top: auto;
    width: auto !important;
    max-width: none !important;
    height: auto;
    max-height: min(530px, calc(100vh - 96px - var(--mk-safe-bottom, 0px)));
    max-height: min(530px, calc(100dvh - 96px - var(--mk-safe-bottom, 0px)));
    z-index: 960;
    margin: 0;
    box-sizing: border-box;
  }

  .chat-panel.open {
    display: flex;
  }
}

/* ---- Extra-wide: real side gutter can hold CTA outside page canvas ---- */
@media (width >= 1724px) {
  #chatWidget {
    position: fixed !important;
    bottom: max(26px, var(--mk-safe-bottom, 0px)) !important;
    right: max(
      var(--mk-cta-float-right-inset),
      var(--mk-safe-right, 0px)
    ) !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: var(--mk-cta-float-max) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    box-sizing: border-box;
  }

  .chat-fab {
    position: static;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 13px 26px;
    font-size: 12px;
    letter-spacing: 0.10em;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Panel independent of floating FAB — viewport-fixed / safe */
  .chat-panel {
    position: fixed !important;
    left: auto;
    right: max(
      var(--mk-cta-float-right-inset),
      var(--mk-safe-right, 0px)
    );
    bottom: max(12px, var(--mk-safe-bottom, 0px));
    top: auto;
    width: min(374px, calc(100vw - 48px)) !important;
    max-width: none !important;
    height: auto;
    max-height: min(530px, calc(100vh - 96px - var(--mk-safe-bottom, 0px)));
    max-height: min(530px, calc(100dvh - 96px - var(--mk-safe-bottom, 0px)));
    z-index: 960;
    margin: 0;
    box-sizing: border-box;
  }

  .chat-panel.open {
    display: flex;
  }
}
