:root {
    --bg-dark: #0a0a0c;
    --bg-panel: rgba(18, 18, 23, 0.75);
    --neon-cyan: #00fff2;
    --neon-purple: #bc13fe;
    --neon-blue: #0066ff;
    --neon-green: #0aff0a;
    --neon-red: #ff003c;
    --text-main: #e0e0e0;
    --text-muted: #707090;
    --font-heading: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --border-color: rgba(0, 255, 242, 0.12);
    --glass-shine: rgba(255, 255, 255, 0.03);

    /* Global Spacing Tokens */
    --container-padding: 4rem;
    --section-gap: 5rem;
    --panel-padding: 1.5rem;
    --panel-radius: 4px;
    --panel-border: 1px solid var(--border-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-dark);
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    filter: brightness(1.03);
}

/* 3D Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* UI Overlay background pattern */
.ui-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at center, transparent 0%, #000 120%),
        linear-gradient(rgba(0, 255, 242, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
}

/* Typography Unified Scaling */
h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

h3 i {
    color: var(--neon-cyan);
}

/* Enable pointer events on interactive children */
.ui-overlay>* {
    pointer-events: auto;
}

/* Global Typography Overrides */
h1,
h2,
h3,
h4,
.btn,
.nav-item {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mono,
.label,
.value,
.price,
.ticker,
.code {
    font-family: var(--font-mono);
}

p,
.desc {
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Universal EVO Panel */
.evo-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    border: var(--panel-border);
    border-radius: var(--panel-radius);
    padding: var(--panel-padding);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* PERFORMANCE FIX: Disable backdrop-filter on home page (too many panels) */
.page-home .evo-panel {
    backdrop-filter: none;
    background: rgba(2, 2, 4, 0.95);
    /* Solid fallback instead of blur */
}

.evo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.evo-panel:hover::before {
    left: 150%;
}

.evo-panel:hover {
    border-color: rgba(0, 255, 242, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 242, 0.05);
}

/* Header Adjustments */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem var(--container-padding);
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(2, 2, 4, 0.95) 0%, rgba(2, 2, 4, 0.7) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* PERFORMANCE FIX: Disable header blur on home page too */
.page-home .glass-header {
    backdrop-filter: none;
    background: rgba(2, 2, 4, 0.98);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.3);
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: inherit;
    outline: none !important;
}

.logo i {
    color: var(--neon-cyan);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
    animation: flicker 3s infinite alternate;
}

.logo .highlight {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-item {
    margin: 0 2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.nav-item:hover {
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

.nav-item:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1.2rem;
}

/* Buttons */
/* Phase 16: Ultra-Premium Protocol Button System */
.btn {
    padding: 0.9rem 2.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    position: relative;
    background: transparent;
    color: #fff;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
}

/* Base "Scanner" Animation */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn:hover::before {
    left: 200%;
    transition: all 0.6s ease;
}

/* Corner Accents */
.btn::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    opacity: 0.3;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.btn-primary {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

.btn-primary::after {
    background: #000;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 40px var(--neon-cyan);
    transform: scale(1.02) translateY(-2px);
}

.btn-outline {
    background: rgba(0, 255, 242, 0.03);
    border: 1px solid rgba(0, 255, 242, 0.4);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 242, 0.4), inset 0 0 15px rgba(0, 255, 242, 0.1);
    letter-spacing: 4px;
    /* Slight expansion for tech feel */
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--neon-cyan);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* Glitch Hover Effect for text */
.btn:hover {
    animation: btn-jitter 0.2s linear infinite;
}

@keyframes btn-jitter {
    0% {
        transform: translate(0);
    }

    33% {
        transform: translate(1px, -1px);
    }

    66% {
        transform: translate(-1px, 1px);
    }

    100% {
        transform: translate(0);
    }
}

/* Secondary Scanner Line (Passive) */
@keyframes scanning-laser {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 8%;
    /* margin-top: -80px; To compensate for header height visually */
    min-height: 70vh;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 255, 242, 0.05);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.1);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.9;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.sub-hero {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.neon-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--neon-purple);
    text-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
    position: relative;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 550px;
    border-left: 2px solid var(--neon-purple);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.05), transparent);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 12px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.1);
}

.ticker {
    display: flex;
    width: fit-content;
    animation: ticker 45s linear infinite;
    /* Slower for readability */
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.symbol {
    font-weight: 700;
    color: #fff;
    font-size: 1.1em;
}

.price {
    color: var(--text-muted);
}

.change.up {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(10, 255, 10, 0.4);
}

.change.down {
    color: var(--neon-red);
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.4);
}

/* Dashboard Preview */
.dashboard-preview {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 500px;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Sharper corners */
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 242, 0.1);
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, var(--neon-purple) 50%);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.panel-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 10px;
    height: 10px;
}

.control-dot.red {
    background: var(--neon-red);
    box-shadow: 0 0 5px var(--neon-red);
}

