/* ===== ROOT VARIABLES ===== */
:root {
    --bg-primary: #080B11;
    --bg-secondary: #0D1117;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --bg-input: #0D1117;
    --bg-panel: #111827;
    --border: #1F2937;
    --border-accent: #2D3A4A;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #475569;
    --accent: #14F195;
    --accent-dark: #0DB87A;
    --accent-glow: rgba(20, 241, 149, 0.15);
    --accent-2: #9945FF;
    --accent-2-glow: rgba(153, 69, 255, 0.15);
    --profit: #14F195;
    --loss: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
    --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select { font-family: inherit; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TICKER BAR ===== */
.ticker-bar {
    background: linear-gradient(90deg, #0D1117, #111827, #0D1117);
    border-bottom: 1px solid var(--border);
    height: 36px;
    overflow: hidden;
    position: relative;
    z-index: 100;
}
.ticker-content {
    display: flex;
    gap: 60px;
    align-items: center;
    height: 100%;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.ticker-item {
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    padding: 0 8px;
}
.ticker-item.profit { color: var(--profit); }
.ticker-item.neutral { color: var(--text-secondary); }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    transition: all var(--transition);
}
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--accent); }
.logo-sniper { color: #14F195; }
.logo-bot { color: #fff; }
.logo-solana { color: #14F195; }
.logo-tld { color: #fff; font-size: 0.62em; vertical-align: baseline; letter-spacing: 0; }
.logo-badge {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
}
.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--profit);
    font-weight: 500;
}
.status-dot {
    width: 8px; height: 8px;
    background: var(--profit);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20,241,149,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(20,241,149,0); }
}
.btn-connect {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.btn-connect:hover { background: var(--accent-dark); transform: translateY(-1px); }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20,241,149,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,241,149,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(20,241,149,0.12) 0%, transparent 70%);
    top: -200px; left: -200px;
}
.glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(153,69,255,0.1) 0%, transparent 70%);
    bottom: -200px; right: -100px;
}
.hero-container {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(20,241,149,0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 24px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #9945FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-subtitle strong { color: var(--text-primary); }
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20,241,149,0.3);
    color: #000;
    opacity: 1;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--text-primary);
    opacity: 1;
}
.btn-large { padding: 14px 28px; font-size: 15px; }
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 0;
    flex-wrap: wrap;
}
.hero-stat {
    padding: 8px 40px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}
.hero-stat .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}
.hero-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    transition: color var(--transition);
}
.scroll-indicator:hover { color: var(--accent); opacity: 1; }
.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 18px;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== SECTION COMMON ===== */
section { padding: 80px 24px; }
.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.profit-text { color: var(--profit); }
.loss-text { color: var(--loss); }

/* ===== BOT SECTION ===== */
.bot-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ===== BOT STATUS BAR ===== */
.bot-statusbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.bsb-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
    border-right: 1px solid var(--border);
}
.bsb-item:last-of-type { border-right: none; }
.bsb-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.bsb-value { font-size: 13px; font-weight: 600; font-family: var(--font-mono); }
.status-active { color: var(--profit); }
.bsb-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 16px;
}
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch.sm { width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-accent);
    border-radius: 100px;
    transition: all var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    bottom: 3px; left: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition);
}
.toggle-switch.sm .toggle-slider::before { height: 14px; width: 14px; }
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch.sm input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 16px;
    align-items: start;
}

/* ===== PANEL BASE ===== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}
.panel-icon { font-size: 16px; }
.live-badge {
    background: rgba(20,241,149,0.15);
    color: var(--accent);
    border: 1px solid rgba(20,241,149,0.3);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.panel-body { padding: 16px; }

/* ===== FILTER PANEL ===== */
.filter-panel { max-height: calc(100vh - 160px); overflow-y: auto; }

.filter-group { margin-bottom: 20px; }
.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.filter-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* DEX Grid */
.dex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.dex-option {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.dex-option input { width: 12px; height: 12px; cursor: pointer; accent-color: var(--accent); }
.dex-option.selected { border-color: rgba(20,241,149,0.4); color: var(--text-primary); background: var(--accent-glow); }
.dex-option:hover { border-color: rgba(20,241,149,0.3); }

/* Range Inputs */
.range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-accent);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow var(--transition);
}
.range-input::-webkit-slider-thumb:hover { box-shadow: 0 0 0 4px rgba(20,241,149,0.2); }
.range-row { display: flex; flex-direction: column; gap: 8px; }
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}
.full-width { width: 100%; }

/* Toggle List */
.toggle-list { display: flex; flex-direction: column; gap: 10px; }
.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.toggle-item-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.toggle-item-desc { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* Input Group */
.input-group { margin-bottom: 12px; }
.input-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.text-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-mono);
    transition: border-color var(--transition);
}
.text-input:focus { outline: none; border-color: var(--accent); }
.input-with-unit {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}
.input-with-unit:focus-within { border-color: var(--accent); }
.input-with-unit input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-mono);
}
.input-unit {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-left: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Slippage */
.slippage-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.slip-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.slip-btn.active, .slip-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}
.slip-custom {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 12px;
    width: 72px;
    outline: none;
    font-family: var(--font-mono);
}
.slip-custom:focus { border-color: var(--accent); }

.tp-sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.btn-reset:hover { border-color: var(--loss); color: var(--loss); }

.btn-save-config, .btn-load-config {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    margin-bottom: 8px;
}
.btn-save-config {
    background: var(--accent-glow);
    border: 1px solid rgba(20,241,149,0.3);
    color: var(--accent);
}
.btn-save-config:hover { background: rgba(20,241,149,0.25); }
.btn-load-config {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-load-config:hover { border-color: var(--accent); color: var(--text-primary); }

/* ===== SCANNER PANEL ===== */
.scanner-panel { display: flex; flex-direction: column; }
.scanner-controls { display: flex; align-items: center; gap: 8px; }
.sort-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}
.btn-icon {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.scanner-search { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.filter-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.ftab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.ftab.active, .ftab:hover {
    background: var(--accent-glow);
    border-color: rgba(20,241,149,0.4);
    color: var(--accent);
}
.token-list {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    min-height: 400px;
}
.token-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
}
.token-item:hover { background: var(--bg-card-hover); }
.token-item.selected { background: var(--accent-glow); border-left: 2px solid var(--accent); }
.token-item.new-entry { animation: slideIn 0.4s ease; }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); background: rgba(20,241,149,0.08); }
    to { opacity: 1; transform: translateX(0); }
}
.token-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.token-info { flex: 1; min-width: 0; }
.token-name-row { display: flex; align-items: center; gap: 6px; }
.token-symbol {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.token-name {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.token-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.token-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-new { background: rgba(20,241,149,0.15); color: var(--profit); border: 1px solid rgba(20,241,149,0.3); }
.tag-trending { background: rgba(249,115,22,0.15); color: #F97316; border: 1px solid rgba(249,115,22,0.3); }
.tag-safe { background: rgba(59,130,246,0.15); color: #3B82F6; border: 1px solid rgba(59,130,246,0.3); }
.tag-risky { background: rgba(239,68,68,0.15); color: var(--loss); border: 1px solid rgba(239,68,68,0.3); }
.token-stats { text-align: right; flex-shrink: 0; }
.token-mcap { font-size: 12px; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.token-change { font-size: 11px; font-weight: 600; font-family: var(--font-mono); }
.token-age { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.token-snipe-btn {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}
.token-snipe-btn:hover { background: var(--accent-dark); transform: scale(1.05); }
.token-safety {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
}
.safety-score {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-mono);
}
.safety-high { background: rgba(20,241,149,0.15); color: var(--profit); border: 1px solid rgba(20,241,149,0.3); }
.safety-mid { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.safety-low { background: rgba(239,68,68,0.15); color: var(--loss); border: 1px solid rgba(239,68,68,0.3); }
.scanner-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.01);
}

/* ===== RIGHT COL ===== */
.right-col { display: flex; flex-direction: column; gap: 16px; }

/* Trade Panel */
.trade-panel .panel-body { padding: 14px; }
.selected-token { margin-bottom: 14px; }
.selected-token-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}
.empty-icon { font-size: 32px; margin-bottom: 8px; }
.trade-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.ttab {
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.ttab#buyTab.active { background: var(--profit); color: #000; }
.ttab#sellTab.active { background: var(--loss); color: #fff; }
.trade-form { display: flex; flex-direction: column; gap: 10px; }
.trade-form.hidden { display: none; }
.quick-amounts {
    display: flex;
    gap: 5px;
}
.qa-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: var(--font-mono);
}
.qa-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.trade-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.trade-info-val { font-weight: 600; color: var(--text-primary); font-family: var(--font-mono); }
.btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000;
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    transition: all var(--transition);
    margin-top: 8px;
}
.btn-buy-now:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,241,149,0.3); }
.btn-sell-now {
    width: 100%;
    background: linear-gradient(135deg, var(--loss) 0%, #DC2626 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
    margin-top: 8px;
}
.btn-sell-now:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.3); }
.trade-disclaimer { font-size: 11px; color: var(--text-muted); text-align: center; }
.sell-percent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sp-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.sp-btn.active, .sp-btn:hover { background: rgba(239,68,68,0.15); border-color: var(--loss); color: var(--loss); }

/* Wallet Panel */
.wallet-panel .btn-small {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}
.wallet-body { padding: 14px; }
.wallet-disconnected { text-align: center; }
.wallet-disconnected p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.wallet-options { display: flex; flex-direction: column; gap: 6px; }
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}
.wallet-btn:hover { border-color: var(--accent); background: var(--accent-glow); }
.wallet-btn img { width: 20px; height: 20px; }

