﻿/*
 * East Pattern — Home page styles.
 *
 * Self-contained classic-cream theme used ONLY by `layouts.home` /
 * `home.blade.php`. Does NOT depend on Tailwind. The rest of the
 * site continues to use the dark Tailwind theme via `layouts.app`.
 */

:root {
    --cream: #f6f0e5;
    --cream2: #eee6d7;
    --paper: #fffaf0;
    --ink: #2b241d;
    --muted: #7d7166;
    --line: #ddd1bf;
    --dark: #10131a;
    --dark2: #171b25;
    --gold: #c8a66a;
    --red: #a64b36;
    --red2: #873824;
    --green: #66705b;
    --white: #f8f3e9;
    --shadow: 0 22px 55px rgba(40, 28, 16, .13);
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 14px;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.04;
    margin: 0;
}
h1 { font-size: clamp(40px, 5.2vw, 62px); letter-spacing: -.04em; }
h2 { font-size: clamp(34px, 4.8vw, 58px); letter-spacing: -.035em; }
h3 { font-size: 25px; letter-spacing: -.02em; }
p  { margin: 0; color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border: 1px solid transparent;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .25s ease;
    white-space: nowrap;
    font-weight: 700;
    background: transparent;
}
.btn-primary { background: var(--red); color: #fff7ec; }
.btn-primary:hover { background: var(--red2); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light {
    border-color: rgba(248, 243, 233, .42);
    color: var(--white);
    background: rgba(255, 255, 255, .04);
}
.btn-light:hover { border-color: var(--gold); color: var(--gold); }

/* Sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section.alt  { background: var(--cream2); }
.section.dark { background: var(--dark); color: var(--white); border-top: none; }
.section.dark p { color: rgba(248, 243, 233, .68); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { margin-top: 18px; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(246, 240, 229, .84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 209, 191, .8);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-size: 19px; letter-spacing: -.02em;
}
.logo-mark {
    width: 26px; height: 26px;
    border: 1px solid var(--red);
    position: relative; flex: 0 0 auto;
}
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: var(--red); }
.logo-mark::before { width: 1px; height: 18px; left: 12px; top: 4px; }
.logo-mark::after  { width: 18px; height: 1px; left: 4px;  top: 12px; }

.nav-links { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #55483c; }
.nav-group { position: relative; }
.nav-parent {
    border: 0; background: transparent; color: #55483c; cursor: pointer;
    font-size: 13px; padding: 27px 10px;
    display: flex; align-items: center; gap: 5px;
}
.nav-parent::after {
    content: "⌄";
    font-size: 12px;
    color: var(--red);
    transform: translateY(-1px);
}
.nav-group:hover .nav-parent { color: var(--red); }
.mega-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    background: rgba(255, 250, 240, .98);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(40, 28, 16, .18);
    padding: 24px;
    display: none;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 22px;
}
.nav-group:hover .mega-menu { display: grid; }
.mega-menu.small { width: 520px; grid-template-columns: 1fr 1fr; }
.mega-intro { border-right: 1px solid var(--line); padding-right: 22px; }
.mega-intro strong {
    display: block;
    font-family: var(--serif); font-size: 25px; font-weight: 400;
    color: var(--ink); line-height: 1.1; margin-bottom: 10px;
}
.mega-intro p { font-size: 13px; color: var(--muted); }
.mega-col h4 {
    margin: 0 0 10px;
    font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--ink);
}
.mega-col a {
    display: block; padding: 7px 0;
    color: #5b4f44; font-size: 13px;
    border-bottom: 1px solid rgba(221, 209, 191, .55);
}
.mega-col a:hover { color: var(--red); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.mobile-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.mobile-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); margin: 5px auto; }

/* Hero */
.hero {
    /* Sized to fit within a typical laptop viewport (>=720px tall)
       without forcing a scroll to reach the form on the right. */
    min-height: calc(100vh - 70px);
    padding: 150px 0 48px;
    color: var(--white);
    background:
        radial-gradient(circle at 72% 22%, rgba(200,166,106,.18), transparent 28%),
        radial-gradient(circle at 15% 12%, rgba(166,75,54,.18), transparent 24%),
        linear-gradient(135deg, #0c1018 0%, #151825 48%, #0d0f15 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .35;
}
.astro-lines { position: absolute; inset: 0; pointer-events: none; opacity: .22; }
.astro-lines::before {
    content: "";
    position: absolute;
    width: 720px; height: 720px;
    right: -90px; top: 70px;
    border: 1px solid rgba(200,166,106,.42);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 70px rgba(200,166,106,.04),
        inset 0 0 0 140px rgba(255,255,255,.04),
        inset 0 0 0 220px rgba(200,166,106,.035);
}
.astro-lines::after {
    content: "☰  ☱  ☲  ☳  ☴  ☵  ☶  ☷";
    position: absolute;
    right: 28px; top: 380px;
    width: 640px; text-align: center;
    color: rgba(200,166,106,.52);
    font-family: var(--serif); font-size: 30px;
    letter-spacing: .55em; transform: rotate(-18deg);
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr .78fr;
    gap: 56px; align-items: center;
}
.hero .eyebrow { color: var(--gold); }
.hero-copy { margin-top: 18px; max-width: 620px; font-size: 16px; color: rgba(248,243,233,.76); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; color: rgba(248,243,233,.75); font-size: 13px; }
.hero-trust span { border: 1px solid rgba(200,166,106,.35); padding: 8px 12px; background: rgba(255,255,255,.035); }
.hero-stats {
    display: grid; grid-template-columns: repeat(4,1fr);
    margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.stat { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 29px; font-weight: 400; color: var(--white); }
.stat span { color: rgba(248,243,233,.58); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Form */
.chart-form-card {
    background: rgba(255,250,240,.95);
    margin-top: -40px;
    color: var(--ink);
    border: 1px solid rgba(200,166,106,.36);
    padding: 26px 28px;
    box-shadow: 0 34px 80px rgba(0,0,0,.38);
    position: relative;
}
.chart-form-card::before {
    content: ""; position: absolute; inset: 12px;
    border: 1px solid rgba(200,166,106,.22); pointer-events: none;
}
.form-title { font-family: var(--serif); font-size: 30px; line-height: 1.08; margin-bottom: 8px; }
.form-note { margin-bottom: 20px; font-size: 14px; }
.privacy-line {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 22px; padding: 10px 12px;
    background: #f3eadb; color: #655747;
    font-size: 13px; border-left: 2px solid var(--red);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label {
    display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
    color: #6b5d4f; margin-bottom: 7px; font-weight: 700;
}
.field input, .field select {
    width: 100%; height: 45px;
    border: none; border-bottom: 1px solid #bfb09d;
    background: transparent; outline: 0;
    color: var(--ink); font-size: 15px; padding: 0 2px;
}
.field input:focus, .field select:focus { border-bottom-color: var(--red); }
.form-links {
    display: flex; justify-content: space-between; gap: 14px;
    margin-top: 14px; font-size: 13px; color: var(--muted);
}
.form-links a, .text-link { color: var(--red); border-bottom: 1px solid rgba(166,75,54,.25); }
.form-footer-note { margin-top: 13px; font-size: 12px; color: #8b7e70; text-align: center; }

/* Common layout */
.feature-strip { position: relative; z-index: 5; margin-top: -54px; }
.strip-grid {
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid; grid-template-columns: repeat(5,1fr);
}
.strip-item { padding: 22px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item small {
    display: block; color: var(--red); font-size: 10px;
    letter-spacing: .15em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px;
}
.strip-item strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.strip-item p { font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.card {
    background: var(--paper); border: 1px solid var(--line);
    padding: 30px; box-shadow: 0 12px 30px rgba(40,28,16,.06);
}
.card.shadow { box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p  { font-size: 14px; }

.icon {
    width: 64px; height: 64px;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 28px;
    color: var(--red); margin-bottom: 24px; background: #fbf5ea;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-row span {
    padding: 7px 10px; border: 1px solid var(--line);
    background: #fbf5ea; color: var(--muted); font-size: 12px;
}

.tool-card { min-height: 282px; display: flex; flex-direction: column; }
.tool-card .btn { margin-top: auto; width: fit-content; }
.tool-card ul { padding-left: 18px; margin: 16px 0 22px; color: #5d5146; font-size: 14px; }
.tool-card li { margin-bottom: 7px; }

.dark-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(200,166,106,.22);
    padding: 30px;
}
.dark-card h3 { color: var(--white); }
.dark-card p  { color: rgba(248,243,233,.65); }

/* Chart visual */
.visual-card { background: var(--paper); border: 1px solid var(--line); padding: 36px; box-shadow: var(--shadow); color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-top: 28px; }
.pillar {
    border: 1px solid var(--line); background: #fbf5ea;
    text-align: center; padding: 20px 8px; min-height: 140px;
}
.pillar small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; margin-bottom: 14px; }
.pillar b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; color: var(--ink); }
.pillar span { font-size: 13px; color: var(--red); }

.elements { display: grid; gap: 15px; margin-top: 28px; }
.element-row { display: grid; grid-template-columns: 70px 1fr 42px; gap: 14px; align-items: center; font-size: 14px; }
.bar { height: 7px; background: #e6dccb; position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); display: block; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.step { padding: 6px 20px 0; border-left: 1px solid var(--red); }
.step-number { font-family: var(--serif); font-size: 42px; color: var(--red); margin-bottom: 20px; font-style: italic; }
.step p { margin-top: 12px; font-size: 14px; }

/* Pricing */
.price-card {
    background: var(--paper); border: 1px solid var(--line);
    padding: 30px 24px; position: relative;
    display: flex; flex-direction: column; min-height: 470px;
}
.price-card.featured { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-10px); }
.badge {
    position: absolute; top: 18px; right: 18px;
    background: var(--red); color: #fff; padding: 5px 9px;
    font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.price { font-family: var(--serif); font-size: 44px; margin: 24px 0 10px; }
.price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; color: #5d5146; font-size: 14px; }
.price-list li::before { content: "—"; color: var(--red); margin-right: 8px; }
.price-card .btn { margin-top: auto; width: 100%; }

.trust-row {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 18px;
    margin-top: 34px; color: var(--muted); font-size: 13px;
}
.trust-row span { border-bottom: 1px solid var(--line); padding-bottom: 4px; }

.benefit-table { margin-top: 46px; background: var(--paper); border: 1px solid var(--line); overflow-x: auto; }
.benefit-table table { width: 100%; border-collapse: collapse; min-width: 860px; }
.benefit-table th, .benefit-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center; font-size: 14px;
}
.benefit-table th:first-child, .benefit-table td:first-child { text-align: left; }
.benefit-table th { font-family: var(--serif); font-size: 20px; font-weight: 400; background: #fbf5ea; }
.yes { color: var(--red); font-weight: 700; }

/* Account / redeem / referral */
.dashboard-card {
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 34px;
    display: grid; grid-template-columns: .88fr 1.12fr; gap: 42px; align-items: center;
}
.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.status-box { border: 1px solid var(--line); background: #fbf5ea; padding: 18px; }
.status-box small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; margin-bottom: 8px; }
.status-box strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.status-box span { color: var(--red); font-size: 13px; display: block; margin-top: 4px; }

.redeem-row { display: flex; gap: 12px; margin-top: 24px; }
.redeem-row input {
    flex: 1; height: 52px;
    border: 1px solid var(--line); background: #fbf5ea;
    padding: 0 16px; outline: 0;
    text-transform: uppercase; letter-spacing: .08em;
}
.redeem-result { margin-top: 16px; color: var(--red); font-size: 14px; display: none; }

.invite-code {
    margin: 24px 0 16px;
    border: 1px dashed var(--red); background: #fbf5ea;
    padding: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.invite-code strong { font-family: var(--serif); font-size: 31px; letter-spacing: .1em; font-weight: 400; color: var(--red); }

/* FAQ */
.faq-wrap { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; padding: 22px 0;
    background: transparent; border: 0; text-align: left;
    display: flex; justify-content: space-between; gap: 24px;
    cursor: pointer;
    font-family: var(--serif); font-size: 22px; color: var(--ink);
}
.faq-q span { color: var(--red); font-family: var(--sans); font-size: 22px; }
.faq-a { display: none; padding: 0 0 22px; color: var(--muted); }

.final-cta { text-align: center; padding: 96px 0; background: var(--cream); border-top: 1px solid var(--line); }
.final-cta h2 em { color: var(--red); font-style: italic; }
.final-cta .btn { margin-top: 30px; }

/* Modal */
.modal-mask {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.58); z-index: 100; padding: 24px;
}
.modal {
    width: min(460px, 100%); margin: 80px auto 0;
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 34px 80px rgba(0,0,0,.35);
    padding: 32px; position: relative;
}
.modal-close {
    position: absolute; right: 16px; top: 12px;
    border: 0; background: transparent;
    font-size: 26px; cursor: pointer; color: var(--muted);
}
.modal-tabs { display: flex; gap: 8px; margin: 24px 0; }
.modal-tabs button {
    flex: 1; border: 1px solid var(--line);
    background: #fbf5ea; padding: 11px; cursor: pointer;
}
.modal-tabs button.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.modal-panel { display: none; }
.modal-panel.active { display: block; }

/* Footer */
.site-footer { background: #16120f; color: #efe6d8; padding: 58px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5,1fr); gap: 30px; margin-bottom: 44px; }
.footer-grid h4 { margin: 0 0 14px; color: #fff7ec; font-family: var(--serif); font-weight: 400; font-size: 18px; }
.footer-grid p, .footer-grid a {
    color: rgba(239,230,216,.62);
    font-size: 13px; display: block; margin-bottom: 8px;
}
.disclaimer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 26px; color: rgba(239,230,216,.55);
    font-size: 12px; line-height: 1.75;
}

@media (max-width: 1080px) {
    .nav-links, .nav-actions .btn-outline { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: grid; position: absolute; top: 74px; left: 0; width: 100%;
        max-height: calc(100vh - 74px); overflow: auto;
        background: rgba(246,240,229,.98);
        border-bottom: 1px solid var(--line);
        padding: 14px 24px; gap: 0;
    }
    .nav-group { border-bottom: 1px solid var(--line); }
    .nav-parent { width: 100%; justify-content: space-between; padding: 16px 0; }
    .mega-menu, .mega-menu.small {
        position: static; transform: none; width: 100%;
        box-shadow: none; border: 0; border-top: 1px solid var(--line);
        padding: 14px 0 18px; grid-template-columns: 1fr;
        display: none; background: transparent;
    }
    .nav-group:hover .mega-menu { display: none; }
    .nav-group.active .mega-menu { display: grid; }
    .mega-intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
    .mega-col a { padding: 8px 0; }

    .hero-grid, .grid-2, .dashboard-card { grid-template-columns: 1fr; }
    .grid-3, .grid-4, .strip-grid, .status-grid { grid-template-columns: repeat(2,1fr); }
    .steps { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .section { padding: 76px 0; }
    .astro-lines::before { width: 520px; height: 520px; right: -220px; top: 70px; }
    .astro-lines::after { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .container { width: calc(100% - 26px); }
    .nav { height: 66px; }
    .nav-links.open { top: 66px; }
    .hero { padding: 108px 0 56px; min-height: auto; }
    h1 { font-size: 43px; }
    h2 { font-size: 34px; }
    .hero-copy { font-size: 17px; }
    .chart-form-card { padding: 24px 20px; }
    .field-grid, .grid-3, .grid-4, .strip-grid, .status-grid,
    .pillars, .steps, .hero-stats, .footer-grid { grid-template-columns: 1fr; }
    .feature-strip { margin-top: 0; }
    .btn { width: 100%; min-height: 52px; }
    .hero-ctas, .hero-trust { display: grid; grid-template-columns: 1fr; }
    .redeem-row { flex-direction: column; }
    .section-head { margin-bottom: 38px; }
    .faq-q { font-size: 20px; }
    .price-card.featured { transform: none; }
}

/* ============================================================
   Auth pages (Register / Login / Forgot password / Reset password)
   Self-contained .auth-* namespace; safe alongside Tailwind on
   layouts.app. Loaded via @push('head') from the auth blade views.
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 72px);
  padding: 10px 0 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(216, 166, 68, .16), transparent 28%),
    radial-gradient(circle at 12% 70%, rgba(166, 75, 54, .12), transparent 25%),
    linear-gradient(135deg, #0b0d14 0%, #121621 52%, #090a10 100%);
  color: #f8f3e9;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  pointer-events: none;
}

.auth-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .26;
}

.auth-lines::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: 80px;
  border: 1px solid rgba(200, 166, 106, .35);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 70px rgba(200,166,106,.04),
    inset 0 0 0 140px rgba(255,255,255,.04),
    inset 0 0 0 220px rgba(200,166,106,.03);
  opacity: .6;
}

.auth-lines::after {
  content: "☰  ☱  ☲  ☳  ☴  ☵  ☶  ☷";
  position: absolute;
  right: -40px;
  top: 430px;
  width: 680px;
  text-align: center;
  color: rgba(200,166,106,.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: .55em;
  transform: rotate(-18deg);
}

.auth-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .95fr 520px;
  gap: 74px;
  align-items: center;
}

.auth-intro .eyebrow,
.auth-card .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c8a66a;
  font-weight: 700;
  margin-bottom: 14px;
}

.auth-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 400;
  margin: 0;
  color: #f8f3e9;
}

.auth-intro > p {
  margin-top: 26px;
  max-width: 620px;
  color: rgba(248, 243, 233, .72);
  font-size: 17px;
}

.auth-benefits {
  margin-top: 44px;
  display: grid;
  gap: 16px;
}

.auth-benefit {
  border: 1px solid rgba(200, 166, 106, .24);
  background: rgba(255,255,255,.035);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}

.auth-benefit span {
  font-family: Georgia, "Times New Roman", serif;
  color: #c8a66a;
  font-size: 24px;
  line-height: 1;
}

.auth-benefit strong {
  display: block;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 5px;
}

.auth-benefit p {
  color: rgba(248, 243, 233, .62);
  font-size: 14px;
  margin: 0;
}

.auth-card {
  background: rgba(255, 250, 240, .96);
  color: #2b241d;
  border: 1px solid rgba(200, 166, 106, .36);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  padding: 34px;
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200,166,106,.22);
  pointer-events: none;
}

.auth-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.auth-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 400;
  margin: 0;
  letter-spacing: -.03em;
}

.auth-symbol {
  width: 52px;
  height: 52px;
  border: 1px solid #ddd1bf;
  display: grid;
  place-items: center;
  color: #a64b36;
  font-size: 24px;
  background: #fbf5ea;
}

.auth-form {
  position: relative;
  z-index: 1;
}

.auth-form .field {
  margin-bottom: 17px;
}

.auth-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b5d4f;
  margin-bottom: 7px;
  font-weight: 700;
}

.auth-form label em {
  font-style: normal;
  color: #a64b36;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  margin-left: 6px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  border: none;
  border-bottom: 1px solid #bfb09d;
  background: transparent;
  outline: none;
  color: #2b241d;
  font-size: 15px;
  padding: 0 2px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-bottom-color: #a64b36;
}

.auth-form small {
  display: block;
  margin-top: 6px;
  color: #8b7e70;
  font-size: 12px;
}

.auth-form .auth-errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(166,75,54,.4);
  background: rgba(166,75,54,.08);
  color: #7a2f1f;
  font-size: 13px;
}
.auth-form .auth-errors ul { margin: 0; padding-left: 18px; }

.auth-form .auth-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(73,116,67,.4);
  background: rgba(73,116,67,.08);
  color: #2f4a26;
  font-size: 13px;
}

.auth-check {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 20px 0 22px;
  color: #7d7166 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: #fff7ec;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #a64b36, #c87a2c);
  box-shadow: 0 16px 34px rgba(166, 75, 54, .22);
  transition: .25s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #873824, #b9661d);
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  color: #7d7166;
  font-size: 14px;
}

.auth-switch a {
  color: #a64b36;
  border-bottom: 1px solid rgba(166,75,54,.28);
}

.auth-trust {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ddd1bf;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-trust span {
  font-size: 12px;
  color: #7d7166;
  background: #fbf5ea;
  border: 1px solid #ddd1bf;
  padding: 6px 9px;
}

/* Login-specific: row holding "Remember me" + "Forgot password" link. */
.auth-form .field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 6px 0 22px;
  flex-wrap: wrap;
}

.auth-form .remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7d7166;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}

.auth-form .remember input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.auth-form .text-link {
  font-size: 14px;
  color: #a64b36;
  border-bottom: 1px solid rgba(166,75,54,.28);
}

.auth-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #8b7e70;
}

.auth-notice {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #8b7e70;
}

@media (max-width: 980px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .auth-card {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .auth-page {
    padding: 104px 0 56px;
  }

  .auth-container {
    width: calc(100% - 26px);
  }

  .auth-intro h1 {
    font-size: 40px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-benefit {
    grid-template-columns: 1fr;
  }

  .auth-trust {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BaZi Calculator page (/{locale}/bazi-calculator)
   Mirrors the cream-on-dark hero pattern of the auth pages, plus
   a structured form card on the right and content sections below.
   Reuses existing .section / .grid-3 / .pillars / .faq-* rules.
   ============================================================ */
.calculator-hero {
  min-height: 900px;
  padding: 142px 0 90px;
  color: #f8f3e9;
  background:
    radial-gradient(circle at 72% 20%, rgba(200,166,106,.18), transparent 28%),
    radial-gradient(circle at 14% 24%, rgba(166,75,54,.16), transparent 24%),
    linear-gradient(135deg, #0c1018 0%, #151825 48%, #0d0f15 100%);
  position: relative;
  overflow: hidden;
}

.calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  pointer-events: none;
}

.calculator-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.calculator-intro .eyebrow { color: #c8a66a; }
.calculator-intro h1 { color: #f8f3e9; max-width: 640px; }
.calculator-intro > p {
  margin-top: 24px;
  color: rgba(248,243,233,.74);
  font-size: 17px;
  max-width: 620px;
}

.intro-points { margin-top: 34px; display: grid; gap: 14px; }
.intro-point {
  border: 1px solid rgba(200,166,106,.24);
  background: rgba(255,255,255,.035);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.intro-point span {
  color: #c8a66a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}
.intro-point strong {
  display: block;
  color: #f8f3e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 4px;
}
.intro-point p { margin: 0; font-size: 14px; color: rgba(248,243,233,.62); }

/* Form card */
.calculator-card {
  background: rgba(255, 250, 240, .96);
  color: #2b241d;
  border: 1px solid rgba(200,166,106,.36);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  padding: 34px;
  position: relative;
}
.calculator-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200,166,106,.22);
  pointer-events: none;
}
.calculator-card-inner { position: relative; z-index: 1; }

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.card-head h2 { font-size: 36px; color: #2b241d; }
.card-head p  { margin-top: 7px; font-size: 14px; }

.card-symbol {
  width: 52px;
  height: 52px;
  border: 1px solid #ddd1bf;
  display: grid;
  place-items: center;
  color: #a64b36;
  font-size: 24px;
  background: #fbf5ea;
  flex: 0 0 auto;
}

.calculator-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calculator-card .field { margin-bottom: 16px; }
.calculator-card .field.full { grid-column: 1 / -1; }
.calculator-card .field label em {
  font-style: normal;
  color: #9a8d80;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  margin-left: 5px;
  font-weight: 500;
}

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #ddd1bf;
  background: #fbf5ea;
  color: #5d5146;
  font-size: 13px;
  cursor: pointer;
}
.radio-pill input { width: 14px; height: 14px; accent-color: #a64b36; }
.radio-pill input[disabled] + span { color: #b5a99c; }

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #7d7166;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.check-line input { width: 15px; height: 15px; accent-color: #a64b36; }

.submit-row {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.submit-row .btn { min-height: 52px; }

.calculator-card .form-note { margin-top: 14px; color: #8b7e70; font-size: 12px; }

.trust-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ddd1bf;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-row span {
  font-size: 12px;
  color: #7d7166;
  background: #fbf5ea;
  border: 1px solid #ddd1bf;
  padding: 6px 9px;
}

/* Calculator content sections (below the hero) */
.info-card {
  background: #fffaf0;
  border: 1px solid #ddd1bf;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(40,28,16,.06);
}
.info-card h3 { margin-bottom: 12px; }
.info-card p, .info-card li { font-size: 14px; color: #5d5146; }
.info-card ul { padding-left: 18px; margin: 14px 0 0; }

.sample-card {
  background: #fffaf0;
  border: 1px solid #ddd1bf;
  box-shadow: 0 22px 55px rgba(40, 28, 16, .13);
  padding: 34px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1080px) {
  .calculator-grid, .sample-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .calculator-hero { padding: 106px 0 58px; min-height: auto; }
  .calculator-card .form-grid { grid-template-columns: 1fr; }
  .calculator-card { padding: 24px 20px; }
  .intro-point { grid-template-columns: 1fr; }
  .submit-row .btn { width: 100%; }
}

/* ============================================================
   BaZi Calculator — dark hero + light "modern card" form.
   Activated by `.calculator-hero.bazi-hero-dark` + the form
   card carrying `.modern-card` and `.modern-form`.
   Brand tokens (inline): #1a1611 dark / #a64b36 accent /
   #f8f3e9 cream / #d18a72 highlight on dark.
   ============================================================ */
.bazi-hero-dark {
  background: #1a1611;
  color: #fff;
  padding: 132px 24px 96px;
  position: relative;
  overflow: hidden;
  min-height: auto;
}
.bazi-hero-dark .hero-glow {
  position: absolute;
  top: -120px; left: 22%;
  width: 480px; height: 480px;
  background: #a64b36;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(140px);
  opacity: .25;
  pointer-events: none;
}
.bazi-hero-dark .hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.bazi-hero-dark .hero-form-wrap {
  display: flex;
  justify-content: flex-start;
}

/* ---- Light form card ---- */
.modern-card {
  width: 100%;
  max-width: 720px;
  background: #f8f3e9;
  color: #2b241d;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  padding: 36px 36px 32px;
  position: relative;
  border: none;
}
.modern-card .accent-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: #a64b36;
  border-radius: 22px 22px 0 0;
}
.modern-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e5ddd2;
}
.modern-head .eyebrow {
  color: #a64b36;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.modern-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  color: #1a1611;
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}
.modern-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7d7166;
}
.modern-head .card-symbol {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #efe6d6;
  color: #a64b36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ---- Form rows ---- */
.modern-form .row {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}
.modern-form .row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.modern-form .row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.modern-form .row.cols-1 { grid-template-columns: 1fr; }

.modern-form .fld { display: flex; flex-direction: column; }
.modern-form label.fld-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #9a8d80;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modern-form input:not([type="checkbox"]):not([type="hidden"]),
.modern-form select {
  width: 100%;
  background: #fff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: #2b241d;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.modern-form input::placeholder { color: #c8bfb1; }
.modern-form input:focus,
.modern-form select:focus {
  outline: none;
  border-color: #a64b36;
  box-shadow: 0 0 0 3px rgba(166, 75, 54, .22);
}

/* select with chevron */
.modern-form .select-wrap { position: relative; }
.modern-form .select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.modern-form .select-wrap .chev {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9a8d80;
  pointer-events: none;
  font-size: 11px;
}
.modern-form select:disabled {
  background: #f6f1e7;
  cursor: not-allowed;
  opacity: .65;
}

/* input with leading icon (City) */
.modern-form .input-icon-wrap { position: relative; }
.modern-form .input-icon-wrap .input-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #9a8d80;
  font-size: 13px;
  pointer-events: none;
}
.modern-form .input-icon-wrap input { padding-left: 42px; }

/* Submit bar */
.modern-form .submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid #efe6d6;
  margin-top: 6px;
  flex-wrap: wrap;
}
.modern-form .check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #5a4f45;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.modern-form .check-line input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #a64b36;
  cursor: pointer;
  margin: 0;
}
.modern-form .btn-generate {
  background: #a64b36;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(166, 75, 54, .28);
  transition: background .15s, transform .15s;
  font-family: inherit;
}
.modern-form .btn-generate:hover {
  background: #8b3d2b;
  transform: translateY(-1px);
}
.modern-form .tos-note {
  font-size: 11px;
  color: #9a8d80;
  text-align: center;
  margin: 16px 0 0;
}

/* ---- Right intro panel (on dark BG) ---- */
.bazi-hero-dark .hero-intro { color: #f8f3e9; }
.bazi-hero-dark .hero-intro .eyebrow {
  color: #d18a72;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}
.bazi-hero-dark .hero-intro h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.05;
  margin: 18px 0 0;
  font-weight: 500;
  color: #f8f3e9;
}
.bazi-hero-dark .hero-intro > p {
  color: #c7bdb0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  margin: 22px 0 0;
}
.bazi-hero-dark .intro-cards {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.bazi-hero-dark .intro-cards .card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  transition: background .2s, border-color .2s;
}
.bazi-hero-dark .intro-cards .card:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
}
.bazi-hero-dark .intro-cards .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #d18a72;
  font-weight: 700;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.bazi-hero-dark .intro-cards h4 {
  font-size: 15px;
  color: #f1ece3;
  margin: 0;
  font-weight: 500;
}
.bazi-hero-dark .intro-cards p {
  font-size: 13px;
  color: #a69f95;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .bazi-hero-dark { padding: 116px 20px 72px; }
  .bazi-hero-dark .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bazi-hero-dark .hero-intro {
    order: -1;
    text-align: center;
  }
  .bazi-hero-dark .hero-intro > p { margin-left: auto; margin-right: auto; }
  .bazi-hero-dark .hero-form-wrap { justify-content: center; }
}
@media (max-width: 640px) {
  .bazi-hero-dark { padding: 96px 14px 56px; }
  .modern-card { padding: 26px 20px 22px; border-radius: 18px; }
  .modern-card .accent-bar { border-radius: 18px 18px 0 0; }
  .modern-head { padding-bottom: 18px; margin-bottom: 22px; }
  .modern-head h2 { font-size: 26px; }
  .modern-form .row.cols-3,
  .modern-form .row.cols-2 { grid-template-columns: 1fr; }
  .modern-form .submit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .modern-form .btn-generate {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   BaZi RESULT PAGE  (resources/views/bazi/result.blade.php)
   --------------------------------------------------------------------------
   Layout: dark hero with two LuoPan watermarks, a cream summary card on
   the right; below it a sticky tab bar; below that a tab-pane container
   that flips one pane visible at a time. Header/footer are reused from
   layouts.cream so the chrome matches the home page.
   ========================================================================== */

.result-page { display: block; }

/* Element colour tokens (text + background variants for bars/dots).        */
.el-fire   { color: #ef4444; }
.el-wood   { color: #16a34a; }
.el-water  { color: #1d4ed8; }
.el-metal  { color: #6b7280; }
.el-earth  { color: #b45309; }
.el-fire-bg   { background: #ef4444; }
.el-wood-bg   { background: #16a34a; }
.el-water-bg  { background: #1d4ed8; }
.el-metal-bg  { background: #6b7280; }
.el-earth-bg  { background: #b45309; }

/* ============ HERO ============ */
.result-hero {
    position: relative;
    overflow: hidden;
    color: #f8f5f0;
    background:
        radial-gradient(900px 520px at 18% 18%, rgba(200, 166, 106, .10), transparent 65%),
        radial-gradient(720px 420px at 82% 88%, rgba(166, 75, 54, .14), transparent 60%),
        linear-gradient(180deg, #0d1018 0%, #14121b 60%, #0d1018 100%),
        #0c1018;
    padding: 132px 0 80px;            /* 132 = fixed header (74) + breathing */
    border-bottom: 1px solid rgba(248, 243, 233, .06);
}
.result-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .35;
    pointer-events: none;
}
.result-hero .container { position: relative; z-index: 2; }

/* ----- Hero grid: copy on the left, summary card on the right ----- */
.result-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.result-hero-copy .hero-pill {
    display: inline-flex; align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(200, 166, 106, .35);
    background: rgba(200, 166, 106, .08);
    color: #c8a66a;
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    border-radius: 999px;
}
.result-hero-copy h1 {
    margin: 18px 0 16px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.06;
    color: #f8f5f0;
    background: linear-gradient(135deg, #fff 0%, #b9b3aa 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.result-hero-copy p {
    color: rgba(248, 243, 233, .72);
    font-size: 16px; line-height: 1.6;
    max-width: 540px;
    margin: 0 0 28px;
}
.result-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.result-hero-actions .btn { min-height: 48px; padding: 0 22px; }
.result-hero-actions .btn-glyph {
    display: inline-block;
    margin-right: 8px;
    color: inherit;
}
.btn-ghost-light {
    border: 1px solid rgba(248, 243, 233, .35);
    background: rgba(255, 255, 255, .04);
    color: #f8f5f0;
    padding: 0 22px; height: 48px;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--gold);
    color: var(--gold);
}

/* ----- Summary card on the right side of the hero ----- */
.result-summary-card {
    position: relative;
    background: rgba(248, 245, 240, .96);
    color: var(--ink);
    border: 1px solid rgba(248, 243, 233, .18);
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
    overflow: hidden;
    transform: rotate(.6deg);
    transition: transform .5s ease;
}
.result-summary-card:hover { transform: rotate(0); }
.rsc-inner {
    position: relative; z-index: 1;
    padding: 30px 32px 28px;
}
.rsc-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 18px;
    border-bottom: 1px solid #e5dfd5;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.rsc-eyebrow {
    display: block;
    color: #5b5550;
    text-transform: uppercase; letter-spacing: .14em; font-size: 10px;
    margin-bottom: 6px;
}
.rsc-title {
    font-family: var(--serif); font-weight: 400;
    font-size: 36px; line-height: 1; margin: 0;
    color: var(--red);
}
.rsc-sub { margin: 6px 0 0; font-size: 13px; color: #2c2825; }
.rsc-cn  { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-right: 6px; }
.rsc-meta { text-align: right; font-size: 12px; color: #5b5550; }
.rsc-meta p { margin: 0 0 4px; line-height: 1.5; }
.rsc-meta small {
    display: block; text-transform: uppercase; letter-spacing: .12em;
    font-size: 9px; color: #8b7e70; margin-bottom: 2px;
}

/* Pillars row inside the summary card (4 columns × 2 cells) */
.rsc-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 24px;
}
.rsc-pillar small {
    display: block;
    font-size: 10px; color: #5b5550;
    text-transform: uppercase; letter-spacing: .14em;
    margin-bottom: 8px;
}
.rsc-cell {
    background: rgba(255,255,255,.78);
    border: 1px solid #e5dfd5;
    border-radius: 6px;
    padding: 12px 4px;
    margin-bottom: 6px;
    backdrop-filter: blur(2px);
}
.rsc-glyph {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    line-height: 1;
}

/* Dominant energy bars */
.rsc-energies { display: grid; gap: 8px; }
.rsc-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 36px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #2c2825;
}
.rsc-bar { height: 6px; background: #e6dccb; border-radius: 999px; overflow: hidden; }
.rsc-bar i { display: block; height: 100%; border-radius: 999px; }
.rsc-bar-pct { text-align: right; color: #5b5550; }

/* I Ching question + hexagram lines inside the card */
.rsc-question {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 2px solid var(--red);
    background: rgba(166, 75, 54, .06);
    color: var(--ink);
    font-style: italic;
    font-size: 14px;
}
.rsc-hex-lines {
    display: grid; gap: 6px;
    width: 84px; margin: 6px auto 4px;
}
.hex-line { display: block; height: 8px; border-radius: 2px; background: var(--red); }
.hex-line.is-yin { background: transparent; box-shadow: inset 18px 0 0 var(--red), inset -18px 0 0 var(--red); }

/* ============ LUOPAN WATERMARKS ============ */
.luopan-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    color: currentColor;
    line-height: 0;
}
.luopan-watermark svg { width: 100%; height: 100%; display: block; }
.luopan-tr {
    top: -25%; right: -10%;
    width: 720px; height: 720px;
    color: #a64b36;
    opacity: .09;
    animation: spin-slow 220s linear infinite;
    mix-blend-mode: screen;
}
.luopan-bl {
    bottom: -35%; left: -15%;
    width: 540px; height: 540px;
    color: #f8f5f0;
    opacity: .04;
    animation: spin-slow 320s linear infinite reverse;
}
.luopan-bg {
    inset: -25% -25% -25% -25%;
    color: #a64b36;
    opacity: .04;
    animation: spin-slow 200s linear infinite;
}
.luopan-card {
    inset: -15% -15% -15% -15%;
    color: #a64b36;
    opacity: .035;
    animation: spin-slow 240s linear infinite;
}
.luopan-modal {
    top: -45%; right: -45%;
    width: 200%; height: 200%;
    color: #a64b36;
    opacity: .05;
    animation: spin-slow 200s linear infinite;
}

/* ============ STICKY TAB NAVIGATION ============ */
.result-tabs {
    position: sticky;
    top: 74px;                 /* fixed site-header height */
    z-index: 30;
    background: rgba(248, 245, 240, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5dfd5;
    padding: 14px 0 0;
    margin-bottom: 40px;
}
.result-tabs-row {
    display: flex; gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px 14px;
}
.result-tabs-row::-webkit-scrollbar { display: none; }
.result-tab {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #5b5550;
    font-size: 14px;
    font-family: var(--sans);
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    position: relative;
}
.result-tab .rt-icon {
    color: #b9b3aa;
    font-size: 16px;
    line-height: 1;
    transition: color .25s;
}
.result-tab:hover {
    background: #ffffff;
    color: var(--ink);
    border-color: #e5dfd5;
}
.result-tab:hover .rt-icon { color: var(--red); }
.result-tab.is-active {
    background: #ffffff;
    color: var(--red);
    border-color: rgba(166, 75, 54, .35);
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    transform: scale(1.04);
    font-weight: 500;
}
.result-tab.is-active .rt-icon { color: var(--red); }
.rt-lock {
    margin-left: 4px;
    font-size: 11px;
    opacity: .55;
}

/* ============ TAB PANES ============ */
.result-panes { padding: 0 0 60px; min-height: 600px; position: relative; }
.result-pane { display: none; animation: rp-fade .35s ease-out both; }
.result-pane.is-active { display: block; }

.rp-head { margin-bottom: 28px; max-width: 760px; }
.rp-head h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(26px, 3vw, 34px); line-height: 1.18;
    margin: 0 0 10px; color: var(--ink);
}
.rp-head p { color: #5b5550; margin: 0; font-size: 15px; }

.rp-card {
    position: relative;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    border: 1px solid #e5dfd5;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 24px;
}
.rp-card-head {
    background: #5b7290;
    color: #fff;
    font-size: 14px; font-weight: 500;
    padding: 12px 22px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.rp-card-head em { font-style: normal; opacity: .7; font-size: 12px; margin-left: 6px; }
.rp-card-info {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    font-style: italic; font-family: var(--serif);
    font-size: 12px;
    opacity: .8;
}
.rp-card-info svg { display: block; }
.luopan-spin svg { animation: spin-slow 180s linear infinite; }

.rp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* ----- Pillar tables ----- */
.rp-table-wrap { overflow-x: auto; }
.rp-pillar-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: center;
}
.rp-pillar-table th,
.rp-pillar-table td {
    border-right: 1px solid #ece6da;
    border-bottom: 1px solid #ece6da;
    padding: 14px 8px;
    vertical-align: middle;
}
.rp-pillar-table thead th {
    background: #faf6ee;
    color: #5b5550;
    font-weight: 500; font-size: 12px;
    padding: 12px 8px;
}
.rp-pillar-table .rp-th-label {
    font-size: 13px; font-weight: 600; color: #2c2825;
}
.rp-row-label {
    text-align: left;
    background: #faf6ee;
    color: #5b5550;
    font-size: 13px;
    padding-left: 22px !important;
    font-weight: 500;
    width: 130px;
}
.rp-row-label strong { display: block; color: var(--ink); font-weight: 600; }
.rp-row-label small  { display: block; font-size: 11px; color: #8b7e70; }
.rp-cell { padding: 22px 8px; transition: background .2s; }
.rp-cell:hover { background: #fbf7ef; }
.rp-glyph {
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 6px;
}
.rp-glyph--branch { font-size: 28px; margin-top: 4px; color: var(--red); }
.rp-sub  { font-size: 11px; color: #8b7e70; }
.rp-cell--sm { padding: 14px 6px; }
.rp-pillar-table tbody tr:last-child td { border-bottom: 0; }
.rp-pillar-table tr td:last-child,
.rp-pillar-table tr th:last-child { border-right: 0; }

/* ----- Basic Analysis fact table ----- */
.rp-fact-table { width: 100%; border-collapse: collapse; }
.rp-fact-table th,
.rp-fact-table td {
    text-align: left;
    border-bottom: 1px solid #ece6da;
    padding: 12px 22px;
    font-size: 14px;
}
.rp-fact-table th {
    background: rgba(250, 246, 238, .6);
    color: #5b5550;
    font-weight: 500;
    width: 38%;
    border-right: 1px solid #ece6da;
}
.rp-fact-table td { color: var(--ink); }
.rp-fact-table tr:last-child th,
.rp-fact-table tr:last-child td { border-bottom: 0; }
.rp-fact-table tr:hover td,
.rp-fact-table tr:hover th { background: #fbf7ef; }

/* ----- Five Elements Orbit ----- */
.rp-orbit { display: flex; flex-direction: column; }
.rp-orbit-body {
    position: relative; z-index: 1;
    padding: 28px 22px 26px;
    display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.rp-orbit-chart {
    position: relative;
    width: 220px; height: 220px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.rp-orbit-glow {
    position: absolute; inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(22,17,28,.95) 0%, rgba(58,27,22,.7) 40%, transparent 70%);
    animation: rp-pulse-slow 4s ease-in-out infinite;
    box-shadow: inset 0 0 30px rgba(0,0,0,.4);
}
.rp-orbit-svg {
    position: relative; z-index: 1;
    width: 88%; height: 88%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
    transition: stroke-dashoffset 1s ease-out;
}
.rp-orbit-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    pointer-events: none;
    text-align: center;
}
.rp-orbit-pct {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 14px rgba(239, 68, 68, .55);
}
.rp-orbit-pct small {
    font-family: var(--serif);
    font-size: 16px;
    margin-left: 1px;
    color: #fff;
}
.rp-orbit-cap {
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #e5dfd5;
    opacity: .85;
}
.rp-orbit-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    width: 100%;
}
.rp-leg-item {
    display: flex; align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid #e5dfd5;
    border-radius: 8px;
    font-size: 12px;
    transition: background .2s, box-shadow .2s;
}
.rp-leg-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.rp-leg-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex: 0 0 auto;
    transition: transform .2s;
}
.rp-leg-item:hover .rp-leg-dot { transform: scale(1.4); }
.rp-leg-label { flex: 1; color: #5b5550; font-weight: 500; }
.rp-leg-pct   { font-family: var(--serif); color: var(--ink); }
.rp-empty { padding: 40px 20px; text-align: center; color: #8b7e70; }

/* ----- Narrative section cards ----- */
.rp-narrative {
    background: rgba(255,255,255,.92);
    padding: 32px 36px;
}
.rp-narrative h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: 22px; margin: 0 0 12px; color: var(--ink);
}
.rp-narrative p {
    margin: 0;
    color: #2c2825;
    line-height: 1.65;
    white-space: pre-line;
}
.rp-empty-card { padding: 60px 22px; text-align: center; color: #8b7e70; }

/* ----- Premium / VIP glassmorphism ----- */
.rp-vip-shell {
    position: relative;
    border: 1px solid #e5dfd5;
    border-radius: 18px;
    background: rgba(255,255,255,.4);
    padding: 24px;
    overflow: hidden;
    min-height: 420px;
}
.rp-vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    opacity: .45;
    user-select: none; pointer-events: none;
}
.rp-vip-skel {
    background: #fff;
    border: 1px solid #e5dfd5;
    border-radius: 12px;
    padding: 22px;
    height: 200px;
    display: flex; flex-direction: column;
    gap: 8px;
}
.rp-vip-skel h4 {
    font-family: var(--serif); font-weight: 400;
    font-size: 16px; margin: 8px 0 12px;
    color: var(--ink);
}
.rp-skel-lock { color: #c8c0b6; font-size: 18px; }
.rp-skel-bar {
    display: block;
    height: 6px; border-radius: 3px;
    background: #e5dfd5;
}
.rp-skel-bar.w70 { width: 70%; }
.rp-skel-bar.w50 { width: 50%; }
.rp-vip-veil {
    position: absolute; inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(248, 245, 240, .55);
    z-index: 2;
}
.rp-vip-modal {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: min(440px, calc(100% - 48px));
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
    overflow: hidden;
    transition: transform .3s ease;
}
.rp-vip-modal:hover { transform: translate(-50%, -50%) scale(1.02); }
.rp-vip-modal-body {
    position: relative; z-index: 1;
    padding: 36px 32px;
    text-align: center;
}
.rp-vip-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(166, 75, 54, .1);
    color: var(--red);
    font-size: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.rp-vip-modal-body h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--ink);
}
.rp-vip-modal-body p {
    color: #5b5550; line-height: 1.6;
    margin: 0 0 24px;
    font-size: 14px;
}
.rp-vip-cta {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 52px;
    border-radius: 12px;
}
.rp-vip-altlinks {
    display: flex; gap: 14px; justify-content: center;
    margin-top: 16px;
    font-size: 13px;
}
.rp-vip-altlinks a {
    color: #5b5550;
    text-decoration: none;
    border-bottom: 1px dashed #c8c0b6;
}
.rp-vip-altlinks a:hover { color: var(--red); border-color: var(--red); }

/* PDF cta strip (entitled state) */
.rp-pdf-cta {
    margin-top: 12px;
    background: #14121b;
    color: #f8f5f0;
    padding: 24px 32px;
    border-radius: 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 18px;
}
.rp-pdf-cta small {
    text-transform: uppercase; letter-spacing: .14em;
    font-size: 11px; color: #c8a66a;
    display: block; margin-bottom: 4px;
}
.rp-pdf-cta h3 {
    font-family: var(--serif); font-weight: 400;
    font-size: 22px; margin: 0; color: #fff;
}

/* ----- FAQ ----- */
.rp-faq { padding: 0; }
.rp-faq .rp-faq-item + .rp-faq-item { border-top: 1px solid #e5dfd5; }
.rp-faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 20px 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
}
.rp-faq-chev {
    color: #8b7e70;
    font-size: 18px;
    transition: transform .25s;
    line-height: 1;
}
.rp-faq-item.is-open .rp-faq-chev { transform: rotate(180deg); color: var(--red); }
.rp-faq-a {
    display: none;
    padding: 0 28px 22px 28px;
    color: #5b5550;
    line-height: 1.65;
    font-size: 14px;
}

/* ============ ENRICHED TABLES (Hidden Stems + Luck Pillars) ============ */
/* Wide Natal table: 7 total columns (Date label + 6 pillar columns). */
.rp-pillar-table--wide { min-width: 820px; }
.rp-pillar-table--wide .rp-cell { padding: 18px 6px; }

/* Sub-label under the column title (e.g. "04:00", "2026"). */
.rp-th-sub {
    font-size: 10px; font-weight: 400; color: #8b7e70;
    margin-top: 2px;
    font-family: var(--sans);
}

/* Ten-God code stamped in the top-right corner of a stem cell. */
.rp-cell { position: relative; }
.rp-cell-god {
    position: absolute; top: 4px; right: 6px;
    font-size: 9px; letter-spacing: .08em;
    color: #8b7e70; font-weight: 500;
    font-family: var(--sans);
}

/* Faint sub line used for pinyin element labels (e.g. "Yang Metal"). */
.rp-sub--faint { color: #b9b3aa; font-size: 10px; }

/* Hidden-stems row — three small glyphs side by side. */
.rp-cell--hidden { padding: 12px 4px; background: rgba(250, 246, 238, .6); }
.rp-hidden-row {
    display: flex; justify-content: center; gap: 12px;
    flex-wrap: wrap;
}
.rp-hidden-cell {
    display: flex; flex-direction: column; align-items: center;
    gap: 1px;
    min-width: 26px;
}
.rp-hidden-glyph {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1;
}
.rp-hidden-py  { font-size: 9px; color: #8b7e70; }
.rp-hidden-god { font-size: 9px; color: #a8998a; font-weight: 500; letter-spacing: .08em; }

/* Luck Pillars 8-cycle table. Tighter than the main pillar table. */
.rp-luck-table { min-width: 900px; }
.rp-luck-table thead th { padding: 10px 6px; background: #faf6ee; }
.rp-luck-table tbody tr:nth-child(1) td,
.rp-luck-table tbody tr:nth-child(2) td { padding: 14px 6px; }
.rp-luck-table tbody tr:nth-child(1) td { background: rgba(220, 232, 246, .18); }
.rp-luck-table .rp-glyph { font-size: 28px; }
.rp-luck-table .rp-hidden-glyph { font-size: 15px; }
.rp-luck-table .rp-hidden-row { gap: 8px; }

/* Person A/B block header when the partial is rendered for compat. */
.rp-person-head {
    margin: 10px 0 18px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(166,75,54,.06), transparent);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
}
.rp-person-pill {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(166, 75, 54, .1);
    color: var(--red);
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 6px;
}
.rp-person-head h3 {
    margin: 4px 0 2px;
    font-family: var(--serif); font-weight: 400;
    font-size: 22px; color: var(--ink);
}
.rp-person-head small { color: #5b5550; font-size: 12px; }

/* ============ ANIMATIONS ============ */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rp-fade   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rp-pulse-slow {
    0%, 100% { opacity: .85; }
    50%      { opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .result-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .result-summary-card { transform: rotate(0); max-width: 600px; margin: 0 auto; }
    .rp-grid-2 { grid-template-columns: 1fr; }
    .rp-vip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .result-hero { padding: 110px 0 60px; }
    .result-hero-copy h1 { font-size: 36px; }
    .rsc-inner { padding: 24px 22px; }
    .rsc-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rsc-meta { text-align: left; }
    .rsc-pillars { gap: 6px; }
    .rsc-glyph { font-size: 18px; }

    .result-tabs { top: 66px; }
    .result-tab { padding: 8px 16px; font-size: 13px; }

    .rp-card-head { padding: 12px 16px; font-size: 13px; }
    .rp-narrative { padding: 24px 22px; }
    .rp-fact-table th, .rp-fact-table td { padding: 10px 16px; font-size: 13px; }
    .rp-fact-table th { width: 42%; }
    .rp-orbit-chart { width: 180px; height: 180px; }
    .rp-orbit-legend { grid-template-columns: 1fr; }

    .rp-vip-grid { grid-template-columns: 1fr; }
    .rp-vip-modal { padding: 0; }
    .rp-vip-modal-body { padding: 28px 22px; }
    .rp-pdf-cta { flex-direction: column; align-items: stretch; text-align: center; }

    .luopan-tr { width: 480px; height: 480px; }
    .luopan-bl { display: none; }
}
