/* Dashboard - Matching Frontpage Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* CSS Variables from frontpage - EXACT MATCH */
:root {
    /* Primary Colors */
    --bg-primary: #0A0A0B;
    --profit-green: #00FF88;
    --electric-blue: #00D4FF;
    --alert-red: #FF0066;
    --accent-purple: #8B5CF6;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    
    /* Secondary Colors */
    --bg-secondary: #141416;
    --bg-tertiary: #1A1A1D;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-green: linear-gradient(135deg, #00ff88, #00cc6a);
    --gradient-red: linear-gradient(135deg, #ff3366, #ff0044);
    --gradient-blue: linear-gradient(135deg, #00d4ff, #0099cc);
    
    /* Glows */
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-red: 0 0 20px rgba(255, 51, 102, 0.5);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* Prevent any scrolling on html/body */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Ensure no body scrolling */
}

/* Clean background like frontend */
.dashboard-container {
    background-color: var(--bg-primary);
}

/* Dashboard Layout - Full Width */
.dashboard-container {
    width: 100%;
    height: 100vh; /* Fixed height */
    position: relative;
    overflow: hidden; /* Prevent container from scrolling */
    /* Removed display: flex - sidebar and top-bar are fixed position */
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
    display: none !important;
}

/* Sidebar - Fixed Position */
.sidebar {
    width: 280px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Removed border-right to eliminate gap */
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    overflow: hidden; /* Prevent sidebar from scrolling */
    box-sizing: border-box;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Header with Logo */
.sidebar-header {
    height: 80px; /* Fixed height matching top bar */
    padding: 0 1.5rem; /* Only horizontal padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Removed border-right - was creating visual gap with top-bar */
    background: transparent;
    flex-shrink: 0; /* Prevent header from shrinking */
    display: flex;
    align-items: center; /* Center logo vertically */
}

/* Sidebar Language Section */
.sidebar-language-section {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* margin-top: auto; - Removed to prevent pushing nav items up */
}

#sidebar-language-switcher-container {
    display: flex;
    justify-content: center;
}

/* Simple Language Switcher */
.simple-language-switcher {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.25rem;
}

.simple-language-switcher .lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.simple-language-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.simple-language-switcher .lang-btn.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--profit-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.simple-language-switcher .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.simple-language-switcher .lang-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--profit-green);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.logo-text:hover {
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Navigation */
.sidebar-nav {
    flex: 1 1 auto; /* Allow to grow and shrink */
    padding: 1rem 0; /* Reduced padding */
    overflow-y: auto; /* Allow scrolling if menu items overflow */
    min-height: 0; /* Ensure flex child can shrink */
    max-height: calc(100vh - 180px); /* Increased height to show all menu items including admin */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent; /* Firefox */
}

/* Webkit scrollbar styling */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-item {
    display: flex !important; /* Force display */
    align-items: center;
    padding: 0.85rem 1.5rem; /* Reduced padding to fit all items */
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Admin menu item - controlled by JavaScript based on user role */
#adminMenuItem {
    /* Display property controlled by JavaScript - do not override here */
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

/* When admin menu is shown, use flex layout */
#adminMenuItem[style*="display: block"] {
    display: flex !important;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-green);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    color: var(--profit-green);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item:hover::before {
    transform: translateX(0);
}

.nav-item.active {
    color: var(--profit-green);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active::before {
    transform: translateX(0);
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    filter: saturate(0.8);
}

.nav-item.active .nav-icon {
    filter: saturate(1.5) brightness(1.2);
}

.nav-text {
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller to fit all items */
}

/* Ensure Binance menu item is visible */
.nav-item[href="#binance"] {
    display: flex !important;
    visibility: visible !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: auto; /* Push to bottom */
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 0, 102, 0.3);
    border-radius: 12px;
    color: var(--alert-red);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 102, 0.1);
    border-color: var(--alert-red);
    transform: translateY(-2px);
}

/* Main Content Area - The only scrollable container */
.main-content {
    position: fixed; /* Fixed positioning */
    top: 80px; /* Below the fixed top bar */
    left: 280px; /* Aligned with sidebar (280px including border) */
    right: 0;
    bottom: 0;
    width: calc(100% - 280px); /* Full width minus sidebar */
    height: calc(100vh - 80px); /* Full height minus top bar */
    background: var(--bg-primary);
    overflow-y: auto; /* ONLY scrollbar in the entire dashboard */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Top Bar - Positioned to seamlessly connect with sidebar */
.top-bar {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 0;
    left: 280px; /* Start exactly where sidebar ends */
    right: 0;
    width: calc(100% - 280px); /* Width from sidebar edge to right */
    z-index: 50;
    height: 80px; /* Same height as sidebar header */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Top bar inner content - this gets the padding */
.top-bar-inner {
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-message h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.welcome-message h2 span {
    background: linear-gradient(135deg, var(--profit-green), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: var(--profit-green);
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: var(--profit-green);
    box-shadow: var(--glow-green);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Dashboard Content Wrapper - Just a centering container, no scrolling */
.dashboard-content {
    padding: 2rem;
    width: 100%;
    max-width: 1200px; /* Content max width */
    margin: 0 auto; /* Centers the content horizontally */
    box-sizing: border-box;
    /* No height constraints - content determines height */
    height: auto;
    overflow: visible !important; /* Never scroll */
    position: relative;
}

/* Content Sections - Just content containers, no scrolling */
.content-section {
    display: none;
    animation: fadeInUp 0.5s ease;
    width: 100%;
    height: auto; /* Content determines height */
    overflow: visible !important; /* Never scroll */
    padding: 0; /* Padding handled by dashboard-content */
    box-sizing: border-box;
}

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

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

/* Subscription Container Specific Styles */
.subscription-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
    padding: 0;
    overflow: visible; /* No scrolling on container */
}

/* Remove any potential overflow from inner containers */
.subscription-container > div {
    overflow: visible;
}

/* Ensure all sections don't create their own scrollbars */
.content-section > div {
    overflow: visible;
    height: auto;
}

/* Fix for nested containers */
.plan-details, .upgrade-options, .payment-section {
    overflow: visible !important;
    height: auto !important;
}

/* Cards with Glass Effect - Crypto Ticker Style */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Clean glass card without shimmer */

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--profit-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Stats Grid - Crypto Ticker Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Remove rotating animation for cleaner look */

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--profit-green);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--profit-green);
    font-family: 'JetBrains Mono', monospace;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--profit-green);
}

.stat-change.negative {
    color: var(--loss-red);
}

/* Buttons - Crypto Style */
.btn-primary {
    background: linear-gradient(135deg, var(--profit-green), var(--electric-blue));
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--profit-green);
    border-color: var(--profit-green);
    transform: translateY(-2px);
}

