/* ============================================
   THE PAYMENTS CLUB - MASTER STYLESHEET 
   ENHANCED with slide-out notifications, profile styles
   ============================================ */

/* ============================================
   ROOT VARIABLES - Refined Premium Palette
   ============================================ */
:root {
    /* === Primary - Deep Indigo to Violet === */
    --color-primary-50: #F0F0FF;
    --color-primary-100: #E0E0FF;
    --color-primary-200: #C4C4FF;
    --color-primary-300: #A3A3FF;
    --color-primary-400: #7C7CFF;
    --color-primary-500: #5B5BFF;
    --color-primary-600: #4A4AD4;
    --color-primary-700: #3A3AAD;
    --color-primary-800: #2A2A80;
    --color-primary-900: #1A1A57;
    
    /* === Secondary - Warm Gold === */
    --color-gold-50: #FFF9F0;
    --color-gold-100: #FFF0D6;
    --color-gold-200: #FFE0AD;
    --color-gold-300: #FFCF85;
    --color-gold-400: #FFBF5C;
    --color-gold-500: #FFB03D;
    --color-gold-600: #D4912A;
    --color-gold-700: #AD731C;
    --color-gold-800: #805510;
    --color-gold-900: #573908;
    
    /* === Accent - Soft Teal === */
    --color-teal-50: #F0FDFA;
    --color-teal-100: #D6FCF0;
    --color-teal-200: #ADF8E0;
    --color-teal-300: #85F3D0;
    --color-teal-400: #5CEFC0;
    --color-teal-500: #3DE8B0;
    --color-teal-600: #2AC494;
    --color-teal-700: #1A9E78;
    --color-teal-800: #0E7355;
    --color-teal-900: #064D3A;
    
    /* === Neutral - Refined Gray Scale === */
    --neutral-50: #F8F9FC;
    --neutral-100: #F0F2F8;
    --neutral-200: #E2E6EE;
    --neutral-300: #C8CDDB;
    --neutral-400: #9EA5B8;
    --neutral-500: #7A8299;
    --neutral-600: #5A637A;
    --neutral-700: #3D4559;
    --neutral-800: #262C3D;
    --neutral-900: #131825;
    
    /* === Status === */
    --success: #3DE8B0;
    --success-light: rgba(61, 232, 176, 0.12);
    --success-dark: #2AC494;
    --warning: #FFB03D;
    --warning-light: rgba(255, 176, 61, 0.12);
    --warning-dark: #D4912A;
    --danger: #FF6B6B;
    --danger-light: rgba(255, 107, 107, 0.12);
    --danger-dark: #D44A4A;
    --info: #7C7CFF;
    --info-light: rgba(124, 124, 255, 0.12);
    --info-dark: #4A4AD4;
    
    /* === Gradients - Refined === */
    --gradient-primary: linear-gradient(145deg, #2A2A80 0%, #4A4AD4 40%, #7C7CFF 100%);
    --gradient-primary-soft: linear-gradient(145deg, #3A3AAD 0%, #5B5BFF 60%, #7C7CFF 100%);
    --gradient-gold: linear-gradient(145deg, #AD731C 0%, #FFB03D 50%, #FFCF85 100%);
    --gradient-gold-soft: linear-gradient(145deg, #D4912A 0%, #FFBF5C 50%, #FFE0AD 100%);
    --gradient-accent: linear-gradient(145deg, #1A9E78 0%, #3DE8B0 50%, #85F3D0 100%);
    --gradient-hero: linear-gradient(145deg, #131825 0%, #2A2A80 40%, #4A4AD4 70%, #7C7CFF 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.04) 100%);
    --gradient-dark-glass: linear-gradient(145deg, rgba(19,24,37,0.95) 0%, rgba(38,44,61,0.98) 100%);
    
    /* === Shadows - More Refined === */
    --shadow-xs: 0 1px 2px rgba(19,24,37,0.04);
    --shadow-sm: 0 2px 8px rgba(19,24,37,0.06);
    --shadow-md: 0 4px 20px rgba(19,24,37,0.08);
    --shadow-lg: 0 8px 40px rgba(19,24,37,0.12);
    --shadow-xl: 0 16px 56px rgba(19,24,37,0.16);
    --shadow-2xl: 0 24px 80px rgba(19,24,37,0.20);
    --shadow-primary: 0 4px 24px rgba(74,74,212,0.25);
    --shadow-primary-lg: 0 8px 40px rgba(74,74,212,0.30);
    --shadow-gold: 0 4px 24px rgba(255,176,61,0.25);
    --shadow-gold-lg: 0 8px 40px rgba(255,176,61,0.30);
    --shadow-glow: 0 0 60px rgba(124,124,255,0.06);
    
    /* === Radius === */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;
    
    /* === Transitions === */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition: 0.3s var(--ease-smooth);
    --transition-spring: 0.5s var(--ease-spring);
    --transition-bounce: 0.6s var(--ease-bounce);
    
    /* === Font === */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

/* ============================================
   DARK THEME - Refined
   ============================================ */
body.dark-theme {
    --neutral-50: #0F1520;
    --neutral-100: #191F2E;
    --neutral-200: #262C3D;
    --neutral-300: #3D4559;
    --neutral-400: #5A637A;
    --neutral-500: #7A8299;
    --neutral-600: #9EA5B8;
    --neutral-700: #C8CDDB;
    --neutral-800: #E2E6EE;
    --neutral-900: #F0F2F8;
    
    --gradient-glass: linear-gradient(145deg, rgba(38,44,61,0.95) 0%, rgba(15,21,32,0.98) 100%);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.45);
    --shadow-xl: 0 16px 56px rgba(0,0,0,0.55);
    --shadow-2xl: 0 24px 80px rgba(0,0,0,0.60);
    --shadow-primary: 0 4px 24px rgba(74,74,212,0.20);
    --shadow-primary-lg: 0 8px 40px rgba(74,74,212,0.25);
    --shadow-gold: 0 4px 24px rgba(255,176,61,0.15);
    --shadow-gold-lg: 0 8px 40px rgba(255,176,61,0.20);
    --shadow-glow: 0 0 60px rgba(124,124,255,0.04);
}

/* ============================================
   RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: var(--neutral-50);
    color: var(--neutral-900);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-family); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font-family); outline: none; }

/* ============================================
   SCROLLBAR - Refined
   ============================================ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--neutral-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4A4AD4, #7C7CFF);
    border-radius: 4px;
    border: 1px solid var(--neutral-200);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3A3AAD, #5B5BFF);
}

/* ============================================
   ANIMATIONS - Refined
   ============================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(24px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}
@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-12px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes scaleIn { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
@keyframes toastSlide {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(124,124,255,0.08); }
    50% { box-shadow: 0 0 40px rgba(124,124,255,0.20); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-fade-up { animation: fadeInUp 0.6s var(--ease-bounce) both; }
.animate-slide-up { animation: slideUp 0.7s var(--ease-spring) both; }
.animate-scale-in { animation: scaleIn 0.5s var(--ease-bounce) both; }
.animate-glow { animation: glowPulse 3s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================
   SIDEBAR - Refined Glass Premium
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(160deg, #131825 0%, #1A1A57 40%, #2A2A80 70%, #3A3AAD 100%);
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 40px rgba(19,24,37,0.3);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,124,255,0.10), transparent 50%);
    pointer-events: none;
}
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(19,24,37,0.4), transparent);
    pointer-events: none;
}

.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .brand-text, 
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-text, 
.sidebar.collapsed .user-details,
.sidebar.collapsed .footer-text { 
    display: none !important; 
    opacity: 0; 
    width: 0;
    overflow: hidden;
}
.sidebar.collapsed .sidebar-nav li a { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-nav li a i { margin: 0; font-size: 1.2rem; }
.sidebar.collapsed .sidebar-nav li a .badge { display: none; }
.sidebar.collapsed .sidebar-brand img { width: 32px; height: 32px; }
.sidebar.collapsed .sidebar-user .avatar { width: 32px; height: 32px; font-size: 0.7rem; }
.sidebar.collapsed .sidebar-user .user-row { justify-content: center; }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-header { padding: 16px 18px; }
.sidebar.collapsed .sidebar-nav .nav-label { display: none; }

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 72px;
    position: relative;
    z-index: 2;
}
.sidebar-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    transition: var(--transition-spring);
}
.sidebar-brand:hover { transform: scale(1.02); }
.sidebar-brand img {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.sidebar-brand .brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sidebar-brand .brand-text span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-toggle {
    background: rgba(255,255,255,0.05);
    border: none;
    color: rgba(255,255,255,0.3);
    width: 32px; height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.sidebar-toggle:hover { 
    background: rgba(255,255,255,0.10); 
    color: white; 
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.10);
}

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.sidebar-user .user-row { display: flex; align-items: center; gap: 12px; }
.sidebar-user .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-900);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.08);
    transition: var(--transition-spring);
    box-shadow: 0 2px 12px rgba(255,176,61,0.2);
}
.sidebar-user:hover .avatar { 
    border-color: rgba(255,255,255,0.2); 
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255,176,61,0.3);
}
.sidebar-user .user-details { flex: 1; min-width: 0; }
.sidebar-user .user-details .name {
    font-weight: 600; font-size: 0.85rem; color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.sidebar-user .user-details .role {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.30);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}
.sidebar-user .user-details .role .admin { color: #FFB03D; }
.sidebar-user .user-details .role .member { color: #3DE8B0; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    position: relative;
    z-index: 2;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav .nav-label {
    padding: 12px 24px 6px;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255,255,255,0.12);
    font-weight: 700;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    margin: 1px 12px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: var(--transition-spring);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}
.sidebar-nav li a:hover { 
    background: rgba(255,255,255,0.04); 
    color: white; 
    transform: translateX(4px);
}
.sidebar-nav li.active a {
    background: rgba(124,124,255,0.10);
    color: white;
    border: 1px solid rgba(124,124,255,0.10);
}
.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    box-shadow: 0 0 30px rgba(255,176,61,0.15);
}
.sidebar-nav li a i {
    width: 20px; text-align: center; font-size: 1rem;
    flex-shrink: 0; opacity: 0.4;
    transition: var(--transition);
}
.sidebar-nav li.active a i { opacity: 1; color: #FFB03D; }
.sidebar-nav li a:hover i { opacity: 1; color: #FFB03D; }
.sidebar-nav li a .badge {
    margin-left: auto;
    background: rgba(255,176,61,0.12);
    color: #FFB03D;
    font-size: 0.55rem;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid rgba(255,176,61,0.08);
}

.sidebar-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 4px;
}
.sidebar-footer .footer-legal {
    font-size: 0.45rem;
    opacity: 0.4;
    width: 100%;
    text-align: right;
}
.sidebar-footer .footer-legal a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.sidebar-footer .footer-legal a:hover {
    color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 280px;
    padding: 24px 32px 40px;
    min-height: 100vh;
    transition: margin-left 0.4s var(--ease-spring);
    background: var(--neutral-50);
}
.page-content { max-width: 1400px; margin: 0 auto; }

/* ============================================
   TOP BAR - Refined
   ============================================ */
.topbar {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-spring);
    backdrop-filter: blur(20px);
}
.topbar:hover { box-shadow: var(--shadow-md); }

.topbar .left { display: flex; align-items: center; gap: 16px; }
.topbar .left .mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--neutral-500);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.topbar .left .mobile-toggle:hover { background: var(--neutral-100); }
.topbar .left h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar .left h1 i { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.topbar .right { display: flex; align-items: center; gap: 8px; }
.topbar .right .icon-btn {
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    color: var(--neutral-500);
    cursor: pointer;
    transition: var(--transition-spring);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    position: relative;
}
.topbar .right .icon-btn:hover {
    background: var(--neutral-100);
    color: #4A4AD4;
    transform: translateY(-2px) scale(1.05);
}
.topbar .right .icon-btn .badge-dot {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    background: linear-gradient(135deg, #FF6B6B, #D44A4A);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neutral-50);
    padding: 0 4px;
    animation: pulse-dot 2s infinite;
}
.topbar .right .icon-btn .badge-dot.hidden { display: none; }

.topbar .right .user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-spring);
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
}
.topbar .right .user-menu:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.topbar .right .user-menu .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(255,176,61,0.15);
}
.topbar .right .user-menu .user-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--neutral-700);
}
.topbar .right .user-menu .role-badge {
    font-size: 0.5rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.topbar .right .user-menu .role-badge.admin {
    background: rgba(255,176,61,0.12);
    color: #D4912A;
}
.topbar .right .user-menu .role-badge.member {
    background: rgba(61,232,176,0.12);
    color: #1A9E78;
}

/* ============================================
   NOTIFICATIONS - SLIDE-OUT PANEL
   ============================================ */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19,24,37,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.notification-overlay.active {
    display: block;
    opacity: 1;
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--neutral-50);
    box-shadow: -4px 0 40px rgba(19,24,37,0.15);
    z-index: 9999;
    transition: right 0.4s var(--ease-spring);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--neutral-200);
}
body.dark-theme .notification-panel {
    background: var(--neutral-800);
    border-color: var(--neutral-600);
}
.notification-panel.open {
    right: 0;
}

