/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #08080c;
    --bg-secondary: #0e0e14;
    --bg-card: #12121c;
    --bg-elevated: #1a1a28;
    --bg-hover: #22223a;
    --bg-input: #161624;

    --text-primary: #e4e4ec;
    --text-secondary: #8888a0;
    --text-muted: #5a5a72;

    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-green: #22c55e;
    --accent-green-dim: #16a34a;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;

    --border-color: #1e1e30;
    --border-subtle: #161624;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: var(--accent-primary-hover); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

.hidden { display: none !important; }
.ag-nav-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.ag-nav-bar.hidden { display: none !important; }
.ag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0;
}
.ag-label {
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 2px;
}
.ag-pill {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    line-height: 16px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
}
.ag-pill-calls { color: #e2e8f0; }
.ag-pill-cache { color: #4ade80; background: rgba(74,222,128,0.1); }
.ag-pill-rate { color: #60a5fa; background: rgba(96,165,250,0.1); }
.ag-cb-timer {
    color: #ef4444;
    font-weight: 700;
    font-size: 10px;
    animation: ag-blink 1s ease-in-out infinite;
}
@keyframes ag-blink { 50% { opacity: 0.4; } }
.screen { min-height: 100vh; }

/* ===== AUTH SCREEN ===== */
#auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #12121c 0%, #08080c 70%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.auth-form, .modal-body form { display: flex; flex-direction: column; gap: 16px; }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input, .filter-select {
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-primary {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover { background: var(--accent-primary-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-sm { padding: 8px 14px; font-size: 13px; }

.error-msg {
    color: var(--accent-red);
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

.success-msg {
    color: var(--accent-green);
    font-size: 13px;
    text-align: center;
}

/* ===== TOP NAV ===== */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-sm { font-size: 24px; }

.nav-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center { flex: 1; max-width: 500px; margin: 0 24px; }

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-box input::placeholder { color: var(--text-muted); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-badge {
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.user-menu { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-btn:hover { background: var(--bg-hover); }

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 200;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-align: left;
}

.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item.danger { color: var(--accent-red); }
.dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.1); }

/* Max launch filter inputs — red border when empty (disabled) */
.max-launch-input:placeholder-shown {
    border-color: var(--accent-red) !important;
    opacity: 0.5;
}
.max-launch-input::placeholder {
    color: var(--accent-red);
    opacity: 0.6;
    font-size: 10px;
}

/* === Vision Settings — Cyan Frost Neon === */
.vn-sec {
    border: 1px solid rgba(6,182,212,.15);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 2px;
    box-shadow: 0 0 4px rgba(6,182,212,.04);
}
.vn-sec-title {
    font-size: 8px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: #22d3ee; margin-bottom: 3px;
    text-shadow: 0 0 6px rgba(6,182,212,.3);
    display: flex; align-items: center; gap: 3px;
}
.vn-sec-title::before { content: ''; width: 2px; height: 8px; background: #22d3ee; border-radius: 1px; }
.vn-fl { font-size: 8px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.vn-field { display: flex; flex-direction: column; gap: 1px; }
.vn-field input[type="number"],
.vn-field input[type="text"] { height: 22px; font-size: 10px; padding: 1px 5px; }
.vn-chk { display: flex; align-items: center; gap: 2px; font-size: 9px; cursor: pointer; white-space: nowrap; }
.vn-chk input { width: 10px; height: 10px; accent-color: #06b6d4; }

/* Filters split layout */
.vn-filters-split { display: flex; gap: 12px; align-items: flex-start; }
.vn-filters-left { flex: 0 0 auto; }
.vn-filters-right { flex: 0 0 auto; margin-left: auto; display: flex; flex-direction: column; gap: 3px; }

/* Dual column matrix */
.vn-dual-matrix { display: flex; gap: 16px; }
.vn-dm-col { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.vn-mh { color: var(--text-muted); font-weight: 700; font-size: 8px; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 1px; }
.vn-ml { color: var(--text-muted); font-size: 8px; white-space: nowrap; display: inline-block; width: 46px; }
.vn-dm-row { display: flex; align-items: center; gap: 3px; }
.vn-dm-row input[type="number"] { width: 42px !important; height: 22px !important; font-size: 10px !important; text-align: left; padding: 1px 4px !important; }

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.filter-select {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
}

.filter-select option { background: var(--bg-elevated); }

.modal-body .filter-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    background: var(--bg-input);
}

.modal-body .toggle-label {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.icon-btn.active { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.interval-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px 2px 2px 8px;
}

.interval-control input[type="number"] {
    width: 48px;
    padding: 4px 2px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.interval-control input[type="number"]::-webkit-inner-spin-button,
.interval-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.interval-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-apply {
    padding: 4px 10px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply:hover { background: var(--accent-primary-hover); }

/* ===== TOKEN GRID ===== */
.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== TOKEN CARD ===== */
.token-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
}

.token-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
}

.token-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.token-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.card-title-area { flex: 1; min-width: 0; }

.token-title-line {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tweet-icon {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.tweet-icon:hover { color: #1d9bf0; }

.token-symbol {
    color: var(--accent-primary);
    font-weight: 700;
}

.token-name {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.status-deployed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-body { padding: 0 16px 12px; }

.card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.card-info-row:last-child { border-bottom: none; }

.info-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.info-value.address {
    color: var(--accent-cyan);
    cursor: pointer;
}

.info-value.address:hover { text-decoration: underline; }

.info-value.contract-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 1px;
    opacity: 0.7;
    text-decoration: none;
}

.info-value.contract-inline:hover { opacity: 1; text-decoration: underline; }

.copy-icon {
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.info-value.address:hover .copy-icon { opacity: 1; }

/* Twitter / Deployer / Fee Recipient sections */
.card-section {
    padding: 10px 16px;
    border-top: 1px solid var(--border-subtle);
}

.card-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-placeholder svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.profile-info { flex: 1; min-width: 0; }

.profile-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    width: fit-content;
    max-width: 100%;
}

.profile-username:hover { text-decoration: underline; }

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.launch-count-badge {
    margin-right: 4px;
}

.ws-badge {
    margin-right: 4px;
}

.kf-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: default;
    flex-shrink: 0;
}

.kf-key-icon { flex-shrink: 0; }

.kf-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-hover);
}

.kf-badge.kf-zero .kf-num { color: var(--text-muted); background: var(--bg-hover); }
.kf-badge.kf-low .kf-num { color: var(--accent-yellow); background: rgba(234, 179, 8, 0.15); }
.kf-badge.kf-med .kf-num { color: var(--accent-orange); background: rgba(249, 115, 22, 0.15); }
.kf-badge.kf-high .kf-num { color: var(--accent-green); background: rgba(34, 197, 94, 0.15); }
.kf-badge.kf-unknown .kf-num { color: var(--text-muted); background: var(--bg-hover); }

.vc-contracts-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: default;
    flex-shrink: 0;
}

.vc-contract-icon { flex-shrink: 0; }

.vc-contract-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-hover);
}
.vc-contracts-badge.has-contracts .vc-contract-num { color: #e8aa4d; background: rgba(232, 170, 77, 0.15); }

.vc-smart-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: default;
    flex-shrink: 0;
}
.vc-smart-icon { flex-shrink: 0; }
.vc-smart-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: #f07371;
    background: rgba(240, 115, 113, 0.15);
}

.vc-reused-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: default;
    flex-shrink: 0;
}
.vc-recycle-icon { flex-shrink: 0; }
.vc-reused-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.profile-wallet {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.chain-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.chain-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.chain-base { background: var(--accent-blue); }
.chain-solana { background: var(--accent-purple); }
.chain-ethereum { background: var(--accent-cyan); }

.timestamp {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tweet link */
.tweet-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(29, 155, 240, 0.1);
    border: 1px solid rgba(29, 155, 240, 0.2);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #1d9bf0;
    font-weight: 600;
    transition: var(--transition-fast);
}

.tweet-link:hover {
    background: rgba(29, 155, 240, 0.2);
    color: #1d9bf0;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-sm { width: 400px; }
.modal-lg { width: 640px; }
.modal-notif { width: 580px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover { background: var(--accent-red); color: white; }

.modal-body { padding: 24px; }

/* Admin panel */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
}

.admin-tab {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-tab.active {
    background: var(--accent-primary);
    color: white;
}

.panel-actions { margin-bottom: 16px; }

.item-list { display: flex; flex-direction: column; gap: 8px; }

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.item-row .code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent-cyan);
    font-size: 13px;
}

.item-row .meta {
    color: var(--text-muted);
    font-size: 12px;
}

.badge-used {
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-available {
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.btn-danger {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

/* Wallet Scores panel */
.ws-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}
.ws-stats-bar b { color: var(--text-primary); }
.ws-stat-yellow b { color: var(--accent-yellow); }
.ws-role {
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}
.ws-role-dep { background: rgba(99,102,241,0.15); color: var(--accent-primary); }
.ws-role-fee { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }
.ws-status {
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}
.ws-status-done { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.ws-status-scanning { background: rgba(234,179,8,0.15); color: var(--accent-yellow); animation: pulse 1.5s infinite; }
.ws-status-pending { background: rgba(99,102,241,0.15); color: var(--accent-primary); }
.ws-status-error { background: rgba(239,68,68,0.15); color: var(--accent-red); }

/* Token detail modal */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.detail-label { color: var(--text-secondary); }

.detail-value {
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    word-break: break-all;
    text-align: right;
    max-width: 65%;
}

.detail-value.clickable {
    color: var(--accent-cyan);
    cursor: pointer;
}

.detail-value.clickable:hover { text-decoration: underline; }

.detail-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.detail-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.detail-profile-info { flex: 1; }
.detail-profile-name { font-size: 14px; font-weight: 600; }
.detail-profile-handle { font-size: 12px; color: var(--accent-blue); }
.detail-profile-wallet {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    color: var(--text-primary);
    animation: toast-in 0.3s ease;
    max-width: 360px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-blue); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Copy tooltip */
.copy-tooltip {
    position: fixed;
    padding: 4px 8px;
    background: var(--accent-green);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    pointer-events: none;
    animation: fade-out 1s ease forwards;
    z-index: 9999;
}

@keyframes fade-out {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== FILTER EXTRAS ===== */

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 4px;
}

.vision-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ===== VISION MODE ===== */

.vision-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    padding: 0 16px 16px;
}

.vision-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 12px;
}

.vision-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.vision-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.vision-add-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Sniper Panel */
.sniper-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.sniper-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sniper-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}
.sniper-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.ds-robot-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 5px;
    margin-left: 6px;
    line-height: 1;
    transition: all 0.2s;
}
.ds-robot-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
}
.sniper-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.sniper-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    font-variant-numeric: tabular-nums;
}
.sniper-unit {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Sniper Slot Buttons */
.sniper-slots {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sniper-slot {
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    color: var(--accent-green);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.sniper-slot:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}
.sniper-slot.sniping {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent-green);
    animation: slot-pulse 1s ease-in-out infinite alternate;
}
@keyframes slot-pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.sniper-gwei-slot {
    padding: 3px 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    color: #a855f7;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.sniper-gwei-slot:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
}
.vc-gwei-row { margin-top: 2px; }

.gwei-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    backdrop-filter: blur(4px);
}
.gwei-popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    width: 340px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    animation: gwei-popup-in 0.2s ease-out;
}
@keyframes gwei-popup-in {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.gwei-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gwei-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #a855f7;
}
.gwei-popup-close {
    all: unset;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 4px;
}
.gwei-popup-close:hover { color: var(--text-primary); }
.gwei-popup-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.gwei-preset-btn {
    padding: 10px 0;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    color: #a855f7;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.gwei-preset-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    transform: scale(1.03);
}
.gwei-popup-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.gwei-popup-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s;
}
.gwei-popup-input:focus { border-color: #a855f7; }
.gwei-popup-input.error { border-color: var(--accent-red); animation: shake 0.3s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.gwei-popup-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.gwei-popup-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}
.gwei-popup-edit { text-align: center; }
.gwei-edit-toggle {
    all: unset;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}
.gwei-edit-toggle:hover { color: var(--text-primary); }
.gwei-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}
.gwei-edit-grid.hidden { display: none; }
.gwei-edit-input {
    padding: 6px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.gwei-edit-input:focus { border-color: #a855f7; }
.gwei-edit-save {
    grid-column: 1 / -1;
    padding: 6px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    color: #a855f7;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.gwei-edit-save:hover { background: rgba(168, 85, 247, 0.25); }

.vision-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    padding: 0 4px;
}

.vision-col {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0 4px;
    transition: opacity 0.15s, transform 0.15s;
}

.vision-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08), transparent);
    border-bottom: 1px solid var(--border-color);
    cursor: grab;
    user-select: none;
}

.vision-col-header:active { cursor: grabbing; }

.vision-drag-handle {
    font-size: 14px;
    color: var(--text-muted);
    cursor: grab;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.vision-col-header:hover .vision-drag-handle { opacity: 1; }

.vision-col:nth-child(2) .vision-col-header {
    background: linear-gradient(to right, rgba(6, 182, 212, 0.08), transparent);
}

.vision-col:nth-child(3) .vision-col-header {
    background: linear-gradient(to right, rgba(34, 197, 94, 0.08), transparent);
}

.vision-col:nth-child(4) .vision-col-header {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.08), transparent);
}

