/* RARITAN VALEON LLC — Tiny Army Dark War — Volcanic Theme */

:root {
    --stone-dark: #1a1a1c;
    --stone-mid: #2d292e;
    --stone-light: #3b3345;
    --lava: #ff7e00;
    --lava-bright: #ffcf00;
    --lava-deep: #b83206;
    --crystal: #00e5ff;
    --crystal-soft: #5db9ff;
    --gold: #c59e67;
    --gold-bright: #e8c88a;
    --text: #f0ece4;
    --text-muted: #a89f94;
    --panel-bg: rgba(26, 26, 28, 0.88);
    --panel-border: rgba(197, 158, 103, 0.45);
    --accent: var(--crystal);
    --accent-glow: rgba(0, 229, 255, 0.35);
    --topbar-h: 68px;
    --pill-nav-h: 72px;
    --mobile-nav-h: 58px;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--stone-dark);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

body[data-theme="home"]    { --accent: var(--crystal); --accent-glow: rgba(0, 229, 255, 0.4); }
body[data-theme="about"]   { --accent: var(--gold-bright); --accent-glow: rgba(232, 200, 138, 0.35); }
body[data-theme="events"]  { --accent: #a855f7; --accent-glow: rgba(168, 85, 247, 0.35); }
body[data-theme="game"]    { --accent: var(--lava); --accent-glow: rgba(255, 126, 0, 0.4); }
body[data-theme="contact"] { --accent: var(--crystal-soft); --accent-glow: rgba(93, 185, 255, 0.35); }
body[data-theme="shop"]    { --accent: var(--lava-bright); --accent-glow: rgba(255, 207, 0, 0.4); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--crystal-soft); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

/* Shell */
.volcanic-shell { min-height: 100vh; position: relative; }

.volcanic-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(26,26,28,0.97) 0%, rgba(26,26,28,0.82) 100%);
    border-bottom: 1px solid rgba(197, 158, 103, 0.2);
    backdrop-filter: blur(14px);
}

.volcanic-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
}

.volcanic-brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--panel-border);
    box-shadow: 0 0 12px var(--accent-glow);
}

.volcanic-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.volcanic-brand-text strong { font-family: var(--font-display); font-size: 1rem; color: var(--accent); }
.volcanic-brand-text em { font-size: 0.7rem; font-style: normal; color: var(--text-muted); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: 0.3s;
}

.volcanic-main {
    padding-top: var(--pill-nav-h);
    min-height: 100vh;
}

/* ── Top pill nav (all main pages) ── */
.nav-pill-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--pill-nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(26,26,28,0.97) 0%, rgba(26,26,28,0.88) 100%);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 20px var(--accent-glow);
}
.nav-pill-group {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-pill-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    line-height: 0;
}
.nav-pill-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--panel-border);
    box-shadow: 0 0 16px var(--accent-glow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.nav-pill-logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 24px var(--accent-glow);
}
.nav-pill-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 40px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
}
.nav-pill-link:hover, .nav-pill-link.is-active {
    background: var(--accent-glow);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}
.nav-pill-bar .nav-toggle { display: none; }

/* Legacy nav styles removed — all pages use nav-pill-bar */
.nav-mobile-tab { display: none; }

/* ── Main Banner (Home) ── */
.main-banner {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.main-banner-bg {
    position: absolute;
    inset: 0;
    background: url('../images/banner.png') center/cover no-repeat;
}
.main-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26,26,28,0.55) 0%,
        rgba(59,51,69,0.65) 40%,
        rgba(184,50,6,0.45) 100%);
}
.main-banner-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255,126,0,0.25), transparent);
    pointer-events: none;
}
.main-banner-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 100px 24px 120px;
}
.main-banner-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 40px rgba(0,229,255,0.3), 0 0 60px rgba(255,126,0,0.2);
}
.main-banner-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--text);
    text-shadow: 0 0 30px rgba(255,126,0,0.5);
    margin-bottom: 12px;
}
.main-banner-title span { color: var(--crystal); }
.main-banner-sub {
    font-size: 1.05rem;
    color: rgba(240,236,228,0.85);
    max-width: 620px;
    margin: 0 auto 32px;
}
.main-banner-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.main-banner-cta a img {
    height: 54px;
    width: auto;
    transition: transform 0.25s, filter 0.25s;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.main-banner-cta a:hover img {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 8px 20px rgba(255,126,0,0.45));
}

