@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

:root {
    --gold: #D4AF37;
    --gold-rgb: 212, 175, 55;
    --gold-bright: #FFD700;
    --dark-bg: #0a0a0a;
    --bg-secondary: #111111;
    --sidebar-bg: rgba(15, 15, 15, 0.8);
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --btn-text-on-gold: #000000;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --sidebar-width: 240px; /* Standard sidebar width restored */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 13px; /* Extreme compaction */
    scroll-behavior: smooth;
}

[data-theme="light"] {
    --gold: #1e3a8a;
    /* Richer Navy Blue */
    --gold-rgb: 30, 58, 138;
    --gold-bright: #3b82f6;
    --dark-bg: #f8fafc;
    /* Professional Soft Slate White */
    --bg-secondary: #ffffff;
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --input-bg: #f1f5f9;
    --glass-border: rgba(30, 58, 138, 0.15);
    --text-main: #1e293b;
    /* Deep Navy for text */
    --text-dim: #64748b;
    /* Slate gray for secondary text */
    --btn-text-on-gold: #ffffff;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* Topbar Dropdown Behaviors */
.lang-selector-wrapper:hover #lang-dropdown,
.lang-selector-wrapper.active #lang-dropdown,
.user-profile-wrapper:hover .profile-dropdown,
.user-profile-wrapper.active .profile-dropdown {
    display: block !important;
}

.user-profile-top:hover {
    background: rgba(var(--gold-rgb), 0.1) !important;
    border-color: var(--gold) !important;
}

.lang-selector:hover {
    background: rgba(var(--gold-rgb), 0.1) !important;
}

.nav-group-label {
    font-weight: 700;
    transition: 0.3s;
}

[data-theme="light"] .nav-group-label {
    color: #1e293b !important;
    opacity: 0.8 !important;
}

/* AI Analyst Special Aesthetics */
.nav-item[data-tab="ai-analyst"] i {
    filter: drop-shadow(0 0 5px rgba(129, 140, 248, 0.4));
}

.ai-status-dot {
    animation: ai-pulse 2s infinite;
}

/* Stats Dots Styles */
.stat-dot {
    width: 8px;
    height: 8px;
    background: rgba(var(--gold-rgb), 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.stat-dot.active {
    background: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5);
}

@keyframes ai-pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7); }
    70% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 10px rgba(129, 140, 248, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}

/* PREMIUM CODEFORGE PROMO - MINIMALIST DARK BLUE */
.codeforge-promo-premium {
    background: #1e3a8a !important; /* Deep Navy Blue */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="light"] .codeforge-promo-premium {
    background: #1e3a8a !important; /* Keep it dark blue for impact */
    color: #ffffff !important;
}

.promo-icon-wrapper-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon-shining {
    color: #ffffff;
    font-size: 1.8rem;
}

.btn-high-iq {
    background: #ffffff !important;
    color: #1e3a8a !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.btn-high-iq:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
}

.nav-item.active * {
    color: #ffffff !important;
}

[data-theme="light"] .nav-item[data-tab="ai-analyst"]:not(.active) i {
    color: #4f46e5 !important;
}

body {
    background: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden; /* No body scroll */
}

/* MODERN TECH-SILVER SIDEBAR (No Gold/Dark Blue Combo) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-radius: 0 24px 24px 0; /* Curved right side only */
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

/* (Overrides removed, handled by variables) */

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 0 25px;
}

.sidebar-logo img {
    width: 30px;
    filter: brightness(1.2);
}

.sidebar-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-theme="light"] .sidebar-logo span {
    color: var(--text-main);
}

/* Clean Navigation Items */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.nav-group-label {
    padding: 1.2rem 25px 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b949e;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px; 
    margin: 0 12px 4px 12px;
    border-radius: 12px;
    color: var(--text-dim);
    background: transparent;
    border: 1.5px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-item i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-item {
    color: #8b949e;
}

.nav-item:not(.active):hover {
    background: rgba(var(--gold-rgb), 0.1) !important;
    color: var(--gold) !important;
    border: 1.5px solid var(--gold) !important;
}

.nav-item:not(.active):hover i, .nav-item:not(.active):hover span {
    color: var(--gold) !important;
}

[data-theme="light"] .nav-item:not(.active):hover {
    background: rgba(30, 58, 138, 0.08) !important;
    color: #1e40af !important;
    border: 1.5px solid #1e40af !important;
}

[data-theme="light"] .nav-item:not(.active):hover i, 
[data-theme="light"] .nav-item:not(.active):hover span,
[data-theme="light"] .nav-item:not(.active):hover * {
    color: #1e40af !important;
}

[data-theme="light"] .nav-item.active {
    border: 1.5px solid #1e40af !important;
}





/* Unified Active State - Blue Premium Gradient */
.nav-item.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    color: #ffffff !important; 
    font-weight: 700;
    border: 1.5px solid transparent !important;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3); 
}

.nav-item.active i {
    color: #ffffff !important;
}

[data-theme="light"] .nav-item.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    color: #ffffff !important;
}

/* Footer / Logout */
.sidebar-footer {
    margin-top: auto; /* PUSHES FOOTER TO THE BOTTOM */
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#logout-btn {
    width: 100%;
    background: transparent;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#logout-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
}


/* Sidebar Custom Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(var(--gold-rgb), 0.2);
    border-radius: 10px;
}


/* Section Labels (Asosiy, Tahlil, etc) */
.nav-group-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    padding: 12px 0 6px 10px;
    opacity: 0.5;
    display: block;
}

[data-theme="light"] .nav-group-label {
    color: #475569 !important;
    opacity: 0.8 !important;
}

/* Legacy nav-item and sidebar footer styles removed to prevent conflicts with the new premium sidebar design */

