/* WB VIREON — Game-style left-rail layout */
:root {
    --navy: #0d1b2e;
    --navy-mid: #152a45;
    --navy-light: #1e3a5f;
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --cyan-glow: rgba(0, 212, 255, 0.45);
    --farm-green: #4caf50;
    --farm-gold: #ffc107;
    --warm-orange: #ff9800;
    --gem-purple: #7c4dff;
    --cream: #f5f0e8;
    --text: #e8edf5;
    --text-muted: #8fa3bc;
    --card-bg: rgba(21, 42, 69, 0.72);
    --card-border: rgba(0, 212, 255, 0.18);
    --rail-w: 220px;
    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(0, 212, 255, 0.08), transparent),
        radial-gradient(ellipse 50% 35% at 10% 80%, rgba(76, 175, 80, 0.06), transparent),
        linear-gradient(180deg, #0a1422 0%, var(--navy) 40%, #0d1828 100%);
    pointer-events: none;
    z-index: 0;
}

/* Per-page accent themes */
body[data-page="home"]    { --page-accent: var(--cyan); --page-glow: var(--cyan-glow); }
body[data-page="about"]   { --page-accent: #5b9bd5; --page-glow: rgba(91, 155, 213, 0.4); }
body[data-page="game"]    { --page-accent: var(--farm-green); --page-glow: rgba(76, 175, 80, 0.4); }
body[data-page="contact"] { --page-accent: var(--warm-orange); --page-glow: rgba(255, 152, 0, 0.4); }
body[data-page="shop"]    { --page-accent: var(--gem-purple); --page-glow: rgba(124, 77, 255, 0.4); }
body[data-page="confirm"] { --page-accent: var(--cyan); --page-glow: var(--cyan-glow); }
body[data-page="payfinish"] { --page-accent: var(--farm-green); --page-glow: rgba(76, 175, 80, 0.4); }
body[data-page="error"]   { --page-accent: #ff5252; --page-glow: rgba(255, 82, 82, 0.4); }

.wv-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Left Rail (differentiated from diner sidebar) ── */
.wv-rail {
    width: var(--rail-w);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.97) 0%, rgba(13, 27, 46, 0.95) 100%);
    border-right: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wv-rail::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--page-accent, var(--cyan)), transparent);
    opacity: 0.5;
}

.wv-rail-brand {
    padding: 24px 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wv-rail-logo img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 12px var(--page-glow, var(--cyan-glow)));
}

.wv-rail-studio {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--page-accent, var(--cyan));
}

.wv-rail-nav {
    flex: 1;
    padding: 20px 12px;
}

.wv-rail-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wv-rail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: color 0.25s, background 0.25s;
    border: 1px solid transparent;
}

.wv-rail-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.wv-rail-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--page-accent, var(--cyan-dim)), transparent);
    border-color: rgba(255,255,255,0.08);
}

.wv-rail-link.is-active .wv-rail-icon {
    color: var(--page-accent, var(--cyan));
    text-shadow: 0 0 10px var(--page-glow, var(--cyan-glow));
}

.wv-rail-link.is-active .wv-rail-glow {
    opacity: 1;
}

.wv-rail-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    transition: color 0.25s;
}

.wv-rail-glow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--page-accent, var(--cyan));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--page-glow, var(--cyan-glow));
    opacity: 0;
    transition: opacity 0.25s;
}

.wv-rail-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wv-rail-footer a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.wv-rail-footer a:hover { color: var(--page-accent, var(--cyan)); }

.wv-rail-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 250;
    width: 44px;
    height: 44px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: rgba(13, 27, 46, 0.98);
    color: var(--page-accent, var(--cyan));
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.wv-rail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 190;
}

/* ── Main Stage ── */
.wv-stage {
    flex: 1;
    margin-left: var(--rail-w);
    min-height: 100vh;
    padding: 32px 40px 80px;
    width: calc(100vw - var(--rail-w));
    max-width: 1100px;
}

/* ── Typography ── */
.wv-heading {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.wv-heading-xl { font-size: clamp(2rem, 4vw, 3rem); }
.wv-heading-lg { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.wv-heading-md { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.wv-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--page-accent, var(--cyan));
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--page-accent, var(--cyan));
    box-shadow: 0 0 10px var(--page-glow, var(--cyan-glow));
    margin-bottom: 14px;
}

.wv-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
}

/* ── Cards & Panels ── */
.wv-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(8px);
}

.wv-panel-accent {
    border-color: var(--page-accent, var(--cyan));
    box-shadow: 0 0 30px var(--page-glow, var(--cyan-glow));
}

/* ── Homepage Launch Banner (NOT hero) ── */
.launch-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 48px;
    min-height: 420px;
}

