/* --- 0. GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

/* --- 1. CORE VARIABLES --- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;

    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --radius: 20px;

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn,
#mobileMenuBtn {
    display: none;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card, white);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

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

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    color: var(--text-main, #1e293b);
}

.mobile-drawer-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.mobile-drawer-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* Dark Mode Variables - Professional Slate Palette */
[data-theme="dark"] {
    /* Core Colors */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    
    /* Brand Colors (adjusted for dark) */
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --secondary: #f472b6;
    --accent: #22d3ee;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --dark: #f1f5f9;
    --light: #0f172a;
    
    /* Glass & Effects */
    --glass: rgba(30, 41, 59, 0.9);
    --glass-border: 1px solid var(--border);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(129, 140, 248, 0.4);
    --glow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Mode - Body & Base */
[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-main);
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    background-attachment: fixed;
    animation: backgroundShift 20s ease infinite;
}

/* Dark Mode - Cards */
[data-theme="dark"] .glass-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: var(--glow-card);
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Dark Mode - Task Cards in Feed */
[data-theme="dark"] .task-card {
    background: #1e293b !important;
    border: none !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .task-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .task-card h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card p {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .card-header {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .card-header .user-info {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .card-header .user-info div {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .badge {
    background: #334155 !important;
    color: #f8fafc !important;
    border: 1px solid #475569 !important;
}

[data-theme="dark"] .task-card .price {
    color: #818cf8 !important;
}

[data-theme="dark"] .task-card .user-info {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .user-info .user-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .task-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .task-desc {
    color: #f8fafc !important;
}

[data-theme="dark"] .task-card .task-footer {
    border-top: 1px solid #334155 !important;
}

[data-theme="dark"] .task-card .task-category-badge {
    background: #334155 !important;
    color: #f8fafc !important;
}

.task-card-active {
    border: 1px solid var(--primary) !important;
}

[data-theme="dark"] .task-card-active {
    border: 1px solid var(--primary) !important;
    background: #1e293b !important;
}

/* Dark Mode - Tab Buttons */
[data-theme="dark"] .tab-btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .tab-btn:hover {
    background: #334155 !important;
}

[data-theme="dark"] .tab-btn.active {
    background: var(--primary) !important;
    color: white !important;
}

/* Dark Mode - Navigation */
[data-theme="dark"] nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] nav:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .logo-text {
    color: var(--text-main);
}

[data-theme="dark"] .logo-gradient {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode - Form Elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #334155;
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background: #334155;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.3), var(--glow-primary);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

/* Dark Mode - Buttons */
[data-theme="dark"] .btn-primary {
    box-shadow: var(--glow-primary);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.6);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .btn-secondary:hover {
    background: #334155;
    border-color: #475569;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark Mode - Modals */
[data-theme="dark"] .modal-overlay {
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* Dark Mode - Dropdowns */
[data-theme="dark"] .notif-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .notif-header {
    background: #0f172a;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .notif-item {
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .notif-item:hover {
    background: #0f172a;
}

/* Dark Mode - Admin Panel */
[data-theme="dark"] .admin-container {
    background: var(--bg-body);
    color: var(--text-main);
}

[data-theme="dark"] .admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .admin-table {
    color: var(--text-main);
}

[data-theme="dark"] .admin-table th {
    background: #0f172a;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .admin-table td {
    border-bottom: 1px solid var(--border);
}

/* Dark Mode - Badges */
[data-theme="dark"] .badge {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Dark Mode - Filter Bar */
[data-theme="dark"] .filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* Dark Mode - Tabs */
[data-theme="dark"] .tab-btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

[data-theme="dark"] .tab-btn:hover {
    background: #334155;
}

[data-theme="dark"] .tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Dark Mode - Hero */
[data-theme="dark"] .hero-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
}

[data-theme="dark"] .hero-desc {
    color: var(--text-muted);
}

/* Dark Mode - Stats */
[data-theme="dark"] .stat-num {
    color: var(--text-main);
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted);
}

/* Custom Language Switcher */
.lang-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark, #1e293b);
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.lang-switcher-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.lang-switcher-btn i:first-child {
    font-size: 1rem;
    opacity: 0.8;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px;
    display: none;
    z-index: 2000;
    animation: slideDown 0.2s ease;
}

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

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

.lang-option {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--dark, #1e293b);
    font-weight: 500;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Dark Mode - Language Switcher */
[data-theme="dark"] .lang-switcher-btn {
    color: var(--text-main);
}

[data-theme="dark"] .lang-switcher-btn:hover {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
}

[data-theme="dark"] .lang-dropdown {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .lang-option {
    color: var(--text-main);
}

[data-theme="dark"] .lang-option:hover {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
}

/* Mobile Language Options */
.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.mobile-lang-btn {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    background: var(--bg-card, white);
    color: var(--text-main, #1e293b);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.mobile-lang-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .mobile-lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .mobile-lang-btn:hover {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    animation: backgroundShift 20s ease infinite;
}

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

/* --- COMPONENTS --- */
.btn {
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-family: var(--font-head);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn:active {
    transform: scale(0.95);
}

.btn:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.7);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 50px -10px rgba(0, 0, 0, 0.12);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: #1e293b;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2), 0 0 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

/* Dark mode inputs */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background: #334155;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.3), 0 0 20px rgba(129, 140, 248, 0.2);
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 25px;
}

/* --- NAV --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    height: 70px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Navbar Groups */
.nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    color: var(--dark);
}

.logo-gradient {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 0.9rem;
}

.level-badge {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

/* --- PAGES --- */
.page {
    display: none;
    padding-top: 110px;
    padding-bottom: 60px;
    animation: fadeIn 0.5s ease;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.page.active {
    display: block;
}

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

/* Global fade-in for page content */
.page.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Smooth transitions for all interactive elements */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hero */
.hero-container {
    text-align: center;
    margin-top: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid white;
}

/* Typography - Premium Polish */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

body, p, span, div {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.brand-logo, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto 60px auto;
    width: 100%;
    max-width: 600px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--dark);
}

.stat-label {
    color: #64748b;
}

/* Feed */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

[data-theme="dark"] .search-bar i {
    color: #94a3b8;
}

.search-bar input {
    padding-left: 45px;
}

[data-theme="dark"] .search-bar input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .search-bar input::placeholder {
    color: #94a3b8 !important;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 50px;
    background: white;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-btn.active {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .feed-tab.active {
    background: var(--primary) !important;
    color: white !important;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Filter Bar */
.filter-bar {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .filter-bar {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

.filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9rem;
    color: #1e293b;
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .filter-select option,
[data-theme="dark"] .filter-input::placeholder {
    background: #0f172a;
    color: #f8fafc;
}

.filter-input {
    max-width: 150px;
}

.task-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.task-card:nth-child(1) { animation-delay: 0.1s; }
.task-card:nth-child(2) { animation-delay: 0.2s; }
.task-card:nth-child(3) { animation-delay: 0.3s; }
.task-card:nth-child(4) { animation-delay: 0.4s; }
.task-card:nth-child(5) { animation-delay: 0.5s; }
.task-card:nth-child(n+6) { animation-delay: 0.6s; }

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

/* Favorite Button - Absolute Positioned */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.favorite-btn:active {
    transform: scale(1.05);
}

/* Active favorite state */
.favorite-btn[data-saved="true"] {
    color: #ef4444;
    animation: pulseHeart 0.6s ease;
}

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

[data-theme="dark"] .favorite-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

[data-theme="dark"] .favorite-btn[data-saved="true"] {
    color: #ef4444;
    background: rgba(30, 41, 59, 0.95);
}

.task-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .task-card:hover {
    box-shadow: 0 12px 40px rgba(129, 140, 248, 0.3), var(--glow-primary);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 50px; /* Space for heart button */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.bg-dev {
    background: #dbeafe;
    color: #1e40af;
}

.bg-design {
    background: #fce7f3;
    color: #9d174d;
}

.bg-text {
    background: #f3f4f6;
    color: #374151;
}

.bg-study {
    background: #dcfce7;
    color: #166534;
}

.price {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Profile */
.profile-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
}

.profile-header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 3rem;
    margin: -55px auto 15px;
    border: 5px solid white;
    position: relative;
    z-index: 2;
}

.avatar {
    background: linear-gradient(to bottom right, #cbd5e1, #94a3b8);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    border-radius: 50%;
}

.avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

#profileRoleBadge {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 30px 30px;
}

.stat-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
}

.stat-box .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.section-title {
    text-align: left;
    padding: 0 30px;
    margin-bottom: 15px;
    font-family: var(--font-head);
}

.profile-content-grid {
    padding: 0 30px 30px;
    display: grid;
    gap: 15px;
    text-align: left;
}

/* XP Bar */
.xp-bar-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.xp-bar-fill {
    background: var(--success);
    height: 100%;
    width: 0%;
    transition: 1s;
}

/* Chat */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header {
    background: var(--dark);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.msg-in {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.msg-out {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 5000;
    display: none;                /* скрыто по умолчанию */
    justify-content: center;      /* центр по горизонтали */
    align-items: center;          /* центр по вертикали */
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;                /* при активации — flex-контейнер */
    opacity: 1;
}

.modal-box {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 30px;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    color: var(--text-main, #1e293b);
}

[data-theme="dark"] .modal-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

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

/* Wallet */
.wallet-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.wallet-amount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-head);
}

.topup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Auth */
.auth-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.auth-link {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Toast Notifications */
#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#toast.show {
    opacity: 1;
    transform: translateX(0);
}

#toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

#toast span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Toast Types */
.toast-success {
    background: rgba(16, 185, 129, 0.95) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3) !important;
}

.toast-error {
    background: rgba(239, 68, 68, 0.95) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3) !important;
}

.toast-info {
    background: rgba(59, 130, 246, 0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3) !important;
}

/* Mobile Toast */
@media (max-width: 768px) {
    #toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(100px);
    }
    
    #toast.show {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
    }
    to {
        transform: translateY(0);
    }
}

/* --- NOTIFICATIONS --- */
.notif-dropdown {
    position: fixed;
    top: 80px;
    right: 5%;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: slideUp 0.2s ease;
}

.notif-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.unread {
    background: #eff6ff;
}

.notif-icon {
    color: var(--primary);
    margin-top: 2px;
}

/* --- STAR RATING --- */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
}

.star-rating i {
    transition: var(--transition-fast);
}

.star-rating i.active {
    color: #f59e0b;
    transform: scale(1.1);
}

.star-rating i:hover {
    color: #fbbf24;
}

/* --- RESPONSIVE --- */
/* Custom Toggle Switch (iOS Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

[data-theme="dark"] .slider {
    background-color: #475569;
}

[data-theme="dark"] input:checked + .slider {
    background-color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

[data-theme="dark"] * {
    scrollbar-color: #475569 transparent;
}

/* Create Page - Premium Design */
#create {
    animation: slideUp 0.4s ease;
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .form-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.form-card h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .form-card h2 {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark, #1e293b);
    margin-bottom: 8px;
}

[data-theme="dark"] .form-group label {
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #0f172a;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: #334155;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.toggle-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.form-card .btn-primary.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.form-card .btn-primary.btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

@media (max-width: 768px) {
    /* Mobile Container - Full Width */
    .page {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-card {
        padding: 24px 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Ensure no fixed widths on mobile */
    input, select, textarea, .form-group input, .form-group select, .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile Navbar with Hamburger Menu */
    nav {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        top: 10px;
        left: 0;
        transform: none;
        height: auto;
        min-height: 60px;
        flex-wrap: nowrap;
        border-radius: 16px;
    }

    .nav-left {
        flex: 0 0 auto;
    }

    .nav-center {
        display: none;
    }

    .nav-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark);
        cursor: pointer;
        padding: 8px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    [data-theme="dark"] .mobile-menu-btn {
        color: var(--text-main);
    }

    /* Hide desktop language switcher on mobile */
    .lang-switcher-wrapper#langSwitcherDesktop {
        display: none !important;
    }

    /* Hide navUser/navGuest buttons on mobile (they're in drawer) */
    #navUser,
    #navGuest {
        display: none !important;
    }

    /* Hide hamburger on desktop */
    @media (min-width: 769px) {
        .mobile-menu-btn {
            display: none !important;
        }
    }

    /* Typography - Prevent Overflow */
    h1, .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        line-height: 1.2;
        word-wrap: break-word;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 44px;
    }

    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

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

    .modal-box {
        max-width: 95%;
        padding: 22px;
        border-radius: 20px;
    }

    /* Feed Grid - 1 column on mobile */
    .feed-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
    }

    /* Stats Grid - 1 column on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* All grids to 1 column */
    .profile-stats,
    .topup-grid,
    .admin-stats-grid,
    .admin-grid-2,
    .admin-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .feed-header {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-header .search-bar {
        max-width: 100%;
    }

    .feed-header button {
        width: 100%;
        min-height: 44px;
    }

    /* Filter Bar */
    .filter-bar {
        width: 100%;
        margin-top: 15px;
    }

    .filter-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-select,
    .filter-input {
        width: 100%;
        min-height: 44px;
        padding: 12px;
    }

    /* Profile */
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-content-grid {
        padding: 0 15px 30px;
    }

    /* Buttons - ensure touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .btn-sm {
        min-height: 44px;
        padding: 10px 16px;
    }

    /* Form inputs - touch targets */
    input,
    select,
    textarea {
        min-height: 44px;
        padding: 12px 16px;
    }

    /* Admin Panel Mobile */
    .admin-container {
        width: 95% !important;
        top: 80px !important;
        bottom: 20px !important;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .admin-grid-2,
    .admin-grid-4 {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .admin-tab {
        min-width: 120px;
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-search,
    .admin-select {
        width: 100%;
        min-height: 44px;
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 800px;
    }
}

/* ==================== ADMIN DASHBOARD ==================== */

.admin-page {
    background: transparent;
    min-height: 100vh;
    padding: 0;
    display: none !important;
}

.admin-page.active {
    display: block !important;
}

.admin-page:not(.active) {
    pointer-events: none !important;
}

.admin-page:not(.active) .admin-container {
    display: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.admin-container {
    position: fixed !important;
    top: 100px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.95);
    overflow: hidden;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin inner scrollable wrapper */
.admin-scroll-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.admin-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.admin-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.admin-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.admin-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Admin Header - Fixed at top of container */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: white;
}

.admin-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 30px;
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Admin Button */
.btn-admin {
    background: linear-gradient(135deg, var(--danger), #991b1b);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-admin:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
}

.btn-admin-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-admin-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 20px;
    min-height: 120px !important;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-users .stat-icon {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

.stat-revenue .stat-icon {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.stat-orders .stat-icon {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.stat-disputes .stat-icon {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

/* Admin stat card content - scoped to avoid conflicts with home page */
.admin-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.admin-stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: white;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-stat-card .stat-trend {
    font-size: 0.75rem;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap;
}

.admin-stat-card .stat-trend.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.25);
}

.admin-stat-card .stat-trend.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.25);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Admin Content */
.admin-content {
    margin-top: 0;
}

.admin-tab-content {
    display: none;
}

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

/* Admin Cards */
.admin-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-card-header h3 {
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-head);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-header h3 i {
    color: var(--primary);
}

.admin-link {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-card-body {
    padding: 20px 25px;
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-search {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.admin-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.admin-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.admin-select option {
    background: #1e293b;
    color: white;
}

.admin-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    resize: vertical;
}

.admin-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tr.row-banned {
    background: rgba(239, 68, 68, 0.1);
}

.admin-table tr.row-urgent {
    background: rgba(245, 158, 11, 0.1);
}

/* Admin Badges */
.admin-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge.role-client {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.admin-badge.role-freelancer {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.admin-badge.banned {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.admin-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.admin-badge.verified {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    margin-left: 4px;
}

.admin-badge.type-job {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.admin-badge.type-gig {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.admin-badge.status-open {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.admin-badge.status-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.admin-badge.status-review {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.admin-badge.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.admin-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.admin-badge.dispute-open {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.admin-badge.dispute-review {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.admin-badge.dispute-resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.admin-badge.dispute-rejected {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.admin-badge.trans-topup {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.admin-badge.trans-pay {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.admin-badge.trans-earn {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.admin-badge.trans-withdraw {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.admin-badge.trans-refund {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.admin-badge.trans-pro {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

/* User Cell */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.admin-user-name {
    font-weight: 600;
    color: white;
}

.admin-user-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.pro-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 6px;
}

/* Post Cell */
.admin-post-title {
    font-weight: 600;
    color: white;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-post-cat {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Action Buttons */
.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.btn-action.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

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

.btn-action.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

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

.btn-action.btn-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.btn-action.btn-info:hover {
    background: var(--accent);
    color: white;
}

.btn-action.btn-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

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

.btn-action.btn-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.btn-action.btn-primary:hover {
    background: var(--primary);
    color: white;
}

/* Admin Grid Layouts */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Mini Stats */
.admin-mini-stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mini-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mini-stat-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.mini-stat-icon.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.mini-stat-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.mini-stat-icon.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.mini-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: white;
}

.mini-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Admin List Items */
.admin-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-list-item:last-child {
    border-bottom: none;
}

.admin-list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.admin-list-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-list-icon.job {
    background: rgba(245, 158, 11, 0.2);
}

.admin-list-icon.gig {
    background: rgba(236, 72, 153, 0.2);
}

.admin-list-info {
    flex: 1;
}

.admin-list-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.admin-list-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.admin-list-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.admin-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-page-btn.active {
    background: var(--primary);
    color: white;
}

.admin-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-page-dots {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 8px;
}

/* Admin Loading & Empty */
.admin-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-loading i {
    margin-right: 10px;
}

.admin-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.admin-error {
    text-align: center;
    padding: 40px;
    color: #f87171;
}

/* Text Colors */
.text-green {
    color: var(--success) !important;
}

.text-red {
    color: var(--danger) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Admin Modal */
.admin-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-modal .modal-header h3 {
    color: white;
}

.admin-modal .modal-header h3 i {
    margin-right: 10px;
}

.admin-modal p {
    color: rgba(255, 255, 255, 0.6);
}

.admin-modal label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Dispute Detail Card */
.dispute-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.dispute-info-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.dispute-info-row:last-child {
    border-bottom: none;
}

.dispute-info-row strong {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    opacity: 0.7;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 200px;
    margin-bottom: 20px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-price {
    height: 28px;
    width: 100px;
    border-radius: 6px;
}

/* Admin Responsive */
@media (max-width: 1200px) {
    .admin-container {
        width: 92%;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Show mobile menu button on mobile */
    .mobile-menu-btn,
    #mobileMenuBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-main, #1e293b);
    }
    
    /* Hide desktop language switcher on mobile */
    .lang-switcher-wrapper#langSwitcherDesktop {
        display: none !important;
    }
    
    /* Hide text buttons on mobile, show only icons */
    nav #navUser > button:not(.mobile-menu-btn):not(#mobileMenuBtn),
    nav #navGuest > button {
        display: none !important;
    }
    
    /* Show only logo and hamburger on mobile */
    nav {
        padding: 0 16px;
    }
    
    nav .logo {
        font-size: 1.2rem;
    }
    
    /* Ensure navUser and navGuest containers are properly sized */
    #navUser, #navGuest {
        gap: 8px !important;
    }
    
    /* Mobile drawer styles */
    [data-theme="dark"] .mobile-drawer {
        background: var(--bg-card);
        border-right: 1px solid var(--border);
    }
    
    [data-theme="dark"] .mobile-drawer-item {
        color: var(--text-main);
    }
    
    [data-theme="dark"] .mobile-drawer-item:hover {
        background: rgba(129, 140, 248, 0.1);
    }
    
    .admin-container {
        width: 95% !important;
        left: 50%;
        top: 100px !important;
        bottom: 40px !important;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    
    .admin-scroll-wrapper {
        padding: 15px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .admin-stat-card {
        min-height: 120px !important;
        padding: 15px;
    }
    
    .admin-stat-card .stat-value {
        font-size: 1.3rem;
    }
    
    .admin-grid-2,
    .admin-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 0 0 calc(50% - 4px);
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .admin-filters {
        flex-wrap: wrap;
    }
    
    .admin-search {
        width: 100%;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 800px;
    }
}