/* Placeholder elements should not interfere with layout/sticky positioning */
[id$="-placeholder"] {
    display: contents;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: calc(100% - var(--sidebar-width)) !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

/* Top Header - Seamless Card */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    padding: 0.7rem 2rem;
    margin: 0 1rem 1rem 1rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tab-content {
    padding: 0.8rem; /* Ultra minimal padding */
    display: none;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto;
    box-sizing: border-box;
    zoom: 0.9;
}

/* Force children of placeholders to be full width but respect their display property */
[id$="-tab-placeholder"] > .tab-content {
    width: 100% !important;
    max-width: 100% !important;
}

.tab-content[id="chat"] {
    padding: 0 !important;
    overflow: hidden; /* Chat has its own scrolls */
}

.tab-content[id="code-forge"],
.tab-content[id="economic-calendar"] {
    padding: 0 !important;
    zoom: 1 !important;
    overflow: hidden;
}

.tab-content[id="code-forge"].active,
.tab-content[id="economic-calendar"].active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: block;
    animation: mainTabFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content[id="chat"].active {
    display: flex;
    flex-direction: column;
}

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


.welcome-msg h1 {
    font-size: 1rem; /* Reduced from 1.2rem */
    font-weight: 700;
    margin-bottom: 2px;
}

.welcome-msg p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.user-profile-top {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.user-profile-top:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.user-info-text {
    text-align: right;
}

#user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.user-info-text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stat Cards - BENTO GRID UPGRADE */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1.2rem; /* Tightened gap */
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 1.2rem; /* Reduced padding */
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:hover {
    background: rgba(var(--gold-rgb), 0.05);
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Specific Card Sizes for Bento */
.card-large {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.stat-icon {
    width: 35px; /* Reduced from 45px */
    height: 35px;
    background: rgba(var(--gold-rgb), 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.stat-icon i {
    color: var(--gold);
    font-size: 1.3rem;
}

.stat-value {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.75rem; /* Reduced from 0.85rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trend Indicators */
.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.trend-up {
    color: #2ed573;
}

.trend-down {
    color: #ff4757;
}

/* AI Assistant Card */
.ai-assistant-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.3);
    grid-column: span 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 24px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-msg {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}


/* Dashboard Sections */
.dashboard-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.8rem; /* Reduced from 1rem */
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 12px;
}

.section-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--gold);
}

/* List Items (Robots/Signals) */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-icon {
    width: 45px;
    height: 45px;
    background: var(--dark-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.item-text p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.item-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.status-pending {
    background: rgba(255, 165, 2, 0.1);
    color: #ffa502;
}

/* Logout Button */
.btn-logout {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ff4757;
    color: white;
}

/* Responsive */

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* ===== DISCORD-STYLE CHAT LAYOUT ===== */
.chat-discord-layout {
    display: flex;
    height: calc(100vh - 130px); /* Reset calculation for standard screen */
    margin: 0 1rem 1.5rem 1rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: var(--bg-secondary);
}

/* --- Channel Sidebar --- */
.chat-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-server-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08), transparent);
    cursor: pointer;
    transition: background 0.2s;
}

.chat-server-header:hover {
    background: rgba(var(--gold-rgb), 0.1);
}

.chat-server-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), rgba(var(--gold-rgb), 0.7));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.chat-server-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
}

.chat-server-status {
    font-size: 0.68rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

/* Channel Navigation */
.chat-channels-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.chat-channels-nav::-webkit-scrollbar { width: 3px; }
.chat-channels-nav::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 10px; }

.chat-channel-category {
    margin-bottom: 4px;
}

.chat-category-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.chat-category-header:hover {
    color: var(--text-main);
}

.chat-category-header i {
    font-size: 0.55rem;
    transition: transform 0.2s;
}

.chat-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin: 1px 8px;
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-channel-item i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    opacity: 0.6;
}

.chat-channel-item:hover {
    background: rgba(var(--gold-rgb), 0.08);
    color: var(--text-main);
}

.chat-channel-item:hover i {
    opacity: 1;
}

.chat-channel-item.active {
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold);
    font-weight: 700;
}

.chat-channel-item.active i {
    color: var(--gold);
    opacity: 1;
}

.chat-channel-badge {
    margin-left: auto;
    background: var(--gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.chat-channel-item.voice-channel i {
    color: #2ecc71;
}

/* User Footer */
.chat-user-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-user-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-user-footer-avatar {
    position: relative;
    width: 32px;
    height: 32px;
}

.chat-user-footer-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.chat-user-footer-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}

.chat-user-footer-tag {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.chat-user-footer-actions {
    display: flex;
    gap: 2px;
}

.chat-user-footer-actions button {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.chat-user-footer-actions button:hover {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

/* --- Main Chat Area --- */
.chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card-bg);
}

.chat-topbar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--gold-rgb), 0.02);
    flex-shrink: 0;
}

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

.chat-topbar-channel {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.chat-topbar-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--glass-border);
}

.chat-topbar-actions {
    display: flex;
    gap: 4px;
}

.chat-topbar-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.chat-topbar-btn:hover {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

/* Chat Body */
.chat-body-wrapper {
    flex: 1;
    display: flex;
    min-height: 0;
}

.chat-messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* --- Members Sidebar --- */
.chat-members-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 16px 10px;
    transition: width 0.3s, padding 0.3s;
}

.chat-members-sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

.chat-members-sidebar::-webkit-scrollbar { width: 3px; }
.chat-members-sidebar::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 10px; }

.chat-members-section {
    margin-bottom: 20px;
}

.chat-members-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding: 4px 8px;
    margin-bottom: 6px;
}

.chat-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-member-item:hover {
    background: rgba(var(--gold-rgb), 0.08);
}

.chat-member-item.offline {
    opacity: 0.4;
}

.chat-member-avatar {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.chat-member-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-member-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.chat-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-member-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-member-name.admin {
    color: var(--gold);
}

.chat-member-name.admin i {
    font-size: 0.55rem;
    margin-left: 4px;
    color: #f1c40f;
}

.chat-member-status {
    font-size: 0.65rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== LIGHT THEME — Discord Layout ===== */
[data-theme="light"] .chat-discord-layout {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .chat-sidebar {
    background: #f0f2f5;
    border-right-color: #e5e7eb;
}

[data-theme="light"] .chat-server-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), transparent);
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .chat-channel-item:hover {
    background: rgba(30, 58, 138, 0.06);
}

[data-theme="light"] .chat-channel-item.active {
    background: rgba(30, 58, 138, 0.1);
    color: var(--gold);
}

[data-theme="light"] .chat-user-footer {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: #e5e7eb;
}

[data-theme="light"] .chat-members-sidebar {
    background: #f8f9fb;
    border-left-color: #e5e7eb;
}

[data-theme="light"] .chat-topbar {
    background: rgba(30, 58, 138, 0.02);
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .chat-channel-badge {
    background: var(--gold);
}

/* --- PREMIUM GLOBAL CHAT STYLES (Redesigned) --- */
.chat-section {
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Chat Header Bar */
.chat-header-bar {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08) 0%, rgba(var(--gold-rgb), 0.02) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-header-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), rgba(var(--gold-rgb), 0.6));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.25);
}

[data-theme="light"] .chat-header-icon {
    color: #fff;
}

.chat-header-bar h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    white-space: nowrap;
}

.chat-header-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.chat-online-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(46, 204, 113, 0); }
}

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