/* Portfolio Panel */
.portfolio-panel { max-height: 380px; overflow: hidden; }
.portfolio-pnl { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.portfolio-list { overflow-y: auto; max-height: 310px; }
.portfolio-empty {
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}
.portfolio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.portfolio-item:hover { background: var(--bg-card-hover); }
.portfolio-token { flex: 1; }
.portfolio-symbol { font-size: 13px; font-weight: 700; font-family: var(--font-mono); }
.portfolio-amount { font-size: 11px; color: var(--text-muted); }
.portfolio-value { text-align: right; }
.portfolio-pnl-val { font-size: 12px; font-weight: 700; font-family: var(--font-mono); }
.portfolio-sell-btn {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--loss);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.portfolio-sell-btn:hover { background: rgba(239,68,68,0.25); }

/* Activity Log */
.activity-panel { margin-top: 16px; }
.activity-log {
    max-height: 180px;
    overflow-y: auto;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.log-entry {
    display: flex;
    gap: 10px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: background var(--transition);
    align-items: center;
}
.log-entry:hover { background: rgba(255,255,255,0.02); }
.log-time { color: var(--text-muted); flex-shrink: 0; font-size: 10px; }
.log-type {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.log-buy { background: rgba(20,241,149,0.15); color: var(--profit); }
.log-sell { background: rgba(239,68,68,0.15); color: var(--loss); }
.log-detect { background: rgba(59,130,246,0.15); color: var(--info); }
.log-warn { background: rgba(245,158,11,0.15); color: var(--warning); }
.log-msg { color: var(--text-secondary); flex: 1; font-size: 11px; }
.btn-small {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* ===== LIVE TRADES ===== */
.live-trades-section { background: var(--bg-secondary); }
.trades-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    max-height: 420px;
    overflow-y: auto;
}
.trade-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all var(--transition);
    animation: slideIn 0.5s ease;
}
.trade-card:hover { border-color: var(--border-accent); transform: translateY(-1px); }
.trade-card.profit-card { border-left: 3px solid var(--profit); }
.trade-card.loss-card { border-left: 3px solid var(--loss); }
.trade-card-icon { font-size: 24px; flex-shrink: 0; }
.trade-card-info { flex: 1; }
.trade-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.trade-card-symbol { font-size: 14px; font-weight: 800; font-family: var(--font-mono); }
.trade-card-change { font-size: 14px; font-weight: 800; font-family: var(--font-mono); }
.trade-card-detail { font-size: 11px; color: var(--text-muted); }
.trade-card-time { font-size: 10px; color: var(--text-muted); text-align: right; }

/* ===== FEATURES ===== */
.features-section { background: var(--bg-secondary); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover { border-color: rgba(20,241,149,0.3); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-card.featured { border-color: rgba(20,241,149,0.4); background: linear-gradient(135deg, rgba(20,241,149,0.05), var(--bg-card)); }
.feature-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.feature-stat {
    display: inline-flex;
    background: var(--accent-glow);
    border: 1px solid rgba(20,241,149,0.2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
}

/* ===== HOW IT WORKS ===== */
.steps-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.step-card {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.step-card:hover { border-color: rgba(20,241,149,0.3); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-number {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
    font-family: var(--font-mono);
    margin-bottom: 12px;
    opacity: 0.7;
}
.step-icon { font-size: 44px; margin-bottom: 16px; display: block; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.step-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.step-arrow {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: var(--border-accent);
    padding: 0 8px;
    flex-shrink: 0;
    align-self: center;
}

/* ===== STATS SECTION ===== */
.stats-section { background: var(--bg-secondary); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto 40px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}
.stat-card:hover { border-color: rgba(20,241,149,0.3); transform: translateY(-2px); }
.stat-card-value {
    font-size: 34px;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.stat-card-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 8px; }
.stat-card-change { font-size: 12px; font-weight: 600; }

/* Chart */
.chart-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.chart-header h3 { font-size: 15px; font-weight: 700; }
.chart-tabs { display: flex; gap: 6px; }
.chart-tab {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.chart-tab.active, .chart-tab:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.chart-container { height: 220px; position: relative; }
#chartCanvas { width: 100% !important; height: 100% !important; }

/* ===== DEXES SECTION ===== */
.dexes-section { }
.dexes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.dex-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
}
.dex-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.dex-card-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.dex-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dex-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.dex-badge {
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dex-badge.active { background: rgba(20,241,149,0.15); color: var(--profit); border: 1px solid rgba(20,241,149,0.3); }
.dex-badge.coming { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }

/* ===== FAQ ===== */
.faq-section { background: var(--bg-secondary); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-item.open { border-color: rgba(20,241,149,0.3); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    gap: 16px;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
    line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 0 20px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; padding-top: 16px; }

/* ===== CTA ===== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 100px 24px;
    overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.glow-cta {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(20,241,149,0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.cta-container { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.cta-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 40px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 32px; }
.cta-social { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.social-link {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); opacity: 1; }
.cta-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; max-width: 320px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}
.footer-social-btn:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text-primary); opacity: 1; }
.footer-links-col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li a { font-size: 13px; color: var(--text-secondary); transition: color var(--transition); }
.footer-links-col ul li a:hover { color: var(--accent); opacity: 1; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-disclaimer { font-size: 11px; color: var(--text-muted); max-width: 700px; line-height: 1.6; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 12px; color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition);
}
.modal-close:hover { border-color: var(--loss); color: var(--loss); }
.modal-body { padding: 24px; }
.modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.wallet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.wallet-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: all var(--transition);
}
.wallet-option-btn:hover { border-color: var(--accent); background: var(--accent-glow); }
.wallet-icon { font-size: 24px; }
.wallet-info { flex: 1; text-align: left; }
.wallet-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wallet-status { font-size: 11px; color: var(--accent); font-weight: 600; }
.wallet-arrow { color: var(--text-muted); font-size: 16px; }
.modal-security { font-size: 11px; color: var(--text-muted); text-align: center; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    max-width: 320px;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.success { border-left: 3px solid var(--profit); }
.toast.error { border-left: 3px solid var(--loss); }
.toast.info { border-left: 3px solid var(--info); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== SELECTED TOKEN INFO ===== */
.selected-token-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sti-avatar { font-size: 24px; }
.sti-details { flex: 1; }
.sti-symbol { font-size: 15px; font-weight: 800; font-family: var(--font-mono); }
.sti-price { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }
.sti-change { font-size: 12px; font-weight: 700; font-family: var(--font-mono); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: 260px 1fr 300px;
    }
}
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .filter-panel { grid-column: 1 / -1; max-height: none; }
    .right-col { grid-column: 2; grid-row: 2; }
    .scanner-panel { grid-row: 2; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .right-col { grid-column: 1; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { flex-direction: column; }
    .hero-stat-divider { width: 100%; height: 1px; }
    .steps-container { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }
}

/* ======================================================
   V2 DASHBOARD STYLES
   ====================================================== */

/* Toggle Component */
.tog { position: relative; display: inline-block; cursor: pointer; }
.tog input { display: none; }
.tog-track {
    display: block;
    width: 40px; height: 22px;
    background: var(--border-accent);
    border-radius: 11px;
    position: relative;
    transition: background .2s;
}
.tog-track::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: left .2s;
}
.tog input:checked ~ .tog-track { background: var(--accent); }
.tog input:checked ~ .tog-track::after { left: 21px; }
.tog.sm .tog-track { width: 32px; height: 18px; }
.tog.sm .tog-track::after { width: 12px; height: 12px; }
.tog.sm input:checked ~ .tog-track::after { left: 17px; }

/* Status Bar */
.v2-statusbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 0;
    margin-bottom: 16px;
    overflow-x: auto;
    flex-wrap: wrap;
}
.v2-sb-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 18px;
    border-right: 1px solid var(--border);
    min-width: max-content;
}
.v2-sb-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.v2-sb-val {
    font-size: 13px;
    font-weight: 600;
}
.v2-sb-val.mono { font-family: var(--font-mono); }
.v2-sb-val.green { color: var(--profit); }
.v2-sb-dot {
    width: 8px; height: 8px;
    background: var(--profit);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
    position: absolute;
    margin-left: -12px;
    margin-top: 5px;
}
.v2-sb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 18px;
    margin-left: auto;
}

/* Dashboard Grid */
.v2-dashboard {
    display: grid;
    grid-template-columns: 258px 1fr 320px;
    gap: 14px;
    align-items: start;
}

/* ===== FILTERS ===== */
.v2-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: sticky;
    top: 76px;
}
.v2-fh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}
.v2-reset-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
}
.v2-reset-btn:hover { border-color: var(--loss); color: var(--loss); }

/* Filter Accordion */
.v2-fs { border-bottom: 1px solid var(--border); }
.v2-fs summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
    list-style: none;
    transition: color .2s;
}
.v2-fs summary::-webkit-details-marker { display: none; }
.v2-fs summary::after {
    content: '›';
    font-size: 14px;
    transform: rotate(90deg);
    transition: transform .2s;
    color: var(--text-muted);
}
.v2-fs[open] summary::after { transform: rotate(-90deg); }
.v2-fs[open] summary { color: var(--text-secondary); }
.v2-fs summary:hover { color: var(--text-primary); }
.v2-fs-body { padding: 4px 14px 12px; }

/* Checkbox rows */
.v2-cb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color .2s;
}
.v2-cb:hover { color: var(--text-primary); }
.v2-cb input { cursor: pointer; accent-color: var(--accent); width: 13px; height: 13px; }
.v2-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.v2-dot.pf { background: #9945FF; }
.v2-dot.ray { background: #14F195; }
.v2-dot.orc { background: #3B82F6; }
.v2-dot.met { background: #F59E0B; }
.v2-live-tag {
    background: rgba(20,241,149,0.15);
    color: var(--profit);
    border: 1px solid rgba(20,241,149,0.3);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 1px;
    animation: pulseBadge 2s infinite;
}

/* Range inputs */
.v2-range-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.v2-rv { color: var(--accent); font-weight: 700; font-family: var(--font-mono); font-size: 11px; }
.v2-range {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: var(--border-accent);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.v2-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow .2s;
}
.v2-range::-webkit-slider-thumb:hover { box-shadow: 0 0 0 4px rgba(20,241,149,0.2); }

/* Toggle rows */
.v2-tog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v2-tog-row:last-child { border-bottom: none; }
.v2-tog-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.v2-tog-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.v2-score-input {
    width: 52px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color .2s;
}
.v2-score-input:focus { border-color: var(--accent); }

/* Fields */
.v2-field { margin-bottom: 10px; }
.v2-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}
.v2-finp {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .2s;
}
.v2-finp:focus-within { border-color: var(--accent); }
.v2-finp input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 7px 10px;
    font-size: 13px;
    font-family: var(--font-mono);
}
.v2-finp span {
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
    border-left: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Slippage */
.v2-slips { display: flex; gap: 5px; flex-wrap: wrap; }
.v2-slip {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
}
.v2-slip.active, .v2-slip:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.v2-slip-custom {
    width: 52px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    padding: 5px 8px;
    font-size: 11px;
    outline: none;
    font-family: var(--font-mono);
}
.v2-slip-custom:focus { border-color: var(--accent); }

/* Multi-target TP */
.v2-mtp { margin-top: 10px; }
.v2-mtp-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.v2-mtp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.v2-mtp-row input {
    width: 52px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 3px 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    outline: none;
}

/* Filter actions */
.v2-factions { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.v2-btn-save {
    width: 100%;
    background: var(--accent-glow);
    border: 1px solid rgba(20,241,149,0.3);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.v2-btn-save:hover { background: rgba(20,241,149,0.2); }
.v2-btn-load {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.v2-btn-load:hover { border-color: var(--accent); color: var(--text-primary); }

/* ===== SCANNER ===== */
.v2-scanner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* KOTH Banner */
.v2-koth {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(153,69,255,0.12), rgba(20,241,149,0.08));
    border-bottom: 1px solid rgba(153,69,255,0.3);
}
.v2-koth-label {
    font-size: 11px;
    font-weight: 800;
    color: #9945FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.v2-koth-info { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }

/* Scanner Header */
.v2-sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.v2-sc-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.v2-sct {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.v2-sct.active, .v2-sct:hover { background: var(--accent-glow); border-color: rgba(20,241,149,0.4); color: var(--accent); }
.v2-tab-cnt {
    display: inline-flex;
    background: rgba(20,241,149,0.2);
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 2px;
}
.v2-sc-ctrl { display: flex; align-items: center; gap: 6px; }
.v2-search {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    width: 200px;
    transition: border-color .2s;
}
.v2-search:focus { border-color: var(--accent); }
.v2-sort {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.v2-sc-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 30px; height: 30px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.v2-sc-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Column Headers */
.v2-cols {
    display: grid;
    grid-template-columns: minmax(160px,2fr) 68px 92px 78px 90px 60px 54px 84px;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.v2-cols > div {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.vc-mcap, .vc-change, .vc-liq { text-align: right; }
.vc-score, .vc-action { text-align: center; }

/* Token List */
.v2-token-list {
    overflow-y: auto;
    min-height: 400px;
    max-height: 620px;
}

/* Token Row */
.v2-tr {
    display: grid;
    grid-template-columns: minmax(160px,2fr) 68px 92px 78px 90px 60px 54px 84px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.v2-tr:hover { background: var(--bg-card-hover); }
.v2-tr.selected { background: rgba(20,241,149,0.04); border-left: 2px solid var(--accent); }
.v2-tr.koth-row { background: rgba(153,69,255,0.06); border-left: 2px solid #9945FF; }
.v2-tr.new-flash { animation: newFlash .8s ease; }
@keyframes newFlash {
    0% { background: rgba(20,241,149,0.14); }
    100% { background: transparent; }
}

/* Token cell */
.v2-tr-token { display: flex; align-items: center; gap: 9px; min-width: 0; }
.v2-tr-img-wrap {
    width: 34px; height: 34px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}
.v2-tr-img { width: 100%; height: 100%; object-fit: cover; }
.v2-tr-img-fb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.v2-tr-names { min-width: 0; flex: 1; }
.v2-tr-symbol {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-tr-name {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-tr-tags { display: flex; gap: 3px; margin-top: 2px; flex-wrap: wrap; }
.v2-tag {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.v2-tag.new { background: rgba(20,241,149,0.15); color: var(--profit); border: 1px solid rgba(20,241,149,0.3); }
.v2-tag.grad { background: rgba(59,130,246,0.15); color: #3B82F6; border: 1px solid rgba(59,130,246,0.3); }
.v2-tag.hot { background: rgba(249,115,22,0.15); color: #F97316; border: 1px solid rgba(249,115,22,0.3); }
.v2-tag.tw { background: rgba(29,161,242,0.15); color: #1DA1F2; border: 1px solid rgba(29,161,242,0.3); }
.v2-tag.tg { background: rgba(38,159,243,0.15); color: #269FF3; border: 1px solid rgba(38,159,243,0.3); }

/* DEX pill */
.dex-pill {
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dex-pill.pf { background: rgba(153,69,255,0.15); color: #9945FF; border: 1px solid rgba(153,69,255,0.3); }
.dex-pill.ray { background: rgba(20,241,149,0.12); color: var(--profit); border: 1px solid rgba(20,241,149,0.25); }
.dex-pill.orc { background: rgba(59,130,246,0.12); color: #3B82F6; border: 1px solid rgba(59,130,246,0.25); }
.dex-pill.met { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }

/* Value cells */
.v2-tr-mcap, .v2-tr-change, .v2-tr-liq { text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.v2-tr-age { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: center; }
.v2-tr-score { text-align: center; }
.v2-tr-actions { display: flex; align-items: center; justify-content: center; gap: 4px; }
.green { color: var(--profit); }
.red { color: var(--loss); }
.white { color: var(--text-primary); }
.mono { font-family: var(--font-mono); }

/* Score Badge */
.v2-score {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 900;
    font-family: var(--font-mono);
    margin: 0 auto;
}
.v2-score.hi { background: rgba(20,241,149,0.15); color: var(--profit); border: 1px solid rgba(20,241,149,0.3); }
.v2-score.md { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.v2-score.lo { background: rgba(239,68,68,0.15); color: var(--loss); border: 1px solid rgba(239,68,68,0.3); }

/* Action Buttons */
.v2-snipe-sm {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}
.v2-snipe-sm:hover { background: var(--accent-dark); transform: scale(1.05); }
.v2-watch-sm {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    width: 26px; height: 26px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.v2-watch-sm.active, .v2-watch-sm:hover { border-color: var(--warning); color: var(--warning); }

/* Loading State */
.v2-loading {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.v2-loading p { margin-bottom: 6px; color: var(--text-secondary); }
.v2-loading-sub { font-size: 11px; }
.v2-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.v2-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.7; }

/* Scanner Footer */
.v2-sc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.01);
    flex-wrap: wrap;
    gap: 4px;
}
.v2-src-badge {
    color: var(--profit);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* ===== RIGHT PANEL ===== */
.v2-right {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 76px;
}

/* Selected Token */
.v2-selected {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    min-height: 56px;
    display: flex;
    align-items: center;
}
.v2-sel-empty { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.v2-sel-info { display: flex; align-items: center; gap: 10px; width: 100%; }
.v2-sel-avatar { font-size: 28px; flex-shrink: 0; }
.v2-sel-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.v2-sel-details { flex: 1; min-width: 0; }
.v2-sel-symbol { font-size: 15px; font-weight: 800; font-family: var(--font-mono); color: var(--text-primary); }
.v2-sel-price { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); }
.v2-sel-name { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sel-change { font-size: 13px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; }

/* Right Tabs */
.v2-rtabs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-bottom: 1px solid var(--border);
}
.v2-rpt {
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 9px 4px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-right: 1px solid var(--border);
    transition: all .2s;
    white-space: nowrap;
}
.v2-rpt:last-child { border-right: none; }
.v2-rpt.active { color: var(--accent); background: rgba(20,241,149,0.04); }
.v2-rpt:hover { color: var(--text-primary); background: var(--bg-card-hover); }

/* Right Tab Content */
.v2-rtab { padding: 14px; overflow-y: auto; max-height: 520px; }
.v2-rtab.hidden { display: none; }

/* Trade Form */
.v2-tt-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-secondary);
    border-radius: 7px;
    padding: 3px;
    margin-bottom: 12px;
}
.v2-tt {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 7px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: 0.5px;
}
.v2-tt#ttBuy.active { background: var(--profit); color: #000; }
.v2-tt#ttSell.active { background: var(--loss); color: #fff; }

.v2-quick { display: flex; gap: 4px; margin-bottom: 10px; }
.v2-qa {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 3px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-mono);
    white-space: nowrap;
}
.v2-qa:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.v2-tinfo { margin-bottom: 12px; }
.v2-ti-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 12px;
    color: var(--text-muted);
}
.v2-ti-row.total { border-bottom: none; padding-top: 8px; }
.v2-ti-row.total span:first-child { color: var(--text-secondary); font-weight: 600; }
.v2-ti-sep { height: 1px; background: var(--border); margin: 4px 0; }

.v2-snipe-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
    font-size: 15px;
    font-weight: 900;
    padding: 13px;
    border-radius: 9px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.v2-snipe-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,241,149,0.3); }
.v2-trade-note { font-size: 10px; color: var(--text-muted); text-align: center; }

.v2-spcts { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 12px; }
.v2-sp {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 7px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
}
.v2-sp.active, .v2-sp:hover { background: rgba(239,68,68,0.1); border-color: var(--loss); color: var(--loss); }
.v2-sell-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--loss), #DC2626);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    padding: 13px;
    border-radius: 9px;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.v2-sell-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,0.3); }

/* Wallet */
.v2-wallet-dc { padding: 8px 0; text-align: center; }
.v2-wdc-icon { font-size: 36px; margin-bottom: 10px; }
.v2-wallet-dc p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.v2-wbtns { display: flex; flex-direction: column; gap: 7px; }
.v2-wbtn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
}
.v2-wbtn:hover { border-color: var(--accent); background: var(--accent-glow); }

/* Positions */
.v2-pos-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}
.v2-pnl { font-family: var(--font-mono); font-size: 13px; font-weight: 800; }
.v2-pos-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v2-pos-token { flex: 1; min-width: 0; }
.v2-pos-sym { font-size: 12px; font-weight: 800; font-family: var(--font-mono); }
.v2-pos-amt { font-size: 10px; color: var(--text-muted); }
.v2-pos-pnl { text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.v2-pos-pct { font-size: 10px; color: var(--text-muted); }
.v2-pos-sell {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--loss);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}
.v2-pos-sell:hover { background: rgba(239,68,68,0.25); }

/* Log */
.v2-log-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}
.v2-clear-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
}
.v2-clear-btn:hover { border-color: var(--loss); color: var(--loss); }
.v2-activity-log { display: flex; flex-direction: column; gap: 2px; }
.v2-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 11px;
}
.v2-log-entry:hover { background: rgba(255,255,255,0.02); }
.v2-log-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); flex-shrink: 0; padding-top: 1px; }
.v2-log-type {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.v2-ltype-buy { background: rgba(20,241,149,0.15); color: var(--profit); }
.v2-ltype-sell { background: rgba(239,68,68,0.15); color: var(--loss); }
.v2-ltype-detect { background: rgba(59,130,246,0.15); color: #3B82F6; }
.v2-ltype-warn { background: rgba(245,158,11,0.15); color: var(--warning); }
.v2-log-msg { color: var(--text-secondary); flex: 1; line-height: 1.5; }

/* Responsive V2 */
@media (max-width: 1280px) {
    .v2-dashboard { grid-template-columns: 240px 1fr 300px; }
    .v2-cols,
    .v2-tr { grid-template-columns: minmax(140px,2fr) 62px 88px 72px 82px 56px 50px 80px; }
}
@media (max-width: 1080px) {
    .v2-dashboard { grid-template-columns: 1fr 310px; }
    .v2-filters { position: static; grid-column: 1 / -1; max-height: none; overflow: visible; }
    .v2-scanner { grid-column: 1; }
    .v2-right { grid-column: 2; grid-row: 2; }
}
@media (max-width: 768px) {
    .v2-dashboard { grid-template-columns: 1fr; }
    .v2-right { position: static; }
    .v2-statusbar { gap: 8px; }
    .v2-cols { display: none; }
    .v2-tr { grid-template-columns: 1fr auto; gap: 8px; }
    .v2-tr-dex, .v2-tr-liq, .v2-tr-age, .v2-tr-score { display: none; }
    .v2-search { width: 140px; }
}

/* ============================================================
   BOT v3 — New Dashboard Styles
   ============================================================ */

.bot-section.v3 { padding: 60px 0; }
.bot-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.bot-config-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.bc-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.bc-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tpl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tpl-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.tpl-card:hover { border-color: var(--text-muted); }
.tpl-card.active { border-color: var(--accent); background: var(--accent-glow); }
.tpl-card.active::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 10px 10px 0;
}

.tpl-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.tpl-badge.danger  { background: rgba(239,68,68,.15); color: #EF4444; }
.tpl-badge.warning { background: rgba(245,158,11,.15); color: #F59E0B; }
.tpl-badge.info    { background: rgba(59,130,246,.15); color: #60A5FA; }
.tpl-badge.safe    { background: rgba(20,241,149,.15); color: var(--accent); }

.tpl-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.tpl-stats { font-size: 10px; font-family: var(--font-mono); color: var(--accent); margin-bottom: 4px; }
.tpl-desc  { font-size: 10px; color: var(--text-muted); line-height: 1.4; }

.bc-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bc-plat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all .2s;
    user-select: none;
}
.bc-plat:hover { border-color: var(--text-muted); color: var(--text-primary); }
.bc-plat input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }

.plat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.plat-dot.pf  { background: #e879f9; }
.plat-dot.ray { background: #fb923c; }
.plat-dot.met { background: #38bdf8; }
.plat-dot.orc { background: #4ade80; }

.pk-wrap { display: flex; flex-direction: column; gap: 8px; }
.pk-input-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: border-color .2s;
}
.pk-input-row:focus-within { border-color: var(--accent); }
.pk-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 10px 12px;
    min-width: 0;
}
.pk-toggle {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0 12px;
    cursor: pointer;
    font-size: 14px;
    transition: color .2s;
    min-height: 40px;
}
.pk-toggle:hover { color: var(--text-primary); }
.pk-notice { margin: 6px 0 0; font-size: 11px; color: #c9a227; opacity: .85; }
.pk-warn {
    font-size: 10.5px;
    color: #F59E0B;
    line-height: 1.5;
    padding: 7px 10px;
    background: rgba(245,158,11,.07);
    border: 1px solid rgba(245,158,11,.2);
    border-radius: 6px;
}

.bot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bg-field { display: flex; flex-direction: column; gap: 5px; }
.bg-field label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
}
.bg-inp {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
    transition: border-color .2s;
}
.bg-inp:focus-within { border-color: var(--accent); }
.bg-inp input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 9px;
    min-width: 0;
}
.bg-inp input::-webkit-outer-spin-button,
.bg-inp input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bg-inp span { font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 0 8px 0 0; flex-shrink: 0; }

.bc-safety-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}
.bc-tog {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    user-select: none;
    transition: all .2s;
}
.bc-tog:hover { color: var(--text-primary); }
.bc-tog input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

.bc-mtp { display: flex; flex-direction: column; gap: 8px; }
.mtp-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.mtp-pct { font-family: var(--font-mono); font-weight: 700; color: var(--accent); width: 32px; flex-shrink: 0; }
.mtp-label { color: var(--text-muted); font-size: 11px; flex-shrink: 0; }
.mtp-inp {
    width: 70px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    outline: none;
    transition: border-color .2s;
}
.mtp-inp:focus { border-color: var(--accent); }
.mtp-inp::-webkit-outer-spin-button,
.mtp-inp::-webkit-inner-spin-button { -webkit-appearance: none; }

.bc-actions { display: flex; gap: 8px; padding: 12px 20px 0; }
.bc-btn-save, .bc-btn-load {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s;
}
.bc-btn-save:hover, .bc-btn-load:hover { border-color: var(--accent); color: var(--accent); }

.start-bot-btn {
    margin: 16px 20px 20px;
    background: linear-gradient(135deg, #14F195, #09E07A);
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #050A0E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .25s;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(20,241,149,.2);
}
.start-bot-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(20,241,149,.35); }
.start-bot-btn.running {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 20px rgba(239,68,68,.25);
    color: #fff;
}
.start-bot-btn.running:hover { box-shadow: 0 8px 30px rgba(239,68,68,.4); }
.sbb-icon { font-size: 20px; }
.start-bot-note { text-align: center; font-size: 11px; color: var(--text-muted); padding: 0 20px 16px; margin: 0; }

.bot-feed-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    min-height: 600px;
}

.bfp-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.bfp-status-row { display: flex; align-items: center; gap: 10px; }
.bfp-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
    transition: all .3s;
}
.bfp-dot.active  { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse-dot 1.5s infinite; }
.bfp-dot.stopped { background: #EF4444; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(1.3); }
}
.bfp-status-text {
    font-size: 13px; font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .3s;
}
.bfp-status-text.active { color: var(--accent); }
.bfp-template-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .3s;
}
.bfp-uptime-row { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.bfp-uptime-label { color: var(--text-muted); }
.bfp-uptime { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-secondary); }

.bfp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bfp-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px;
    text-align: center;
}
.bfp-stat-val {
    font-size: 22px; font-weight: 900;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
    transition: all .3s;
}
.bfp-stat-val.accent { color: var(--accent); }
.bfp-stat-val.red    { color: #EF4444; }
.bfp-stat-val.green  { color: var(--profit); }
.bfp-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }

.bfp-log-wrap { flex: 1; display: flex; flex-direction: column; min-height: 260px; }
.bfp-log-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.bfp-log-badge {
    font-size: 9px; font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .8px;
    transition: all .3s;
}
.bfp-log-badge.active { background: rgba(20,241,149,.1); border-color: var(--accent); color: var(--accent); }
.bfp-log {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    padding: 10px;
    overflow-y: auto;
    min-height: 220px;
    max-height: 320px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.bfp-log-entry {
    padding: 2px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,.03);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.bfp-log-entry:last-child { border-bottom: none; }
.bfp-log-time { color: var(--text-muted); flex-shrink: 0; font-size: 10px; padding-top: 1px; }
.bfp-log-msg { word-break: break-word; }
.bfp-log-entry.detect { color: #60A5FA; }
.bfp-log-entry.skip   { color: var(--text-muted); }
.bfp-log-entry.rpc    { color: rgba(148,163,184,.45); font-size: 10.5px; }
.bfp-log-entry.opp    { color: var(--accent); font-weight: 600; }

.bfp-idle-msg {
    height: 100%; min-height: 180px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--text-muted); font-family: var(--font-body); gap: 4px;
}
.bfp-idle-icon { font-size: 36px; margin-bottom: 8px; }
.bfp-idle-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bfp-idle-sub  { font-size: 11px; }

.bfp-dex-bars { display: flex; flex-direction: column; gap: 10px; }
.bfp-dex-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.bfp-dex-bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; }
.bfp-dex-name { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.bfp-bar-track { height: 5px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.bfp-bar-fill  { height: 100%; border-radius: 3px; transition: width .8s ease; }
.bfp-bar-fill.pf  { background: #e879f9; }
.bfp-bar-fill.ray { background: #fb923c; }
.bfp-bar-fill.met { background: #38bdf8; }
.bfp-bar-fill.orc { background: #4ade80; }
.bfp-dex-pct { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); text-align: right; font-weight: 600; }

.bfp-rpc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.bfp-rpc-item { display: flex; flex-direction: column; gap: 3px; }
.bfp-rpc-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.bfp-rpc-val { font-size: 11px; font-weight: 600; color: var(--text-secondary); font-family: var(--font-mono); }
.bfp-rpc-val.green { color: var(--profit); }

/* ── Bot section font improvements ─────────────────────────── */
.bot-config-panel .bc-section-title {
    font-size: 10.5px;
    letter-spacing: 1.4px;
}
.bot-config-panel .bg-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    color: var(--text-muted);
}
.bot-config-panel .bg-inp input {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.bot-config-panel .bg-inp span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    padding: 0 10px 0 0;
}
.bot-config-panel .tpl-name {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.2px;
}
.bot-config-panel .tpl-stats {
    font-size: 11px;
    font-weight: 700;
}
.bot-config-panel .tpl-desc {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
}
.bot-config-panel .bc-plat {
    font-size: 12.5px;
    font-weight: 700;
}
.bot-config-panel .pk-input {
    font-size: 14px;
    letter-spacing: 3px;
}
.bfp-stat-label {
    font-size: 10.5px;
    letter-spacing: .5px;
}
.bfp-dex-name {
    font-size: 12px;
    font-weight: 700;
}
.bfp-log {
    font-size: 12px;
    line-height: 1.65;
}
.bfp-log-time {
    font-size: 10.5px;
}
.bfp-status-text {
    font-size: 14px;
}

/* ── Private key masking (type=text with CSS dots) ──────────── */
.pk-input {
    -webkit-text-security: disc;
    text-security: disc;
}
.pk-input.show-key {
    -webkit-text-security: none;
    text-security: none;
    letter-spacing: .5px;
}

/* ── Responsive: bot-grid & panel ───────────────────────────── */
@media (max-width: 1100px) {
    .bot-layout { grid-template-columns: 1fr; }
    .bfp-stats  { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    .bot-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
    .bc-section { padding: 14px 16px; }
}
@media (max-width: 640px) {
    .tpl-grid  { grid-template-columns: 1fr 1fr; }
    .bfp-stats { grid-template-columns: 1fr 1fr; }
    .bfp-rpc   { grid-template-columns: 1fr 1fr; }
    .bot-grid  { grid-template-columns: 1fr; }
    .bc-safety-row { grid-template-columns: 1fr 1fr; }
    .bc-section { padding: 12px 14px; }
    .start-bot-btn { margin: 14px 14px 16px; }
    .bfp-dex-bar { grid-template-columns: 88px 1fr 34px; }
}
@media (max-width: 420px) {
    .tpl-grid { grid-template-columns: 1fr 1fr; }
    .bot-grid { grid-template-columns: 1fr; }
}

/* ── Trust bar ──────────────────────────────────────────────── */
.trust-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
}
.trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 28px;
}
.trust-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.trust-item strong { color: var(--text-secondary); }

/* ── Footer company / office ────────────────────────────────── */
.footer-company {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-company-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.footer-company-line {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.footer-company-line span { color: var(--text-secondary); }
.footer-company-line a { color: var(--accent); text-decoration: none; }
.footer-company-line a:hover { text-decoration: underline; }
.footer-hours {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== APP PAGE LAYOUT ===== */
.page-app .bot-section.bot-page {
    min-height: calc(100vh - 60px);
    padding: 40px 20px 60px;
}
.page-app .bot-section.bot-page .section-header {
    margin-bottom: 28px;
}
.navbar-app {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== BOT PANEL — RESPONSIVE & READABILITY FIX ===== */
.bot-config-panel {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Two-column field grid — critical overflow fix */
.bot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.bg-field {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bg-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-inp {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
    transition: border-color .2s;
    height: 38px;
}

.bg-inp:focus-within {
    border-color: var(--accent);
}

.bg-inp input {
    flex: 1;
    min-width: 0;
    width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    padding: 0 6px 0 10px;
    outline: none;
    -moz-appearance: textfield;
}

.bg-inp input::-webkit-outer-spin-button,
.bg-inp input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bg-inp span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 9px 0 4px;
    letter-spacing: 0.4px;
}

.bc-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-safety-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.bc-tog {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-tog:hover { border-color: var(--accent); color: var(--text-primary); }
.bc-tog input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px; height: 14px;
    flex-shrink: 0; cursor: pointer;
}

.bc-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bc-plat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    user-select: none;
    white-space: nowrap;
}

.bc-plat:hover { border-color: var(--accent); color: var(--text-primary); }
.bc-plat input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px; height: 14px;
    flex-shrink: 0; cursor: pointer;
}

/* ===== PLATFORM LOGOS ===== */
.dex-logo-wrap {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--bg-primary);
    padding: 6px;
}
.dex-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.plat-logo {
    width: 16px; height: 16px;
    object-fit: contain; border-radius: 3px;
    vertical-align: middle; flex-shrink: 0;
}

.bar-logo {
    width: 14px; height: 14px;
    object-fit: contain; border-radius: 3px;
    vertical-align: middle; flex-shrink: 0;
}

.bfp-bar-fill.bonk { background: linear-gradient(90deg, #FF6B35, #FF9500); }
.bfp-bar-fill.jup  { background: linear-gradient(90deg, #C7F284, #7EE787); }
.bfp-bar-fill.dex  { background: linear-gradient(90deg, #2172E5, #4E9DFF); }

/* Bot layout on app page */
.bot-page .bot-layout { max-width: 1400px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .bot-layout { grid-template-columns: 360px 1fr; }
}
@media (max-width: 860px) {
    .bot-layout { grid-template-columns: 1fr; }
    .bot-grid { grid-template-columns: 1fr 1fr; }
    .bc-safety-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .bot-grid { grid-template-columns: 1fr; }
    .bc-safety-row { grid-template-columns: 1fr; }
    .bc-platforms { grid-template-columns: 1fr; }
}

/* ===== PRIVATE KEY INPUT — PLACEHOLDER FIX ===== */
.pk-input {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}
.pk-input::placeholder {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 1;
}
/* Only add mono/spacing when showing actual key text */
.pk-input.show-key {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    font-size: 11px;
}

/* ===== STRATEGY TEMPLATE CARDS — REDESIGN ===== */
.tpl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tpl-card {
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .12s;
    position: relative;
    overflow: hidden;
}

/* Left accent bar by risk level */
.tpl-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    background: var(--border);
    transition: background .18s;
}
.tpl-card[data-tpl="aggressive"]::before  { background: #EF4444; }
.tpl-card[data-tpl="balanced"]::before    { background: #F59E0B; }
.tpl-card[data-tpl="conservative"]::before { background: #3B82F6; }
.tpl-card[data-tpl="safe"]::before        { background: #14F195; }

.tpl-card:hover {
    border-color: var(--accent);
    background: rgba(20,241,149,.04);
    transform: translateY(-1px);
}

.tpl-card.active {
    border-color: var(--accent);
    background: rgba(20,241,149,.07);
}

.tpl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tpl-icon {
    font-size: 18px;
    line-height: 1;
}

.tpl-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-block;
}
.tpl-badge.danger  { background: rgba(239,68,68,.18);  color: #F87171; }
.tpl-badge.warning { background: rgba(245,158,11,.18); color: #FCD34D; }
.tpl-badge.info    { background: rgba(59,130,246,.18); color: #93C5FD; }
.tpl-badge.safe    { background: rgba(20,241,149,.15); color: #14F195; }

.tpl-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 7px;
    line-height: 1.2;
}

.tpl-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 7px;
}

.tpl-stat-tp,
.tpl-stat-sl {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.tpl-stat-tp strong { color: #14F195; font-weight: 700; }
.tpl-stat-sl strong { color: #F87171; font-weight: 700; }

.tpl-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
}

/* ===== HERO FEE NOTE ===== */
.hero-fee-note {
    display: inline-block;
    background: rgba(20,241,149,.1);
    border: 1px solid rgba(20,241,149,.25);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
    max-width: 600px;
}
.hero-fee-note strong { color: #14F195; }

/* ===== DEX BAR ROW HIDE ===== */
.bfp-dex-bar.hidden { display: none; }

/* ===== PLATFORM LOGOS ===== */
/* DEX cards */
.dex-logo-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--bg-primary);
    padding: 6px;
}
.dex-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Bot panel platform checkboxes */
.plat-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 2px;
}

/* DEX activity bar logos */
.bar-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Bar fill colors for new platforms */
.bfp-bar-fill.bonk { background: linear-gradient(90deg, #FF6B35, #FF9500); }
.bfp-bar-fill.jup  { background: linear-gradient(90deg, #C7F284, #7EE787); }
.bfp-bar-fill.dex  { background: linear-gradient(90deg, #2172E5, #4E9DFF); }

/* =================================================================
   SOLSNIPER — COMPREHENSIVE OVERHAUL
   Background · Nav · Mobile · Tablet · Desktop · SEO Polish
   ================================================================= */

/* ── 1. Background: dot matrix (blockchain node pattern) ── */
.grid-overlay {
    background-image:
        radial-gradient(rgba(20,241,149,0.09) 1.5px, transparent 1.5px),
        radial-gradient(rgba(153,69,255,0.05) 1px, transparent 1px) !important;
    background-size: 38px 38px, 76px 76px !important;
    background-position: 0 0, 19px 19px !important;
}

/* ── 2. Nav links: center ── */
.nav-links { justify-content: center; }
.nav-icon {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1;
    display: inline-block;
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon { opacity: 1; }

/* ── 3. Logo SVG alignment ── */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── 4. Mobile hamburger transitions ── */
.mobile-menu-btn span { transition: transform 0.25s ease, opacity 0.2s ease; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 5. Mobile nav dropdown ── */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; margin-left: 12px; }
    .nav-container { position: relative; gap: 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(8,11,17,0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        border-top: 1px solid rgba(20,241,149,0.2);
        padding: 8px 12px 20px;
        gap: 0;
        z-index: 999;
        box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    }
    .nav-links.open { display: flex !important; }
    .nav-links li { width: 100%; }
    .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 500;
        width: 100%;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid rgba(255,255,255,0.04);
        color: var(--text-secondary);
    }
    .nav-links li:last-child .nav-link { border-bottom: none; }
    .nav-link:hover { background: var(--bg-card); color: var(--text-primary); }
    .nav-actions { margin-left: auto; gap: 8px; }
    .nav-status { display: none !important; }
    .btn-connect { font-size: 12px; padding: 7px 14px; }
    .ticker-bar { display: none; }
}

/* ── 6. Mobile Hero ── */
@media (max-width: 768px) {
    .hero { padding: 56px 20px 72px; min-height: auto; }
    .hero-title { font-size: clamp(30px, 8.5vw, 48px); letter-spacing: -1px; line-height: 1.1; }
    .hero-subtitle { font-size: 15px; margin-bottom: 20px; }
    .hero-fee-note { font-size: 12px; padding: 10px 14px; margin-bottom: 20px; }
    .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 20px; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 32px; }
    .btn-large { padding: 13px 20px; font-size: 14px; justify-content: center; }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: var(--radius);
        padding: 0;
        gap: 0;
    }
    .hero-stat {
        padding: 16px 12px;
        flex: none;
        min-width: 0;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .hero-stat:nth-child(2n) { border-right: none; }
    .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
    .hero-stat-divider { display: none; }
    .hero-stat .stat-value { font-size: 20px; }
    .hero-stat .stat-label { font-size: 11px; }
    .hero-scroll { display: none; }
    .glow-1 { width: 280px; height: 280px; }
    .glow-2 { width: 220px; height: 220px; }
}

/* ── 7. Mobile Sections ── */
@media (max-width: 768px) {
    section { padding: 48px 16px; }
    .section-title { font-size: clamp(22px, 5.5vw, 30px); letter-spacing: -0.5px; }
    .section-subtitle { font-size: 14px; }
    .section-header { margin-bottom: 28px; }
}

/* ── 8. Features grid mobile ── */
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; gap: 10px; }
    .feature-card { padding: 18px 16px; }
    .feature-card.featured { grid-column: 1; }
}

/* ── 9. How It Works mobile ── */
@media (max-width: 768px) {
    .steps-container { flex-direction: column; align-items: center; gap: 0; }
    .step-card { width: 100%; max-width: 100%; text-align: center; }
    .step-arrow {
        transform: rotate(90deg);
        text-align: center;
        font-size: 24px;
        padding: 4px 0;
        color: var(--accent);
    }
}

/* ── 10. Stats mobile ── */
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card-value { font-size: 22px; }
    .chart-container { height: 160px; }
    .chart-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ── 11. Trust bar mobile ── */
@media (max-width: 768px) {
    .trust-bar { padding: 12px 16px; }
    .trust-bar-inner { flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
    .trust-item { font-size: 11px; }
}

/* ── 12. DEXes grid mobile ── */
@media (max-width: 600px) {
    .dexes-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dex-card { padding: 14px 10px; }
    .dex-card h3 { font-size: 14px; }
    .dex-card p { font-size: 12px; }
}

/* ── 13. FAQ mobile ── */
@media (max-width: 768px) {
    .faq-question { font-size: 14px; padding: 14px 16px; }
    .faq-answer p { font-size: 13px; padding: 0 16px 16px; }
}

/* ── 14. CTA mobile ── */
@media (max-width: 768px) {
    .cta-section { padding: 64px 16px; }
    .cta-title { font-size: clamp(22px, 6vw, 34px); }
    .cta-subtitle { font-size: 14px; }
    .cta-trust { flex-direction: column; align-items: center; gap: 8px; }
    .cta-trust span { font-size: 12px; }
}

/* ── 15. Footer mobile ── */
@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr !important; gap: 28px !important; }
    .footer-brand { max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .footer-legal { justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
    .footer-company-line { font-size: 13px; }
    .footer-desc { font-size: 13px; }
}

/* ── 16. Bot dashboard mobile ── */
@media (max-width: 768px) {
    .bot-section { padding: 32px 12px; }
    .bot-layout { grid-template-columns: 1fr !important; }
    .bc-section-title { font-size: 13px; }
    .tpl-grid { grid-template-columns: 1fr 1fr; }
    .bc-platforms { grid-template-columns: 1fr 1fr !important; }
    .bot-grid { grid-template-columns: 1fr 1fr; }
    .bfp-stats { grid-template-columns: 1fr 1fr; }
    .bfp-rpc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .bot-grid { grid-template-columns: 1fr; }
    .bc-safety-row { grid-template-columns: 1fr 1fr !important; }
    .bfp-stats { grid-template-columns: 1fr 1fr; }
}

/* ── 17. Tablet improvements (769–1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title { font-size: clamp(38px, 5vw, 62px); }
    .hero-stat { padding: 8px 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.featured { grid-column: 1 / -1; }
    .steps-container { gap: 12px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr !important; }
    .bot-layout { grid-template-columns: 340px 1fr; }
}

/* ── 18. Desktop container max-width ── */
@media (min-width: 1440px) {
    .hero-container { max-width: 1000px; }
    .nav-container { max-width: 1600px; }
}

/* ── 19. Accessibility & focus ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── 20. Touch-friendly tap targets ── */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-connect { min-height: 44px; }
    .faq-question { min-height: 48px; }
    .bc-plat, .bc-tog { min-height: 40px; }
    .tpl-card { padding: 14px 12px; }
}

/* ── 21. Print styles ── */
@media print {
    .ticker-bar, .navbar, .mobile-menu-btn { display: none; }
    body { background: #fff; color: #000; }
}

/* =================================================================
   PATCH 2 — Version badge · Launch Bot redesign · DEX card · Mobile gap
   ================================================================= */

/* ── Version badge (replaces BETA) ── */
.logo-version {
    background: rgba(20,241,149,0.08);
    color: var(--text-muted);
    border: 1px solid rgba(20,241,149,0.2);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    font-family: var(--font-mono);
}

/* ── Launch Bot button — modern redesign ── */
.btn-connect {
    background: linear-gradient(135deg, #14F195 0%, #0FD982 100%);
    color: #030A06;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 100px;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(20,241,149,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.btn-connect::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}
.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(20,241,149,0.45), 0 6px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #1AFFA0 0%, #14F195 100%);
    color: #030A06;
    opacity: 1;
}
.btn-connect:active { transform: translateY(0); box-shadow: 0 0 12px rgba(20,241,149,0.3); }

/* Mobile size */
@media (max-width: 768px) {
    .btn-connect { font-size: 12px; padding: 8px 16px; }
}

/* ── Mobile hero CTA gap fix ── */
@media (max-width: 768px) {
    .hero-cta { margin-bottom: 24px; }
    .hero-fee-note { margin-bottom: 18px; }
    /* Remove any extra space after nav btn-connect */
    .nav-actions { align-items: center; }
}

/* ── DEX card — expanded content ── */
.dex-card {
    display: flex;
    flex-direction: column;
}
.dex-card p {
    flex: 1;
    line-height: 1.65;
}
.dex-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0 12px;
}
.dex-features span {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(20,241,149,0.08);
    border: 1px solid rgba(20,241,149,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

/* Mobile dex card adjustments */
@media (max-width: 600px) {
    .dex-card p { font-size: 12px; line-height: 1.6; }
    .dex-features { gap: 4px; }
    .dex-features span { font-size: 9px; padding: 2px 6px; }
}

/* =================================================================
   PATCH 3 — v1.0 badge fix · btn-connect redesign · mobile height fix
   ================================================================= */

/* ── v1.0 badge: readable, bright ── */
.logo-version {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1px solid rgba(20,241,149,0.35) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    letter-spacing: 0.8px !important;
    font-family: var(--font-mono) !important;
    opacity: 0.8;
}

/* ── Remove min-height override from navbar btn-connect ── */
@media (max-width: 768px) {
    /* Only hero CTAs get min-height, not navbar button */
    .btn-primary, .btn-secondary { min-height: 44px; }
    .btn-connect { min-height: unset !important; height: auto !important; }
}

/* ── Launch Bot: clean modern redesign ── */
.btn-connect {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 100px !important;
    border: 1.5px solid var(--accent) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 0 12px rgba(20,241,149,0.15) !important;
}
.btn-connect::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(20,241,149,0) !important;
    transition: background 0.2s ease !important;
    border-radius: inherit !important;
    pointer-events: none !important;
}
.btn-connect:hover {
    background: var(--accent) !important;
    color: #030A06 !important;
    box-shadow: 0 0 24px rgba(20,241,149,0.4), 0 4px 16px rgba(0,0,0,0.25) !important;
    transform: translateY(-1px) !important;
    opacity: 1 !important;
}
.btn-connect:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 10px rgba(20,241,149,0.25) !important;
}

@media (max-width: 768px) {
    .btn-connect {
        font-size: 11px !important;
        padding: 7px 14px !important;
    }
}

/* ── btn-connect subtle pulse animation ── */
@keyframes btnConnectPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(20,241,149,0.15); }
    50%       { box-shadow: 0 0 20px rgba(20,241,149,0.30); }
}
.btn-connect {
    animation: btnConnectPulse 3s ease-in-out infinite !important;
}
.btn-connect:hover, .btn-connect:active {
    animation: none !important;
}

/* ── btn-connect animation fix (override !important conflict) ── */
@keyframes btnConnectGlow {
    0%, 100% { border-color: rgba(20,241,149,0.5); }
    50%       { border-color: rgba(20,241,149,1); }
}
.btn-connect {
    animation: btnConnectGlow 2.5s ease-in-out infinite !important;
    box-shadow: none !important;
}
.btn-connect:hover {
    animation: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 24px rgba(20,241,149,0.4), 0 4px 16px rgba(0,0,0,0.25) !important;
}

/* ===== LEGAL PAGES ===== */
.legal-section {
    min-height: 100vh;
    padding: 56px 0 72px;
    background: var(--bg-primary);
}
.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.legal-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.legal-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.legal-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.legal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}
.legal-body > p { margin-bottom: 20px; }
.legal-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 14px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.legal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}
.legal-body ul {
    margin: 0 0 20px 20px;
    padding: 0;
}
.legal-body ul li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.legal-body a {
    color: var(--accent);
    text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text-primary); }
.legal-contact {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 16px;
}
.legal-contact p {
    margin: 0 0 6px;
    font-size: 14px;
}
.legal-contact p:last-child { margin: 0; }
.legal-contact a { color: var(--accent); text-decoration: none; }
.legal-contact a:hover { text-decoration: underline; }

/* Legal table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 13px;
}
.legal-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border);
}
.legal-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
.legal-table code {
    background: rgba(20,241,149,0.08);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 600px) {
    .legal-table { display: block; overflow-x: auto; }
    .legal-section { padding: 36px 0 48px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookieBanner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 340px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    animation: cookieFadeIn 0.4s ease;
}
#cookieBanner.hidden { display: none; }
@keyframes cookieFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.cookie-banner-body a {
    color: var(--accent);
    text-decoration: none;
}
.cookie-banner-body a:hover { text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    gap: 8px;
}
.cookie-btn-accept {
    flex: 1;
    padding: 9px 0;
    background: var(--accent);
    color: #080B11;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-decline {
    padding: 9px 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-decline:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
@media (max-width: 420px) {
    #cookieBanner {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }
}

/* ── Legal page content card background ── */
.legal-container {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 48px 56px !important;
    max-width: 860px !important;
    margin: 0 auto !important;
}
.legal-header {
    margin-bottom: 40px !important;
}
@media (max-width: 768px) {
    .legal-container {
        padding: 28px 22px !important;
        border-radius: 14px !important;
    }
}
@media (max-width: 480px) {
    .legal-container {
        padding: 20px 16px !important;
        border-radius: 10px !important;
    }
}

/* ===== SHARED PAGE SECTION ===== */
.page-section { min-height:100vh; padding:56px 0 72px; background:var(--bg-primary); }
@media (max-width: 768px) { .page-section { padding-top: 36px; } }
.page-section-header { text-align:center; margin-bottom:48px; }
.page-section-header h1 { font-size:clamp(28px,5vw,42px); font-weight:800; color:var(--text-primary); margin:12px 0 16px; }
.page-section-sub { font-size:16px; color:var(--text-muted); max-width:600px; margin:0 auto; line-height:1.7; }
.page-section-sub a { color:var(--accent); text-decoration:none; }

/* ===== CONTACT PAGE ===== */
.contact-wrap { max-width:1080px; margin:0 auto; padding:0 24px; }
.contact-layout { display:grid; grid-template-columns:1fr 340px; gap:32px; align-items:start; }
.contact-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:16px; padding:36px 40px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.form-label { font-size:13px; font-weight:600; color:var(--text-primary); }
.form-req { color:var(--accent); }
.form-input,.form-textarea,.form-select { background:var(--bg-primary); border:1px solid var(--border); border-radius:8px; color:var(--text-primary); font-size:14px; font-family:'Inter',sans-serif; padding:11px 14px; outline:none; transition:border-color .2s; width:100%; box-sizing:border-box; }
.form-input:focus,.form-textarea:focus,.form-select:focus { border-color:var(--accent); }
.form-textarea { resize:vertical; min-height:130px; }
.form-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; cursor:pointer; }
.form-select option { background:#0F1320; }
.form-error-msg { background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3); color:#FCA5A5; border-radius:8px; padding:10px 14px; font-size:13px; margin-bottom:14px; }
.contact-submit-btn { width:100%; padding:13px 0; background:var(--accent); color:#080B11; border:none; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer; transition:opacity .2s; display:flex; align-items:center; justify-content:center; gap:8px; }
.contact-submit-btn:hover { opacity:.88; }
.contact-submit-btn:disabled { opacity:.6; cursor:not-allowed; }
.btn-spinner { display:inline-block; width:15px; height:15px; border:2px solid rgba(8,11,17,.3); border-top-color:#080B11; border-radius:50%; animation:spin .7s linear infinite; flex-shrink:0; }
@keyframes spin { to { transform:rotate(360deg); } }
.success-state { display:none; flex-direction:column; align-items:center; text-align:center; padding:40px 20px; opacity:0; transform:scale(.95); transition:opacity .4s,transform .4s; }
.success-state.visible { opacity:1; transform:scale(1); }
.success-icon-wrap { width:72px; height:72px; margin-bottom:20px; }
.checkmark-svg { width:100%; height:100%; }
.ck-circle { stroke:var(--accent); stroke-width:2; stroke-dasharray:160; stroke-dashoffset:160; animation:ck-dash .6s ease-in-out forwards; }
.ck-check { stroke:var(--accent); stroke-width:2.5; stroke-dasharray:50; stroke-dashoffset:50; animation:ck-dash .35s .6s ease-in-out forwards; }
@keyframes ck-dash { to { stroke-dashoffset:0; } }
.success-title { font-size:22px; font-weight:800; color:var(--text-primary); margin:0 0 10px; }
.success-body { font-size:14px; color:var(--text-muted); line-height:1.7; max-width:320px; margin:0; }
.contact-info-col { display:flex; flex-direction:column; gap:0; }
.contact-info-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:16px; padding:24px 28px; margin-bottom:16px; }
.contact-info-card:last-child { margin-bottom:0; }
.contact-info-title { font-size:15px; font-weight:700; color:var(--text-primary); margin:0 0 18px; }
.contact-info-item { display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.contact-info-item:last-child { margin-bottom:0; }
.ci-icon { font-size:18px; line-height:1; flex-shrink:0; margin-top:1px; }
.ci-label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:2px; }
.ci-value { font-size:14px; color:var(--text-secondary); line-height:1.5; }
.ci-value a { color:var(--accent); text-decoration:none; }
.ci-value a:hover { text-decoration:underline; }
.contact-quick-links { display:flex; flex-direction:column; gap:8px; }
.contact-quick-link { display:flex; align-items:center; gap:8px; padding:9px 14px; background:var(--bg-primary); border:1px solid var(--border); border-radius:8px; font-size:13px; color:var(--text-secondary); text-decoration:none; transition:border-color .2s,color .2s; }
.contact-quick-link:hover { border-color:var(--accent); color:var(--text-primary); }
@media (max-width:900px) { .contact-layout { grid-template-columns:1fr; } .contact-card { padding:24px 20px; } .form-row { grid-template-columns:1fr; } }

/* ===== HELP CENTER ===== */
.help-hero { background:linear-gradient(180deg,rgba(20,241,149,.06) 0%,transparent 100%); border-bottom:1px solid var(--border); padding:120px 24px 60px; text-align:center; }
.help-hero-inner { max-width:640px; margin:0 auto; }
.help-hero h1 { font-size:clamp(28px,5vw,42px); font-weight:800; color:var(--text-primary); margin:12px 0 14px; }
.help-hero p { font-size:16px; color:var(--text-muted); margin:0 0 28px; }
.help-search-bar { position:relative; max-width:480px; margin:0 auto; }
.help-search-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:16px; pointer-events:none; }
.help-search-input { width:100%; box-sizing:border-box; background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; color:var(--text-primary); font-size:15px; font-family:'Inter',sans-serif; padding:13px 16px 13px 46px; outline:none; transition:border-color .2s; }
.help-search-input:focus { border-color:var(--accent); }
.help-wrap { max-width:1080px; margin:0 auto; padding:0 24px; }
.help-section-title { font-size:20px; font-weight:700; color:var(--text-primary); margin:0 0 20px; }
.help-categories { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:60px; }
.help-cat-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; padding:20px 18px; display:flex; align-items:center; gap:14px; text-decoration:none; transition:border-color .2s,transform .15s; }
.help-cat-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.help-cat-icon { font-size:26px; flex-shrink:0; }
.help-cat-text h3 { font-size:14px; font-weight:700; color:var(--text-primary); margin:0 0 3px; }
.help-cat-text p { font-size:12px; color:var(--text-muted); margin:0; }
.help-articles-wrap { display:flex; flex-direction:column; gap:48px; margin-bottom:60px; }
.help-article-item { display:flex; align-items:flex-start; gap:16px; padding:18px 20px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; margin-bottom:8px; transition:border-color .2s; }
.help-article-item:hover { border-color:rgba(20,241,149,.3); }
.ha-content { flex:1; }
.ha-content h4 { font-size:15px; font-weight:600; color:var(--text-primary); margin:0 0 6px; }
.ha-content p { font-size:13px; color:var(--text-muted); margin:0; line-height:1.6; }
.ha-content a { color:var(--accent); text-decoration:none; }
.ha-content a:hover { text-decoration:underline; }
.ha-tag { background:rgba(20,241,149,.1); color:var(--accent); font-size:11px; font-weight:600; padding:3px 8px; border-radius:20px; white-space:nowrap; flex-shrink:0; margin-top:2px; }
.help-contact-cta { text-align:center; background:linear-gradient(135deg,rgba(20,241,149,.07),rgba(20,241,149,.02)); border:1px solid rgba(20,241,149,.2); border-radius:20px; padding:48px 32px; margin-bottom:40px; }
.help-cta-icon { font-size:36px; margin-bottom:12px; }
.help-contact-cta h3 { font-size:22px; font-weight:800; color:var(--text-primary); margin:0 0 10px; }
.help-contact-cta p { font-size:15px; color:var(--text-muted); margin:0 0 24px; }
.help-cta-btn { display:inline-block; padding:12px 32px; background:var(--accent); color:#080B11; border-radius:10px; font-weight:700; font-size:15px; text-decoration:none; transition:opacity .2s; }
.help-cta-btn:hover { opacity:.85; }
@media (max-width:900px) { .help-categories { grid-template-columns:repeat(2,1fr); } }
@media (max-width:500px) { .help-categories { grid-template-columns:1fr 1fr; } .help-cat-card { flex-direction:column; align-items:flex-start; gap:8px; } }

/* ===== DOCS PAGE ===== */
.docs-topnav-wrap { position:sticky; top:68px; z-index:200; background:var(--bg-primary); border-bottom:1px solid var(--border); }
.docs-topnav { display:flex; overflow-x:auto; max-width:1080px; margin:0 auto; padding:0 24px; scrollbar-width:none; }
.docs-topnav::-webkit-scrollbar { display:none; }
.docs-nav-link { padding:14px 18px; font-size:14px; font-weight:500; color:var(--text-muted); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent; transition:color .2s,border-color .2s; flex-shrink:0; }
.docs-nav-link:hover,.docs-nav-link.active { color:var(--accent); border-bottom-color:var(--accent); }
.docs-section-wrap { padding:60px 0 80px; }
.docs-wrap { max-width:820px; margin:0 auto; padding:0 24px; }
.docs-section { padding:48px 0; border-bottom:1px solid var(--border); }
.docs-section:first-child { padding-top:0; }
.docs-section:last-child { border-bottom:none; }
.docs-section h1 { font-size:clamp(26px,4vw,36px); font-weight:800; color:var(--text-primary); margin:12px 0 18px; }
.docs-section h2 { font-size:22px; font-weight:700; color:var(--text-primary); margin:0 0 16px; }
.docs-section h3 { font-size:17px; font-weight:600; color:var(--text-primary); margin:28px 0 12px; }
.docs-section h4 { font-size:15px; font-weight:600; color:var(--text-primary); margin:0 0 8px; }
.docs-section p { font-size:15px; color:var(--text-secondary); line-height:1.8; margin:0 0 16px; }
.docs-section a { color:var(--accent); text-decoration:none; }
.docs-section a:hover { text-decoration:underline; }
.docs-section code { background:rgba(20,241,149,.1); color:var(--accent); padding:2px 6px; border-radius:4px; font-size:13px; font-family:'JetBrains Mono',monospace; }
.docs-intro { font-size:16px !important; color:var(--text-secondary); line-height:1.8; }
.docs-callout { display:flex; gap:12px; padding:14px 18px; border-radius:10px; margin:20px 0; font-size:14px; line-height:1.6; }
.docs-callout.info { background:rgba(99,179,237,.08); border:1px solid rgba(99,179,237,.25); color:#93C5FD; }
.docs-callout.warn { background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.25); color:#FCD34D; }
.docs-callout.success { background:rgba(20,241,149,.08); border:1px solid rgba(20,241,149,.2); color:var(--accent); }
.docs-callout a { color:inherit; text-decoration:underline; }
.callout-icon { font-size:18px; flex-shrink:0; line-height:1.4; }
.docs-feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; }
.docs-feature-item { display:flex; gap:12px; align-items:flex-start; background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:14px 16px; font-size:14px; color:var(--text-secondary); line-height:1.5; }
.docs-feature-item span { font-size:20px; flex-shrink:0; }
.docs-step { display:flex; gap:16px; margin-bottom:24px; align-items:flex-start; }
.docs-step-num { width:32px; height:32px; background:var(--accent); color:#080B11; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; flex-shrink:0; margin-top:2px; }
.docs-step-body { flex:1; }
.docs-param-list { display:flex; flex-direction:column; gap:2px; margin:12px 0 24px; }
.docs-param { background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin-bottom:8px; }
.dp-name { font-size:14px; font-weight:700; color:var(--text-primary); margin-bottom:4px; font-family:'JetBrains Mono',monospace; }
.dp-type { font-size:12px; color:var(--accent); margin-bottom:6px; font-family:'JetBrains Mono',monospace; }
.dp-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin:0; }
.docs-strategy-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; padding:20px 22px; margin-bottom:12px; }
.ds-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ds-badge { font-size:13px; font-weight:700; color:var(--text-primary); background:rgba(255,255,255,.07); padding:4px 10px; border-radius:6px; }
.ds-risk { font-size:11px; font-weight:600; padding:3px 8px; border-radius:20px; }
.ds-risk.high { background:rgba(239,68,68,.15); color:#FCA5A5; }
.ds-risk.med  { background:rgba(245,158,11,.15); color:#FCD34D; }
.ds-risk.low  { background:rgba(20,241,149,.12); color:var(--accent); }
.ds-risk.min  { background:rgba(20,241,149,.2);  color:var(--accent); }
.docs-strategy-card p { font-size:14px; color:var(--text-muted); line-height:1.6; margin:0 0 12px; }
.ds-params { display:flex; flex-wrap:wrap; gap:8px; }
.ds-params span { font-size:12px; background:rgba(20,241,149,.08); color:var(--accent); padding:3px 10px; border-radius:20px; font-family:'JetBrains Mono',monospace; }
.docs-safety-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.docs-safety-item { display:flex; gap:12px; align-items:flex-start; background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:12px 14px; font-size:13px; color:var(--text-secondary); line-height:1.5; }
.safety-num { font-size:11px; font-weight:700; color:var(--accent); font-family:'JetBrains Mono',monospace; flex-shrink:0; margin-top:1px; }
.docs-dex-item { margin-bottom:28px; }
.docs-dex-item h3 { color:var(--text-primary); font-size:17px; font-weight:700; margin-bottom:10px; }
.docs-faq-item { background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:18px 20px; margin-bottom:12px; }
.docs-faq-item h4 { font-size:15px; font-weight:700; color:var(--text-primary); margin:0 0 8px; }
.docs-faq-item p { font-size:14px; color:var(--text-muted); line-height:1.7; margin:0; }
@media (max-width:700px) { .docs-feature-grid,.docs-safety-grid { grid-template-columns:1fr; } .docs-section h1 { font-size:24px; } }

/* ===== API PAGE ===== */
.api-page-wrap { display:flex; max-width:1140px; margin:0 auto; padding:100px 24px 80px; gap:48px; min-height:100vh; }
.api-sidebar { width:210px; flex-shrink:0; position:sticky; top:90px; height:fit-content; max-height:calc(100vh - 110px); overflow-y:auto; scrollbar-width:none; }
.api-sidebar::-webkit-scrollbar { display:none; }
.api-sidebar-brand { margin-bottom:20px; }
.api-version-badge { background:rgba(20,241,149,.12); color:var(--accent); font-size:12px; font-weight:700; padding:4px 10px; border-radius:20px; border:1px solid rgba(20,241,149,.2); }
.api-sidebar-group { margin-bottom:24px; }
.api-sidebar-title { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.8px; margin-bottom:8px; padding-left:10px; }
.api-sidebar-link { display:block; padding:7px 10px; font-size:13px; color:var(--text-muted); text-decoration:none; border-radius:7px; transition:background .15s,color .15s; }
.api-sidebar-link:hover,.api-sidebar-link.active { background:rgba(20,241,149,.08); color:var(--accent); }
.api-main { flex:1; min-width:0; }
.api-section { padding:48px 0; border-bottom:1px solid var(--border); }
.api-section:first-child { padding-top:0; }
.api-section:last-child { border-bottom:none; }
.api-section h1 { font-size:clamp(26px,4vw,34px); font-weight:800; color:var(--text-primary); margin:12px 0 16px; }
.api-section h2 { font-size:22px; font-weight:700; color:var(--text-primary); margin:0 0 16px; }
.api-section p { font-size:15px; color:var(--text-secondary); line-height:1.8; margin:0 0 16px; }
.api-section a { color:var(--accent); text-decoration:none; }
.api-section a:hover { text-decoration:underline; }
.api-section code { background:rgba(20,241,149,.1); color:var(--accent); padding:2px 6px; border-radius:4px; font-size:13px; font-family:'JetBrains Mono',monospace; }
.api-intro { font-size:16px !important; }
.api-base-url-block { display:flex; align-items:center; gap:14px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin:20px 0; }
.api-base-label { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; white-space:nowrap; }
.api-base-code { font-family:'JetBrains Mono',monospace; font-size:14px; color:var(--accent); font-weight:500; }
.api-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; }
.api-info-item { background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:16px 18px; display:flex; gap:12px; align-items:flex-start; font-size:13px; color:var(--text-muted); line-height:1.6; }
.api-info-icon { font-size:20px; flex-shrink:0; }
.api-auth-block { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; overflow:hidden; margin:16px 0; }
.api-auth-header { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; border-bottom:1px solid var(--border); }
.api-auth-name { font-size:14px; font-weight:700; color:var(--text-primary); font-family:'JetBrains Mono',monospace; }
.api-auth-type { font-size:12px; color:var(--text-muted); }
.api-rate-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0; }
.api-rate-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; padding:20px; text-align:center; }
.api-rate-card.featured { border-color:rgba(20,241,149,.3); background:rgba(20,241,149,.04); }
.arc-tier { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px; }
.arc-limit { font-size:28px; font-weight:800; color:var(--text-primary); margin-bottom:6px; }
.arc-limit span { font-size:14px; font-weight:500; color:var(--text-muted); }
.arc-note { font-size:12px; color:var(--text-muted); }
.api-callout { display:flex; gap:10px; padding:12px 16px; border-radius:10px; font-size:13px; line-height:1.6; margin:16px 0; }
.api-callout.warn { background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.25); color:#FCD34D; }
.api-callout.info { background:rgba(99,179,237,.08); border:1px solid rgba(99,179,237,.25); color:#93C5FD; }
.api-callout a { color:inherit; text-decoration:underline; }
.api-error-list { display:flex; flex-direction:column; gap:6px; margin:16px 0; }
.api-error-item { display:grid; grid-template-columns:50px 140px 1fr; align-items:center; gap:12px; padding:10px 16px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:8px; font-size:13px; }
.err-code { font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--accent); }
.err-name { font-weight:600; color:var(--text-primary); }
.err-desc { color:var(--text-muted); }
.api-endpoint-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:14px; padding:24px; margin-bottom:20px; }
.api-ep-header { display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.api-method { display:inline-block; font-size:11px; font-weight:800; padding:4px 9px; border-radius:5px; font-family:'JetBrains Mono',monospace; flex-shrink:0; }
.api-method.get    { background:rgba(20,241,149,.15); color:var(--accent); }
.api-method.post   { background:rgba(99,179,237,.15); color:#93C5FD; }
.api-method.delete { background:rgba(239,68,68,.15); color:#FCA5A5; }
.api-method.put    { background:rgba(245,158,11,.15); color:#FCD34D; }
.api-ep-path { font-family:'JetBrains Mono',monospace; font-size:15px; font-weight:600; color:var(--text-primary); }
.api-ep-path .path-param { color:var(--accent); }
.api-ep-desc-short { font-size:13px; color:var(--text-muted); }
.api-ep-desc { font-size:14px !important; color:var(--text-muted) !important; margin-bottom:18px !important; }
.api-params-block { background:var(--bg-primary); border:1px solid var(--border); border-radius:10px; padding:16px; margin-bottom:16px; }
.api-params-title { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:12px; }
.api-param-item { display:flex; gap:12px; align-items:flex-start; padding:8px 0; border-top:1px solid var(--border); }
.api-param-item:first-of-type { border-top:none; padding-top:0; }
.api-pi-left { display:flex; align-items:center; gap:6px; min-width:200px; flex-shrink:0; flex-wrap:wrap; }
.api-pi-right { font-size:13px; color:var(--text-muted); line-height:1.6; }
.ptype { font-size:11px; color:var(--text-muted); background:rgba(255,255,255,.05); padding:2px 6px; border-radius:4px; font-family:'JetBrains Mono',monospace; }
.preq  { font-size:10px; background:rgba(239,68,68,.15); color:#FCA5A5; padding:2px 6px; border-radius:4px; font-weight:700; }
.popt  { font-size:10px; background:rgba(255,255,255,.05); color:var(--text-muted); padding:2px 6px; border-radius:4px; }
.api-code-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.acb-label { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:6px; }
.api-code { background:#060910; border:1px solid var(--border); border-radius:8px; padding:14px 16px; font-family:'JetBrains Mono',monospace; font-size:12px; color:#a8b8d0; overflow-x:auto; white-space:pre; margin:0; line-height:1.65; display:block; }
.api-event-list { display:flex; flex-direction:column; gap:8px; margin:16px 0; }
.api-event-item { display:flex; gap:14px; align-items:center; padding:12px 16px; background:var(--bg-secondary); border:1px solid var(--border); border-radius:8px; }
.evt-name { font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:600; color:var(--accent); min-width:180px; flex-shrink:0; }
.evt-desc { font-size:13px; color:var(--text-muted); }
@media (max-width:900px) { .api-page-wrap { flex-direction:column; padding-top:90px; } .api-sidebar { position:static; width:100%; display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--border); padding-bottom:12px; } .api-sidebar-group { display:flex; flex-direction:row; align-items:center; gap:4px; margin:0; } .api-sidebar-title { display:none; } .api-sidebar-link { white-space:nowrap; } .api-code-pair,.api-info-grid,.api-rate-grid { grid-template-columns:1fr; } .api-error-item { grid-template-columns:50px 1fr; } .err-desc { grid-column:1 / -1; } }

/* ===== STATUS PAGE ===== */
.status-hero { background:linear-gradient(180deg,rgba(20,241,149,.06) 0%,transparent 100%); border-bottom:1px solid var(--border); padding:120px 24px 56px; text-align:center; }
.status-hero-inner { max-width:640px; margin:0 auto; }
.status-overall-badge { display:inline-flex; align-items:center; gap:10px; background:rgba(20,241,149,.1); border:1px solid rgba(20,241,149,.3); color:var(--accent); font-size:17px; font-weight:700; padding:10px 22px; border-radius:40px; margin-bottom:16px; }
.status-pulse-dot { width:10px; height:10px; background:var(--accent); border-radius:50%; flex-shrink:0; animation:statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 0%,100% { box-shadow:0 0 0 0 rgba(20,241,149,.5); } 50% { box-shadow:0 0 0 6px rgba(20,241,149,0); } }
.status-hero-sub { font-size:15px; color:var(--text-muted); margin:0 0 12px; }
.status-hero-sub a { color:var(--accent); text-decoration:none; }
.status-last-check { font-size:12px; color:var(--text-muted); }
.status-wrap { max-width:860px; margin:0 auto; padding:0 24px; }
.status-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:28px; }
.status-metric { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; padding:20px 16px; text-align:center; }
.sm-value { font-size:28px; font-weight:800; color:var(--text-primary); margin-bottom:6px; line-height:1; }
.sm-unit { font-size:16px; font-weight:500; color:var(--text-muted); }
.sm-label { font-size:12px; color:var(--text-muted); }
.status-card { background:var(--bg-secondary); border:1px solid var(--border); border-radius:16px; padding:28px 32px; margin-bottom:20px; }
.status-card-title { font-size:17px; font-weight:700; color:var(--text-primary); margin:0 0 22px; }
.status-components { display:flex; flex-direction:column; gap:2px; }
.component-row { display:flex; justify-content:space-between; align-items:center; padding:11px 14px; border-radius:8px; transition:background .15s; }
.component-row:hover { background:rgba(255,255,255,.03); }
.comp-left { display:flex; align-items:center; gap:10px; }
.comp-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.comp-dot.operational { background:var(--accent); box-shadow:0 0 5px rgba(20,241,149,.5); }
.comp-dot.degraded    { background:#F59E0B; }
.comp-dot.partial     { background:#F97316; }
.comp-dot.maintenance { background:#818CF8; }
.comp-name { font-size:14px; color:var(--text-secondary); }
.comp-right { display:flex; align-items:center; gap:12px; }
.comp-latency { font-size:12px; color:var(--text-muted); font-family:'JetBrains Mono',monospace; }
.comp-status { font-size:12px; font-weight:600; padding:3px 10px; border-radius:20px; }
.comp-status.operational { background:rgba(20,241,149,.1); color:var(--accent); }
.comp-status.degraded    { background:rgba(245,158,11,.12); color:#FCD34D; }
.comp-status.partial     { background:rgba(249,115,22,.12); color:#FCA5A5; }
.comp-status.maintenance { background:rgba(129,140,248,.12); color:#A5B4FC; }
.uptime-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.uptime-header .status-card-title { margin:0; }
.uptime-pct-badge { font-size:13px; font-weight:700; color:var(--accent); background:rgba(20,241,149,.1); padding:4px 12px; border-radius:20px; }
.uptime-bars-wrap { margin-bottom:8px; }
.uptime-bars { display:flex; gap:4px; align-items:stretch; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.uptime-bars::-webkit-scrollbar { display:none; }
.day-bar { min-width:18px; flex:1; height:40px; border-radius:4px; cursor:pointer; transition:opacity .15s,transform .15s; }
.day-bar:hover { opacity:.75; transform:scaleY(1.08); }
.day-bar.operational { background:var(--accent); }
.day-bar.degraded    { background:#F59E0B; }
.day-bar.partial     { background:#F97316; }
.day-bar.maintenance { background:#818CF8; }
.uptime-axis { display:flex; justify-content:space-between; font-size:11px; color:var(--text-muted); margin-top:6px; }
.uptime-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:14px; }
.uleg-item { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.uleg-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
.uleg-dot.operational { background:var(--accent); }
.uleg-dot.degraded    { background:#F59E0B; }
.uleg-dot.partial     { background:#F97316; }
.uleg-dot.maintenance { background:#818CF8; }
.incident-item { display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--border); align-items:flex-start; }
.incident-item:last-child { border-bottom:none; padding-bottom:0; }
.inc-badge { display:inline-block; font-size:11px; font-weight:700; padding:4px 10px; border-radius:6px; white-space:nowrap; flex-shrink:0; min-width:100px; text-align:center; }
.inc-badge.partial     { background:rgba(249,115,22,.15); color:#FB923C; }
.inc-badge.degraded    { background:rgba(245,158,11,.15); color:#FCD34D; }
.inc-badge.maintenance { background:rgba(129,140,248,.15); color:#A5B4FC; }
.inc-body { flex:1; }
.inc-title { font-size:15px; font-weight:600; color:var(--text-primary); margin-bottom:4px; }
.inc-meta { font-size:12px; color:var(--text-muted); margin-bottom:6px; display:flex; gap:4px; flex-wrap:wrap; }
.inc-resolved { color:var(--accent); }
.inc-impact { font-size:13px; color:var(--text-muted); line-height:1.6; }
.status-subscribe { text-align:center; font-size:14px; color:var(--text-muted); padding:24px 0; margin-bottom:20px; }
.status-subscribe a { color:var(--accent); text-decoration:none; }
.status-subscribe a:hover { text-decoration:underline; }
.bar-tooltip { position:fixed; z-index:9999; pointer-events:none; background:var(--bg-secondary); border:1px solid var(--border); border-radius:10px; padding:10px 14px; max-width:240px; box-shadow:0 8px 24px rgba(0,0,0,.5); font-size:13px; display:flex; flex-direction:column; gap:4px; }
.bar-tooltip strong { font-size:13px; color:var(--text-primary); }
.tip-badge { font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; width:fit-content; }
.tip-badge.operational { background:rgba(20,241,149,.1); color:var(--accent); }
.tip-badge.degraded    { background:rgba(245,158,11,.15); color:#FCD34D; }
.tip-badge.partial     { background:rgba(249,115,22,.15); color:#FB923C; }
.tip-badge.maintenance { background:rgba(129,140,248,.15); color:#A5B4FC; }
.tip-title { font-size:12px; color:var(--text-secondary); }
.tip-dur   { font-size:11px; color:var(--text-muted); }
@media (max-width:768px) { .status-metrics { grid-template-columns:repeat(2,1fr); } .status-card { padding:20px 18px; } .comp-latency { display:none; } }
@media (max-width:480px) { .sm-value { font-size:22px; } }

/* ====================================================
   API MOBILE RESPONSIVENESS
   ==================================================== */
@media (max-width: 900px) {
    .api-page-wrap { grid-template-columns: 1fr !important; margin-top: 20px !important; padding-top: 28px !important; }
    .api-sidebar { display: none !important; }
    .api-main { padding: 24px 20px !important; }
}
@media (max-width: 640px) {
    .api-error-item { grid-template-columns: 1fr !important; gap: 4px !important; }
    .api-error-item > *:first-child { border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 2px; }
    .api-param-item { flex-direction: column !important; gap: 6px !important; }
    .api-pi-left { min-width: unset !important; width: 100% !important; }
    .api-pi-right { width: 100% !important; }
    .api-base-url-block { flex-direction: column !important; gap: 6px !important; align-items: flex-start !important; }
    .api-base-code { width: 100% !important; box-sizing: border-box; }
    .api-ep-header { flex-wrap: wrap !important; gap: 8px !important; }
    .api-ep-path { word-break: break-all; }
    .api-event-item { flex-direction: column !important; gap: 4px !important; }
    .evt-name { min-width: unset !important; }
    .api-endpoint-card { padding: 18px 16px !important; }
    .api-rate-grid { grid-template-columns: 1fr 1fr !important; }
    .api-code-pair { grid-template-columns: 1fr !important; }
    .api-code { font-size: 11px !important; }
    .api-info-grid { grid-template-columns: 1fr !important; }
    .api-section { padding: 32px 0 !important; }
}
@media (max-width: 420px) {
    .api-rate-grid { grid-template-columns: 1fr !important; }
    .api-rate-item { padding: 14px !important; }
    .api-main { padding: 16px 14px !important; }
}

/* ====================================================
   PAGE CARD / LAYER STYLING � ALL STATIC PAGES
   ==================================================== */
.contact-wrap,
.help-wrap,
.docs-wrap,
.status-wrap,
.legal-container,
.blog-wrap {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 40px 48px !important;
    box-shadow: 0 4px 40px rgba(0,0,0,.35), 0 1px 0 rgba(20,241,149,.04) inset !important;
    position: relative;
    overflow: hidden;
}
.contact-wrap::before,
.help-wrap::before,
.docs-wrap::before,
.status-wrap::before,
.legal-container::before,
.blog-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(20,241,149,.35) 30%, rgba(20,241,149,.55) 50%, rgba(20,241,149,.35) 70%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.api-page-wrap {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 40px rgba(0,0,0,.35) !important;
    overflow: hidden;
    position: relative;
}
.api-page-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(20,241,149,.35) 30%, rgba(20,241,149,.55) 50%, rgba(20,241,149,.35) 70%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 900px) {
    .contact-wrap,
    .help-wrap,
    .docs-wrap,
    .status-wrap,
    .legal-container,
    .blog-wrap,
    .api-page-wrap {
        padding: 28px 24px !important;
        border-radius: 16px !important;
    }
}
@media (max-width: 600px) {
    .contact-wrap,
    .help-wrap,
    .docs-wrap,
    .status-wrap,
    .legal-container,
    .blog-wrap,
    .api-page-wrap {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }
}

/* ====================================================
   STATIC PAGE WIDTH INCREASE
   ==================================================== */
.legal-container  { max-width: 1400px !important; }
.docs-wrap        { max-width: 1400px !important; }
.status-wrap      { max-width: 1400px !important; }
.contact-wrap     { max-width: 1400px !important; }
.help-wrap        { max-width: 1400px !important; }
.api-page-wrap    { max-width: 1500px !important; }

/* API page: space between fixed header and card */
.api-page-wrap { margin-top: 90px !important; padding-top: 40px !important; margin-bottom: 60px !important; }
@media (max-width: 900px) {
    .api-page-wrap { margin-top: 20px !important; padding-top: 28px !important; }
}

/* Status hero compact */
.status-hero { padding: 80px 24px 32px !important; }

/* ====================================================
   CONTACT PAGE — NEW DESIGN
   ==================================================== */
.ct-header { margin-bottom: 44px; }
.ct-header h1 { font-size: clamp(28px,4vw,38px); font-weight: 800; color: var(--text-primary); margin: 10px 0 10px; }
.ct-sub { font-size: 15px; color: var(--text-muted); margin: 0; }
.ct-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.ct-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ct-form-group { margin-bottom: 20px; }
.ct-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .05em; text-transform: uppercase; }
.ct-req { color: var(--accent); }
.ct-input { width: 100%; background: var(--bg-primary); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--text-primary); font-family: inherit; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; outline: none; -webkit-appearance: none; appearance: none; }
.ct-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,241,149,.1); }
.ct-textarea { resize: vertical; min-height: 150px; }
.ct-error { font-size: 13px; color: #F87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.ct-submit { width: 100%; padding: 14px 0; background: var(--accent); color: #080B11; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .15s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; letter-spacing: .01em; }
.ct-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.ct-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ct-info-side { display: flex; flex-direction: column; gap: 20px; }
.ct-response-badge { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(20,241,149,.1), rgba(20,241,149,.04)); border: 1px solid rgba(20,241,149,.25); border-radius: 14px; padding: 18px 22px; }
.ct-resp-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(20,241,149,.2); animation: pulse 2s infinite; }
.ct-resp-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ct-resp-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.ct-info-list { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 14px; padding: 4px 0; }
.ct-info-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ct-info-row:last-child { border-bottom: none; }
.ct-info-icon { width: 34px; height: 34px; background: rgba(20,241,149,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.ct-info-icon svg { width: 16px; height: 16px; }
.ct-info-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ct-info-val { font-size: 13px; color: var(--text-secondary); text-decoration: none; line-height: 1.55; }
a.ct-info-val:hover { color: var(--accent); }
.ct-resources-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.ct-resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-res-link { display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.ct-res-link:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(20,241,149,.04); }
.ct-res-icon { font-size: 14px; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } .ct-info-side { order: -1; } }
@media (max-width: 560px) { .ct-form-row { grid-template-columns: 1fr; } .ct-header { margin-bottom: 28px; } }

/* Status page H1 (visually subtle, semantically present) */
.status-page-title { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
/* Contact section titles */
.ct-section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 16px; }

/* === SECTION AMBIENT ANIMATIONS === */
@keyframes ambOrb1 {
    0%,100% { transform: translate(0,0) scale(1); opacity:.7; }
    35%      { transform: translate(40px,-25px) scale(1.06); opacity:1; }
    70%      { transform: translate(-20px,18px) scale(.95); opacity:.6; }
}
@keyframes ambOrb2 {
    0%,100% { transform: translate(0,0) scale(1); opacity:.6; }
    40%     { transform: translate(-30px,22px) scale(1.04); opacity:.9; }
    75%     { transform: translate(25px,-18px) scale(.97); opacity:.7; }
}

/* Make sections position:relative so ::before/::after stay inside */
.features-section,
.how-it-works-section,
.stats-section,
.dexes-section,
.faq-section {
    position: relative;
    overflow: hidden;
}

/* Green orb — top-left corner of each section */
.features-section::before,
.how-it-works-section::before,
.stats-section::before,
.dexes-section::before,
.faq-section::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,241,149,0.055) 0%, transparent 70%);
    filter: blur(72px);
    top: -160px; left: -120px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb1 28s ease-in-out infinite;
}

/* Purple orb — bottom-right corner of each section */
.features-section::after,
.how-it-works-section::after,
.stats-section::after,
.dexes-section::after,
.faq-section::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153,69,255,0.065) 0%, transparent 70%);
    filter: blur(72px);
    bottom: -100px; right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb2 34s ease-in-out infinite;
}

/* Ensure section content stays above orbs */
.section-header,
.features-grid,
.steps-container,
.stats-grid,
.dexes-grid,
.faq-container,
.trust-strip {
    position: relative;
    z-index: 1;
}

/* Stagger orb start times so sections feel independent */
.how-it-works-section::before { animation-delay: -8s; }
.how-it-works-section::after  { animation-delay: -5s; }
.stats-section::before         { animation-delay: -14s; }
.stats-section::after          { animation-delay: -10s; }
.dexes-section::before         { animation-delay: -20s; }
.dexes-section::after          { animation-delay: -16s; }
.faq-section::before           { animation-delay: -4s; }
.faq-section::after            { animation-delay: -22s; }

/* Static pages — ambient orbs on .page-section */
.page-section {
    position: relative;
    overflow: hidden;
}
.page-section::before {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,241,149,0.05) 0%, transparent 70%);
    filter: blur(90px);
    top: -180px; left: -140px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb1 32s ease-in-out infinite;
}
.page-section::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153,69,255,0.06) 0%, transparent 70%);
    filter: blur(90px);
    bottom: 60px; right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb2 38s ease-in-out infinite;
}

/* Static page inner wraps stay above orbs */
.contact-wrap,
.help-wrap,
.docs-wrap,
.api-page-wrap,
.status-wrap,
.legal-wrap {
    position: relative;
    z-index: 1;
}

/* Legal pages ambient orbs */
.legal-section {
    position: relative;
    overflow: hidden;
}
.legal-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,241,149,0.05) 0%, transparent 70%);
    filter: blur(90px);
    top: -150px; left: -100px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb1 30s ease-in-out infinite;
}
.legal-section::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153,69,255,0.06) 0%, transparent 70%);
    filter: blur(80px);
    bottom: 40px; right: -80px;
    pointer-events: none;
    z-index: 0;
    animation: ambOrb2 36s ease-in-out infinite;
}
.legal-container { position: relative; z-index: 1; }

/* trust-bar z-index fix */
.trust-bar { position: relative; z-index: 1; }


/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.blog-hero { text-align: center; margin-bottom: 52px; }
.blog-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: var(--text-primary); margin-bottom: 14px; }
.blog-hero p  { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 48px; }
.blog-cat-pill { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted); background: transparent; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.blog-cat-pill:hover, .blog-cat-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(20,241,149,.07); }
.blog-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; width: fit-content; }
.badge-beginner  { background: rgba(153,69,255,.13); color: #9945FF; }
.badge-explainer { background: rgba(20,241,149,.12);  color: var(--accent); }
.badge-strategy  { background: rgba(20,241,149,.12);  color: var(--accent); }
.badge-safety    { background: rgba(255,80,80,.12);   color: #FF6060; }
.badge-technical { background: rgba(255,180,0,.12);   color: #FFB400; }
.badge-platform  { background: rgba(0,180,255,.12);   color: #00B4FF; }
.blog-featured { margin-bottom: 40px; }
.blog-featured-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px; position: relative; overflow: hidden; text-decoration: none; display: block; transition: border-color .2s, transform .25s; }
.blog-featured-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-featured-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.blog-featured-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; letter-spacing: -.5px; color: var(--text-primary); margin-bottom: 14px; line-height: 1.3; }
.blog-featured-excerpt { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 720px; margin-bottom: 20px; }
.blog-featured-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-read-time { font-size: 12px; color: var(--text-muted); }
.blog-read-more { font-size: 13px; font-weight: 700; color: var(--accent); }
.blog-featured-card:hover .blog-read-more { text-decoration: underline; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .2s, transform .25s; position: relative; }
.blog-card:hover { border-color: rgba(20,241,149,.4); transform: translateY(-2px); }
.blog-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.4; flex: 1; }
.blog-card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.blog-card-time { font-size: 11px; color: var(--text-muted); }
.blog-card-arrow { font-size: 13px; color: var(--accent); font-weight: 700; transition: transform .2s; }
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }
.blog-cta-strip { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-cta-strip-text h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.blog-cta-strip-text p  { font-size: 14px; color: var(--text-secondary); margin: 0; }
.blog-cta-strip-btn { background: var(--accent); color: #000; font-weight: 700; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; transition: background .2s, transform .2s; }
.blog-cta-strip-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── ARTICLE DETAIL ─────────────────────────────────────── */
.article-page-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; }
.article-breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }
.article-breadcrumb-nav a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.article-breadcrumb-nav a:hover { color: var(--accent); }

/* Layout grid */
.article-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.article-toc-sidebar { position: sticky; top: 88px; }
.article-main { min-width: 0; }

/* Card */
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 56px 68px; margin-bottom: 28px; position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #9945FF 0%, #14F195 50%, #9945FF 100%); background-size: 200% 100%; animation: accentBar 5s linear infinite; }
@keyframes accentBar { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.article-card::after { content: ''; position: absolute; bottom: 0; right: -120px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(153,69,255,.07) 0%, transparent 70%); pointer-events: none; }

/* Header */
.article-header { margin-bottom: 36px; }
.article-title { font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: -1.5px; color: var(--text-primary); line-height: 1.15; margin-bottom: 22px; }
.article-meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 40px; padding: 8px 18px; }
.article-meta .sep { color: var(--border); }

/* TOC sidebar */
.toc { background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(20,241,149,.03)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.toc-header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(20,241,149,.04); border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0; flex: 1; }
.toc-toggle { font-size: 9px; color: var(--text-muted); transition: transform .25s; }
.toc-body { padding: 14px 16px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc-c; display: flex; flex-direction: column; gap: 1px; }
.toc ol > li { counter-increment: toc-c; display: flex; align-items: flex-start; gap: 0; }
.toc ol > li::before { content: counter(toc-c, decimal-leading-zero); font-size: 10px; font-weight: 700; color: var(--accent); opacity: .55; padding: 7px 8px 0 4px; flex-shrink: 0; font-family: var(--font-mono); line-height: 1; }
.toc a { color: var(--text-secondary); text-decoration: none; font-size: 13px; line-height: 1.45; padding: 6px 10px 6px 2px; border-radius: 7px; display: block; transition: background .15s, color .15s; flex: 1; }
.toc a:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }
.toc a.toc-active { color: var(--accent); background: rgba(20,241,149,.09); font-weight: 600; }
.toc ol ol { padding-left: 22px; margin-top: 2px; }
.toc ol ol > li::before { content: '–'; opacity: .35; }
.toc ol ol a { font-size: 12px; color: var(--text-muted); }

/* Scroll progress */
.article-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, #14F195, #9945FF); width: 0%; z-index: 9999; transition: width .08s linear; pointer-events: none; }

/* Body */
.article-body { color: var(--text-secondary); line-height: 1.85; font-size: 16px; }
.article-body h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; color: var(--text-primary); margin: 52px 0 16px; letter-spacing: -.5px; padding: 20px 0 0 20px; border-top: 1px solid var(--border); position: relative; }
.article-body h2::before { content: ''; position: absolute; left: 0; top: 26px; width: 4px; height: 24px; background: linear-gradient(to bottom, var(--accent), #9945FF); border-radius: 3px; }
.article-body h3 { font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; color: var(--text-primary); margin: 34px 0 12px; }
.article-body h4 { font-size: 12px; font-weight: 700; color: var(--accent); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .09em; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text-primary); font-weight: 700; }
.article-body a { color: var(--accent); text-decoration: none; font-weight: 600; transition: color .15s; }
.article-body a:hover { color: #fff; }
.article-body code { font-family: var(--font-mono); font-size: 13px; background: rgba(20,241,149,.08); border: 1px solid rgba(20,241,149,.15); color: var(--accent); padding: 2px 7px; border-radius: 5px; }

/* Callouts */
.article-callout { border-left: 3px solid var(--accent); background: rgba(20,241,149,.05); padding: 20px 22px 20px 52px; border-radius: 0 12px 12px 0; margin: 28px 0; position: relative; }
.article-callout::before { content: '💡'; position: absolute; left: 16px; top: 20px; font-size: 16px; }
.article-callout.warn { border-color: #FFB400; background: rgba(255,180,0,.05); }
.article-callout.warn::before { content: '⚠️'; }
.article-callout.danger { border-color: #FF6060; background: rgba(255,80,80,.05); }
.article-callout.danger::before { content: '🚫'; }
.article-callout p { margin: 0; font-size: 14.5px; }

/* Author */
.article-author { background: linear-gradient(135deg, rgba(20,241,149,.06), rgba(153,69,255,.05)); border: 1px solid rgba(20,241,149,.15); border-radius: 16px; padding: 28px 32px; display: flex; gap: 20px; align-items: flex-start; margin: 44px 0 0; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #9945FF); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.author-info-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.author-info-role { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.author-info-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Nav between articles */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.article-nav-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; text-decoration: none; transition: border-color .2s, transform .2s; display: block; }
.article-nav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 6px; }
.article-nav-title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }

/* Responsive */
@media (max-width: 1060px) { .article-layout { grid-template-columns: 240px 1fr; gap: 24px; } .article-card { padding: 48px 52px; } }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } .article-toc-sidebar { position: static; order: -1; } .article-card { padding: 38px 36px; } }
@media (max-width: 580px) { .article-card { padding: 28px 22px; } .article-nav { grid-template-columns: 1fr; } .article-page-wrap { padding: 0 16px; } }
@media (max-width: 600px) { .blog-featured-card { padding: 28px 24px; } .blog-cta-strip { padding: 28px 24px; } .blog-wrap { padding: 0 16px; } }

/* Mobile nav — Launch Bot in drawer */
.nav-mobile-cta { display: none; }
@media (max-width: 768px) {
    .nav-actions .btn-connect { display: none !important; }
    .nav-mobile-cta { display: block; padding: 10px 12px 18px; }
    .nav-mobile-cta .btn-connect { display: flex !important; justify-content: center; width: 100%; box-sizing: border-box; font-size: 14px !important; padding: 11px 20px !important; }
}

/* Tighter nav for 7 links */
.nav-container { gap: 20px; }
.nav-link { padding: 6px 10px; font-size: 13px; }