/* Trading Signals Table - Crypto Style */
.signals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.signals-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.signals-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.signals-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.signals-table td {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.signals-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.signal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.signal-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--profit-green);
    border: 1px solid var(--profit-green);
}

.signal-status.win {
    background: rgba(0, 255, 136, 0.2);
    color: var(--profit-green);
}

.signal-status.loss {
    background: rgba(255, 51, 102, 0.2);
    color: var(--loss-red);
}

/* Subscription Cards - Crypto Style */
.subscription-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subscription-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--profit-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.subscription-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subscription-status.active {
    background: var(--gradient-green);
    color: var(--bg-primary);
}

.subscription-status.inactive {
    background: rgba(255, 51, 102, 0.2);
    color: var(--loss-red);
    border: 1px solid var(--loss-red);
}

/* Mobile Menu Toggle styling moved to media queries */

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        position: fixed;
        top: 80px; /* Below mobile top bar */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto; /* Only scrollbar */
        overflow-x: hidden;
        background: var(--bg-primary);
    }

    .top-bar {
        left: 0; /* Full width on mobile */
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
        background: rgba(0, 255, 136, 0.9);
        border: 1px solid rgba(0, 255, 136, 0.5);
        padding: 0;
        width: 45px;
        height: 45px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
        color: white;
        font-size: 1.5rem;
        line-height: 1;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--profit-green);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    /* Fade toggle when sidebar is open */
    .sidebar.active ~ .mobile-menu-toggle {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-purple), var(--electric-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--electric-blue), var(--accent-purple));
}