/* Portal sections */
.portal-section { padding: 80px 24px; }
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.portal-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crystal), var(--lava));
}
.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px var(--accent-glow);
}
.portal-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 18px;
}
.portal-card h3 { font-size: 1.15rem; color: var(--gold-bright); margin-bottom: 12px; }
.portal-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.portal-card ul { list-style: none; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.portal-card ul li { padding: 4px 0; padding-left: 16px; position: relative; }
.portal-card ul li::before { content: '◆'; position: absolute; left: 0; color: var(--lava); font-size: 0.6rem; top: 8px; }

.btn-lava {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--lava-deep), var(--lava));
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(255,126,0,0.3);
}
.btn-lava:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,126,0,0.45);
    color: #fff;
}
.btn-lava-outline {
    background: transparent;
    border: 1px solid var(--panel-border);
    box-shadow: none;
}
.btn-lava-outline:hover { background: rgba(255,255,255,0.06); }

/* Feature strip */
.feature-strip {
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--stone-mid), var(--stone-dark));
    border-top: 1px solid rgba(197,158,103,0.15);
    border-bottom: 1px solid rgba(197,158,103,0.15);
}
.feature-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-chip {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: border-color 0.25s;
}
.feature-chip:hover { border-color: var(--accent); }
.feature-chip i { font-size: 1.6rem; color: var(--accent); margin-bottom: 12px; }
.feature-chip h4 { font-size: 0.9rem; color: var(--gold-bright); margin-bottom: 8px; }
.feature-chip p { font-size: 0.8rem; color: var(--text-muted); }

/* Screenshot strip */
.screenshot-strip { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.screenshot-strip h2 { text-align: center; font-size: 1.8rem; color: var(--gold-bright); margin-bottom: 8px; }
.screenshot-hint { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.screenshot-scroll-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.screenshot-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 0;
    flex: 1;
}
.screenshot-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.screenshot-item:hover { border-color: var(--lava); box-shadow: 0 0 20px rgba(255,126,0,0.3); }
.screenshot-item img { width: 100%; height: 180px; object-fit: cover; }
.zoom-hint {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.25s;
}
.screenshot-item:hover .zoom-hint { opacity: 1; }
.scroll-btn {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    color: var(--accent);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.scroll-btn:hover { background: var(--accent-glow); border-color: var(--accent); }

.bottom-cta {
    padding: 60px 24px 100px;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.lava-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 32px;
}

/* Page wrap (inner pages) */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 100px; }
.page-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--gold-bright);
    margin-bottom: 12px;
    text-shadow: 0 0 20px var(--accent-glow);
}
.page-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 680px; }
.section-title {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* About page */
.company-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.company-image {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--panel-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    position: relative;
}
.company-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--lava));
}
.company-image img { width: 100%; height: 360px; object-fit: cover; }
.vision-block {
    margin-top: 24px;
    padding: 20px 24px;
    background: rgba(197,158,103,0.08);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
}
.vision-block h3 { font-size: 1rem; color: var(--gold-bright); margin-bottom: 8px; }
.vision-block p { color: var(--text-muted); font-size: 0.92rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-grid-three {
    grid-template-columns: repeat(3, 1fr);
}
.feature-item { padding: 28px; }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.feature-item h3 { font-size: 1rem; color: var(--gold-bright); margin-bottom: 10px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Events timeline */
.timeline-volcanic { position: relative; padding-left: 48px; }
.timeline-volcanic::before {
    content: '';
    position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #a855f7, var(--lava), var(--crystal));
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: var(--panel-bg);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 12px;
    transition: border-color 0.25s;
}
.timeline-item:hover { border-color: #a855f7; }
.timeline-badge {
    position: absolute;
    left: -48px;
    top: 24px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, var(--lava));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 14px rgba(168,85,247,0.4);
}
.timeline-item h3 { font-size: 0.95rem; color: var(--gold-bright); margin-bottom: 8px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Game page */
.game-intro-block { margin-bottom: 40px; }
.game-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    border: 2px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    position: relative;
    transition: all 0.25s;
}
.gallery-item:hover { border-color: var(--lava); box-shadow: 0 0 20px rgba(255,126,0,0.25); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-card { text-align: center; padding: 36px 24px; }
.contact-card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(93,185,255,0.12);
    border: 2px solid rgba(93,185,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--crystal-soft);
    margin: 0 auto 20px;
}
.contact-card h3 { font-size: 1rem; color: var(--gold-bright); margin-bottom: 12px; }
.contact-card p { color: var(--text-muted); font-size: 0.92rem; }
.contact-card a { color: var(--crystal-soft); }

/* Shop */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 100px;
}
.shop-intro-panel h2, .shop-coin-panel h2, .shop-order-panel h2 {
    font-size: 1.05rem;
    color: var(--lava-bright);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-intro-list { list-style: none; }
.shop-intro-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.shop-intro-list li i { color: var(--lava-bright); margin-top: 3px; flex-shrink: 0; }

.shop-coin-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.shop-order-panel {
    position: sticky;
    top: calc(var(--pill-nav-h) + 16px);
    align-self: start;
    overflow: visible;
}

.coin-scroll-wrap {
    max-height: min(700px, calc(100vh - var(--pill-nav-h) - 120px));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 158, 103, 0.45) rgba(255, 255, 255, 0.04);
}
.coin-scroll-wrap::-webkit-scrollbar { width: 6px; }
.coin-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}
.coin-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(197, 158, 103, 0.45);
    border-radius: 6px;
}
.coin-scroll-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 207, 0, 0.55);
}

