/* ════════════════════════════════════
   BAMBOO BAZI — Design System
   Dark Teal · Amber
   ════════════════════════════════════ */

:root {
    --bg-primary: #080f0c;
    --bg-secondary: #0b1610;

    /* Rich jade green card system */
    --card: #047857;
    --card-soft: #059669;
    --card-dark: #025c3c;
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-jade: rgba(245, 158, 11, 0.25);
    --card-text: #f1f5f1;
    --card-text-muted: rgba(241, 245, 241, 0.78);

    /* Accent palette */
    --accent: #f59e0b;
    --accent-2: #fbbf24;
    --jade: #f59e0b;
    --jade-soft: #fbbf24;
    --jade-dim: rgba(245, 158, 11, 0.12);

    --text: #f1f5f1;
    --muted: rgba(241, 245, 241, 0.78);
    --border: rgba(255, 255, 255, 0.08);

    /* Five Elements */
    --wood: #4ade80;
    --fire: #f87171;
    --earth: #fbbf24;
    --metal: #e2e8f0;
    --water: #60a5fa;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
    --glow-jade: 0 0 32px rgba(245, 158, 11, 0.1);
    --glow-gold: 0 0 32px rgba(245, 158, 11, 0.15);
}

/* ─── Keyframe Animations ───────────────────────────── */

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

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

/* ─── Reset & Base ─────────────────────────────────── */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 10%, rgba(245, 158, 11, 0.03) 0%, transparent 30%),
        radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #080f0c 0%, #0a1410 40%, #060b08 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: Cinzel, "Noto Serif SC", serif;
    line-height: 1.1;
}

p {
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
}