.control-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.control-dot.green {
    background: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.chart-container {
    width: 100%;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
}

.market-stats {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.stat-item .value {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Footer */
.glass-footer {
    margin-top: auto;
    width: 100%;
    padding: 1rem 4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-green);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s infinite;
}

/* System Monitor Section */
.system-monitor {
    padding: 2rem 4rem;
    margin-top: 2rem;
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Terminal Styling */
.system-terminal {
    background: rgba(0, 5, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 255, 242, 0.05);
}

.terminal-header {
    background: rgba(0, 255, 242, 0.05);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.terminal-title {
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator.live {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
}

.pulse-text {
    font-size: 0.7rem;
    color: var(--neon-green);
    animation: pulse 1s infinite alternate;
}

.terminal-body {
    flex: 1;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    overflow-y: auto;
    background: linear-gradient(rgba(0, 255, 242, 0.02) 1px, transparent 1px);
    background-size: 100% 20px;
}

.log-entry {
    margin-bottom: 5px;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(0, 255, 242, 0.2);
}

.terminal-input-line {
    padding: 10px 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
}

.prompt {
    color: var(--neon-purple);
    margin-right: 8px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

/* Global Section Layout */
section {
    padding: var(--section-gap) var(--container-padding);
    position: relative;
    z-index: 1;
}

/* System Monitor / Terminal Row */
.monitor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.world-status {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

/* Market Overview Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Main Dashboard Grid */
.dashboard-main {
    padding-top: 0;
    /* Align with previous sections */
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.trading-panel {
    padding: 0 !important;
    /* Managed by analysis-core-content */
}

/* Order Book Styling */
.order-book {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 25px;
    font-family: var(--font-mono);
}

.order-book .panel-header {
    margin-bottom: 20px;
}

.pair-label {
    background: rgba(0, 255, 242, 0.1);
    padding: 4px 8px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.order-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding: 0 5px;
}

.orders {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 220px;
    overflow: hidden;
    padding: 5px;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.75rem;
    padding: 6px 8px;
    position: relative;
    cursor: default;
    border-radius: 2px;
    transition: background 0.2s;
}

.order-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.order-row .order-amount,
.order-row .order-total {
    color: var(--text-main);
    text-align: right;
}

.order-row .depth-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    opacity: 0.12;
    transition: width 0.3s ease;
}

.bids .order-price {
    color: var(--neon-green);
    font-weight: 700;
}

.bids .depth-bar {
    background: linear-gradient(to left, var(--neon-green), transparent);
}

.asks .order-price {
    color: var(--neon-red);
    font-weight: 700;
}

.asks .depth-bar {
    background: linear-gradient(to left, var(--neon-red), transparent);
}

.current-price-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 255, 242, 0.1);
    border-bottom: 1px solid rgba(0, 255, 242, 0.1);
    margin: 5px 0;
    background: rgba(0, 255, 242, 0.02);
}

.current-price-divider .price {
    font-size: 1.6rem;
    font-family: var(--font-mono);
    font-weight: 800;
    color: #fff;
    transition: all 0.3s;
}

.pulse-glow {
    text-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.05);
}

.price-up {
    color: var(--neon-green);
    animation: bounce 0.8s infinite alternate;
}

/* Existing Animations Extension */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}

/* Cleanup duplicate animations if any from previous tool call results */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Market Overview Grid */
.market-overview {
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background: rgba(10, 12, 16, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 242, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-chart-card {
    animation: drift 6s ease-in-out infinite alternate;
}

.floating-chart-card:nth-child(even) {
    animation-delay: -3s;
}

.market-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 242, 0.1);
}

.market-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.market-card .pair {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.market-card .price {
    font-size: 1.8rem;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.sparkline-container {
    height: 60px;
    width: 100%;
}

@keyframes drift {
    0% {
        transform: translateY(0) rotate(0);
    }

    100% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

@keyframes scan-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* Ticker Styling (Prominent Header Bar) */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 255, 242, 0.2);
    padding: 8px 0;
    backdrop-filter: blur(15px);
    z-index: 1001;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 45s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 35px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05rem;
}

.ticker-item .symbol {
    color: #fff;
    font-weight: bold;
}

.ticker-item .price {
    color: var(--neon-cyan);
}

.ticker-item .up {
    color: var(--neon-green);
}

.ticker-item .down {
    color: var(--neon-red);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Promo Column & Social Panels */
.promo-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-panel {
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.social-proof-panel .earnings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.earnings-entry {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 10px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    padding: 10px;
    border-left: 2px solid var(--neon-green);
    background: rgba(10, 255, 163, 0.05);
    animation: fadeInSlide 0.5s ease-out;
}

.earnings-entry .user {
    font-weight: bold;
    color: #fff;
}

.earnings-entry .amount.profit {
    color: var(--neon-green);
    font-weight: bold;
}

.earnings-entry .type {
    color: var(--text-muted);
    text-align: right;
}

/* AI Signals Styling */
.ai-signals-panel {
    border-color: var(--neon-purple);
}

.signals-content .active-signal {
    margin: 15px 0;
    padding: 15px;
    background: rgba(188, 19, 254, 0.05);
    border: 1px solid rgba(188, 19, 254, 0.2);
}

.confidence-bar {
    margin: 15px 0;
}

.bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.bar-fill {
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 1s ease;
}

.signal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat .val {
    color: var(--neon-cyan);
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feature Grid Styling */
.analysis-core-content {
    padding: 0;
    /* Reset since parent has padding */
    min-height: 500px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: var(--panel-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
}

.feature-card.new-offering {
    border-color: rgba(0, 102, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
}

.card-line {
    width: 30px;
    height: 3px;
    background: var(--neon-blue);
    margin-bottom: 1.2rem;
}

.feature-card.new-offering .card-line {
    background: var(--neon-blue);
}

.card-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--neon-blue);
    padding: 2px 8px;
    font-size: 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

.feature-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    margin-bottom: 0.5rem;
}

.feature-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
}

.feature-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.icon-bg {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 6rem;
    opacity: 0.04;
    pointer-events: none;
    transform: rotate(-10deg);
    transition: all 0.5s ease;
}

.feature-card:hover .icon-bg {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.15);
    color: var(--neon-cyan);
}

/* Platform Footer */
.platform-status-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item .val {
    color: #fff;
    font-weight: bold;
}

/* --- Phase 17: High-Tech Protocol Elements --- */
.evo-select,
.evo-input {
    width: 100% !important;
    background: #020205 !important;
    border: 1px solid rgba(0, 255, 242, 0.3) !important;
    padding: 1.2rem !important;
    color: #fff !important;
    font-family: var(--font-mono) !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: inset 0 0 10px #000 !important;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.evo-select:focus,
.evo-input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.2), inset 0 0 10px rgba(0, 255, 242, 0.1) !important;
}

.evo-select option {
    background: #0a0a0f !important;
    color: #fff !important;
}

/* Range Slider Styles */
.evo-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 20px 0;
}

.evo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--neon-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan);
    border: 2px solid #000;
}

/* Results Typography */
.reward-val {
    font-size: 4rem;
    font-weight: 900;
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(10, 255, 10, 0.2);
    font-family: var(--font-mono);
    color: var(--neon-green);
}

/* --- Definitive Earn Overhaul (Surgery) --- */

.tier-tabs {
    display: flex;
    gap: 12px;
    margin: 1.5rem 0;
}

.tier-tab {
    display: inline-block !important;
    padding: 8px 20px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
}

.tier-tab.active {
    background: var(--neon-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.4) !important;
}

.tier-tab:not(.active):hover {
    background: rgba(0, 255, 242, 0.1) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Row Spacing */
.evo-table td {
    padding: 1.2rem 1.2rem !important;
}

.asset-cell .symbol {
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}

/* Chart Tools & Buttons */
.chart-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-btn.active {
    background: rgba(0, 255, 242, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 255, 242, 0.1);
}

.divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.main-exchange-chart {
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 242, 0.02) 0%, transparent 70%);
    flex-grow: 1;
    /* Fill remaining space in flex container */
    width: 100%;
    min-height: 0;
}

