/* ============ ROOT VARIABLES ============ */
:root {
    --gold: #FCC419;
    --gold-light: #FFE066;
    --gold-dark: #E6A800;
    --gold-glow: rgba(252, 196, 25, 0.3);
    --gold-gradient: linear-gradient(135deg, #FCC419 0%, #FFE066 40%, #FCC419 100%);
    
    --bg-deep: #050505;
    --bg-card: rgba(18, 18, 18, 0.85);
    --bg-card-hover: rgba(30, 30, 30, 0.92);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-subtle: #6B7280;
    
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --purple: #8B5CF6;
    
    --radius-xl: 24px;
    --radius-sm: 12px;
    --transition-smooth: 500ms cubic-bezier(0.23, 1, 0.32, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-magic: 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ GLOBAL RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    background: var(--bg-deep);
    color: var(--text-muted);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* ============ AMBIENT BACKGROUND EFFECTS ============ */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orbs {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite;
}

.ambient-orbs:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--gold);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.ambient-orbs:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
    opacity: 0.08;
}

.ambient-orbs:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--info);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.05;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ============ MICRO-INTERACTIONS ============ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 196, 25, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ============================================================ */
/* ================= LOGIN SCREEN ================= */
/* ============================================================ */
.login-wrapper { 
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 99999; 
    background: #000000; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.login-wrapper:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.login-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.login-background { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    overflow: hidden; 
    pointer-events: none; 
}

.bg-shape { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); 
    opacity: 0.15; 
    animation: floatShape 20s infinite ease-in-out; 
}

.shape-1 { 
    width: 600px; 
    height: 600px; 
    background: var(--gold); 
    top: -200px; 
    right: -100px; 
}

.shape-2 { 
    width: 500px; 
    height: 500px; 
    background: var(--text-white); 
    bottom: -150px; 
    left: -100px; 
    animation-delay: -5s; 
}

.shape-3 { 
    width: 400px; 
    height: 400px; 
    background: linear-gradient(135deg, var(--gold), #FFFFFF); 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    animation-delay: -10s; 
    opacity: 0.08; 
}

@keyframes floatShape { 
    0%, 100% { transform: translate(0, 0) scale(1); } 
    25% { transform: translate(50px, -50px) scale(1.1); } 
    50% { transform: translate(0, -100px) scale(1); } 
    75% { transform: translate(-50px, -50px) scale(0.9); } 
}

.bg-lines { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-image: 
        linear-gradient(rgba(252, 196, 25, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(252, 196, 25, 0.03) 1px, transparent 1px); 
    background-size: 60px 60px; 
}

.login-container-premium { 
    display: flex; 
    width: 1100px; 
    max-width: 95%; 
    min-height: 650px; 
    background: rgba(20, 20, 20, 0.85); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
    box-shadow: 0 0 0 1px rgba(252, 196, 25, 0.1), 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 100px rgba(252, 196, 25, 0.05); 
    position: relative; 
    z-index: 1; 
    transform: none;
    opacity: 1;
}

.login-container-premium.visible {
    transform: translateY(0);
    opacity: 1;
}

.login-showcase { 
    flex: 0 0 480px; 
    background: #000000; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-right: 1px solid rgba(252, 196, 25, 0.15); 
    padding: 40px 30px;
    flex-direction: column;
}

.logo-image-wrapper { 
    width: 220px; 
    margin: 0 auto 20px; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    transition: transform 0.5s ease; 
}

.logo-image-wrapper:hover { 
    transform: scale(1.03); 
}

.logo-image-wrapper img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    mix-blend-mode: screen; 
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(252, 196, 25, 0.2)); 
    border-radius: 12px; 
    -webkit-user-drag: none; 
    user-select: none; 
    pointer-events: none; 
}

.brand-divider { 
    width: 60px; 
    height: 3px; 
    background: linear-gradient(90deg, transparent, var(--gold), transparent); 
    margin: 0 auto 12px; 
}

.brand-tagline { 
    font-size: 14px; 
    color: var(--text-subtle); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: 500; 
}

.showcase-features {
    width: 100%;
    margin-top: 30px;
}

.feature-item { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    padding: 16px 20px; 
    margin-bottom: 12px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(252, 196, 25, 0.05); 
    border-radius: var(--radius-sm); 
    transition: var(--transition-smooth); 
    text-align: left; 
}