.vision-col-icon {
    font-size: 18px;
}

.vision-col-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.vision-col-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.vision-hover-pause-badge {
    display: none;
    position: absolute;
    top: -30px;
    right: 8px;
    z-index: 20;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-orange);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    padding: 3px 8px;
    pointer-events: none;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

body.vision-hover-active .vision-col-body:hover > .vision-hover-pause-badge {
    display: flex;
}

.vision-col-count {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 10px;
}

.vision-col-edit,
.vision-col-close,
.vision-col-notif,
.vision-col-autosnipe {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.vision-col-edit:hover,
.vision-col-close:hover,
.vision-col-notif:hover,
.vision-col-autosnipe:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.vision-col-autosnipe.autosnipe-active {
    color: #22c55e;
}
.vision-col-autosnipe.autosnipe-active:hover {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
}

/* Auto-snipe config popup */
/* Tweet preview in vision cards */
.vc-tweet-preview {
    padding: 4px 8px;
    margin: 2px 0;
    background: rgba(29, 155, 240, .05);
    border-left: 2px solid rgba(29, 155, 240, .3);
    border-radius: 0 4px 4px 0;
    font-size: 10px;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
}
.vc-tweet-author {
    font-size: 11px;
    font-weight: 600;
    color: #1d9bf0;
    margin-bottom: 2px;
}
.vc-tweet-text {
    color: var(--text-secondary, #a0a3b1);
    font-size: inherit;
    line-height: 1.5;
    word-break: break-word;
}
.vc-tweet-img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 4px;
    margin-top: 3px;
    object-fit: cover;
}
.vc-tweet-loading {
    color: var(--text-muted);
    font-size: 9px;
    font-style: italic;
}

/* Auto-Snipe Popup — Purple Neon */
.autosnipe-popup {
    z-index: 9999;
    background: #12131a;
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 8px;
    padding: 12px;
    width: 220px;
    box-shadow: 0 0 20px rgba(99,102,241,.1), 0 0 2px rgba(99,102,241,.2), inset 0 0 20px rgba(99,102,241,.03);
}
.autosnipe-popup-title {
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 10px;
    color: #a5b4fc;
    letter-spacing: -.2px;
}
.autosnipe-field {
    margin-bottom: 7px;
}
.autosnipe-field label {
    display: block;
    font-size: 8.5px;
    font-weight: 500;
    color: #818cf8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.autosnipe-field input {
    width: 100%;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid rgba(99,102,241,.2);
    background: #0d0e15;
    color: #c8cad0;
    font-size: 10.5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -moz-appearance: textfield;
}
.autosnipe-field input::-webkit-inner-spin-button,
.autosnipe-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.autosnipe-field input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 6px rgba(99,102,241,.25);
}
.autosnipe-field input[type="checkbox"] {
    width: 13px; height: 13px;
    accent-color: #6366f1;
    cursor: pointer;
}
.autosnipe-buttons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.autosnipe-btn {
    flex: 1;
    height: 22px;
    border: none;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .2px;
}
.autosnipe-btn-save {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 0 10px rgba(99,102,241,.25);
}
.autosnipe-btn-save:hover {
    background: #4f46e5;
    box-shadow: 0 0 14px rgba(99,102,241,.4);
    transform: translateY(-1px);
}
.autosnipe-btn-cancel {
    background: #1a1b24;
    color: #6b6d7a;
    border: 1px solid rgba(99,102,241,.15);
}
.autosnipe-btn-cancel:hover {
    background: #22232e;
    color: #9a9caa;
}