.chat-action-btn {
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    color: var(--gold);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.chat-action-btn:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.3);
}

.chat-live-badge {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-live-dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Pinned Message Bar */
.chat-pinned-bar {
    padding: 10px 18px;
    background: rgba(var(--gold-rgb), 0.06);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.chat-pinned-bar i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* Chat Container */
.chat-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(var(--gold-rgb), 0.03), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.02), transparent 35%);
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 10px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Date Separator */
.chat-date-separator {
    text-align: center;
    margin: 18px 0 10px;
}

.chat-date-separator span {
    background: rgba(var(--gold-rgb), 0.08);
    border: 1px solid rgba(var(--gold-rgb), 0.12);
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Message Bubbles */
.message {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
    animation: msgSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 0;
    position: relative;
    flex-wrap: nowrap;
}

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

.message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.msg-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(var(--gold-rgb), 0.2);
}

.message.own .msg-avatar {
    border-color: rgba(var(--gold-rgb), 0.4);
}

.msg-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: 2px 18px 18px 18px;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-width: 60px;
}

.msg-content:hover {
    background: rgba(255, 255, 255, 0.06);
}

.message.own .msg-content {
    background: rgba(var(--gold-rgb), 0.1);
    border-color: rgba(var(--gold-rgb), 0.25);
    border-radius: 18px 2px 18px 18px;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.05);
}

.message.own .msg-content:hover {
    background: rgba(var(--gold-rgb), 0.14);
}

.msg-author {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1px;
}

.message.own .msg-author {
    text-align: right;
    color: var(--gold);
}

.msg-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-main);
    word-break: break-word;
}

.msg-time {
    font-size: 0.63rem;
    color: var(--text-dim);
    text-align: right;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

/* Typing Indicator */
.chat-typing-indicator {
    padding: 8px 18px;
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Chat Input Area */
.chat-form-premium {
    padding: 1rem 1.5rem;
    background: rgba(var(--gold-rgb), 0.02);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0 6px;
    transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.08);
}

.chat-input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 12px 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none !important;
    box-shadow: none !important;
}

.chat-input-wrapper input::placeholder {
    color: var(--text-dim);
}

.chat-char-counter-bar {
    padding: 6px 24px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--gold-rgb), 0.02);
    border-top: 1px solid rgba(var(--gold-rgb), 0.05);
    font-size: 0.7rem;
    color: var(--text-dim);
}

#chat-char-counter {
    font-weight: 700;
}

.chat-attach-btn,
.chat-emoji-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-attach-btn:hover,
.chat-emoji-btn:hover {
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.chat-send-btn:hover,
.chat-send-btn.active {
    background: var(--gold);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(var(--gold-rgb), 0.35);
}

/* Chat Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-dim);
    text-align: center;
    padding: 2rem;
}

.chat-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--gold-rgb), 0.08);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--gold-rgb), 0.15);
}

.chat-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.chat-empty-state p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

/* Chat Loader */
.chat-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--text-dim);
    gap: 15px;
    font-size: 0.85rem;
}

.chat-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(var(--gold-rgb), 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: chatSpin 0.8s linear infinite;
}

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

/* Online Status Badge */
.online-status {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2ecc71;
}

.online-status i {
    font-size: 0.5rem;
    animation: onlinePulse 2s infinite;
}

/* ===== LIGHT THEME OVERRIDES FOR CHAT ===== */
[data-theme="light"] .chat-section {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .chat-header-bar {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(30, 58, 138, 0.01) 100%);
}