.launch-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--card-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 480px;
    justify-self: end;
}

.launch-visual img {
    width: 100%;
    max-height: 340px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: rgba(8, 16, 28, 0.4);
    border-radius: calc(var(--radius) - 2px);
}

.launch-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(0, 212, 255, 0.12));
    pointer-events: none;
}

.launch-copy h1 {
    margin-bottom: 16px;
}

.launch-copy h1 em {
    font-style: normal;
    color: var(--page-accent, var(--cyan));
}

.launch-copy .wv-lead {
    margin-bottom: 28px;
}

.launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.launch-actions a {
    display: inline-block;
    transition: transform 0.2s, filter 0.2s;
}

.launch-actions a:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.launch-actions img {
    height: 52px;
    width: auto;
}

/* ── Stats Strip ── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.stat-block {
    text-align: center;
    padding: 20px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.stat-block .num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--page-accent, var(--cyan));
}

.stat-block .lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Section Blocks ── */
.wv-section {
    margin-bottom: 56px;
}

.wv-section-header {
    margin-bottom: 28px;
}

.section-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.section-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
    border-color: var(--page-accent, var(--cyan));
    transform: translateY(-4px);
}

.feature-card .fc-icon {
    font-size: 1.6rem;
    color: var(--page-accent, var(--cyan));
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Image Frames ── */
.wv-img-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--card-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    max-width: 100%;
}

.wv-img-frame img {
    width: 100%;
    max-height: 300px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.wv-img-frame.round {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

/* ── Gallery Row ── */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-row img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: transform 0.25s;
}

.gallery-row img:hover { transform: scale(1.03); }

/* ── Image Lightbox ── */
.wv-zoomable {
    cursor: zoom-in;
    transition: opacity 0.2s, transform 0.2s;
}

.wv-zoomable:hover {
    opacity: 0.92;
}

.wv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.wv-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.wv-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.wv-lightbox-body {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 960px);
    max-height: 90vh;
    text-align: center;
}

.wv-lightbox-img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wv-lightbox-caption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.wv-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    background: rgba(13, 27, 46, 0.9);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.wv-lightbox-close:hover {
    background: rgba(255, 82, 82, 0.8);
}

/* ── About Page ── */
.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
}

.about-visual {
    max-width: 420px;
}

.about-block.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.about-block.reverse .about-text { order: 2; }
.about-block.reverse .about-visual { order: 1; }

.about-text h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.culture-item {
    padding: 22px;
    background: linear-gradient(135deg, rgba(21,42,69,0.8), rgba(13,27,46,0.6));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    border-left: 3px solid var(--page-accent, var(--cyan));
}

.culture-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--page-accent, var(--cyan));
    margin-bottom: 8px;
}

.culture-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.mission-banner {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(76,175,80,0.06));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin: 40px 0;
}

.mission-banner blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 16px;
}

/* ── Game Page ── */
.system-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.system-card {
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
}

.system-card .sys-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.system-card h3 {
    font-family: var(--font-display);
    color: var(--farm-green);
    margin-bottom: 8px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.why-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.why-item .why-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--farm-gold);
    line-height: 1;
    flex-shrink: 0;
}

/* ── Contact Page ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: border-color 0.25s;
}

.contact-card:hover {
    border-color: var(--page-accent, var(--warm-orange));
}

.contact-card .cc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,152,0,0.12);
    color: var(--warm-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card p, .contact-card a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

.contact-card a:hover { color: var(--warm-orange); }

/* ── Shop Page ── */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shop-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.shop-panel-head h2 {
    margin-bottom: 0;
}

.gem-scroll-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.gem-scroll-hint i {
    color: var(--gem-purple);
    margin-right: 4px;
}

.gem-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 14px;
    margin: 0 -4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--gem-purple) rgba(255, 255, 255, 0.08);
}

.gem-scroll-wrap::-webkit-scrollbar {
    height: 6px;
}

.gem-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.gem-scroll-wrap::-webkit-scrollbar-thumb {
    background: var(--gem-purple);
    border-radius: 3px;
}

.checkout-panel {
    max-width: 100%;
}

.gem-notes {
    list-style: none;
    margin-bottom: 24px;
}

.gem-notes li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gem-notes li::before {
    content: '\f3a5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gem-purple);
}

.gem-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    min-width: 100%;
}

.gem-card {
    flex: 0 0 128px;
    min-width: 128px;
    padding: 14px 10px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    scroll-snap-align: start;
}

.gem-card:hover {
    border-color: var(--gem-purple);
    transform: translateY(-3px);
}

.gem-card.is-selected {
    border-color: var(--gem-purple);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.35);
    background: rgba(124, 77, 255, 0.08);
}

.gem-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.gem-card .gem-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.gem-card .gem-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--farm-gold);
}