.coin-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.coin-tile {
    background: rgba(255,207,0,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}
.coin-tile:hover, .coin-tile.is-selected {
    border-color: var(--lava-bright);
    background: rgba(255,207,0,0.1);
    box-shadow: 0 0 16px rgba(255,207,0,0.22);
    transform: translateY(-2px);
}
.coin-tile img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }
.coin-tile-title {
    font-size: 0.78rem;
    color: var(--gold-bright);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coin-tile-price { font-size: 0.95rem; font-weight: 700; color: var(--lava-bright); }
.coin-loading, .coin-empty, .coin-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.coin-error { color: #ff6b6b; }

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
}
.alert-box.error {
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.35);
    color: #ff8a8a;
}

.selected-coin-display {
    padding: 12px 16px;
    background: rgba(255,207,0,0.08);
    border: 1px solid rgba(255,207,0,0.25);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-field label .req { color: var(--lava); }
.form-field input[type="text"],
.form-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}
.form-field input:focus { outline: none; border-color: var(--lava-bright); }
.form-field input:disabled { opacity: 0.7; cursor: not-allowed; }

.payment-radios { display: flex; flex-direction: column; gap: 8px; }
.payment-radio { cursor: pointer; }
.payment-radio input { display: none; }
.payment-radio-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.payment-radio-inner i { font-size: 1.3rem; width: 28px; text-align: center; }
.payment-radio input:checked + .payment-radio-inner {
    border-color: var(--lava-bright);
    background: rgba(255,207,0,0.08);
    color: var(--text);
}

.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }
.agree-row input { margin-top: 3px; flex-shrink: 0; }
.agree-row a { color: var(--crystal-soft); }