/* ─── Layout ────────────────────────────────────────── */

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section.alt {
    background:
        linear-gradient(180deg, rgba(11, 22, 40, 0.6), rgba(7, 13, 26, 0.4)),
        radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.025) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-header .sub {
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ─── Utility ────────────────────────────────────────── */

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jade-text {
    background: linear-gradient(90deg, var(--jade), var(--jade-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-line {
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 20px 0 28px;
}

.highlight {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

.placeholder-text {
    color: var(--muted);
    text-align: center;
    padding: 36px 28px;
    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
    font-size: 0.95rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--jade-soft);
    margin-bottom: 20px;
    font-weight: 600;
}

.eyebrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ─── Buttons ────────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0d1a0f;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 6px 24px rgba(245, 163, 0, 0.28), 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(245, 163, 0, 0.38), 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Ghost / outline button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(241, 245, 249, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
    color: var(--jade-soft);
}

/* Loading spinner inside buttons */
.btn-spinner {
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Section reveal animation */
.section-reveal {
    animation: fadeInUp 0.5s ease both;
}

/* Keyboard focus — WCAG AA accessible */
:focus-visible {
    outline: 2px solid var(--jade);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Navbar ────────────────────────────────────────── */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(4, 10, 22, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(4, 10, 22, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-container {
    width: min(1280px, 94%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 26px;
    height: 26px;
    color: var(--accent);
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin-left: 12px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.18s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.pill:hover {
    background: rgba(255,255,255,0.07);
}

.pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--jade);
    display: inline-block;
    box-shadow: 0 0 6px var(--jade);
}

.pill.premium {
    border-color: rgba(245, 163, 0, 0.35);
    background: rgba(245, 163, 0, 0.06);
}

.pill.premium .dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
    display: none;
}

/* ─── Hero ────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 15%, rgba(245, 158, 11, 0.07) 0%, transparent 28%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 163, 0, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.5), rgba(4, 10, 20, 0.1));
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 20%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 12, 24, 0.1), rgba(4, 12, 24, 0.7));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, 90%);
    margin: 0 auto;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 70px;
    align-items: center;
}

.hero-text {
    max-width: 680px;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero-text h1 span {
    display: block;
    margin-top: 6px;
}

.hero-text > p {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 520px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 580px;
    line-height: 1.75;
    margin: 0 auto;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 8px;
}

.hero-cta {
    width: auto;
    padding: 15px 28px;
    font-size: 1rem;
    gap: 8px;
    text-decoration: none;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 0;
    justify-content: center;
}

.hero-benefits span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: var(--jade-soft);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 520px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

/* ─── Form Card ────────────────────────────────────── */

.form-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-card h3 { color: var(--card-text); }
.form-card p { color: var(--card-text-muted); }
.form-card .form-note { color: var(--card-text-muted); }

.form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.form-header h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.form-header p {
    color: var(--muted);
    font-size: 0.9rem;
}

.yin-yang {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 163, 0, 0.3);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(245, 163, 0, 0.04);
    flex-shrink: 0;
}

.yin-yang-inner {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(245, 163, 0, 0.35);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    outline: none; /* managed by :focus-visible globally */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.form-group select option {
    background: #047857;
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.form-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.inline-alert {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 0.92rem;
}

/* ─── Results Summary ────────────────────────────── */

.results-summary {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.02), transparent),
        rgba(255, 255, 255, 0.01);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.summary-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.summary-card:hover {
    border-color: var(--card-border-jade);
    transform: translateY(-2px);
}

.summary-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jade-soft);
    margin-bottom: 10px;
    font-weight: 700;
}

.summary-value {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.summary-value .han {
    font-family: "Noto Serif SC", serif;
}

.summary-sub {
    font-size: 0.9rem;
    color: var(--muted);
}

.summary-insight {
    margin-top: 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.summary-insight-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.summary-insight-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.summary-insight-sub {
    color: var(--muted);
    max-width: 720px;
}

.summary-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 163, 0, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(245, 163, 0, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-point {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 20px;
}

.summary-point-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin-bottom: 8px;
    font-weight: 700;
}

.summary-point-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.summary-cta {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.95rem;
}

/* ─── Zodiac ────────────────────────────────────── */

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.zodiac-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.zodiac-item.active {
    border-color: rgba(245, 163, 0, 0.4);
    box-shadow: 0 0 24px rgba(245, 163, 0, 0.08), var(--shadow-sm);
    background: linear-gradient(135deg, rgba(245, 163, 0, 0.06), rgba(11, 22, 40, 1));
}

.zodiac-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.2);
}

.zodiac-item .emoji {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1;
}

.zodiac-item .name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: white;
}

.zodiac-item .chinese {
    color: var(--accent-2);
    font-family: "Noto Serif SC", serif;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.zodiac-item .traits {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ─── Four Pillars ────────────────────────────── */

.pillars-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.pillars-info h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
}

.legend {
    margin-top: 28px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
}

.dot.red { background: var(--fire); box-shadow: 0 0 6px var(--fire); }
.dot.amber { background: var(--earth); box-shadow: 0 0 6px rgba(251, 191, 36, 0.5); }
.dot.blue { background: var(--water); box-shadow: 0 0 6px rgba(96, 165, 250, 0.5); }

.pillars-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.pillar-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    border-color: var(--card-border-jade);
    box-shadow: var(--shadow-sm), var(--glow-jade);
}

.pillar-card .top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.badge {
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(245, 163, 0, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(245, 163, 0, 0.2);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cell {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: border-color 0.18s ease;
}

.cell:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.cell .nm, .cell .meta {
    color: var(--card-text);
}

.cell .meta {
    opacity: 0.65;
}

.han {
    font-family: "Noto Serif SC", serif;
    font-size: 2.2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.nm {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.divider {
    opacity: 0.35;
}

.daymaster-summary {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.dm-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 1px solid rgba(245, 163, 0, 0.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(245, 163, 0, 0.05);
}

.dm-icon span {
    font-size: 2rem;
    font-family: "Noto Serif SC", serif;
}

.dm-text h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.dm-text p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ─── Day Master Story ────────────────────────── */

.story {
    position: relative;
    padding: 100px 0;
}

.story-bg, .story-overlay {
    position: absolute;
    inset: 0;
}

.story-bg {
    background:
        radial-gradient(ellipse at center, rgba(245, 163, 0, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(11, 22, 40, 0.5));
}

.story-overlay {
    pointer-events: none;
}

.story-content {
    position: relative;
    z-index: 1;
    width: min(860px, 90%);
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card-soft), var(--card));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 52px 40px;
    text-align: center;
    box-shadow: var(--shadow), var(--glow-gold);
}

.element-glyph {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(245, 163, 0, 0.2);
    background: rgba(245, 163, 0, 0.04);
}

.element-insight {
    margin-top: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.element-insight strong {
    color: var(--accent);
}

.story-label {
    color: var(--jade-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 700;
}

.story-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.story-content p {
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.02rem;
}

.traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.trait {
    padding: 9px 16px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--jade-soft);
    font-weight: 500;
}

/* ─── Element Balance ─────────────────────────── */

.elements-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.elements-info h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
}

.element-bars {
    margin-top: 28px;
}

.bar {
    margin-bottom: 20px;
}

.bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.radar-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.radar-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: white;
}

.radar-sub {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.radar-mini {
    min-height: 160px;
    display: flex;
    align-items: center;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.mini-item {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--card-text);
    font-size: 0.9rem;
}

/* ─── Luck Cycles ─────────────────────────────── */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.cycle {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cycle:hover {
    transform: translateY(-2px);
}

.cycle.current {
    border-color: rgba(245, 163, 0, 0.35);
    box-shadow: var(--shadow-sm), 0 0 24px rgba(245, 163, 0, 0.07);
}

.cycle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cycle-years {
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
}

.cycle-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 163, 0, 0.1);
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(245, 163, 0, 0.18);
}

.cycle-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.smallcell {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    color: var(--card-text);
    transition: border-color 0.18s ease;
}

.smallcell:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.smallcell .han {
    font-size: 1.7rem;
    margin-bottom: 6px;
}

/* ─── How It Works ────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow-sm), var(--glow-jade);
}

.step-card:hover::before {
    opacity: 1;
}

.step-card h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.step-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #0d1a0f;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(245, 163, 0, 0.3);
}

@media (max-width: 900px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* ─── Wu Xing Diagram ─────────────────────────── */

.wuxing-diagram {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.wuxing-diagram svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.wuxing-label {
    font-size: 13px;
    font-weight: 700;
    fill: white;
    text-anchor: middle;
}

.wuxing-value {
    font-size: 12px;
    fill: rgba(255, 255, 255, 0.75);
    text-anchor: middle;
}

.wuxing-center {
    font-size: 13px;
    font-weight: 700;
    fill: white;
    text-anchor: middle;
}

.wuxing-line {
    stroke-width: 2.5;
    fill: none;
    opacity: 0.85;
}

.wuxing-node {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.wuxing-control-line {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    fill: none;
}

/* ─── Premium ─────────────────────────────────── */

.locked-content {
    text-align: center;
    background: linear-gradient(135deg, var(--card-soft), var(--card));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 60px 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.locked-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 163, 0, 0.05), transparent 60%);
    pointer-events: none;
}

.lock-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lock-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    opacity: 0.9;
}

.locked-content h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.locked-content p {
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 24px;
    font-size: 1rem;
}

.premium-benefits {
    list-style: none;
    margin: 0 auto 32px;
    padding: 0;
    text-align: left;
    max-width: 380px;
}

.premium-benefits li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.premium-benefits li:last-child {
    border-bottom: none;
}

.premium-benefits li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
    top: 12px;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.panel-sub {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.reading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.75;
}

.fineprint {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.88rem;
}

.star-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.star-cell {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    min-height: 88px;
    display: grid;
    place-items: center;
    transition: border-color 0.18s ease;
}

.star-cell:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.star-num {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0d1a0f;
    font-size: 1.1rem;
}

.year-note {
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* ─── Modal ───────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(520px, 100%);
    background: #07101e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow), 0 0 80px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.12);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.info-block {
    margin-bottom: 16px;
}

.info-block h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.info-block p {
    color: var(--muted);
    font-size: 0.92rem;
}

.modal-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}

.modal-plan {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.modal-plan:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.04);
}

.modal-plan h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.price span {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

/* ─── Footer ──────────────────────────────────── */

.footer {
    padding: 52px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 10, 22, 0.6);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    color: white;
}

.separator {
    color: var(--accent);
}

.footer-note {
    color: var(--muted);
    font-size: 0.88rem;
}

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 40px;
        padding-bottom: 24px;
    }

    .hero-text {
        max-width: 100%;
    }

    .form-card {
        max-width: 520px;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .summary-points {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .elements-grid {
        grid-template-columns: 1fr;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: fixed;
        inset: 68px 16px auto 16px;
        background: #071020;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 24px;
        z-index: 999;
        box-shadow: var(--shadow);
    }

    .mobile-menu a {
        color: rgba(255, 255, 255, 0.85);
        font-weight: 600;
        font-size: 1.05rem;
        padding: 4px 0;
        transition: color 0.18s ease;
    }

    .mobile-menu a:hover {
        color: white;
    }

    .summary-insight-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .pillars-cards {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .nav-container {
        gap: 10px;
    }

    .logo {
        font-size: 0.95rem;
    }

    .pill {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .section {
        padding: 72px 0;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-grid,
    .cycle-pair,
    .modal-plans,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .daymaster-summary {
        flex-direction: column;
        text-align: center;
    }

    .story-content,
    .panel,
    .form-card,
    .summary-insight,
    .modal-content {
        padding: 24px 20px;
    }
}

/* ─── Expandable Learn Panels ─────────────────── */

.learn-panel {
    margin-top: 28px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-soft);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.learn-panel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--card-text);
    transition: background 0.18s ease;
}

.learn-panel-btn:hover {
    background: rgba(245, 158, 11, 0.04);
}

.learn-panel-btn-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.learn-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--jade-soft);
}

.learn-panel-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

.learn-panel-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}

.learn-panel-chevron {
    width: 20px;
    height: 20px;
    color: var(--jade);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.learn-panel-btn[aria-expanded="true"] .learn-panel-chevron {
    transform: rotate(180deg);
}

.learn-panel-body {
    display: none;
    padding: 0 22px 22px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(245, 158, 11, 0.08);
}

.learn-panel-body.open {
    display: block;
}

.learn-panel-body p {
    color: rgba(241, 245, 249, 0.85);
    font-size: 0.92rem;
    line-height: 1.78;
    margin-top: 16px;
    margin-bottom: 0;
}

.learn-panel-body p + p {
    margin-top: 10px;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.learn-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.18s ease;
}

.learn-item:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.learn-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.learn-item-text {
    color: rgba(241, 245, 249, 0.72);
    font-size: 0.82rem;
    line-height: 1.6;
}

.learn-highlight {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.4);
    text-underline-offset: 3px;
}

/* ─── Knowledge Section ───────────────────────── */

.hero-content-stacked {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 52px;
    min-height: auto;
}

.hero-text-centered {
    max-width: 720px;
    text-align: center;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 0;
}

.knowledge-btn {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.knowledge-btn:hover {
    background: var(--card-soft);
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-sm), var(--glow-jade);
}

.knowledge-btn[aria-expanded="true"] {
    background: var(--card-soft);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.06);
}

.knowledge-icon {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.9rem;
    color: var(--jade-soft);
    line-height: 1;
    margin-bottom: 4px;
}

.knowledge-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.knowledge-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.knowledge-expanded {
    background: var(--card);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 16px;
    animation: fadeSlideIn 0.22s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.knowledge-expanded p {
    color: rgba(241, 245, 249, 0.88);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.knowledge-expanded p:last-child {
    margin-bottom: 0;
}

/* ─── Form centered layout ────────────────────── */

.form-card-centered {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: var(--shadow), var(--glow-jade);
}

.form-card-centered h3 {
    color: var(--card-text);
}

.form-card-centered p {
    color: var(--card-text-muted);
}

.form-card-centered .form-note {
    color: var(--card-text-muted);
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ─── Responsive — knowledge, forms ──────────── */

@media (max-width: 820px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .knowledge-btn {
        padding: 18px 12px;
    }

    .knowledge-icon {
        font-size: 1.5rem;
    }

    .form-row-two {
        grid-template-columns: 1fr;
    }

    .form-card-centered {
        padding: 24px;
    }
}

/* ════════════════════════════════════
   PREMIUM LOCKED — PLAN PREVIEW
   ════════════════════════════════════ */

.premium-plan-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 680px;
    margin: 32px auto 36px;
    text-align: left;
}

.plan-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-preview-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
}

.plan-monthly {
    border-color: rgba(245, 158, 11, 0.18);
}

.plan-annual {
    border-color: rgba(245, 163, 0, 0.25);
    background: rgba(245, 163, 0, 0.03);
    box-shadow: 0 0 32px rgba(245, 163, 0, 0.06);
}

.plan-preview-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--jade-soft);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.plan-annual .plan-preview-tag {
    background: rgba(245, 163, 0, 0.1);
    color: var(--accent-2);
    border-color: rgba(245, 163, 0, 0.2);
}

.plan-preview-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    font-family: Cinzel, serif;
}