/* Dashboard-specific Top Bar Layout Adjustments */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dashboard language switcher container */
#dashboard-language-switcher-container {
    display: flex;
    align-items: center;
}

#dashboard-language-switcher-container .language-switcher {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 10;
}

#dashboard-language-switcher-container .language-switcher-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#dashboard-language-switcher-container .language-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--electric-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

#dashboard-language-switcher-container .language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

/* Subscription Badge Styles */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(0, 212, 255, 0.2));
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.subscription-badge.free {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.subscription-badge .badge-icon {
    font-size: 1rem;
}

.subscription-badge .badge-text {
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Top bar mobile optimization */
    .top-bar {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 60;
        height: auto;
    }
    
    /* Main content already positioned correctly with fixed positioning */
    
    .welcome-message {
        flex: 1;
        min-width: 0; /* Allow text truncation */
        margin-left: 50px; /* Add space to avoid menu button */
    }
    
    .welcome-message h2 {
        font-size: 0.9rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }
    
    /* Keep welcome message on one line */
    .welcome-message h2 span {
        display: inline !important;
    }
    
    .date-time {
        display: none; /* Hide date on mobile to save space */
    }
    
    .top-bar-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Subscription badge mobile */
    .subscription-badge {
        flex: 0 1 auto;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        margin-right: 0;
    }
    
    .subscription-badge .badge-icon {
        font-size: 0.875rem;
    }
    
    .subscription-badge .badge-text {
        display: inline-block;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* User avatar mobile */
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* Language switcher mobile */
    #dashboard-language-switcher-container {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    #dashboard-language-switcher-container .language-switcher-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }
    
    /* Dashboard content spacing */
    .dashboard-content {
        padding: 1rem;
        height: auto; /* Content determines height */
        overflow: visible !important; /* No scrolling */
    }

}

/* Large screens - ensure content centering is visible */
@media (min-width: 1600px) {
    .dashboard-content {
        max-width: 1400px; /* Slightly wider on large screens */
    }
}

@media (min-width: 1920px) {
    .dashboard-content {
        max-width: 1600px; /* Even wider for very large screens */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .main-content {
        top: 60px; /* Smaller header on tiny screens */
        height: calc(100vh - 60px);
    }
    
    .welcome-message h2 {
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .welcome-message {
        margin-left: 45px; /* Smaller margin on very small screens */
    }
    
    /* Force everything on one line */
    .welcome-message h2 span#userName {
        display: inline !important;
    }
    
    .subscription-badge {
        display: none; /* Hide badge on very small screens to save space */
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    #dashboard-language-switcher-container .language-switcher-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-bar {
        flex-direction: row;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    
    .welcome-message {
        flex: 1;
        text-align: left;
    }
    
    .welcome-message h2 {
        font-size: 1rem;
    }
    
    .date-time {
        display: none;
    }
    
    .top-bar-right {
        flex: 0 0 auto;
        width: auto;
    }
}

/* Balance Input Group Styles */
.balance-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.balance-input-group label {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
}

.balance-input-group input[type="number"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.25rem;
    outline: none;
    min-width: 0; /* Allow shrinking below default size */
}

.balance-input-group input[type="number"]:focus {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.balance-input-group input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.balance-input-group .currency-label {
    color: #00FF88;
    font-weight: 600;
    font-size: 0.85rem;
    padding-right: 0.5rem;
    flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .balance-input-group {
        gap: 0.25rem;
        padding: 0.4rem;
    }

    .balance-input-group label {
        font-size: 0.8rem;
        min-width: 50px;
    }

    .balance-input-group input[type="number"] {
        font-size: 0.9rem;
    }

    .balance-input-group .currency-label {
        font-size: 0.8rem;
        padding-right: 0.25rem;
    }
}

.balance-input-group .btn-save-balance {
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    border: none;
    color: #0A0A0B;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.balance-input-group .btn-save-balance:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.balance-input-group .btn-save-balance:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

#balanceStatus {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

#balanceStatus.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

#balanceStatus.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

#balanceLockMessage {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 136, 0, 0.05);
    border: 1px solid rgba(255, 136, 0, 0.2);
    border-radius: 12px;
}

#balanceLockMessage p {
    color: #FFA500;
    margin: 0;
    font-size: 0.9rem;
}

#balanceLockMessage .upgrade-link {
    color: #00FF88;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

#balanceLockMessage .upgrade-link:hover {
    text-decoration: underline;
}

/* Notification Settings Styles */
.notification-settings {
    margin-top: 1.5rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .setting-row {
        flex-direction: column;
        padding: 1rem;
    }

    .setting-row .setting-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.setting-info h3 {
    color: var(--profit-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.setting-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--profit-green);
    border-color: var(--profit-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(32px);
    background-color: white;
}

.notification-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.notification-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--profit-green);
}

.notification-status.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.notification-status.info {
    display: block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--electric-blue);
}
/* Upgrade button styles */
.plan-btn-upgrade {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.plan-btn-upgrade:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, #00E5FF 0%, #00AADD 100%);
}

.plan-btn-disabled {
    background: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    width: 100%;
    margin-top: 1rem;
}

/* Downgrade Button Styles */
.plan-btn-downgrade {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.8), rgba(255, 60, 0, 0.8));
    color: white;
    border: 1px solid rgba(255, 107, 0, 0.5);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
}

