/* =============================================
   TechnisoftHRMS — Design System & Global Styles
   Kenya HRMS Premium UI
   ============================================= */

/* =================== GOOGLE FONTS =================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* =================== CSS CUSTOM PROPERTIES =================== */
:root {
    /* ===== TECHNISOFT SYSTEMS BRAND PALETTE ===== */
    /* Sky Blue: #29ABE2 | Purple: #7B3FA0 | Orange: #F7941D */

    /* Core Backgrounds — clean light professional */
    --bg-primary: #F0F4F8;
    --bg-secondary: #E8EEF5;
    --bg-tertiary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F7FAFC;
    --bg-input: #F4F7FB;
    --bg-input-focus: #EBF4FF;

    /* Sidebar — Technisoft deep brand gradient */
    --sidebar-bg: linear-gradient(180deg, #2D1B4E 0%, #1A0F2E 100%);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;

    /* Brand Accent Colors — Technisoft Systems */
    --brand-blue: #29ABE2;
    --brand-purple: #7B3FA0;
    --brand-orange: #F7941D;

    /* Accent Colors mapped to brand */
    --accent-emerald: #29ABE2;          /* brand sky blue as primary */
    --accent-emerald-light: #52C0ED;
    --accent-emerald-dark: #1A8DC2;
    --accent-indigo: #7B3FA0;           /* brand purple as secondary */
    --accent-indigo-light: #9B5FBF;
    --accent-gold: #F7941D;             /* brand orange as accent */
    --accent-gold-light: #F9B060;
    --accent-rose: #E11D48;
    --accent-sky: #29ABE2;
    --accent-violet: #7B3FA0;

    /* Semantic Colors */
    --success: #16A34A;
    --success-bg: rgba(22, 163, 74, 0.08);
    --warning: #F7941D;
    --warning-bg: rgba(247, 148, 29, 0.10);
    --danger: #DC2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    --info: #29ABE2;
    --info-bg: rgba(41, 171, 226, 0.10);

    /* Text */
    --text-primary: #1A1A2E;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --text-faint: #9CA3AF;

    /* Borders */
    --border: #DDE3ED;
    --border-accent: rgba(41, 171, 226, 0.3);
    --border-emerald: rgba(41, 171, 226, 0.3);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 0, 0, 0.07);
    --glass-blur: blur(20px);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.07);
    --shadow-md: 0 4px 16px rgba(26,26,46,0.10);
    --shadow-lg: 0 10px 40px rgba(26,26,46,0.13);
    --shadow-emerald: 0 4px 20px rgba(41, 171, 226, 0.2);
    --shadow-indigo: 0 4px 20px rgba(123, 63, 160, 0.2);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Topbar */
    --topbar-height: 60px;
}

/* =================== RESET & BASE =================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; }
svg { flex-shrink: 0; }

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =================== UTILITY CLASSES =================== */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-emerald { color: var(--accent-emerald); }
.text-indigo { color: var(--accent-indigo); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: var(--font-mono); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.w-full { width: 100%; }

/* =================== GLASSMORPHISM CARD =================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* =================== APP LOADING =================== */
body.app-loading::after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================== AUTH SCREEN =================== */
.auth-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A0F2E 0%, #2D1B4E 30%, #1A3A5C 70%, #0D2137 100%);
    z-index: 1000;
    padding: var(--space-md);
}