.plan-preview-price {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 18px;
    line-height: 1;
}

.plan-preview-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.plan-preview-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-preview-features li {
    font-size: 0.88rem;
    color: rgba(241, 245, 249, 0.8);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-preview-features li:last-child {
    border-bottom: none;
}

.plan-preview-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--jade);
    font-size: 0.82rem;
    font-weight: 800;
}

.plan-annual .plan-preview-features li::before {
    color: var(--accent);
}

.btn-unlock {
    max-width: 360px;
    margin: 0 auto 24px;
    display: flex;
}

.plan-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* ════════════════════════════════════
   PREMIUM TABS
   ════════════════════════════════════ */

.premium-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 32px;
}

.premium-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
    margin-bottom: -1px;
    font-family: inherit;
}

.premium-tab svg {
    opacity: 0.6;
    transition: opacity 0.18s ease;
}

.premium-tab:hover {
    color: rgba(255, 255, 255, 0.85);
}

.premium-tab.active {
    color: white;
    border-bottom-color: var(--accent);
}

.premium-tab.active svg {
    opacity: 1;
}

.premium-panel {
    display: none;
}

.premium-panel.active {
    display: block;
}

/* ════════════════════════════════════
   READING CARD
   ════════════════════════════════════ */

.reading-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.reading-card-header {
    background: linear-gradient(135deg, var(--card-soft), var(--card-dark));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reading-month-name {
    font-family: Cinzel, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.reading-month-pillar {
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.7);
    font-weight: 600;
}

.reading-pillar-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}

