﻿:root {
    --gold: #F59E0B;
    --gold-light: #FCD34D;
    --gold-deep: #B45309;
    --navy: #0F172A;
    --navy-soft: #1E293B;
    --blue: #2563EB;
    --bg: #FAFAFA;
    --card: #FFFFFF;
    --success: #10B981;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 8px 30px rgba(15,23,42,.08);
    --shadow-lift: 0 24px 60px rgba(15,23,42,.16);
    --font-display: 'Sora',sans-serif;
    --font-body: 'Inter',sans-serif;
    --font-mono: 'IBM Plex Mono',monospace;
    --flip-duration: 2.4s;
}

[data-theme="dark"] {
    --bg: #0B1220;
    --card: #121A2B;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #243047;
    --shadow-soft: 0 8px 30px rgba(0,0,0,.35);
    --shadow-lift: 0 24px 60px rgba(0,0,0,.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background .35s ease,color .35s ease;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

img, svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: rgba(245,158,11,.1);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(245,158,11,.25);
    font-weight: 600;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

section {
    padding: 64px 0;
}

@media (max-width:760px) {
    section {
        padding: 40px 0;
    }
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--gold-deep) 100%);
    box-shadow: 0 2px 8px rgba(245,158,11,.45);
}

nav.main-nav {
    display: flex;
    gap: 32px;
}

    nav.main-nav a {
        font-size: 14.5px;
        font-weight: 500;
        color: var(--text-muted);
        transition: color .2s;
    }

        nav.main-nav a:hover {
            color: var(--text);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-ghost-sm {
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .2s;
}

    .btn-ghost-sm:hover {
        border-color: var(--gold);
        background: rgba(245,158,11,.06);
    }

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .2s;
}

    .theme-toggle:hover {
        border-color: var(--gold);
        transform: rotate(20deg);
    }

@media (max-width:860px) {
    nav.main-nav {
        display: none;
    }

    .btn-ghost-sm {
        display: none;
    }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    padding: 18px 0 0;
}

    .breadcrumb ol {
        list-style: none;
        display: flex;
        gap: 8px;
        font-size: 13px;
        color: var(--text-muted);
    }

    .breadcrumb a:hover {
        color: var(--gold-deep);
    }

    .breadcrumb li:not(:last-child)::after {
        content: "→";
        margin-left: 8px;
        color: var(--border);
    }

    .breadcrumb li:last-child {
        color: var(--text);
        font-weight: 600;
    }

/* ---------- HERO ---------- */
.hero {
    padding-top: 40px;
    padding-bottom: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.coin-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.result-pill {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    min-width: 170px;
    text-align: center;
    transition: all .3s;
}

    .result-pill.is-win {
        color: var(--gold-deep);
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(245,158,11,.12),var(--shadow-soft);
    }

.coin-stage {
    position: relative;
    width: 280px;
    height: 280px;
    perspective: 1400px;
}

.coin-shadow {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(15,23,42,.35), transparent 70%);
    filter: blur(2px);
    transition: transform .4s ease, opacity .4s ease;
}

.coin-stage.is-tossing .coin-shadow {
    animation: shadow-pulse var(--flip-duration) ease;
}

@keyframes shadow-pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: .7;
    }

    40% {
        transform: translateX(-50%) scale(.55);
        opacity: .25;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: .7;
    }
}

.coin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform var(--flip-duration) cubic-bezier(.21,.93,.4,1.04);
    animation: coin-float 4.5s ease-in-out infinite;
}

.coin-stage.is-tossing .coin {
    animation: none;
}

@keyframes coin-float {
    0%,100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), inset 0 0 30px rgba(0,0,0,.25), 0 18px 40px rgba(15,23,42,.25);
}

    .coin-face::before {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: 50%;
        border: 2px dashed rgba(255,255,255,.4);
    }

    .coin-face span {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 84px;
        color: rgba(255,255,255,.92);
        text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 -1px 0 rgba(255,255,255,.4);
    }

    .coin-face.coin-tails {
        transform: rotateY(180deg);
    }

/* coin material skins */
.coin[data-style="gold"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #FFF3D1, var(--gold) 48%, var(--gold-deep) 100%);
}

.coin[data-style="gold"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #FFE9A8, var(--gold-deep) 55%, #7C3A0B 100%);
}

.coin[data-style="silver"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #FFFFFF, #CBD5E1 50%, #64748B 100%);
}

.coin[data-style="silver"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #F1F5F9, #94A3B8 55%, #475569 100%);
}

.coin[data-style="bronze"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #E8C39E, #B87333 50%, #7C4A23 100%);
}

.coin[data-style="bronze"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #DDB48C, #8C5A2E 55%, #5A370F 100%);
}

.coin[data-style="casino"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #FFE3E3, #DC2626 50%, #7F1D1D 100%);
}