.notification-panel .panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--neutral-100);
    flex-shrink: 0;
    border-radius: 0;
}
body.dark-theme .notification-panel .panel-header {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.notification-panel .panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
    display: flex;
    align-items: center;
    gap: 10px;
}
body.dark-theme .notification-panel .panel-header h3 {
    color: var(--neutral-200);
}
.notification-panel .panel-header h3 i {
    color: #FFB03D;
}
.notification-panel .panel-header .close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--neutral-400);
    cursor: pointer;
    transition: var(--transition-spring);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.notification-panel .panel-header .close-btn:hover {
    background: var(--neutral-200);
    color: var(--neutral-600);
    transform: rotate(90deg);
}
body.dark-theme .notification-panel .panel-header .close-btn:hover {
    background: var(--neutral-600);
    color: var(--neutral-300);
}

.notification-panel .panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.notification-panel .panel-body::-webkit-scrollbar {
    width: 6px;
}
.notification-panel .panel-body::-webkit-scrollbar-track {
    background: transparent;
}
.notification-panel .panel-body::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}
body.dark-theme .notification-panel .panel-body::-webkit-scrollbar-thumb {
    background: var(--neutral-600);
}

.notification-panel .panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-100);
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}
body.dark-theme .notification-panel .panel-footer {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.notification-panel .panel-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Notification Items */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.notification-item:hover {
    background: var(--neutral-100);
    transform: translateX(2px);
}
body.dark-theme .notification-item:hover {
    background: var(--neutral-700);
}
.notification-item.unread {
    background: rgba(74,74,212,0.03);
    border-color: rgba(74,74,212,0.06);
}
.notification-item.read {
    opacity: 0.7;
}
.notification-item .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4A4AD4;
}
body.dark-theme .notification-item .notification-icon {
    background: var(--neutral-700);
}
.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}
.notification-item .notification-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--neutral-800);
}
body.dark-theme .notification-item .notification-title {
    color: var(--neutral-200);
}
.notification-item .notification-message {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-top: 2px;
    word-wrap: break-word;
}
body.dark-theme .notification-item .notification-message {
    color: var(--neutral-400);
}
.notification-item .notification-time {
    font-size: 0.65rem;
    color: var(--neutral-400);
    margin-top: 4px;
}

