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

:root {
    /* Professional Dark Theme - Arb Watch */
    --bg-primary: #0A0E14;
    --bg-secondary: #0F1419;
    --bg-tertiary: #151A21;
    --bg-card: rgba(21, 26, 33, 0.95);
    --bg-elevated: rgba(25, 30, 37, 0.98);
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D0;
    --text-muted: #6C7A89;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 197, 138, 0.3);
    
    /* Premium Accent - Emerald with depth */
    --accent: #10B981;
    --accent-hover: #059669;
    --accent-light: #34D399;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --accent-strong: rgba(16, 185, 129, 0.15);
    
    /* Status Colors - Professional palette */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Professional Shadows - Depth without heaviness */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
    --shadow-accent: 0 4px 14px rgba(16, 185, 129, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Background - Watch/Radar Theme */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(0, 197, 138, 0.02) 0%, transparent 50%);
}

/* Watch/Radar Rings - Subtle circular animations */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: pulse-ring 30s ease-in-out infinite;
    border: 1px solid var(--accent);
}

.bg-shape-1 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}

.bg-shape-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-delay: -10s;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
    animation-delay: -20s;
}

/* Watch ticks - Thin orbiting lines */
.bg-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.06;
    width: 1px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform-origin: center -200px;
    animation: rotate-tick 50s linear infinite;
}

.bg-line-1 {
    animation-duration: 50s;
}

.bg-line-2 {
    animation-duration: 70s;
    animation-delay: -25s;
    transform-origin: center -300px;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.08;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.12;
    }
}

@keyframes rotate-tick {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Top Navigation - Premium glass effect */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 0 0 rgba(16, 185, 129, 0.1), var(--shadow-md);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 197, 138, 0.15));
    transition: transform 0.2s ease;
}

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

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 28px;
    }
}

.nav-center {
    display: flex;
    gap: var(--spacing-md);
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

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

/* Wallet button removed */

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: calc(80px + var(--spacing-lg)) var(--spacing-lg) var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hero Section */
.hero-section {
    margin-bottom: var(--spacing-xl);
}

.hero-content {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 700px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Exchanges Modal */
.exchanges-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.exchanges-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.exchanges-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.exchanges-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

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

.exchanges-modal-body {
    padding: var(--spacing-lg);
}

.exchanges-section {
    margin-bottom: var(--spacing-xl);
}

.exchanges-section:last-child {
    margin-bottom: 0;
}

.exchanges-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.exchanges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.exchange-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.exchange-badge.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.exchange-badge.failed {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.exchanges-stats {
    list-style: none;
    padding: 0;
}

.exchanges-stats li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.exchanges-stats li:last-child {
    border-bottom: none;
}

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

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

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
    min-width: 150px;
}

.filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-select {
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-sm) center;
    padding-right: calc(var(--spacing-sm) + 20px);
}

.filter-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.filter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: all 0.2s ease;
}

.filter-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--accent);
}

.filter-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px var(--accent-glow);
}

.slider-value {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.scan-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

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

/* Table Section */
.table-section {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.table-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.table-title-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.table-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--success);
    animation: none;
    box-shadow: 0 0 8px var(--success);
}

.status-dot.disconnected {
    background: var(--danger);
    animation: pulse 1s infinite;
}

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

.table-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.status-indicators {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.status-indicator-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.status-dot-small {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

.status-dot-small.active {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s infinite;
}

.status-dot-small.error {
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--bg-primary);
}

.toggle-text {
    user-select: none;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

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

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

.arbitrage-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    user-select: none;
}

.arbitrage-table th.sortable {
    cursor: pointer;
    transition: all 0.2s ease;
    padding-right: calc(var(--spacing-md) + 20px);
}

.arbitrage-table th.sortable:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.arbitrage-table th.sortable.active {
    color: var(--accent);
}

.sort-icon {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.arbitrage-table th.sortable:hover .sort-icon {
    opacity: 0.8;
}

.arbitrage-table th.sortable.active .sort-icon {
    opacity: 1;
    color: var(--accent);
}

.arbitrage-table th.sortable.asc .sort-icon::before {
    content: '↑';
}

.arbitrage-table th.sortable.desc .sort-icon::before {
    content: '↓';
}

.arbitrage-table th.sortable:not(.asc):not(.desc) .sort-icon::before {
    content: '↕';
}

.arbitrage-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    animation: fadeInRow 0.4s ease-out;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.arbitrage-table tbody tr:hover {
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent);
}

.arbitrage-table tbody tr.empty-row:hover {
    background: transparent;
    border-color: var(--border-color);
}

.arbitrage-table td {
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.asset-pair {
    font-weight: 600;
    color: var(--text-primary);
}

/* Grouped Table Rows */
.group-header {
    user-select: none;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.group-header .expand-icon,
.group-header .asset-pair {
    cursor: pointer;
}

.group-header:hover {
    background: var(--bg-secondary);
}

.expand-icon {
    color: var(--accent);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 14px;
    opacity: 0.7;
}

.group-header:hover .expand-icon {
    opacity: 1;
}

.group-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.grouped-row {
    background: rgba(0, 197, 138, 0.02);
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.grouped-row td:first-child {
    padding-left: 2.5rem;
}

.grouped-row:hover {
    background: rgba(0, 197, 138, 0.05) !important;
}

.expand-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* WatchBot Section */
.watchbot-hero {
    padding: 2rem 0;
}

.watchbot-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.watchbot-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.watchbot-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.watchbot-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.watchbot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 197, 138, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.watchbot-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.watchbot-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exchange-connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.connect-exchange-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-exchange-btn:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.connect-exchange-btn .exchange-logo {
    font-size: 2rem;
}

.connect-exchange-btn .status {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.exchange-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.exchange-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.exchange-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: var(--spacing-xs);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.exchange-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.price {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.spread {
    font-weight: 700;
    color: var(--success);
    font-size: 1rem;
}

.profit {
    font-weight: 600;
    color: var(--accent);
}

.action-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-1px);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-badge.type-cex {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.type-badge.type-dex {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .nav-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arbitrage-table {
        font-size: 0.85rem;
    }
    
    .arbitrage-table th,
    .arbitrage-table td {
        padding: var(--spacing-sm);
    }
}

/* Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-large {
    max-width: 800px;
    margin: 2rem auto;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    padding: var(--spacing-lg);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.detail-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
}

.detail-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.detail-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-value.profit {
    color: var(--success);
}

.detail-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.detail-section h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.exchange-detail p {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.exchange-detail strong {
    color: var(--text-muted);
}

.exchange-detail span {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.detail-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.profit-breakdown p {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.profit-breakdown strong {
    color: var(--text-muted);
}

.profit-breakdown span {
    color: var(--text-primary);
    font-weight: 500;
}

.profit-breakdown .profit {
    color: var(--success);
    font-size: 1.1rem;
}

.profit-example {
    background: linear-gradient(135deg, rgba(75, 192, 192, 0.1), rgba(75, 192, 192, 0.05));
    border-color: rgba(75, 192, 192, 0.3);
}

.example-calc p {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.example-calc strong {
    color: var(--success);
    font-weight: 600;
}

/* Exchange blacklist */
.exchange-badge.blacklisted {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    opacity: 0.7;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}
