/* ===== MODERN DARK THEME VARIABLES ===== */
:root {
    /* Soft Purple Accent - Primary Brand Color */
    --accent-primary: #8B7AB5;
    --accent-primary-light: #A594D6;
    --accent-primary-dark: #6B5A95;
    
    /* Semantic Colors - Soft & Modern */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Background Colors - Modern Dark Theme */
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #252525;
    --bg-card: #1A1A1A;
    --bg-hover: #2A2A2A;
    --bg-input: #141414;
    
    /* Text Colors */
    --text-primary: #F5F5F5;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Border Colors */
    --border: #2A2A2A;
    --border-hover: #3A3A3A;
    --border-accent: #8B7AB5;
    
    /* Legacy variable names for compatibility */
    --neon-green: var(--success);
    --neon-red: var(--danger);
    --neon-blue: var(--info);
    --neon-purple: var(--accent-primary);
    --neon-yellow: var(--warning);
    --neon-orange: var(--warning);
    --border-neon: var(--accent-primary);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Subtle Shadows for dark theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 0 0 3px rgba(139, 122, 181, 0.25);
    
    /* Legacy glow variables mapped to shadows */
    --glow-green: var(--shadow-accent);
    --glow-red: 0 0 0 3px rgba(239, 68, 68, 0.25);
    --glow-blue: 0 0 0 3px rgba(59, 130, 246, 0.25);
    --glow-purple: var(--shadow-accent);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 100%; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ===== SUBTLE ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--accent-primary); box-shadow: var(--shadow-accent); }
    50% { border-color: rgba(139, 122, 181, 0.5); box-shadow: 0 0 0 2px rgba(139, 122, 181, 0.1); }
}