.field-error { display: block; color: #ff6b6b; font-size: 0.78rem; margin-top: 4px; min-height: 1em; }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--lava-deep), var(--lava));
    border: 1px solid var(--gold);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-submit:hover { box-shadow: 0 8px 24px rgba(255,126,0,0.4); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Portal pages (confirm, pay, error) */
.portal-body { background: var(--stone-dark); }
.portal-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: radial-gradient(ellipse at center, rgba(59,51,69,0.4) 0%, var(--stone-dark) 70%);
}
.portal-card {
    width: 100%;
    max-width: 520px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.portal-card h1 { font-size: 1.6rem; color: var(--gold-bright); margin-bottom: 8px; }
.portal-lead { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 28px; }
.portal-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    color: #fff;
}
.portal-icon.pending { background: linear-gradient(135deg, var(--gold), var(--lava)); }
.portal-icon.success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.portal-icon.fail { background: linear-gradient(135deg, #ff6b6b, var(--lava-deep)); }

.confirm-rows { text-align: left; margin-bottom: 28px; }
.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.88rem;
}
.confirm-row .lbl { color: var(--text-muted); }
.confirm-row .val { color: var(--text); font-weight: 600; }
.confirm-row .val.highlight { color: var(--lava-bright); font-size: 1.1rem; }

.confirm-actions { display: flex; flex-direction: column; gap: 12px; }
.portal-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.progress-ring-wrap {
    position: relative;
    width: 64px; height: 64px;
    margin: 0 auto 12px;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 4; }
.progress-ring-fill {
    fill: none;
    stroke: var(--lava-bright);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}
.progress-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--lava-bright);
}

.help-list {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.help-list li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.help-list li:last-child { border-bottom: none; }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-dialog { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-image { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lightbox-close {
    position: absolute;
    top: -40px; right: 0;
    background: none; border: none;
    color: #fff; font-size: 1.5rem;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
.lightbox-caption { text-align: center; color: var(--text-muted); margin-top: 12px; font-size: 0.85rem; }
.lightbox-counter { position: absolute; top: -40px; left: 0; color: var(--text-muted); font-size: 0.85rem; }
body.lightbox-open { overflow: hidden; }

/* Footer */
.volcanic-footer {
    background: rgba(26,26,28,0.95);
    border-top: 1px solid rgba(197,158,103,0.15);
    padding: 32px 24px;
    text-align: center;
}
.volcanic-footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.volcanic-footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.volcanic-footer-links a:hover { color: var(--gold); }
.volcanic-footer p { color: rgba(168,159,148,0.6); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: 1fr; }
    .feature-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-order-panel { position: static; }
    .coin-mosaic { grid-template-columns: repeat(3, 1fr); }
    .coin-scroll-wrap { max-height: 420px; }
    .company-split { grid-template-columns: 1fr; }
    .feature-grid:not(.feature-grid-three) { grid-template-columns: 1fr; }
    .feature-grid-three { grid-template-columns: repeat(3, 1fr); }
    .game-gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .bottom-cta { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    .nav-pill-link span { display: none; }
    .nav-pill-link { padding: 10px 12px; }
    .nav-pill-logo img { width: 42px; height: 42px; }
    .nav-pill-logo { margin: 0 8px; }
}

@media (max-width: 768px) {
    .nav-pill-bar { display: none; }

    .nav-mobile-tab {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 300;
        background: rgba(26,26,28,0.97);
        border-bottom: 1px solid var(--panel-border);
        backdrop-filter: blur(12px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-mobile-tab ul {
        list-style: none;
        display: flex;
        justify-content: space-around;
        padding: 6px 4px;
        min-width: min-content;
    }
    .nav-mobile-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 6px;
        color: var(--text-muted);
        font-size: 0.58rem;
        white-space: nowrap;
    }
    .nav-mobile-link i { font-size: 1rem; }
    .nav-mobile-link.is-active { color: var(--accent); }

    .volcanic-main {
        padding-top: var(--mobile-nav-h);
        padding-bottom: 0;
    }

    .shop-order-panel {
        top: calc(var(--mobile-nav-h) + 16px);
    }
    .coin-scroll-wrap {
        max-height: min(360px, calc(100vh - var(--mobile-nav-h) - 120px));
    }

    .nav-toggle { display: flex; }
    .feature-strip-inner { grid-template-columns: 1fr; }
    .feature-grid-three { grid-template-columns: 1fr; }
    .coin-mosaic { grid-template-columns: repeat(2, 1fr); }
    .coin-scroll-wrap { max-height: 360px; }
    .game-gallery { grid-template-columns: 1fr; }
    .main-banner-cta a img { height: 44px; }
}