/* Vision toolbar (search, count, pause, clear) */
.vision-col-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    min-width: 0;
}
.vision-col-toolbar .vision-col-search {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.vision-col-toolbar .vision-col-count {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vision-col-search {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    font-size: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.vision-col-search::placeholder {
    color: var(--text-muted);
}

.vision-col-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.vision-toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.vision-toolbar-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.vision-toolbar-btn.active {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
}

.vision-toolbar-btn-danger:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.vision-col-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.vision-filter-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.vision-col-feed {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.vision-col-feed .token-card {
    margin-bottom: 8px;
}

/* Vision card compact profiles */
.vc-profiles {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
}

.vc-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.vc-profile:last-child { border-bottom: none; }

.vc-profile-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    width: 26px;
    flex-shrink: 0;
}

.vc-profile-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

.vc-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 58px;
    justify-content: flex-end;
}

.vc-twitter {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    width: fit-content;
    max-width: 100%;
}

.vc-twitter:hover { text-decoration: underline; }

.vc-wallet-mini {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    opacity: 0.7;
    line-height: 1.2;
    text-decoration: none;
}
.vc-wallet-mini:hover { opacity: 1; color: var(--accent-blue); }

.vc-wallet-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.vc-basename {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.vc-funder {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.vc-fee {
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* Vision card avatar */
.vc-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.vc-avatar-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Vision card actions row (buy + gmgn) */
.vc-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-top: 1px solid var(--border-subtle);
}

.vc-buy-amount {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    outline: none;
    transition: var(--transition-fast);
}

.vc-buy-amount:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.vc-buy-btn {
    padding: 4px 10px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.vc-buy-btn:hover { background: #ea580c; }
.vc-buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.vc-buy-btn.vc-flash-ok {
    background: var(--accent-green) !important;
}

.vc-buy-btn.vc-flash-err {
    background: var(--accent-red) !important;
}

.vc-snipe-btn {
    padding: 4px 10px;
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}
.vc-snipe-btn:hover { background: var(--accent-blue); color: #fff; }
.vc-snipe-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vc-snipe-btn.sniping {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    animation: pulse-snipe 1s infinite;
}
.vc-snipe-btn.vc-flash-ok { background: var(--accent-green) !important; border-color: var(--accent-green) !important; color: #fff; }
.vc-snipe-btn.vc-flash-err { background: var(--accent-red) !important; border-color: var(--accent-red) !important; color: #fff; }

@keyframes pulse-snipe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.snipe-balance-bar {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    background: var(--surface-2);
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.snipe-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
}

.snipe-advanced {
    margin: 8px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.snipe-advanced summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}
.snipe-advanced .input-group { margin-top: 8px; }

.btn-sm { padding: 4px 8px; font-size: 11px; }
.btn-danger { background: var(--accent-red); color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.btn-danger:hover { opacity: 0.8; }

/* Slots config in modal */
.slots-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slot-config-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.slot-config-row .slot-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}
.slot-config-row input {
    padding: 5px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
}
.slot-config-row .slot-label { flex: 1; }
.slot-config-row .slot-amount { width: 80px; text-align: right; }

.vc-footer {
    padding: 4px 12px 6px;
}
.vc-fast-row {
    display: flex;
    align-items: center;
    gap: 3px;
}
.vc-fast-row .timestamp {
    margin-left: auto;
    flex-shrink: 0;
}
.vc-fast-btn {
    padding: 2px 0;
    border: none;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
    flex: 1;
    text-align: center;
    min-width: 0;
}
.vc-fast-buy { background: #22c55e; color: #fff; }
.vc-fast-buy:hover { background: #16a34a; }
.vc-fast-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vc-fast-btn.vc-flash-ok { background: var(--accent-green) !important; }
.vc-fast-btn.vc-flash-err { background: var(--accent-red) !important; }

.vc-gmgn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.vc-gmgn-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.vc-gmgn-logo {
    height: 12px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.vc-gmgn-btn:hover .vc-gmgn-logo {
    opacity: 1;
}

.vc-sigma-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: #29b6f6;
    opacity: 0.7;
    transition: all 0.15s;
}
.vc-sigma-btn:hover {
    background: var(--bg-hover);
    border-color: #29b6f6;
    opacity: 1;
}
.vc-sigma-logo {
    height: 14px;
    width: auto;
    border-radius: 50%;
}
.vn-tg-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.vn-tg-prefix, .vn-tg-suffix {
    padding: 6px 6px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    white-space: nowrap;
    user-select: none;
}
.vn-tg-row input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0;
    min-width: 0;
}

.vision-col-feed .empty-state {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.vision-add-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.vision-add-col:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.04);
}

.vision-add-col {
    margin: 0 4px;
}

/* Drag ghost */
.vision-col-ghost {
    position: fixed;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.85;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transform: scale(1.02);
}

/* Placeholder (source column during drag) */
.vision-col-placeholder {
    opacity: 0.25;
    border: 2px dashed var(--accent-primary);
    background: rgba(99, 102, 241, 0.04);
}

/* Container dragging state */
.vision-dragging .vision-col {
    transition: transform 0.2s ease, order 0.2s ease;
}

.vision-dragging { cursor: grabbing !important; }
.vision-dragging * { cursor: grabbing !important; }

/* Column resizer */
.vision-col-resizer {
    width: 8px;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
    user-select: none;
}

.vision-col-resizer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--border-color);
    transition: background 0.15s;
}

.vision-col-resizer:hover::before {
    background: var(--accent-primary);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.resizer-dots {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1;
    line-height: 1;
}

.vision-col-resizer:hover .resizer-dots {
    opacity: 1;
    color: var(--accent-primary);
}

/* Resizing state */
.vision-resizing { cursor: col-resize !important; }
.vision-resizing * { cursor: col-resize !important; pointer-events: none; }
.vision-resizing .vision-col-resizer { pointer-events: auto; }

/* ===== VISION GLOBAL SEARCH ===== */

.vision-global-search {
    padding: 8px 12px;
    display: flex;
    gap: 8px;
}

.vision-search-global {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.vision-search-global::placeholder { color: var(--text-muted); }
.vision-search-global:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.vision-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.vision-search-result {
    position: relative;
    max-width: 440px;
    width: 100%;
}

.vision-search-result .vision-card {
    margin: 0;
}

.vision-search-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition-fast);
}

.vision-search-close:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* ===== NOTIFICATION SETTINGS ===== */

.notif-section { margin-bottom: 0; }

.notif-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notif-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-section-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.notif-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.notif-rules-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.notif-rule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.notif-rule-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.notif-rule-keyword {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.notif-rule-sound {
    font-size: 11px;
    color: var(--text-muted);
}

.notif-rule-actions {
    display: flex;
    gap: 4px;
}

.notif-rule-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.notif-rule-actions button:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.notif-rule-actions button.danger:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.notif-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.notif-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-fast);
}

.notif-color-swatch:hover { transform: scale(1.15); }

.notif-color-swatch.selected {
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent-primary), 0 0 8px rgba(99, 102, 241, 0.4);
}

.notif-sound-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.notif-sound-picker .filter-select { flex: 1; }

.notif-preview-sound-btn {
    background: var(--bg-hover) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer;
    white-space: nowrap;
    padding: 6px 10px !important;
}

.notif-preview-sound-btn:hover {
    color: var(--text-primary) !important;
    background: var(--bg-elevated) !important;
}

.sound-upload-btn {
    background: var(--bg-hover) !important;
    color: var(--accent-primary) !important;
    border: 1px solid var(--border-color) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 6px 10px !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.sound-upload-btn:hover {
    color: var(--accent-primary-hover) !important;
    background: var(--bg-elevated) !important;
}

.whale-mute-row {
    padding: 8px 0 4px;
}
.whale-mute-row .toggle-label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-preview-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.notif-form-container {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.notif-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.notif-cancel-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
}

.notif-inline-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.notif-kf-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-kf-row {
    display: flex;
    gap: 12px;
}

/* Token card notification highlight */
.token-card.notif-highlight {
    animation: notif-pulse 2s ease-in-out;
}
.token-card.notif-hl-full {
    border-width: 2px;
}
.token-card.notif-hl-left {
    border-width: 1px;
    border-left-width: 3px;
    box-shadow: none !important;
}
.token-card.notif-hl-filled {
    border-width: 2px;
}

@keyframes notif-pulse {
    0% { box-shadow: 0 0 0 0 var(--notif-glow); }
    50% { box-shadow: 0 0 12px 4px var(--notif-glow); }
    100% { box-shadow: 0 0 4px 1px var(--notif-glow); }
}

/* Whale alert highlight — color set via --whale-color CSS variable */
.token-card.whale-highlight,
.vision-card.whale-highlight {
    --whale-color: #eab308;
    animation: whale-blink 0.5s ease-in-out 8 !important;
    border-color: var(--whale-color) !important;
}

@keyframes whale-blink {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 16px 4px color-mix(in srgb, var(--whale-color, #eab308) 50%, transparent); border-color: var(--whale-color, #eab308); }
}

.whale-toast {
    --wt-color: #eab308;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--wt-color);
    border-left: 3px solid var(--wt-color);
    color: var(--text-primary);
    padding: 0;
    border-radius: 10px;
    font-size: 13px;
    z-index: 10000;
    animation: whale-toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 12px color-mix(in srgb, var(--wt-color) 20%, transparent);
    overflow: hidden;
}
.wt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    border-bottom: 1px solid var(--border);
}
.wt-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: wt-pulse 1s ease-in-out infinite;
}
@keyframes wt-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
    50% { opacity: 0.7; box-shadow: 0 0 8px 2px currentColor; }
}
.wt-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--wt-color);
    flex: 1;
}
.wt-action {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-card);
    background: var(--wt-color);
    padding: 2px 8px;
    border-radius: 4px;
}
.wt-body {
    padding: 8px 14px 10px;
}
.wt-token-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.wt-token-addr {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 8px;
}
.wt-stats {
    display: flex;
    gap: 16px;
}
.wt-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.wt-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.wt-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--wt-color);
}
.wt-tx-link {
    display: block;
    padding: 6px 14px;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    border-top: 1px solid var(--border);
    font-family: monospace;
    transition: color 0.15s;
}
.wt-tx-link:hover { color: var(--wt-color); }

