/* =========================================================
   TOKENS
   ========================================================= */
:root {
    --void: #08090b;
    --panel: #101215;
    --ink: #f3ede2;
    --muted: #a49b8e;

    --wood-1: #4a3524;
    --wood-2: #241a11;
    --wood-3: #150f0a;

    --amber: #f2a63d;
    --amber-deep: #8a4d0f;
    --crimson: #e2472f;
    --crimson-deep: #7a2015;
    --phosphor: #6fe08c;

    --radius-btn: 10px;
    --font-body: 'Inter', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
}

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

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* faint sitewide scanline texture, ties the whole page back to the CRT */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018) 0px,
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand {
    font-family: var(--font-pixel);
    font-size: 15px;
    color: var(--ink);
}

.brand span {
    color: var(--amber);
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-body);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wallet-badge {
    background: rgba(242, 166, 61, 0.1);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--amber);
    border: 1px solid rgba(242, 166, 61, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   BUTTONS — physical arcade push-buttons, not SaaS pills
   ========================================================= */
.btn {
    padding: 11px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-amber {
    background: linear-gradient(180deg, #ffc46b 0%, var(--amber) 55%, #d3852a 100%);
    color: #2b1503;
    box-shadow: 0 5px 0 var(--amber-deep), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.btn-amber:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 var(--amber-deep), 0 14px 26px rgba(0, 0, 0, 0.5);
}

.btn-amber:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--amber-deep), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-crimson {
    background: linear-gradient(180deg, #ff7a63 0%, var(--crimson) 55%, #b8331f 100%);
    color: #310a04;
    box-shadow: 0 5px 0 var(--crimson-deep), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.btn-crimson:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 var(--crimson-deep), 0 14px 26px rgba(0, 0, 0, 0.5);
}

.btn-crimson:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--crimson-deep), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 5px 12px;
    font-size: 11px;
    gap: 5px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    flex: 1;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.kicker {
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1.8;
    color: var(--phosphor);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--amber), var(--crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================
   CRT TV
   ========================================================= */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
}

.crt-tv {
    position: relative;
    width: 100%;
    max-width: 520px;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crt-tv__glow {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 40% 35%, rgba(242, 166, 61, 0.16), transparent 65%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.crt-tv__cabinet {
    position: relative;
    z-index: 1;
    padding: 20px 20px 16px;
    border-radius: 26px;
    background:
        repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 6px),
        linear-gradient(155deg, var(--wood-1), var(--wood-2) 55%, var(--wood-3));
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.crt-tv__screen {
    position: relative;
    aspect-ratio: 16 / 10.5;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow:
        inset 0 0 0 3px #000,
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* =========================================================
   CRT TV — VIDEO
   ========================================================= */
.crt-tv__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    filter: saturate(1.08) contrast(1.08) brightness(1.02);
}

.crt-tv__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
    pointer-events: none;
    z-index: 2;
}

.crt-tv__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 3;
}

.crt-tv__reflection {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 70%;
    height: 180%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 60%);
    transform: rotate(8deg);
    pointer-events: none;
    z-index: 4;
}

.crt-tv__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 6px 4px;
    color: var(--muted);
    font-size: 11px;
}

.crt-tv__nameplate {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: auto;
}

.crt-tv__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.crt-tv__led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 6px var(--phosphor);
    animation: ledPulse 2.4s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.crt-tv__reset {
    opacity: 0.6;
}

/* single orchestrated power-on moment, once, on load */
@media (prefers-reduced-motion: no-preference) {
    .crt-tv__screen {
        animation: powerOn 1.1s ease-out;
    }
}

@keyframes powerOn {
    0% { filter: brightness(0.2); transform: scaleY(0.02); }
    35% { filter: brightness(1.6); transform: scaleY(1); }
    55% { filter: brightness(0.7); }
    100% { filter: brightness(1); }
}