.feature-item:hover { 
    background: rgba(252, 196, 25, 0.05); 
    border-color: rgba(252, 196, 25, 0.15); 
    transform: translateX(5px); 
}

.feature-icon { 
    width: 44px; 
    height: 44px; 
    background: rgba(252, 196, 25, 0.15); 
    border-radius: var(--radius-sm); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}

.feature-icon i { 
    font-size: 18px; 
    color: var(--gold); 
}

.feature-text h4 { 
    color: var(--text-white); 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 2px; 
}

.feature-text p { 
    color: var(--text-muted); 
    font-size: 13px; 
}

.login-form-side { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px; 
    position: relative; 
}

.form-container { 
    width: 100%; 
    max-width: 380px; 
}

.form-header { 
    text-align: center; 
    margin-bottom: 40px; 
}

.welcome-icon { 
    width: 64px; 
    height: 64px; 
    margin: 0 auto 20px; 
    background: rgba(252, 196, 25, 0.1); 
    border: 2px solid rgba(252, 196, 25, 0.2); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.welcome-icon i { 
    font-size: 28px; 
    color: var(--gold); 
}

.form-header h2 { 
    font-size: 28px; 
    font-weight: 700; 
    color: var(--text-white); 
    margin-bottom: 8px; 
}

.form-header p { 
    color: var(--text-muted); 
    font-size: 15px; 
}

.input-group { 
    margin-bottom: 24px; 
}

.input-group label { 
    display: block; 
    color: var(--text-muted); 
    font-size: 14px; 
    font-weight: 500; 
    margin-bottom: 8px; 
}

.label-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.forgot-link { 
    color: var(--gold); 
    font-size: 13px; 
    text-decoration: none; 
    font-weight: 500; 
}

.input-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.input-icon { 
    position: absolute; 
    left: 16px; 
    color: var(--text-subtle); 
    font-size: 16px; 
    pointer-events: none; 
    z-index: 1; 
}

.input-wrapper input { 
    width: 100%; 
    padding: 14px 16px 14px 46px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 2px solid rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius-sm); 
    color: var(--text-white); 
    font-size: 15px; 
    font-family: inherit; 
    transition: var(--transition-smooth); 
}

.input-wrapper input:focus { 
    outline: none; 
    border-color: var(--gold); 
    background: rgba(252, 196, 25, 0.05); 
    box-shadow: 0 0 0 4px rgba(252, 196, 25, 0.1); 
}

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

.toggle-password { 
    position: absolute; 
    right: 12px; 
    background: none; 
    border: none; 
    color: var(--text-subtle); 
    cursor: pointer; 
    padding: 8px; 
    transition: var(--transition-smooth); 
    z-index: 1; 
}

.toggle-password:hover { 
    color: var(--gold); 
}

.form-options { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 28px; 
}

.checkbox-container { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    user-select: none; 
}

.checkbox-container input { 
    display: none; 
}

.checkmark { 
    width: 18px; 
    height: 18px; 
    border: 2px solid rgba(255, 255, 255, 0.2); 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition-smooth); 
    position: relative; 
}

.checkbox-container input:checked + .checkmark { 
    background: var(--gold); 
    border-color: var(--gold); 
}

.checkbox-container input:checked + .checkmark::after { 
    content: '✓'; 
    color: #000; 
    font-size: 12px; 
    font-weight: bold; 
}

.btn-sign-in { 
    width: 100%; 
    padding: 16px; 
    background: var(--gold); 
    color: #000000; 
    border: none; 
    border-radius: var(--radius-sm); 
    font-size: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: var(--transition-smooth); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    position: relative; 
    overflow: hidden; 
    margin-bottom: 24px; 
}

.btn-sign-in:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px rgba(252, 196, 25, 0.4); 
}

.btn-loading { 
    display: none; 
}

.btn-sign-in.loading .btn-loading { 
    display: block; 
}

.btn-sign-in.loading span, 
.btn-sign-in.loading .fa-arrow-right { 
    display: none; 
}