#chart-div {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: -1px -1px;
}

/* Fallback chart placeholder if JS doesn't load */
#chart-div:empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 255, 163, 0.03) 30%,
            rgba(0, 255, 163, 0.05) 50%,
            rgba(255, 0, 85, 0.03) 70%,
            transparent 100%);
    pointer-events: none;
}

/* Order Book Rows */
.orders {
    overflow-y: hidden;
    /* static for now, or auto */
    padding: 5px 0;
}

.order-book-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.1s;
}

.order-book-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.order-book-row span {
    text-align: right;
}

.order-book-row span:first-child {
    text-align: left;
}

/* Scrollbar hiding for cleaner look */
.recent-trades-panel ::-webkit-scrollbar {
    width: 4px;
}

.recent-trades-panel ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Phase 19: High-Density Exchange Layout --- */

.exchange-view.full-width {
    max-width: 100%;
    padding: 10px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exchange-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 10, 20, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instrument-selector {
    display: flex;
    align-items: center;
    gap: 30px;
}

.selector-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-trigger .current-pair {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-cyan);
}

.pair-stats {
    display: flex;
    gap: 25px;
}

.pair-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.pair-stats .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
}

.pair-stats .val {
    font-size: 0.85rem;
    font-weight: 600;
}

.exchange-grid {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 10px;
    flex-grow: 1;
    min-height: 0;
}

