/* ==========================================================================
   ScamHound - Production-Grade Dark Theme CSS
   Real-time Rug Pull Detection for Bags.fm
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   2. CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Background Colors - GitHub Dark inspired */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #1c2128;
    
    /* Border Colors */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --border-focus: #58a6ff;
    
    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-disabled: #484f58;
    
    /* Accent Colors */
    --accent-primary: #58a6ff;
    --accent-secondary: #00d4aa;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #00d4aa 100%);
    
    /* Risk Level Colors */
    --risk-low: #3fb950;
    --risk-low-bg: rgba(63, 185, 80, 0.15);
    --risk-moderate: #d29922;
    --risk-moderate-bg: rgba(210, 153, 34, 0.15);
    --risk-high: #db6d28;
    --risk-high-bg: rgba(219, 109, 40, 0.15);
    --risk-critical: #f85149;
    --risk-critical-bg: rgba(248, 81, 73, 0.15);
    --risk-unknown: #6e7681;
    --risk-unknown-bg: rgba(110, 118, 129, 0.15);
    
    /* Status Colors */
    --status-success: #3fb950;
    --status-warning: #d29922;
    --status-error: #f85149;
    --status-info: #58a6ff;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow-low: 0 0 20px rgba(63, 185, 80, 0.3);
    --shadow-glow-moderate: 0 0 20px rgba(210, 153, 34, 0.3);
    --shadow-glow-high: 0 0 20px rgba(219, 109, 40, 0.3);
    --shadow-glow-critical: 0 0 20px rgba(248, 81, 73, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Layout Components
   -------------------------------------------------------------------------- */

/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-lg) var(--space-xl);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: calc(var(--space-xs) * -1);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.stat {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-primary);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-xs);
}

.stat-warning .stat-value {
    color: var(--risk-high);
}

.stat-danger .stat-value {
    color: var(--risk-critical);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-lg) var(--space-xl);
    margin-top: var(--space-2xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content p {
    margin: var(--space-xs) 0;
}

.footer-content a {
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   5. Manual Scan Section
   -------------------------------------------------------------------------- */
.scan-section {
    margin-bottom: var(--space-xl);
}

.scan-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.scan-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.scan-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: var(--space-sm);
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.export-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.export-btn span {
    font-size: 0.9rem;
}

.export-csv:hover {
    border-color: var(--risk-low);
    color: var(--risk-low);
}

.export-pdf:hover {
    border-color: var(--risk-critical);
    color: var(--risk-critical);
}

.scan-input-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.scan-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.scan-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.scan-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.scan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.scan-button:hover:not(:disabled) {
    background: #79b8ff;
    border-color: #79b8ff;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    transform: translateY(-1px);
}

.scan-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.scan-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Spinner inside button */
.scan-button .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Toast positioning for scan feedback */
.toast {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
}

/* Responsive scan section */
@media (max-width: 768px) {
    .scan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .scan-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .export-buttons {
        width: 100%;
    }
    
    .export-btn {
        flex: 1;
        justify-content: center;
    }
    
    .scan-input-group {
        flex-direction: column;
    }
    
    .scan-button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Auto-Scan Banner & Toggle Styles (Prominent)
   -------------------------------------------------------------------------- */

/* Auto-Scan Banner - Full width prominent section */
.autoscan-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 2px solid var(--border-primary);
    padding: var(--space-lg) var(--space-xl);
    transition: all var(--transition-normal);
}

.autoscan-banner.active {
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.1) 0%, rgba(63, 185, 80, 0.05) 100%);
    border-bottom-color: var(--risk-low);
    animation: autoscanPulse 2s ease-in-out infinite;
}

@keyframes autoscanPulse {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(63, 185, 80, 0.1);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(63, 185, 80, 0.2);
    }
}

.autoscan-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Label Section */
.autoscan-label-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.autoscan-icon {
    font-size: 1.75rem;
    animation: iconSpin 4s linear infinite;
}

.autoscan-banner.active .autoscan-icon {
    animation: iconSpin 2s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.autoscan-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.autoscan-status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--risk-unknown-bg);
    color: var(--risk-unknown);
    border: 2px solid var(--risk-unknown);
    transition: all var(--transition-fast);
}