[data-theme="light"] .msg-content {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .msg-content:hover {
    background: #f8fafc;
}

[data-theme="light"] .message.own .msg-content {
    background: rgba(30, 58, 138, 0.05);
    border-color: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .message.own .msg-content:hover {
    background: rgba(30, 58, 138, 0.08);
}

[data-theme="light"] .chat-input-wrapper {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .chat-input-wrapper:focus-within {
    background: #fff;
    border-color: var(--gold);
}

[data-theme="light"] .chat-form-premium {
    background: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] .chat-send-btn {
    background: rgba(30, 58, 138, 0.08);
    color: var(--gold);
    border-color: rgba(30, 58, 138, 0.15);
}

[data-theme="light"] .chat-send-btn:hover,
[data-theme="light"] .chat-send-btn.active {
    background: var(--gold);
    color: #fff;
}

[data-theme="light"] .chat-date-separator span {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .chat-pinned-bar {
    background: rgba(30, 58, 138, 0.04);
    border-bottom-color: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .chat-empty-icon {
    background: rgba(30, 58, 138, 0.06);
    border-color: rgba(30, 58, 138, 0.1);
}

/* ===== CHAT: WELCOME BANNER ===== */
.chat-welcome-banner {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.chat-welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.chat-welcome-banner h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.chat-welcome-banner p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== CHAT: STATIC RULES ===== */
.chat-rules-static {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-rule-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(var(--gold-rgb), 0.04);
    border: 1px solid rgba(var(--gold-rgb), 0.1);
    border-radius: 14px;
    transition: all 0.2s;
}

.chat-rule-item:hover {
    background: rgba(var(--gold-rgb), 0.08);
    transform: translateX(4px);
}

.chat-rule-item.warn {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.chat-rule-item.warn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.chat-rule-number {
    width: 32px;
    height: 32px;
    background: rgba(var(--gold-rgb), 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--gold);
    flex-shrink: 0;
}

.chat-rule-item.warn .chat-rule-number {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.chat-rule-text strong {
    font-size: 0.88rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.chat-rule-text p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
}

[data-theme="light"] .chat-rule-item {
    background: rgba(30, 58, 138, 0.03);
    border-color: rgba(30, 58, 138, 0.08);
}

[data-theme="light"] .chat-rule-item:hover {
    background: rgba(30, 58, 138, 0.06);
}


/* ===== CHAT: CHARACTER COUNTER BAR ===== */
.chat-char-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 18px 6px;
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* ===== CHAT: SCROLL TO BOTTOM BUTTON ===== */
.chat-scroll-bottom-btn {
    position: absolute;
    bottom: 90px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 10;
}

.chat-scroll-bottom-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: scale(1.1);
}

.chat-messages-area {
    position: relative;
}

/* ===== CHAT: TOAST NOTIFICATION ===== */
.chat-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.chat-toast.show {
    bottom: 30px;
}

/* ===== CHAT: MESSAGE HOVER ACTIONS ===== */
.msg-actions {
    display: none;
    position: absolute;
    top: -8px;
    right: 8px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.msg-actions button {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.msg-actions button:hover {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

.message {
    position: relative;
}

.message:hover .msg-actions {
    display: flex;
}

.message:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* ===== CHAT: MSG HEADER (author + time inline) ===== */
.msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.msg-header .msg-time {
    font-size: 0.63rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.message:hover .msg-header .msg-time {
    opacity: 1;
}

/* ===== CHAT: READ INDICATOR ===== */
.msg-read-indicator {
    font-size: 0.55rem;
    color: var(--gold);
    position: absolute;
    bottom: 8px;
    right: 8px;
}

/* ===== CHAT: INPUT ACTIONS GROUP ===== */
.chat-input-actions {
    display: flex;
    gap: 0;
}

/* ===== CHAT: MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .chat-discord-layout {
        height: calc(100vh - 100px);
    }
    
    .chat-sidebar {
        display: none;
    }

    .chat-members-sidebar {
        display: none;
    }

    .chat-topbar-desc {
        display: none;
    }
}

@media (max-width: 1200px) {
    .chat-members-sidebar {
        width: 180px;
    }
    
    .chat-sidebar {
        width: 200px;
    }
}

/* ===== LIGHT THEME: New Elements ===== */
[data-theme="light"] .chat-welcome-banner {
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .chat-scroll-bottom-btn {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .chat-toast {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .msg-actions {
    background: #fff;
    border-color: #e2e8f0;
}

[data-theme="light"] .message:hover {
    background: rgba(30, 58, 138, 0.02);
}

.online-status {
    font-size: 0.75rem;
    color: #2ed573;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(46, 213, 115, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
}

.online-status i {
    font-size: 0.6rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* --- PREMIUM RULES MODAL (Force Styles) --- */
.rules-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rules-modal.active {
    display: flex !important;
}

.rules-modal-content {
    background: #0a0a0a !important;
    border: 2px solid var(--gold) !important;
    border-radius: 28px !important;
    max-width: 500px;
    width: 100%;
    padding: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1) !important;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rules-header {
    text-align: center;
    margin-bottom: 30px;
}

.rules-header i {
    font-size: 3.5rem !important;
    color: var(--gold) !important;
    margin-bottom: 15px;
    display: block;
}

.rules-header h2 {
    font-size: 1.8rem !important;
    color: white !important;
    font-weight: 700;
}

.rules-body p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
}

.rules-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

.rules-body li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: white;
    font-size: 0.95rem;
}

.rules-body li i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.rules-body li i.fa-check-circle {
    color: #2ed573 !important;
}

.rules-body li i.fa-times-circle,
.rules-body li i.fa-ban,
.rules-body li i.fa-phone-slash {
    color: #ff4757 !important;
}

.rules-warning {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.rules-footer {
    margin-top: 30px;
}

#accept-chat-rules {
    width: 100%;
    padding: 16px;
    background: var(--gold) !important;
    color: black !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: 0.3s;
}

#accept-chat-rules:hover {
    background: var(--gold-bright) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}




/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--gold);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

.balance-card h3 {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 2rem;
}

/* AI Help Assistant Styles */
.ai-help-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 1rem;
}

.ai-messages-window {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: #eee;
}

.user-message .message-content {
    background: var(--gold);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.ai-help-input-area {
    padding: 1.2rem;
    background: rgba(15, 15, 15, 0.5);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
}

.ai-help-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.ai-help-input-area input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.small-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.small-support-link:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-dim);
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
}

/* Market Filter Buttons */
.btn-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

.market-card {
    transition: var(--transition);
}

.market-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Layout Selector Styles */
.layout-selector {
    padding: 3rem;
    text-align: center;
}

.selector-header {
    margin-bottom: 3rem;
}

.selector-header h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 ta karta yonma-yon */
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}



.layout-option {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.layout-option:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.layout-preview {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.6;
    transition: var(--transition);
}

.layout-option:hover .layout-preview {
    opacity: 1;
    transform: scale(1.1);
}

.layout-option h3 {
    margin-bottom: 10px;
    color: white;
}

.layout-option p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
}

.layout-option.active-theme,
.layout-option.active-layout {
    border-color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

[data-theme="light"] .layout-option.active-theme,
[data-theme="light"] .layout-option.active-layout {
    border-color: #1e3a8a !important;
    background: rgba(30, 58, 138, 0.05) !important;
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.15) !important;
}

#tv-launch-btn.active {
    background: var(--gold) !important;
    color: var(--dark-bg) !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(var(--gold-rgb), 0.3) !important;
}

#tv-launch-btn.active:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(var(--gold-rgb), 0.5) !important;
}

[data-theme="light"] #tv-launch-btn.active {
    background: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3) !important;
}

[data-theme="light"] #tv-launch-btn.active:hover {
    background: #3b82f6 !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5) !important;
}

/* --- Light Mode Premium Overrides --- */
[data-theme="light"] .sidebar-logo span {
    color: var(--gold);
}

/* Slide-in Sub-menu Styles */
.nav-container-wrapper {
    position: relative;
    width: 100%;
}

@media (max-width: 1050px) {
    .nav-container-wrapper {
        overflow: hidden;
        height: calc(100% - 150px);
    }
    .menu-view {
        width: 100%;
        height: 100%;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Custom Scrollbar for Sub-menus */
    .menu-view::-webkit-scrollbar {
        width: 3px;
    }
    .menu-view::-webkit-scrollbar-track {
        background: transparent;
    }
    .menu-view::-webkit-scrollbar-thumb {
        background: var(--glass-border);
        border-radius: 10px;
    }
    .menu-view.active {
        transform: translateX(0);
    }
    .sub-view {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        background: var(--sidebar-bg);
        display: block !important;
    }
    .sub-view.active {
        transform: translateX(-100%);
    }
}

/* PC Version: Neutralize everything */
@media (min-width: 1051px) {
    .menu-view, .nav-container-wrapper {
        overflow: visible !important;
        height: auto !important;
        transform: none !important;
        position: static !important;
    }
    .sub-view {
        display: none !important;
    }
    .sub-chevron-arrow {
        display: none !important;
    }
}

.sub-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
    transition: background 0.2s ease;
}

.sub-menu-header:hover {
    background: rgba(var(--gold-rgb), 0.05);
}

.sub-chevron-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.4;
}

/* Legacy light theme nav-item styles removed to prevent overriding the new cyan/tech theme */

[data-theme="light"] .btn-gold {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .btn-gold:hover {
    background: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .stat-card {
    border: 1px solid rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .stat-icon {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

[data-theme="light"] .stat-icon i {
    color: #0f172a;
}

[data-theme="light"] .welcome-section div {
    background: #0f172a !important;
}

[data-theme="light"] .top-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
}

/* Modal and Dropdown overrides */
[data-theme="light"] .profile-dropdown>div,
[data-theme="light"] .lang-dropdown>div {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .dropdown-links a:hover {
    background: rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .dropdown-links span[style*="background: var(--gold)"] {
    background: #0f172a !important;
}

[data-theme="light"] #theme-toggle-switch {
    background: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] #theme-toggle-dot {
    background: #0f172a !important;
}

[data-theme="light"] .profile-dropdown b,
[data-theme="light"] .profile-dropdown span,
[data-theme="light"] .profile-dropdown div[style*="color: var(--gold)"],
[data-theme="light"] .profile-dropdown div[style*="color: var(--text-dim)"] {
    color: #0f172a !important;
}

[data-theme="light"] .ai-pulse {
    background: #0f172a;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .ticker-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .market-guide-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01)) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .top-actions>div[onclick*="toggleProfileDropdown"] {
    border-color: #0f172a !important;
    color: #0f172a !important;
}

[data-theme="light"] b {
    color: #0f172a;
}

[data-theme="light"] .settings-sub-content>div {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: var(--shadow) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .badge-active {
    background: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .settings-sub-content label {
    color: #1e293b !important;
    font-weight: 600 !important;
    opacity: 0.9;
}

[data-theme="light"] .profile-sub-content label {
    color: #1e293b !important;
    font-weight: 600 !important;
}

[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(8px) !important;
}

/* ===== Unified Premium Side Nav (Market & Profile) ===== */
.premium-side-nav-aside,
.profile-sidebar-aside {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    padding: 16px 12px !important;
    overflow: hidden;
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    width: 250px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-theme="light"] .premium-side-nav-aside,
[data-theme="light"] .profile-sidebar-aside {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(30, 58, 138, 0.1) !important;
}

/* Dashboard Stat Cards & Elements - Enhanced Navy Blue */
[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(30, 58, 138, 0.1) !important;
    /* Lighter navy border */
    border-top: 4px solid #1e3a8a !important;
    /* Distinct Navy Top Border */
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.05) !important;
}

[data-theme="light"] .stat-icon {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .stat-icon i {
    color: #1e3a8a !important;
}

[data-theme="light"] .stat-value {
    color: #1e3a8a !important;
    /* Distinct Navy */
    font-weight: 800;
}

[data-theme="light"] .stat-label {
    color: #64748b !important;
    font-weight: 600;
}

[data-theme="light"] .section-header h2 {
    color: #1e3a8a !important;
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
    padding-bottom: 5px;
}

[data-theme="light"] .section-header h2 i {
    color: #1e3a8a !important;
}

[data-theme="light"] .data-item {
    background: #ffffff !important;
    border: 1px solid rgba(30, 58, 138, 0.08) !important;
    border-left: 4px solid transparent;
    transition: 0.3s;
}

[data-theme="light"] .data-item:hover {
    border-left-color: #1e3a8a !important;
    background: rgba(30, 58, 138, 0.02) !important;
}

[data-theme="light"] .item-icon {
    background: rgba(30, 58, 138, 0.05) !important;
    color: #1e3a8a !important;
}

[data-theme="light"] .item-text h4 {
    color: #1e3a8a !important;
}

/* Informational Blocks - Navy Blue steps */
[data-theme="light"] div[style*="width: 24px; height: 24px; background: var(--gold)"] {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

[data-theme="light"] h3[style*="color: var(--gold)"] {
    color: #1e3a8a !important;
}

.premium-nav-group {
    margin-bottom: 1.5rem;
}

.premium-nav-label {
    padding: 0 25px;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    opacity: 0.7;
}

.premium-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    margin: 0 8px 4px 8px !important;
    color: var(--text-dim) !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    border-radius: 12px !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    white-space: nowrap;
}

.premium-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: inherit !important;
}

/* Active State (Unified Gradient & Shadow) */
.premium-nav-item.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important; /* Premium Blue Gradient */
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 15px rgba(30, 64, 175, 0.3) !important;
    border: 1.5px solid #1e40af !important;
}

.premium-nav-item.active i {
    color: #ffffff !important;
}

/* Hover State (Light Mode) */
[data-theme="light"] .premium-nav-item:not(.active) {
    color: #64748b !important;
    opacity: 1 !important;
}

[data-theme="light"] .premium-nav-item:not(.active):hover {
    background: rgba(30, 58, 138, 0.08) !important;
    color: #1e40af !important;
    border: 1.5px solid #1e40af !important;
}

[data-theme="light"] .premium-nav-item:not(.active):hover i {
    color: #1e40af !important;
}

/* Hover State (Dark Mode / Default) */
.premium-nav-item:not(.active):hover {
    background: rgba(var(--gold-rgb), 0.1) !important;
    color: var(--gold) !important;
    border: 1.5px solid var(--gold) !important;
}

.premium-nav-item:not(.active):hover i {
    color: var(--gold) !important;
}

[data-theme="light"] .premium-nav-label {
    color: #1e3a8a !important;
    opacity: 0.7;
}

/* Premium Add New Button */
.btn-add-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--bg-primary) !important;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.2);
}

.btn-add-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.3);
    filter: brightness(1.1);
}