@keyframes whale-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Highlight style toggle */
.notif-style-toggle {
    display: flex;
    gap: 6px;
}
.notif-style-toggle .style-btn {
    all: unset;
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #1e1e30;
    border-radius: 6px;
    background: #0e0e14;
    color: #8888a8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    text-align: center;
}
.notif-style-toggle .style-btn:hover {
    border-color: #555;
    color: #e0e0e0;
    background: #22223a;
}
.notif-style-toggle .style-btn.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}
.notif-style-toggle .style-icon {
    font-size: 14px;
    line-height: 1;
}

/* Notification preview card */
.notif-preview-card {
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.notif-preview-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.notif-preview-text strong {
    color: var(--text-primary);
    font-size: 13px;
}

/* ===== VISION NOTIF POPUP ===== */
/* === Vision Settings Popup — Cyan Frost Neon === */
.vision-notif-popup {
    position: fixed;
    z-index: 9998;
    width: 406px;
    background: #12131a;
    border: 1px solid rgba(6,182,212,.25);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(6,182,212,.08), 0 8px 32px rgba(0,0,0,0.5);
}
.vision-notif-popup.hidden { display: none; }
.vision-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(6,182,212,.15);
    font-weight: 600;
    font-size: 11px;
    background: rgba(6,182,212,.03);
    color: #67e8f9;
}
.vision-notif-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 75vh;
    overflow-y: auto;
}
/* Override old input styles for neon look */
.vision-notif-body input[type="text"],
.vision-notif-body input[type="number"] {
    padding: 2px 6px; font-size: 11px; height: 26px;
    width: auto; min-width: 0; box-sizing: border-box;
    background: #0d0e14; border: 1px solid rgba(6,182,212,.15);
    border-radius: 3px; color: var(--text-primary); outline: none;
}
.vision-notif-body input:focus { border-color: #06b6d4; box-shadow: 0 0 4px rgba(6,182,212,.25); }
.vision-notif-body .notif-color-picker { gap: 3px; }
.vision-notif-body .notif-color-swatch { width: 14px; height: 14px; }
.vision-notif-body .notif-style-toggle .style-btn { padding: 3px 8px; font-size: 10px; height: 24px; }
.vision-notif-body .filter-select {
    padding: 2px 16px 2px 6px; font-size: 11px; height: 26px;
    background: #0d0e14; border: 1px solid rgba(6,182,212,.15);
    border-radius: 3px; color: var(--text-primary); width: auto;
}
.vn-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all .2s;
}
.vn-close-btn:hover { background: var(--accent-red); color: white; }