.reading-body {
    padding: 0;
}

.reading-section {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reading-section:last-child {
    border-bottom: none;
}

.reading-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jade-soft);
    font-weight: 700;
    margin-bottom: 16px;
}

/* Flying Star Row */
.reading-star-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.reading-star-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reading-star-badge.star-sm {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.star-auspicious {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.star-challenging {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.06));
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.star-caution {
    background: linear-gradient(135deg, rgba(245, 163, 0, 0.18), rgba(245, 163, 0, 0.06));
    border: 1px solid rgba(245, 163, 0, 0.3);
}

.reading-star-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    font-family: Cinzel, serif;
}

.reading-star-badge.star-sm .reading-star-num {
    font-size: 1.1rem;
}

.reading-star-info {
    flex: 1;
}

.reading-star-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.reading-star-chinese {
    color: var(--accent-2);
    font-family: "Noto Serif SC", serif;
    margin-left: 6px;
}

.reading-star-theme {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.reading-star-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reading-star-keywords span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(241, 245, 249, 0.7);
}

.reading-text {
    color: rgba(241, 245, 249, 0.88);
    line-height: 1.78;
    font-size: 0.95rem;
    margin: 0;
}

.reading-caution {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(245, 163, 0, 0.06);
    border: 1px solid rgba(245, 163, 0, 0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    color: rgba(241, 245, 249, 0.8);
}

.reading-caution strong {
    color: var(--accent-2);
}

/* Day Master Row */
.reading-dm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.reading-dm-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.88rem;
    font-weight: 700;
}