[data-theme="light"] .btn-add-premium {
    background: #1e3a8a !important;
    /* Vibrant Navy */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .btn-add-premium:hover {
    background: #1e40af !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.premium-nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 25px;
}

/* Premium FAQ Accordion */
.premium-faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    background: rgba(var(--gold-rgb), 0.02);
}

.premium-faq-item:hover {
    border-color: var(--gold);
    background: rgba(var(--gold-rgb), 0.05);
}

.premium-faq-summary {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
    list-style: none;
}

.premium-faq-summary::-webkit-details-marker {
    display: none;
}

.premium-faq-summary i {
    transition: 0.3s;
    color: var(--gold);
    font-size: 0.8rem;
}

.premium-faq-item[open] .premium-faq-summary i {
    transform: rotate(180deg);
}

.premium-faq-content {
    padding: 0 20px 15px 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

[data-theme="light"] .premium-faq-item {
    background: #f8fafc;
    border-color: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .premium-faq-item:hover {
    border-color: #1e3a8a;
    background: #ffffff;
}

[data-theme="light"] .premium-faq-summary i {
    color: #1e3a8a;
}

/* Usage Step Styles */
.usage-step-num {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(var(--gold-rgb), 0.2);
}

.usage-step-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 4px;
}

[data-theme="light"] .usage-step-num {
    background: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .usage-step-text {
    color: #334155 !important;
}

[data-theme="light"] .usage-step-text b {
    color: #1e3a8a;
}

/* Premium Robot Cards */
.robot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem; /* Kartalar orasidagi masofa */
    margin-top: 1rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.robot-grid-carousel {
    display: flex !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 15px;
    padding-top: 15px;
    margin-top: 0.5rem;
}

.robot-grid-carousel .robot-card-premium,
.robot-grid-carousel .market-card-premium {
    width: calc(50% - 1rem);
    min-width: 280px;
    flex-shrink: 0;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.btn-nav-arrow {
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    color: var(--gold);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
}

.btn-nav-arrow:hover {
    background: var(--gold);
    color: #000;
}

[data-theme="light"] .btn-nav-arrow {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

[data-theme="light"] .btn-nav-arrow:hover {
    background: #0f172a;
    color: #fff;
}

.robot-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Unified Premium Shadow */
}

.robot-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.robot-card-bg-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(var(--gold-rgb), 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: 0.5s;
}

.robot-card-premium:hover .robot-card-bg-glow {
    background: radial-gradient(circle at center, rgba(var(--gold-rgb), 0.1) 0%, transparent 60%);
}

.robot-card-header-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.robot-icon-wrapper-premium {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.2) 0%, rgba(var(--gold-rgb), 0.05) 100%);
    color: var(--gold);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(var(--gold-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.robot-info-premium {
    flex: 1;
    padding-right: 75px; /* Prevent overlap with ACTIVE badge */
}

.robot-info-premium h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.3px;
    word-break: break-word; /* Ensure long single words wrap properly */
}

.robot-subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.robot-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.status-active {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.robot-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.robot-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
}

.robot-card-actions-premium {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.btn-premium-download {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #000 !important;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-premium-download:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.5);
}

.btn-premium-settings {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-premium-settings:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
    transform: rotate(45deg);
}

/* Light Mode Overrides */
[data-theme="light"] .robot-card-premium {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.04);
}

[data-theme="light"] .robot-card-premium:hover {
    border-color: #1e3a8a;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.08);
}

[data-theme="light"] .robot-icon-wrapper {
    background: rgba(30, 58, 138, 0.05);
    color: #1e3a8a;
}

[data-theme="light"] .robot-meta i {
    color: #1e3a8a;
}

[data-theme="light"] .btn-robot-download {
    background: #1e3a8a;
    color: #ffffff !important;
}

/* Market Card Premium Styles */
.market-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.market-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.market-card-image-area {
    height: 140px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.08) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Setup Step Cards */
.setup-step-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    transition: 0.3s ease;
}

.setup-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.market-icon-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
}

.market-card-image-area i {
    font-size: 3rem;
    color: var(--gold);
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.3));
}

