/* ============================================
   POLYOM - LIQUID GLASS DESIGN SYSTEM
   Premium Glass Morphism Interface
   ============================================ */

:root {
    /* === DEEP GRAPHITE BACKGROUND === */
    --bg-graphite: #1a1c20;
    --bg-graphite-light: #22252a;
    --bg-graphite-dark: #141518;
    
    /* Legacy compatibility */
    --bg-base: #1a1c20;
    --bg-surface: #1e2024;
    --bg-elevated: #22252a;
    --bg-overlay: #282b31;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(255, 255, 255, 0.07);
    --bg-color: #1a1c20;
    --bg-card: rgba(30, 32, 36, 0.95);
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    
    /* Background gradient (subtle lighting effect) */
    --bg-gradient: linear-gradient(135deg, #1e2024 0%, #141518 100%);
    
    /* === LIQUID GLASS EFFECT === */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-bg-active: rgba(255, 255, 255, 0.07);
    --card-bg: rgba(255, 255, 255, 0.03);
    
    /* Glass border - gradient from top (bright) to bottom (faded) */
    --glass-border-top: rgba(255, 255, 255, 0.15);
    --glass-border-side: rgba(255, 255, 255, 0.08);
    --glass-border-bottom: rgba(255, 255, 255, 0.03);
    --spotlight-color: rgba(255, 255, 255, 0.25);
    
    /* Blur intensity */
    --glass-blur: 20px;
    --glass-blur-strong: 30px;
    
    /* Glass radius - rounded like liquid */
    --glass-radius: 20px;
    --glass-radius-sm: 12px;
    --glass-radius-lg: 24px;
    
    /* Glass shadow - soft and diffused */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                    0 2px 8px rgba(0, 0, 0, 0.2);
    --glass-shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.4),
                             0 4px 16px rgba(0, 0, 0, 0.25);
    
    /* Inner glow for buttons */
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* === STRICT TYPOGRAPHY === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Text colors - Metallic hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #8b9bb4;  /* Metallic gray */
    --text-tertiary: #5a6478;
    --text-disabled: #3d4452;
    
    /* Letter spacing for uppercase labels */
    --letter-spacing-wide: 0.08em;
    
    /* === BORDERS === */
    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* === MINIMAL COLOR ACCENTS === */
    /* Brand accent - Blue (glass effect) - matching logo */
    --accent: #00a8ff;
    --accent-hover: #33bbff;
    --accent-bright: #33bbff;
    --accent-muted: rgba(0, 168, 255, 0.15);
    --accent-subtle: rgba(0, 168, 255, 0.08);
    --accent-border: rgba(0, 168, 255, 0.4);
    --accent-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    --primary: #00a8ff;
    
    /* Green - Muted mint (not acid lime) */
    --positive: #4ade94;
    --positive-muted: rgba(74, 222, 148, 0.12);
    --positive-border: rgba(74, 222, 148, 0.25);
    
    /* Red - Soft coral */
    --negative: #f87171;
    --negative-muted: rgba(248, 113, 113, 0.12);
    --negative-border: rgba(248, 113, 113, 0.25);
    
    /* Warning */
    --warning: #fbbf24;
    --warning-muted: rgba(251, 191, 36, 0.12);
    
    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    
    /* === MODAL OVERLAY === */
    --overlay-dark: rgba(0, 0, 0, 0.80);
    
    /* === TRANSITIONS === */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.25s;
    --duration-slow: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-graphite);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* === УМНАЯ КАРТОЧКА === */
.smart-card {
    background: var(--card-bg);
    border-radius: 16px;
    position: relative;
    padding: 2px; /* Место под границу */
    isolation: isolate;
    transition: transform 0.1s ease; /* Мягкость наклона */
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: default;
}

/* Внутренний контент карточки (чтобы перекрыть фон границы) */
.smart-card-content {
    background: #0f1012; /* Чуть светлее фона body */
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}

