/* ===== Shared styles — Solana Poker Chain (semua halaman depan) ===== */
:root {
    --gold: #d4af37;
    --sol-teal: #14f195;
    --sol-purple: #9945ff;
    --sol-magenta: #e635c4;
    --sol-gradient: linear-gradient(135deg, #14f195 0%, #9945ff 55%, #e635c4 100%);
    --bg-0: #06050a;
    --bg-1: #0d0b16;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(153, 69, 255, 0.18), transparent 45%),
        radial-gradient(ellipse at 85% 8%, rgba(20, 241, 149, 0.12), transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(230, 53, 196, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    background-attachment: fixed;
}

/* ===== GALAXY BACKGROUND ===== */
#galaxy { position: fixed; inset: 0; z-index: 0; display: block; }

.floating-logos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.float-logo {
    position: absolute; mix-blend-mode: screen; will-change: transform;
    filter: drop-shadow(0 0 34px rgba(153, 69, 255, 0.45));
}
.float-logo.l1 { width: 330px; top: 5%; left: -70px; opacity: 0.26; animation: drift1 17s ease-in-out infinite; }
.float-logo.l2 { width: 220px; top: 50%; right: -55px; opacity: 0.20; animation: drift2 21s ease-in-out infinite; }
.float-logo.l3 { width: 155px; top: 22%; left: 56%; opacity: 0.16; animation: drift3 14s ease-in-out infinite; }
@keyframes drift1 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(75px, 45px) rotate(7deg); }
    50%  { transform: translate(35px, 100px) rotate(-5deg); }
    75%  { transform: translate(100px, 35px) rotate(9deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    30%  { transform: translate(-90px, -45px) rotate(-9deg); }
    60%  { transform: translate(-35px, 40px) rotate(7deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift3 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(50px, -55px) rotate(8deg); }
    50%  { transform: translate(-45px, -25px) rotate(-7deg); }
    75%  { transform: translate(25px, 50px) rotate(6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ===== PLANETS (warna sesuai palet felt tiap meja) ===== */
.planet { position: absolute; border-radius: 50%; will-change: transform; }
.planet.p1 {
    width: 190px; height: 190px; top: 10%; right: 7%;
    background: radial-gradient(circle at 32% 28%, #7ffad0, #0e9c74 60%, #04392b);
    box-shadow: 0 0 90px rgba(20, 241, 149, 0.5), inset -11px -11px 32px rgba(0,0,0,0.5);
    animation: floatP1 19s ease-in-out infinite;
}
.planet.p1::after {
    content: ""; position: absolute; inset: -20px -48px; border-radius: 50%;
    border: 3px solid rgba(20, 241, 149, 0.28); transform: rotate(-20deg);
}
.planet.p2 {
    width: 140px; height: 140px; top: 58%; left: 5%;
    background: radial-gradient(circle at 35% 30%, #f0bd86, #8a5424 60%, #2e1808);
    box-shadow: 0 0 70px rgba(205, 127, 50, 0.5), inset -9px -9px 26px rgba(0,0,0,0.5);
    animation: floatP2 15s ease-in-out infinite;
}
.planet.p3 {
    width: 115px; height: 115px; top: 26%; left: 17%;
    background: radial-gradient(circle at 35% 30%, #f4f7fb, #9aa3b0 56%, #3a4250);
    box-shadow: 0 0 62px rgba(192, 199, 209, 0.45), inset -8px -8px 22px rgba(0,0,0,0.5);
    animation: floatP3 12s ease-in-out infinite;
}
.planet.p4 {
    width: 165px; height: 165px; top: 60%; right: 11%;
    background: radial-gradient(circle at 33% 28%, #f6da86, #b8902a 60%, #3a2c08);
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.5), inset -10px -10px 28px rgba(0,0,0,0.5);
    animation: floatP4 17s ease-in-out infinite;
}
.planet.p4::after {
    content: ""; position: absolute; inset: -18px -46px; border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.3); transform: rotate(18deg);
}
@keyframes floatP1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 60px); } }
@keyframes floatP2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, -38px); } }
@keyframes floatP3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(38px, 48px); } 66% { transform: translate(-38px, 24px); } }
@keyframes floatP4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-46px, -42px); } }

.page { position: relative; z-index: 1; }

/* ===== NAV ===== */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; position: sticky; top: 0; z-index: 10; background: transparent;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-emblem { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(153, 69, 255, 0.55)); }
.brand-wordmark { height: 54px; width: auto; object-fit: contain; margin-bottom: 4px; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 9px 16px; border-radius: 9px; font-size: 0.86rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.65); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: all 0.15s ease; background: none;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--gold); border-color: rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.08); }