.market-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.market-card-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.market-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.market-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--gold-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.market-rating i {
    color: var(--gold);
    font-size: 0.7rem;
}

.market-rating span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
}

.market-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

.market-card-footer {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 5px;
}

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

.price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}

.btn-market-action {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-market-action:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.5);
}

/* Light Mode Market Overrides */
[data-theme="light"] .market-card-premium {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .market-badge {
    background: rgba(30, 41, 59, 0.9);
}

[data-theme="light"] .market-price-tag .price-value {
    color: #1e3a8a;
}

[data-theme="light"] .btn-market-action {
    background: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .btn-premium-download {
    background: #1e3a8a;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

/* ============================================================
   PREMIUM AI ASSISTANT (HELP TAB) REDESIGN
   ============================================================ */
.ai-help-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.ai-messages-window {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.05), transparent);
}

/* Scrollbar styling */
.ai-messages-window::-webkit-scrollbar {
    width: 6px;
}

.ai-messages-window::-webkit-scrollbar-thumb {
    background: rgba(var(--gold-rgb), 0.2);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: fadeInSlide 0.3s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.ai-message .message-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-bottom-left-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--gold), #b38f00);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 5px;
    box-shadow: -5px 5px 15px rgba(var(--gold-rgb), 0.2);
}

.ai-help-input-area {
    padding: 1.5rem 2rem;
    background: rgba(var(--bg-primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 15px;
    align-items: center;
}

.ai-input-wrapper {
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.ai-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.2);
}

#ai-help-input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 12px 0;
    font-size: 0.95rem;
    outline: none;
}

.btn-ai-send {
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ai-send:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.4);
}

/* Suggestions */
.ai-suggestions {
    display: flex;
    gap: 10px;
    padding: 10px 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
    display: none;
}

.suggestion-chip {
    white-space: nowrap;
    background: rgba(var(--gold-rgb), 0.1);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    color: var(--gold);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: var(--gold);
    color: #000;
}

.social-support-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Promo Icon Shining Animation */
.promo-icon-shining {
    position: relative;
    z-index: 1;
    color: white !important;
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }

    100% {
        transform: scale(1.1);
        text-shadow: 0 0 25px rgba(99, 102, 241, 1), 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

.promo-icon-wrapper-premium {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.promo-icon-wrapper-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* --- PREMIUM MARKET & ROBOTS STYLES --- */

/* Market Header Premium Card */
.market-header-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.market-header-premium:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--gold-rgb), 0.3) !important;
}

/* Market Search Container & Inputs */
.market-search-container>div {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.market-search-container>div:focus-within {
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.15);
    transform: translateY(-1px);
}

.market-search-container input::placeholder {
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.market-search-container input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

.market-search-container select:hover {
    color: var(--gold);
}

/* Robots Setup Step Cards */
.setup-step-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    border-radius: 20px;
}

.setup-step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.03);
}

.setup-step-card:hover div[style*="width: 60px"] {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(var(--gold-rgb), 0.4);
}

.setup-step-card:hover i {
    transform: scale(1.2);
    color: var(--gold) !important;
    opacity: 1 !important;
}

/* Custom Scrollbar for Market Tab */
#market::-webkit-scrollbar {
    width: 6px;
}

#market::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

#market::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Add Product Button Pulse */
.btn-gold[style*="background: #22c55e"] {
    animation: btnPulseSuccess 3s infinite;
}

@keyframes btnPulseSuccess {
    0% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
    }

    100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    }
}

/* Badge for notifications */
.badge-count {
    margin-left: auto;
    background: #1e40af;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Smooth Content Transitions */
.profile-sub-content {
    animation: profileSubFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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


.premium-nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 10px 0;
    opacity: 0.5;
}

/* Light Mode Overrides */
[data-theme="light"] .premium-nav-item i {
    color: #1e3a8a;
}

[data-theme="light"] .premium-nav-item.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: #ffffff !important;
}