.auth-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-circles { position: absolute; inset: 0; }
.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}
.bg-circle.c1 { width: 500px; height: 500px; background: radial-gradient(circle, #7B3FA0, transparent); top: -20%; left: -10%; animation-delay: 0s; }
.bg-circle.c2 { width: 400px; height: 400px; background: radial-gradient(circle, #29ABE2, transparent); bottom: -10%; right: -5%; animation-delay: 3s; }
.bg-circle.c3 { width: 300px; height: 300px; background: radial-gradient(circle, #F7941D, transparent); top: 50%; left: 50%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: var(--space-2xl);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.logo-icon { flex-shrink: 0; }
.auth-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.auth-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }

.auth-error {
    background: var(--danger-bg);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--danger);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.auth-footer {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =================== APP LAYOUT =================== */
.app {
    display: flex;
    min-height: 100vh;
}

/* =================== SIDEBAR =================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: width var(--transition-slow);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    min-height: 64px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

.brand-company {
    font-size: 0.68rem;
    color: #29ABE2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.sidebar-toggle:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }

.sidebar-nav {
    flex: 1;
    padding: var(--space-md) var(--space-sm);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    padding: 16px var(--space-sm) 6px;
    margin-top: 8px;
    white-space: nowrap;
    line-height: 1.4;
    display: block;
    transition: opacity var(--transition-slow);
}

.sidebar.collapsed .nav-section-label { opacity: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 7px var(--space-sm);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(41,171,226,0.25), rgba(123,63,160,0.25));
    color: #FFFFFF;
    border: 1px solid rgba(41, 171, 226, 0.35);
}

.nav-item.active .nav-icon svg { stroke: #29ABE2; }

.nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.nav-label {
    font-size: 0.78rem;
    font-weight: 500;
    transition: opacity var(--transition-slow);
    flex: 1;
}

.sidebar.collapsed .nav-label { opacity: 0; }
.sidebar.collapsed .brand-name { opacity: 0; }
.sidebar.collapsed .brand-company { opacity: 0; }

.nav-badge {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    transition: opacity var(--transition-slow);
}
.sidebar.collapsed .nav-badge { opacity: 0; }

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    overflow: hidden;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-emerald));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    transition: opacity var(--transition-slow);
}
.sidebar.collapsed .user-info { opacity: 0; }

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,0.9);
}

.user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    text-transform: capitalize;
}

.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.35);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    flex-shrink: 0;
}
.logout-btn:hover { color: #F87171; }

/* Full logout button in sidebar footer */
.logout-btn-full {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    margin-top: var(--space-sm);
    padding: 9px var(--space-sm);
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--radius-md);
    color: rgba(248, 113, 113, 0.8);
    font-size: 0.83rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.logout-btn-full:hover {
    background: rgba(248, 113, 113, 0.18);
    color: #F87171;
    border-color: rgba(248, 113, 113, 0.45);
}
.sidebar.collapsed .logout-btn-full .nav-label { opacity: 0; }

/* Topbar logout button */
.topbar-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.06);
    border-radius: var(--radius-sm);
    color: #DC2626;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.topbar-logout-btn:hover {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

/* =================== TOPBAR COMPANY BLOCK =================== */
.topbar-company {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 1px solid var(--border);
    min-width: 0;
}

.topbar-company-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-company-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #29ABE2, #7B3FA0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.topbar-company-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-company-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    line-height: 1.2;
}

.topbar-company-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .topbar-company-name { max-width: 130px; }
    .topbar-company-sub { display: none; }
}


/* =================== MAIN CONTENT =================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* =================== TOPBAR =================== */
.topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-left { display: flex; align-items: center; gap: var(--space-md); }
.topbar-right { display: flex; align-items: center; gap: var(--space-sm); }

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--space-xs);
    display: none;
}

.page-breadcrumb { display: flex; align-items: center; gap: var(--space-sm); }
.breadcrumb-page {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.company-selector {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    outline: none;
    cursor: pointer;
}

.topbar-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
}
.topbar-btn:hover { color: var(--text-primary); border-color: var(--accent-emerald); }

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.topbar-user:hover { background: var(--bg-input); }

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-emerald));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* =================== PAGE CONTENT =================== */
.page-content {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.page-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    gap: var(--space-md);
    color: var(--text-muted);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-emerald);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =================== TOAST NOTIFICATIONS =================== */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 9000;
    max-width: 380px;
}

.toast {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.toast.toast-success::before { background: var(--success); }
.toast.toast-error::before { background: var(--danger); }
.toast.toast-warning::before { background: var(--warning); }
.toast.toast-info::before { background: var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

.toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.toast-message { font-size: 0.85rem; flex: 1; }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }

/* =================== MODAL =================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: fadeIn 0.2s ease forwards;
}

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

.modal {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}

.modal.modal-sm { max-width: 440px; }
.modal.modal-lg { max-width: 860px; }
.modal.modal-xl { max-width: 1100px; }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title { font-size: 1rem; font-weight: 700; }

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-input); }

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.confirm-modal { max-width: 400px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow), width var(--transition-slow);
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0 !important; }
    .mobile-menu-btn { display: flex; }
    .page-content { padding: var(--space-md); }
    .topbar { padding: 0 var(--space-md); }
    .topbar-date { display: none; }
}

/* =================== PREMIUM MODULES DESIGN =================== */
.premium-badge {
    background: linear-gradient(135deg, #7B3FA0, #F7941D);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(123, 63, 160, 0.2);
}

.nav-item .premium-badge {
    opacity: 0.9;
    font-size: 0.55rem;
    padding: 1px 4px;
}

.premium-locked-page {
    max-width: 600px;
    margin: 40px auto;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.premium-locked-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #7B3FA0, #F7941D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.premium-locked-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.premium-locked-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.premium-locked-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-indigo);
    margin-bottom: 24px;
    background: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: inline-block;
}
