/* ==================== ROOT VARIABLES (Light Theme - Default) ==================== */
:root {
    --primary-blue: #2563eb;
    --primary-light-blue: #3b82f6;
    --light-bg: #f8fafc;
    --lighter-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-orange: #f59e0b;
    --gold: #fbbf24;
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-light-blue: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* ==================== DARK THEME ==================== */
[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --primary-light-blue: #60a5fa;
    --light-bg: #0f1419;
    --lighter-bg: #1a1f2e;
    --card-bg: #1a1f2e;
    --border-color: #2d3748;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-orange: #f59e0b;
    --gold: #fbbf24;
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-light-blue: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

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

/* ==================== THEME TOGGLE BUTTON ==================== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.points-display {
    background: var(--gradient-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.wallet-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-badge:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ==================== MODAL CLOSE BUTTON ==================== */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--danger-red);
    transform: rotate(90deg);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== AUTH MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.4s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.auth-modal h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.auth-tab.active {
    background: var(--gradient-blue);
    border-color: transparent;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trial-note {
    text-align: center;
    color: var(--success-green);
    font-weight: 600;
    margin-top: 1rem;
}

/* ==================== STATS ROW ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.purple::before {
    background: var(--gradient-blue);
}

.stat-card.blue::before {
    background: var(--gradient-light-blue);
}

.stat-card.green::before {
    background: var(--gradient-green);
}

.stat-card.orange::before {
    background: var(--gradient-orange);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

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

/* ==================== MAIN GRID ==================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.03);
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider span {
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-blue);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: var(--gradient-green);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.btn-refresh {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-refresh:hover {
    background: var(--primary-blue);
    border-color: transparent;
    color: white;
}

.btn-disconnect {
    background: var(--danger-red);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary-blue);
}

.forgot-password-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-light-blue);
    text-decoration: underline;
}

.button-group {
    display: grid;
    gap: 1rem;
}

/* ==================== BOT STATUS ==================== */
.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success-green);
}

.status-dot.offline {
    background: var(--text-secondary);
    animation: none;
}

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

/* ==================== MARKETS LIST ==================== */
.search-input {
    margin-bottom: 1rem;
}

.markets-list {
    max-height: 500px;
    overflow-y: auto;
}

.market-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-card:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-purple);
    transform: translateX(5px);
}

.market-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.market-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.market-probability {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
}

.market-probability.high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.market-probability.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-orange);
}

/* ==================== ACTIVITY FEED ==================== */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(124, 58, 237, 0.1);
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-content {
    flex: 1;
}

.activity-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.activity-content small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.activity-profit {
    font-weight: 700;
    font-size: 1rem;
}

.activity-profit.positive {
    color: var(--success-green);
}

.activity-profit.negative {
    color: var(--danger-red);
}

/* ==================== POINTS CARD ==================== */
.points-card {
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.points-info {
    text-align: center;
    margin-bottom: 2rem;
}

.points-balance h3 {
    font-size: 3rem;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.points-note {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: rgba(124, 58, 237, 0.1);
}

.reward-item.lifetime {
    border: 2px solid var(--gold);
    background: rgba(251, 191, 36, 0.05);
}

.reward-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.reward-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-redeem {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-redeem:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-redeem:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-redeem.gold {
    background: var(--gradient-orange);
}

/* ==================== LOADING & NO DATA ==================== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light-blue);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==================== WALLET MODAL ==================== */
.wallet-modal {
    max-width: 900px;
    padding: 2.5rem;
}

.wallet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.wallet-option {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wallet-option:hover {
    border-color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.wallet-option h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.wallet-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.option-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0;
}

.option-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wallet-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==================== WALLET INFO BANNER ==================== */
.wallet-info-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-info-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-type-badge {
    background: var(--gradient-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.wallet-address-display {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wallet-info-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.balance-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success-green);
}

.btn-small {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--primary-purple);
    border-color: transparent;
    transform: scale(1.05);
}

/* ==================== RESPONSIVE WALLET STYLES ==================== */
@media (max-width: 768px) {
    .wallet-options {
        grid-template-columns: 1fr;
    }
    
    .wallet-info-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wallet-info-left,
    .wallet-info-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==================== DANGER BUTTON SMALL ==================== */
.btn-danger-small {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #ef4444 !important;
}

.btn-danger-small:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4) !important;
}

/* ==================== APPROVE USDC BUTTON ==================== */
.btn-approve-usdc {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #10b981 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
}

.btn-approve-usdc:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-approve-usdc:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6;
}

/* ==================== NETWORK SWITCHER ==================== */
.network-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-network {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-network:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary-purple);
    transform: scale(1.05);
}

/* ==================== TOP TRADERS ==================== */
.traders-list {
    max-height: 400px;
    overflow-y: auto;
}

.trader-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.trader-card:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-purple);
    transform: translateX(5px);
}

.trader-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.trader-info {
    flex: 1;
}

.trader-address {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.trader-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.win-rate {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

.win-rate.high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.win-rate.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-orange);
}

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

.trader-profit {
    font-weight: 700;
    font-size: 1rem;
}

.trader-profit.positive {
    color: var(--success-green);
}

.trader-profit.negative {
    color: var(--danger-red);
}

.btn-copy-small {
    padding: 0.5rem 1rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-copy-small:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* ==================== COPY TRADING ==================== */
.copy-trade-info {
    margin-bottom: 1.5rem;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.copy-trade-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ==================== RISK MANAGEMENT SECTION ==================== */
.risk-management-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--warning-orange);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '⚠️';
    font-size: 1.2rem;
}

.field-hint {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ==================== WHALE NOTIFICATIONS ==================== */
.whale-notifications-container {
    position: fixed;
    bottom: 24px;  /* Changed from top to bottom */
    right: 24px;   /* Moved closer to edge */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;  /* Reduced from 400px */
    pointer-events: none;
}

.whale-notification {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    padding: 12px 16px;  /* Reduced from 1rem */
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
    animation: slideInRight 0.5s ease-out;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whale-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.whale-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.7), 0 0 30px rgba(124, 58, 237, 0.5);
}

.whale-notification.dismissing {
    animation: slideOutRight 0.5s ease-out forwards;
}

.whale-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.whale-icon {
    font-size: 1.25rem;  /* Reduced from 1.5rem */
    animation: pulse 2s infinite;
}

.whale-badge {
    background: rgba(251, 191, 36, 0.9);
    color: var(--darker-bg);
    padding: 0.2rem 0.6rem;  /* Reduced padding */
    border-radius: 12px;
    font-size: 0.7rem;  /* Reduced from 0.75rem */
    font-weight: 700;
    text-transform: uppercase;
}

.whale-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whale-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.whale-content {
    position: relative;
    z-index: 1;
}

.whale-wallet {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.85rem;  /* Reduced from 1rem */
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.whale-action {
    font-size: 0.8rem;  /* Reduced from 0.9rem */
    color: white;
    margin-bottom: 0.4rem;  /* Reduced spacing */
}

.whale-position {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 0.25rem;
}

.whale-position.yes {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.whale-position.no {
    background: rgba(239, 68, 68, 0.3);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.whale-amount {
    font-size: 1rem;  /* Reduced from 1.1rem */
    font-weight: 700;
    color: var(--gold);
}

.whale-market {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;  /* Reduced spacing */
    font-style: italic;
}

.whale-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.whale-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.whale-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whale-trade-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
    border: 1px solid var(--success-green);
}

.whale-trade-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1));
}

.whale-share-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    border: 1px solid #3b82f6;
}

.whale-share-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
}

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

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}