.plan-btn-downgrade:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 127, 0, 0.9), rgba(255, 80, 0, 0.9));
}

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

/* Subscription and Downgrade Modal Styles */
.subscription-modal,
.downgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.subscription-modal .modal-backdrop,
.downgrade-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.subscription-modal .modal-content,
.downgrade-modal .modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.subscription-modal h3,
.downgrade-modal h3 {
    color: #00FF88;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subscription-modal p,
.downgrade-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Subscription modal specific styles */
.subscription-modal .modal-info {
    margin: 1.5rem 0;
}

.subscription-modal .price-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.subscription-modal .price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-modal .price-line:last-child {
    border-bottom: none;
}

.subscription-modal .price-line.total {
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.subscription-modal .price-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

.subscription-modal .price-sale {
    color: #00FF88;
}

.subscription-modal .price-discount {
    color: #FFA500;
}

.subscription-modal .price-credit {
    color: #00D4FF;
}

.subscription-modal .price-final {
    color: #00FF88;
    font-weight: 600;
}

.subscription-modal .credit-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.subscription-modal .payment-notice {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.subscription-modal .modal-actions,
.downgrade-modal .modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.downgrade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.downgrade-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.downgrade-option h4 {
    color: #00D4FF;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.downgrade-option p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: left;
}

.downgrade-option button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.downgrade-option .btn-primary {
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    color: #0A0A0B;
}

.downgrade-option .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.downgrade-option .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.downgrade-option .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.plan-upgrade-info {
    animation: slideIn 0.3s ease;
}

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

/* Signal Updates Button */
.signal-updates-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    color: #00D4FF;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signal-updates-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.update-badge {
    background: rgba(0, 212, 255, 0.3);
    padding: 0.1rem 0.25rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Update Modal Overlay */
.update-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.update-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.98), rgba(30, 30, 35, 0.95));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.update-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.update-modal-header h3 {
    color: #00FF88;
    margin: 0;
    font-size: 1.2rem;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.update-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.update-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 255, 136, 0.15);
}

.update-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.update-type {
    color: #00FF88;
    font-weight: 600;
    font-size: 0.9rem;
}