[data-theme="light"] .premium-nav-item.active i {
    color: #ffffff !important;
}
/* Top Bar Action Tooltips & Icons */
.top-bar-action-item { position: relative; cursor: pointer; }
.top-bar-icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-dim); transition: all 0.3s ease; font-size: 0.95rem; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 25px; background: transparent; }
.suggestion-chip { padding: 9px 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); border-radius: 100px; color: var(--text-dim); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; }
.suggestion-chip:hover { background: var(--gold); color: #fff !important; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.3); }
.suggestion-chip:active { transform: translateY(0); }
.top-bar-action-item:hover .top-bar-icon-btn { background: rgba(var(--gold-rgb), 0.1); color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.notification-dot { position: absolute; top: 0; right: 0; width: 8px; height: 8px; background: #ff4757; border-radius: 50%; border: 2px solid var(--dark-bg); box-shadow: 0 0 5px rgba(255, 71, 87, 0.5); }
/* Premium Blog Section Styles */

.blog-container-premium {
    padding: 1rem 0;
}

.blog-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.blog-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--gold-rgb), 0.1);
}

.blog-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-premium:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-badge-premium {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(var(--dark-bg-rgb, 10, 10, 10), 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--gold-rgb), 0.3);
}

.blog-content-premium {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-premium {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card-premium:hover .blog-title-premium {
    color: var(--gold);
}

.blog-meta-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-footer-premium {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-blog-read {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.blog-card-premium:hover .btn-blog-read {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}


.blog-card-premium:hover .btn-blog-read i {
    transform: translateX(4px);
}

.btn-blog-read i {
    transition: transform 0.3s ease;
}

.top-bar-tooltip { position: absolute; top: calc(100% + 12px); right: 50%; transform: translateX(50%) translateY(10px); background: var(--bg-secondary); border: 1px solid var(--glass-border); padding: 12px 15px; border-radius: 12px; width: 180px; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); z-index: 1000; pointer-events: none; text-align: center; }
.top-bar-tooltip::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--glass-border); }
.top-bar-action-item:hover .top-bar-tooltip { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
/* Premium Mini Search Box */
.search-box-mini {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 220px;
}


.search-box-mini:focus-within {
    border-color: var(--gold);
    background: var(--bg-secondary);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.1);
    width: 260px; 
}

.search-box-mini i {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.search-box-mini:focus-within i {
    color: var(--gold);
}

.search-box-mini input {
    background: none;
    border: none;
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.search-box-mini input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}



/* Premium View More Button */
.btn-view-more-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-more-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--gold);
    transform: translateX(3px);
}

.btn-view-more-premium i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-view-more-premium:hover i {
    transform: translateX(3px);
}


/* CodeForge AI: High IQ Styling */
.neural-network-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(99, 102, 241, 0.05) 0.5px, transparent 0.5px); background-size: 8px 8px; opacity: 0.2; z-index: 1; pointer-events: none; }
.scanning-line { position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent); animation: scanLoop 4s linear infinite; z-index: 2; }
@keyframes scanLoop { 0% { top: 0; } 100% { top: 100%; } }
.ai-iq-badge { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; padding: 4px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); }
.ai-stat-mini { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 0.8rem; font-weight: 600; background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.ai-stat-mini i { color: #818cf8; font-size: 0.85rem; }
.iq-pulse-ring { position: absolute; width: 100%; height: 100%; border: 2px solid #6366f1; border-radius: 18px; animation: iqPulse 2s infinite; opacity: 0; }
@keyframes iqPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.4); opacity: 0; } }
.high-iq-glow { box-shadow: 0 0 30px rgba(99, 102, 241, 0.6) !important; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.terminal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#ai-live-status { transition: opacity 0.5s ease; }
 
/* AI Help Tab: Compact & Professional Chat Window */
.ai-help-container { height: 80vh; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
#ai-help-messages.ai-messages-window { flex: 1; height: auto; }
.ai-messages-window { overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 20px; background: rgba(var(--gold-rgb), 0.02); scroll-behavior: smooth; }
.ai-messages-window::-webkit-scrollbar { width: 5px; }
.ai-messages-window::-webkit-scrollbar-track { background: transparent; }
.ai-messages-window::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 10px; }
 
.ai-help-input-area { padding: 20px; background: rgba(255,255,255,0.02); border-top: 1px solid var(--glass-border); display: flex; gap: 15px; align-items: center; }
.ai-input-wrapper { flex: 1; background: var(--bg-primary); border: 1px solid var(--glass-border); border-radius: 15px; padding: 8px 15px; display: flex; align-items: center; transition: all 0.3s ease; }
.ai-input-wrapper:focus-within { border-color: var(--gold); box-shadow: 0 0 15px rgba(var(--gold-rgb), 0.1); }
.ai-input-wrapper input { background: none; border: none; color: var(--text-main); font-size: 0.95rem; width: 100%; outline: none; padding: 8px 0; }
 
.btn-ai-send { width: 50px; height: 50px; background: var(--gold); border: none; border-radius: 15px; color: #fff; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.btn-ai-send i { color: #fff !important; }
.btn-ai-send:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.4); }
 
