/* =====================================================
   PIXDIGITAL — Premium Crypto Exchange UI
   Stack: Vanilla CSS + GSAP (loaded in HTML)
   Inspired by: Binance + Antigravity Design Expert Skill
   Design: Glassmorphism · Spatial Depth · Neon Yellow
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ——— CSS Variables ——— */
:root {
    --bg:           #050608;
    --bg-surface:   #0C0D12;
    --bg-card:      rgba(255,255,255,0.03);
    --bg-input:     rgba(255,255,255,0.04);
    --bg-hover:     rgba(255,255,255,0.07);

    --yellow:       #E5FF00;
    --yellow-dim:   rgba(229,255,0,0.12);
    --yellow-glow:  rgba(229,255,0,0.25);
    --cyan:         #00F0FF;
    --pink:         #FF00E5;
    --green:        #00FF88;
    --red:          #FF4455;

    --text:         #FFFFFF;
    --text-2:       rgba(255,255,255,0.6);
    --text-3:       rgba(255,255,255,0.35);

    --border:       rgba(255,255,255,0.06);
    --border-focus: rgba(229,255,0,0.35);

    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 8px;

    --font: 'Space Grotesk', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --shadow-card:  0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
    --shadow-glow:  0 0 40px var(--yellow-glow);
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— Reset ——— */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input { font-family: var(--font); outline: none; border: none; background: none; }
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ——— Canvas de Partículas (fundo) ——— */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ——— Orbs de Luz ——— */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 15s ease-in-out infinite alternate;
}
.orb-1 {
    width: 700px; height: 700px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(229,255,0,0.12) 0%, transparent 70%);
    animation-duration: 18s;
}
.orb-2 {
    width: 600px; height: 600px;
    bottom: -150px; right: -150px;
    background: radial-gradient(circle, rgba(255,0,229,0.08) 0%, transparent 70%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}
.orb-3 {
    width: 400px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,240,255,0.05) 0%, transparent 70%);
    animation-duration: 25s;
}
@keyframes orbFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ——— Fundo High-Tech (Estilo Firecrawl) ——— */
.bg-grid {
    position: fixed;
    inset: -50%;
    z-index: 0;
    pointer-events: none;
    /* Malha de pontos (Dot Matrix) */
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    /* Máscara radial para focar no centro e sumir nas bordas */
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 10%, transparent 80%);
    /* Animação sutil de movimento */
    animation: driftGrid 60s linear infinite;
}

@keyframes driftGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 24px); }
}

/* ——— Z-Index Stack ——— */
header, section, footer, .ticker-wrapper { position: relative; z-index: 1; }

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5,6,8,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(229,255,0,0.4)); }
    50%       { filter: drop-shadow(0 0 14px rgba(229,255,0,0.8)); }
}

/* Animação dos pixels independentes */
.logo-pixel {
    animation: logoPixelBlink 2s infinite ease-in-out;
}
@keyframes logoPixelBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--yellow); }

.i-wrap {
    position: relative;
    display: inline-block;
}
.i-dot {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    animation: logoPixelBlink 2s infinite ease-in-out;
}
.white-dot {
    background: #FFF;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}
.yellow-dot {
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow-glow);
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--bg-hover);
}
.nav-link.active { color: var(--yellow); }

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 6px 14px;
    border-radius: 50px;
}
.network-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: blink 1.2s ease-in-out infinite alternate;
}
@keyframes blink {
    0%   { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1;   transform: scale(1.2); }
}

.btn-outline {
    padding: 9px 22px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.2);
    background: var(--bg-hover);
}

.btn-primary-sm {
    padding: 9px 22px;
    border-radius: 50px;
    background: var(--yellow);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--yellow-glow);
}
.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 120px;
    padding: 140px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Text Side */
.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--yellow-dim);
    border: 1px solid rgba(229,255,0,0.2);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--yellow);
    animation: blink 1.2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: clamp(52px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}
