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

:root {
    /* GIHN BRAND COLORS */
    --brand-bg: #0F111A;
    /* Dark Navy/Black */
    --brand-primary: #D4145A;
    /* Pink/Red */
    --brand-secondary: #481667;
    /* Deep Violet */
    --brand-gold: #FBB03B;
    /* Gold */
    --text-light: #EAEAEA;
    /* Light Text */

    /* SYSTEM MAPPINGS */
    --bg-primary: var(--brand-bg);
    --bg-secondary: #1a1c29;
    /* Slightly lighter than brand-bg for cards */
    --bg-glass: rgba(20, 22, 35, 0.7);
    --text-main: var(--text-light);
    --text-muted: #a0a0b0;

    --accent: var(--brand-primary);
    --accent-hover: #b00f48;
    --accent-glow: rgba(212, 20, 90, 0.5);

    --danger: #ed4245;
    --danger-glow: rgba(237, 66, 69, 0.4);
    --success: #3ba55c;
    --success-glow: rgba(59, 165, 92, 0.4);
    --warning: var(--brand-gold);
    --warning-glow: rgba(251, 176, 59, 0.4);
    --info: #00b0f4;

    --border: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(251, 176, 59, 0.5);

    --card-bg: rgba(72, 22, 103, 0.3);
    /* Purple tint for cards */

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);

    --gradient-1: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    --gradient-2: linear-gradient(135deg, #43b581, #2ecc71);
    --gradient-3: linear-gradient(135deg, #f04747, #e74c3c);
    --gradient-gold: linear-gradient(135deg, var(--brand-gold), #d48806);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-main);
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(212, 20, 90, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(72, 22, 103, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(251, 176, 59, 0.05) 0%, transparent 50%);
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ==================== LAYOUT (SIDEBAR + MAIN) ==================== */
.layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

.sidebar {
    width: 265px;
    min-width: 265px;
    height: 100vh;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.sidebar .brand .bot-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar .brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    flex: 1;
}

.sidebar nav > div {
    overflow-x: hidden !important;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    text-align: left;
    width: calc(100% - 4px);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-item:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.25);
    color: var(--text-main);
    transform: translateX(3px);
}

.sidebar .nav-item.active {
    background: rgba(251, 176, 59, 0.1);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(251, 176, 59, 0.1), inset 0 0 0 1px rgba(251, 176, 59, 0.1);
}

.sidebar .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--brand-gold);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--brand-gold);
}

.sidebar .nav-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-item.nav-danger {
    color: var(--danger);
}

.sidebar .nav-item.nav-danger:hover {
    background: rgba(237, 66, 69, 0.12);
    border-color: rgba(237, 66, 69, 0.3);
    color: #ff6b6b;
}

.sidebar .nav-item.nav-danger.active {
    background: rgba(237, 66, 69, 0.18);
    border-color: rgba(237, 66, 69, 0.4);
    box-shadow: 0 0 12px rgba(237, 66, 69, 0.15);
}

.sidebar .nav-item.logout {
    margin-top: auto;
    color: var(--danger);
    background: transparent;
    border-color: transparent;
}

.sidebar .nav-item.logout:hover {
    background: rgba(237, 66, 69, 0.1);
    border-color: rgba(237, 66, 69, 0.2);
}

.layout>main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(10px);
    min-height: 60px;
    flex-shrink: 0;
}

.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

#page-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -265px;
        top: 0;
        z-index: 90;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .layout>main {
        width: 100%;
    }

    #page-content {
        padding: 16px;
    }
}

/* ==================== PREMIUM UI COMPONENTS (CARDS, FORMS, TABLES) ==================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 20, 90, 0.3);
}
.card:hover::before {
    opacity: 1;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title .icon {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 8px;
    color: var(--brand-primary);
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control, select, input, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus, select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(212, 20, 90, 0.15);
    background: rgba(0, 0, 0, 0.4);
}
select option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 20, 90, 0.3);
}
.btn-primary:hover {
    background: #e61962;
    box-shadow: 0 6px 20px rgba(212, 20, 90, 0.5);
}
.btn-danger {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
    border-color: rgba(237, 66, 69, 0.3);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
}
.btn-success {
    background: rgba(83, 252, 24, 0.1);
    color: var(--success);
    border-color: rgba(83, 252, 24, 0.3);
}
.btn-success:hover {
    background: var(--success);
    color: black;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(212, 20, 90, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.stat-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-info .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge-success { background: rgba(83, 252, 24, 0.15); color: var(--success); border-color: rgba(83, 252, 24, 0.3); }
.badge-danger { background: rgba(237, 66, 69, 0.15); color: var(--danger); border-color: rgba(237, 66, 69, 0.3); }
.badge-warning { background: rgba(251, 176, 59, 0.15); color: var(--brand-gold); border-color: rgba(251, 176, 59, 0.3); }
.badge-info { background: rgba(72, 22, 103, 0.2); color: #cba6f7; border-color: rgba(72, 22, 103, 0.4); }

/* TABLES */
.table-responsive { overflow-x: auto; margin-bottom: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); background: var(--bg-secondary); }
.table, table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.table thead th, table thead th {
    padding: 18px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}