/* Chat Bubble Styles */
.user-message { align-self: flex-end; max-width: 80%; }
.user-message .message-content { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff !important; padding: 12px 20px; border-radius: 18px 18px 2px 18px; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); }
.user-message .message-content p { color: #fff !important; margin: 0; font-weight: 500; }
 
.ai-message { align-self: flex-start; max-width: 85%; }
.ai-message .message-content { background: var(--bg-primary); border: 1px solid var(--glass-border); color: var(--text-main); padding: 15px 20px; border-radius: 18px 18px 18px 2px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
 
/* Blog Modal Premium Styles */
.blog-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; transition: all 0.3s ease; }
.blog-modal-content { background: var(--bg-secondary); border: 1px solid var(--glass-border); width: 100%; max-width: 550px; max-height: 90vh; border-radius: 32px; position: relative; overflow-y: auto; padding: 30px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes modalScale { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.blog-modal-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 50%; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; }
.blog-modal-close:hover { background: #ef4444; color: #fff; border-color: #ef4444; transform: rotate(90deg); }
.blog-article-header { margin-bottom: 20px; text-align: center; }
.blog-article-img { width: 100%; height: 200px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; border: 1px solid var(--glass-border); }
.blog-article-title { font-size: 1.6rem; font-weight: 900; color: var(--gold); margin-bottom: 12px; line-height: 1.2; }
.blog-article-body { font-size: 1.1rem; color: var(--text-main); line-height: 1.8; opacity: 0.9; }
.blog-article-body p { margin-bottom: 20px; }
.blog-article-body strong { color: var(--gold); }

/* CodeForge AI Promo - Compact Version */
.codeforge-promo-premium {
    background: linear-gradient(135deg, #1e3a8a, #111827);
    padding: 1rem 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promo-icon-wrapper-premium {
    width: 50px !important;
    height: 50px !important;
}

.codeforge-promo-premium h2 {
    font-size: 1.4rem !important;
}

.codeforge-promo-premium p {
    font-size: 0.9rem !important;
}

.btn-high-iq {
    padding: 10px 25px !important;
    font-size: 0.9rem !important;
}



/* --- PREMIUM ROBOT CARDS (MY ROBOTS) --- */
.robot-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.robot-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--gold-rgb), 0.1);
}

.robot-card-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.robot-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.status-active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.robot-card-header-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.robot-icon-wrapper-premium {
    width: 48px;
    height: 48px;
    background: rgba(var(--gold-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
}

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

.robot-info-premium h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Platform Badges (Inline, Small & Premium) */
.platform-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}

.platform-badge-inline.mt5 {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.platform-badge-inline.mt4 {
    background: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
}

.platform-badge-inline.tv {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #a855f7 !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
}

.product-id-tag {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

.robot-subtitle {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.robot-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.robot-stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--glass-border);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.robot-card-actions-premium {
    display: flex;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.btn-premium-action {
    width: 38px;
    height: 38px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-premium-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.btn-settings:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-edit:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-premium-download {
    flex: 1;
    height: 42px;
    background: var(--gold);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-premium-download:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-premium-download i,
.btn-premium-download span {
    font-size: 0.9rem;
    color: #fff !important;
}

/* Light Mode Card Overrides */
[data-theme="light"] .robot-card-premium {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .robot-stat-box {
    background: #f8fafc;
}
/* ===== SETUP STEPS ANIMATION (JS-Driven) ===== */
.setup-hub-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.setup-gradient-backdrop {
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 300px; 
    height: 100%; 
    background: linear-gradient(225deg, rgba(var(--gold-rgb), 0.05) 0%, transparent 70%); 
    pointer-events: none;
}

.setup-steps-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    position: relative;
    width: 100%;
}

.setup-step-card {
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
}

.setup-step-card .step-number-circle {
    transition: all 0.4s ease;
}

/* Default state for numbers (Light Mode by default) */
.step-number-circle {
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    background: #ffffff !important;
}

/* Dark Mode Override */
[data-theme="dark"] .step-number-circle {
    color: #1e3a8a !important;
    border: 2px solid var(--gold) !important;
    background: #ffffff !important;
}

/* Active State (Triggered by JS) */
.setup-step-card.active {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold) !important;
    background: rgba(var(--gold-rgb), 0.05) !important;
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.3) !important;
}

/* Step 1 is always active/dark in the initial design */
.setup-step-card.step-1 .step-number-circle {
    color: #1e3a8a !important;
    background: #ffffff !important;
    border: 2px solid var(--gold) !important;
}

[data-theme="light"] .setup-step-card.step-1 .step-number-circle {
    color: #1e3a8a !important;
    background: #ffffff !important;
    border: 2px solid #1e3a8a !important;
}

/* Step 5 starts with a green border and white background */
.setup-step-card.step-5 .step-number-circle {
    color: #1e3a8a !important;
    background: #ffffff !important;
    border: 2px solid #27ae60 !important;
}

/* =========================================================================
   GLOBAL CONTRAST ACCESSIBILITY OVERRIDES: WHITE TEXT ON DARK BLUE BACKGROUNDS
   ========================================================================= */
[data-theme="light"] .user-message .message-content {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: #ffffff !important;
}

[data-theme="light"] .user-message .message-content * {
    color: #ffffff !important;
}

[data-theme="light"] .btn-ai-send {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-ai-send i {
    color: #ffffff !important;
}

[data-theme="light"] .btn-ai-send:hover {
    background: #3b82f6 !important;
}

[data-theme="light"] .suggestion-chip:hover {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

/* Override inline styles using background: var(--gold) to ensure readable text */
[data-theme="light"] [style*="background: var(--gold)"],
[data-theme="light"] [style*="background:var(--gold)"],
[data-theme="light"] [style*="background: var(--gold);"],
[data-theme="light"] [style*="background:var(--gold);"] {
    color: #ffffff !important;
}

[data-theme="light"] [style*="background: var(--gold)"] *,
[data-theme="light"] [style*="background:var(--gold)"] *,
[data-theme="light"] [style*="background: var(--gold);"] *,
[data-theme="light"] [style*="background:var(--gold);"] * {
    color: #ffffff !important;
}

/* Premium TradingView Launch Button styling */
.btn-tv-launch {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0.7;
}

[data-theme="light"] .btn-tv-launch {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.btn-tv-launch.active, .btn-tv-launch:not([disabled]) {
    background: var(--gold) !important;
    color: #000000 !important;
    cursor: pointer !important;
    border-color: var(--gold) !important;
    box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.4) !important;
    opacity: 1 !important;
}

.btn-tv-launch.active:hover, .btn-tv-launch:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(var(--gold-rgb), 0.6) !important;
}

#theme-toggle-switch {
    display: none !important;
}

/* Calendar Responsive Layout */
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    height: 100%;
}
.calendar-mobile-top-bar {
    display: none;
}
.calendar-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.calendar-main-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1000px) {
    .calendar-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .calendar-right-sidebar {
        display: none !important; /* Hide sidebar on mobile */
    }
    .calendar-mobile-top-bar {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
    .calendar-mobile-btn {
        flex: 1;
        background: rgba(var(--gold-rgb), 0.1);
        border: 1px solid var(--gold);
        color: var(--gold);
        padding: 10px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 500px) {
    #terms-slider-container > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
} 
 
/* VPS Button Styles */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-gold:hover {
    box-shadow: 0 10px 20px rgba(var(--gold-rgb), 0.5);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
[data-theme="light"] .btn-outline {
    color: var(--gold);
}
.btn-outline:hover {
    background: rgba(var(--gold-rgb), 0.1);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .btn-gold, .btn-outline {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    .vps-mobile-slider > div {
        padding: 1.5rem !important;
        gap: 15px !important;
    }
    .vps-mobile-slider h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }
    .vps-mobile-slider p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }
    .vps-mobile-slider .fas {
        font-size: 1rem !important;
    }
    .vps-mobile-slider > div > div[style*="width: 50px"] {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }
    .vps-mobile-slider div[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
}