/* ===== TYPOGRAPHY ===== */
.glitch-text {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Modern Accent Colors */
.neon-green { color: var(--success); font-weight: 600; }
.neon-red { color: var(--danger); font-weight: 600; }
.neon-blue { color: var(--info); font-weight: 600; }
.neon-purple { color: var(--accent-primary); font-weight: 600; }

.positive { color: var(--success); }
.negative { color: var(--danger); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-hover);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-primary-dark);
    border-color: var(--accent-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.btn-wallet {
    background: transparent;
    border: 1.5px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-wallet:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-wallet.connected {
    background: var(--accent-primary);
    color: #fff;
    animation: none;
}

.btn-sm { padding: 6px 12px; font-size: 10px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    height: 60px;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-primary);
    background: rgba(139, 122, 181, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
    border-color: var(--border);
    background: var(--bg-hover);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search {
    min-width: 200px;
    justify-content: flex-start;
}

.btn-network {
    border-color: var(--info);
    color: var(--info);
    background: rgba(59, 130, 246, 0.05);
}

.btn-network:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mobile-menu-btn {
    display: none;
    font-size: 20px;
    color: var(--accent-primary);
    border: 1.5px solid var(--accent-primary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(139, 122, 181, 0.05);
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
    display: block;
    margin-top: 96px; /* 60px header + 36px ticker */
    min-height: calc(100vh - 60px);
    border-top: 1px solid var(--border);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input,
.filter-group select {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-primary);
    outline: none;
}

.range-inputs input:focus,
.filter-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.range-inputs span {
    color: var(--text-muted);
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox:hover {
    color: var(--accent-primary);
}

.checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.stat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.stat-box:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-primary);
}

.stat-value.positive {
    color: var(--success);
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.content-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 14px 24px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.tab-content.active {
    display: flex;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
}

.view-btn {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-input);
    border: none;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

/* ===== TABLE ===== */
.table-container {
    flex: 1;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.table-container:hover {
    border-color: var(--border-hover);
}

.tokens-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tokens-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    white-space: nowrap;
}

.tokens-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.tokens-table tbody tr {
    transition: all 0.2s;
    cursor: pointer;
}

.tokens-table tbody tr:hover {
    background: rgba(139, 122, 181, 0.05);
}

.tokens-table tbody tr:hover td {
    color: var(--accent-primary);
}

.token-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-logo {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    overflow: hidden;
    border-radius: 6px;
}

.token-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.token-logo:hover img {
    transform: scale(1.1);
}

.token-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    color: var(--accent-primary);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.token-info {
    display: flex;
    flex-direction: column;
}

.token-name {
    font-weight: 700;
    font-size: 12px;
}

.token-symbol {
    font-size: 10px;
    color: var(--text-muted);
}

.price-cell,
.change-cell,
.volume-cell,
.liquidity-cell,
.mcap-cell,
.holders-cell,
.age-cell {
    font-family: var(--font-primary);
}

.change-cell.positive {
    color: var(--success);
    font-weight: 600;
}

.change-cell.negative {
    color: var(--danger);
    font-weight: 600;
}

.volume-cell,
.liquidity-cell,
.mcap-cell,
.holders-cell,
.age-cell {
    color: var(--text-secondary);
}

.security-badges {
    display: flex;
    gap: 4px;
}

.security-badge {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.security-badge.safe {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.security-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.security-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.dex-cell {
    font-size: 10px;
}

.dex-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.dex-badge.raydium {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.dex-badge.orca {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.dex-badge.jupiter {
    background: rgba(139, 122, 181, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dex-badge.phoenix {
    background: rgba(255, 102, 0, 0.1);
    border-color: var(--neon-orange);
    color: var(--neon-orange);
}

.dex-badge.lifinity {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
    color: #ff00ff;
}

.dex-badge.raydium-clmm,
.dex-badge.raydium-clmm-\(deprecated\) {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00a8cc;
    color: #00a8cc;
}

.dex-badge.whirlpool {
    background: rgba(0, 255, 128, 0.1);
    border-color: #00ff80;
    color: #00ff80;
}

.dex-badge.meteora {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    color: #ffa500;
}

.dex-badge.meteora-dlmm {
    background: rgba(255, 140, 0, 0.1);
    border-color: #ff8c00;
    color: #ff8c00;
}

.dex-badge.phoenix {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

.dex-badge.cropper,
.dex-badge.cropper-legacy {
    background: rgba(144, 238, 144, 0.1);
    border-color: #90ee90;
    color: #90ee90;
}

.dex-badge.saros {
    background: rgba(255, 105, 180, 0.1);
    border-color: #ff69b4;
    color: #ff69b4;
}

.dex-badge.drift {
    background: rgba(100, 149, 237, 0.1);
    border-color: #6495ed;
    color: #6495ed;
}

.dex-badge.stepn {
    background: rgba(50, 205, 50, 0.1);
    border-color: #32cd32;
    color: #32cd32;
}

.dex-badge.invariant {
    background: rgba(255, 20, 147, 0.1);
    border-color: #ff1493;
    color: #ff1493;
}

.dex-badge.uxd,
.dex-badge.uxp {
    background: rgba(70, 130, 180, 0.1);
    border-color: #4682b4;
    color: #4682b4;
}

.dex-badge.goblin {
    background: rgba(128, 0, 128, 0.1);
    border-color: #800080;
    color: #800080;
}

.dex-badge.saber {
    background: rgba(0, 255, 127, 0.1);
    border-color: #00ff7f;
    color: #00ff7f;
}

.dex-badge.mercurial {
    background: rgba(220, 20, 60, 0.1);
    border-color: #dc143c;
    color: #dc143c;
}

.dex-badge.aldrin {
    background: rgba(65, 105, 225, 0.1);
    border-color: #4169e1;
    color: #4169e1;
}

.dex-badge.cykura {
    background: rgba(0, 191, 255, 0.1);
    border-color: #00bfff;
    color: #00bfff;
}

.dex-badge.unknown {
    background: rgba(128, 128, 128, 0.1);
    border-color: #808080;
    color: #808080;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(139, 122, 181, 0.05);
}

/* LOADING & EMPTY */
.loading-row {
    text-align: center;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
}

.loading-spinner i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Background refresh indicator */
.refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.refresh-indicator.active {
    opacity: 1;
}

.refresh-indicator i {
    font-size: 12px;
    animation: spin 1s linear infinite;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state > i {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--accent-primary);
    opacity: 0.8;
}

.empty-state-small {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state-small i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--accent-primary);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.empty-state .btn {
    min-width: 200px;
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    border-top: 2px solid var(--border);
}

.page-info {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HOLDINGS ===== */
.holdings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.summary-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.summary-card .label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-card .value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--accent-primary);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* TOKEN MODAL */
.token-modal-content {
    padding: 24px;
}

.token-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.token-info-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.token-logo-large {
    width: 64px;
    height: 64px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.token-info-text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--accent-primary);
}

.token-symbol {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.token-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.token-tag {
    padding: 4px 8px;
    border: 1px solid var(--border);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.token-info-price {
    text-align: right;
}

.price-main {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--accent-primary);
}

.price-change {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

.price-change.positive {
    color: var(--success);
}

.price-change.negative {
    color: var(--danger);
}

/* TOKEN METRICS */
.token-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 14px;
    font-weight: 900;
    font-family: var(--font-primary);
}

/* TOKEN TABS */
.token-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
}

.token-tab {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.token-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.token-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.token-tab-content {
    display: none;
}

.token-tab-content.active {
    display: block;
}

/* CHART */
.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeframes {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
}

.tf-btn {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-input);
    border: none;
    transition: all 0.2s;
}

.tf-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tf-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

.chart-container {
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}

#chartCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.chart-tooltip {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.chart-legend {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend i {
    font-size: 10px;
}

.chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--accent-primary);
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* HOLDERS */
.holders-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.holder-stat {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 12px;
}

.holder-stat:hover {
    border-color: var(--accent-primary);
}

.holder-stat span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.holder-stat span:last-child {
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--accent-primary);
}

/* INFO GRID */
.info-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 13px;
    font-family: var(--font-primary);
    word-break: break-all;
    color: var(--accent-primary);
}

.info-value.copyable {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.info-value.copyable:hover {
    border-color: var(--accent-primary);
}

.copy-btn {
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    border-radius: 6px;
    transition: all 0.2s;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(139, 122, 181, 0.05);
}

.token-links h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* MODAL ACTIONS */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

/* SEARCH MODAL */
.search-modal-content {
    max-width: 500px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 2px solid var(--border);
}

.search-header i {
    color: var(--accent-primary);
    font-size: 16px;
}

.search-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 16px;
    font-family: var(--font-primary);
    outline: none;
}

.search-header input::placeholder {
    color: var(--text-muted);
}

.search-results {
    max-height: 400px;
    overflow: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(139, 122, 181, 0.08);
}

.search-result-item:hover .token-name {
    color: var(--accent-primary);
}

/* FEED */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
}

.feed-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-input);
}

.feed-content {
    flex: 1;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.feed-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-primary);
}

.feed-time {
    font-size: 10px;
    color: var(--text-muted);
}

.feed-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== RANK & WATCHLIST STAR ===== */
.rank-star {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 20px;
    text-align: center;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px;
    transition: all 0.2s;
    opacity: 0.5;
}

.star-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.star-btn.active {
    color: var(--accent-primary);
    opacity: 1;
}

.star-btn.active:hover {
    color: var(--danger);
}

tr:hover .star-btn {
    opacity: 0.8;
}

/* ===== INFO TAB (TWITTER STYLE) ===== */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.info-tweet {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-input);
}

.tweet-author {
    display: flex;
    flex-direction: column;
}

.tweet-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tweet-name {
    font-weight: 900;
    font-size: 15px;
    color: var(--text-primary);
}

.tweet-handle {
    font-size: 13px;
    color: var(--text-muted);
}

.tweet-dot {
    color: var(--text-muted);
    margin: 0 4px;
}

.tweet-time {
    font-size: 13px;
    color: var(--text-muted);
}

.tweet-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
    white-space: pre-line;
}