.update-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.update-message {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.update-changes {
    padding: 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Mobile Responsiveness for Updates */
@media (max-width: 768px) {
    .update-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .update-modal-body {
        padding: 1rem;
    }

    .signal-updates-btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
}

/* Responsive Design for Downgrade Modal */
@media (max-width: 768px) {
    .downgrade-options {
        grid-template-columns: 1fr;
    }

    .downgrade-modal .modal-content {
        padding: 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .downgrade-modal .modal-content {
        padding: 1rem;
    }

    .downgrade-option {
        padding: 1rem;
    }
}

/* Subscription Payment Popup */
.subscription-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscription-popup-overlay.active {
    opacity: 1;
}

.subscription-popup {
    background: linear-gradient(145deg,
        rgba(26, 31, 58, 0.98) 0%,
        rgba(10, 15, 28, 0.98) 100%);
    border: 1px solid rgba(79, 209, 197, 0.15);
    border-radius: 24px;
    max-width: 580px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(79, 209, 197, 0.05),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscription-popup-overlay.active .subscription-popup {
    transform: scale(1) translateY(0);
}

/* Smooth scrollbar */
.subscription-popup {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 209, 197, 0.3) transparent;
}

.subscription-popup::-webkit-scrollbar {
    width: 6px;
}

.subscription-popup::-webkit-scrollbar-track {
    background: transparent;
}

.subscription-popup::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 197, 0.3);
    border-radius: 3px;
}

.subscription-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 209, 197, 0.5);
}

.popup-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(79, 209, 197, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg,
        rgba(79, 209, 197, 0.03) 0%,
        transparent 100%);
}

.popup-header h2 {
    background: linear-gradient(135deg, #4fd1c5 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.popup-close {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #8892b0;
    font-size: 20px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.popup-close:hover {
    background: rgba(255, 83, 112, 0.1);
    border-color: rgba(255, 83, 112, 0.3);
    color: #ff5370;
    transform: rotate(90deg) scale(1.1);
}

.popup-content {
    padding: 32px;
}

.plan-summary {
    background: linear-gradient(145deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(79, 209, 197, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.plan-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(79, 209, 197, 0.3),
        transparent);
}

.plan-info {
    margin-bottom: 20px;
}

.plan-info h3 {
    background: linear-gradient(135deg, #00ff88 0%, #4fd1c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.plan-info p {
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.pricing-breakdown {
    border-top: 1px solid rgba(79, 209, 197, 0.08);
    padding-top: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.price-line:hover {
    transform: translateX(2px);
}

.price-line.total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(79, 209, 197, 0.2);
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
}

.price-line .price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(135deg, #4fd1c5 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-line .price.credit {
    background: linear-gradient(135deg, #ffa500 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-line .price.discount {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4 {
    color: #cbd5e0;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: linear-gradient(145deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(79, 209, 197, 0.1);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(79, 209, 197, 0.5),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.payment-method-card:hover {
    background: linear-gradient(145deg,
        rgba(79, 209, 197, 0.05),
        rgba(79, 209, 197, 0.1));
    border-color: rgba(79, 209, 197, 0.2);
    transform: translateY(-2px);
}

.payment-method-card:hover::before {
    transform: translateX(100%);
}

.payment-option input[type="radio"]:checked + .payment-method-card {
    background: linear-gradient(145deg,
        rgba(79, 209, 197, 0.15),
        rgba(79, 209, 197, 0.25));
    border-color: rgba(79, 209, 197, 0.5);
    box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.2),
                0 4px 20px rgba(79, 209, 197, 0.15);
}

.payment-method-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.payment-method-card span {
    color: #cbd5e0;
    font-size: 14px;
    font-weight: 500;
}

.popup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-cancel:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.btn-confirm {
    flex: 2;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4fd1c5 0%, #00ff88 100%);
    border: none;
    color: #0a0f1c;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.25);
}

.btn-confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-confirm:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.35);
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-confirm .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-confirm .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(10, 15, 28, 0.3);
    border-top-color: #0a0f1c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.payment-info {
    text-align: center;
    color: #8892b0;
    font-size: 14px;
    line-height: 1.8;
}

.payment-info p {
    margin: 5px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .subscription-popup {
        width: 95%;
        margin: 10px;
    }

    .popup-content {
        padding: 20px;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .popup-actions {
        flex-direction: column;
    }

    .btn-cancel, .btn-confirm {
        width: 100%;
    }
}

/* Payment History Styles */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.payment-details {
    flex: 1;
}

.payment-plan {
    font-weight: 600;
    color: #00FF88;
    margin-bottom: 4px;
}

.payment-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-amount {
    font-weight: 600;
    font-size: 1rem;
}

.status-text {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.payment-status.success .status-text {
    background: rgba(0, 255, 136, 0.1);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.payment-status.pending .status-text {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* View Payment Button */
.view-payment-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #00D4FF 0%, #00A8E8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

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

/* Modern Signal Subscriptions Styling */
.signal-plans-modern {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 24px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.category-badge {
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00FF88;
    font-weight: 500;
}

/* Modern Grid Layout */
.plans-grid.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 0;
}

/* Modern Plan Cards */
.modern-plan-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00FF88 0%, #00D4FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.modern-plan-card:hover::before {
    opacity: 1;
}

/* Plan Tiers */
.plan-tier-free {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.05) 0%, rgba(100, 100, 100, 0.02) 100%);
}

.plan-tier-premium {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 212, 255, 0.02) 100%);
}

.plan-tier-premium-plus {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 140, 0, 0.02) 100%);
}