/* ambient background glow */
.hero-bg-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 166, 61, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-content {
        max-width: none;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-visual {
        order: -1;
    }
    .crt-tv {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .hero-copy {
        font-size: 15px;
    }
    .btn-lg {
        padding: 13px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .brand {
        font-size: 12px;
    }
    .crt-tv__cabinet {
        padding: 14px 14px 12px;
        border-radius: 20px;
    }
    .footer-row {
        flex-direction: column;
        text-align: center;
    }
}

.plan-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 9px;
    letter-spacing: 0.5px;
}

.plan-expiry {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
}

/* ===== POINTS BADGE ===== */
.points-badge {
    background: rgba(111, 224, 140, 0.1);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--phosphor);
    border: 1px solid rgba(111, 224, 140, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.points-badge i {
    font-size: 11px;
}

/* ===== REDEEM WIDGET (navbar) =====
   У этих классов раньше вообще не было CSS — виджет рендерился как два
   голых блочных div'а друг под другом, без фона и рамки, а кнопка внутри
   (класс .btn-xs) тянула размер базового .btn (как у больших CTA-кнопок),
   поэтому весь блок выглядел разъехавшимся рядом с остальными бейджами. */
.redeem-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(242, 166, 61, 0.08);
    border: 1px solid rgba(242, 166, 61, 0.18);
    padding: 6px 8px 6px 14px;
    border-radius: 40px;
}

.redeem-widget__balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--amber);
    font-family: var(--font-body);
    white-space: nowrap;
}

.redeem-widget__icon {
    font-size: 13px;
}

.redeem-widget__label {
    color: var(--muted);
    font-weight: 500;
}

.redeem-widget__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.redeem-widget__btn {
    white-space: nowrap;
}

