/* ===== ROOT VARIABLES - Moon Eclipse NASA Theme ===== */
:root {
    /* Enhanced Primary Colors - Deep Space */
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --primary-light: #2a2a4a;
    --primary-50: #e8e8f0;
    --primary-100: #d0d0e0;
    --primary-gradient: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    
    /* Enhanced Secondary Colors - Lunar Glow */
    --secondary: #c4b998;
    --secondary-dark: #a89a7a;
    --secondary-light: #d4c9a8;
    --secondary-50: #f5f0e8;
    --secondary-gradient: linear-gradient(135deg, #c4b998, #a89a7a);
    
    /* Enhanced Accent Colors - Eclipse Ring */
    --accent: #4a4a6a;
    --accent-dark: #3a3a5a;
    --accent-light: #5a5a7a;
    --accent-50: #e8e8f0;
    
    /* Enhanced Neutral Colors - Space Dust */
    --dark: #0a0a15;
    --light: #ffffff;
    --gray-50: #f8f8fa;
    --gray-100: #f0f0f5;
    --gray-200: #e0e0ea;
    --gray-300: #c0c0d0;
    --gray-400: #9090a0;
    --gray-500: #606070;
    --gray-600: #404050;
    --gray-700: #303040;
    --gray-800: #202030;
    --gray-900: #101020;
    
    /* Semantic Colors - Cosmic */
    --success: #2d8f5a;
    --success-light: #d4f0e0;
    --danger: #c0392b;
    --danger-light: #f5d0cc;
    --warning: #f39c12;
    --warning-light: #fde8d0;
    --info: #2980b9;
    --info-light: #cce8f5;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #606070;
    --text-gray: #9090a0;
    
    /* Background Colors */
    --bg-light: #f0f0f5;
    --bg-white: #ffffff;
    --bg-dark: #0a0a15;
    --bg-card: #ffffff;
    
    /* Shadows - Cosmic Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.35);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(26, 26, 46, 0.3);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
    
    /* Gradients - Eclipse */
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #2a2a4a 100%);
    --gradient-secondary: linear-gradient(135deg, #c4b998 0%, #a89a7a 100%);
    --gradient-accent: linear-gradient(135deg, #4a4a6a 0%, #3a3a5a 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 40%, #2a2a4a 70%, #4a4a6a 100%);
    --gradient-nav: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    --gradient-gold: linear-gradient(135deg, #c4b998, #d4c9a8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gray-100);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== HEADER ===== */
.header {
    background: var(--gradient-nav);
    padding: 0 var(--spacing-lg);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== HEADER CONTAINER ===== */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* ===== HEADER PUBLIC VARIANT ===== */
.header-public {
    background: rgba(10, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-logo {
    height: 40px;
    width: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--secondary);
    object-fit: cover;
}

.header-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

.header-title span {
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-actions .user-info {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-actions .user-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--secondary);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.header-actions .btn-logout {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.85rem;
}

.header-actions .btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
}

/* ===== TOP NAVIGATION - Public Pages ===== */
.top-nav {
    display: flex;
    align-items: center;
    margin: 0 var(--spacing-lg);
}

.top-nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

.top-nav-menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.top-nav-menu li a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.08);
}

.top-nav-menu li a.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== MOBILE MENU (Public Pages) ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: -320px;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    color: var(--text-light);
    z-index: 1000;
    transition: right var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
}

.mobile-menu-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.mobile-menu-items {
    list-style: none;
    padding: var(--spacing-md) 0;
}

.mobile-menu-items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu-items li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
    font-size: 1rem;
}

.mobile-menu-items li a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-items li a.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-items li a i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-y: auto;
    z-index: 999;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    transform: translateX(0);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

.sidebar-menu {
    padding: var(--spacing-md) 0;
    list-style: none;
}

.sidebar-menu .menu-label {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    font-weight: var(--font-weight-semibold);
}

.sidebar-menu .menu-item {
    margin: 2px 0;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.sidebar-menu .menu-item a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    border-left-color: var(--secondary);
}

.sidebar-menu .menu-item a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    border-left-color: var(--secondary);
}

.sidebar-menu .menu-item a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-menu .menu-item a .badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: var(--font-weight-bold);
}

.sidebar-menu .menu-item a .badge.gold {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* ===== MENU TOGGLE - Right Side (Public Pages) ===== */
.menu-toggle-right {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
    order: 10;
}

.menu-toggle-right:hover {
    color: var(--secondary);
}

.menu-toggle-right.active {
    color: var(--secondary);
}

/* ===== MENU TOGGLE - Left Side (Dashboard) ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    color: var(--secondary);
}

.menu-toggle.active {
    color: var(--secondary);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: var(--spacing-xl);
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition-normal);
}

.main-content.public-page {
    margin-left: 0 !important;
    padding: 0 !important;
}

/* ===== HERO / WELCOME PAGE ===== */
.hero {
    background: var(--gradient-hero);
    padding: var(--spacing-4xl) var(--spacing-xl);
    text-align: center;
    color: var(--text-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: rgba(196, 185, 152, 0.04);
    transform: rotate(20deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    height: 120px;
    width: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--secondary);
    margin-bottom: var(--spacing-lg);
    object-fit: cover;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    font-family: var(--font-primary);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--secondary-gradient);
    color: var(--primary-dark);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 185, 152, 0.4);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #1e6b40;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #922b21;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d68910;
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.card-header h3 i {
    margin-right: var(--spacing-sm);
    color: var(--secondary);
}

.card-body {
    padding: var(--spacing-lg);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.stat-card .number {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.stat-card .stat-change {
    font-size: 0.75rem;
    margin-top: var(--spacing-sm);
}

.stat-card .stat-change.positive {
    color: var(--success);
}

.stat-card .stat-change.negative {
    color: var(--danger);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.dashboard-header h1 {
    color: var(--primary);
    font-size: 1.8rem;
}

.dashboard-header h1 i {
    color: var(--secondary);
}

/* ===== DASHBOARD STATS ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.dashboard-stats .stat-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: var(--transition-normal);
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.dashboard-stats .stat-card.success {
    border-left-color: var(--success);
}

.dashboard-stats .stat-card.warning {
    border-left-color: var(--warning);
}

.dashboard-stats .stat-card.danger {
    border-left-color: var(--danger);
}

.dashboard-stats .stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    display: block;
}

.dashboard-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-stats .stat-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

/* ===== PLATFORMS GRID ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.platform-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.platform-card img {
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.platform-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.platform-card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.platform-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.platform-stats i {
    color: var(--primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== AUTH PAGES ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(-20deg);
}

.auth-box {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-box .auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-box .auth-logo img {
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--secondary);
}

.auth-box h2 {
    color: var(--primary);
    text-align: center;
    font-size: 1.5rem;
}

.auth-box h3 {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--spacing-lg);
}

.auth-link {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    background: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tab {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.tab:hover {
    background: var(--gray-100);
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-white);
    margin: 5% auto;
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-md);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gray-200);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.modal-header .close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-normal);
    line-height: 1;
}

.modal-header .close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}

.news-card-content {
    padding: var(--spacing-md);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.news-card-category {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-published {
    background: var(--success-light);
    color: var(--success);
}

.status-rejected {
    background: var(--danger-light);
    color: var(--danger);
}

.status-draft {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* ===== ALERTS / FLASH MESSAGES ===== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: var(--spacing-sm);
    animation: slideInRight 0.3s ease;
}

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-lg);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-public {
    margin-top: 0;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.footer h5 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

.footer-contact li i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-contact a {
    color: var(--text-gray);
    transition: var(--transition-normal);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    transform: translateY(-4px);
    background: var(--secondary);
    color: var(--primary-dark);
}

.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* ===== WELCOME PAGE SECTIONS ===== */
.section-about {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.section-why {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.section-platforms {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.section-stats {
    padding: var(--spacing-3xl) 0;
    background: var(--primary);
}

.section-testimonials {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.section-cta {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2xl);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.about-stats div {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.about-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.about-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-image-placeholder {
    width: 100%;
    height: 350px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.about-image-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.benefit-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 1.8rem;
}

.benefit-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Section Stats */
.section-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
}

.section-stats .stat-card {
    background: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-stats .stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
}

.section-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    color: var(--text-muted);
}

.testimonial-author strong {
    color: var(--text-dark);
    display: block;
}

/* CTA Section */
.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== USER LIST ===== */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.user-list li:last-child {
    border-bottom: none;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ROLE BADGES ===== */
.role-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    color: white;
}

.role-badge.director { background: #fd7e14; }
.role-badge.gm { background: #6f42c1; }
.role-badge.accounts { background: #fd7e14; }
.role-badge.editor { background: #17a2b8; }
.role-badge.journalist { background: #fd7e14; }
.role-badge.marketer { background: #ffc107; color: #856404; }
.role-badge.presenter { background: #007bff; }
.role-badge.user { background: #fd7e14; }

/* ===== ROLE SELECT ===== */
.role-select {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    font-size: 0.85rem;
    background: var(--bg-white);
    color: var(--text-dark);
}

.role-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== SEARCH BOX ===== */
.search-box {
    margin-bottom: var(--spacing-lg);
}

.search-box .form-input {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-300);
}

/* ===== SMS STATUS ===== */
#smsStatus {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
}

#smsStatus.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

#smsStatus.error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

#smsStatus.loading {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    border-top-color: var(--primary);
    animation: spin 0.8s ease infinite;
}

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

/* ===== RESPONSIVE - Show hamburger on mobile ===== */
@media screen and (max-width: 992px) {
    .top-nav {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    /* Right Menu Toggle - Public Pages */
    .menu-toggle-right {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide the left menu toggle on public pages */
    .header-public .menu-toggle:not(.menu-toggle-right) {
        display: none !important;
    }
    
    /* Left Menu Toggle - Dashboard Pages */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    /* Sidebar (Dashboard) */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Mobile Menu (Public) - Slide from right */
    .mobile-menu {
        right: -320px;
        width: 280px;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: var(--spacing-md);
    }
    
    .main-content.public-page {
        padding: 0 !important;
    }
    
    .header-public .header-actions .btn-logout {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .header-public .user-info .name {
        display: none;
    }
    
    .header-public .header-title {
        font-size: 0.8rem;
    }
    
    .header-public .header-logo {
        height: 32px;
        width: 32px;
    }
    
    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .header-title {
        font-size: 0.9rem;
    }
    
    .header-actions .user-info .name {
        display: none;
    }
    
    .auth-box {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .tab {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .about-image-placeholder {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid,
    .platforms-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-cta h2 {
        font-size: 1.8rem;
    }
}

/* ===== RESPONSIVE FOR VERY SMALL SCREENS ===== */
@media screen and (max-width: 480px) {
    .menu-toggle-right {
        font-size: 1.2rem;
        padding: var(--spacing-xs);
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        padding: var(--spacing-xs);
    }
    
    .header {
        padding: 0 var(--spacing-md);
    }
    
    .header-public .header-title {
        font-size: 0.7rem;
    }
    
    .header-public .header-logo {
        height: 28px;
        width: 28px;
    }
    
    .header-logo {
        height: 32px;
        width: 32px;
    }
    
    .header-title {
        font-size: 0.8rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .mobile-menu {
        width: 260px;
        right: -280px;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-logo {
        height: 80px;
        width: 80px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-stats div {
        padding: var(--spacing-sm);
    }
    
    .section-stats .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-stats .stat-number {
        font-size: 1.8rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-gold { color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }
/* ===== DESKTOP ONLY UTILITY ===== */
.desktop-only {
    display: inline-flex;
}

/* ===== MOBILE MENU AUTH SECTION ===== */
.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: var(--spacing-md) var(--spacing-lg);
}

.mobile-menu-auth {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu-auth a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
    font-size: 1rem;
}

.mobile-menu-auth a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-auth a i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

.mobile-menu-login {
    color: var(--secondary) !important;
    font-weight: var(--font-weight-semibold);
}

.mobile-menu-register {
    background: var(--secondary);
    color: var(--primary-dark) !important;
    margin: 0 var(--spacing-lg);
    border-radius: var(--radius-sm);
    justify-content: center;
    font-weight: var(--font-weight-bold);
}

.mobile-menu-register:hover {
    background: var(--secondary-dark) !important;
}

.mobile-menu-logout {
    color: var(--danger) !important;
}

/* ===== SIDEBAR AUTH SECTION ===== */
.sidebar-menu .menu-item a .user-role-badge {
    font-size: 0.65rem;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
}

.sidebar-menu .menu-item a .user-email-small {
    font-size: 0.65rem;
    color: var(--text-gray);
    display: block;
    margin-top: 2px;
}

/* ===== CHANGE PASSWORD MODAL ===== */
#changePasswordModal .modal-content {
    max-width: 450px;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media screen and (max-width: 768px) {
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Hide auth buttons in header on mobile */
    .header-actions .auth-buttons {
        display: none !important;
    }
    
    /* Hide logout button in header on mobile */
    .header-actions .btn-logout {
        display: none !important;
    }
    
    /* Hide user info name in header on mobile (keep avatar) */
    .header-actions .user-info .name {
        display: none !important;
    }
    
    .header-actions .user-info .role-label {
        display: none !important;
    }
    
    /* Keep avatar visible */
    .header-actions .user-info {
        display: flex !important;
    }
    
    .header-actions .user-info .avatar {
        width: 32px;
        height: 32px;
        border-radius: var(--radius-full);
        background: var(--secondary);
        color: var(--primary-dark);
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-weight: var(--font-weight-bold);
        font-size: 0.9rem;
    }
}

/* ===== SMALL SCREEN SIDEBAR AUTH ===== */
@media screen and (max-width: 480px) {
    .sidebar {
        width: 260px;
    }
    
    .sidebar-menu .menu-item a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }
    
    .sidebar-menu .menu-label {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.6rem;
    }
    
    /* Make auth section prominent on small screens */
    .sidebar-menu .menu-item:last-child a {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: var(--spacing-md);
        margin-top: var(--spacing-sm);
    }
    
    /* Mobile menu auth buttons full width */
    .mobile-menu-register {
        margin: var(--spacing-sm) var(--spacing-md);
    }
}

/* ===== RESPONSIVE - Show hamburger on mobile ===== */
@media screen and (max-width: 992px) {
    .top-nav {
        display: none;
    }
}

/* ===== RESPONSIVE FOR VERY SMALL SCREENS ===== */
@media screen and (max-width: 480px) {
    .menu-toggle-right {
        font-size: 1.2rem;
        padding: var(--spacing-xs);
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        padding: var(--spacing-xs);
    }
    
    .header {
        padding: 0 var(--spacing-md);
    }
    
    .header-public .header-title {
        font-size: 0.7rem;
    }
    
    .header-public .header-logo {
        height: 28px;
        width: 28px;
    }
    
    .header-logo {
        height: 32px;
        width: 32px;
    }
    
    .header-title {
        font-size: 0.8rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .mobile-menu {
        width: 260px;
        right: -280px;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-logo {
        height: 80px;
        width: 80px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-stats div {
        padding: var(--spacing-sm);
    }
    
    .section-stats .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-stats .stat-number {
        font-size: 1.8rem;
    }
}

/* ===== DASHBOARD HEADER MOBILE ===== */
@media screen and (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .dashboard-header h1 {
        font-size: 1.4rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .dashboard-stats .stat-card {
        padding: var(--spacing-md);
    }
    
    .dashboard-stats .stat-number {
        font-size: 1.8rem;
    }
}

/* ===== FOOTER MOBILE ===== */
@media screen and (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    }
    
    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}