.autoscan-status-badge.active {
    background: var(--risk-low-bg);
    color: var(--risk-low);
    border-color: var(--risk-low);
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.4);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(63, 185, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(63, 185, 80, 0.7);
    }
}

/* Toggle Section */
.autoscan-toggle-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.autoscan-status-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.autoscan-banner.active .autoscan-status-text {
    color: var(--risk-low);
    font-weight: 600;
}

/* Large Toggle Switch */
.autoscan-toggle-large {
    position: relative;
    width: 70px;
    height: 36px;
    background: linear-gradient(135deg, #5a3a3a 0%, #3a2a2a 100%);
    border: 2px solid #ff6b6b;
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.autoscan-toggle-large:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.autoscan-toggle-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.autoscan-toggle-large.enabled {
    background: linear-gradient(135deg, #2d5a3a 0%, #1a3a2a 100%);
    border-color: #3fb950;
    animation: togglePulse 2s ease-in-out infinite;
}

@keyframes togglePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(63, 185, 80, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(63, 185, 80, 0.7), 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.autoscan-slider-large {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.autoscan-toggle-large.enabled .autoscan-slider-large {
    transform: translateX(34px);
}

/* Legacy styles for backward compatibility */
.autoscan-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.autoscan-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.autoscan-status.enabled {
    color: var(--risk-low);
}

.autoscan-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.autoscan-toggle:hover:not(:disabled) {
    border-color: var(--border-primary);
}

.autoscan-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.autoscan-toggle.enabled {
    background: var(--risk-low);
    border-color: var(--risk-low);
}

.autoscan-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.autoscan-toggle.enabled .autoscan-slider {
    transform: translateX(24px);
}

/* Responsive Auto-Scan Banner */
@media (max-width: 768px) {
    .autoscan-banner {
        padding: var(--space-md);
    }
    
    .autoscan-banner-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .autoscan-label-section {
        justify-content: center;
    }
    
    .autoscan-title {
        font-size: 1.25rem;
    }
    
    .autoscan-toggle-section {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .autoscan-status-text {
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   6. Token Table
   -------------------------------------------------------------------------- */
.token-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.token-table thead {
    background: var(--bg-tertiary);
}

.token-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
}

.token-table th:last-child {
    text-align: right;
}

.token-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-secondary);
    vertical-align: middle;
}

.token-table tbody tr {
    transition: background-color var(--transition-fast);
}

.token-table tbody tr:hover {
    background-color: var(--bg-hover);
}

.token-table tbody tr:last-child td {
    border-bottom: none;
}

/* Token cell styling */
.token-table td:first-child a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.token-table td:first-child a:hover {
    text-decoration: none;
}

.token-table td:first-child strong {
    color: var(--accent-primary);
    font-size: 1rem;
}

.token-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Creator styling */
.creator {
    color: var(--accent-secondary);
    font-weight: 500;
}

.creator-muted {
    color: var(--text-muted);
    font-style: italic;
}

/* Verdict cell */
.verdict-cell {
    max-width: 250px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Time cell */
.time-cell {
    text-align: right;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    color: var(--text-secondary);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   7. Score & Risk Badges
   -------------------------------------------------------------------------- */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-normal);
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-badge.large {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

/* Risk level specific styles */
.risk-low, .risk-badge.risk-low {
    background: var(--risk-low-bg);
    color: var(--risk-low);
    border-color: var(--risk-low);
}

.risk-moderate, .risk-badge.risk-moderate {
    background: var(--risk-moderate-bg);
    color: var(--risk-moderate);
    border-color: var(--risk-moderate);
}

.risk-high, .risk-badge.risk-high {
    background: var(--risk-high-bg);
    color: var(--risk-high);
    border-color: var(--risk-high);
}

.risk-critical, .risk-badge.risk-critical {
    background: var(--risk-critical-bg);
    color: var(--risk-critical);
    border-color: var(--risk-critical);
}

.risk-unknown, .risk-badge.risk-unknown {
    background: var(--risk-unknown-bg);
    color: var(--risk-unknown);
    border-color: var(--risk-unknown);
}

/* Score badge risk colors */
tr.risk-low .score-badge {
    background: var(--risk-low-bg);
    color: var(--risk-low);
    border-color: var(--risk-low);
    box-shadow: var(--shadow-glow-low);
}

tr.risk-moderate .score-badge {
    background: var(--risk-moderate-bg);
    color: var(--risk-moderate);
    border-color: var(--risk-moderate);
    box-shadow: var(--shadow-glow-moderate);
}

tr.risk-high .score-badge {
    background: var(--risk-high-bg);
    color: var(--risk-high);
    border-color: var(--risk-high);
    box-shadow: var(--shadow-glow-high);
}

tr.risk-critical .score-badge {
    background: var(--risk-critical-bg);
    color: var(--risk-critical);
    border-color: var(--risk-critical);
    box-shadow: var(--shadow-glow-critical);
}

tr.risk-unknown .score-badge {
    background: var(--risk-unknown-bg);
    color: var(--risk-unknown);
    border-color: var(--risk-unknown);
}

/* Row risk highlighting */
tr.risk-low {
    border-left: 3px solid var(--risk-low);
}

tr.risk-moderate {
    border-left: 3px solid var(--risk-moderate);
}

tr.risk-high {
    border-left: 3px solid var(--risk-high);
}

tr.risk-critical {
    border-left: 3px solid var(--risk-critical);
}

tr.risk-unknown {
    border-left: 3px solid var(--risk-unknown);
}

/* --------------------------------------------------------------------------
   8. Token Detail Page
   -------------------------------------------------------------------------- */
.detail-page {
    max-width: 900px;
}

/* Token Header */
.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.token-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.token-name-full {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.token-mint {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.score-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.big-score {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 3px solid;
    box-shadow: var(--shadow-lg);
}

/* Risk background variants */
.risk-bg-low {
    border-left: 4px solid var(--risk-low);
}

.risk-bg-moderate {
    border-left: 4px solid var(--risk-moderate);
}

.risk-bg-high {
    border-left: 4px solid var(--risk-high);
}

.risk-bg-critical {
    border-left: 4px solid var(--risk-critical);
}

.risk-bg-unknown {
    border-left: 4px solid var(--risk-unknown);
}

/* Verdict Box */
.verdict-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.verdict-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.verdict-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.risk-border-low {
    border-left: 4px solid var(--risk-low);
}

.risk-border-moderate {
    border-left: 4px solid var(--risk-moderate);
}

.risk-border-high {
    border-left: 4px solid var(--risk-high);
}

.risk-border-critical {
    border-left: 4px solid var(--risk-critical);
}

.risk-border-unknown {
    border-left: 4px solid var(--risk-unknown);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.detail-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-secondary);
}

/* Risk Factors & Safe Signals Lists */
.risk-factors, .safe-signals {
    list-style: none;
}

.risk-item, .safe-item {
    padding: var(--space-sm) 0;
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.5;
}

.risk-item::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.safe-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--risk-low);
    font-weight: 700;
}

.no-items {
    color: var(--text-muted);
    font-style: italic;
    padding: var(--space-sm) 0;
}

/* Data Tables */
.data-tables {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-secondary);
}

.data-table td:first-child {
    color: var(--text-secondary);
    width: 40%;
}

.data-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Warning text */
.warning-text {
    color: var(--risk-high);
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: var(--space-sm);
}

/* Link Buttons */
.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Embed Section */
.embed-section .embed-code {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: nowrap;
}

/* Timestamps */
.timestamps {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.timestamps p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timestamps strong {
    color: var(--text-primary);
}

/* Error State */
.error-state {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.error-state h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    gap: var(--space-xs);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: #79b8ff;
    border-color: #79b8ff;
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-primary);
}

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

.btn-danger {
    background: var(--risk-critical);
    color: white;
    border-color: var(--risk-critical);
}

.btn-danger:hover {
    background: #ff6b64;
    border-color: #ff6b64;
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.3);
}

.btn-success {
    background: var(--risk-low);
    color: white;
    border-color: var(--risk-low);
}

.btn-success:hover {
    background: #4fd166;
    border-color: #4fd166;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

/* --------------------------------------------------------------------------
   10. Form Elements (Settings Page)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group .help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.toggle-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Section */
.form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-secondary);
}

/* --------------------------------------------------------------------------
   11. Widget Styles
   -------------------------------------------------------------------------- */
.widget-container {
    display: inline-block;
}

/* Widget styles are mostly inline in widget.html, 
   but we provide enhanced styles for widget integration */
.widget-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.widget-preview iframe {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   12. Loading States & Animations
   -------------------------------------------------------------------------- */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-hover) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --------------------------------------------------------------------------
   13. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--status-success);
}

.toast.error {
    border-left: 4px solid var(--status-error);
}

.toast.warning {
    border-left: 4px solid var(--status-warning);
}

.toast.info {
    border-left: 4px solid var(--status-info);
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   14. Navigation (if needed)
   -------------------------------------------------------------------------- */
.nav-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 0 var(--space-xl);
}

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

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom-color: var(--accent-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   15. Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--status-success); }
.text-warning { color: var(--status-warning); }
.text-error { color: var(--status-error); }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   16. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --space-xl: 20px;
        --space-lg: 16px;
    }
    
    header {
        padding: var(--space-md);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    main {
        padding: var(--space-md);
    }
    
    .token-table-container {
        overflow-x: auto;
    }
    
    .token-table {
        min-width: 800px;
    }
    
    .token-header {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .timestamps {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nav-content {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        gap: var(--space-md);
    }
    
    .footer-content {
        padding: 0 var(--space-md);
    }
    
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .big-score {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .token-info h2 {
        font-size: 1.5rem;
    }
    
    .link-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   17. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header, footer, .nav-bar {
        display: none;
    }
    
    .token-table-container,
    .detail-section,
    .token-header {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* --------------------------------------------------------------------------
   18. Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-primary) var(--bg-primary);
}

/* --------------------------------------------------------------------------
   19. Selection Styling
   -------------------------------------------------------------------------- */
::selection {
    background: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   20. WebSocket Connection Indicator
   -------------------------------------------------------------------------- */
.ws-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: 0 0 8px currentColor;
}

.ws-connected {
    background-color: var(--status-success);
    color: var(--status-success);
    animation: wsPulse 2s ease-in-out infinite;
}

.ws-disconnected {
    background-color: var(--status-error);
    color: var(--status-error);
}

@keyframes wsPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--status-success);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 16px var(--status-success);
    }
}