.reading-rel-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rel-supported  { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.rel-resonant   { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.25); }
.rel-giving     { background: rgba(251, 191, 36, 0.1);  color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.2); }
.rel-empowered  { background: rgba(245, 163, 0, 0.12);  color: #ffc247; border: 1px solid rgba(245, 163, 0, 0.25); }
.rel-challenged { background: rgba(239, 68, 68, 0.1);   color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }
.rel-steady     { background: rgba(255, 255, 255, 0.05); color: rgba(241,245,249,0.65); border: 1px solid rgba(255,255,255,0.1); }

/* Life Area Grid */
.reading-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 4px;
}

.reading-area {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color 0.18s ease;
}

.reading-area:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

/* ── Opening synthesis block ── */
.reading-synthesis {
    padding: 20px 24px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 12px;
    margin-bottom: 4px;
}

.reading-synthesis-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.reading-synthesis-text {
    font-size: 0.92rem;
    color: rgba(241, 245, 249, 0.85);
    line-height: 1.75;
    margin: 0;
}

/* ── Area icons ── */
.reading-area-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    color: var(--accent-2);
    flex-shrink: 0;
}

.reading-area-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.reading-area-text {
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.82);
    line-height: 1.7;
}

.reading-section-cycle,
.reading-section-elements {
    background: rgba(255, 255, 255, 0.01);
}

/* ── Avoid / Activate two-column section ── */
.reading-avoid-activate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.015);
}

.reading-aa-col {
    display: flex;
    flex-direction: column;
}

.reading-label-avoid {
    color: #f87171;
}

.reading-label-activate {
    color: var(--jade);
}

.reading-aa-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.reading-aa-list li {
    font-size: 0.86rem;
    color: rgba(241, 245, 249, 0.72);
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}

.reading-aa-list li::before {
    content: "x";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f87171;
    line-height: 1.55;
}

.reading-aa-list.reading-aa-activate li::before {
    content: "+";
    color: var(--jade);
    font-size: 0.9rem;
}

/* ── Monthly closing / affirmation ── */
.reading-closing {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 163, 0, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    text-align: center;
    margin: 4px 0 0 0;
}

.reading-closing-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jade);
    margin-bottom: 10px;
}

.reading-affirmation {
    font-family: Cinzel, serif;
    font-size: 1.05rem;
    color: rgba(241, 245, 249, 0.9);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ════════════════════════════════════
   ANNUAL READING
   ════════════════════════════════════ */

.annual-overview {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.annual-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}

.annual-year-title {
    font-family: Cinzel, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.annual-year-pillar {
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.65);
    font-weight: 600;
}

.annual-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jade-soft);
    font-weight: 700;
    margin-bottom: 16px;
}

.annual-star-overview,
.annual-dm-overview {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.annual-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.annual-highlight-card {
    border-radius: var(--radius);
    padding: 18px;
}

.highlight-best {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.highlight-watch {
    background: rgba(245, 163, 0, 0.05);
    border: 1px solid rgba(245, 163, 0, 0.14);
}

.annual-highlight-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-best .annual-highlight-label { color: var(--jade-soft); }
.highlight-watch .annual-highlight-label { color: var(--accent-2); }

.annual-highlight-months {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
}

/* Month cards grid */
.annual-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.annual-month-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.annual-month-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.2);
}

.annual-month-current {
    border-color: rgba(245, 163, 0, 0.35);
    box-shadow: var(--shadow-sm), 0 0 24px rgba(245, 163, 0, 0.07);
}

.annual-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.annual-month-name {
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-tag {
    padding: 2px 8px;
    background: rgba(245, 163, 0, 0.15);
    color: var(--accent-2);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(245, 163, 0, 0.25);
}

.annual-month-pillar {
    font-size: 0.8rem;
    color: var(--muted);
}

.annual-month-star {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.annual-star-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.annual-star-theme {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.annual-month-rel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.annual-month-reltext {
    font-size: 0.78rem;
    color: var(--muted);
}

.annual-month-summary {
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.65);
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════
   ANNUAL MONTHS LIST + EXPANDABLE CARDS
   ════════════════════════════════════ */

.annual-months-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
}

.annual-months-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

/* Cards in list mode stack with a dividing border */
.annual-months-list .annual-month-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px 0;
    box-shadow: none;
    background: transparent;
}

.annual-months-list .annual-month-card:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.annual-months-list .annual-month-card + .annual-month-card {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.annual-months-list .annual-month-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.annual-months-list .annual-month-card.annual-month-current {
    border-color: rgba(245, 163, 0, 0.25);
    background: rgba(245, 163, 0, 0.03);
    box-shadow: none;
}

/* Compact header — clickable */
.annual-month-compact {
    cursor: pointer;
    user-select: none;
}

/* Expand hint row */
.annual-expand-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--jade);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.annual-month-card.expanded .annual-expand-hint {
    color: var(--jade-soft);
}

/* Chevron rotation */
.annual-expand-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.annual-month-card.expanded .annual-expand-chevron {
    transform: rotate(180deg);
}

/* Expanded body — hidden by default */
.annual-month-expanded {
    display: none;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.annual-month-card.expanded .annual-month-expanded {
    display: block;
}

/* Expanded content sections */
.annual-exp-section {
    margin-bottom: 20px;
}

.annual-exp-section-last {
    margin-bottom: 0;
}

.annual-exp-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jade);
    margin-bottom: 8px;
}