.table tbody tr, table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.table tbody tr:hover, table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.table tbody td, table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    color: var(--text-secondary);
}
.table tbody tr:last-child { border-bottom: none; }

/* ==================== NAVIGATION DANGER ==================== */
.sidebar .nav-item.nav-danger {
    color: var(--danger);
}

.sidebar .nav-item.nav-danger:hover {
    background: rgba(237, 66, 69, 0.1);
    color: #ff5555;
}

.sidebar .nav-item.nav-danger.active {
    background: rgba(237, 66, 69, 0.15);
    color: var(--danger);
}

/* ==================== PAGE HEADER ==================== */
.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(237, 66, 69, 0.12);
    color: var(--danger);
    border: 1px solid rgba(237, 66, 69, 0.25);
}

/* ==================== ANIMATIONS ==================== */
.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== LOGIN ==================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.login-box {
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 48px;
    width: 420px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
}

.login-box h1 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.login-box .bot-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 40px var(--accent-glow);
}

/* ==================== FORM ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--brand-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
}

.btn-success {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 16px var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--success-glow);
}

.btn-danger {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--danger-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}


/* ==================== LANDING PAGE STYLES ==================== */
/* ==================== PREMIUM LANDING PAGE ==================== */
.landing-page {
    min-height: 100vh;
    background: var(--brand-bg);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

/* Particles */
.landing-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -60px) scale(1.2);
    }

    50% {
        transform: translate(-20px, -120px) scale(0.8);
    }

    75% {
        transform: translate(40px, -60px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Navbar */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.landing-brand-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 20, 90, 0.5);
    box-shadow: 0 0 15px rgba(212, 20, 90, 0.3);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.landing-nav-link:hover {
    color: var(--text-main);
}

.landing-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.landing-nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 20, 90, 0.15) 0%, rgba(72, 22, 103, 0.1) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Circular Logo with Animated Ring */
.hero-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.hero-logo-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg,
            var(--brand-primary),
            var(--brand-gold),
            var(--brand-secondary),
            var(--brand-primary));
    animation: ringRotate 4s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(212, 20, 90, 0.3), 0 0 80px rgba(72, 22, 103, 0.2);
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-logo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-bg);
    animation: none;
    /* Override the old float */
}

.hero-logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(212, 20, 90, 0.2);
    animation: logoPulse 3s ease-out infinite;
    pointer-events: none;
}

@keyframes logoPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Hero Title */
.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* Trust Badges */
.hero-trust-badges {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.trust-icon {
    font-size: 16px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.8;
    }
}

