/* ============================================================================
 * VEX HYPER-DECK v4.0 — ULTRA-MODERN BENTO REACTOR & EXPANDING PILL NAVBAR
 * Completely replaces circular wheel UI with Isometric Core Pod + Live Waveform
 * + Sliding Expanding-Pill Glass Capsule Bottom Navigation
 * ============================================================================ */
:root {
    --primary: #a855f7;
    --primary-bright: #d8b4fe;
    --primary-deep: #3b0764;
    --secondary: #f0abfc;
    --cyan-mech: #38bdf8;
    --primary-rgb: 168, 85, 247;
    --secondary-rgb: 240, 171, 252;
    --btn-text: #ffffff;

    --bg-main: #05030c;
    --bg-card: rgba(15, 10, 30, 0.86);
    --bg-card-strong: rgba(22, 15, 44, 0.95);
    --bg-elevated: rgba(32, 20, 62, 0.92);
    --bg-input: rgba(9, 6, 20, 0.96);
    --border-subtle: rgba(192, 132, 252, 0.24);
    --border-glow: rgba(240, 171, 252, 0.56);

    --vault-grad: linear-gradient(135deg, #2e1065 0%, #6b21a8 52%, #c026d3 100%);
    --dock-bg: rgba(12, 8, 26, 0.92);

    --accent-gold: #f59e0b;
    --danger: #f43f5e;
    --success: #10b981;
    --text-heading: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #94a3b8;

    --font-display: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body.vex-hyperdeck-v4 {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-body);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 112px;
}

/* Fixed Full-Viewport VEX Emblem Backdrop */
.vex-bg-logo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #05030c;
    background-image:
        radial-gradient(circle at 50% 22%, rgba(5, 3, 12, 0.30) 0%, rgba(5, 3, 12, 0.82) 100%),
        url('https://vex.apna.host/logo.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.vex-cyber-aura {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
}
.aura-1 { top: -60px; left: -50px; width: 240px; height: 240px; background: rgba(168, 85, 247, 0.24); }
.aura-2 { bottom: 60px; right: -50px; width: 250px; height: 250px; background: rgba(217, 70, 239, 0.20); }

.mono-num, .mono-code-block { font-family: var(--font-mono); }

.app-viewport {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px 13px 34px;
}

/* ============================================================================
 * HYPER-DECK BOOT LOADER
 * ============================================================================ */
.digital-loader-overlay {
    position: fixed; inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(15, 10, 30, 0.80), rgba(5, 3, 12, 0.96)),
        url('https://vex.apna.host/logo.png') center center / cover no-repeat;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    transition: opacity 0.28s ease;
}
.digital-loader-overlay.fade-out { opacity: 0; pointer-events: none; }
.digital-loader-card {
    width: 100%; max-width: 336px;
    background: rgba(15, 10, 30, 0.94);
    backdrop-filter: blur(22px);
    border: 1.5px solid rgba(216, 180, 254, 0.42);
    border-radius: 26px; padding: 26px 20px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78), 0 0 34px rgba(168, 85, 247, 0.28);
}
.loader-badge-top {
    display: inline-block;
    font-family: var(--font-mono); font-size: 9px; font-weight: 800;
    letter-spacing: 0.1em; color: #f3e8ff;
    background: rgba(126, 34, 206, 0.55); border: 1px solid rgba(240, 171, 252, 0.5);
    padding: 3px 10px; border-radius: 99px; margin-bottom: 14px;
}
.loader-orbit-box { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.loader-hex-pulse {
    position: absolute; inset: 0; border-radius: 26px;
    border: 2px solid #e879f9;
    animation: pulseBox 1.5s ease-in-out infinite;
}
.loader-logo-core {
    position: relative; z-index: 2;
    width: 62px; height: 62px; border-radius: 20px;
    background: #070410;
    border: 2px solid #f0abfc;
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 24px rgba(240, 171, 252, 0.55); overflow: hidden;
}
.custom-app-logo-img { width: 100%; height: 100%; object-fit: cover; }
.loader-brand-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #ffffff; margin-bottom: 4px; letter-spacing: 0.08em; }
.loader-status-line { font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px; }
.loader-progress-track { width: 100%; height: 7px; background: rgba(168, 85, 247, 0.18); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.loader-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #7e22ce, #c084fc, #f0abfc); transition: width 0.2s ease; }
.loader-telemetry-row { display: flex; justify-content: space-between; font-size: 10px; font-family: var(--font-mono); color: #f0abfc; font-weight: 800; }

/* ============================================================================
 * COMPACT CYBER-PILL TOP HEADER (Single Row: User Profile + Live Chart Pill)
 * ============================================================================ */
.hd4-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}
.hd4-user-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(16, 11, 32, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(192, 132, 252, 0.30);
    border-radius: 99px;
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.hd4-avatar {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #c084fc, #f0abfc);
    flex-shrink: 0;
}
.user-avatar-img, .user-avatar-fallback {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    background: #120926; color: #f3e8ff; font-weight: 800; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.hd4-online-dot {
    position: absolute; bottom: 0; right: 0;
    width: 9px; height: 9px; border-radius: 50%;
    background: #10b981; border: 2px solid #100b20;
}
.hd4-user-meta { min-width: 0; flex: 1; }
.hd4-name-line { display: flex; align-items: center; gap: 5px; }
.hd4-username { font-size: 13px; font-weight: 800; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd4-lvl-tag {
    font-family: var(--font-mono); font-size: 8px; font-weight: 800;
    padding: 1.5px 6px; border-radius: 99px;
    background: linear-gradient(135deg, #9333ea, #c026d3); color: #ffffff; flex-shrink: 0;
}
.hd4-mined-line { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--text-muted); font-weight: 700; margin-top: 1px; }
.hd4-mined-line b { color: #e9d5ff; }
.hd4-mini-logo { width: 13px; height: 13px; border-radius: 50%; object-fit: cover; }

.hd4-chart-pill {
    display: flex; align-items: center; gap: 7px;
    background: rgba(24, 14, 48, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(240, 171, 252, 0.42);
    border-radius: 99px;
    padding: 6px 11px;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(147, 51, 234, 0.25);
    transition: transform 0.14s ease;
}
.hd4-chart-pill:active { transform: scale(0.95); }
.hd4-chart-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulseDot 1.3s infinite; }
.hd4-chart-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.hd4-chart-sym { font-size: 7.5px; font-weight: 800; color: #f5d0fe; letter-spacing: 0.06em; }
.hd4-chart-val { font-size: 11.5px; font-weight: 800; color: #ffffff; }
.hd4-chart-ico { font-size: 13px; }

/* ============================================================================
 * 1. MINE SECTION — NEW BENTO HYPER-DECK (NO CIRCULAR WHEEL!)
 * ============================================================================ */
.hd4-vault-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2e1065 0%, #6b21a8 52%, #a21caf 100%);
    border: 1.5px solid rgba(240, 171, 252, 0.48);
    border-radius: 22px;
    padding: 14px 16px 12px;
    margin-bottom: 11px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(126, 34, 206, 0.38);
}
.hd4-vault-glow {
    position: absolute; top: -40px; right: -30px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 70%);
    pointer-events: none;
}
.hd4-vault-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.hd4-vault-badge {
    font-family: var(--font-mono); font-size: 8.5px; font-weight: 800;
    letter-spacing: 0.08em; color: #ffffff;
    background: rgba(15, 8, 32, 0.42); padding: 3px 8px; border-radius: 99px;
}
.hd4-vault-usd { font-size: 11px; font-weight: 700; color: #f5d0fe; }
.hd4-vault-balance {
    font-size: 31px; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; line-height: 1.12;
    margin-bottom: 10px;
}
.hd4-vault-balance small { font-size: 13px; font-weight: 800; color: #f5d0fe; margin-left: 5px; }

/* Animated Live Equalizer Waveform */
.hd4-wave-strip {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 3px;
    height: 16px; padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hd4-wave-strip span {
    flex: 1; height: 4px; border-radius: 99px;
    background: rgba(255, 255, 255, 0.55);
    animation: eqWave 1.4s ease-in-out infinite;
}
.hd4-wave-strip span:nth-child(2n) { animation-delay: 0.2s; height: 9px; }
.hd4-wave-strip span:nth-child(3n) { animation-delay: 0.4s; height: 12px; }
.hd4-wave-strip span:nth-child(5n) { animation-delay: 0.6s; height: 7px; }

/* Dual-Column Isometric Reactor Deck */
.hd4-reactor-bento {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 10px;
    margin-bottom: 11px;
}
.hd4-core-pod {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(26, 15, 52, 0.94) 0%, rgba(11, 7, 24, 0.96) 100%);
    border: 1.5px solid rgba(216, 180, 254, 0.38);
    border-radius: 22px;
    padding: 14px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.50);
    transition: transform 0.15s ease, border-color 0.2s ease;
}
.hd4-core-pod:active { transform: scale(0.97); }
.hd4-core-pod.is-active {
    border-color: #f0abfc;
    box-shadow: 0 0 26px rgba(192, 132, 252, 0.35), inset 0 0 22px rgba(168, 85, 247, 0.22);
}
.hd4-pod-scanner {
    position: absolute; left: 0; right: 0; height: 2px; top: 0;
    background: linear-gradient(90deg, transparent, #f0abfc, transparent);
    opacity: 0.25;
}
.hd4-core-pod.is-active .hd4-pod-scanner {
    opacity: 0.95;
    animation: scanVertical 2.2s ease-in-out infinite;
}
.hd4-emblem-shell {
    width: 78px; height: 78px;
    border-radius: 24px;
    background: #070412;
    border: 2px solid #e879f9;
    padding: 4px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 9px;
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.45);
    overflow: hidden;
}
.hd4-core-pod.is-active .hd4-emblem-shell {
    animation: floatCore 2.6s ease-in-out infinite;
}
.core-custom-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; }
.hd4-pod-state {
    font-family: var(--font-display); font-size: 9.5px; font-weight: 800;
    letter-spacing: 0.08em; color: #f5d0fe; margin-bottom: 4px;
}
.hd4-pod-rate {
    font-size: 10.5px; font-weight: 800; color: #ffffff;
    background: linear-gradient(90deg, #7e22ce, #c026d3);
    padding: 3px 9px; border-radius: 99px;
}

.hd4-telemetry-stack {
    display: flex; flex-direction: column; justify-content: space-between; gap: 7px;
}
.hd4-tele-tile {
    background: rgba(16, 11, 32, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-left: 3px solid #c084fc;
    border-radius: 14px;
    padding: 8px 10px;
}
.hd4-tele-lbl { display: block; font-size: 8.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 2px; }
.hd4-tele-val { display: block; font-size: 12px; font-weight: 800; color: #ffffff; }

/* Energy Conduit Progress & Ignition Card */
.hd4-conduit-card {
    background: rgba(16, 11, 32, 0.92);
    backdrop-filter: blur(18px);
    border: 1.5px solid rgba(192, 132, 252, 0.32);
    border-radius: 20px;
    padding: 13px;
    margin-bottom: 11px;
}
.hd4-conduit-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 10.5px; font-weight: 800; color: var(--text-muted); margin-bottom: 7px;
}
.hd4-conduit-head b { color: #f0abfc; }
.hd4-status-chip {
    font-family: var(--font-mono); font-size: 9px; font-weight: 800;
    color: #34d399; background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35); padding: 2px 8px; border-radius: 99px;
}
.hd4-conduit-track {
    width: 100%; height: 9px; border-radius: 99px;
    background: rgba(168, 85, 247, 0.18); overflow: hidden; margin-bottom: 11px;
}
.hd4-conduit-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, #7e22ce, #c084fc, #f0abfc);
    transition: width 0.5s ease;
}
.hd4-ignite-btn {
    height: 46px; font-size: 13.5px; letter-spacing: 0.03em;
}

/* Compact Horizontal Overclock Bar */
.hd4-overclock-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(16, 11, 32, 0.90);
    backdrop-filter: blur(16px);
    border: 1.5px dashed rgba(216, 180, 254, 0.38);
    border-radius: 18px;
    padding: 10px 12px;
}
.hd4-oc-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hd4-oc-badge {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 800;
    color: #ffffff; background: linear-gradient(135deg, #9333ea, #c026d3);
    padding: 5px 8px; border-radius: 10px; flex-shrink: 0;
}
.hd4-oc-title { font-size: 12px; font-weight: 800; color: #ffffff; }
.hd4-oc-sub { font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.hd4-oc-btn {
    border: 1px solid #e879f9; background: rgba(88, 28, 135, 0.55);
    color: #ffffff; font-family: var(--font-sans); font-size: 11px; font-weight: 800;
    padding: 8px 11px; border-radius: 11px; cursor: pointer; flex-shrink: 0;
}
.hd4-oc-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Views & Shared Cards */
.tab-view { display: none; }
.tab-view.active { display: block; animation: tabEntrance 0.24s ease; }

.fintech-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px; padding: 15px; margin-bottom: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.digital-glow-card { border-color: rgba(192, 132, 252, 0.38); }
.nx-verify-banner { border: 1.5px solid rgba(240, 171, 252, 0.48); background: rgba(34, 17, 62, 0.92); }
.mono-badge {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px;
    background: rgba(126, 34, 206, 0.45); border: 1px solid rgba(216, 180, 254, 0.42); color: #f3e8ff;
    display: inline-flex; align-items: center; gap: 5px;
}

/* ============================================================================
 * 2. EVENTS & TASKS ARENA
 * ============================================================================ */
.bounty-radar-header {
    display: flex; align-items: center; gap: 13px;
    background: linear-gradient(135deg, #2e1065 0%, #6b21a8 58%, #c026d3 100%);
    border: 1.5px solid rgba(240, 171, 252, 0.45); border-radius: 20px;
    padding: 13px 15px; margin-bottom: 10px; color: #ffffff;
    box-shadow: 0 12px 30px rgba(126, 34, 206, 0.36);
}
.bounty-ring-box { position: relative; width: 66px; height: 66px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bounty-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bounty-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 6; }
.bounty-ring-fg { fill: none; stroke: #ffffff; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.45s ease; }
.bounty-ring-pct { position: absolute; font-size: 12px; font-weight: 800; color: #ffffff; }
.bounty-radar-info { min-width: 0; flex: 1; }
.bounty-radar-kicker { font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em; color: #f5d0fe; margin-bottom: 2px; }
.bounty-radar-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 7px; }
.bounty-radar-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.b-radar-chip { font-size: 10px; font-weight: 700; background: rgba(15, 8, 32, 0.45); border: 1px solid rgba(255, 255, 255, 0.25); padding: 2px 8px; border-radius: 99px; color: #ffffff; }

.earn-filter-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    background: rgba(18, 12, 34, 0.90); backdrop-filter: blur(16px);
    border: 1.5px solid rgba(192, 132, 252, 0.28); border-radius: 14px; padding: 5px; margin-bottom: 12px;
}
.earn-filter-chip {
    border: none; background: transparent; padding: 7px 2px; border-radius: 9px;
    font-family: var(--font-sans); font-size: 10px; font-weight: 800;
    color: var(--text-muted); cursor: pointer; transition: all 0.18s ease;
}
.earn-filter-chip.active { background: linear-gradient(135deg, #9333ea, #c026d3); color: #ffffff; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35); }

.vex-events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vex-event-box {
    background: linear-gradient(160deg, rgba(28, 17, 54, 0.95) 0%, rgba(14, 9, 28, 0.96) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.34);
    border-radius: 15px; padding: 11px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.vex-event-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.vex-event-tag { font-family: var(--font-mono); font-size: 8px; font-weight: 800; color: #f5d0fe; background: rgba(126, 34, 206, 0.45); padding: 2px 6px; border-radius: 5px; }
.vex-event-rw { font-size: 8.5px; font-weight: 800; color: #34d399; }
.vex-event-title { font-size: 12.5px; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.vex-event-desc { font-size: 10px; color: var(--text-muted); line-height: 1.4; margin-bottom: 9px; }

.bounty-tickets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bounty-ticket-card {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(180deg, rgba(26, 17, 50, 0.95) 0%, rgba(15, 10, 30, 0.95) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.32); border-radius: 16px;
    padding: 12px 10px 10px; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38); overflow: hidden;
}
.bounty-ticket-card.is-claimed-card { border-color: rgba(16, 185, 129, 0.40); opacity: 0.78; }
.bounty-ticket-card::before, .bounty-ticket-card::after {
    content: ''; position: absolute; bottom: 43px; width: 12px; height: 12px; border-radius: 50%;
    background: #05030c; border: 1.5px solid rgba(192, 132, 252, 0.32); z-index: 2;
}
.bounty-ticket-card::before { left: -7px; }
.bounty-ticket-card::after  { right: -7px; }
.bounty-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 9px; }
.bounty-platform-tag { font-family: var(--font-mono); font-size: 8px; font-weight: 800; color: #f3e8ff; background: rgba(126, 34, 206, 0.45); padding: 2px 6px; border-radius: 5px; }
.bounty-reward-pill { font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; color: #ffffff; background: linear-gradient(135deg, #9333ea, #c026d3); padding: 2px 7px; border-radius: 6px; }
.bounty-emblem-circle {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px;
    background: #120a24; border: 2px solid #e879f9; color: #f0abfc;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bounty-ticket-title { font-size: 12px; font-weight: 800; color: #ffffff; line-height: 1.3; min-height: 31px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.bounty-ticket-divider { border-top: 1.5px dashed rgba(192, 132, 252, 0.30); margin: 0 -4px 8px; }
.bounty-ticket-btn { width: 100%; height: 32px; border: none; border-radius: 9px; background: linear-gradient(135deg, #9333ea, #c026d3); color: #ffffff; font-size: 11px; font-weight: 800; cursor: pointer; }
.bounty-ticket-btn.is-ready-claim { background: linear-gradient(135deg, #059669, #10b981); }
.bounty-ticket-btn.is-done { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); cursor: default; }

.streak-7-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 11px; }
.streak-cell { background: rgba(16, 11, 32, 0.94); border: 1.5px solid rgba(192, 132, 252, 0.24); border-radius: 10px; padding: 7px 2px; text-align: center; }
.streak-cell.streak-day-7 {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.55) 0%, rgba(24, 15, 48, 0.95) 50%, rgba(134, 25, 143, 0.55) 100%);
    border: 1.5px dashed #f0abfc;
}
.streak-cell.is-today { border: 2px solid #f0abfc; background: rgba(126, 34, 206, 0.42); }
.streak-cell.is-claimed { opacity: 0.45; }
.day-txt { display: block; font-size: 8.5px; font-weight: 800; color: var(--text-muted); }
.streak-day-7 .day-txt { font-size: 10.5px; color: #f3e8ff; }
.amt-txt { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: #f0abfc; margin-top: 2px; }
.streak-day-7 .amt-txt { font-size: 13px; margin-top: 0; }

.keycard-voucher-box { border: 1.5px solid rgba(216, 180, 254, 0.36); background: linear-gradient(145deg, rgba(22, 14, 42, 0.94) 0%, rgba(14, 9, 28, 0.92) 100%); }
.keycard-header-strip { display: flex; align-items: center; gap: 10px; }
.keycard-chip-icon { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #9333ea, #c026d3); border: 1.5px solid #f3e8ff; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; flex-shrink: 0; }
.keycard-chip-icon span { background: rgba(255, 255, 255, 0.85); border-radius: 2px; }
.promo-input-box { border: 1.5px dashed #e879f9 !important; background: rgba(10, 6, 20, 0.95) !important; }

/* ============================================================================
 * 3. NFT COLLECTION & INDIVIDUAL ARTWORK SHOWCASE
 * ============================================================================ */
.rack-command-banner {
    background: linear-gradient(135deg, #2e1065 0%, #6b21a8 55%, #a21caf 100%);
    border: 1.5px solid rgba(240, 171, 252, 0.45); border-radius: 20px;
    padding: 14px 15px; margin-bottom: 12px; color: #ffffff;
    box-shadow: 0 14px 32px rgba(88, 28, 135, 0.38);
}
.rack-cmd-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.rack-led-cluster { display: flex; align-items: center; gap: 5px; }
.rack-led { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.led-green { background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulseDot 1.2s infinite; }
.led-red   { background: #f0abfc; }
.led-white { background: #ffffff; }
.rack-cmd-code { font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; margin-left: 4px; color: #f3e8ff; }
.rack-active-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 800; background: #ffffff; color: #6b21a8; padding: 3px 9px; border-radius: 99px; }
.rack-cmd-metrics { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rack-cmd-lbl { display: block; font-size: 8.5px; font-weight: 700; color: #f5d0fe; letter-spacing: 0.05em; }
.rack-cmd-val { display: block; font-size: 13.5px; font-weight: 800; color: #ffffff; margin-top: 2px; }

.server-blade-running {
    position: relative;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.38) 0%, rgba(18, 12, 34, 0.95) 28%, rgba(18, 12, 34, 0.95) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.36); border-left: 5px solid #e879f9;
    border-radius: 15px; padding: 11px 12px; margin-bottom: 9px;
}
.blade-running-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blade-serial-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; color: #f3e8ff; background: rgba(126, 34, 206, 0.45); padding: 2px 7px; border-radius: 5px; margin-bottom: 4px; }
.blade-pulse-bar { height: 4px; width: 100%; border-radius: 99px; background: rgba(192, 132, 252, 0.22); margin-top: 8px; overflow: hidden; }
.blade-pulse-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #9333ea, #f0abfc, #9333ea); background-size: 200% 100%; animation: shimmerSlide 2.2s linear infinite; }

.nft-thumb-square {
    width: 48px; height: 48px; border-radius: 11px; object-fit: cover;
    border: 1.5px solid #e879f9; flex-shrink: 0;
}

.blueprint-tier-card {
    position: relative;
    background: rgba(18, 12, 34, 0.96);
    border: 1.5px solid rgba(192, 132, 252, 0.32);
    border-radius: 18px; padding: 13px; margin-bottom: 12px;
}
.nft-artwork-showcase {
    display: flex; align-items: center; gap: 12px;
    background: rgba(10, 6, 22, 0.92);
    border: 1px solid rgba(216, 180, 254, 0.26);
    border-radius: 14px; padding: 9px; margin-bottom: 10px;
}
.nft-hero-artwork {
    width: 86px; height: 86px; border-radius: 12px; object-fit: cover;
    border: 2px solid #e879f9;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.40);
    flex-shrink: 0;
}
.nft-artwork-meta { min-width: 0; flex: 1; }
.nft-edition-tag {
    display: inline-block; font-family: var(--font-mono); font-size: 8.5px; font-weight: 800;
    color: #f5d0fe; background: rgba(126, 34, 206, 0.48); padding: 2px 7px; border-radius: 5px; margin-bottom: 4px;
}
.nft-card-title { font-size: 15.5px; font-weight: 800; color: #ffffff; line-height: 1.2; }
.nft-card-sub { font-size: 10px; color: var(--text-muted); font-weight: 700; margin-top: 2px; }

.bp-roi-pill {
    font-family: var(--font-mono); font-size: 9.5px; font-weight: 800;
    color: #34d399; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 8px; border-radius: 99px;
}
.bp-power-meter { background: rgba(12, 8, 24, 0.90); border: 1px solid rgba(192, 132, 252, 0.22); border-radius: 10px; padding: 6px 9px; margin-bottom: 9px; }
.bp-power-top { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.bp-power-track { width: 100%; height: 5px; border-radius: 99px; background: rgba(192, 132, 252, 0.20); overflow: hidden; }
.bp-power-fill  { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7e22ce, #f0abfc); }

/* ============================================================================
 * 4. DEPOSIT BRIDGE & 6. REFERRAL FLOW
 * ============================================================================ */
.bridge-route-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: rgba(12, 8, 24, 0.90); border: 1.5px solid rgba(192, 132, 252, 0.28);
    border-radius: 14px; padding: 10px 12px; margin-bottom: 10px;
}
.bridge-node-box {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: rgba(24, 15, 48, 0.95); border: 1px solid rgba(192, 132, 252, 0.28);
    border-radius: 10px; padding: 7px 12px; min-width: 92px;
}
.bridge-node-ico { font-size: 16px; }
.bridge-node-name { font-size: 10.5px; font-weight: 800; color: #ffffff; }
.bridge-arrow-line { flex: 1; text-align: center; }
.bridge-arrow-tag { display: inline-block; font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; color: #ffffff; background: linear-gradient(90deg, #9333ea, #c026d3); padding: 2px 7px; border-radius: 99px; margin-bottom: 4px; }
.bridge-dashes { height: 2px; width: 100%; background: repeating-linear-gradient(90deg, #e879f9 0 6px, transparent 6px 11px); }
.input-unit-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: #f3e8ff; background: rgba(126, 34, 206, 0.45); border: 1px solid rgba(216, 180, 254, 0.35); padding: 4px 9px; border-radius: 8px; flex-shrink: 0; }

.ref-flow-steps {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    background: rgba(12, 8, 24, 0.92); border: 1px solid rgba(192, 132, 252, 0.26);
    border-radius: 12px; padding: 8px 9px; margin-bottom: 11px;
}
.ref-flow-step {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 9px; font-weight: 700; color: var(--text-muted); flex: 1; text-align: center;
}
.ref-flow-step.active { color: #34d399; }
.ref-step-num {
    width: 20px; height: 20px; border-radius: 6px;
    background: rgba(126, 34, 206, 0.48); color: #ffffff;
    font-family: var(--font-mono); font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ref-flow-step.active .ref-step-num { background: #10b981; }
.ref-flow-arrow { color: #c084fc; font-weight: 800; font-size: 12px; }

.milestone-card-item { background: rgba(14, 9, 28, 0.92); border: 1px solid rgba(192, 132, 252, 0.24); border-radius: 13px; padding: 10px 11px; margin-bottom: 8px; }
.milestone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 12.5px; color: #ffffff; }
.ms-reward-pill { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; color: #f0abfc; background: rgba(126, 34, 206, 0.38); padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.ms-prog-track { width: 100%; height: 6px; border-radius: 99px; background: rgba(192, 132, 252, 0.20); overflow: hidden; }
.ms-prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9333ea, #f0abfc); transition: width 0.35s ease; }

/* Market & Staking Page */
.nx-token-hero-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nx-token-pair { font-size: 9.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.06em; }
.nx-token-price-big { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.nx-token-price-big #mktLivePriceHero { font-size: 25px; font-weight: 800; color: #ffffff; }
.chart-canvas-box { width: 100%; background: rgba(10, 6, 20, 0.94); border: 1px solid var(--border-subtle); border-radius: 14px; }

/* Shared Buttons, Badges & Inputs */
.btn-primary-action {
    width: 100%; height: 45px; border: none; border-radius: 13px;
    background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    color: #ffffff; font-family: var(--font-sans); font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.34);
    transition: transform 0.14s ease;
}
.btn-primary-action:active { transform: scale(0.97); }
.btn-primary-action:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-outline-action {
    width: 100%; height: 42px; border: 1.5px solid rgba(216, 180, 254, 0.42); border-radius: 12px;
    background: rgba(20, 13, 40, 0.92); color: #f3e8ff;
    font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; text-decoration: none;
}
.btn-sm-pill { height: 29px; padding: 0 11px; border: none; border-radius: 8px; background: linear-gradient(135deg, #9333ea, #c026d3); color: #ffffff; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.btn-sm-pill.is-done { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.stats-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.stat-mini-card { background: rgba(12, 8, 24, 0.92); border: 1px solid var(--border-subtle); border-radius: 11px; padding: 8px 5px; text-align: center; }
.stat-mini-lbl { font-size: 9px; color: var(--text-muted); font-weight: 600; }
.stat-mini-val { font-size: 12px; font-weight: 800; color: #ffffff; margin-top: 2px; }

.sec-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sec-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: #ffffff; text-transform: uppercase; }
.sec-title svg { color: #f0abfc; }
.sec-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 11px; }

.pill-tag-green { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.36); color: #34d399; }
.pill-tag-rose, .pill-tag-red, .pill-tag-blue { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(168, 85, 247, 0.24); border: 1px solid rgba(216, 180, 254, 0.38); color: #f3e8ff; }

.kv-strip { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; background: rgba(12, 8, 24, 0.88); border: 1px solid var(--border-subtle); border-radius: 10px; margin-bottom: 6px; font-size: 11.5px; }
.kv-strip.highlight { background: rgba(88, 28, 135, 0.36); border-color: rgba(240, 171, 252, 0.45); }
.kv-lbl { color: var(--text-muted); }
.kv-lbl-primary { color: #f3e8ff; font-weight: 700; }
.kv-val-primary { color: #f0abfc; font-size: 12.5px; font-weight: 800; }

.field-box { background: rgba(12, 8, 24, 0.92); border: 1px solid var(--border-subtle); border-radius: 11px; padding: 9px 11px; margin-bottom: 9px; }
.field-top-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-bottom: 4px; }
.field-input { width: 100%; background: transparent; border: none; color: #ffffff; font-size: 18px; font-weight: 800; outline: none; }
.copy-action-link { color: #f0abfc; font-weight: 800; cursor: pointer; }

.preset-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 11px; }
.preset-chip { text-align: center; padding: 7px 4px; border-radius: 9px; background: rgba(12, 8, 24, 0.92); border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 700; color: var(--text-body); cursor: pointer; }
.preset-chip.active { background: rgba(126, 34, 206, 0.48); border-color: #f0abfc; color: #ffffff; }

.task-row-card, .list-item-row, .gate-ch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; background: rgba(12, 8, 24, 0.90); border: 1px solid var(--border-subtle); border-radius: 11px; margin-bottom: 7px; }
.task-icon-badge { width: 34px; height: 34px; border-radius: 9px; background: rgba(126, 34, 206, 0.40); color: #f0abfc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.btn-2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-bonus-hero { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #f0abfc; margin: 4px 0; }
.ref-link-code, .mono-code-block { display: block; font-size: 10.5px; color: #e9d5ff; word-break: break-all; }

/* ============================================================================
 * ADVANCED EXPANDING-PILL FLOATING CAPSULE NAVBAR v4.0
 * ============================================================================ */
.bottom-dock {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--dock-bg);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1.5px solid rgba(216, 180, 254, 0.36);
    border-radius: 99px;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.82),
        0 0 28px rgba(168, 85, 247, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    z-index: 100;
    overflow: visible;
}

.bottom-dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    gap: 3px;
}

.dock-tab-btn {
    position: relative;
    border: none;
    background: transparent;
    height: 40px;
    padding: 0 9px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 1;
    min-width: 36px;
}

.dock-tab-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Inactive tabs hide text label so active tab expands into a sleek pill */
.dock-tab-btn .dock-lbl {
    display: none;
    white-space: nowrap;
}

.dock-tab-btn.active:not(.dock-center-market) {
    background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    color: #ffffff;
    padding: 0 13px;
    box-shadow: 0 4px 16px rgba(217, 70, 239, 0.55);
    flex-shrink: 0;
}
.dock-tab-btn.active:not(.dock-center-market) .dock-lbl {
    display: inline-block;
}

.dock-support-live-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0c081a;
    animation: pulseDot 1.5s infinite;
    z-index: 3;
}

/* Center Elevated Circular Deposit Orb */
.dock-center-market {
    padding: 0 !important;
    width: 46px;
    height: 46px;
    margin: -14px 2px 0;
    flex-shrink: 0;
}
.hd4-center-orb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #c026d3 100%);
    border: 2.5px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 22px rgba(217, 70, 239, 0.65),
        0 0 0 4px rgba(168, 85, 247, 0.22);
    transition: transform 0.2s ease;
}
.dock-center-market:active .hd4-center-orb { transform: scale(0.92); }
.dock-center-market.active .hd4-center-orb {
    box-shadow:
        0 8px 26px rgba(240, 171, 252, 0.85),
        0 0 0 5px rgba(240, 171, 252, 0.35);
}

/* Modals & Toast */
.gate-backdrop, #tgRestrictedScreen {
    display: none; position: fixed; inset: 0; background: rgba(4, 2, 10, 0.82);
    backdrop-filter: blur(10px); z-index: 500; align-items: center; justify-content: center; padding: 18px;
}
.gate-backdrop.active, #tgRestrictedScreen.active { display: flex; }
.gate-modal, .restricted-card {
    width: 100%; max-width: 380px; background: #140c29; border: 1.5px solid rgba(216, 180, 254, 0.45);
    border-radius: 22px; padding: 22px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
}
.gate-emblem-ring, .restricted-shield { width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 10px; background: rgba(126, 34, 206, 0.45); color: #f0abfc; display: flex; align-items: center; justify-content: center; }
.gate-title, .restricted-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.gate-desc, .restricted-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.restricted-bot-tag { display: inline-block; padding: 5px 12px; border-radius: 99px; background: rgba(126, 34, 206, 0.45); color: #f3e8ff; font-weight: 800; font-size: 11.5px; margin-bottom: 14px; }
#toastBanner {
    display: none; position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    background: #3b0764; border: 1px solid #f0abfc; color: #ffffff; padding: 9px 16px; border-radius: 99px;
    font-size: 11.5px; font-weight: 700; z-index: 9999; max-width: 92%; text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.58);
}
.particle-burst-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.burst-particle { position: fixed; font-size: 13px; font-weight: 800; color: #f0abfc; animation: burstFly 0.95s ease-out forwards; }
.empty-list-msg { text-align: center; font-size: 11.5px; color: var(--text-muted); padding: 12px 0; }
.mt-10 { margin-top: 10px; }

@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.82); } }
@keyframes pulseBox { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 0.35; } }
@keyframes floatCore { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }
@keyframes scanVertical { 0%, 100% { top: 6%; } 50% { top: 92%; } }
@keyframes eqWave { 0%, 100% { height: 4px; opacity: 0.45; } 50% { height: 14px; opacity: 1; } }
@keyframes tabEntrance { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes burstFly { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.6); } }
@keyframes shimmerSlide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
