/* ============================================================================
   TRADEOPTICS — Refined Dark UI
   ============================================================================ */

:root {
    --bg-primary: #050507;
    --bg-secondary: #0c0c12;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --border: #1a1a28;
    --border-light: #252538;
    --border-accent: #3b82f6;
    --text-primary: #f0f0f5;
    --text-secondary: #8b8ba3;
    --text-muted: #55556e;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.08);
    --accent-glow: rgba(59, 130, 246, 0.12);
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.08);
    --red: #f87171;
    --charity: #a78bfa;
    --charity-soft: rgba(167, 139, 250, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* TYPOGRAPHY */
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: 3rem; text-align: center; margin-bottom: 12px; }
h3 { font-size: 1.1rem; }
p { color: var(--text-secondary); font-size: 0.95rem; }

.section-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-family: var(--mono);
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 56px;
    font-size: 1rem;
    line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #60a5fa; }

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}

.logo { display: flex; align-items: center; gap: 14px; color: var(--text-primary); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }

/* 3D WIREFRAME CUBE LOGO */
.logo-cube {
    width: 32px; height: 32px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(35deg);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
/* hover rotation handled by JS for random directions */

.cube-face {
    position: absolute; width: 100%; height: 100%;
    border: 2px solid rgba(56, 182, 255, 0.8);
    border-radius: 2px;
    background: rgba(30, 100, 255, 0.06);
    box-shadow: 0 0 8px rgba(56, 182, 255, 0.2);
}
.cube-face.front {
    transform: translateZ(16px);
    border-color: rgba(80, 200, 255, 0.9);
    background: rgba(56, 140, 255, 0.08);
    box-shadow: 0 0 10px rgba(80, 200, 255, 0.25);
}
.cube-face.right {
    width: 32px;
    transform: rotateY(90deg) translateZ(16px);
    border-color: rgba(180, 100, 255, 0.7);
    background: rgba(140, 80, 255, 0.05);
    box-shadow: 0 0 8px rgba(180, 100, 255, 0.15);
}
.cube-face.top {
    height: 32px;
    transform: rotateX(90deg) translateZ(16px);
    border-color: rgba(120, 160, 255, 0.8);
    background: rgba(80, 140, 255, 0.06);
    box-shadow: 0 0 8px rgba(120, 160, 255, 0.2);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--accent); color: #fff !important;
    padding: 7px 18px; border-radius: 8px;
    font-weight: 600; font-size: 0.82rem !important;
    transition: all 0.2s;
}
.nav-cta:hover { background: #2563eb; box-shadow: 0 0 20px var(--accent-glow); }
.nav-cta-raffle {
    background: rgba(52, 211, 153, 0.12) !important; color: var(--green) !important;
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.nav-cta-raffle:hover { background: rgba(52, 211, 153, 0.2) !important; box-shadow: 0 0 16px rgba(52, 211, 153, 0.15); }
.nav-cta-donate {
    background: rgba(167, 139, 250, 0.12) !important; color: var(--charity) !important;
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.nav-cta-donate:hover { background: rgba(167, 139, 250, 0.2) !important; box-shadow: 0 0 16px rgba(167, 139, 250, 0.15); }

/* BUTTONS */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 10px;
    font-family: var(--font); font-weight: 600; font-size: 0.92rem;
    cursor: pointer; border: none; transition: all 0.2s; letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563eb; box-shadow: 0 0 32px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-light); border-radius: 8px; }
.btn-lg { padding: 14px 40px; font-size: 1.05rem; }
.btn-xl { padding: 16px 0; font-size: 1rem; width: 100%; text-align: center; border-radius: 12px; }
.btn-charity {
    background: linear-gradient(135deg, #7c3aed 0%, #818cf8 100%); color: #fff;
}
.btn-charity:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #6366f1 100%);
    box-shadow: 0 0 32px rgba(167, 139, 250, 0.25); transform: translateY(-1px);
}

/* HERO */
.hero {
    position: relative;
    padding: 150px 28px 120px;
    text-align: center;
    overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }

.hero-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(59, 130, 246, 0.06); border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px; font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: 0; font-family: var(--mono); font-weight: 500;
}

.hero-cta {
    display: flex; justify-content: center;
    margin-top: 32px;
}

.hero h1 { font-size: 3.6rem; font-weight: 800; line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.04em; }

.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, var(--accent) 40%, var(--green) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 500px; margin: 0 auto 44px; line-height: 1.75;
}

/* HERO PRICE */
.hero-price-block {
    display: flex; flex-direction: column; align-items: center;
    margin: 48px 0 16px; gap: 8px;
}

.hero-price-amount {
    font-size: 6.5rem; font-weight: 800; font-family: var(--mono);
    letter-spacing: -0.05em; line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 50%, #818cf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 40px rgba(129, 140, 248, 0.15));
}

.hero-price-details {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono);
    margin-bottom: 44px; width: 100%; text-align: center;
}

.hero-price-details .dot { opacity: 0.3; }

.hero-glow {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
}