.annual-exp-text {
    font-size: 0.88rem;
    color: rgba(241, 245, 249, 0.75);
    line-height: 1.7;
    margin: 0 0 8px 0;
}

.annual-exp-caution {
    font-size: 0.83rem;
    color: rgba(241, 245, 249, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 9px 13px;
    line-height: 1.6;
}

/* 2-column life areas grid inside expanded card */
.annual-exp-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.annual-exp-area {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 14px;
}

.annual-exp-area-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 5px;
}

.annual-exp-area-text {
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Chinese character next to star name in expanded card */
.annual-star-chinese {
    color: var(--muted);
    font-weight: 400;
    margin-left: 4px;
}

/* ════════════════════════════════════
   ANNUAL QUARTERS SECTION
   ════════════════════════════════════ */

.annual-quarters-section {
    margin-top: 32px;
}

.annual-quarters-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.annual-quarters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.annual-quarter {
    background: var(--card-soft);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.annual-quarter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.annual-quarter-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jade);
    margin-bottom: 3px;
}

.annual-quarter-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
}

.annual-quarter-tone {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.quarter-strong {
    background: rgba(245, 158, 11, 0.12);
    color: var(--jade);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.quarter-steady {
    background: rgba(245, 163, 0, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(245, 163, 0, 0.2);
}

.quarter-careful {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.annual-quarter-months {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.annual-qm-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    min-width: 68px;
}

.annual-qm-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.65);
}

.annual-quarter-insight {
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.6);
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════
   DISCLAIMER
   ════════════════════════════════════ */

.disclaimer-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-left: 3px solid var(--jade);
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 760px;
    margin: 0 auto;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: var(--jade);
    opacity: 0.7;
    margin-top: 2px;
}

.disclaimer-body {
    flex: 1;
}

.disclaimer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jade);
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
}

.disclaimer-body p {
    font-size: 0.93rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 12px 0;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
}

.disclaimer-sig {
    font-style: italic;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.88rem !important;
}

@media (max-width: 600px) {
    .disclaimer-card {
        flex-direction: column;
        gap: 12px;
        padding: 22px 20px;
    }
}

/* ════════════════════════════════════
   PAYMENT SUCCESS BANNER
   ════════════════════════════════════ */

.payment-success-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #025c3c, #047857);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
}

.payment-success-banner.visible {
    transform: translateY(0);
}

.payment-success-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #a7f3d0;
}

.payment-success-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-success-text strong {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
}

.payment-success-text span {
    font-size: 0.85rem;
    color: #fbbf24;
}

.payment-success-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.payment-success-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ════════════════════════════════════
   MODAL — UPGRADE TRUST ROW
   ════════════════════════════════════ */

.modal-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-trust span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ════════════════════════════════════
   LIFETIME LUCK JOURNEY
   ════════════════════════════════════ */

.lifetime-journey {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 36px;
}

.lj-header {
    margin-bottom: 28px;
}

.lj-title {
    font-family: Cinzel, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.lj-intro {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 720px;
}

/* Section grouping */
.lj-section {
    margin-bottom: 32px;
}

.lj-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lj-label-now {
    color: var(--jade);
}

.lj-label-future {
    color: var(--accent-2);
}

/* Decade cards */
.lj-decade {
    background: var(--card-soft);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 14px;
}

.lj-past {
    opacity: 0.9;
}

.lj-current {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.03);
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.04);
}

.lj-future {
    opacity: 0.85;
    border-style: dashed;
}