/* === ФИШКА 1: SPOTLIGHT BORDER === */
/* Это псевдо-элемент, который перемещается JS-ом */
.smart-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    z-index: -1;
    
    /* Магия: градиент следует за мышкой используя CSS-переменные --x и --y */
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y), 
        var(--spotlight-color), 
        transparent 40%
    );
    opacity: 0; /* По умолчанию скрыто */
    transition: opacity 0.5s;
}

/* Показываем подсветку только когда мышь рядом или при ховере */
.smart-card:hover::before {
    opacity: 1;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Класс для карточек, модальных окон и панелей - Liquid Glass */
.glass-panel {
    /* Liquid Glass background */
    background: var(--glass-bg);
    
    /* Strong blur effect */
    backdrop-filter: blur(var(--glass-blur)); 
    -webkit-backdrop-filter: blur(var(--glass-blur)); 
    
    /* Rounded corners like liquid */
    border-radius: var(--glass-radius);
    
    /* Soft diffused shadow */
    box-shadow: var(--glass-shadow);
    
    /* For glass border effect */
    position: relative;
    overflow: hidden;
}

/* Glass border - brighter on top, fading down */
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        180deg,
        var(--glass-border-top) 0%,
        var(--glass-border-side) 30%,
        var(--glass-border-bottom) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(26, 28, 32, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 12px;
    transition: all var(--duration-normal) var(--ease-out);
}

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

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: var(--accent);
}

.logo:active {
    transform: scale(0.98);
}

.logo-image {
    width: 32px;
    height: 32px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    z-index: 1;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    position: relative;
    z-index: 1;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
    padding-left: 32px;
    border-left: 1px solid var(--border-subtle);
}

.nav-link {
    text-decoration: none;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-active);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search Input */
.search-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 14px;
    width: 260px;
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.search-input:hover {
    border-color: var(--border-default);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-overlay);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

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

/* Control Button */
.control-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-tertiary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.control-btn:hover {
    background: var(--bg-overlay);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

/* Connect Wallet Button - Glass Purple Accent */
.connect-wallet-btn {
    background: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: var(--glass-radius-sm);
    color: white;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--duration-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-inner-glow), var(--accent-glow);
}

/* Inner glow for convex appearance */
.connect-wallet-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.connect-wallet-btn:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: var(--glass-inner-glow), 
                0 0 30px rgba(0, 168, 255, 0.4);
}

.connect-wallet-btn:active {
    transform: translateY(0);
}

.connect-wallet-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.connect-wallet-btn:disabled:hover {
    background: var(--accent);
    transform: none;
    box-shadow: var(--accent-glow);
}

.connect-wallet-btn .loading-spinner {
    animation: spin 1s linear infinite;
}


/* ============================================
   ACCOUNT PANEL (после подключения)
   ============================================ */
.account-panel {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Deposit Button - Strict Professional Style */
.deposit-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deposit-btn::before {
    content: '+';
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.deposit-btn:hover {
    background: #0099ff;
    transform: translateY(-1px);
}

.deposit-btn:active {
    transform: translateY(0);
}

/* Withdraw Button - Premium Style */
.withdraw-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 9px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.withdraw-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.withdraw-btn:active {
    transform: translateY(0);
}

/* ============================================
   GLIDE DEPOSIT MODAL
   ============================================ */
.glide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

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

.glide-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.glide-modal-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all var(--duration-fast);
}

.glide-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.glide-modal-body {
    flex: 1;
    overflow: hidden;
}

.deposit-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deposit-info {
    text-align: center;
}

.deposit-icon {
    margin-bottom: 12px;
}

.deposit-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

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

.deposit-address-box {
    background: var(--bg-overlay);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.address-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.address-value {
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 12px;
    padding: 8px;
    background: var(--bg-surface);
    border-radius: 8px;
}

.copy-address-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--duration-fast);
}

.copy-address-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.deposit-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
}

.deposit-warning svg {
    flex-shrink: 0;
    color: var(--warning);
    margin-top: 2px;
}