.connect-btn {
    padding: 11px 22px; border-radius: 11px; border: none; cursor: pointer;
    font-weight: 700; font-size: 0.88rem; color: #fff;
    background: var(--sol-gradient); background-size: 160% 160%;
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.35); transition: transform 0.15s ease;
    max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.connect-btn:hover { transform: translateY(-2px); }

/* ===== BALANCE STRIP ===== */
.wallet-strip {
    display: flex; align-items: center; justify-content: center; gap: 28px;
    padding: 12px; margin: 18px auto 0; max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px;
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); flex-wrap: wrap;
}
.bal { display: flex; align-items: center; gap: 9px; }
.bal-dot { width: 9px; height: 9px; border-radius: 50%; }
.bal-label { font-size: 0.66rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; }
.bal-value { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); }

/* ===== Generic content / panels ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 16px 24px 50px; }
.page-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.6rem; margin: 18px 0 6px; }
.page-title span { background: var(--sol-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-bottom: 22px; }

.panel {
    background: linear-gradient(165deg, rgba(22, 18, 38, 0.85), rgba(9, 8, 15, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px; padding: 22px;
    backdrop-filter: blur(6px);
}
.section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

.btn {
    padding: 11px 20px; border-radius: 10px; border: none; cursor: pointer;
    font-weight: 700; font-size: 0.88rem; transition: all 0.15s ease;
}
.btn-gold { background: linear-gradient(135deg, #f0c14b, #b8902a); color: #1a1206; }
.btn-gold:hover { filter: brightness(1.1); }
.btn-sol { background: var(--sol-gradient); color: #fff; }
.btn-sol:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.input {
    padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3); color: #fff; font-size: 0.9rem; font-family: inherit; outline: none;
}
.input:focus { border-color: rgba(212,175,55,0.6); }

.avatar-lg {
    width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; background: var(--sol-gradient); box-shadow: 0 0 26px rgba(153,69,255,0.4);
}

.empty-state { text-align: center; color: rgba(255,255,255,0.45); padding: 30px 10px; font-size: 0.9rem; }

/* Toast */
#toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(20, 16, 36, 0.95); border: 1px solid rgba(212, 175, 55, 0.4); color: #fff;
    padding: 12px 22px; border-radius: 12px; font-size: 0.85rem; font-weight: 600;
    opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Declutter: hide heavy decorative orbs/floating logos on small screens */
@media (max-width: 820px) {
    .floating-logos { display: none; }
}