.lj-decade-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lj-decade-years {
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.lj-decade-ages {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lj-here-badge {
    padding: 2px 9px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--jade);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lj-decade-stems {
    font-size: 0.88rem;
    color: rgba(241, 245, 249, 0.8);
}

.lj-sep {
    color: var(--muted);
    margin: 0 2px;
}

.lj-decade-text {
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.8);
    line-height: 1.75;
    margin: 0;
}

/* Reflection prompt */
.lj-reflection {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(245, 163, 0, 0.04);
    border-left: 3px solid rgba(245, 163, 0, 0.3);
    border-radius: 0 8px 8px 0;
}

.lj-reflection-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.lj-reflection-text {
    font-size: 0.86rem;
    color: rgba(241, 245, 249, 0.72);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* Month alignment grid */
.lj-month-align {
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
}

.lj-align-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.lj-align-intro {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.lj-align-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.lj-align-month {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lj-align-now {
    border-color: rgba(245, 163, 0, 0.3);
    background: rgba(245, 163, 0, 0.04);
}

.lj-align-power {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.06);
}

.lj-align-caution {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.03);
    opacity: 0.8;
}

.lj-align-mname {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(241, 245, 249, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.lj-align-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.lj-align-who {
    font-size: 0.58rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lj-power-tag {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--jade);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Legend */
.lj-align-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lj-legend-power,
.lj-legend-caution {
    font-size: 0.72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lj-legend-power::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}

.lj-legend-caution::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
}

/* Upgrade prompt (for monthly subscribers) */
.lj-upgrade-prompt {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 36px;
}

.lj-upgrade-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(245, 163, 0, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px;
    flex-wrap: wrap;
}

.lj-upgrade-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jade);
    flex-shrink: 0;
}

.lj-upgrade-title {
    font-family: Cinzel, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.lj-upgrade-text {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.lj-upgrade-btn {
    width: auto;
    padding: 13px 22px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.lj-empty {
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    padding: 16px 0;
}

@media (max-width: 768px) {
    .lj-align-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .lj-upgrade-inner {
        flex-direction: column;
    }

    .lj-upgrade-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lj-align-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ════════════════════════════════════
   SIGN-UP MODAL
   ════════════════════════════════════ */

.signup-modal-content {
    max-width: 460px;
}

/* Plan summary pill */
.signup-plan-summary {
    margin-bottom: 24px;
}

.signup-plan-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
    gap: 16px;
}

.signup-plan-annual {
    border-color: rgba(245, 163, 0, 0.25);
    background: rgba(245, 163, 0, 0.05);
}

.signup-plan-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.signup-plan-name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.signup-plan-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.signup-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.signup-plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.signup-plan-freq {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: -2px;
}

.signup-plan-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 163, 0, 0.15);
    color: var(--accent-2);
    border: 1px solid rgba(245, 163, 0, 0.2);
}

.signup-plan-badge-green {
    background: rgba(245, 158, 11, 0.1);
    color: var(--jade);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Form fields */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signup-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.8);
}

.signup-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.signup-field input::placeholder {
    color: rgba(241, 245, 249, 0.3);
}

.signup-field input:focus {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.signup-field-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

.signup-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #fca5a5;
}

.signup-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    font-size: 1rem;
}

.signup-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Trust row at base of sign-up modal */
.signup-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signup-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: var(--muted);
}

/* ════════════════════════════════════
   MODAL — UPGRADE (ENHANCED)
   ════════════════════════════════════ */

.modal-intro {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

.modal-plan-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--jade-soft);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.modal-plan-badge-gold {
    background: rgba(245, 163, 0, 0.1);
    color: var(--accent-2);
    border-color: rgba(245, 163, 0, 0.2);
}

.modal-plan-featured {
    border-color: rgba(245, 163, 0, 0.3) !important;
    background: rgba(245, 163, 0, 0.03) !important;
}

.modal-plan-selected {
    border-color: rgba(245, 163, 0, 0.7) !important;
    background: rgba(245, 163, 0, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(245, 163, 0, 0.15), var(--shadow-sm);
}

.price-annual {
    color: var(--accent);
}

.modal-plan-saving {
    font-size: 0.82rem;
    color: var(--jade-soft);
    margin-top: -8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.modal-plan-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.modal-plan-features li {
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.8);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-plan-features li:last-child { border-bottom: none; }

.modal-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--jade);
    font-size: 0.8rem;
    font-weight: 800;
}

.modal-plan-featured .modal-plan-features li::before {
    color: var(--accent);
}

/* ════════════════════════════════════
   DATE SELECTION CALENDAR
   ════════════════════════════════════ */

.ds-header { margin-bottom: 20px; }
.ds-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--card-text); margin-bottom: 6px; }
.ds-title span { color: var(--accent); }
.ds-subtitle { font-size: 0.82rem; color: var(--card-text-muted); }