/* --------------------------------------------------------------------------
   21. New Score Row Animation
   -------------------------------------------------------------------------- */
.new-score-row {
    animation: slideInFromTop 0.5s ease-out, highlightGlow 2s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes highlightGlow {
    0% {
        background-color: rgba(88, 166, 255, 0.3);
    }
    50% {
        background-color: rgba(88, 166, 255, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

/* Risk-specific glow effects for new rows */
.new-score-row.risk-low {
    animation: slideInFromTop 0.5s ease-out, highlightGlowLow 2s ease-out;
}

.new-score-row.risk-moderate {
    animation: slideInFromTop 0.5s ease-out, highlightGlowModerate 2s ease-out;
}

.new-score-row.risk-high {
    animation: slideInFromTop 0.5s ease-out, highlightGlowHigh 2s ease-out;
}

.new-score-row.risk-critical {
    animation: slideInFromTop 0.5s ease-out, highlightGlowCritical 2s ease-out;
}

@keyframes highlightGlowLow {
    0% { background-color: rgba(63, 185, 80, 0.3); }
    50% { background-color: rgba(63, 185, 80, 0.15); }
    100% { background-color: transparent; }
}

@keyframes highlightGlowModerate {
    0% { background-color: rgba(210, 153, 34, 0.3); }
    50% { background-color: rgba(210, 153, 34, 0.15); }
    100% { background-color: transparent; }
}

@keyframes highlightGlowHigh {
    0% { background-color: rgba(219, 109, 40, 0.3); }
    50% { background-color: rgba(219, 109, 40, 0.15); }
    100% { background-color: transparent; }
}

@keyframes highlightGlowCritical {
    0% { background-color: rgba(248, 81, 73, 0.3); }
    50% { background-color: rgba(248, 81, 73, 0.15); }
    100% { background-color: transparent; }
}

/* --------------------------------------------------------------------------
   22. Toast Notification Enhancements
   -------------------------------------------------------------------------- */
.toast.new-score-toast {
    border-left-width: 4px;
}

.toast.new-score-toast.critical,
.toast.new-score-toast.high {
    background: var(--risk-critical-bg);
    border-left-color: var(--risk-critical);
}

.toast.new-score-toast.moderate {
    background: var(--risk-moderate-bg);
    border-left-color: var(--risk-moderate);
}

.toast.new-score-toast.low {
    background: var(--risk-low-bg);
    border-left-color: var(--risk-low);
}

/* --------------------------------------------------------------------------
   23. Disclaimer Banner Styles
   -------------------------------------------------------------------------- */

/* Disclaimer Banner - Collapsible warning/info section */
.disclaimer-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid var(--status-warning);
    border-radius: var(--radius-md);
    margin: var(--space-lg) var(--space-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.disclaimer-banner.collapsed {
    border-left-color: var(--text-muted);
}

.disclaimer-banner.collapsed .disclaimer-content {
    max-height: 0;
    opacity: 0;
    padding: 0 var(--space-lg);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    background: rgba(210, 153, 34, 0.05);
    transition: background var(--transition-fast);
}

.disclaimer-header:hover {
    background: rgba(210, 153, 34, 0.1);
}

.disclaimer-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--status-warning);
    margin: 0;
}

.disclaimer-banner.collapsed .disclaimer-title {
    color: var(--text-secondary);
}

.disclaimer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-fast);
    padding: 0;
}

.disclaimer-toggle:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.disclaimer-toggle .chevron {
    transition: transform var(--transition-normal);
}

.disclaimer-banner.collapsed .disclaimer-toggle .chevron {
    transform: rotate(-90deg);
}

.disclaimer-content {
    max-height: 600px;
    opacity: 1;
    padding: var(--space-lg);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.disclaimer-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.disclaimer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.disclaimer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disclaimer-content li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    padding: var(--space-sm) 0;
    padding-left: var(--space-md);
    position: relative;
    border-bottom: 1px solid var(--border-secondary);
}

.disclaimer-content li:last-child {
    border-bottom: none;
}

.disclaimer-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--status-warning);
    font-weight: bold;
}