.plan-tier-premium-plus::before {
    background: linear-gradient(90deg, #FFD700 0%, #FF8C00 100%);
}

/* Active Plan Indicator */
.modern-plan-card.active-plan {
    border-color: #00FF88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 255, 136, 0.02) 100%);
}

.modern-plan-card.active-plan::before {
    opacity: 1;
    background: #00FF88;
}

/* Most Popular Badge */
.most-popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #0A0A0B;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Plan Header */
.plan-header-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.plan-icon {
    font-size: 28px;
}

.plan-name-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    flex: 1;
}

.active-indicator {
    position: absolute;
    right: 0;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: #00FF88;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Price Display */
.plan-price-modern {
    margin-bottom: 24px;
    position: relative;
}

.price-free {
    font-size: 2rem;
    font-weight: 700;
    color: #00FF88;
    letter-spacing: 2px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-original {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: 0;
    background: linear-gradient(135deg, #FF5370 0%, #FF1744 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

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

/* Compact Features */
.plan-features-modern {
    margin-bottom: 24px;
    min-height: 120px;
}

.features-list-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.features-list-compact li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.features-list-compact li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.features-list-compact li.included::before {
    content: '✓';
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00FF88;
    color: #00FF88;
}

.features-list-compact li.excluded::before {
    content: '✗';
    background: rgba(255, 83, 112, 0.1);
    border: 1px solid #FF5370;
    color: #FF5370;
}

.more-features {
    font-size: 0.8rem;
    color: #00D4FF;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.more-features:hover {
    color: #00FF88;
}

/* Modern Buttons */
.modern-plan-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-plan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-plan-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    color: #0A0A0B;
}

.modern-btn-primary::before {
    background: rgba(255, 255, 255, 0.2);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.modern-btn-upgrade {
    background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    color: white;
}

.modern-btn-upgrade::before {
    background: rgba(255, 255, 255, 0.1);
}

.modern-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.modern-btn-downgrade {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #FFC107;
    color: #FFC107;
}

.modern-btn-downgrade:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.modern-btn-current {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.modern-btn-current:hover {
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .plans-grid.modern-grid {
        grid-template-columns: 1fr;
    }

    .price-display {
        font-size: 2rem;
    }
}


/* Quick Actions Section */
.quick-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.quick-actions h2 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--profit-green);
    transform: translateY(-2px);
}

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

/* Recent Signals Section */
.recent-signals {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.recent-signals h2 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

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

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

.signal-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

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

.signal-icon {
    font-size: 1.2rem;
}

.signal-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

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

.signal-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.signal-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.signal-status.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--info-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.signal-status.win {
    background: rgba(0, 255, 136, 0.15);
    color: var(--profit-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.signal-status.loss {
    background: rgba(255, 61, 87, 0.15);
    color: var(--loss-red);
    border: 1px solid rgba(255, 61, 87, 0.3);
}