/* ===== PROFILE HOVER CARD ===== */
.profile-hover-card {
    position: fixed;
    z-index: 9999;
    min-width: 240px;
    max-width: 320px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: phc-fade-in 0.15s ease;
}

@keyframes phc-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.phc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.phc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    object-fit: cover;
}

.phc-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.phc-info {
    flex: 1;
    min-width: 0;
}

.phc-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phc-username:hover { text-decoration: underline; }

.phc-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.phc-stat {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.phc-kf {
    color: var(--accent-yellow);
    font-weight: 600;
}

.phc-kf .kf-key-icon { width: 11px; height: 11px; }

.phc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.phc-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.phc-prev {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.phc-prev-name {
    color: var(--accent-orange);
    font-weight: 600;
}

.phc-contracts {
    font-size: 10px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.phc-wallet {
    font-size: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-muted);
    opacity: 0.7;
}

.hoverable-profile {
    cursor: default;
}

/* Tweet hover card */
.tweet-hover-card {
    position: fixed;
    z-index: 9999;
    min-width: 220px;
    max-width: 300px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: phc-fade-in 0.15s ease;
}
.thc-author {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.thc-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}
.thc-loading, .thc-error {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topnav { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
    .nav-center { order: 3; max-width: 100%; margin: 0; flex-basis: 100%; }
    .filters-bar { padding: 10px 16px; }
    .token-grid { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
    .modal-content { width: calc(100% - 32px); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .auth-container { margin: 16px; padding: 24px; }
    .nav-stats { display: none; }
}

/* ===== SNIPE POPUP ===== */
.snipe-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    animation: snipe-popup-in 0.3s ease;
    cursor: pointer;
    min-width: 280px;
}
.snipe-popup-success {
    border-color: var(--accent-green);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.25);
}
.snipe-popup-fail {
    border-color: var(--accent-red);
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.25);
}
.snipe-popup-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
}
.snipe-popup-success .snipe-popup-icon { color: var(--accent-green); }
.snipe-popup-fail .snipe-popup-icon { color: var(--accent-red); }
.snipe-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.snipe-popup-details {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.snipe-popup-tx {
    display: inline-block;
    font-size: 11px;
    color: var(--accent-blue);
    text-decoration: underline;
    margin-bottom: 4px;
}
.snipe-popup-block {
    font-size: 11px;
    color: var(--text-muted);
}
@keyframes snipe-popup-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== BOTTOM BAR ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 16px;
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
}
.bottom-bar-left,
.bottom-bar-center,
.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bottom-bar-left { flex: 1; }
.bottom-bar-center { flex: 0 0 auto; }
.bottom-bar-right { flex: 1; justify-content: flex-end; }

/* Status indicator with animated bars */
.bottom-bar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-elevated);
    cursor: default;
}
.bottom-bar-status.online {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.06);
}
.bottom-bar-status-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.bottom-bar-sep {
    width: 1px;
    height: 12px;
    background: var(--border-color);
    margin: 0 2px;
}
.bottom-bar-status:not(.online) .bottom-bar-sep,
.bottom-bar-status:not(.online) .bottom-bar-stat {
    display: none;
}
.bottom-bar-stat {
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.bottom-bar-status.online .bottom-bar-status-text,
.bottom-bar-status.online .bottom-bar-stat {
    color: var(--accent-green);
}

.status-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}
.status-bars span {
    display: block;
    width: 3px;
    background: var(--text-muted);
    border-radius: 1px;
}
.status-bars span:nth-child(1) { height: 4px; }
.status-bars span:nth-child(2) { height: 8px; }
.status-bars span:nth-child(3) { height: 12px; }
.status-bars.active span { background: var(--accent-green); }
.status-bars.active span:nth-child(1) { animation: bar-pulse 1.2s ease-in-out infinite 0s; }
.status-bars.active span:nth-child(2) { animation: bar-pulse 1.2s ease-in-out infinite 0.2s; }
.status-bars.active span:nth-child(3) { animation: bar-pulse 1.2s ease-in-out infinite 0.4s; }
@keyframes bar-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.bottom-bar-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: none;
    border: none;
    border-top: 2px solid transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    height: 32px;
}
.bottom-bar-tab:hover { color: var(--text-secondary); }
.bottom-bar-tab.active { color: var(--accent-blue); border-top-color: var(--accent-blue); }
.bottom-bar-tab svg { opacity: 0.7; }
.bottom-bar-tab.active svg { opacity: 1; }

.price-ticker {
    display: flex;
    align-items: center;
    gap: 4px;
}
.price-ticker svg { flex-shrink: 0; }
.price-ticker img { flex-shrink: 0; border-radius: 50%; }
#price-btc svg, #price-btc img { color: #f7931a; }
#price-eth svg { color: #627eea; }
#price-sol svg, #price-sol img { color: #9945ff; }
#price-bnb svg { color: #f3ba2f; }
.price-val {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.price-ticker.up .price-val { color: var(--accent-green); }
.price-ticker.down .price-val { color: var(--accent-red); }

/* Add padding to main content so it doesn't hide behind bottom bar */
.app-container { padding-bottom: 40px; }