.gem-loading, .gem-error {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.checkout-panel h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--page-accent, var(--gem-purple));
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.payment-option span {
    white-space: nowrap;
}

.payment-option:hover { border-color: var(--gem-purple); }

.payment-option.is-checked {
    border-color: var(--gem-purple);
    background: rgba(124, 77, 255, 0.1);
}

.payment-option input { accent-color: var(--gem-purple); }

.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.agree-row a { color: var(--page-accent, var(--cyan)); }

.agree-row input { accent-color: var(--gem-purple); margin-top: 3px; }

.wv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #fff;
}

.wv-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--gem-purple), #5e35b1);
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.35);
}

.wv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.5);
}

.wv-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wv-btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
}

.wv-btn-outline:hover {
    border-color: var(--page-accent, var(--cyan));
    color: var(--page-accent, var(--cyan));
}

.field-error {
    display: block;
    color: #ff5252;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 0;
}

.field-error:not(:empty) { min-height: 18px; }

.order-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.order-alert.error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.35);
    color: #ff8a80;
}

.selected-gem-display {
    padding: 14px;
    background: rgba(124, 77, 255, 0.08);
    border: 1px dashed var(--gem-purple);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.selected-gem-display.has-pick {
    color: #fff;
    border-style: solid;
}

/* ── Confirm Page ── */
.confirm-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.confirm-card {
    width: 100%;
    max-width: 520px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cyan-dim);
    color: var(--cyan);
    font-size: 2rem;
}

.confirm-rows {
    text-align: left;
    margin: 28px 0;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.92rem;
}

.confirm-row .lbl { color: var(--text-muted); }
.confirm-row .val { color: #fff; font-weight: 600; }
.confirm-row .val.highlight { color: var(--farm-gold); }

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.countdown-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ── Result Pages ── */
.result-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.result-card {
    width: 100%;
    max-width: 520px;
    padding: 48px 36px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem;
}

.result-icon.success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--farm-green);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

.result-icon.failed {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    box-shadow: 0 0 30px rgba(255, 82, 82, 0.3);
}

.result-icon.warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warm-orange);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.3);
}

.result-card h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.result-card p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.error-tips {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}

.error-tips h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--warm-orange);
    margin-bottom: 10px;
}

.error-tips ul {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.error-tips li { margin-bottom: 6px; }

/* ── CTA Link Row ── */
.cta-link-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--page-accent, var(--cyan));
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.cta-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--page-accent, var(--cyan));
}

/* ── Site Footer ── */
.wv-site-footer {
    margin-left: var(--rail-w);
    padding: 24px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(8, 16, 28, 0.95);
    width: calc(100vw - var(--rail-w));
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.wv-footer-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: right;
}

.wv-footer-inner p {
    color: var(--text-muted);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .launch-banner,
    .section-grid-2,
    .about-block,
    .about-block.reverse,
    .contact-layout,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .launch-visual {
        max-width: 100%;
        justify-self: stretch;
    }

    .about-visual {
        max-width: 100%;
    }

    .about-block.reverse .about-text,
    .about-block.reverse .about-visual { order: unset; }

    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .system-cards { grid-template-columns: 1fr; }
    .gallery-row { grid-template-columns: 1fr 1fr; }
    .culture-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .wv-rail {
        transform: translateX(-100%);
        z-index: 240;
    }

    .wv-rail.is-open {
        transform: translateX(0);
    }

    .wv-rail-toggle { display: flex; align-items: center; justify-content: center; }
    .wv-rail-overlay.is-visible { display: block; z-index: 230; }

    .wv-stage {
        margin-left: 0;
        max-width: 100vw;
        padding: 72px 20px 60px;
    }

    .wv-site-footer {
        margin-left: 0;
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    .stats-strip { grid-template-columns: 1fr 1fr; }
    .section-grid-3 { grid-template-columns: 1fr; }
    .gallery-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .launch-actions img { height: 42px; }
    .stats-strip { grid-template-columns: 1fr; }
    .gem-card { flex: 0 0 110px; min-width: 110px; }
    .payment-options { flex-wrap: wrap; }
    .payment-option { flex: 1 1 calc(33.333% - 8px); min-width: 100px; }
}

@media (min-width: 1025px) {
    .launch-visual {
        max-width: 440px;
    }

    .launch-visual img {
        max-height: 320px;
    }

    .wv-img-frame img {
        max-height: 280px;
    }

    .gallery-row img {
        max-height: 180px;
    }

    .about-visual {
        max-width: 380px;
    }
}

@media (min-width: 1600px) {
    .wv-stage {
        max-width: 1060px;
    }

    .wv-site-footer {
        max-width: 1060px;
    }
}