/* Sidebar Panels */
.exchange-sidebar-left,
.exchange-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.exchange-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.chart-container-pro {
    flex: 2;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-container-pro {
    flex: 1;
    min-height: 200px;
}

/* Recent Trades Styles */
.recent-trades-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trades-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trades-list {
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.trade-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Execution Pro Panel */
.trade-execution-pro {
    padding: 1.5rem;
}

.execution-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.exe-tab {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exe-tab[data-side="buy"].active {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.exe-tab[data-side="sell"].active {
    background: rgba(255, 59, 92, 0.1);
    border-color: #ff3b5c;
    color: #ff3b5c;
}

.evo-input-group {
    margin-bottom: 1.2rem;
}

.evo-input-group label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.leverage-slider {
    margin: 1.5rem 0;
}

.lev-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.7rem;
}

.trade-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 1400px) {
    .exchange-grid {
        grid-template-columns: 240px 1fr 300px;
    }
}

@media (max-width: 1100px) {
    .exchange-grid {
        grid-template-columns: 1fr 300px;
    }

    .exchange-sidebar-left {
        display: none;
    }
}

@media (max-width: 800px) {
    .exchange-grid {
        grid-template-columns: 1fr;
    }

    .exchange-sidebar-right {
        display: none;
    }

    .hide-mobile {
        display: none;
    }
}

/* --- MOBILE RESPONSIVENESS --- */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 900px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 2, 4, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

    .nav-container.active {
        right: 0;
    }

    .nav-container nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-item {
        font-size: 1.5rem;
        margin: 0;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 80%;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .hero-content {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        border-left: none;
        border-top: 2px solid var(--neon-purple);
        padding-left: 0;
        padding-top: 1.5rem;
        text-align: center;
        margin: 0 auto 2rem auto;
        background: linear-gradient(180deg, rgba(188, 19, 254, 0.05), transparent);
    }

    .glitch-text {
        font-size: 3.5rem;
    }

    .sub-hero {
        font-size: 2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .cta-group .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .system-status {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    /* Adjustments for smaller screens */
    .glitch-text {
        font-size: 2.8rem;
    }

    .sub-hero {
        font-size: 1.5rem;
    }

    .ticker-item {
        margin-right: 2rem;
        font-size: 0.8rem;
    }

    /* Exchange Page specific */
    .exchange-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            'ticker'
            'chart'
            'orderbook'
            'controls'
            'trades';
        height: auto;
        overflow-y: auto;
    }

    .evo-panel {
        margin-bottom: 1rem;
        height: auto;
        min-height: 400px;
    }
}



/* Exchange Page Mobile Styles */
@media (max-width: 1024px) {
    .exchange-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .exchange-sidebar-left,
    .exchange-center,
    .exchange-sidebar-right {
        width: 100%;
        max-width: 100%;
    }

    /* Reorder for mobile: Chart first, then Action, then Orderbook/Trades */
    .exchange-center {
        order: 1;
    }

    .exchange-sidebar-right {
        order: 2;
    }

    .exchange-sidebar-left {
        order: 3;
    }

    .exchange-top-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .instrument-selector {
        width: 100%;
        justify-content: space-between;
    }

    .pair-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .pair-stats {
        grid-template-columns: 1fr;
    }

    .chart-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .chart-tools {
        justify-content: flex-start;
    }
}



/* Markets & Earn Tables Mobile */
@media (max-width: 900px) {
    .markets-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-right: 1px solid var(--border-color);
        /* Hint at scroll */
    }

    .evo-table {
        min-width: 800px;
        /* Ensure content doesn't squash */
    }

    .markets-hero {
        padding: 3rem 5%;
    }
}



/* Contact & Auth Mobile Styles */
@media (max-width: 768px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .auth-page-wrap {
        padding: 2rem 1rem;
        height: auto;
        min-height: 80vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .auth-card {
        width: 100%;
        max-width: 400px;
        padding: 2rem;
    }

    /* Ensure inputs don't overflow */
    .evo-input,
    .auth-form input,
    .auth-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (iPhone SE -> Tablet)
   ========================================= */





/* Feature Grid & Order Book Mobile Fixes */
@media (max-width: 1024px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .platform-status-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Fixed height override for mobile order books to prevent scrolling issues within long pages */
    .orders {
        height: 250px !important;
    }

    .order-book-sentiment {
        margin-top: 1rem;
    }

    .evo-panel {
        min-height: auto;
    }
}

/* Language Selector */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 150px;
    /* Wider for better proportions */
    display: none;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Invisible bridge to prevent dropdown from closing on hover */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.language-selector:hover .lang-dropdown {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.lang-dropdown a {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: rgba(0, 255, 242, 0.05);
    color: var(--neon-cyan);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   AUTHENTICATION PAGES (Redesign)
   ========================================= */

.auth-page-wrap {
    min-height: 85vh;
    /* Center vertically in the visible area */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 242, 0.15);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 242, 0.05);
    position: relative;
    overflow: hidden;
    animation: authCardEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Add a subtle top gradient line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--neon-cyan),
            transparent);
    opacity: 0.5;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    margin-left: 2px;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.02);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.auth-form .btn {
    margin-top: 1rem;
    height: 50px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: text-shadow 0.3s ease;
}

.auth-footer a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile adjustments for Auth */
@media (max-width: 600px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }
}

/* =========================================
   MOBILE ADAPTATION - PHASE 1, STEP 1.1
   ========================================= */

/* Mobile Breakpoint: Hide Desktop Nav, Show Hamburger */
@media (max-width: 1024px) {

    /* Show Hamburger Button */
    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--neon-cyan);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.3s ease;
        margin-left: auto;
    }

    .mobile-menu-btn:hover {
        color: var(--neon-green);
    }

    /* Chevron indicators around hamburger (keep or remove, standardizing to remove via master block) */

    /* Hide Desktop Navigation */
    .glass-header nav,
    .glass-header .auth-buttons,
    .glass-header .language-selector {
        display: none !important;
    }
}

/* Desktop: Hide Hamburger, Show Normal Nav */
.mobile-menu-btn {
    display: none;
}

/* =========================================
   MOBILE ADAPTATION - PHASE 2, STEP 2.1
   Responsive Typography
   ========================================= */

@media (max-width: 768px) {

    /* Hero Typography */
    h1.glitch-text {
        font-size: 2.5rem !important;
    }

    h2.sub-hero {
        font-size: 1.5rem !important;
    }

    /* Hero Section Adjustments */
    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-desc {
        border-left: none;
        border-top: 2px solid var(--neon-purple);
        padding-top: 1rem;
        padding-left: 0;
        text-align: center;
    }

    /* CTA Buttons */
    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* =========================================
       PHASE 2, STEP 2.2: Grid Stacking
       ========================================= */

    /* Single column layout for all grids */
    .market-grid,
    .features-grid,
    .monitor-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Footer Stack */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        align-items: center;
    }
}

/* =========================================
   PHASE 2, STEP 2.3: Table Horizontal Scroll
   ========================================= */

@media (max-width: 900px) {

    .markets-table-wrap,
    .earn-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .evo-table {
        min-width: 700px;
    }
}

/* =========================================
   MOBILE ADAPTATION - PHASE 1, STEP 1.3
   Mobile Menu Overlay Styling
   ========================================= */

/* Overlay Container */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    right: 0;
}

/* Content Container */
.mobile-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-container {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 242, 0.6);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Auth Buttons */
.mobile-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Language Selector */
.mobile-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 300px;
}

.mobile-lang-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.mobile-lang-options {
    display: flex;
    gap: 1.5rem;
}

.mobile-lang-options a {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-lang-options a:hover,
.mobile-lang-options a.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.2);
}

/* =============================================
   UI IMPROVEMENTS — PHASE 2
   ============================================= */

/* --- Wide Hero Button --- */
.btn-hero-wide {
    min-width: 280px;
    padding: 1.4rem 4rem;
    font-size: 1.2rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--neon-cyan), #00d4ff);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.45), 0 0 60px rgba(0, 255, 242, 0.15);
}