/* Legend */
.ds-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 12px;
    font-size: 0.74rem;
    color: var(--card-text-muted);
}
.ds-leg-item { display: flex; align-items: center; gap: 6px; }
.ds-leg-swatch {
    width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.ds-leg-swatch.ds-best    { background: rgba(52,211,153,0.35); border: 1px solid #34d399; }
.ds-leg-swatch.ds-good    { background: rgba(74,222,128,0.2); border: 1px solid #4ade80; }
.ds-leg-swatch.ds-support-leg { background: rgba(245,158,11,0.2); border: 1px solid var(--accent); }
.ds-leg-swatch.ds-neutral { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.ds-leg-swatch.ds-avoid  { background: rgba(248,113,113,0.2); border: 1px solid #f87171; }

/* Badge legend */
.ds-badge-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.74rem;
    color: var(--card-text-muted);
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Badges */
.ds-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: default;
}
.ds-yb    { background: rgba(239,68,68,0.2);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.ds-mb    { background: rgba(251,146,60,0.2); color: #fdba74; border: 1px solid rgba(251,146,60,0.4); }
.ds-ws    { background: rgba(96,165,250,0.2); color: #93c5fd; border: 1px solid rgba(96,165,250,0.4); }
.ds-fs    { background: rgba(248,113,113,0.2); color: #fca5a5; border: 1px solid rgba(248,113,113,0.35); }
.ds-cs    { background: rgba(167,139,250,0.2); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.4); }
.ds-clash { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.35); }
.ds-support-badge { background: rgba(245,158,11,0.15); color: var(--accent); border: 1px solid rgba(245,158,11,0.3); }

/* Calendar grid */
.ds-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 24px;
}

.ds-weekday {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--card-text-muted);
    padding: 6px 0;
}

.ds-empty { background: transparent; }

.ds-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 7px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ds-cell:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-1px); }

.ds-cell.ds-best    { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.25); }
.ds-cell.ds-good    { background: rgba(74,222,128,0.05); border-color: rgba(74,222,128,0.18); }
.ds-cell.ds-support { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.25); }
.ds-cell.ds-avoid   { background: rgba(248,113,113,0.07); border-color: rgba(248,113,113,0.25); }
.ds-cell.ds-today   { border-color: var(--accent); border-width: 2px; }

.ds-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--card-text);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ds-today-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.ds-pillar {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}
.ds-officer {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
}
.ds-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}

/* Day detail card */
.ds-detail-card {
    background: var(--card-soft);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
}
.ds-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 16px;
}
.ds-detail-date {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.ds-detail-pillar { font-size: 0.82rem; color: var(--card-text-muted); margin-top: 4px; }
.ds-detail-officer { text-align: right; }
.ds-detail-officer-char {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: currentColor;
    line-height: 1;
}
.ds-detail-quality {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 3px;
}
.ds-detail-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.ds-detail-flags .ds-badge { font-size: 0.7rem; padding: 3px 8px; }
.ds-detail-body { display: flex; flex-direction: column; gap: 10px; }
.ds-detail-section {}
.ds-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}
.ds-detail-section p { font-size: 0.82rem; color: var(--card-text-muted); line-height: 1.65; }

/* Sha guide */
.ds-sha-guide {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 8px;
}
.ds-sha-guide h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--card-text);
    margin-bottom: 16px;
}
.ds-sha-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ds-sha-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}
.ds-sha-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--card-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ds-sha-item p { font-size: 0.78rem; color: var(--card-text-muted); line-height: 1.65; }

@media (max-width: 700px) {
    .ds-sha-grid { grid-template-columns: 1fr; }
    .ds-calendar { grid-template-columns: repeat(7, 1fr); gap: 2px; }
    .ds-cell { min-height: 70px; padding: 5px 4px; }
    .ds-officer { display: none; }
}

/* ════════════════════════════════════
   PILLAR MEANING
   ════════════════════════════════════ */

.pillar-meaning {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    line-height: 1.65;
    color: var(--card-text-muted);
    font-style: italic;
}

/* ════════════════════════════════════
   BENEFITS SECTION
   ════════════════════════════════════ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.benefit-icon {
    color: var(--accent);
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--card-text);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.benefit-card p {
    font-size: 0.83rem;
    line-height: 1.7;
    color: var(--card-text-muted);
}

@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .benefits-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   GIFT SHOP
   ════════════════════════════════════ */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.shop-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.shop-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-3px);
}

.shop-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0d1a0f;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.shop-card-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.shop-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--card-text);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.shop-card-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--card-text-muted);
    margin-bottom: 18px;
    flex: 1;
}

.shop-card-includes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.shop-include {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: var(--card-text-muted);
}

.shop-include svg {
    color: var(--accent);
    flex-shrink: 0;
}

.shop-card-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.shop-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: var(--accent);
    color: #0d1a0f;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
}

.shop-btn:hover { opacity: 0.88; }

.shop-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--card-text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.shop-note svg { color: var(--accent); flex-shrink: 0; }

/* Gift modal */
.gift-modal-content {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.gift-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

@media (max-width: 900px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   RESPONSIVE — PREMIUM & READING
   ════════════════════════════════════ */

@media (max-width: 900px) {
    .annual-months-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .annual-quarters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .premium-plan-preview {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .annual-highlights {
        grid-template-columns: 1fr;
    }

    .reading-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .reading-areas-grid {
        grid-template-columns: 1fr;
    }

    .reading-avoid-activate {
        grid-template-columns: 1fr;
    }

    .annual-months-grid {
        grid-template-columns: 1fr;
    }

    .annual-exp-areas {
        grid-template-columns: 1fr;
    }

    .annual-quarter-months {
        gap: 6px;
    }

    .annual-qm-pill {
        min-width: 60px;
        padding: 6px 8px;
    }

    .reading-section {
        padding: 22px 20px;
    }

    .reading-card-header {
        padding: 22px 20px;
    }

    .annual-overview {
        padding: 22px 20px;
    }

    .premium-tab {
        padding: 12px 16px;
        font-size: 0.88rem;
    }
}