.redeem-widget__hint {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.redeem-widget__hint strong {
    color: var(--amber);
}

@media (max-width: 640px) {
    /* На узких экранах подсказку прячем, чтобы виджет не разваливал навбар */
    .redeem-widget__hint {
        display: none;
    }
}

/* ===== PLANS PAGE ===== */
.plans {
    padding: 60px 0 80px;
}

.plans-header {
    text-align: center;
    margin-bottom: 50px;
}

.plans-header h2 {
    font-family: var(--font-pixel);
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 10px;
}

.plans-header .plans-sub {
    color: var(--muted);
    font-size: 15px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-price__old { opacity: 0.45; font-size: 0.6em; margin-right: 6px; }
.plan-credit { font-size: 12px; color: #8fe3a3; margin: -4px 0 10px; }
.autorenew { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 14px; cursor: pointer; }
.autorenew input { width: 18px; height: 18px; accent-color: #ffb547; }

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.active {
    border-color: var(--amber);
    box-shadow: 0 0 40px rgba(242, 166, 61, 0.06);
}

/* a plan the owner has closed for now («On sale» is off in the admin): shown, locked, cannot be bought */
.plan-card--closed { border-style: dashed; }
.plan-card--closed:hover { transform: none; box-shadow: none; }
.plan-card--closed .plan-name,
.plan-card--closed .plan-price,
.plan-card--closed .plan-duration,
.plan-card--closed .plan-features,
.plan-card--closed .plan-scans { opacity: 0.45; }
.plan-card .plan-closed {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2a2a35;
    color: #cfcfe0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 40px;
    font-family: var(--font-pixel);
    letter-spacing: 0.5px;
}
.autorenew--off { cursor: default; opacity: 0.8; }
.plan-credit--closed { color: #9a9ab0; }

/* === PLAN BADGE ON CARD === */
.plan-card .plan-recommended {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--amber);
    color: #0a0a0f;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 40px;
    font-family: var(--font-pixel);
    letter-spacing: 0.5px;
}

.plan-card .plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-card .plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--amber);
    margin: 8px 0 2px;
}

.plan-card .plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.plan-card .plan-duration {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
    flex: 1;
}

.plan-card .plan-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card .plan-features li:last-child {
    border-bottom: none;
}

.plan-card .plan-features li i {
    color: var(--phosphor);
    font-size: 13px;
    width: 18px;
}

.plan-card .plan-scans {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.plan-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .plans-header h2 {
        font-size: 18px;
    }
    .plan-card .plan-price {
        font-size: 26px;
    }
}

/* =========================================================
   FIX: FOOTER ALWAYS AT BOTTOM
   ========================================================= */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* ===== SCANPOINTS BADGE ===== */
.scanpoints-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}

.scanpoints-white {
    color: #ffffff;
}

.scanpoints-blue {
    color: #60a5fa;
}

.scanpoints-buy {
    background: none;
    border: none;
    color: var(--amber);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.scanpoints-buy:hover {
    transform: scale(1.1);
}

/* =========================================================
   REDEEM PAGE
   ========================================================= */
.redeem-section {
    padding: 60px 0;
}

.redeem-header {
    text-align: center;
    margin-bottom: 40px;
}

.redeem-header h2 {
    font-family: var(--font-pixel);
    font-size: 24px;
    margin-bottom: 10px;
}

.redeem-header p {
    color: var(--muted);
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.nft-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.nft-card.selected {
    border-color: var(--amber);
    box-shadow: 0 0 30px rgba(242, 166, 61, 0.1);
}

.nft-card.redeemed {
    opacity: 0.5;
}

.nft-image {
    position: relative;
    aspect-ratio: 1;
    background: #1a1a2e;
    overflow: hidden;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 40px;
}

.redeemed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.nft-info {
    padding: 16px;
}

.nft-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-trait {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.trait-badge {
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.trait-badge.rare {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.trait-badge.epic {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.trait-badge.legendary {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.nft-points {
    color: var(--amber);
    font-weight: 600;
    font-size: 14px;
}

.nft-id {
    font-size: 12px;
    color: var(--muted);
}

.nft-card .btn {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
}

.loading-spinner i {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
    color: var(--amber);
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
}

.empty-state i {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
    color: var(--muted);
    opacity: 0.3;
}

.empty-state .sub-text {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 8px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
}

/* =========================================================
   REDEEM PAGE — FULL STYLES
   ========================================================= */

.redeem-section {
    padding: 40px 0 60px;
}

.redeem-header {
    text-align: center;
    margin-bottom: 30px;
}

.redeem-header h2 {
    font-family: var(--font-pixel);
    font-size: 24px;
    margin-bottom: 8px;
}

.redeem-header p {
    color: var(--muted);
    font-size: 15px;
}

/* ===== WALLET INFO CARD ===== */
.redeem-wallet-info {
    margin-bottom: 30px;
}

.info-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 28px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--muted);
    font-size: 14px;
    min-width: 140px;
    font-weight: 500;
}

.info-row .value {
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
}

.wallet-address-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-address {
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: var(--amber);
    word-break: break-all;
    max-width: 100%;
}

.instruction {
    margin-top: 16px;
    padding: 14px 20px;
    background: rgba(242, 166, 61, 0.05);
    border: 1px solid rgba(242, 166, 61, 0.1);
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
}

.instruction strong {
    color: var(--ink);
}

/* ===== BALANCE ===== */
.redeem-balance {
    margin-bottom: 30px;
}

.redeem-balance .balance-item {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.redeem-balance .balance-item__icon {
    font-size: 32px;
}

.redeem-balance .balance-item__value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-pixel);
    font-size: 22px;
}

.redeem-balance .balance-item__value.amber {
    color: var(--amber);
}

.redeem-balance .balance-item__label {
    color: var(--muted);
    font-size: 14px;
}

/* ===== CHECK STATUS ===== */
.redeem-status {
    margin-bottom: 30px;
    text-align: center;
}

.redeem-status .btn {
    font-size: 16px;
    padding: 14px 40px;
}

.status-message {
    margin-top: 14px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
}

.status-message .sub-text {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* ===== REDEEMABLE NFTS ===== */
.redeemable-nfts {
    margin: 30px 0;
}

.redeemable-nfts h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink);
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.nft-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nft-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.nft-card .nft-image {
    position: relative;
    aspect-ratio: 1;
    background: #1a1a2e;
    overflow: hidden;
}

.nft-card .nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-card .nft-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 40px;
}

.nft-card .nft-info {
    padding: 14px 16px 10px;
    flex: 1;
}

.nft-card .nft-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-card .nft-trait {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 4px;
}

.nft-card .trait-badge {
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.nft-card .trait-badge.raven {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.nft-card .trait-badge.honey {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.nft-card .trait-badge.aster {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.nft-card .nft-points {
    color: var(--amber);
    font-weight: 600;
    font-size: 14px;
}

.nft-card .nft-id {
    font-size: 12px;
    color: var(--muted);
}

.nft-card .btn {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
    justify-content: center;
}

/* ===== EMPTY / LOADING STATES ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 50px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

.empty-state .sub-text {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 6px;
}

.loading-spinner {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.loading-spinner i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: var(--amber);
}

.error-message {
    text-align: center;
    padding: 30px 20px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
}

.error-message i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

/* =========================================================
   REDEEM PAGE
   ========================================================= */
.redeem-section {
    padding: 40px 0 60px;
}

.redeem-header {
    text-align: center;
    margin-bottom: 30px;
}

.redeem-header h2 {
    font-family: var(--font-pixel);
    font-size: 24px;
    margin-bottom: 8px;
}

.redeem-header p {
    color: var(--muted);
    font-size: 15px;
}

.info-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--muted);
    font-size: 14px;
    min-width: 140px;
    font-weight: 500;
}

.info-row .value {
    color: var(--ink);
    font-size: 14px;
}

.wallet-address-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-address {
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: var(--amber);
    word-break: break-all;
}

.instruction {
    padding: 14px 20px;
    background: rgba(242, 166, 61, 0.05);
    border: 1px solid rgba(242, 166, 61, 0.1);
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
}

.instruction p {
    margin: 4px 0;
}

.instruction strong {
    color: var(--ink);
}

.redeem-balance {
    margin: 30px 0;
}

.redeem-balance .balance-item {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.redeem-balance .balance-item__icon {
    font-size: 32px;
}

.redeem-balance .balance-item__value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-pixel);
    font-size: 22px;
}

.redeem-balance .balance-item__value.amber {
    color: var(--amber);
}

.redeem-balance .balance-item__label {
    color: var(--muted);
    font-size: 14px;
}

.redeem-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.redeem-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}

.redeem-history .empty-text {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    .info-row .label {
        min-width: auto;
        font-size: 13px;
    }
    .wallet-address {
        font-size: 12px;
        word-break: break-all;
        max-width: 100%;
    }
    .redeem-balance .balance-item {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .redeem-header h2 {
        font-size: 20px;
    }
}

/* =========================================================
   WALLET LOGIN WINDOW + PHONE NAVBAR
   ========================================================= */
.hero-hint {
    margin-top: 16px;
    max-width: 440px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.hero-hint b { color: var(--amber); font-weight: 600; }
.hero-hint[hidden] { display: none; }

.wdlg {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
}
.wdlg__box {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid rgba(242, 166, 61, 0.28);
    border-radius: 16px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.wdlg__box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.wdlg__box p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.wdlg__note { font-size: 12px !important; }
.wdlg__link {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 13px 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font: 600 14px var(--font-body);
    color: #2b1503;
    background: linear-gradient(180deg, #ffc46b 0%, var(--amber) 60%, #d3852a 100%);
    border: none;
    cursor: pointer;
}
.wdlg__link--main {
    background: linear-gradient(180deg, #a9a2ff 0%, #7084ff 60%, #5462e0 100%);
    color: #0b0d2a;
    font-size: 15px;
    padding: 15px 16px;
}
.wdlg__steps {
    font-size: 13px !important;
    color: var(--ink) !important;
    background: rgba(112, 132, 255, 0.12);
    border: 1px solid rgba(112, 132, 255, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
}
.wdlg__steps[hidden] { display: none; }
.wdlg__link--ghost {
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow-wrap: anywhere;
}
.wdlg__close {
    display: block;
    margin: 6px auto 0;
    padding: 8px 18px;
    background: none;
    border: none;
    color: var(--muted);
    font: 500 13px var(--font-body);
    cursor: pointer;
}

/* phones: the header may wrap instead of being wider than the screen */
@media (max-width: 1040px) {
    .navbar { position: relative; padding: 12px 0; }
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 16px;
    }
    .nav-right {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    .nav-right form { display: inline-flex !important; }
    .nav-right .btn-sm { padding: 7px 12px; font-size: 12px; }
    .wallet-badge { padding: 6px 12px; font-size: 12px; }
    .plan-badge { padding: 6px 10px; }
    .brand-sub { display: none; }
}

/* «In development — launches soon» on the main page while redeem is closed (admin: Service settings › Redeem) */
.soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(242, 166, 61, 0.45);
    border-radius: 999px;
    background: rgba(242, 166, 61, 0.08);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
}
.soon-badge b { color: var(--amber); font-weight: 700; }
.soon-badge__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: ledPulse 1.6s ease-in-out infinite;
}
@media (max-width: 520px) {
    .soon-badge { font-size: 12px; border-radius: 12px; }
}
