/* ============================================
   FXAcademyTools - Customer Portal Dashboard
   Synchronized Design System (Admin Mirror)
   ============================================ */

:root {
    --bg-dark: #0B0F19;
    --bg-card: #141B2D;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --secondary: #8B5CF6;
    --accent: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --border: #1E293B;
    
    /* Legacy variable mappings for compatibility */
    --bg-primary: var(--bg-dark);
    --bg-secondary: var(--bg-card);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --accent-primary: var(--primary);
    --accent-success: var(--accent);
    --border-color: var(--border);
    --gradient-card: var(--bg-card);
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --transition-base: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

html, body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; 
    scrollbar-gutter: stable;
}

.grid-bg { display: none; }

/* --- Logo & Branding --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.logo span {
    color: var(--primary);
}

.logo:hover {
    opacity: 0.9;
}

/* --- Auth Pages --- */
.auth-page {
    background: radial-gradient(circle at top right, #1a233a, #0b0f19);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: var(--space-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.auth-header h1 span {
    color: var(--primary);
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 12px 16px 12px 48px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Sidebar --- */
.sidebar {
    width: 280px;
    background: rgba(13, 19, 33, 0.75) !important; /* Deep dark blue glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: calc(100vh - 30px);
    height: calc(100dvh - 30px);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(59, 130, 246, 0.03);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sidebar-header .logo-icon { background: #3b82f6; color: #fff; padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: 0.85rem; }
.sidebar-header .logo-text { color: #fff; font-weight: 700; font-size: 1.05rem; }
.sidebar-header .logo-text span { color: #3b82f6; font-weight: 400; opacity: 0.9; }
.sidebar-header .settings-icon { color: #94a3b8; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.sidebar-header .settings-icon:hover { color: #fff; transform: rotate(45deg); }

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    overflow-y: auto;
    display: block !important;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-menu {
    list-style: none; padding: 0; margin: 0;
    display: block !important;
}

.nav-item { margin-bottom: 4px; padding: 0 !important; }

.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 0.8rem 1rem;
    color: #94a3b8; text-decoration: none; border-radius: 12px; transition: 0.3s;
    font-weight: 500; font-size: 0.95rem; position: relative; overflow: hidden;
}

.nav-link .main-icon { width: 22px; text-align: center; font-size: 1.1rem; }

.nav-link:hover {
    color: #fff; background: rgba(255,255,255,0.03);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.05);
}

.nav-link.active::before {
    content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px;
    background: #00f2ff; border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #00f2ff, 0 0 20px #00f2ff;
}

.nav-link .chevron { margin-left: auto; font-size: 0.75rem; opacity: 0.7; }

/* Balance Box mimicking image */
.sidebar-balance-box {
    margin: 1rem 0.5rem; padding: 1.2rem;
    background: rgba(0, 242, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 14px;
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.1), 0 0 10px rgba(0, 242, 255, 0.1);
    position: relative;
    z-index: 1;
}
.sidebar-balance-box::before {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: radial-gradient(circle at 50% 100%, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}
.balance-label { color: #94a3b8; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.balance-value { color: #64748b; font-size: 0.75rem; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.balance-value span { color: #00f2ff; font-weight: 900; font-size: 1.1rem; }

/* Divider */
.sidebar-divider {
    display: flex; align-items: center; color: #64748b; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
    margin: 1rem 0.5rem 0.5rem; gap: 10px;
}
.sidebar-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.05); }

/* Profile Footer */
.sidebar-footer {
    padding: 1.2rem 1.5rem; display: flex; align-items: center; border-top: none;
}
.profile-avatar-wrap {
    width: 42px; height: 42px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1rem; position: relative;
}

/* --- Main Content --- */
.main-content {
    display: block;
    margin-left: 310px;
    width: calc(100% - 310px);
    padding: 2.5rem;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Widgets & Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem; /* Matched with other sections */
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.stat-details h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

/* --- Table Overrides --- */
.portal-table-container {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.portal-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.portal-table td {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid var(--border) !important;
}

/* --- Global Alert Styles --- */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

/* --- Buttons & Inputs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-success {
    background-color: var(--accent);
    color: #fff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-google {
    background-color: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.btn-google:hover {
    background-color: #f9fafb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

/* --- Responsive --- */
.account-grid {
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 2rem;
}

/* Dimming Overlay Style */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    body.menu-open {
        overflow: hidden;
    }
    .account-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        left: -260px;
        box-shadow: 10px 0 20px rgba(0,0,0,0.5);
    }
    
    .sidebar.open {
        left: 0;
    }

    /* FIX: Force link visibility (Override styles.css conflict) */
    .sidebar .nav-link {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: flex !important;
        color: var(--text-muted);
    }

    .sidebar .nav-link:hover, 
    .sidebar .nav-link.active {
        color: var(--primary) !important;
    }

    /* Sidebar Close Button Style (Mobile Only) */
    .sidebar-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 101;
        transition: 0.3s;
    }

    .sidebar-close:hover {
        background: rgba(239, 68, 68, 0.1);
        color: var(--danger);
        border-color: rgba(239, 68, 68, 0.2);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Portal Table Mobile Card View */
    .portal-table thead {
        display: none;
    }
    
    .portal-table, .portal-table tbody, .portal-table tr, .portal-table td {
        display: block;
        width: 100%;
    }
    
    .portal-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        background: rgba(255,255,255,0.02);
        overflow: hidden;
    }
    
    .portal-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        padding: 0.75rem 1rem !important;
        position: relative;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .portal-table td:first-child {
        border-top: none !important;
        background: rgba(255,255,255,0.03);
    }
    
    .portal-table td::before {
        content: attr(data-label);
        display: block !important;
        position: static !important;
        width: 100% !important;
        text-align: left !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
        text-transform: uppercase !important;
        font-size: 0.65rem !important;
        margin-bottom: 5px !important;
    }
}

/* --- Global Fix for Desktop vs Mobile Tables --- */
@media (max-width: 992px) {
    .portal-table tr { 
        display: block !important; 
        margin-bottom: 1.5rem !important; 
        border: 1px solid var(--border) !important;
        background: rgba(255,255,255,0.02) !important;
    }
    .portal-table td {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 12px 16px !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
    }
    .portal-table td::before {
        content: attr(data-label);
        margin-bottom: 4px !important;
        color: var(--text-muted) !important;
        font-size: 0.6rem !important;
    }
}

/* Mobile Sidebar Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99;
    display: none;
    transition: 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .sidebar {
        left: -320px;
        z-index: 1000;
        margin: 0 !important;
        border-radius: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
    }
    
    .sidebar.open {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #mobile-toggle {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        border-radius: 50% !important;
        background: rgba(13, 19, 33, 0.9);
        border: 1px solid #ffcc00 !important;
        color: #ffcc00 !important;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.2), 0 0 40px rgba(0,0,0,0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        padding: 0;
    }
    #mobile-toggle i {
        font-size: 1.2rem;
    }
    #mobile-toggle:active {
        transform: scale(0.9);
        background: #ffcc00;
        color: #000 !important;
    }
}

#mobile-toggle {
    display: none;
}

/* --- Premium Stat Cards Design --- */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; 
    margin-bottom: 25px; 
}
.stat-card-tech {
    background: linear-gradient(145deg, #05080c 0%, #0a0f1a 100%);
    border: 1px solid rgba(59, 130, 246, 0.15); 
    border-radius: 16px; 
    padding: 24px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.4s;
}
.stat-card-tech:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.stat-icon-tech { width: 55px; height: 55px; border-radius: 12px; background: rgba(59, 130, 246, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.1); }
.stat-info-tech h3 { color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; font-weight: 800; }
.stat-info-tech .stat-value { color: #fff; font-size: 1.6rem; font-weight: 900; }

.stat-card-tech.accent-gold .stat-icon-tech { background: rgba(255, 170, 0, 0.1); color: #ffaa00; }
.stat-card-tech.accent-green .stat-icon-tech { background: rgba(0, 212, 170, 0.1); color: #00d4aa; }
.stat-card-tech.accent-purple .stat-icon-tech { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.stat-card-tech.accent-red .stat-icon-tech { background: rgba(255, 82, 82, 0.1); color: #ff5252; }

/* --- Universal Mobile Header --- */
.mobile-nav-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 10px;
  width: 100%;
}

.mobile-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}

.mobile-stats {
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffaa00;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1024px) {
  .mobile-nav-header { display: flex; }
  .main-content { padding: 1rem !important; }
}

/* --- Premium Black & Gold Design (Inspired by Freud App) --- */
:root {
    --gold-primary: #ffcc00;
    --gold-glow: rgba(255, 204, 0, 0.4);
    --sidebar-bg-dark: #05080c;
}

/* Sidebar Profile Header (Wavy Design) */
.sidebar-profile-header {
    background: linear-gradient(135deg, #b8860b 0%, #a855f7 100%);
    padding: 40px 25px 50px 25px;
    position: relative;
    border-radius: 0 0 50% 50% / 0 0 15% 15%;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    font-weight: 300;
}
.sidebar-close:hover { opacity: 1; transform: rotate(90deg); }

.profile-avatar-top {
    width: 75px;
    height: 75px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.profile-info-top h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 4px;
    color: #000;
}
.profile-info-top p {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Label Styling */
.nav-section-label {
    padding: 0 25px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4b5563;
    margin: 20px 0 10px;
}

/* Premium Sidebar Buttons */
.sidebar-footer-actions {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn-go-pro {
    background: #d4f8d4; /* Light green as in image */
    color: #1a3a1a;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-go-pro:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(212, 248, 212, 0.4); }

.btn-rate {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-rate:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 1024px) {
    .sidebar {
        left: -340px;
        width: 320px;
        background: var(--sidebar-bg-dark) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
        border-radius: 30px !important;
        margin: 15px !important;
        height: calc(100dvh - 30px) !important;
        overflow: hidden;
        box-shadow: 0 25px 80px rgba(0,0,0,0.8) !important;
    }
    
    .sidebar.open {
        left: 0 !important;
    }
}
/* Membership Badges */
.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-top: 12px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.membership-badge.free {
    background: #000;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.membership-badge.premium {
    background: #000;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
    animation: premium-pulse 2s infinite;
}


@keyframes premium-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.4); }
    100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.2); }
}

.membership-badge i {
    font-size: 0.75rem;
}