.deposit-warning span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.deposit-token-info {
    background: var(--bg-overlay);
    border-radius: 10px;
    padding: 14px;
}

.token-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.token-row:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
}

.token-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.token-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.token-contract {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    animation: slideInRight 0.3s var(--ease-out);
    max-width: 400px;
}

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

.notification-toast.success {
    border-color: var(--positive);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.notification-toast.error {
    border-color: var(--negative);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.notification-toast span {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

/* Balance Items */
.balance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.balance-item svg {
    color: var(--text-tertiary);
}

.balance-item span {
    color: var(--text-primary);
}

/* Combined Balance Display */
.balance-combined {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 9px 14px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.15s ease;
}

.balance-combined:hover {
    background: var(--bg-card);
    border-color: var(--border-default);
}

.balance-section {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.balance-section svg {
    color: var(--text-tertiary);
}

.balance-section span {
    color: var(--text-primary);
    font-weight: 700;
}

.balance-divider {
    color: var(--border-default);
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.5;
}

/* Balance Tooltip */
.balance-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.balance-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--border-default);
}

.balance-tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--bg-elevated);
}

.balance-combined:hover .balance-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.tooltip-row svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.tooltip-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
}

.tooltip-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.tooltip-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
    opacity: 0.5;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
}

.account-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-tertiary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.account-btn:hover {
    background: var(--bg-overlay);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.account-btn.active {
    background: var(--bg-overlay);
    border-color: var(--accent);
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 1000;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.dropdown-address {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.danger {
    color: var(--negative);
}

.dropdown-item.danger:hover {
    background: var(--negative-muted);
}

/* Wallet Badge */
.wallet-address-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.wallet-address-badge:hover {
    background: var(--bg-overlay);
}

.wallet-address-badge.copied-success {
    background: var(--positive-muted);
    border-color: var(--positive);
    color: var(--positive);
}

/* ============================================
   TABS
   ============================================ */
.main-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.main-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-tertiary);
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
    position: relative;
}

.main-tab:hover {
    color: var(--text-secondary);
}

.main-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Stats Badges */
.content-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--duration-fast);
}

.stat-badge:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   TABLE
   ============================================ */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

.markets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.markets-table thead {
    background: transparent;
}

/* Table headers - uppercase, small, metallic gray */
.markets-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-secondary);
    text-transform: uppercase;
    border: none;
    white-space: nowrap;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--duration-fast);
}

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

.sort-arrow {
    opacity: 0.3;
    margin-left: 4px;
}

.sortable.sorted-asc .sort-arrow,
.sortable.sorted-desc .sort-arrow {
    opacity: 1;
    color: var(--accent);
}

.sortable.sorted-asc .sort-arrow::before { content: '↑'; }
.sortable.sorted-desc .sort-arrow::before { content: '↓'; }

/* Table cells - NO dividers, space separation */
.markets-table td {
    padding: 18px 20px;
    border: none;
    font-size: 0.875rem;
    background: transparent;
    transition: background var(--duration-fast);
}

.markets-table tbody tr {
    transition: background var(--duration-fast);
    border-radius: var(--glass-radius-sm);
}

/* Hover effect - soft white glow (5% opacity) like glass reacting to touch */
.markets-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Remove zebra striping */
.markets-table tbody tr:nth-child(even) {
    background: transparent;
}

.markets-table tbody tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.col-title { width: 32%; }

/* Market Cell */
.market-title-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.market-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.market-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-disabled);
    flex-shrink: 0;
}

.market-title {
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--duration-fast);
}

.market-title:hover {
    color: var(--accent);
}

/* Prices */
.prices-cell {
    display: flex;
    gap: 20px;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 0.625rem;
    color: var(--text-disabled);
    text-transform: uppercase;
    font-weight: 600;
}

.price-value {
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: 'JetBrains Mono', monospace;
}

.price-yes { color: var(--positive); }
.price-no { color: var(--negative); }