/* ============================================
   BUTTONS - Refined
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-primary-lg);
}

.btn-secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
}
.btn-secondary:hover { background: var(--neutral-300); transform: translateY(-3px); }

.btn-gold {
    background: var(--gradient-gold);
    color: var(--neutral-900);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-gold-lg);
}

.btn-success {
    background: linear-gradient(135deg, #3DE8B0, #2AC494);
    color: white;
    box-shadow: 0 4px 20px rgba(61,232,176,0.25);
}
.btn-success:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 32px rgba(61,232,176,0.30);
}

.btn-danger {
    background: linear-gradient(135deg, #FF6B6B, #D44A4A);
    color: white;
    box-shadow: 0 4px 20px rgba(255,107,107,0.25);
}
.btn-danger:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 32px rgba(255,107,107,0.30);
}

.btn-outline {
    background: transparent;
    color: var(--neutral-600);
    border: 2px solid var(--neutral-200);
}
.btn-outline:hover {
    background: var(--neutral-50);
    border-color: #4A4AD4;
    color: #4A4AD4;
    transform: translateY(-3px);
}

.btn-sm { padding: 6px 14px; font-size: 0.75rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ============================================
   CRITICAL: PASSWORD FEATURES - FLAWLESS
   ============================================ */

.password-container {
    position: relative;
    width: 100%;
}
.password-container input {
    width: 100%;
    padding: 10px 48px 10px 14px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition-spring);
    background: white;
    color: var(--neutral-800);
    height: 44px;
}
.password-container input:focus {
    border-color: #4A4AD4;
    box-shadow: 0 0 0 4px rgba(74,74,212,0.06);
    background: white;
}
.password-container input.error { border-color: #FF6B6B; box-shadow: 0 0 0 4px rgba(255,107,107,0.06); }
.password-container input.success { border-color: #3DE8B0; box-shadow: 0 0 0 4px rgba(61,232,176,0.06); }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 36px;
    height: 36px;
}
.password-toggle:hover {
    color: #4A4AD4;
    background: rgba(74,74,212,0.06);
}
.password-toggle i { pointer-events: none; font-size: 1.1rem; }

.password-strength-container { margin-top: 8px; }
.password-strength-bar {
    height: 4px;
    background: var(--neutral-200);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.4s var(--ease-smooth), background 0.4s ease;
}
.password-strength-feedback {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
    transition: color 0.3s ease;
    min-height: 20px;
}

.password-match-indicator {
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 20px;
}
.password-match-indicator.match { color: #3DE8B0; }
.password-match-indicator.no-match { color: #FF6B6B; }
.password-match-indicator.empty { color: var(--neutral-400); }

/* ============================================
   ALERTS & TOASTS - Refined
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    animation: slideDown 0.4s var(--ease-spring) both;
    box-shadow: var(--shadow-sm);
}
.alert i { font-size: 1.1rem; flex-shrink: 0; }
.alert-success { 
    background: var(--success-light); 
    border-color: rgba(61,232,176,0.15); 
    color: #1A9E78;
    border-left: 4px solid #3DE8B0;
}
.alert-danger { 
    background: var(--danger-light); 
    border-color: rgba(255,107,107,0.15); 
    color: #D44A4A;
    border-left: 4px solid #FF6B6B;
}
.alert-warning { 
    background: var(--warning-light); 
    border-color: rgba(255,176,61,0.15); 
    color: #D4912A;
    border-left: 4px solid #FFB03D;
}
.alert-info { 
    background: var(--info-light); 
    border-color: rgba(124,124,255,0.15); 
    color: #4A4AD4;
    border-left: 4px solid #7C7CFF;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius);
    color: white;
    box-shadow: var(--shadow-2xl);
    z-index: 9999;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 420px;
    animation: toastSlide 0.5s var(--ease-spring);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
}
.toast-success { 
    background: linear-gradient(135deg, #3DE8B0, #1A9E78);
    box-shadow: 0 8px 32px rgba(61,232,176,0.25);
}
.toast-error { 
    background: linear-gradient(135deg, #FF6B6B, #D44A4A);
    box-shadow: 0 8px 32px rgba(255,107,107,0.25);
}
.toast-warning { 
    background: linear-gradient(135deg, #FFB03D, #D4912A);
    color: var(--neutral-900);
    box-shadow: 0 8px 32px rgba(255,176,61,0.25);
}
.toast-info { 
    background: linear-gradient(135deg, #7C7CFF, #4A4AD4);
    box-shadow: 0 8px 32px rgba(124,124,255,0.25);
}

/* ============================================
   MODALS - Refined
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19,24,37,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.modal.active { display: flex; }

.modal-box {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.4s var(--ease-spring);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
body.dark-theme .modal-box { background: var(--neutral-800); border-color: var(--neutral-600); }
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: var(--neutral-100); border-radius: 3px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 3px; }
body.dark-theme .modal-box::-webkit-scrollbar-track { background: var(--neutral-700); }
body.dark-theme .modal-box::-webkit-scrollbar-thumb { background: var(--neutral-500); }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--neutral-100);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
body.dark-theme .modal-header {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.dark-theme .modal-header h2 { color: var(--neutral-200); }
.modal-header h2 i { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--neutral-400);
    cursor: pointer;
    transition: var(--transition-spring);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.modal-header .close-btn:hover { 
    background: var(--neutral-200); 
    color: var(--neutral-600); 
    transform: rotate(90deg); 
}
body.dark-theme .modal-header .close-btn:hover {
    background: var(--neutral-600);
    color: var(--neutral-300);
}

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--neutral-100);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    flex-wrap: wrap;
}
body.dark-theme .modal-footer {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}

/* ============================================
   FORM ELEMENTS - Refined
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--neutral-600);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}
body.dark-theme .form-group label { color: var(--neutral-400); }
.form-group label .required { color: #FF6B6B; margin-left: 2px; }
.form-group label .optional { font-weight: 400; color: var(--neutral-400); font-size: 0.7rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition-spring);
    background: white;
    color: var(--neutral-800);
}
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: var(--neutral-800);
    color: var(--neutral-100);
    border-color: var(--neutral-600);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4A4AD4;
    box-shadow: 0 0 0 4px rgba(74,74,212,0.04);
    background: white;
}
body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    background: var(--neutral-700);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group small, .form-group .helper { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--neutral-400); }

/* ============================================
   CARDS - Refined Glass
   ============================================ */
.card {
    background: var(--gradient-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition-spring);
    backdrop-filter: blur(8px);
}
.card:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-2px);
    border-color: rgba(124,124,255,0.05);
}
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
body.dark-theme .card-header {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
body.dark-theme .card-header h3 { color: var(--neutral-200); }
.card-header h3 i { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.card-body { padding: 24px; }
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-100);
}
body.dark-theme .card-footer {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}

/* ============================================
   STATS CARDS - Refined Premium
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--gradient-glass);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-spring);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
body.dark-theme .stat-card { border-color: var(--neutral-600); }
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(124,124,255,0.03), transparent 70%);
    pointer-events: none;
}
.stat-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md);
    border-color: rgba(124,124,255,0.08);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.stat-card .stat-icon.blue { background: rgba(74,74,212,0.08); color: #4A4AD4; }
.stat-card .stat-icon.gold { background: rgba(255,176,61,0.08); color: #D4912A; }
.stat-card .stat-icon.green { background: rgba(61,232,176,0.08); color: #1A9E78; }
.stat-card .stat-icon.purple { background: rgba(124,124,255,0.08); color: #4A4AD4; }
.stat-card .stat-icon.rose { background: rgba(255,107,107,0.08); color: #D44A4A; }

.stat-card .stat-info h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-500);
    margin: 0 0 4px;
}
.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
    line-height: 1.2;
}
body.dark-theme .stat-card .stat-number { color: var(--neutral-100); }

/* ============================================
   BADGES - Refined
   ============================================ */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}