.btn-hero-wide:hover {
    box-shadow: 0 0 55px rgba(0, 255, 242, 0.7), 0 0 100px rgba(0, 255, 242, 0.3);
    transform: scale(1.04) translateY(-3px);
    background: #fff;
    animation: none;
}

/* --- Interactive Status Cards --- */
.status-card-interactive {
    background: rgba(10, 10, 20, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 255, 242, 0.15) !important;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    padding: 1.2rem 1.5rem !important;
}

.status-card-interactive:hover {
    background: rgba(0, 255, 242, 0.05) !important;
    border-color: rgba(0, 255, 242, 0.4) !important;
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.1), 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-3px) scale(1.01);
}

.status-card-interactive.p-glow:hover {
    background: rgba(188, 19, 254, 0.05) !important;
    border-color: rgba(188, 19, 254, 0.4) !important;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.1), 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.status-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.status-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 255, 242, 0.08);
    border: 1px solid rgba(0, 255, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-card-icon i {
    font-size: 1.3rem;
    color: var(--neon-cyan);
}

.status-card-icon.purple {
    background: rgba(188, 19, 254, 0.08);
    border-color: rgba(188, 19, 254, 0.2);
}

.status-card-icon.purple i {
    color: var(--neon-purple);
}

.status-card-interactive:hover .status-card-icon {
    background: rgba(0, 255, 242, 0.18);
    box-shadow: 0 0 14px rgba(0, 255, 242, 0.3);
    transform: scale(1.08);
}

.status-card-interactive.p-glow:hover .status-card-icon.purple {
    background: rgba(188, 19, 254, 0.18);
    box-shadow: 0 0 14px rgba(188, 19, 254, 0.3);
    transform: scale(1.08);
}

.status-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.status-card-content .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.status-card-content .value {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

.status-card-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.badge-live {
    background: rgba(10, 255, 10, 0.08);
    border: 1px solid rgba(10, 255, 10, 0.3);
    color: var(--neon-green);
}

.badge-stable {
    background: rgba(188, 19, 254, 0.08);
    border: 1px solid rgba(188, 19, 254, 0.3);
    color: var(--neon-purple);
}

.pulse-dot-sm {
    width: 5px;
    height: 5px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-green);
    animation: pulse 1.2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

.status-bar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.status-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: bar-shimmer 2.5s infinite;
}

@keyframes bar-shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 150%;
    }
}

.cyan-fill {
    background: linear-gradient(90deg, rgba(0, 255, 242, 0.3), var(--neon-cyan));
    box-shadow: 0 0 6px rgba(0, 255, 242, 0.5);
}

.purple-fill {
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.3), var(--neon-purple));
    box-shadow: 0 0 6px rgba(188, 19, 254, 0.5);
}

/* --- Feature Grid Enhanced Hover Effects --- */
.features-grid .feature-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: default;
}

.features-grid .feature-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(0, 255, 242, 0.4) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 242, 0.1) !important;
    background: rgba(0, 255, 242, 0.03) !important;
}

.features-grid .feature-card:hover .icon-bg {
    color: var(--neon-cyan) !important;
    filter: drop-shadow(0 0 12px var(--neon-cyan)) !important;
}

.features-grid .feature-card:hover .feature-label {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.4);
}

.features-grid .feature-card:hover .card-line {
    box-shadow: 0 0 8px var(--neon-cyan);
}

.features-grid .feature-card.new-offering:hover {
    border-color: rgba(188, 19, 254, 0.4) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(188, 19, 254, 0.1) !important;
    background: rgba(188, 19, 254, 0.03) !important;
}

/* --- Institutional Feature Cards Hover --- */
.institutional-page .feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 242, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 242, 0.08);
}

.institutional-page .feature-card:hover .icon-bg {
    filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.institutional-page .feature-card:hover .feature-label {
    color: var(--neon-cyan);
}

/* --- Service Tier Cards Hover --- */
.tier-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: default;
}

.tier-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 242, 0.12) !important;
}

.tier-card:nth-child(2):hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(188, 19, 254, 0.2) !important;
}

/* --- Asset List TRADE Buttons Enhanced --- */
.evo-table .btn-sm.btn-primary {
    padding: 0.55rem 1.4rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    background: var(--neon-cyan);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 255, 242, 0.35);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.evo-table .btn-sm.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 28px var(--neon-cyan), 0 0 8px rgba(0, 255, 242, 0.9);
    transform: scale(1.08) translateY(-1px);
    color: #000;
    animation: none;
}

.evo-table tr {
    transition: background 0.25s ease;
}

/* ── Button element resets for custom tab/filter classes ── */
button.tier-tab,
button.filter-btn,
button.exe-tab,
button.tool-btn {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-family: inherit;
}

/* ── Gear / Settings icon button ── */
.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 242, 0.2);
    transform: rotate(30deg);
}

/* ── Markets filter buttons ── */
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 242, 0.15);
}

/* ── Exchange controls row ── */
.exchange-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ══════════════════════════════════════════════════════
   LIVE WITHDRAWAL FEED WIDGET
══════════════════════════════════════════════════════ */
.withdrawal-feed-section {
    padding: 0 var(--container-padding) 4rem;
    position: relative;
    z-index: 1;
}

.withdrawal-terminal {
    background: rgba(0, 3, 8, 0.96);
    border: 1px solid rgba(0, 255, 242, 0.18);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 255, 242, 0.04),
        0 0 40px rgba(0, 255, 242, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(0, 255, 242, 0.02);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* scanline overlay */
.withdrawal-terminal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 242, 0.012) 2px,
            rgba(0, 255, 242, 0.012) 4px);
    pointer-events: none;
    z-index: 5;
}