.spread-value,
.volume-value,
.liquidity-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.spread-value { color: var(--warning); }
.volume-value { color: var(--text-secondary); }
.liquidity-value { color: var(--text-tertiary); }

.date-value {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

/* Trade Button */
.trade-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.trade-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.trade-btn:active {
    transform: translateY(0);
}

/* ============================================
   LOADING
   ============================================ */
.loading,
.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 14px;
    color: var(--text-tertiary);
}

.loading-more {
    padding: 24px;
}

.spinner,
.spinner-small {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-small {
    width: 18px;
    height: 18px;
}

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

.no-results {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-tertiary);
}

/* ============================================
   MODAL BASE
   ============================================ */
.trade-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.15s var(--ease-out);
}

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

.trade-modal-content {
    background: var(--bg-surface);
    max-width: 520px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-default);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s var(--ease-out);
}

@keyframes modalIn {
    from { 
        opacity: 0; 
        transform: translateY(16px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

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

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all var(--duration-fast);
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Price Display */
.price-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.price-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-fast);
}

.price-box:hover {
    border-color: var(--border-default);
}

.yes-box {
    background: var(--positive-muted);
    border-color: rgba(16, 185, 129, 0.2);
}

.no-box {
    background: var(--negative-muted);
    border-color: rgba(239, 68, 68, 0.2);
}

.outcome-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.yes-box .outcome-label { color: var(--positive); }
.no-box .outcome-label { color: var(--negative); }

.outcome-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Stats Grid */
.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-elevated);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.stat-card-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Trade CTA */
.trade-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    transition: all var(--duration-fast);
}

.trade-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FILTER MODAL
   ============================================ */
.filter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.filter-modal-overlay.active {
    display: flex;
}

.filter-modal {
    background: var(--bg-surface);
    max-width: 600px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-default);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s var(--ease-out);
}

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

.filter-modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.filter-header-actions {
    display: flex;
    gap: 10px;
}

.filter-reset-btn,
.filter-save-btn,
.filter-close-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

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

.filter-save-btn:hover {
    background: var(--accent-hover);
}

.filter-reset-btn:hover,
.filter-close-btn:hover {
    background: var(--bg-overlay);
    border-color: var(--border-default);
}