/* MANIFESTO */
.manifesto {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.manifesto-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-headline {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
}

.manifesto-accent {
    background: linear-gradient(135deg, #818cf8 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manifesto-body {
    margin-bottom: 48px;
}

.manifesto-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

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

.manifesto-body strong {
    color: var(--text-primary);
}

.manifesto-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
    transition: border-color 0.2s;
}

.pillar:hover {
    border-color: var(--border-light);
}

.pillar-num {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

.pillar-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.pillar-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* WHY */
.why { padding: 100px 0; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }

.why-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 36px;
    transition: border-color 0.3s;
}
.why-card:hover { border-color: var(--border-light); }
.why-card.highlight { border-color: var(--accent); box-shadow: 0 0 48px var(--accent-glow); }

.why-icon-wrap {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.why-icon-wrap.negative { background: rgba(248, 113, 113, 0.1); color: var(--red); }
.why-icon-wrap.positive { background: rgba(52, 211, 153, 0.1); color: var(--green); }

.why-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.why-card p { font-size: 0.95rem; line-height: 1.75; }

/* INDICATORS */
.indicators { padding: 100px 0; }

.indicator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }

.indicator-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 28px;
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.indicator-card > p:last-of-type { flex: 1; }
.indicator-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.ind-number { font-family: var(--mono); font-size: 1.4rem; color: var(--accent); margin-bottom: 14px; font-weight: 700; line-height: 1; }
.indicator-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ind-oneliner { color: #00aa00; font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; text-shadow: 0 0 6px rgba(0,170,0,0.12); }
.indicator-card > p:last-of-type { font-size: 0.88rem; line-height: 1.7; }

.ind-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.ind-tags span {
    padding: 4px 12px; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: 6px;
    font-size: 0.7rem; color: var(--text-muted); font-family: var(--mono); font-weight: 600;
    transition: border-color 0.2s;
}
/* Default tag colors (overridden per card below) */
.ind-tags span:nth-child(1) { color: #60a5fa; border-color: rgba(96,165,250,0.2); background: rgba(96,165,250,0.06); }
.ind-tags span:nth-child(2) { color: #a78bfa; border-color: rgba(167,139,250,0.2); background: rgba(167,139,250,0.06); }
.ind-tags span:nth-child(3) { color: #34d399; border-color: rgba(52,211,153,0.2); background: rgba(52,211,153,0.06); }

/* Per-indicator tag colors */
.indicator-card:nth-child(1) .ind-tags span { color: #34d399; border-color: rgba(52,211,153,0.2); background: rgba(52,211,153,0.06); }
.indicator-card:nth-child(2) .ind-tags span { color: #60a5fa; border-color: rgba(96,165,250,0.2); background: rgba(96,165,250,0.06); }
.indicator-card:nth-child(3) .ind-tags span { color: #fbbf24; border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }
.indicator-card:nth-child(4) .ind-tags span { color: #f87171; border-color: rgba(248,113,113,0.2); background: rgba(248,113,113,0.06); }
.indicator-card:nth-child(5) .ind-tags span { color: #a78bfa; border-color: rgba(167,139,250,0.2); background: rgba(167,139,250,0.06); }
.indicator-card:nth-child(6) .ind-tags span { color: #fb923c; border-color: rgba(251,146,60,0.2); background: rgba(251,146,60,0.06); }
.indicator-card:nth-child(7) .ind-tags span { color: #22d3ee; border-color: rgba(34,211,238,0.2); background: rgba(34,211,238,0.06); }
.indicator-card:nth-child(8) .ind-tags span { color: #f472b6; border-color: rgba(244,114,182,0.2); background: rgba(244,114,182,0.06); }

/* FEATURES */
.features { padding: 80px 0; border-top: 1px solid var(--border); }

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

.feature { text-align: center; padding: 32px 20px; border-radius: var(--radius); transition: background 0.2s; }
.feature:hover { background: var(--bg-card); }
.feature-icon { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.feature-icon svg { width: 48px; height: 48px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.88rem; }

/* HOW IT WORKS */
.how { padding: 100px 0; border-top: 1px solid var(--border); }

.steps { display: flex; align-items: flex-start; justify-content: center; gap: 20px; margin-top: 48px; }
.step { text-align: center; flex: 1; max-width: 220px; }
.step-arrow { margin-top: 10px; }
.step-num {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--mono); margin-bottom: 16px; font-size: 1.3rem;
}
.step h3 { font-size: 0.95rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; }
.step-arrow { color: var(--text-muted); opacity: 0.4; }

.how-note {
    text-align: center; margin-top: 36px;
    font-size: 0.88rem; color: var(--text-muted);
}
.how-note a { color: var(--accent); font-weight: 500; }

/* BUY */
.buy { padding: 100px 0; border-top: 1px solid var(--border); }

/* TIER TOGGLE */
.tier-toggle {
    display: flex; justify-content: center; gap: 4px;
    margin-bottom: 40px; padding: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; max-width: 420px; margin-left: auto; margin-right: auto;
}

.tier-btn {
    flex: 1; padding: 12px 20px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-muted);
    font-family: var(--font); font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; letter-spacing: -0.01em;
}

.tier-btn.active {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.tier-btn:not(.active):hover { color: var(--text-primary); }

.buy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }

/* PAYMENT BUTTONS */
.pay-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.btn-pay {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 12px; border-radius: 12px; width: 100%;
    gap: 2px; transition: all 0.2s;
}

.pay-label {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; opacity: 0.7;
}

.pay-price {
    font-size: 1.3rem; font-weight: 800; font-family: var(--mono);
    letter-spacing: -0.03em;
}

.pay-via {
    font-size: 0.68rem; opacity: 0.5; font-weight: 400;
}

/* Card button (muted) */
.btn-primary.btn-pay {
    background: var(--bg-secondary); color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-primary.btn-pay:hover {
    border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

/* Crypto button (blue, prominent) */
.btn-pay-crypto {
    background: var(--accent); color: #fff;
}
.btn-pay-crypto:hover {
    background: #2563eb; box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

/* Give Back card button */
.btn-charity.btn-pay {
    background: rgba(88, 60, 150, 0.3); color: #e2d6ff;
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.btn-charity.btn-pay:hover {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
    transform: translateY(-1px);
}

/* Give Back crypto button (blue, same as standard crypto) */
.btn-pay-crypto-charity {
    background: var(--accent); color: #fff;
}
.btn-pay-crypto-charity:hover {
    background: #2563eb; box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

/* TRANSPARENCY TIER TABS */
.transparency-tier-tabs {
    display: flex; justify-content: center; gap: 4px;
    margin-bottom: 32px; padding: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; max-width: 360px; margin-left: auto; margin-right: auto;
}

.trans-tab {
    flex: 1; padding: 8px 16px; border: none; border-radius: 7px;
    background: transparent; color: var(--text-muted);
    font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}

.trans-tab.active {
    background: rgba(59, 130, 246, 0.1); color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.buy-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    display: flex; flex-direction: column; position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.buy-card:hover { border-color: var(--border-light); }
.buy-card.featured {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 60px rgba(167, 139, 250, 0.12), 0 0 120px rgba(167, 139, 250, 0.05);
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.04) 0%, var(--bg-card) 40%);
}

.buy-card-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 7px 22px;
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
    border-radius: 24px; font-size: 0.9rem; font-weight: 700;
    color: #fff; letter-spacing: 0.03em;
    box-shadow: 0 2px 16px rgba(167, 139, 250, 0.35);
}

.buy-card-header { text-align: center; margin-bottom: 28px; padding-top: 4px; }
.buy-card-header h3 { font-size: 1.15rem; margin-bottom: 12px; }

.buy-card-price {
    font-size: 3.2rem; font-weight: 800; font-family: var(--mono);
    letter-spacing: -0.04em; line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 6px;
}

.buy-card-sub { font-size: 0.82rem; color: var(--text-muted); font-family: var(--mono); }

.buy-card-body { flex: 1; margin-bottom: 24px; }

.buy-item {
    padding: 7px 0; font-size: 0.88rem; color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.buy-item:last-child { border-bottom: none; }
.buy-item.bonus { color: var(--green); }
.buy-item.charity-perk { color: #c4b5fd; font-weight: 600; }
.buy-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* FULL DECK EDUCATION PREVIEW CARDS */
.full-deck-label {
    font-size: 0.68rem; font-family: var(--mono); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin: 4px 0 8px; padding-top: 4px;
}
.edu-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 6px 0;
    transition: border-color 0.2s ease;
}
.edu-preview:hover { border-color: var(--border-light); }
.edu-preview-title {
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.edu-preview-title .ep-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0;
}
.edu-preview-title .ep-icon svg { width: 22px; height: 22px; }
.edu-preview-desc {
    font-size: 0.78rem; color: var(--text-muted); line-height: 1.55;
}
.edu-preview-stats {
    display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap;
}
.edu-preview-stat {
    font-size: 0.68rem; font-family: var(--mono); font-weight: 500;
    color: var(--text-muted); background: rgba(255,255,255,0.03);
    padding: 2px 8px; border-radius: 6px;
}
.edu-preview-link {
    font-size: 0.72rem; color: var(--accent); font-weight: 500;
    margin-top: 6px; display: inline-block; text-decoration: none;
}
.edu-preview-link:hover { text-decoration: underline; }

/* CHARITY BLOCK */
.charity-block {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
    text-align: center;
}

.charity-label {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: #a78bfa; margin-bottom: 8px; font-family: var(--mono); font-weight: 600;
}

.charity-name { font-size: 1.05rem; font-weight: 700; color: #c4b5fd; margin-bottom: 16px; }

.charity-progress { text-align: left; }

.charity-bar-track {
    width: 100%; height: 6px; background: rgba(167, 139, 250, 0.1);
    border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}

.charity-bar-fill {
    height: 100%; background: linear-gradient(90deg, #818cf8, #c4b5fd, #e9d5ff);
    border-radius: 3px; transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.charity-stats {
    display: flex; justify-content: space-between;
    font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono);
}

.charity-stats strong { color: var(--charity); font-weight: 600; }
.charity-goal { opacity: 0.7; }

/* MILESTONE TRACK */
.milestone-track {
    display: flex; align-items: center; justify-content: center;
    margin-top: 16px; gap: 0;
}

.milestone-badge {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(180deg, rgba(30,30,50,1) 0%, rgba(20,20,35,1) 100%);
    border: 2px solid rgba(167, 139, 250, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease; flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.4), inset 0 2px 6px rgba(255,255,255,0.04);
}

.milestone-badge svg { width: 28px; height: 28px; }
/* Plant and star icons bigger */
.milestone-badge[data-color="seedling"] svg,
.milestone-badge[data-goal="1000"] svg { width: 34px; height: 34px; }
.milestone-badge[data-color="rising-star"] svg,
.milestone-badge[data-goal="2500"] svg { width: 33px; height: 33px; }

.milestone-badge.reached {
    background: linear-gradient(180deg, rgba(60,50,90,1) 0%, rgba(40,30,70,1) 100%);
    border-color: rgba(167, 139, 250, 0.6);
    color: #c4b5fd;
    box-shadow:
        inset 0 -2px 6px rgba(0,0,0,0.3),
        inset 0 2px 6px rgba(167,139,250,0.15),
        0 0 16px rgba(167,139,250,0.25);
    cursor: pointer;
}

/* Achieved tiers auto-spin: 3 full rotations over 2s, then pause 8s = 10s cycle */
.milestone-badge.reached {
    animation: coinAutoSpin 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes coinAutoSpin {
    0% { transform: rotateY(0deg); }
    20% { transform: rotateY(1080deg); }
    100% { transform: rotateY(1080deg); }
}

/* Click/hover spin — single flip */
.milestone-badge:hover {
    animation: coinFlip 0.8s ease-in-out !important;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.milestone-line {
    width: 28px; height: 2px;
    background: rgba(167, 139, 250, 0.12);
    flex-shrink: 0;
    border-radius: 1px;
}

.milestone-badge.reached + .milestone-line,
.milestone-line + .milestone-badge.reached { background: rgba(167, 139, 250, 0.4); }

/* MILESTONE BADGE COLORS */
.milestone-badge.reached[data-color="seedling"] {
    border-color: rgba(52,211,153,0.5);
    color: #34d399;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 2px 6px rgba(52,211,153,0.15), 0 0 16px rgba(52,211,153,0.25);
}
.milestone-badge.reached[data-color="rising-star"] {
    border-color: rgba(203,213,225,0.6);
    color: #e2e8f0;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 2px 6px rgba(226,232,240,0.2), 0 0 18px rgba(203,213,225,0.3);
}
.milestone-badge.reached[data-color="diamond"] {
    border-color: rgba(34,211,238,0.5);
    color: #22d3ee;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 2px 6px rgba(34,211,238,0.15), 0 0 16px rgba(34,211,238,0.25);
}
.milestone-badge.reached[data-color="crown"] {
    border-color: rgba(251,191,36,0.5);
    color: #fbbf24;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.3), inset 0 2px 6px rgba(251,191,36,0.15), 0 0 16px rgba(251,191,36,0.25);
}

/* COUPON */
.coupon-section { text-align: center; margin-bottom: 16px; }

.coupon-toggle {
    background: none; border: none; color: var(--text-muted);
    font-size: 0.8rem; cursor: pointer; font-family: var(--font);
    opacity: 0.7; transition: opacity 0.15s;
}
.coupon-toggle:hover { opacity: 1; }

.coupon-input-wrap { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }

.coupon-input {
    background: var(--bg-secondary); border: 1px solid var(--border-light);
    border-radius: 8px; padding: 8px 14px; color: var(--text-primary);
    font-family: var(--mono); font-size: 0.85rem; width: 160px; outline: none;
}
.coupon-input:focus { border-color: var(--accent); }

.coupon-msg { font-size: 0.8rem; margin-top: 8px; min-height: 18px; }
.coupon-msg.success { color: var(--green); }
.coupon-msg.error { color: var(--red); }

.buy-note { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

/* TRANSPARENCY */
.transparency { padding: 100px 0; border-top: 1px solid var(--border); }

.transparency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }

.breakdown-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 28px;
}
.breakdown-card.featured { border-color: rgba(167, 139, 250, 0.3); }

.breakdown-card h3 { font-size: 1.05rem; margin-bottom: 24px; text-align: center; }

.breakdown-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; font-size: 0.88rem; color: var(--text-secondary);
}
.breakdown-row.sub { font-size: 0.82rem; color: var(--text-muted); padding: 7px 0; }
.breakdown-row.total { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.breakdown-row.charity-row { color: var(--charity); font-weight: 600; }

.breakdown-val { font-family: var(--mono); font-weight: 600; }
.breakdown-val.deduct { color: var(--text-muted); }
.breakdown-val.charity-val { color: var(--charity); }

.breakdown-divider { height: 1px; background: var(--border-light); margin: 8px 0; }

.breakdown-note {
    font-size: 0.78rem; color: var(--text-muted); margin-top: 12px;
    line-height: 1.5; text-align: left;
    display: flex; align-items: flex-start; gap: 8px;
}
.breakdown-note + .breakdown-note { margin-top: 8px; }
.breakdown-icon { flex-shrink: 0; margin-top: 1px; }
.breakdown-note.charity-note { color: var(--charity); }
.breakdown-note.charity-note .breakdown-icon { color: var(--charity); }

/* DONATE */
.donate { padding: 100px 0; border-top: 1px solid var(--border); }

.donate-card {
    max-width: 520px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 32px;
    text-align: center;
    transition: max-width 0.5s ease;
}

/* Post-donation expanded state */
.donate-post-confirmation { text-align: center; padding: 8px 0 0; }
.donate-post-check { font-size: 2.4rem; margin-bottom: 12px; }
.donate-post-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.donate-post-amount { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 4px; }
.donate-post-fee { color: var(--text-muted); font-size: 0.72rem; }
.donate-post-divider { height: 1px; background: var(--border); margin: 24px 0; }
.donate-post-medal { margin: 0 auto 8px; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.donate-post-medal svg { width: 80px; height: 80px; }
.donate-post-milestone-label {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--charity); margin-bottom: 16px; text-align: center;
}
.donate-post-progress { margin: 0 auto; max-width: 400px; }
.donate-post-bar-track {
    height: 8px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden;
}
.donate-post-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.donate-post-stats {
    display: flex; justify-content: space-between; margin-top: 8px;
    font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono);
}
.donate-post-vote { text-align: center; }
.donate-post-vote-title {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 16px;
}
.donate-vote-options { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.donate-vote-opt {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer; transition: all 0.15s;
}
.donate-vote-opt:hover { border-color: rgba(167,139,250,0.4); }
.donate-vote-opt.selected { border-color: #c4b5fd; background: rgba(167,139,250,0.08); }
.donate-vote-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border-light); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.donate-vote-opt.selected .donate-vote-radio { border-color: #c4b5fd; }
.donate-vote-opt.selected .donate-vote-radio::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c4b5fd;
}
.donate-vote-name { font-weight: 600; font-size: 0.9rem; }
.donate-vote-desc { font-size: 0.76rem; color: var(--text-muted); }
.donate-vote-submit {
    margin: 16px auto 0; display: block; padding: 10px 32px;
}
.donate-vote-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.donate-vote-bar-name {
    font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
    width: 140px; text-align: right; flex-shrink: 0;
}
.donate-vote-bar-track {
    flex: 1; height: 22px; background: rgba(255,255,255,0.03);
    border-radius: 6px; overflow: hidden;
}
.donate-vote-bar-fill {
    height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 10px;
    transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.donate-vote-bar-pct {
    font-size: 0.68rem; font-family: var(--mono); color: rgba(255,255,255,0.8); font-weight: 600;
}

.donate-card .charity-label { margin-bottom: 6px; }
.donate-card .charity-name { margin-bottom: 28px; }

.donate-amounts {
    display: flex; gap: 10px; justify-content: center; align-items: center;
    flex-wrap: wrap; margin-bottom: 20px;
}

.donate-amount {
    padding: 10px 20px; border-radius: 10px;
    background: var(--bg-secondary); border: 1px solid var(--border-light);
    color: var(--text-primary); font-family: var(--mono); font-size: 0.95rem;
    font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.donate-heart {
    display: inline-block; margin-right: 3px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

/* Per-tier heart colors and sizes */
.donate-amount[data-amount="5"] .donate-heart  { color: #a78bfa; font-size: 1.0em; }
.donate-amount[data-amount="10"] .donate-heart { color: #f472b6; font-size: 1.15em; }
.donate-amount[data-amount="25"] .donate-heart { color: #fb923c; font-size: 1.35em; }
.donate-amount[data-amount="50"] .donate-heart { color: #f43f5e; font-size: 1.55em; }
.donate-custom-wrap .donate-heart              { color: #fbbf24; font-size: 1.2em; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), font-size 0.3s ease, color 0.3s ease, filter 0.3s ease; }

/* Hover — hearts grow */
.donate-amount:hover .donate-heart { transform: scale(1.3); }
.donate-amount:hover { border-color: rgba(167, 139, 250, 0.4); }

/* Active state — hearts pulse + glow */
.donate-amount.active {
    border-color: var(--charity); background: rgba(167, 139, 250, 0.1);
    color: #c4b5fd; box-shadow: 0 0 16px rgba(167, 139, 250, 0.12);
}
.donate-amount.active .donate-heart {
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px currentColor);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1.05); }
    45% { transform: scale(1.2); }
}

.donate-custom-wrap {
    display: flex; align-items: center;
    background: var(--bg-secondary); border: 1px solid var(--border-light);
    border-radius: 10px; padding: 0 12px; transition: border-color 0.15s;
}
.donate-custom-wrap:focus-within { border-color: var(--charity); }

.donate-currency { color: var(--text-muted); font-family: var(--mono); font-weight: 600; font-size: 0.95rem; }

.donate-custom {
    background: none; border: none; outline: none;
    color: var(--text-primary); font-family: var(--mono); font-size: 0.95rem;
    font-weight: 600; width: 90px; padding: 10px 8px;
}
.donate-custom::placeholder { color: var(--text-muted); }

.donate-pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* DONATE PROGRESS TRACKER */
.donate-progress {
    margin-bottom: 24px; text-align: left;
}

.donate-bar-track {
    width: 100%; height: 8px;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}

.donate-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #c4b5fd, #e9d5ff);
    border-radius: 4px; transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.donate-progress-stats {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted); font-family: var(--mono);
}

.donate-progress-stats strong { color: #c4b5fd; font-weight: 600; }
.donate-progress-goal { opacity: 0.7; }

/* GOAL MET CELEBRATION */
.donate-goal-met {
    text-align: center; padding: 24px 16px; margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(129, 140, 248, 0.04) 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: var(--radius); position: relative; overflow: hidden;
}

.donate-goal-met::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.goal-met-icon {
    color: #c4b5fd; margin-bottom: 12px;
    animation: goalPulse 2s ease-in-out infinite;
    cursor: pointer;
    perspective: 400px;
}

.goal-met-icon svg {
    width: 80px; height: 80px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

@keyframes goalPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.goal-met-label {
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono);
    margin-bottom: 6px;
}

.goal-met-text {
    font-size: 1.2rem; font-weight: 700; color: #c4b5fd;
    letter-spacing: -0.02em; margin-bottom: 4px;
}

.goal-met-amount {
    font-size: 2rem; font-weight: 800; font-family: var(--mono);
    background: linear-gradient(180deg, #e9d5ff 0%, #a78bfa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 8px;
}

.goal-met-sub {
    font-size: 0.82rem; color: var(--text-muted); font-family: var(--mono);
}

.goal-met-sub strong { color: #c4b5fd; }

/* GOAL-MET MILESTONE COLORS */
.donate-goal-met[data-milestone="seedling"] .goal-met-text,
.donate-goal-met[data-milestone="seedling"] .goal-met-label { color: #34d399; }
.donate-goal-met[data-milestone="seedling"] .goal-met-amount {
    background: linear-gradient(180deg, #d1fae5 0%, #34d399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.donate-goal-met[data-milestone="rising-star"] .goal-met-text,
.donate-goal-met[data-milestone="rising-star"] .goal-met-label { color: #cbd5e1; }
.donate-goal-met[data-milestone="rising-star"] .goal-met-amount {
    background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.donate-goal-met[data-milestone="diamond"] .goal-met-text,
.donate-goal-met[data-milestone="diamond"] .goal-met-label { color: #22d3ee; }
.donate-goal-met[data-milestone="diamond"] .goal-met-amount {
    background: linear-gradient(180deg, #cffafe 0%, #22d3ee 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.donate-goal-met[data-milestone="crown"] .goal-met-text,
.donate-goal-met[data-milestone="crown"] .goal-met-label { color: #fbbf24; }
.donate-goal-met[data-milestone="crown"] .goal-met-amount {
    background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.donate-perk {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; margin-bottom: 20px;
    background: rgba(167, 139, 250, 0.06); border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 20px; font-size: 0.82rem; color: #c4b5fd;
    font-weight: 500;
}

.donate-transparency {
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.donate-transparency-title {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); font-family: var(--mono); font-weight: 600;
    margin-bottom: 16px; text-align: center;
}

.donate-breakdown { margin-bottom: 16px; }

.donate-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; font-size: 0.85rem; color: var(--text-secondary);
}
.donate-row.sub { font-size: 0.8rem; color: var(--text-muted); }
.donate-row.total { font-size: 0.95rem; font-weight: 700; color: #c4b5fd; }

.donate-val { font-family: var(--mono); font-weight: 600; }
.donate-val.deduct { color: var(--text-muted); }
.donate-val.charity-val { color: #c4b5fd; }

.donate-divider { height: 1px; background: var(--border); margin: 6px 0; }

.donate-note {
    font-size: 0.75rem; color: var(--text-muted); line-height: 1.7;
    text-align: center;
}

/* XRPL VERIFICATION */
.xrpl-notice { max-width: 520px; margin: 24px auto 0; }

.xrpl-inner {
    background: linear-gradient(135deg, rgba(52,211,153,0.04) 0%, rgba(59,130,246,0.04) 100%);
    border: 1px solid rgba(52,211,153,0.15);
    border-radius: 16px; padding: 20px 24px;
    display: flex; align-items: flex-start; gap: 16px;
    position: relative;
}

.xrpl-icon { color: #34d399; flex-shrink: 0; margin-top: 2px; }

.xrpl-text h4 {
    font-size: 0.92rem; font-weight: 700; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
}
.xrp-token {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; flex-shrink: 0;
    cursor: pointer;
    animation: xrpProudSpin 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.08));
    transition: filter 0.2s;
}
.xrp-token:hover {
    animation: xrpHoverSpin 0.9s cubic-bezier(0.23, 1, 0.32, 1) !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
}
.xrp-token:active {
    animation: xrpClickSpin 1.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
@keyframes xrpProudSpin {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(1080deg); }
    100% { transform: rotateY(1080deg); }
}
@keyframes xrpHoverSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(720deg); }
}
@keyframes xrpClickSpin {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(540deg) scale(1.15); }
    100% { transform: rotateY(1080deg) scale(1); }
}
.xrpl-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.xrpl-text a { color: #34d399; font-weight: 500; }

.xrpl-badge {
    position: absolute; top: -10px; right: 16px;
    padding: 3px 12px; background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2); border-radius: 12px;
    font-size: 0.68rem; font-weight: 600; color: #34d399;
    font-family: var(--mono);
}

/* SUPPORT DEV */
.support-dev {
    max-width: 520px; margin: 32px auto 0;
    position: relative;
}

.support-dev-inner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, var(--bg-card) 50%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg); padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.support-dev-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.support-dev-inner:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 32px rgba(59, 130, 246, 0.06), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.support-dev-text h3 {
    font-size: 0.95rem; margin-bottom: 6px;
}

.support-dev-text p {
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.55;
}

.support-dev-btn {
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap; font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93bbfc;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.2s;
}

.support-dev-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bdd4fd;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* FAQ */
.faq { padding: 100px 0; border-top: 1px solid var(--border); }

.faq-list { max-width: 640px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
    display: block; width: 100%; text-align: left;
    padding: 20px 0; background: none; border: none;
    color: var(--text-primary); font-family: var(--font);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: color 0.15s; letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-bottom: 20px; font-size: 0.92rem; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-action-link {
    display: inline-block; font-size: 0.85rem; font-weight: 600;
    color: var(--accent); padding: 6px 16px;
    border: 1px solid rgba(59, 130, 246, 0.25); border-radius: 8px;
    background: rgba(59, 130, 246, 0.06);
    transition: background 0.15s, border-color 0.15s;
}
.faq-action-link:hover {
    background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.4);
}

/* FEEDBACK */
.feedback { padding: 80px 0; border-top: 1px solid var(--border); }

.feedback-form {
    max-width: 440px; margin: 32px auto 0;
    display: flex; flex-direction: column; gap: 14px;
}

.form-input, .form-textarea {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px; color: var(--text-primary);
    font-family: var(--font); font-size: 0.92rem; outline: none;
    resize: vertical; transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }

.feedback-msg { text-align: center; font-size: 0.88rem; min-height: 24px; }
.feedback-msg.success { color: var(--green); }

/* EDUCATION PAGES — SHARED */
.guide { padding: 140px 28px 80px; }
.guide-inner { max-width: 720px; margin: 0 auto; }
.guide-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; text-decoration: none; }
.guide-back:hover { color: var(--accent); }
.guide h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.guide .intro { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 48px; }

.step-block { margin-bottom: 48px; }
.step-number { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step-block h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.step-block h3 { font-size: 1.05rem; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.step-block p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.step-block ul, .step-block ol { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; padding-left: 24px; }
.step-block li { margin-bottom: 6px; }
.step-block strong { color: var(--text-primary); }

.indicator-preview { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 16px 0; }
.indicator-preview h4 { font-size: 1rem; margin-bottom: 8px; }
.indicator-preview .ind-type { font-size: 0.75rem; font-family: var(--mono); color: var(--accent); margin-bottom: 8px; }

.edu-callout { background: rgba(59, 130, 246, 0.06); border: 1px solid rgba(59, 130, 246, 0.15); border-radius: 12px; padding: 16px 20px; margin: 16px 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.edu-callout strong { color: var(--accent); }

.edu-divider { height: 1px; background: var(--border); margin: 48px 0; }

.color-sample { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* EDUCATION — TABLE OF CONTENTS */
.edu-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 40px;
}
.edu-toc-title {
    font-size: 0.72rem;
    font-family: var(--mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.edu-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edu-toc-list li {
    margin: 0;
}
.edu-toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.edu-toc-list a:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}
.edu-toc-list a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.edu-toc-num {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 20px;
}
.edu-toc-list .toc-sub {
    padding-left: 40px;
}
.edu-toc-list .toc-sub .edu-toc-num {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* EDUCATION — TABLES */
.edu-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 12px; border: 1px solid var(--border); }
.edu-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.edu-table th { background: var(--bg-secondary); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.edu-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.edu-table tr:last-child td { border-bottom: none; }
.edu-table tr:hover td { background: var(--bg-card); }

/* EDUCATION — CODE / FLOWCHARTS */
.edu-code { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; color: var(--text-secondary); overflow-x: auto; margin: 16px 0; white-space: pre; }

/* EDUCATION — PATTERN CARDS (candlestick encyclopedia) */
.pattern-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; }
.pattern-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pattern-img {
    display: block; margin: 12px auto 16px; border-radius: 8px;
    border: 1px solid var(--border); max-width: 100%;
    background: #0a0a10;
}
.pattern-meta { display: flex; gap: 12px; font-size: 0.75rem; font-family: var(--mono); color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.pattern-meta .signal-bullish { color: var(--green); }
.pattern-meta .signal-bearish { color: var(--red); }
.pattern-meta .signal-neutral { color: var(--text-muted); }
.pattern-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; margin-bottom: 8px; }
.pattern-card strong { color: var(--text-primary); }
.pattern-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-top: 10px; margin-bottom: 2px; }

/* EDUCATION — COMBO/TRADE BOXES */
.combo-box { background: rgba(52, 211, 153, 0.04); border: 1px solid rgba(52, 211, 153, 0.12); border-radius: 12px; padding: 16px 20px; margin: 12px 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.combo-box strong { color: var(--green); }
.trade-example { background: rgba(59, 130, 246, 0.04); border: 1px solid rgba(59, 130, 246, 0.12); border-radius: 12px; padding: 16px 20px; margin: 12px 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.trade-example strong { color: var(--accent); }

/* EDUCATION — CONFIDENCE STARS */
.stars { color: var(--accent); letter-spacing: 1px; }
.stars-dim { opacity: 0.25; }

/* POST-PURCHASE MODAL */
.purchase-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.purchase-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.purchase-dialog {
    position: relative; z-index: 1;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px 32px;
    max-width: 480px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    animation: fadeSlideIn 0.4s ease;
}
.purchase-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
    transition: color 0.15s;
}
.purchase-close:hover { color: var(--text-primary); }
.purchase-step { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.purchase-step.hidden-right { position: absolute; top: 40px; left: 32px; right: 32px; opacity: 0; transform: translateX(100%); pointer-events: none; }
.purchase-step.hidden-left { position: absolute; top: 40px; left: 32px; right: 32px; opacity: 0; transform: translateX(-100%); pointer-events: none; }
.purchase-step.visible { position: relative; opacity: 1; transform: translateX(0); pointer-events: auto; }
.purchase-step h2 { text-align: center; font-size: 1.15rem; margin-bottom: 8px; }
.purchase-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.purchase-form { display: flex; flex-direction: column; gap: 14px; }
.purchase-msg { text-align: center; font-size: 0.85rem; min-height: 20px; margin-top: 8px; }
.purchase-msg.error { color: var(--red); }
.purchase-step-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.purchase-tv-signup {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; text-align: center; margin-top: 4px;
}
.purchase-tv-signup p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; font-weight: 600; }
.purchase-tv-link { display: inline-flex; gap: 6px; font-size: 0.82rem !important; padding: 8px 16px !important; }
.purchase-tv-note { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }

/* Reuse step-dot and vote styles from success page */
.purchase-modal .step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-light); transition: all 0.3s ease;
}
.purchase-modal .step-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.purchase-modal .step-dot.done { background: var(--green); }
.purchase-modal .step-dot.charity-active { background: #c4b5fd; width: 24px; border-radius: 4px; }
.purchase-modal .step-dot.charity-done { background: #c4b5fd; }
.purchase-modal .vote-options { display: flex; flex-direction: column; gap: 10px; }
.purchase-modal .vote-option { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.15s; }
.purchase-modal .vote-option:hover { border-color: rgba(167,139,250,0.4); }
.purchase-modal .vote-option.selected { border-color: #c4b5fd; background: rgba(167,139,250,0.08); }
.purchase-modal .vote-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.purchase-modal .vote-option.selected .vote-radio { border-color: #c4b5fd; }
.purchase-modal .vote-option.selected .vote-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c4b5fd; }
.purchase-modal .vote-label { font-weight: 600; font-size: 0.9rem; }
.purchase-modal .vote-desc { font-size: 0.76rem; color: var(--text-muted); }
.purchase-modal .edu-link {
    display: block; padding: 12px 18px; margin-bottom: 8px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-primary); font-weight: 600;
    font-size: 0.88rem; transition: all 0.15s; text-decoration: none;
}
.purchase-modal .edu-link:hover { border-color: var(--accent); }
.purchase-modal .confirmed-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.05));
    border: 2px solid rgba(52,211,153,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--green);
}
.purchase-modal .confirmed-title { font-size: 1.15rem; font-weight: 800; color: var(--green); margin-bottom: 4px; text-align: center; }
.purchase-modal .vote-results-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-family: var(--mono); margin-bottom: 14px; text-align: center; }
.purchase-modal .vote-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.purchase-modal .vote-bar-name { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); width: 120px; text-align: right; flex-shrink: 0; }
.purchase-modal .vote-bar-track { flex: 1; height: 22px; background: rgba(255,255,255,0.03); border-radius: 6px; overflow: hidden; }
.purchase-modal .vote-bar-fill { height: 100%; border-radius: 6px; transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1); display: flex; align-items: center; padding-left: 10px; }
.purchase-modal .vote-bar-fill.c1 { background: linear-gradient(90deg, rgba(167,139,250,0.4), rgba(167,139,250,0.7)); }
.purchase-modal .vote-bar-fill.c2 { background: linear-gradient(90deg, rgba(59,130,246,0.4), rgba(59,130,246,0.7)); }
.purchase-modal .vote-bar-fill.c3 { background: linear-gradient(90deg, rgba(52,211,153,0.4), rgba(52,211,153,0.7)); }
.purchase-modal .vote-bar-pct { font-size: 0.68rem; font-family: var(--mono); color: rgba(255,255,255,0.8); font-weight: 600; }

/* DISCLAIMER */
.disclaimer { padding: 32px 0; border-top: 1px solid var(--border); }
.disclaimer p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.85; max-width: 760px; margin: 0 auto; text-align: center; }
.disclaimer strong { color: var(--text-secondary); }

/* FOOTER */
.footer { padding: 0 0 80px; border: none; }
.footer-inner {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.footer-legal { margin-bottom: 0; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-divider {
    width: 100%; max-width: 200px; height: 1px;
    background: var(--border); margin: 40px auto;
}
.footer-brand { margin-bottom: 28px; }
.footer-logo {
    display: flex; align-items: center; gap: 14px;
    color: var(--text-primary); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em;
}
.footer-cube-lg {
    width: 34px !important; height: 34px !important;
    transform-style: preserve-3d; transform: rotateX(-25deg) rotateY(35deg);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.footer-cube-lg .cube-face.front { transform: translateZ(17px); }
.footer-cube-lg .cube-face.right { width: 34px; transform: rotateY(90deg) translateZ(17px); }
.footer-cube-lg .cube-face.top { height: 34px; transform: rotateX(90deg) translateZ(17px); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.footer-links a:hover { color: var(--text-secondary); }

.cookie-notice {
    font-size: 0.75rem; color: var(--text-muted); opacity: 1;
    display: flex; align-items: center; justify-content: center;
}
.feedback-cookie { margin-top: 24px; }
.cookie-anim {
    position: relative; width: 24px; height: 24px; margin-right: 5px; flex-shrink: 0;
}
.cookie-frame {
    position: absolute; top: 0; left: 0; width: 24px; height: 24px;
    opacity: 0; transition: opacity 0.8s ease;
}
.cookie-frame.active { opacity: 1; }

/* QUARTER COUNTDOWN */
.quarter-countdown {
    font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono);
    margin-top: 6px; opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-price-amount { font-size: 3.6rem; }
    .why-grid, .indicator-grid, .buy-options, .transparency-grid, .manifesto-pillars { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-cta-raffle, .nav-cta-donate { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .buy-card { padding: 28px 20px; }
    h2 { font-size: 1.8rem; }
    .guide { padding: 100px 20px 60px; }
    .guide h1 { font-size: 1.6rem; }
    .edu-toc { padding: 16px 18px; }
    .edu-toc-list a { font-size: 0.82rem; padding: 6px 8px; }
    .pattern-meta { gap: 8px; }
    .edu-table { font-size: 0.8rem; }
    .edu-table th, .edu-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .hero-price-amount { font-size: 3rem; }
    .buy-card-price { font-size: 2.4rem; }
}

/* EDUCATION — PDF DOWNLOAD BUTTON */
.edu-download-wrap {
    display: flex; justify-content: center; margin-bottom: 32px;
}
.edu-download-wrap.bottom {
    margin-top: 8px; margin-bottom: 0;
}
.edu-download {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.04));
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--accent); font-size: 0.88rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s ease;
    letter-spacing: -0.01em;
}
.edu-download:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(59,130,246,0.08));
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 20px rgba(59,130,246,0.1);
    transform: translateY(-1px);
}
.edu-download svg { opacity: 0.7; transition: opacity 0.2s; }
.edu-download:hover svg { opacity: 1; }
.edu-download .dl-size {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
    color: var(--text-muted); margin-left: 4px;
}

/* RAFFLE / LUCKY DRAW */
.raffle { padding: 100px 0; border-top: 1px solid var(--border); }

.raffle-unified-card {
    max-width: 880px; margin: 48px auto 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 36px 32px;
    box-shadow: var(--shadow-md);
}

.raffle-inner {
    display: flex; gap: 80px; align-items: center;
    justify-content: center;
}

/* Candlestick Meter */
.raffle-meter-wrap {
    flex-shrink: 0;
}
.raffle-candle-col {
    display: flex; flex-direction: column; align-items: center;
}
.raffle-meter {
    position: relative; width: 72px; height: 350px;
    display: flex; flex-direction: column; align-items: center;
}
.raffle-wick-upper {
    width: 3px; height: 30px; border-radius: 2px;
    background: rgba(255, 82, 82, 0.4);
    transition: background 1s ease;
}
.raffle-meter-area {
    position: relative;
    padding-left: 160px; /* space for tier tags on the LEFT */
}
.raffle-candle-body {
    width: 72px; flex: 1; position: relative; overflow: hidden;
    border: 2px solid rgba(255, 82, 82, 0.6);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 82, 82, 0.2), rgba(255, 82, 82, 0.35));
    transition: border-color 1s ease, background 1s ease, box-shadow 1s ease;
}
.raffle-candle-fill {
    position: absolute; bottom: 0; left: 0; right: 0; height: 0%;
    background: linear-gradient(180deg, rgba(255, 82, 82, 0.5), rgba(255, 82, 82, 0.8));
    border-radius: 0 0 2px 2px;
    transition: height 1.2s cubic-bezier(0.23, 1, 0.32, 1), background 1s ease;
}
.raffle-wick-lower {
    width: 3px; height: 20px; border-radius: 2px;
    background: rgba(255, 82, 82, 0.4);
    transition: background 1s ease;
}

/* Tier lines — positioned LEFT of candle in .raffle-meter-area */
.raffle-tier-line {
    position: absolute; left: 0; width: 160px; height: 1px;
    pointer-events: none; z-index: 2;
}
.raffle-tier-line::before {
    content: ''; position: absolute; right: 0; width: 20px; top: 0;
    height: 1px;
    background: linear-gradient(270deg, rgba(255,255,255,0.25), rgba(255,255,255,0.04));
}
.raffle-tier-tag {
    position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
    padding: 3px 8px; border-radius: 4px;
    opacity: 0.45; transition: opacity 0.4s, box-shadow 0.4s;
}
.raffle-tier-tag.reached {
    opacity: 1;
}
.tier-tag-orange {
    color: #ff6f00; background: rgba(255, 111, 0, 0.1);
    border: 1px solid rgba(255, 111, 0, 0.25);
}
.tier-tag-orange.reached { box-shadow: 0 0 8px rgba(255, 111, 0, 0.2); }
.tier-tag-gold {
    color: #ffd700; background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
}
.tier-tag-gold.reached { box-shadow: 0 0 8px rgba(255, 215, 0, 0.2); }
.tier-tag-green {
    color: #00e676; background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
}
.tier-tag-green.reached { box-shadow: 0 0 8px rgba(0, 230, 118, 0.2); }

/* Meter color states */
.raffle-meter.tier0 .raffle-candle-body {
    border-color: rgba(255, 82, 82, 0.6);
    background: linear-gradient(180deg, rgba(255, 82, 82, 0.2), rgba(255, 82, 82, 0.35));
}
.raffle-meter.tier0 .raffle-candle-fill { background: linear-gradient(180deg, rgba(255, 82, 82, 0.5), rgba(255, 82, 82, 0.8)); }
.raffle-meter.tier0 .raffle-wick-upper,
.raffle-meter.tier0 .raffle-wick-lower { background: rgba(255, 82, 82, 0.5); }

.raffle-meter.tier1 .raffle-candle-body {
    border-color: rgba(255, 111, 0, 0.7);
    background: linear-gradient(180deg, rgba(255, 111, 0, 0.2), rgba(255, 111, 0, 0.35));
}
.raffle-meter.tier1 .raffle-candle-fill { background: linear-gradient(180deg, rgba(255, 111, 0, 0.5), rgba(255, 111, 0, 0.8)); }
.raffle-meter.tier1 .raffle-wick-upper,
.raffle-meter.tier1 .raffle-wick-lower { background: rgba(255, 111, 0, 0.5); }

.raffle-meter.tier2 .raffle-candle-body {
    border-color: rgba(255, 215, 0, 0.7);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.3));
}
.raffle-meter.tier2 .raffle-candle-fill { background: linear-gradient(180deg, rgba(255, 215, 0, 0.45), rgba(200, 200, 0, 0.75)); }
.raffle-meter.tier2 .raffle-wick-upper,
.raffle-meter.tier2 .raffle-wick-lower { background: rgba(255, 215, 0, 0.5); }

.raffle-meter.tier3 .raffle-candle-body {
    border-color: rgba(0, 230, 118, 0.8);
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.4));
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.2), inset 0 0 20px rgba(0, 230, 118, 0.1);
}
.raffle-meter.tier3 .raffle-candle-fill { background: linear-gradient(180deg, rgba(0, 230, 118, 0.5), rgba(0, 230, 118, 0.85)); }
.raffle-meter.tier3 .raffle-wick-upper,
.raffle-meter.tier3 .raffle-wick-lower { background: rgba(0, 230, 118, 0.6); }

.raffle-meter-count {
    margin-top: 16px; font-family: var(--mono); font-size: 1.5rem;
    font-weight: 700; color: var(--text-primary); text-align: center;
}
.raffle-meter-winners {
    font-family: var(--mono); font-size: 1.3rem; font-weight: 600;
    color: var(--green); margin-top: 4px; text-align: center;
}

/* Entry Form */
.raffle-form-wrap { flex: 1; max-width: 340px; }
.raffle-form-wrap h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.raffle-card-sub { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 16px; }
.raffle-form { display: flex; flex-direction: column; gap: 12px; }
.raffle-msg { min-height: 20px; margin-top: 8px; font-size: 0.82rem; text-align: center; }
.raffle-msg.error { color: var(--red); }
.raffle-msg.success { color: var(--green); }

.raffle-tv-cta {
    margin-top: 16px; padding: 14px; text-align: center;
    border-top: 1px solid var(--border);
}
.raffle-tv-text {
    font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px;
}
.raffle-tv-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-size: 0.82rem; font-weight: 600;
    text-decoration: none; transition: color 0.15s;
}
.raffle-tv-btn:hover { color: #60a5fa; }
.raffle-tv-note {
    font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; opacity: 0.6;
}

.raffle-already-customer {
    text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 16px;
}
.raffle-already-customer a { color: var(--accent); text-decoration: none; }
.raffle-already-customer a:hover { text-decoration: underline; }

/* Meta bar: rules + countdown inline */
.raffle-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--border); gap: 16px;
}

/* Rules toggle */
.raffle-rules-toggle {
    background: none; border: 1px solid var(--border); color: var(--text-secondary);
    font-size: 0.78rem; cursor: pointer; font-family: var(--mono); font-weight: 600;
    padding: 6px 14px; border-radius: 6px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.raffle-rules-toggle:hover {
    color: var(--text-primary); border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

/* Countdown */
.raffle-countdown {
    font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
    color: var(--text-secondary);
}

/* Rules content — clean grid inside card */
.raffle-rules-content {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.raffle-rules-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.raffle-rule-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
}
.raffle-rule-num {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    color: var(--accent); flex-shrink: 0; padding-top: 1px;
}

@media (max-width: 600px) {
    .raffle-unified-card { padding: 28px 20px 24px; }
    .raffle-inner { flex-direction: column; align-items: center; gap: 32px; }
    .raffle-meter { height: 220px; }
    .raffle-meter-area { padding-left: 120px; }
    .raffle-tier-tag { font-size: 0.58rem; }
    .raffle-form-wrap { max-width: 100%; }
    .raffle-meta { flex-direction: column; align-items: flex-start; }
    .raffle-rules-grid { grid-template-columns: 1fr; }
}

/* TOKEN GATE MODAL */
#sd-gate {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.sd-gate-overlay {
    position: absolute; inset: 0;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sd-gate-dialog {
    position: relative; z-index: 1;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 48px 36px;
    max-width: 420px; width: 100%; text-align: center;
    animation: fadeSlideIn 0.4s ease;
}
.sd-gate-icon { font-size: 2.4rem; margin-bottom: 16px; }
.sd-gate-dialog h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.sd-gate-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.sd-gate-form { display: flex; flex-direction: column; gap: 12px; }
.sd-gate-form input {
    background: var(--bg-secondary); border: 1px solid var(--border-light);
    border-radius: 10px; padding: 14px 18px; color: var(--text-primary);
    font-family: var(--mono); font-size: 0.95rem; font-weight: 600;
    outline: none; width: 100%; text-align: center; letter-spacing: 0.02em;
}
.sd-gate-form input:focus { border-color: var(--accent); }
.sd-gate-form input::placeholder { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.sd-gate-msg { min-height: 20px; margin-top: 8px; font-size: 0.82rem; }
.sd-gate-msg.error { color: var(--red); }
.sd-gate-footer {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.sd-gate-footer p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.sd-gate-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sd-gate-footer a:hover { text-decoration: underline; }

/* Hide content until authenticated */
body:not(.sd-authenticated) .guide-inner { visibility: hidden; }
body.sd-authenticated .guide-inner { visibility: visible; }

/* PRINT / PDF */
@media print {
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .nav, .footer, .edu-toc, .guide-back, .edu-download { display: none !important; }
    .guide { padding-top: 40px !important; }

    /* Prevent cards from splitting across pages */
    .pattern-card { break-inside: avoid; page-break-inside: avoid; margin-bottom: 12px; }
    .step-block { break-inside: avoid; page-break-inside: avoid; }
    .edu-callout { break-inside: avoid; page-break-inside: avoid; }
    .combo-box, .trade-example { break-inside: avoid; page-break-inside: avoid; }
    .indicator-preview { break-inside: avoid; page-break-inside: avoid; }

    /* Each major section starts on a new page */
    .edu-divider { break-after: page; page-break-after: always; height: 0; margin: 0; padding: 0; border: none; }

    /* Images should stay with their content */
    .pattern-img { break-inside: avoid; page-break-inside: avoid; }
    img { max-width: 100%; }

    /* Headings should not be orphaned at page bottom */
    h2, h3 { break-after: avoid; page-break-after: avoid; }
}