.wt-header {
    background: linear-gradient(90deg, rgba(0, 255, 242, 0.06), rgba(188, 19, 254, 0.04));
    border-bottom: 1px solid rgba(0, 255, 242, 0.15);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wt-dots {
    display: flex;
    gap: 7px;
}

.wt-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.wt-dot.r {
    background: #ff5f57;
    box-shadow: 0 0 6px #ff5f57;
}

.wt-dot.y {
    background: #ffbd2e;
    box-shadow: 0 0 6px #ffbd2e;
}

.wt-dot.g {
    background: #28c941;
    box-shadow: 0 0 6px #28c941;
}

.wt-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.5);
    flex: 1;
    text-align: center;
}

.wt-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 1px;
}

.wt-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: wtPulse 1.2s ease-in-out infinite;
}

@keyframes wtPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px var(--neon-green);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
        box-shadow: 0 0 3px var(--neon-green);
    }
}

.wt-subheader {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 7px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wt-subheader span:nth-child(2) {
    text-align: center;
}

.wt-subheader span:nth-child(3) {
    text-align: right;
}

.wt-body {
    height: 320px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.wt-feed {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.wt-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 9px 18px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
    position: relative;
    animation: wtSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

@keyframes wtSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
        background: rgba(0, 255, 242, 0.08);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        background: transparent;
    }
}

.wt-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.3s;
}

.wt-row.flash::before {
    opacity: 1;
}

.wt-row:hover {
    background: rgba(0, 255, 242, 0.03);
}

/* BIG WIN row */
.wt-row.big-win {
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.08), rgba(0, 255, 242, 0.04), transparent);
    border-bottom-color: rgba(188, 19, 254, 0.2);
    animation: wtBigSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes wtBigSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
        background: rgba(188, 19, 254, 0.25);
        box-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        background: linear-gradient(90deg, rgba(188, 19, 254, 0.08), rgba(0, 255, 242, 0.04), transparent);
        box-shadow: none;
    }
}

.wt-row.big-win::before {
    background: var(--neon-purple);
    opacity: 1;
}

.wt-nick {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wt-nick-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.15), rgba(188, 19, 254, 0.1));
    border: 1px solid rgba(0, 255, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.big-win .wt-nick-icon {
    background: linear-gradient(135deg, rgba(188, 19, 254, 0.3), rgba(0, 255, 242, 0.1));
    border-color: rgba(188, 19, 254, 0.4);
    color: var(--neon-purple);
}

.wt-amount {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(10, 255, 10, 0.3);
}

.big-win .wt-amount {
    color: var(--neon-purple);
    text-shadow: 0 0 12px rgba(188, 19, 254, 0.6);
    font-size: 1rem;
}

.wt-method {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.wt-method-icon {
    font-size: 0.95rem;
}

.wt-crypto {
    color: #f7931a;
}

/* BTC orange */
.wt-eth {
    color: #627eea;
}

.wt-usdt {
    color: #26a17b;
}

.wt-sol {
    color: #9945ff;
}

.wt-xrp {
    color: #00aae4;
}

.wt-bnb {
    color: #f3ba2f;
}

.wt-ton {
    color: #0088cc;
}

.wt-trx {
    color: #ef0027;
}

.wt-avax {
    color: #e84142;
}

.wt-ltc {
    color: #bfbbbb;
}

.wt-visa {
    color: #1a73e8;
}

.wt-mc {
    color: #eb001b;
}

.wt-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 242, 0.08);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wt-count {
    color: rgba(0, 255, 242, 0.55);
}

.wt-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--neon-cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: wtBlink 1s step-end infinite;
    box-shadow: 0 0 5px var(--neon-cyan);
}

@keyframes wtBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* fade-out top rows */
.wt-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 3, 8, 0.98), transparent);
    z-index: 4;
    pointer-events: none;
}

.wt-section-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(0, 255, 242, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wt-section-tag::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 242, 0.2), transparent);
}

/* ── SITE-WIDE & WIDGET RESPONSIVENESS ────────────────── */

/* ── Mobile Menu & Header Defaults (Desktop first) ── */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 4, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-container {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 3px;
    transition: color 0.3s;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}