.disclaimer-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.disclaimer-content .disclaimer-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-secondary);
    font-style: italic;
    color: var(--text-muted);
}

/* Footer Disclaimer */
.footer-disclaimer {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border-secondary);
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Token Detail Disclaimer */
.token-disclaimer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid var(--status-warning);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.token-disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.token-disclaimer .disclaimer-icon {
    color: var(--status-warning);
    margin-right: var(--space-xs);
}

/* Responsive Disclaimer */
@media (max-width: 768px) {
    .disclaimer-banner {
        margin: var(--space-md);
    }
    
    .disclaimer-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .disclaimer-content {
        padding: var(--space-md);
    }
    
    .disclaimer-content li {
        font-size: 0.85rem;
    }
    
    .footer-disclaimer p {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   24. Watchlist Styles
   -------------------------------------------------------------------------- */

/* Watchlist Form */
.watchlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.watchlist-form .form-row {
    display: flex;
    gap: var(--space-sm);
}

.watchlist-form .form-row:last-child {
    margin-top: var(--space-sm);
}

.watchlist-form textarea.scan-input {
    resize: vertical;
    min-height: 60px;
    font-family: var(--font-primary);
}

/* Watchlist Header */
.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.watchlist-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.watchlist-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Watchlist Table */
.watchlist-table th,
.watchlist-table td {
    padding: var(--space-md);
}

.watchlist-table th:last-child,
.watchlist-table td:last-child {
    text-align: center;
}

/* Wallet Address Link */
.wallet-address {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-decoration: none;
    background: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    transition: all var(--transition-fast);
}

.wallet-address:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    text-decoration: none;
}

/* Wallet Label */
.wallet-label {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.label-muted {
    color: var(--text-muted);
    font-style: italic;
}

/* Wallet Notes */
.wallet-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-cell {
    max-width: 250px;
}

/* Alert Count */
.alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: var(--space-xs) var(--space-sm);
    background: var(--risk-high-bg);
    color: var(--risk-high);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}

.alert-count:empty,
.alert-count[data-count="0"] {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Small Button Variant */
.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
}

/* Responsive Watchlist */
@media (max-width: 768px) {
    .watchlist-form .form-row {
        flex-direction: column;
    }
    
    .watchlist-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .watchlist-table {
        min-width: 900px;
    }
    
    .wallet-notes {
        max-width: 150px;
    }
}