.badge-success { background: var(--success-light); color: #1A9E78; border-color: rgba(61,232,176,0.15); }
.badge-warning { background: var(--warning-light); color: #D4912A; border-color: rgba(255,176,61,0.15); }
.badge-danger { background: var(--danger-light); color: #D44A4A; border-color: rgba(255,107,107,0.15); }
.badge-info { background: var(--info-light); color: #4A4AD4; border-color: rgba(124,124,255,0.15); }
.badge-gray { background: var(--neutral-200); color: var(--neutral-600); border-color: var(--neutral-300); }
.badge-gold { background: rgba(255,176,61,0.08); color: #D4912A; border-color: rgba(255,176,61,0.15); }

/* ============================================
   TABLES - Refined
   ============================================ */
.table-container {
    background: var(--gradient-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
body.dark-theme .table-container { border-color: var(--neutral-600); }
.table-container:hover { box-shadow: var(--shadow-md); }
.table-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--neutral-100);
}
body.dark-theme .table-header {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.table-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.dark-theme .table-header h2 { color: var(--neutral-200); }
.table-header h2 i { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.table-responsive { overflow-x: auto; padding: 0; }
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}
.table-responsive thead { background: var(--neutral-100); }
body.dark-theme .table-responsive thead { background: var(--neutral-700); }
.table-responsive th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-500);
    border-bottom: 2px solid var(--neutral-200);
}
body.dark-theme .table-responsive th {
    color: var(--neutral-400);
    border-color: var(--neutral-600);
}
.table-responsive td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-700);
    vertical-align: middle;
}
body.dark-theme .table-responsive td {
    color: var(--neutral-300);
    border-color: var(--neutral-600);
}
.table-responsive tbody tr { transition: var(--transition); }
.table-responsive tbody tr:hover { background: rgba(74,74,212,0.02); }

/* ============================================
   PROFILE - Enhanced Styles
   ============================================ */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-cover {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 40px 40px 30px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}
.profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 20%, rgba(124,124,255,0.15), transparent 70%);
    pointer-events: none;
}
.profile-cover .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--neutral-900);
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.profile-cover .profile-cover-content {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
    color: white;
}
.profile-cover .profile-cover-content h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.profile-cover .profile-cover-content .profile-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 4px 0 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.1);
}
.profile-cover .profile-cover-content .profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.profile-cover .profile-cover-content .profile-stats span {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.profile-tabs {
    display: flex;
    gap: 4px;
    padding: 0 40px;
    background: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
}
body.dark-theme .profile-tabs {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
}
.profile-tabs .tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--neutral-500);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-family: var(--font-family);
}
.profile-tabs .tab-btn:hover {
    color: var(--neutral-700);
}
.profile-tabs .tab-btn.active {
    color: #4A4AD4;
    border-bottom-color: #4A4AD4;
}