.title-highlight {
    color: var(--yellow);
    position: relative;
}
.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), transparent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    font-weight: 600;
}
.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* ===================== COST COMPARATOR ===================== */
.cost-comparator {
    margin-top: 50px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--r-lg);
    padding: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.comparator-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.comparator-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 20px;
}
.comparator-sub strong { color: var(--text); }
.comp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comp-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.comp-item:hover { background: rgba(255,255,255,0.03); }
.comp-item.bad { border-left: 3px solid rgba(255,68,85,0.6); }
.comp-item.good {
    border: 1px solid rgba(229,255,0,0.3);
    background: rgba(229,255,0,0.05);
    box-shadow: 0 0 20px rgba(229,255,0,0.05);
}
.comp-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
}
.comp-info { display: flex; flex-direction: column; }
.comp-name {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: 2px;
}
.comp-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--mono);
    margin-bottom: 2px;
}
.comp-item.good .comp-val { color: var(--yellow); }
.comp-item.bad .comp-val { color: var(--red); }
.comp-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* ===================== SWAP WIDGET ===================== */
.swap-widget {
    flex: 0 0 520px;
    background: rgba(12,13,18,0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(229,255,0,0.15);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow-card), 0 0 80px rgba(229,255,0,0.06);
    position: relative;
    overflow: hidden;
}

/* Reflexo no widget */
.swap-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229,255,0,0.5), transparent);
}

/* Tabs */
.swap-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
}
.tab {
    flex: 1;
    padding: 10px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    transition: var(--transition);
}
.tab.active {
    background: var(--yellow);
    color: #000;
    box-shadow: 0 2px 10px var(--yellow-glow);
}

/* Live Rate Bar */
.live-rate-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.rate-left { display: flex; align-items: center; gap: 8px; }
.rate-label { color: var(--text-3); font-weight: 500; }
.rate-eq { color: var(--text-3); }
.rate-value {
    color: var(--text);
    font-weight: 700;
    font-family: var(--mono);
    font-size: 15px;
}
.rate-right { display: flex; align-items: center; gap: 10px; }
.rate-change {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    font-family: var(--mono);
}
.rate-network {
    font-size: 11px;
    color: var(--text-3);
    background: var(--bg-hover);
    padding: 3px 10px;
    border-radius: 50px;
}

/* Input Blocks */
.input-block { margin-bottom: 8px; }
.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.input-label-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.balance-hint {
    font-size: 12px;
    color: var(--text-3);
}
.estimate-tag {
    background: rgba(229,255,0,0.08);
    color: rgba(229,255,0,0.7);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* Network Selector */
.network-options { display: flex; gap: 8px; }
.network-btn {
    flex: 1;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.network-btn:hover {
    background: rgba(255,255,255,0.08);
}
.network-btn.active {
    background: var(--yellow-dim);
    border-color: rgba(229,255,0,0.3);
    color: var(--yellow);
}

.input-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    transition: var(--transition);
}
.input-field:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(229,255,0,0.06);
}
.input-field.highlight { border-color: rgba(229,255,0,0.2); }

.currency-flag { font-size: 22px; }
.coin-logo { width: 26px; height: 26px; border-radius: 50%; }

.input-field input {
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
    min-width: 0;
}
.input-field input::placeholder { color: var(--text-3); }

.currency-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}
.currency-tag:hover { background: rgba(255,255,255,0.1); }
.currency-tag.yellow { color: var(--yellow); border-color: rgba(229,255,0,0.2); }

/* Quick amounts */
.quick-amounts {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.quick-btn {
    flex: 1;
    padding: 7px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    transition: var(--transition);
}
.quick-btn:hover {
    background: var(--yellow-dim);
    border-color: rgba(229,255,0,0.3);
    color: var(--yellow);
}

/* Swap Arrow */
.swap-arrow-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 4px 0;
    position: relative;
}
.swap-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.swap-arrow-btn {
    background: var(--yellow);
    color: #000;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--yellow-glow);
    flex-shrink: 0;
}
.swap-arrow-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* CPF Input */
.cpf-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(229, 255, 0, 0.05);
    border: 1px solid rgba(229, 255, 0, 0.15);
    border-radius: var(--r-md);
    color: var(--text-2);
}
.cpf-disclaimer svg {
    color: var(--yellow);
    flex-shrink: 0;
    margin-top: 2px;
}
.cpf-disclaimer p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}
.cpf-disclaimer strong {
    color: var(--text);
    font-weight: 700;
}