.mobile-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.mobile-lang {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.mobile-lang-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.mobile-lang-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-lang-options a {
    color: #fff;
    font-family: var(--font-mono);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.mobile-lang-options a.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Base override for default Desktop monitor grid to side-by-side */
.monitor-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
}

/* Desktop Large Screens (1200px and under) */
@media (max-width: 1200px) {
    .monitor-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet ≤ 900px */
@media (max-width: 900px) {

    /* Header */
    .glass-header {
        padding: 1rem 2rem;
    }

    nav,
    .header-actions .auth-buttons,
    .header-actions .language-selector {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo span {
        font-size: 1.5rem;
    }

    /* Layout */
    :root {
        --container-padding: 2rem;
        --section-gap: 3rem;
    }

    section {
        padding: 3rem var(--container-padding);
    }

    /* Hero */
    .hero {
        min-height: 50vh;
        padding: 4rem 2rem 0;
        margin-top: 2rem;
        text-align: center;
        justify-content: center;
    }

    .glitch-text {
        font-size: 4rem;
    }

    .sub-hero {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
        border: none;
        padding: 0;
        background: none;
        margin: 0 auto 2rem;
    }

    .cta-group {
        justify-content: center;
    }

    /* Grids */
    .market-grid,
    .features-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Withdrawal Terminal Tablet */
    .withdrawal-feed-section {
        padding: 0 1.5rem 3rem;
    }

    .wt-section-tag {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .wt-title {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .wt-body {
        height: 280px;
    }

    .wt-row {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .wt-nick-icon {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }

    .wt-amount {
        font-size: 0.85rem;
    }

    .wt-method {
        font-size: 0.72rem;
    }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {

    /* Layout */
    :root {
        --container-padding: 1rem;
        --section-gap: 2rem;
    }

    .glass-header {
        padding: 0.8rem 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    /* Hero */
    .glitch-text {
        font-size: 2.5rem;
    }

    .sub-hero {
        font-size: 1.5rem;
    }

    /* Grids */
    .market-grid,
    .features-grid,
    .dashboard-grid,
    .monitor-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stats & Exchange */
    .current-price-divider .price {
        font-size: 1.2rem;
    }

    .stat-card.evo-panel .stat-value {
        font-size: 2rem !important;
    }

    /* Order Book */
    .order-row {
        font-size: 0.65rem;
    }

    .order-table-header {
        font-size: 0.6rem;
    }

    /* Features */
    .feature-card {
        padding: 1.2rem;
    }

    .feature-value {
        font-size: 1.5rem;
    }

    /* Withdrawal Terminal Mobile */
    .withdrawal-feed-section {
        padding: 0 0.75rem 2.5rem;
    }

    .wt-live-badge {
        display: none;
    }

    .wt-title {
        font-size: 0.62rem;
        letter-spacing: 0.5px;
    }

    .wt-section-tag {
        font-size: 0.58rem;
    }

    .wt-body {
        height: 260px;
    }

    .wt-subheader span {
        font-size: 0.55rem;
    }

    .wt-row {
        grid-template-columns: 1.2fr 1.1fr 0.7fr;
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .wt-nick-icon {
        display: none;
    }

    .wt-nick {
        gap: 0;
        font-size: 0.72rem;
    }

    .wt-amount {
        font-size: 0.78rem;
    }

    .wt-method {
        font-size: 0.66rem;
        gap: 3px;
    }

    .wt-method-icon {
        font-size: 0.78rem;
    }

    .wt-footer {
        font-size: 0.6rem;
        padding: 7px 12px;
    }
}

/* Small mobile ≤ 400px */
@media (max-width: 400px) {
    .glitch-text {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 1rem 0;
    }

    .cta-group {
        flex-direction: column;
    }

    /* Withdrawal Terminal Small Mobile */
    .wt-row {
        grid-template-columns: 1.3fr 1fr 0.65fr;
        font-size: 0.65rem;
    }

    .wt-amount {
        font-size: 0.68rem;
    }
}

/* ════════════════════════════════════════════════════════════════════
   ★  MASTER RESPONSIVE OVERHAUL  ★  — FINAL CASCADE LAYER
   Overrides all conflicting rules above via cascade order.
   Breakpoints: 1280 / 1024 / 768 / 480 / 360
   ════════════════════════════════════════════════════════════════════ */

/* ── Fluid Typography ── */
:root {
    --fs-hero: clamp(2rem, 8vw, 6rem);
    --fs-sub: clamp(1.3rem, 4vw, 3.5rem);
    --fs-body: clamp(0.9rem, 2vw, 1.2rem);
}

h1.glitch-text {
    font-size: var(--fs-hero) !important;
    line-height: 1;
}

h2.sub-hero {
    font-size: var(--fs-sub) !important;
}

.hero-desc {
    font-size: var(--fs-body) !important;
}

/* smooth scroll + focus ring */
html {
    scroll-behavior: smooth;
}

*:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────────────
   ≤ 1280px  Large tablet
   ────────────────────────────────────────────────────────────────────*/
@media (max-width: 1280px) {
    :root {
        --container-padding: 3rem;
        --section-gap: 4rem;
    }

    .exchange-grid {
        grid-template-columns: 240px 1fr 300px;
    }
}

/* ────────────────────────────────────────────────────────────────────
   ≤ 1024px  Tablet (iPad)
   ────────────────────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
        --section-gap: 3rem;
    }

    /* Header stays ONE ROW */
    .glass-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.9rem 2rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        gap: 0 !important;
        text-align: left !important;
    }

    /* Remove decorative chevrons that push button to its own centered row */
    .mobile-menu-btn::before,
    .mobile-menu-btn::after {
        display: none !important;
        content: none !important;
    }


    /* Hide desktop nav, show hamburger */
    .glass-header nav,
    .glass-header .auth-buttons,
    .glass-header .language-selector {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px;
        min-height: 44px;
    }

    /* Hero */
    .hero {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding: 5rem 2rem 3rem !important;
        min-height: 55vh;
    }

    .hero-content {
        max-width: 620px;
        margin: 0 auto;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-desc {
        border-left: none !important;
        border-top: 2px solid var(--neon-purple) !important;
        padding: 1rem 0 0 !important;
        background: none !important;
        text-align: center !important;
        margin: 0 auto 2rem !important;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Grids */
    .monitor-grid {
        grid-template-columns: 1fr !important;
    }

    .world-status {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .status-card {
        flex: 1;
        min-width: 180px;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Exchange */
    .exchange-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .exchange-sidebar-left {
        display: none !important;
    }

    .exchange-top-bar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .pair-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        width: 100%;
    }

    .exchange-view.full-width {
        height: auto;
    }

    #chart-div {
        min-height: 340px;
    }

    /* Section padding */
    .system-monitor {
        padding: 1.5rem 2rem !important;
    }

    .market-overview {
        padding: 2rem !important;
    }

    .glass-footer {
        padding: 1rem 2rem !important;
    }

    section {
        padding: var(--section-gap) var(--container-padding) !important;
    }

    /* Touch targets */
    .btn,
    .mobile-nav-link,
    .tier-tab,
    .filter-btn,
    .tool-btn,
    .exe-tab,
    .lang-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ────────────────────────────────────────────────────────────────────
   ≤ 768px  Mobile landscape + small tablet
   ────────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --section-gap: 2.5rem;
    }

    /* Header */
    .glass-header {
        padding: 0.75rem 1.25rem !important;
    }

    .logo {
        font-size: 1.5rem !important;
    }

    .logo i {
        font-size: 1.8rem !important;
    }

    /* Body scrolls always */
    body {
        overflow-y: auto !important;
        min-height: 100vh !important;
    }

    /* Ticker — visible, smaller */
    .ticker-wrap {
        display: block !important;
        padding: 6px 0 !important;
    }

    .ticker-item {
        padding: 0 1rem !important;
        font-size: 0.72rem !important;
        gap: 6px !important;
    }

    /* Hero */
    .hero {
        padding: 4rem 1.25rem 2rem !important;
        min-height: auto;
    }

    .btn-hero-wide {
        min-width: unset !important;
        width: 100% !important;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        letter-spacing: 2px;
    }

    /* Status cards horizontal on mobile */
    .world-status {
        flex-direction: row !important;
        gap: 0.75rem;
    }

    .status-card {
        flex: 1;
        min-width: 120px;
    }

    .status-card-content .value {
        font-size: 1.2rem !important;
    }

    /* All grids → 1 col */
    .monitor-grid,
    .market-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Exchange */
    .exchange-sidebar-right {
        display: none !important;
    }

    .pair-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #chart-div {
        min-height: 280px;
    }

    /* Sizes */
    .feature-card {
        padding: 1.3rem;
    }

    .feature-value {
        font-size: 1.7rem;
    }

    .orders {
        height: 200px !important;
    }

    .current-price-divider .price {
        font-size: 1.2rem;
    }

    .stat-card.evo-panel .stat-value {
        font-size: 2.2rem !important;
    }

    /* CTA */
    .cta-group {
        flex-direction: column !important;
    }

    .cta-group .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Pairs showcase */
    .pairs-showcase {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer */
    .glass-footer {
        padding: 1rem 1.25rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    /* Sections */
    section {
        padding: 2.5rem 1.25rem !important;
    }

    .system-monitor {
        padding: 1rem 1.25rem !important;
    }

    .market-overview {
        padding: 1.5rem 1.25rem !important;
    }

    .withdrawal-feed-section {
        padding: 0 1.25rem 2rem !important;
    }
}

/* ────────────────────────────────────────────────────────────────────
   ≤ 480px  Small mobile (most Android phones / older iPhones)
   ────────────────────────────────────────────────────────────────────*/
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-gap: 2rem;
    }

    .glass-header {
        padding: 0.65rem 1rem !important;
    }

    .logo {
        font-size: 1.3rem !important;
        gap: 0.5rem !important;
    }

    .logo i {
        font-size: 1.5rem !important;
    }

    .hero {
        padding: 3.5rem 1rem 1.5rem !important;
    }

    /* Status cards stack */
    .world-status {
        flex-direction: column !important;
    }

    /* Exchange */
    .instrument-selector {
        gap: 10px;
    }

    .pair-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.3rem;
    }

    .selector-trigger .current-pair {
        font-size: 0.9rem;
    }

    #chart-div {
        min-height: 240px;
    }

    .chart-header {
        overflow-x: auto;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.1rem;
    }

    .feature-value {
        font-size: 1.5rem;
    }

    .feature-desc {
        font-size: 0.75rem;
    }

    .icon-bg {
        font-size: 4rem;
    }

    /* Earn */
    .reward-val {
        font-size: 2.5rem;
    }

    .tier-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tier-tab {
        padding: 6px 12px !important;
        font-size: 0.62rem !important;
    }

    /* Tables */
    .markets-table-wrap,
    .earn-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .evo-table {
        min-width: 600px;
    }

    /* Pairs showcase */
    .pairs-showcase {
        grid-template-columns: 1fr !important;
    }

    /* Withdrawal terminal */
    .wt-live-badge {
        display: none !important;
    }

    .wt-title {
        font-size: 0.62rem !important;
        letter-spacing: 0.5px !important;
    }

    .wt-body {
        height: 240px !important;
    }

    .wt-row {
        grid-template-columns: 1.1fr 1fr 0.8fr;
        padding: 7px 10px;
        font-size: 0.7rem;
    }

    .wt-nick-icon {
        display: none !important;
    }

    .wt-amount {
        font-size: 0.75rem !important;
    }

    .wt-method {
        font-size: 0.62rem !important;
        gap: 3px;
    }

    section {
        padding: 2rem 1rem !important;
    }
}

/* ────────────────────────────────────────────────────────────────────
   ≤ 360px  iPhone SE / ultra-compact
   ────────────────────────────────────────────────────────────────────*/
@media (max-width: 360px) {

    /* Hide logo text, icon only */
    .logo>span {
        display: none;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .mobile-menu-btn {
        font-size: 1.4rem;
    }

    .hero {
        padding: 3rem 0.75rem 1rem !important;
    }

    .status-badge {
        font-size: 0.62rem;
        padding: 5px 8px;
    }

    .pair-stats {
        grid-template-columns: 1fr !important;
    }

    .wt-row {
        grid-template-columns: 1.2fr 1fr 0.7fr;
        font-size: 0.6rem;
        padding: 6px 8px;
    }

    .wt-amount {
        font-size: 0.62rem !important;
    }

    .feature-card {
        padding: 0.9rem;
    }

    .feature-value {
        font-size: 1.3rem;
    }

    .tier-tab {
        padding: 5px 8px !important;
    }

    section {
        padding: 1.75rem 0.75rem !important;
    }
}