/* Sections */
.landing-section {
    padding: 100px 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 20, 90, 0.1);
    border: 1px solid rgba(212, 20, 90, 0.2);
    border-radius: 50px;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.section-title span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Premium Features Grid */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card-premium {
    position: relative;
    background: rgba(20, 22, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: default;
}

.feature-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 0%, var(--accent-color, var(--brand-primary)), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color, var(--brand-primary));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.feature-card-premium:hover .feature-card-glow {
    opacity: 0.08;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card-premium:hover .feature-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.feature-card-premium h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card-premium p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Stats Section */
.landing-stats-section {
    background: rgba(20, 22, 35, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.landing-stat {
    text-align: center;
    padding: 20px;
}

.landing-stat-number {
    font-size: 44px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.landing-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* CTA Section */
.landing-cta-section {
    text-align: center;
    padding: 120px 20px;
}

.cta-title {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.cta-title span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    background: rgba(10, 12, 20, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card-premium.reveal:nth-child(1) {
    transition-delay: 0.0s;
}

.feature-card-premium.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card-premium.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-card-premium.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.feature-card-premium.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.feature-card-premium.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* Button styles (override) */
.btn-glow {
    position: relative;
    background: var(--brand-gold);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(251, 176, 59, 0.4);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(251, 176, 59, 0.6);
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Float Animation (kept for backwards compat) */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-navbar {
        padding: 16px 20px;
    }

    .landing-nav-links {
        gap: 8px;
    }

    .landing-nav-link {
        display: none;
    }

    .landing-nav-links .btn-outline {
        display: none; /* Hide feedback and login outline buttons to save space */
    }

    .landing-nav-links #lp-login {
        display: inline-flex; /* Show login explicitly if needed, but we can rely on main CTA */
        padding: 8px 12px;
        font-size: 13px;
    }

    .landing-nav-links #lp-add {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .features-grid-premium {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-row {
        gap: 30px;
        flex-direction: column;
    }

    .landing-stat {
        padding: 10px;
    }

    .landing-stat-divider {
        display: none;
    }

    .landing-stat-number {
        font-size: 32px;
    }

    .cta-title {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.nav-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

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

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.sidebar-footer .username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-footer .logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-footer .logout-btn:hover {
    color: var(--danger);
    background: var(--danger-glow);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    font-size: 20px;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

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

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

.stat-card .stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ==================== TABLE ==================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.badge-info {
    background: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ==================== ALERT ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: var(--danger-glow);
    border: 1px solid rgba(240, 71, 71, 0.3);
    color: var(--danger);
}

.alert-success {
    background: var(--success-glow);
    border: 1px solid rgba(67, 181, 129, 0.3);
    color: var(--success);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    width: 440px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
}

.modal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ==================== ROLE COLOR DOT ==================== */
.role-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

/* ==================== RESPONSIVE ==================== */
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 90;
        width: 260px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .sidebar-header h2,
    .nav-item span,
    .sidebar-footer .username,
    .sidebar-header .bot-status {
        display: block;
        /* Show elements in mobile sidebar */
    }

    .nav-item {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .nav-item .icon {
        margin: 0;
        text-align: center;
        width: 24px;
    }

    .main-content {
        padding: 20px;
        padding-top: 70px;
        /* Space for mobile menu btn */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        width: 100%;
        margin: 20px;
    }

    .modal {
        width: 100%;
        margin: 20px;
    }
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: none;
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px 0;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.tab-btn {
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.tab-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 -2px 8px var(--accent-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }

    .sidebar-header h2,
    .nav-item span,
    .sidebar-footer .username,
    .sidebar-header .bot-status {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .nav-item .icon {
        margin: 0;
    }

    .main-content {
        padding: 20px;
    }

    /* ==================== TABS ==================== */
    .tabs {
        display: flex;
        gap: 16px;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 24px;
        overflow-x: auto;
        /* Enable scroll on mobile */
        white-space: nowrap;
    }

    /* ... (existing tab styles are fine, but I'll leave them alone as I'm targeting after line 758 originally, wait I need to be careful) */

    /* ... Wait, I appended tabs after line 755 earlier. So the file now ends with tabs styles.  */
    /* I should read the file again to be safe and target the end correctly. */
    /* Actually, I know the exact content I added. */

    /* Let's restart the thought process. */
    /* The previous tool call appended tabs css to the end. So the media query I want to replace is now buried above the tabs css. */
    /* Wait, I replaced lines 755-758 with: */
    /*
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

\/* ==================== TABS ==================== *\/
...
*/

    /* So the media query block ENDED at line 758 (in original file), but I kept the closing brace `}`. */
    /* The media query started at line 729: `@media (max-width: 768px) {` */
    /* So I need to find where that block is now. */
    /* It should be before the tabs CSS. */

    /* I'll use `read_file` to locate it precisely. */


    /* ==================== TABS ==================== */
    .tabs {
        display: flex;
        gap: 16px;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 24px;
    }

    .tab-btn {
        padding: 12px 20px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        position: relative;
        transition: var(--transition);
    }

    .tab-btn:hover {
        color: var(--text-primary);
    }

    .tab-btn.active {
        color: var(--accent);
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent);
        box-shadow: 0 -2px 8px var(--accent-glow);
    }

    .tab-content {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .tab-content.active {
        display: block;
    }

}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ==================== SPINNER ==================== */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

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

/* ==================== LANGUAGE DROPDOWN ==================== */
.lang-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 6px 0;
    margin-top: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(88, 101, 242, 0.15);
}

/* ==================== TABS (Settings Page) ==================== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
    color: var(--text-main);
}

.tab-btn.active {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s cubic-bezier(.4, 0, .2, 1);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-header .close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
}

.modal-header .close-modal:hover {
    background: rgba(237, 66, 69, 0.15);
    border-color: rgba(237, 66, 69, 0.3);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-body .form-grid .form-group {
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== SIDEBAR FOOTER ==================== */
.sidebar-footer {
    padding: 12px 12px 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.sidebar-footer .invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.sidebar-footer .invite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45);
    filter: brightness(1.1);
}

.sidebar-footer .invite-btn:active {
    transform: translateY(0);
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    background: var(--bg-main);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.login-box {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl, 0 8px 32px rgba(0, 0, 0, 0.4));
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

/* ==================== SELECT OPTION STYLING ==================== */
select[multiple] option:checked,
#mm-users option:checked,
#rm-users option:checked {
    background-color: var(--brand-gold) !important;
    background: linear-gradient(0deg, var(--brand-gold), var(--brand-gold)) !important;
    color: #000 !important;
    font-weight: 700;
}

#mm-users option:hover,
#rm-users option:hover {
    background: rgba(255, 255, 255, 0.1);
}