@media (max-width: 640px) {
    .nav { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
    .brand { gap: 8px; }
    .brand-emblem { width: 52px; height: 52px; }
    .brand-wordmark { height: 30px; }
    .connect-btn { padding: 9px 15px; font-size: 0.8rem; }

    /* Nav becomes a single swipeable strip instead of a messy wrap */
    .nav-menu {
        order: 3; width: 100%; justify-content: flex-start;
        flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    }
    .nav-menu::-webkit-scrollbar { display: none; }
    .nav-link { flex: 0 0 auto; white-space: nowrap; padding: 8px 13px; font-size: 0.82rem; }

    .wallet-strip { gap: 16px; margin: 12px 14px 0; padding: 10px; }
    .hero { padding: 22px 16px 4px; }
    .rooms { padding: 0 16px; gap: 14px; margin: 20px auto 30px; }
    .social-chip { width: 58px; height: 58px; }
}

/* ===== DOCS (Whitepaper / Pokerpaper) ===== */
.doc-hero { text-align: center; padding: 40px 20px 8px; }
.doc-hero img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 0 26px rgba(153, 69, 255, 0.5)); }
.doc-badge { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.5); padding: 4px 14px; border-radius: 99px; margin-bottom: 14px; }
.doc-title { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; }
.doc-title span { background: var(--sol-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.doc-sub { color: rgba(255, 255, 255, 0.6); max-width: 640px; margin: 14px auto 0; font-size: 1.02rem; line-height: 1.6; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 860px; margin: 26px auto 0; padding: 0 20px; }
.toc a { font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-decoration: none; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); transition: all 0.15s ease; }
.toc a:hover { color: var(--gold); border-color: rgba(212, 175, 55, 0.5); }

.doc { max-width: 860px; margin: 20px auto 60px; padding: 0 24px; }
.doc section { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.doc section:first-child { border-top: none; }
.doc h2 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.doc h2 .num { font-size: 0.9rem; color: #06050a; background: var(--gold); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.08rem; margin: 20px 0 8px; color: #fff; }
.doc p { color: rgba(255, 255, 255, 0.75); line-height: 1.75; margin: 10px 0; }
.doc ul, .doc ol { color: rgba(255, 255, 255, 0.75); line-height: 1.7; margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }
.doc b, .doc strong { color: #fff; }
.doc a.link { color: var(--sol-teal); text-decoration: none; border-bottom: 1px solid rgba(20, 241, 149, 0.4); }

.callout { border-radius: 14px; padding: 16px 18px; margin: 16px 0; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); font-size: 0.92rem; line-height: 1.6; }
.callout.gold { border-color: rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.07); }
.callout.teal { border-color: rgba(20, 241, 149, 0.35); background: rgba(20, 241, 149, 0.06); }
.callout.warn { border-color: rgba(248, 83, 107, 0.4); background: rgba(248, 83, 107, 0.07); }
.callout .clt { font-weight: 800; display: block; margin-bottom: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 18px 0; }
.kpi { background: linear-gradient(165deg, rgba(22, 18, 38, 0.8), rgba(9, 8, 15, 0.9)); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px; padding: 16px; text-align: center; }
.kpi .v { font-family: 'Poppins'; font-weight: 900; font-size: 1.5rem; }
.kpi .v.grad { background: var(--sol-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi .k { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }

.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.doc table th { text-align: left; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
.doc table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.8); }

.alloc-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.alloc-row .lbl { width: 200px; font-size: 0.86rem; }
.alloc-row .bar { flex: 1; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.alloc-row .fill { height: 100%; border-radius: 99px; background: var(--sol-gradient); }
.alloc-row .pct { width: 48px; text-align: right; font-weight: 800; font-size: 0.86rem; }

/* Poker hand-ranking cards */
.rank-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex-wrap: wrap; }
.rank-num { font-family: 'Poppins'; font-weight: 900; color: var(--gold); width: 26px; font-size: 1.1rem; }
.mini-cards { display: flex; gap: 4px; }
.mcard { width: 34px; height: 48px; border-radius: 5px; background: #f4f5f8; color: #16181d; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; font-size: 0.82rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); line-height: 1; }
.mcard.red { color: #d11f3a; }
.mcard .s { font-size: 0.9rem; }
.rank-info { flex: 1; min-width: 180px; }
.rank-info .rn { font-weight: 800; }
.rank-info .rd { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* Step flow */
.steps { counter-reset: step; margin: 16px 0; }
.step { position: relative; padding: 14px 0 14px 52px; border-left: 2px solid rgba(153, 69, 255, 0.3); margin-left: 16px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: -17px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--sol-gradient); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.step h4 { font-family: 'Poppins'; font-weight: 700; margin-bottom: 4px; }
.step p { margin: 4px 0; }

/* Roadmap */
.road { margin: 16px 0; }
.road-item { display: flex; gap: 14px; padding: 12px 0; }
.road-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.road-item.done .road-dot { background: var(--sol-teal); box-shadow: 0 0 10px var(--sol-teal); }
.road-item.now .road-dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.road-item.next .road-dot { background: rgba(255, 255, 255, 0.25); }
.road-item .rt { font-weight: 800; }
.road-item .rp { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-left: 8px; }
.road-item.done .rp { background: rgba(20, 241, 149, 0.15); color: var(--sol-teal); }
.road-item.now .rp { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.road-item.next .rp { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }

.doc-foot { text-align: center; padding: 30px 20px 50px; color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; }

@media (max-width: 640px) { .alloc-row .lbl { width: 120px; font-size: 0.76rem; } }

/* ===== SOCIAL (poker-chip framed) ===== */
.community { margin-top: 28px; text-align: center; }
.community-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
.socials { display: flex; gap: 22px; justify-content: center; align-items: center; }
.social-chip {
    width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    position: relative; text-decoration: none;
    background: radial-gradient(circle at 35% 30%, #1f1743, #0a0912);
    border: 3px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.65);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* poker-chip edge spots */
.social-chip::before {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 9deg, transparent 9deg 30deg);
    -webkit-mask: radial-gradient(circle, transparent 31px, #000 32px);
    mask: radial-gradient(circle, transparent 31px, #000 32px);
    pointer-events: none;
}
/* inner dashed ring */
.social-chip::after {
    content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(212, 175, 55, 0.45); pointer-events: none;
}
.social-chip svg { width: 28px; height: 28px; position: relative; z-index: 2; }
.social-chip.x svg { fill: #ffffff; }
.social-chip.tg svg { fill: #2aabee; }
.social-chip:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.55), inset 0 0 14px rgba(0, 0, 0, 0.65); }