.filter-modal-content {
    padding: 24px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Filter Pills */
.filter-pills,
.filter-pills-row,
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill,
.category-pill {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.filter-pill:hover,
.category-pill:hover {
    background: var(--bg-overlay);
    border-color: var(--border-default);
    color: var(--text-primary);
}

.filter-pill.active,
.category-pill.active {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

.filter-search-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 14px;
    width: 100%;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-toggle-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.logic-toggle-wrapper {
    display: flex;
}

.logic-toggle-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.logic-toggle-btn:first-child {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.logic-toggle-btn:last-child {
    border-radius: 0 6px 6px 0;
}

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

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.filter-group h3 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.filter-inputs span {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.filter-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.875rem;
    width: 100px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ============================================
   WALLET INFO
   ============================================ */
#walletInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-balance-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--positive);
    font-family: 'JetBrains Mono', monospace;
}

.deposit-btn {
    background: var(--positive);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.deposit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.withdraw-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

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

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
    .col-start { display: none; }
}

@media (max-width: 1200px) {
    .col-spread,
    .col-liquidity { display: none; }
    
    .market-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header { padding: 0 16px; height: 56px; }
    .main-content { padding: 16px; }
    .main-tabs { padding: 0 16px; }
    .search-input { width: 160px; }
    .content-stats { flex-direction: column; }
    .price-display { grid-template-columns: 1fr; }
    .market-stats-grid { grid-template-columns: 1fr; }
    
    .markets-table th,
    .markets-table td { padding: 12px 14px; }
    
    .col-volume,
    .col-action { display: none; }
}

/* ============================================
   ADVANCED TECH BACKGROUND LAYER
   ============================================ */

/* Circuit board style connections */
.main-content::before {
    content: '';
    position: fixed;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: 
        linear-gradient(90deg, transparent 49.5%, rgba(14, 165, 233, 0.08) 49.5%, rgba(14, 165, 233, 0.08) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(14, 165, 233, 0.08) 49.5%, rgba(14, 165, 233, 0.08) 50.5%, transparent 50.5%);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    animation: circuitFade 4s ease-in-out infinite;
}

.main-content::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: 
        linear-gradient(90deg, transparent 49.5%, rgba(14, 165, 233, 0.06) 49.5%, rgba(14, 165, 233, 0.06) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(14, 165, 233, 0.06) 49.5%, rgba(14, 165, 233, 0.06) 50.5%, transparent 50.5%);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    animation: circuitFade 4s ease-in-out infinite 2s;
}

@keyframes circuitFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* Data stream particles */
@keyframes dataStream {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Tech corner decorations */
.app::before {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.05);
}

/* ============ BOTTOM FOOTER ============ */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: rgba(13, 14, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-link {
    color: #5a6478;
    font-size: 0.7rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #8b9bb4;
}

.footer-divider {
    color: #3a3f4a;
    font-size: 0.7rem;
}

.watchlist-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b9bb4;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.watchlist-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.watchlist-toggle svg {
    color: #f59e0b;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6478;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.15s;
}

.footer-social:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ============ WATCHLIST POPUP ============ */
.watchlist-popup {
    position: fixed;
    width: 360px;
    min-height: 200px;
    max-height: 400px;
    background: rgba(26, 28, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.watchlist-popup.dragging {
    opacity: 0.85;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    cursor: grabbing;
}

.watchlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: grab;
    user-select: none;
}

.watchlist-header:active {
    cursor: grabbing;
}

.watchlist-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.watchlist-title svg {
    color: #f59e0b;
}

.watchlist-close {
    background: none;
    border: none;
    color: #5a6478;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.watchlist-close:hover {
    color: #fff;
}

.watchlist-content {
    padding: 12px;
    max-height: 340px;
    overflow-y: auto;
}

.watchlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: #5a6478;
}

.watchlist-empty svg {
    margin-bottom: 12px;
    opacity: 0.4;
}

.watchlist-empty p {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #8b9bb4;
}

.watchlist-empty span {
    font-size: 0.75rem;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.watchlist-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.watchlist-item:last-child {
    margin-bottom: 0;
}

.watchlist-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

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

.watchlist-item-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.watchlist-item-meta {
    font-size: 0.65rem;
    color: #5a6478;
}

.watchlist-item-price {
    text-align: right;
}

.watchlist-item-yes {
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
}

.watchlist-item-change {
    font-size: 0.65rem;
}

.watchlist-item-change.positive { color: #22c55e; }
.watchlist-item-change.negative { color: #ef4444; }

.watchlist-item-remove {
    background: none;
    border: none;
    color: #5a6478;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: all 0.15s;
}

.watchlist-item:hover .watchlist-item-remove {
    opacity: 1;
}

.watchlist-item-remove:hover {
    color: #ef4444;
}

/* ============ WATCHLIST CLEAR BUTTON ============ */
.watchlist-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.watchlist-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Draggable cursor for popup */
.watchlist-popup {
    cursor: grab;
}

.watchlist-popup.dragging {
    cursor: grabbing;
}

.watchlist-popup .watchlist-content {
    cursor: default;
}

.watchlist-popup .watchlist-item {
    cursor: pointer;
}

/* ============ TOAST NOTIFICATIONS ============ */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(26, 28, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    max-width: 380px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #5a6478;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 8px;
    line-height: 1;
    transition: color 0.15s;
    margin-left: auto;
}

.toast-close:hover {
    color: #fff;
}

/* Toast types */
.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
}
.toast-success .toast-icon {
    color: #22c55e;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}
.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
}
.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-color: rgba(59, 130, 246, 0.3);
}
.toast-info .toast-icon {
    color: #3b82f6;
}