/* ============ LOGIN RESPONSIVE ============ */
@media (max-width: 968px) {
    .login-container-premium { 
        flex-direction: column; 
        max-width: 500px; 
        min-height: auto;
        width: 100%;
    }
    .login-showcase { 
        flex: 0 0 auto; 
        padding: 30px; 
        border-right: none; 
        border-bottom: 1px solid rgba(252, 196, 25, 0.15);
        width: 100%;
    }
    .logo-image-wrapper { 
        width: 160px; 
        margin: 0 auto 16px;
    }
    .showcase-features { 
        display: none; 
    }
    .login-form-side { 
        padding: 30px; 
        width: 100%;
    }
    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-wrapper { 
        padding: 10px; 
        justify-content: center; 
    }
    .login-container-premium {
        max-width: 100%;
        border-radius: var(--radius-sm);
    }
    .login-showcase {
        padding: 24px 20px;
    }
    .logo-image-wrapper { 
        width: 130px; 
        margin: 0 auto 12px;
    }
    .brand-tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .brand-divider {
        width: 40px;
        height: 2px;
        margin: 8px auto;
    }
    .login-form-side {
        padding: 24px 20px;
    }
    .form-header {
        margin-bottom: 28px;
    }
    .form-header h2 {
        font-size: 24px;
    }
    .form-header p {
        font-size: 14px;
    }
    .welcome-icon {
        width: 52px;
        height: 52px;
        margin: 0 auto 16px;
    }
    .welcome-icon i {
        font-size: 22px;
    }
    .input-group {
        margin-bottom: 18px;
    }
    .input-group label {
        font-size: 13px;
    }
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    .input-icon {
        left: 12px;
        font-size: 14px;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .btn-sign-in {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 8px;
    }
    .login-showcase {
        padding: 20px 16px;
    }
    .logo-image-wrapper {
        width: 110px;
        margin: 0 auto 10px;
    }
    .brand-tagline {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    .brand-divider {
        width: 32px;
        margin: 6px auto;
    }
    .login-form-side {
        padding: 20px 16px;
    }
    .form-header {
        margin-bottom: 20px;
    }
    .form-header h2 {
        font-size: 20px;
    }
    .form-header p {
        font-size: 13px;
    }
    .welcome-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 12px;
    }
    .welcome-icon i {
        font-size: 18px;
    }
    .input-group {
        margin-bottom: 14px;
    }
    .input-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .input-wrapper input {
        padding: 10px 12px 10px 36px;
        font-size: 13px;
        border-width: 1.5px;
    }
    .input-icon {
        left: 10px;
        font-size: 12px;
    }
    .toggle-password {
        padding: 6px;
    }
    .form-options {
        gap: 8px;
        margin-bottom: 16px;
    }
    .checkbox-container {
        font-size: 13px;
    }
    .checkmark {
        width: 16px;
        height: 16px;
    }
    .forgot-link {
        font-size: 12px;
    }
    .btn-sign-in {
        padding: 12px;
        font-size: 14px;
        border-radius: var(--radius-sm);
        margin-bottom: 16px;
    }
    .login-container-premium {
        border-radius: 12px;
    }
}

/* ============================================================ */
/* ================= DASHBOARD LAYOUT ================= */
/* ============================================================ */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: var(--bg-deep);
    z-index: 2;
}

.sidebar {
    width: 280px;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    z-index: 1000;
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 8px 0 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    background-size: 100% 300%;
    animation: shimmerBorder 4s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes shimmerBorder {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.sidebar::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 100% 50%, rgba(252, 196, 25, 0.03), transparent 60%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.sidebar.open { left: 0; }

@media (min-width: 1025px) {
    .sidebar { 
        left: 0 !important; 
        width: 260px;
        background: rgba(8, 8, 8, 0.95);
    }
}

.sidebar-header { 
    padding: 32px 24px 28px; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    flex-shrink: 0;
}

.sidebar-header .logo-wrapper {
    position: relative;
}

.sidebar-header .logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: var(--gold-gradient);
    opacity: 0.15;
    filter: blur(12px);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

.sidebar-header img { 
    height: 44px; 
    width: auto; 
    mix-blend-mode: screen; 
    filter: drop-shadow(0 5px 25px rgba(252, 196, 25, 0.4)); 
    -webkit-user-drag: none; 
    user-select: none; 
    pointer-events: none;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}
.sidebar-brand strong {
    font-size: 20px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.sidebar-brand small {
    font-size: 10px;
    color: var(--text-subtle);
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-subtle);
}

.sidebar-nav { 
    flex: 1; 
    padding: 20px 14px; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.05) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 10px; }

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 16px 8px;
    opacity: 0.5;
}