.coin[data-style="casino"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #1F2937, #0F172A 60%, #000 100%);
}

.coin[data-style="bitcoin"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #FDE9C8, #F7931A 50%, #92400E 100%);
}

.coin[data-style="bitcoin"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #FCD9A0, #C2700E 55%, #6B3A05 100%);
}

.coin[data-style="neon"] .coin-front {
    background: radial-gradient(circle at 32% 28%, #1E293B, #0F172A 60%, #020617 100%);
    box-shadow: inset 0 0 0 4px rgba(34,211,238,.6), 0 0 30px rgba(34,211,238,.45);
}

.coin[data-style="neon"] .coin-tails {
    background: radial-gradient(circle at 32% 28%, #1E293B, #0F172A 60%, #020617 100%);
    box-shadow: inset 0 0 0 4px rgba(244,114,182,.6), 0 0 30px rgba(244,114,182,.45);
}

.coin[data-style="neon"] .coin-face span {
    color: #67E8F9;
    text-shadow: 0 0 10px rgba(34,211,238,.8);
}

.coin[data-style="neon"] .coin-tails span {
    color: #F9A8D4;
    text-shadow: 0 0 10px rgba(244,114,182,.8);
}

.coin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-style-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.hsp-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hsp-swatches {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hsp-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(15,23,42,.18);
}

    .hsp-swatch:hover {
        transform: translateY(-3px) scale(1.1);
    }

    .hsp-swatch.active {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,.2), 0 4px 12px rgba(15,23,42,.18);
    }

    .hsp-swatch.gold {
        background: radial-gradient(circle at 32% 28%, #FFF3D1, #F59E0B 55%, #B45309);
    }

    .hsp-swatch.silver {
        background: radial-gradient(circle at 32% 28%, #fff, #CBD5E1 55%, #64748B);
    }

    .hsp-swatch.bronze {
        background: radial-gradient(circle at 32% 28%, #E8C39E, #B87333 55%, #7C4A23);
    }

    .hsp-swatch.casino {
        background: radial-gradient(circle at 32% 28%, #FFE3E3, #DC2626 55%, #7F1D1D);
    }

    .hsp-swatch.bitcoin {
        background: radial-gradient(circle at 32% 28%, #FDE9C8, #F7931A 55%, #92400E);
    }

    .hsp-swatch.neon {
        background: radial-gradient(circle at 32% 28%, #1E293B, #020617);
        box-shadow: inset 0 0 0 2px #22D3EE, 0 4px 12px rgba(34,211,238,.25);
    }

.btn {
    font-weight: 700;
    font-size: 14.5px;
    padding: 14px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    position: relative;
    overflow: hidden;
}

    .btn:active {
        transform: scale(.97);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: #3a1d02;
    box-shadow: 0 10px 30px rgba(245,158,11,.35);
}

    .btn-primary:hover {
        box-shadow: 0 14px 38px rgba(245,158,11,.5);
        transform: translateY(-2px);
    }

.btn-secondary {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

    .btn-secondary:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-2px);
    }

.btn-tertiary {
    color: var(--text-muted);
    border: 1px dashed var(--border);
}

    .btn-tertiary:hover {
        color: var(--text);
        border-color: var(--text-muted);
    }

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

.hero-copy h1 {
    font-size: clamp(40px,6vw,64px);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: 18px;
}

    .hero-copy h1 span {
        color: var(--gold);
    }

.hero-copy p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 10px;
}

@media (max-width:900px) {
    .hero-copy p {
        margin-inline: auto;
    }
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    font-size: 13.5px;
    color: var(--text-muted);
}

@media (max-width:900px) {
    .trust-row {
        justify-content: center;
    }
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width:900px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* ---------- STATS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

@media (max-width:760px) {
    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s;
}

    .stat-card:hover {
        transform: translateY(-4px);
    }

    .stat-card .label {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 10px;
    }

    .stat-card .value {
        font-family: var(--font-mono);
        font-size: 30px;
        font-weight: 600;
    }

    .stat-card.gold .value {
        color: var(--gold-deep);
    }

    .stat-card.success .value {
        color: var(--success);
    }

/* ---------- SECTION HEADERS ---------- */
.section-head {
    max-width: 620px;
    margin: 0 auto 44px;
    text-align: center;
}

    .section-head h2 {
        font-size: clamp(28px,3.4vw,38px);
        font-weight: 800;
        margin-top: 14px;
    }

    .section-head p {
        color: var(--text-muted);
        margin-top: 12px;
        font-size: 16px;
    }

/* ---------- SETTINGS CARD ---------- */
.settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

@media (max-width:860px) {
    .settings-card {
        grid-template-columns: 1fr;
    }
}

.setting-block {
    margin-bottom: 26px;
}

    .setting-block:last-child {
        margin-bottom: 0;
    }

    .setting-block h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.swatch-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.swatch {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
    position: relative;
}

    .swatch:hover {
        transform: translateY(-3px);
    }

    .swatch.active {
        border-color: var(--blue);
    }

    .swatch.gold {
        background: radial-gradient(circle at 32% 28%, #FFF3D1, var(--gold) 55%, var(--gold-deep));
    }

    .swatch.silver {
        background: radial-gradient(circle at 32% 28%, #fff, #CBD5E1 55%, #64748B);
    }

    .swatch.bronze {
        background: radial-gradient(circle at 32% 28%, #E8C39E, #B87333 55%, #7C4A23);
    }

    .swatch.casino {
        background: radial-gradient(circle at 32% 28%, #FFE3E3, #DC2626 55%, #7F1D1D);
    }

    .swatch.bitcoin {
        background: radial-gradient(circle at 32% 28%, #FDE9C8, #F7931A 55%, #92400E);
    }

    .swatch.neon {
        background: radial-gradient(circle at 32% 28%, #1E293B, #020617);
        box-shadow: inset 0 0 0 2px #22D3EE;
    }

.duration-row {
    display: flex;
    gap: 10px;
}

.duration-opt {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .2s;
}

    .duration-opt.active {
        border-color: var(--gold);
        color: var(--gold-deep);
        background: rgba(245,158,11,.08);
    }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

    .toggle-row:last-child {
        border-bottom: none;
    }

    .toggle-row span.t-label {
        font-size: 14.5px;
        font-weight: 600;
    }

.switch {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    transition: background .25s;
    flex-shrink: 0;
}

    .switch::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.25);
        transition: transform .25s;
    }

    .switch.on {
        background: var(--gold);
    }

        .switch.on::after {
            transform: translateX(20px);
        }

/* ---------- MULTI COIN ---------- */
.multi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.count-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0 30px;
}

.count-opt {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

    .count-opt.active {
        border-color: var(--gold);
        background: rgba(245,158,11,.08);
        color: var(--gold-deep);
    }

.multi-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    min-height: 64px;
}

.mini-coin {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(15,23,42,.25);
    animation: mini-pop .5s ease;
}

@keyframes mini-pop {
    from {
        transform: scale(0) rotate(-30deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* ---------- CARD GRIDS ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

@media (max-width:860px) {
    .grid-3, .grid-6 {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:560px) {
    .grid-3, .grid-6 {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s, box-shadow .25s;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lift);
    }

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,158,11,.12);
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-muted);
}

/* gallery card */
.gallery-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

    .gallery-card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: var(--shadow-lift);
    }

.gallery-coin {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    box-shadow: 0 14px 30px rgba(15,23,42,.25), inset 0 0 0 5px rgba(255,255,255,.3);
}

.gallery-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.gallery-card p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* fairness */
.fair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width:860px) {
    .fair-grid {
        grid-template-columns: 1fr;
    }
}

.fair-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .fair-list li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        font-size: 15px;
    }

        .fair-list li .check {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--success);
            color: #fff;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            margin-top: 2px;
        }

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 140px;
    box-shadow: var(--shadow-soft);
}

    .badge .ic {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .badge .t {
        font-size: 13px;
        font-weight: 700;
    }

/* related tools carousel */
.tools-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

    .tools-row::-webkit-scrollbar {
        height: 6px;
    }

    .tools-row::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 999px;
    }

.tool-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform .25s;
}

    .tool-card:hover {
        transform: translateY(-5px);
    }

    .tool-card .ic {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .tool-card h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .tool-card a {
        font-size: 13px;
        color: var(--blue);
        font-weight: 600;
    }

/* share */
.share-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    border-radius: var(--radius-lg);
    padding: 46px;
    color: #fff;
    text-align: center;
}

    .share-card h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .share-card p {
        color: #94A3B8;
        margin-bottom: 26px;
    }

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .2s;
    border: 1px solid rgba(255,255,255,.15);
}

    .share-btn:hover {
        background: var(--gold);
        color: #3a1d02;
        transform: translateY(-3px);
    }

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 20px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15.5px;
}

    .faq-q .plus {
        transition: transform .25s;
        color: var(--gold-deep);
        font-size: 20px;
    }

.faq-item.open .faq-q .plus {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

    .faq-a p {
        padding: 0 4px 20px;
        color: var(--text-muted);
        font-size: 14.5px;
        max-width: 90%;
    }

/* SEO content */
.seo-content h2 {
    font-size: 24px;
    margin: 36px 0 14px;
}

    .seo-content h2:first-child {
        margin-top: 0;
    }

.seo-content p {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 14px;
    max-width: 820px;
}

/* footer */
footer {
    border-top: 1px solid var(--border);
    padding: 50px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

    .footer-links a:hover {
        color: var(--gold-deep);
    }

.footer-bottom {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

/* toast */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 999;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

    .fade-up.in-view {
        opacity: 1;
        transform: translateY(0);
    }

/* ---------- HISTORY ---------- */
.history-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
}

    .history-header h3 {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.history-filter {
    display: flex;
    gap: 6px;
}

.hf-btn {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .2s;
}

    .hf-btn.active {
        border-color: var(--gold);
        color: var(--gold-deep);
        background: rgba(245,158,11,.08);
    }

    .hf-btn:hover:not(.active) {
        border-color: var(--text-muted);
        color: var(--text);
    }

.btn-clear-history {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .2s;
}

    .btn-clear-history:hover {
        border-color: #F43F5E;
        color: #F43F5E;
    }

.history-empty {
    padding: 60px 30px;
    text-align: center;
    color: var(--text-muted);
}

    .history-empty .empty-icon {
        font-size: 44px;
        margin-bottom: 14px;
        opacity: .4;
    }

    .history-empty p {
        font-size: 15px;
    }

.history-list {
    list-style: none;
    max-height: 420px;
    overflow-y: auto;
}

    .history-list::-webkit-scrollbar {
        width: 5px;
    }

    .history-list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 999px;
    }

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 30px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    animation: hi-slide .3s ease;
}

    .history-item:last-child {
        border-bottom: none;
    }

    .history-item:hover {
        background: rgba(245,158,11,.04);
    }

@keyframes hi-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hi-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}

.hi-coin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(15,23,42,.2);
}

    .hi-coin.heads {
        background: radial-gradient(circle at 32% 28%, #FFF3D1, #F59E0B 55%, #B45309);
    }

    .hi-coin.tails {
        background: radial-gradient(circle at 32% 28%, #93C5FD, #2563EB 55%, #1D4ED8);
    }

.hi-body {
    flex: 1;
    min-width: 0;
}

.hi-result {
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hi-result .side-tag {
        font-family: var(--font-mono);
        font-size: 10px;
        letter-spacing: .07em;
        text-transform: uppercase;
        padding: 2px 8px;
        border-radius: 999px;
        font-weight: 700;
    }

        .hi-result .side-tag.heads {
            background: rgba(245,158,11,.12);
            color: var(--gold-deep);
        }

        .hi-result .side-tag.tails {
            background: rgba(37,99,235,.1);
            color: var(--blue);
        }

.hi-decision {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hi-time {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.history-footer {
    padding: 16px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

    .history-footer span strong {
        color: var(--text);
        font-weight: 700;
    }

/* ---------- DECISION MAKER CARD ---------- */
.dm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-soft);
}

    .dm-card h3 {
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dm-card .dm-sub {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 28px;
    }

.dm-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width:600px) {
    .dm-inputs {
        grid-template-columns: 1fr;
    }
}

.dm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dm-label .badge-h {
        background: linear-gradient(135deg,#FCD34D,#F59E0B 55%,#B45309);
        color: #3a1d02;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 11px;
    }

    .dm-label .badge-t {
        background: linear-gradient(135deg,#93C5FD,#2563EB 55%,#1D4ED8);
        color: #fff;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 11px;
    }

.dm-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

    .dm-input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(245,158,11,.15);
    }

    .dm-input::placeholder {
        color: var(--text-muted);
    }

.dm-footer {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dm-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- WINNER MODAL ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

    .modal-backdrop.show {
        opacity: 1;
        pointer-events: all;
    }

.modal-box {
    background: var(--card);
    border-radius: 28px;
    padding: 48px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(15,23,42,.35);
    transform: scale(.88) translateY(20px);
    transition: transform .35s cubic-bezier(.21,.93,.4,1.04);
    position: relative;
    overflow: hidden;
}

.modal-backdrop.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-coin-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.3), inset 0 0 0 5px rgba(255,255,255,.3);
    animation: modal-coin-bounce .5s cubic-bezier(.21,.93,.4,1.04) .1s both;
}

@keyframes modal-coin-bounce {
    from {
        transform: scale(0) rotate(-20deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}

.modal-side-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

    .modal-side-label.heads-label {
        color: var(--gold-deep);
    }

    .modal-side-label.tails-label {
        color: var(--blue);
    }

.modal-winner-name {
    font-family: var(--font-display);
    font-size: clamp(26px,5vw,40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: winner-pop .45s cubic-bezier(.21,.93,.4,1.04) .2s both;
}

@keyframes winner-pop {
    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-winner-name.tails-winner {
    background: linear-gradient(135deg,#1D4ED8,#2563EB,#60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-plain-result {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

    .modal-close:hover {
        background: var(--border);
    }

/* ---------- CONFETTI ---------- */
.confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 600;
}