.tweet-content .neon-green {
    color: var(--accent-primary);
    font-weight: 600;
}

.tweet-stats {
    display: flex;
    gap: 32px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tweet-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tweet-stat:hover {
    color: var(--accent-primary);
}

.tweet-stat.like:hover {
    color: var(--danger);
}

.tweet-stat.repost:hover {
    color: var(--info);
}

.tweet-comments {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tweet-comment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: 4px;
}

.comment-user {
    font-weight: 600;
    color: var(--info);
}

.comment-text {
    color: var(--text-secondary);
    flex: 1;
}

.comment-likes {
    font-size: 11px;
    color: var(--danger);
}

.info-features {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.info-features h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .tweet-stats {
        gap: 16px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .token-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .holdings-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        padding: 8px 0;
        height: auto;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-search {
        flex: 1;
        min-width: auto;
    }
    
    .token-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .token-detail-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .token-info-price {
        text-align: left;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .token-metrics,
    .holders-stats {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 10px;
        white-space: nowrap;
    }
}

/* Touch device specific styles */
.touch-device .tokens-table tbody tr {
    transition: background 0.1s;
}

.touch-device .btn,
.touch-device .action-btn,
.touch-device .tab-btn {
    -webkit-tap-highlight-color: transparent;
}

.touch-device .star-btn {
    opacity: 0.6;
}

/* Prevent text selection on mobile */
.mobile-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth scrolling for iOS */
.table-container,
.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-primary);
    color: #0F0F0F;
}

/* ===== TOAST ===== */
/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