.nav-item { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    padding: 11px 16px; 
    color: rgba(255, 255, 255, 0.45); 
    text-decoration: none; 
    border-radius: var(--radius-sm); 
    margin-bottom: 2px; 
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); 
    cursor: pointer; 
    border: 1px solid transparent;
    position: relative;
    -webkit-tap-highlight-color: transparent; 
    font-weight: 500;
    font-size: 13.5px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 28px;
    background: var(--gold-gradient);
    border-radius: 0 4px 4px 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover { 
    background: rgba(255, 255, 255, 0.04); 
    color: var(--text-white); 
    border-color: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
}

.nav-item.active { 
    background: linear-gradient(135deg, rgba(252, 196, 25, 0.08), rgba(252, 196, 25, 0.02)); 
    border-color: rgba(252, 196, 25, 0.08); 
    color: var(--gold); 
    box-shadow: inset 0 0 30px rgba(252, 196, 25, 0.02);
    transform: translateX(4px);
}

.nav-item.active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-item i { 
    width: 22px; 
    text-align: center; 
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item:hover i {
    transform: scale(1.15) rotate(-5deg);
}
.nav-item.active i {
    color: var(--gold);
}

.nav-item .nav-badge {
    margin-left: auto;
    background: rgba(252, 196, 25, 0.12);
    color: var(--gold);
    font-size: 9px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(252, 196, 25, 0.08);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-badge {
    background: rgba(252, 196, 25, 0.2);
    transform: scale(1.05);
}

.sidebar-footer { 
    padding: 18px 24px; 
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 196, 25, 0.15), transparent);
}