/* Wallet Input */
.wallet-block { margin-bottom: 16px; }
.wallet-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 13px 16px;
    transition: var(--transition);
}
.wallet-input-wrap:focus-within { border-color: var(--border-focus); }
.wallet-icon { color: var(--text-3); flex-shrink: 0; }
.wallet-input-wrap input {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-family: var(--mono);
}
.wallet-input-wrap input::placeholder { color: var(--text-3); }
.paste-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.paste-btn:hover { background: var(--yellow-dim); }

/* Fee Breakdown */
.fee-breakdown {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2);
}
.fee-row span:last-child { font-family: var(--mono); font-weight: 600; }
.fee-row.total {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 2px;
    color: var(--text);
    font-weight: 700;
}
.fee-row.total span:last-child { color: var(--yellow); font-size: 15px; }

/* CTA Button */
.btn-convert {
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--r-lg);
    background: var(--yellow);
    color: #000;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--yellow-glow);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}
.btn-convert::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: 0.5s;
}
.btn-convert:hover::before { left: 100%; }
.btn-convert:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(229,255,0,0.4);
}
.btn-convert:active { transform: translateY(0); }

.widget-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 16px;
}

/* MED Disclaimer */
.med-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 68, 85, 0.05);
    border: 1px solid rgba(255, 68, 85, 0.2);
    border-radius: var(--r-md);
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}
.med-disclaimer svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.med-disclaimer p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}
.med-disclaimer strong {
    color: var(--red);
    font-weight: 700;
}

/* ===================== TICKER ===================== */
.ticker-wrapper {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    padding: 12px 0;
    margin: 0;
}
.ticker-track {
    display: flex;
    gap: 0;
    animation: tickerRoll 60s linear infinite;
    width: max-content;
}
@keyframes tickerRoll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.ticker-symbol { font-size: 14px; font-weight: 700; }
.ticker-price { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.ticker-pct { font-size: 12px; font-weight: 600; }
.up   { color: var(--green); }
.down { color: var(--red); }

/* ===================== MARKETS SECTION ===================== */
.markets-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-badge {
    display: inline-block;
    background: var(--yellow-dim);
    border: 1px solid rgba(229,255,0,0.2);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
}
.section-sub { font-size: 16px; color: var(--text-2); }

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.market-card:hover {
    background: var(--bg-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.market-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.coin-identity { display: flex; align-items: center; gap: 14px; }
.coin-img { width: 44px; height: 44px; border-radius: 50%; }
.coin-name-wrap { display: flex; flex-direction: column; }
.coin-name-big { font-size: 18px; font-weight: 700; }
.coin-pair { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.coin-pct {
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: var(--mono);
}
.coin-pct.up   { background: rgba(0,255,136,0.1); color: var(--green); }
.coin-pct.down { background: rgba(255,68,85,0.1);  color: var(--red); }

.coin-price-big {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--mono);
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.coin-volume { font-size: 12px; color: var(--text-3); }

/* ===================== FEATURES ===================== */
.features-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 100px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.feature-card:hover {
    background: var(--bg-hover);
    border-color: rgba(229,255,0,0.15);
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ===================== FOOTER ===================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 40px;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    font-size: 20px;
    font-weight: 800;
}
.footer-logo p {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 400;
    margin-top: 4px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-3);
}
.footer-links a {
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .hero { gap: 50px; }
    .swap-widget { flex: 0 0 420px; }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .swap-widget { flex: 0 0 auto; width: 100%; max-width: 540px; }
    .nav-links, .network-badge { display: none; }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 600px) {
    .header { padding: 0 20px; }
    .hero { padding: 90px 20px 40px; }
    .markets-section, .features-section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
}