.profile-content {
    padding: 24px 40px 32px;
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
body.dark-theme .profile-content {
    background: var(--neutral-800);
}

.profile-content .tab-panel {
    display: none;
}
.profile-content .tab-panel.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.profile-content .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.profile-content .profile-grid .info-item {
    padding: 14px 18px;
    background: var(--neutral-50);
    border-radius: var(--radius);
    border-left: 3px solid #4A4AD4;
}
body.dark-theme .profile-content .profile-grid .info-item {
    background: var(--neutral-700);
}
.profile-content .profile-grid .info-item .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-400);
    font-weight: 600;
    display: block;
}
.profile-content .profile-grid .info-item .value {
    font-weight: 500;
    color: var(--neutral-800);
    font-size: 0.95rem;
}
body.dark-theme .profile-content .profile-grid .info-item .value {
    color: var(--neutral-200);
}
.profile-content .profile-grid .info-item .value.empty {
    color: var(--neutral-400);
    font-style: italic;
    font-weight: 400;
}

/* ============================================
   UNIFORM PAGE HEADER - FOR ALL PAGES
   ============================================ */
.uniform-page-header {
    background: linear-gradient(145deg, #1A1A57 0%, #4A4AD4 60%, #7C7CFF 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 32px 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.uniform-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    border-radius: 50%;
}
.uniform-page-header .title-section {
    position: relative;
    z-index: 1;
    color: white;
    flex: 1;
    min-width: 180px;
}
.uniform-page-header .title-section h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.uniform-page-header .title-section h1 i {
    color: #FFB03D;
}
.uniform-page-header .title-section p {
    margin: 2px 0 0;
    opacity: 0.7;
    font-size: 0.85rem;
}
.uniform-page-header .header-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.uniform-page-header .header-stats .stat-badge {
    background: rgba(255,255,255,0.08);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}
.uniform-page-header .header-stats .stat-badge .number {
    font-weight: 700;
    font-size: 1rem;
    min-width: 16px;
}

/* ============================================
   RESPONSIVE - Refined
   ============================================ */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.open { transform: translateX(0); }
    .topbar .left .mobile-toggle { display: flex; }
    .main-content { margin-left: 0 !important; padding: 16px; }
    .topbar { padding: 10px 16px; margin-bottom: 16px; border-radius: var(--radius); }
    .topbar .left h1 { font-size: 0.95rem; }
    .topbar .right .user-menu .user-name { display: none; }
    .notification-panel { width: 340px; right: -360px; }
    .profile-cover { padding: 30px 20px 24px; flex-direction: column; align-items: center; text-align: center; }
    .profile-cover .profile-cover-content .profile-stats { justify-content: center; }
    .profile-tabs { padding: 0 16px; overflow-x: auto; }
    .profile-content { padding: 16px; }
    .profile-content .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-content { padding: 12px; }
    .topbar { padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
    .topbar .left h1 { font-size: 0.85rem; }
    .topbar .right .icon-btn { width: 34px; height: 34px; font-size: 0.9rem; }
    .topbar .right .user-menu { padding: 4px 10px 4px 4px; }
    .topbar .right .user-menu .avatar { width: 28px; height: 28px; font-size: 0.7rem; }
    .notification-panel { width: 100%; right: -100%; }
    .modal-box { width: 95%; margin: 16px; max-height: 95vh; }
    .modal-body { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .profile-cover .profile-avatar { width: 72px; height: 72px; font-size: 2rem; }
    .profile-cover .profile-cover-content h1 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .main-content { padding: 8px; }
    .topbar { padding: 6px 10px; border-radius: var(--radius-sm); }
    .topbar .left h1 { font-size: 0.75rem; }
    .topbar .left .mobile-toggle { padding: 4px; font-size: 1rem; }
    .topbar .right .icon-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 14px 16px; }
}