.user-info { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.user-info .avatar-wrapper {
    position: relative;
}
.user-info .avatar-wrapper .status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid #080808;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.user-info img { 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    border: 2px solid rgba(252, 196, 25, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}
.user-info:hover img {
    transform: scale(1.05);
}
.user-info strong { 
    display: block; 
    font-size: 13.5px; 
    font-weight: 600; 
    color: #fff; 
    line-height: 1.2;
}
.user-info small { 
    color: var(--text-subtle); 
    font-size: 11px; 
}

.btn-logout { 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    color: var(--text-muted); 
    padding: 10px; 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    -webkit-tap-highlight-color: transparent; 
}
.btn-logout:hover { 
    background: rgba(239, 68, 68, 0.12); 
    border-color: rgba(239, 68, 68, 0.2); 
    color: var(--danger);
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.main-content { 
    flex: 1; 
    margin-left: 260px; 
    min-height: 100vh; 
    background: transparent;
    transition: margin-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 32px 32px 32px; 
    position: relative;
    z-index: 10;
}

.top-bar { 
    background: transparent; 
    padding: 24px 0 24px 0; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: none; 
    position: sticky; 
    top: 0; 
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    margin: 0 -32px;
    padding: 20px 32px;
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hamburger-wrapper {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hamburger-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.hamburger-wrapper:hover::before {
    opacity: 0.05;
}

.hamburger-wrapper:hover { 
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(252, 196, 25, 0.15);
    transform: scale(1.02);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    position: relative;
    z-index: 1;
}
.hamburger-lines span {
    display: block;
    height: 2px;
    background: var(--text-white);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    width: 100%;
}
.hamburger-lines span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.hamburger-wrapper.active .hamburger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 100%;
    background: var(--gold);
}
.hamburger-wrapper.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-wrapper.active .hamburger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 100%;
    background: var(--gold);
}

@media (max-width: 1024px) {
    .main-content { 
        margin-left: 0; 
        padding: 0 16px 16px 16px; 
    }
    .top-bar {
        margin: 0 -16px;
        padding: 16px 20px;
    }
    .hamburger-wrapper { 
        display: flex; 
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(16px) saturate(0.8);
        -webkit-backdrop-filter: blur(16px) saturate(0.8);
        z-index: 999;
        transition: opacity 0.5s ease;
        opacity: 0;
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
        animation: overlayFade 0.5s ease forwards;
    }

    @keyframes overlayFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

.search-bar { 
    display: flex; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 50px; 
    padding: 10px 20px; 
    width: 320px; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    position: relative;
}

.search-bar::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.search-bar:focus-within { 
    border-color: transparent;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 40px rgba(252, 196, 25, 0.04);
    transform: scale(1.01);
}

.search-bar:focus-within::before {
    opacity: 0.15;
}

.search-bar i { 
    color: var(--text-subtle); 
    margin-right: 12px; 
    font-size: 14px; 
    transition: color 0.3s ease;
}
.search-bar:focus-within i {
    color: var(--gold);
}
.search-bar input { 
    border: none; 
    background: transparent; 
    outline: none; 
    width: 100%; 
    font-size: 14px; 
    color: var(--text-white); 
}
.search-bar input::placeholder { 
    color: var(--text-subtle); 
}

.top-bar-actions { 
    display: flex; 
    gap: 12px; 
    align-items: center;
}

.btn-icon { 
    position: relative; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-size: 17px; 
    color: var(--text-muted); 
    -webkit-tap-highlight-color: transparent; 
}

.btn-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-icon:hover { 
    background: transparent;
    color: var(--gold); 
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.btn-icon:hover::before {
    opacity: 0.08;
}

.badge { 
    position: absolute; 
    top: -2px; 
    right: -2px; 
    background: var(--danger); 
    color: var(--text-white); 
    font-size: 9px; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    border: 2px solid var(--bg-deep); 
    box-shadow: 0 2px 15px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* ============================================================ */
/* ================= TOAST ================= */
/* ============================================================ */
.toast { 
    position: fixed; 
    top: 30px; 
    right: 30px; 
    padding: 18px 28px; 
    background: rgba(12, 12, 12, 0.95); 
    backdrop-filter: blur(30px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 16px; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 60px rgba(252, 196, 25, 0.03); 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    font-size: 14px; 
    font-weight: 500; 
    color: #ffffff; 
    transform: translateX(120%) scale(0.9); 
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
    z-index: 99999; 
    max-width: 420px; 
    border-left: 4px solid var(--gold);
    opacity: 0;
}
.toast.show { 
    transform: translateX(0) scale(1);
    opacity: 1;
}
.toast i { 
    font-size: 22px; 
    flex-shrink: 0; 
    color: var(--gold);
}
.toast .toast-content {
    display: flex;
    flex-direction: column;
}
.toast .toast-content small {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 400;
    margin-top: 2px;
}

/* ============================================================ */
/* ================= DASHBOARD MODULE STYLES ================= */
/* ============================================================ */
.dashboard-wrapper {
    max-width: 1400px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding-top: 10px;
}

.dashboard-header {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-header.visible {
    opacity: 1;
    transform: translateY(0);
}
.dashboard-header .greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.dashboard-header .greeting .wave {
    font-size: 32px;
    animation: wave 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
}

.dashboard-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.dashboard-header h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.dashboard-header h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 4px;
    opacity: 0.2;
    filter: blur(4px);
}

.dashboard-header p {
    color: var(--text-subtle);
    font-size: 16px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    will-change: transform;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.stat-card.first-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card.first-reveal::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: revealSweep 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes revealSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.stat-card .stat-glow {
    position: absolute;
    top: -60%;
    right: -60%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gold);
    filter: blur(80px);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.stat-card:hover .stat-glow {
    opacity: 0.12;
    transform: scale(1.5);
}

.stat-card .stat-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-shimmer {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.stat-card:hover {
    /* transform: translateY(-8px) scale(1.02); */
    background: var(--bg-card-hover);
    border-color: rgba(252, 196, 25, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 60px var(--gold-glow);
}

.stat-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(252, 196, 25, 0.25);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-sm);
    background: var(--gold-gradient);
    opacity: 0.15;
    filter: blur(10px);
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.stat-card:hover .stat-icon-wrapper::after {
    opacity: 0.3;
    filter: blur(15px);
}

.stat-text-wrapper {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
}
.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.stat-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.stat-card:nth-child(1) .stat-icon-wrapper { background: linear-gradient(135deg, #FCC419, #FFE066); }
.stat-card:nth-child(2) .stat-icon-wrapper { background: linear-gradient(135deg, #FCC419, #E6B800); }
.stat-card:nth-child(3) .stat-icon-wrapper { background: linear-gradient(135deg, #10B981, #34D399); }
.stat-card:nth-child(4) .stat-icon-wrapper { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.stat-card:nth-child(5) .stat-icon-wrapper { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.stat-card:nth-child(6) .stat-icon-wrapper { background: linear-gradient(135deg, #F59E0B, #FBBF24); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.dashboard-grid.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.data-card {
    background: linear-gradient(145deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.95));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 26px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.data-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: radial-gradient(circle at 100% 0%, rgba(252, 196, 25, 0.12), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.data-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(252, 196, 25, 0.03), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transition: all 0.6s ease;
}

.data-card:hover::after {
    transform: scale(2);
    opacity: 0.5;
}

.data-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(252, 196, 25, 0.02);
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}
.data-card-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.3px;
}
.data-card-header .badge-count {
    font-size: 12px;
    color: var(--text-subtle);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 0 10px 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

td {
    padding: 14px 0;
    font-size: 13.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

tbody tr {
    transition: all 0.3s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
tbody tr:last-child td {
    border-bottom: none;
}

.member-avatar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
tbody tr:hover .member-avatar {
    transform: scale(1.05);
}
.member-name {
    color: var(--text-white);
    font-weight: 500;
}

.pill-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
tbody tr:hover .pill-badge {
    transform: scale(1.02);
}
.pill-badge.active { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }
.pill-badge.frozen { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.pill-badge.soon { background: rgba(239, 68, 68, 0.08); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.1); }
.pill-badge.instructor { background: rgba(59, 130, 246, 0.12); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.15); }
.pill-badge.paid { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }

.data-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: right;
    position: relative;
    z-index: 1;
}
.data-card-footer a {
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.data-card-footer a:hover {
    color: var(--gold);
    transform: translateX(4px);
}
.data-card-footer a i {
    font-size: 12px;
    transition: transform 0.4s ease;
}
.data-card-footer a:hover i {
    transform: translateX(6px) rotate(-5deg);
}

/* ============================================================ */
/* ================= MEMBERSHIP MODULE (FIXED) ================= */
/* ============================================================ */
.membership-module {
    width: 100%;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    overflow-x: hidden;
}

.membership-module .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.membership-module .module-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.membership-module .module-header p {
    color: var(--text-muted);
    margin: 4px 0 0 0;
    font-size: clamp(13px, 1.2vw, 15px);
}

.membership-module .module-header-left {
    flex: 1;
    min-width: 200px;
}

.membership-module .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(13px, 1vw, 14px);
    white-space: nowrap;
}

.membership-module .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
}

.membership-module .plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.membership-module .plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
}

.membership-module .plan-card.premium {
    border-color: rgba(252, 196, 25, 0.2);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(18, 18, 18, 0.95));
}

.membership-module .plan-card.premium .plan-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.membership-module .plan-name {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.membership-module .plan-price {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
}

.membership-module .plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-subtle);
}

.membership-module .plan-features {
    list-style: none;
    text-align: left;
    margin: 12px 0 20px 0;
    padding: 0;
}

.membership-module .plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(12px, 1vw, 14px);
    color: var(--text-muted);
}

.membership-module .plan-features li i {
    color: var(--gold);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.membership-module .plan-features li.disabled {
    color: var(--text-subtle);
    text-decoration: line-through;
}

.membership-module .membership-data-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: clamp(16px, 2vw, 28px);
    width: 100%;
    overflow: hidden;
}

.membership-module .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    gap: 10px;
}

.membership-module .card-header h3 {
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.membership-module .table-container {
    width: 100%;
    overflow-x: auto;
}

.membership-module table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.membership-module th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.membership-module td {
    padding: 12px 12px;
    font-size: clamp(12px, 1vw, 14px);
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

.membership-module .pill-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: clamp(10px, 0.8vw, 12px);
    font-weight: 600;
    white-space: nowrap;
}

.membership-module .pill-badge.active { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.membership-module .pill-badge.premium { background: rgba(252, 196, 25, 0.15); color: var(--gold); border: 1px solid rgba(252, 196, 25, 0.2); }
.membership-module .pill-badge.standard { background: rgba(59, 130, 246, 0.15); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.membership-module .pill-badge.basic { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

.membership-module .data-card-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .membership-module .module-header {
        flex-direction: column;
        align-items: stretch;
    }
    .membership-module .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .membership-module .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .membership-module .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .membership-module .data-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================ */
/* ================= ULTRA RESPONSIVE ================= */
/* ============================================================ */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-header h1 { font-size: 32px; }
    .search-bar { width: 240px; }
    .membership-module .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
        gap: 16px;
    }
    .membership-module .plan-card {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
    .data-card { padding: 20px; }
    .dashboard-header h1 { font-size: 26px; }
    .dashboard-header { margin-bottom: 28px; }
    .stat-card { padding: 18px 16px; }
    .stat-number { font-size: 24px; }
    .stat-icon-wrapper { width: 44px; height: 44px; font-size: 18px; }
    .search-bar { width: 160px; padding: 8px 14px; }
    .search-bar input { font-size: 12px; }
    .top-bar { padding: 12px 16px; }
    .dashboard-wrapper { padding-top: 0; }
    .main-content { padding: 0 12px 12px 12px; }
    
    .membership-module .module-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .membership-module .module-header-left {
        width: 100%;
    }
    .membership-module .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    .membership-module .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .membership-module .membership-data-card {
        padding: 16px;
    }
    .membership-module .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .membership-module .data-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .membership-module .form-grid {
        grid-template-columns: 1fr;
    }
    .membership-module .modal-container {
        margin: 10px;
        padding: 20px;
        max-height: 95vh;
    }
    .membership-module .action-group {
        justify-content: flex-start;
    }
    .membership-module .btn-sm {
        padding: 4px 10px;
        font-size: 11px;
    }
    .membership-module td {
        padding: 10px 8px;
    }
    .membership-module th {
        padding: 8px 8px;
        font-size: 10px;
    }
    .membership-module .member-avatar-group {
        min-width: 80px;
    }
    .membership-module .modal-actions {
        flex-direction: column;
    }
    .membership-module .modal-actions .btn-primary,
    .membership-module .modal-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 10px; letter-spacing: 0.5px; }
    .stat-icon-wrapper { width: 36px; height: 36px; font-size: 15px; }
    .stat-card-content { gap: 10px; }
    .dashboard-header h1 { font-size: 22px; }
    .dashboard-header p { font-size: 13px; }
    .data-card { padding: 16px; }
    .data-card-header h3 { font-size: 15px; }
    .data-card-header .badge-count { font-size: 10px; padding: 3px 10px; }
    td { font-size: 12px; padding: 10px 0; }
    .member-avatar { width: 30px; height: 30px; }
    .member-name { font-size: 12px; }
    .pill-badge { font-size: 10px; padding: 2px 10px; }
    .top-bar { padding: 10px 12px; }
    .search-bar { width: 120px; padding: 6px 10px; }
    .search-bar i { font-size: 12px; margin-right: 8px; }
    .btn-icon { width: 36px; height: 36px; font-size: 14px; }
    .badge { width: 16px; height: 16px; font-size: 8px; }
    .toast { max-width: calc(100vw - 40px); padding: 14px 18px; font-size: 13px; top: 20px; right: 20px; }
    
    .membership-module .plans-grid {
        gap: 12px;
    }
    .membership-module .plan-card {
        padding: 16px 14px;
    }
    .membership-module .plan-price {
        font-size: 28px;
    }
    .membership-module .plan-features li {
        font-size: 12px;
        padding: 5px 0;
    }
    .membership-module .membership-data-card {
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    .membership-module table {
        min-width: 480px;
    }
    .membership-module td,
    .membership-module th {
        padding: 8px 6px;
        font-size: 11px;
    }
    .membership-module .member-avatar {
        width: 24px;
        height: 24px;
    }
    .membership-module .member-name {
        font-size: 11px;
    }
    .membership-module .pill-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    .membership-module .btn-sm {
        font-size: 10px;
        padding: 3px 8px;
    }
    .membership-module .card-header h3 {
        font-size: 15px;
    }
    .membership-module .card-header .badge-count {
        font-size: 10px;
        padding: 3px 8px;
    }
    .membership-module .modal-container {
        padding: 16px;
    }
    .membership-module .modal-header h2 {
        font-size: 18px;
    }
}

/* ============================================================ */
/* ================= MODAL (Global) ================= */
/* ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-container {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.modal-header h2 { color: var(--text-white); font-size: 24px; }
.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.form-group input, .form-group select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 14px;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #141414; color: #fff; }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
