@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'LyonArabicDisplayWeb';
    src: url('../assets/fonts/lyon-arabic-display.otf') format('opentype'),
         url('../assets/fonts/lyon-arabic-display.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LyonArabicDisplayWeb';
    src: url('../assets/fonts/lyon-arabic-display.otf') format('opentype'),
         url('../assets/fonts/lyon-arabic-display.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Root Variables - Updated to match new purple logo palette */
:root {
    /* Core brand colors (from new logo) */
    --primary-color: #a855ff;      /* main violet */
    --primary-dark: #7c2cff;       /* deeper violet */
    --primary-light: #c084ff;      /* soft light violet */

    /* Backgrounds */
    --secondary-color: #070016;
    --bg-dark: #050012;
    --bg-card: rgba(16, 1, 34, 0.6);
    --bg-card-solid: #100122;
    --bg-hover: rgba(26, 6, 51, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(168, 85, 255, 0.2);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;

    /* Borders and accents */
    --border-color: #2e1065;
    --success: #22c55e;
    --danger: #fb7185;
    --warning: #f973ff; /* pinkish accent used in gradients */
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(168, 85, 255, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    --font-body: 'Readex Pro', 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', sans-serif;
    --font-display: 'LyonArabicDisplayWeb', 'Readex Pro', 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', sans-serif;
}

.site-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
}
.site-notice-overlay.active { display: block; }
.site-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(168,85,255,0.18);
    width: 92%;
    max-width: 520px;
    z-index: 3001;
    opacity: 0;
    pointer-events: none;
}
.site-notice.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.2s ease;
}
.site-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}
.site-notice-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.site-notice-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.site-notice-body {
    padding: 1rem 1.2rem;
}
.site-notice-message {
    color: var(--text-secondary);
    font-size: 1rem;
}
.site-notice-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0 1.2rem 1.2rem 1.2rem;
    justify-content: flex-start;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 90%; /* تقليل حجم الخط الأساسي بنسبة 10% */
}

body {
    font-family: var(--font-body);
    font-weight: 500; /* IBM Plex Sans Arabic Medium لمعظم النصوص */
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
 * ACCESSIBILITY & CONTRAST IMPROVEMENTS
 * ============================================================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link (for accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: bold;
}

.skip-to-main:focus {
    top: 0;
}

/* Improve button contrast */
button,
.btn {
    min-height: 44px; /* WCAG recommended touch target size */
    font-size: 1rem;
}

/* Label and input pairing */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Improve link visibility */
a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-light);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.container {
    max-width: 1260px; /* 1400 * 0.9 */
    margin: 0 auto;
    padding: 0 18px; /* 20 * 0.9 */
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    will-change: opacity;
}

/* Stats Bar */
/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 3.5rem 0;
}

.stat-item {
    background: rgba(16, 1, 34, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(168, 85, 255, 0.2);
    background: rgba(16, 1, 34, 0.6);
}

.stat-item-button {
    background: linear-gradient(135deg, rgba(168, 85, 255, 0.1), rgba(168, 85, 255, 0.05));
    border: 2px dashed var(--glass-border);
    cursor: pointer;
}

.stat-item-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-style: solid;
    border-color: var(--primary-light);
    box-shadow: 0 8px 32px rgba(168, 85, 255, 0.4);
}

.stat-item-button .stat-value {
    font-size: 1.1rem;
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
}

.live-icon-pulse {
    position: relative;
}

.live-icon-pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ff4b4b;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); }
}

.stat-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 255, 0.1);
    border: 1px solid rgba(168, 85, 255, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 255, 0.4);
}

.stat-item-button .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-item-button:hover .stat-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Custom Search Select Dropdown */
.custom-search-select {
    position: relative;
    width: 100%;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.search-dropdown-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: rgba(168, 85, 255, 0.15);
    color: var(--primary-light);
}

.search-dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}

.leaflet-draw-toolbar a {
    background-color: var(--bg-card) !important;
    border-color: var(--glass-border) !important;
    color: #fff !important;
}

.leaflet-draw-actions li a {
    background-color: var(--primary-dark) !important;
    color: #fff !important;
}

/* Header Refinement */
.header {
    background: rgba(5, 0, 18, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 0, 18, 0.9);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    user-select: none;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(168, 85, 255, 0.4));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(168, 85, 255, 0.3);
}

.nav-link.active::after {
    display: none;
}

/* Main Content */
.main {
    padding: 2.7rem 0; /* 3rem * 0.9 */
    min-height: calc(100vh - 180px); /* 200px * 0.9 */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2.7rem 0; /* 3rem * 0.9 */
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-title {
    font-size: 3.15rem; /* 3.5rem * 0.9 */
    font-weight: 700; /* Bold من IBM Plex Sans Arabic */
    margin-bottom: 0.9rem; /* 1rem * 0.9 */
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-family: var(--font-display);
}

h1, h2, h3,
.support-modal-title,
.welcome-title,
.mode-title {
    font-family: var(--font-display);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.17rem; /* 1.3rem * 0.9 */
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Pinned Announcement */
.pinned-announcement {
    background: rgba(16, 1, 34, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.pinned-announcement:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(168, 85, 255, 0.2);
    background: rgba(16, 1, 34, 0.6);
}

.pinned-announcement-content {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: center;
}

/* Global Accessibility & Typography */
body {
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* Global Button Refinement */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 85, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Form Elements Consistency */
input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(168, 85, 255, 0.15);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

/* Notification Button Styles */
.notification-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 255, 0.2);
}

.btn-icon.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(168, 85, 255, 0.4);
}

.btn-icon.active::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .notification-control {
        margin-right: 0;
        margin-top: 10px;
        width: 100%;
    }
    .btn-icon {
        width: 100%;
        height: 48px;
    }
}

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

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

/* Grid/Layout Fixes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stat-item {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-hover);
}

.stat-item-button {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: none;
    color: white;
}

.stat-item-button:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 8px 24px rgba(168, 85, 255, 0.4);
}

.stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 255, 0.1);
    border-radius: 16px;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.stat-item-button .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.8rem; /* 2rem * 0.9 */
    margin: 1.8rem 0 2.7rem 0; /* 2rem * 0.9, 3rem * 0.9 */
    animation: fadeInUp 0.8s ease-out 0.8s both;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.8rem; /* 1rem * 0.8 */
    flex: 1;
}

.filter-tab {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.72rem 1.8rem; /* 0.8rem * 0.9, 2rem * 0.9 */
    border-radius: 10.8px; /* 12px * 0.9 */
    font-size: 0.9rem; /* 1rem * 0.9 */
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    font-family: 'Cairo', sans-serif;
    will-change: transform;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(168, 85, 255, 0.5);
}

/* Sort Dropdown */
.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.72rem; /* 0.8rem * 0.9 */
}

.sort-dropdown label {
    color: var(--text-secondary);
    font-size: 0.855rem; /* 0.95rem * 0.9 */
    font-weight: 600;
    white-space: nowrap;
}

.sort-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.63rem 1.08rem; /* 0.7rem * 0.9, 1.2rem * 0.9 */
    border-radius: 9px; /* 10px * 0.9 */
    font-size: 0.855rem; /* 0.95rem * 0.9 */
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
    min-width: 162px; /* 180px * 0.9 */
}

/* Make native dropdowns readable and theme-consistent (Windows browsers) */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 14px;
    padding-left: 2rem;
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #120427;
    color: #ffffff;
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 255, 0.25);
}

/* Category Dropdown */
.category-dropdown {
    display: flex;
    align-items: center;
    gap: 0.72rem; /* 0.8rem * 0.9 */
    position: relative;
    z-index: 50;
}

.category-dropdown label {
    color: var(--text-secondary);
    font-size: 0.855rem; /* 0.95rem * 0.9 */
    font-weight: 600;
    white-space: nowrap;
}

.custom-select-wrapper {
    position: relative;
    min-width: 180px; /* 200px * 0.9 */
    z-index: 50;
}

.custom-select-trigger {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.63rem 1.08rem; /* 0.7rem * 0.9, 1.2rem * 0.9 */
    border-radius: 9px; /* 10px * 0.9 */
    font-size: 0.855rem; /* 0.95rem * 0.9 */
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
}

.custom-select-trigger .arrow {
    font-size: 0.63rem; /* 0.7rem * 0.9 */
    transition: transform 0.3s ease;
}

.custom-select-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 255, 0.25);
}

.custom-select-trigger.active .arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 0.45rem); /* 0.5rem * 0.9 */
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 9px; /* 10px * 0.9 */
    max-height: 225px; /* 250px * 0.9 */
    overflow-y: auto;
    z-index: 51;
    box-shadow: 0 7.2px 18px rgba(0, 0, 0, 0.3); /* 8px * 0.9, 20px * 0.9 */
    /* Custom scrollbar styling for Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 255, 0.6) rgba(168, 85, 255, 0.1);
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari, Edge) */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(168, 85, 255, 0.1);
    border-radius: 10px;
    margin: 8px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 255, 0.3);
    transition: background 0.3s ease;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 0 8px rgba(168, 85, 255, 0.5);
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 0.63rem 0.9rem; /* 0.7rem * 0.9, 1rem * 0.9 */
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.855rem; /* 0.95rem * 0.9 */
    font-weight: 600;
    gap: 0.63rem; /* 0.7rem * 0.9 */
}

.custom-option:hover {
    background: rgba(168, 85, 255, 0.12);
}

.custom-option input[type="checkbox"] {
    width: 16.2px; /* 18px * 0.9 */
    height: 16.2px; /* 18px * 0.9 */
    cursor: pointer;
    accent-color: var(--primary-color);
}

.custom-option span {
    flex: 1;
}

/* Category Badge on Cards */
.streamer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem; /* 0.5rem * 0.9 */
    margin-bottom: 0.72rem; /* 0.8rem * 0.9 */
    align-items: center;
    min-height: 25.2px; /* 28px * 0.9 */
    flex-shrink: 0;
}

.category-badge {
    display: inline-block;
    padding: 0.27rem 0.72rem; /* 0.3rem * 0.9, 0.8rem * 0.9 */
    border-radius: 10.8px; /* 12px * 0.9 */
    font-size: 0.675rem; /* 0.75rem * 0.9 */
    font-weight: 600;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.4;
}

/* Streamers Grid */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.streamer-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.streamer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 255, 0.05) 100%);
    pointer-events: none;
}

.streamer-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-hover);
}

.streamer-card.live {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.15);
    background: rgba(16, 34, 16, 0.4); /* خلفية تميل للأخضر بشكل طفيف جداً */
}

.streamer-card.live::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: live-indicator-pulse 2s infinite;
    z-index: 2;
}

@keyframes live-indicator-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.streamer-card.live:hover {
    border-color: var(--success);
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.3);
    background: rgba(16, 34, 16, 0.6);
}

.streamer-card.offline {
    opacity: 0.75;
    filter: saturate(0.8);
    background: rgba(10, 10, 15, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.streamer-card.offline:hover {
    opacity: 0.9;
    filter: saturate(1);
    background: rgba(20, 20, 30, 0.6);
    border-color: var(--glass-border);
}

.streamer-card.offline .streamer-avatar {
    border-color: var(--text-secondary);
    filter: grayscale(0.4);
}

.streamer-card.offline .watch-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.streamer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

.streamer-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.streamer-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.streamer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    background: var(--bg-card-solid);
    transition: var(--transition);
}

.streamer-card.live .streamer-avatar {
    border-color: var(--success);
}

.streamer-card:hover .streamer-avatar {
    transform: scale(1.05);
}

.streamer-info {
    flex: 1;
    min-width: 0;
}

.streamer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streamer-channel {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.platform-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.platform-kick {
    background: rgba(83, 252, 24, 0.1);
    color: #53fc18;
}

.platform-twitch {
    background: rgba(168, 85, 255, 0.1);
    color: #a855ff;
}

.stream-title {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0.75rem 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-weight: 500;
}

.streamer-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.live-viewer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 113, 133, 0.1);
    color: var(--danger);
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.offline-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.watch-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.channel-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 255, 0.3);
}

.file-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.file-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.favorite {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 100;
    opacity: 0.7;
    visibility: visible !important;
    margin: 0;
    outline: none;
    pointer-events: auto;
    box-shadow: none !important;
}

.favorite svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.favorite:hover {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.favorite.active {
    color: #ffd700;
    opacity: 1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.favorite.active svg {
    fill: #ffd700;
    stroke: #ffd700;
}

.favorite.active:hover {
    transform: scale(1.2);
    opacity: 1;
}

.streamer-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem; /* 0.5rem * 0.9 */
    flex-wrap: wrap;
}

/* Modals */
.support-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.support-modal.active {
    display: flex;
}

.support-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-modal.active .support-modal-overlay {
    opacity: 1;
}

.support-modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.support-modal.active .support-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.support-modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.support-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.support-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(251, 113, 133, 0.5));
}

.support-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.support-modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.support-option:hover {
    background: rgba(168, 85, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(-8px);
}

.support-option-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.support-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sl-icon {
    font-size: 1.5rem;
}

.support-option-content {
    flex: 1;
}

.support-option-content h3 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.support-option-content p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.support-option-arrow {
    color: var(--primary-color);
    opacity: 0.5;
    transition: var(--transition);
}

.support-option:hover .support-option-arrow {
    opacity: 1;
    transform: translateX(-4px);
}

.support-modal-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Forms & Inputs */
.form-group label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
textarea,
select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 0.875rem 1.25rem !important;
    transition: var(--transition) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 255, 0.15) !important;
    outline: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.streamer-channel {
    color: var(--text-secondary);
    font-size: 0.765rem; /* 0.85rem * 0.9 */
}

.platform-badge {
    background: var(--bg-hover);
    padding: 0.18rem 0.54rem; /* 0.2rem * 0.9, 0.6rem * 0.9 */
    border-radius: 5.4px; /* 6px * 0.9 */
    font-size: 0.72rem; /* 0.8rem * 0.9 */
    color: var(--text-secondary);
    font-weight: 600;
}

/* Kick badge - Green */
.platform-badge.platform-kick {
    background: rgba(83, 255, 26, 0.1);
    color: #53ff1a;
    border: 1px solid rgba(83, 255, 26, 0.3);
}

/* Twitch badge - Purple */
.platform-badge.platform-twitch {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

.streamer-description {
    color: var(--text-secondary);
    font-size: 0.81rem; /* 0.9rem * 0.9 */
    line-height: 1.6;
    margin: 0 0 0.72rem 0; /* 0.8rem * 0.9 */
    flex-shrink: 0;
}

.stream-title {
    color: #ffffff;
    font-size: 0.81rem; /* 0.9rem * 0.9 */
    line-height: 1.5;
    margin: 0 0 0.72rem 0; /* 0.8rem * 0.9 */
    font-weight: 400;
    flex-shrink: 0;
}

.streamer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.72rem; /* 0.8rem * 0.9 */
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.viewer-count {
    color: var(--text-secondary);
    font-size: 0.81rem; /* 0.9rem * 0.9 */
    display: flex;
    align-items: center;
    gap: 0.45rem; /* 0.5rem * 0.9 */
}

.viewer-count.live {
    color: var(--success);
    font-weight: 600;
}

/* New Live/Viewer Badge Design */
.live-viewer-badge {
    background: rgba(20, 25, 35, 0.9);
    border-radius: 18px; /* 20px * 0.9 */
    padding: 0.36rem 0.72rem; /* 0.4rem * 0.9, 0.8rem * 0.9 */
    display: flex;
    align-items: center;
    gap: 0.54rem; /* 0.6rem * 0.9 */
    font-weight: 700;
    font-size: 0.765rem; /* 0.85rem * 0.9 */
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.36rem; /* 0.4rem * 0.9 */
    color: #ffffff;
    direction: ltr;
}

.live-dot {
    color: var(--success);
    font-size: 0.63rem; /* 0.7rem * 0.9 */
    line-height: 1;
}

.live-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.765rem; /* 0.85rem * 0.9 */
}

.viewer-separator {
    width: 1px;
    height: 14.4px; /* 16px * 0.9 */
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.viewer-info {
    display: flex;
    align-items: center;
    gap: 0.36rem; /* 0.4rem * 0.9 */
    color: #ffffff;
    direction: ltr;
}

.eye-icon {
    width: 14.4px; /* 16px * 0.9 */
    height: 14.4px; /* 16px * 0.9 */
    color: #ffffff;
    flex-shrink: 0;
}

.viewer-number {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.765rem; /* 0.85rem * 0.9 */
}

.offline-text {
    color: var(--text-secondary);
    font-size: 0.81rem; /* 0.9rem * 0.9 */
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    font-family: 'Cairo', sans-serif;
    will-change: transform;
    font-size: 0.9rem;
}

.watch-btn.channel-btn {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: #fff;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}
.watch-btn.channel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.45);
    opacity: 0.96;
}

.watch-btn.file-btn {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.watch-btn.file-btn:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}
.btn-text {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}
.btn-text-file {
    color: inherit;
}
.btn-text-link {
    color: #fff;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2.7rem; /* 3rem * 0.9 */
    animation: fadeIn 0.5s ease-out;
}

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

.spinner {
    width: 45px; /* 50px * 0.9 */
    height: 45px; /* 50px * 0.9 */
    border: 3.6px solid var(--border-color); /* 4px * 0.9 */
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.9rem; /* 1rem * 0.9 */
}

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

/* Pulse animation for admin login button */
.pulse-animation {
    animation: pulse-glow 1.5s ease-in-out infinite !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 255, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(168, 85, 255, 0);
        transform: scale(1.05);
    }
}

/* Logo click effect */
.logo:active {
    transform: scale(0.95);
}

/* Support Link */
.support-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.paypal-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
    will-change: transform;
}

.support-link:hover .paypal-icon {
    transform: scale(1.1) translateZ(0);
}

/* Support Modal */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.support-modal.active {
    display: flex;
}

.support-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.support-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14.4px; /* 16px * 0.9 */
    padding: 2.25rem; /* 2.5rem * 0.9 */
    max-width: 450px; /* 500px * 0.9 */
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 18px 54px rgba(88, 28, 135, 0.65); /* subtle violet glow */
    z-index: 10001;
    animation: slideUp 0.3s ease-out;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 255, 0.3) transparent;
}

.support-modal-content::-webkit-scrollbar {
    width: 8px;
}

.support-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.support-modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.support-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 255, 0.5);
}

.support-modal-close {
    position: absolute;
    top: 0.9rem; /* 1rem * 0.9 */
    left: 0.9rem; /* 1rem * 0.9 */
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem; /* 2rem * 0.9 */
    cursor: pointer;
    width: 36px; /* 40px * 0.9 */
    height: 36px; /* 40px * 0.9 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.support-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.support-modal-title {
    font-size: 1.575rem; /* 1.75rem * 0.9 */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem; /* 0.5rem * 0.9 */
    text-align: center;
}

.support-modal-subtitle {
    font-size: 0.9rem; /* 1rem * 0.9 */
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.8rem; /* 2rem * 0.9 */
}

/* Alert styles for modals */
.alert {
    padding: 0.9rem 1.35rem; /* 1rem * 0.9, 1.5rem * 0.9 */
    border-radius: 9px; /* 10px * 0.9 */
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
    font-size: 0.9rem; /* 1rem * 0.9 */
}

.alert.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
}

.alert.alert-error {
    background: rgba(251, 113, 133, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
}

.alert.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.alert.alert-info {
    background: rgba(168, 85, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Button Styles - Matching admin.css design */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(168, 85, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

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


.support-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 1rem * 0.8 */
}

.support-option {
    display: flex;
    align-items: center;
    gap: 0.9rem; /* 1rem * 0.9 */
    padding: 1.125rem; /* 1.25rem * 0.9 */
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 10.8px; /* 12px * 0.9 */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.support-option:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.support-option-icon {
    width: 45px; /* 50px * 0.9 */
    height: 45px; /* 50px * 0.9 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 10.8px; /* 12px * 0.9 */
    flex-shrink: 0;
}

.support-option-icon img {
    width: 27px; /* 30px * 0.9 */
    height: 27px; /* 30px * 0.9 */
    object-fit: contain;
}

.streamlabs-icon {
    font-size: 1.8rem; /* 2rem * 0.9 */
}

.dokan-icon {
    font-size: 1.8rem; /* 2rem * 0.9 */
}

.support-option-content {
    flex: 1;
}

.support-option-content h3 {
    font-size: 1.0125rem; /* 1.125rem * 0.9 */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.225rem; /* 0.25rem * 0.9 */
}

.support-option-content p {
    font-size: 0.7875rem; /* 0.875rem * 0.9 */
    color: var(--text-secondary);
    margin: 0;
}

.support-option:hover .support-option-content h3,
.support-option:hover .support-option-content p {
    color: var(--text-primary);
}

.support-option-arrow {
    font-size: 1.35rem; /* 1.5rem * 0.9 */
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.support-option:hover .support-option-arrow {
    color: var(--text-primary);
    transform: translateX(-5px);
}

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

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

/* Advertisement Modal */
.advertisement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.advertisement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.advertisement-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(168, 85, 255, 0.4);
    z-index: 10001;
    animation: slideUp 0.3s ease-out;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 255, 0.3) transparent;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.advertisement-modal-content::-webkit-scrollbar {
    width: 8px;
}

.advertisement-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.advertisement-modal-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.advertisement-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 255, 0.5);
}

.advertisement-modal-content::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg-card) 70%, transparent 100%);
    pointer-events: none;
    z-index: 10002;
    margin: -2rem -2rem 0 -2rem;
    padding: 0 2rem;
    border-radius: 16px 16px 0 0;
}

.advertisement-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10003;
    box-shadow: 0 0 20px rgba(168, 85, 255, 0.6), 0 0 40px rgba(168, 85, 255, 0.4);
}

.advertisement-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.advertisement-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.advertisement-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Image sizes */
.advertisement-image-small {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.advertisement-image-small img {
    max-height: 300px;
    height: auto;
    object-fit: contain;
}

.advertisement-image-medium {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.advertisement-image-medium img {
    max-height: 400px;
    height: auto;
    object-fit: contain;
}

.advertisement-image-large {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.advertisement-image-large img {
    max-height: 500px;
    height: auto;
    object-fit: contain;
}

.advertisement-image-full {
    width: 100%;
}

.advertisement-image-full img {
    max-height: 600px;
    height: auto;
    object-fit: contain;
}

.advertisement-body {
    text-align: center;
}

.advertisement-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.advertisement-text {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    white-space: pre-line;
    text-align: right;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 255, 0.3) transparent;
}

.advertisement-text::-webkit-scrollbar {
    width: 6px;
}

.advertisement-text::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.advertisement-text::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.advertisement-text::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 255, 0.5);
}

.advertisement-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.advertisement-link {
    display: block;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 255, 0.2);
}

.advertisement-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 255, 0.4);
    border-color: var(--primary-color);
}

.advertisement-link:active {
    transform: translateY(-1px);
}

/* Responsive Advertisement Modal */
@media (max-width: 768px) {
    .advertisement-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .advertisement-modal-content::before {
        height: 55px;
        margin: -1.5rem -1.5rem 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .advertisement-modal-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: var(--bg-card);
        border: 2px solid var(--primary-color);
        color: var(--text-primary);
        font-size: 1.75rem;
        width: 42px;
        height: 42px;
        box-shadow: 0 0 20px rgba(168, 85, 255, 0.6), 0 0 40px rgba(168, 85, 255, 0.4);
        z-index: 10004;
    }
    
    .advertisement-title {
        font-size: 1.5rem;
    }
    
    .advertisement-text {
        font-size: 0.9rem;
    }
    
    .advertisement-image img {
        max-height: 200px;
    }
    
    .advertisement-links-container {
        gap: 0.5rem;
    }
    
    .advertisement-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Responsive Support Modal */
@media (max-width: 768px) {
    .support-modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .support-modal-title {
        font-size: 1.5rem;
    }
    
    .support-option {
        padding: 1rem;
    }
    
    .support-option-icon {
        width: 45px;
        height: 45px;
    }
    
    .support-option-content h3 {
        font-size: 1rem;
    }
    
    .support-option-content p {
        font-size: 0.8rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3.6rem 1.8rem; /* 4rem * 0.9, 2rem * 0.9 */
    animation: fadeInUp 0.5s ease-out;
}

.empty-icon {
    font-size: 4.5rem; /* 5rem * 0.9 */
    margin-bottom: 0.9rem; /* 1rem * 0.9 */
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.62rem; /* 1.8rem * 0.9 */
    margin-bottom: 0.45rem; /* 0.5rem * 0.9 */
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.99rem; /* 1.1rem * 0.9 */
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    padding: 1.8rem 0; /* 2rem * 0.9 */
    text-align: center;
    margin-top: 3.6rem; /* 4rem * 0.9 */
}

.footer p {
    color: var(--text-secondary);
}

/* ============================================================================
 * RESPONSIVE DESIGN - ENHANCED BREAKPOINTS & IMPROVEMENTS
 * ============================================================================ */

/* Tablets and small screens (max 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 12px; /* Reduce padding on small screens */
    }
    
    /* Improve touch targets on mobile */
    button,
    .btn,
    .nav-link,
    input,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevent auto-zoom on iOS */
    }
    
    /* Improve header on mobile */
    .header-content {
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Responsive grid */
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100% !important;
    }
    
    .search-box input {
        width: 100% !important;
    }
    
    /* Better spacing on mobile */
    .stats-bar {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .streamers-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Very small screens (max 480px) */
@media (max-width: 480px) {
    html {
        font-size: 85%;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .streamers-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box label {
        width: 100%;
    }
}

/* Large screens (min 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1260px;
    }
}

/* Responsive - Enhanced Breakpoints */

/* شاشات كبيرة جداً (4K) */
@media (min-width: 1921px) {
    .container {
        max-width: 1620px; /* 1800px * 0.9 */
    }
    
    .streamers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* شاشات كبيرة (ديسكتوب) */
@media (min-width: 1401px) and (max-width: 1920px) {
    .container {
        max-width: 1440px; /* 1600px * 0.9 */
    }
    
    .streamers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* شاشات متوسطة-كبيرة */
@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* شاشات متوسطة (تابلت) */
@media (max-width: 1024px) {
    .streamers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات صغيرة (موبايل) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .pinned-announcement {
        padding: 1.2rem;
        margin: 1.5rem 0;
        gap: 1rem;
        border-radius: 20px;
    }

    .pinned-announcement-content {
        font-size: 1rem;
        text-align: center;
    }

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

    .controls-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .category-dropdown {
        width: 100%;
        justify-content: center;
    }

    .custom-select-wrapper {
        flex: 1;
        max-width: 300px;
    }

    .sort-dropdown {
        width: 100%;
        justify-content: center;
    }

    .sort-select {
        flex: 1;
        max-width: 300px;
    }

    .streamers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-content {
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        display: flex;
        gap: 0.6rem;
        align-items: center;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .nav-left {
        display: none !important; /* إخفاء القائمة العلوية في الجوال */
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
        order: 0; /* زر القائمة أولاً (على اليمين في RTL) */
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        position: relative;
        transition: background-color 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        transition: transform 0.3s;
    }

    .hamburger::before { top: -8px; left: 0; }
    .hamburger::after { bottom: -8px; left: 0; }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .header-right {
        order: 1; /* اللوقو ثانياً (على اليسار في RTL) */
    }
    
    .nav-left::-webkit-scrollbar {
        height: 2px;
    }
    
    .nav-left::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .nav-left .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.88rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .nav {
        flex-wrap: nowrap;
    }
    
    /* Touch Targets - 44px minimum */
    .watch-btn,
    .filter-tab,
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8rem 1.5rem;
    }
    
    /* Touch feedback */
    .watch-btn:active,
    .filter-tab:active,
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Navigation improvements */
    .nav-link {
        padding: 0.55rem 0.75rem;
        min-height: 40px;
        display: flex;
        align-items: center;
        font-size: 0.88rem;
    }
    
    .support-link {
        gap: 0.3rem;
    }
    
    .paypal-icon {
        width: 16px;
        height: 16px;
    }
}

/* شاشات صغيرة جداً (موبايل صغير) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .pinned-announcement {
        padding: 0.8rem;
        margin: 1rem 0;
        gap: 0.8rem;
        border-radius: 16px;
    }

    .pinned-announcement-content {
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
    }
    
    .streamer-card {
        padding: 1rem;
    }
    
    .streamer-name {
        font-size: 1rem;
    }
    
    .stats-bar {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* تحسينات القائمة العلوية - سطر واحد */
    .header {
        padding: 0.6rem 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .header-right {
        flex-shrink: 0;
        order: 0;
        align-self: center;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .nav-left {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.2rem 0;
    }
    
    .nav-left::-webkit-scrollbar {
        height: 3px;
    }
    
    .nav-left::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* تقصير النصوص الطويلة */
    .request-link .nav-text-full {
        display: none;
    }
    
    .request-link .nav-text-short {
        display: inline;
    }
    
    #adminLoginBtn .nav-text-full {
        display: none;
    }
    
    #adminLoginBtn .nav-text-short {
        display: inline;
    }
    
    /* تحسين زر طلب القناة في الإحصائيات */
    .stat-item-button .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-item-button .stat-label {
        font-size: 0.75rem;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

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

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: right;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

.sidebar-support-link {
    margin-top: 10px;
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
}

.sidebar-support-link:hover {
    background-color: var(--primary-dark);
}

.sidebar-request-link {
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
}

.logout-link {
    color: var(--danger) !important;
    background: transparent !important;
    border: 1px solid rgba(251,113,133,0.5) !important;
    border-radius: 15px !important;

}
.logout-link:hover, .logout-link.active {
    background: transparent !important;
    color: var(--danger) !important;
}
.sidebar .logout-link {
    width: 100%;
    display: block;
    text-align: center;
}

/* Desktop styles */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .header-left {
        gap: 2rem;
    }
    
    .nav-left {
        gap: 1.5rem;
    }
    
    .nav-left .nav-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ============================================================================
 * FORMS & ALERTS - ENHANCED STYLING
 * ============================================================================ */

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 255, 0.1);
    outline: none;
}

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

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-left-color: #22c55e;
}

.alert-error,
.alert-danger {
    background-color: rgba(251, 113, 133, 0.1);
    color: #fb7185;
    border-left-color: #fb7185;
}

.alert-info {
    background-color: rgba(168, 85, 255, 0.1);
    color: var(--primary-light);
    border-left-color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(249, 115, 255, 0.1);
    color: var(--warning);
    border-left-color: var(--warning);
}

/* Alert icons */
.alert::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success::before {
    content: '✓';
    background: none;
}

.alert-error::before,
.alert-danger::before {
    content: '✕';
    background: none;
}

.alert-info::before {
    content: 'ⓘ';
    background: none;
}

/* Button Styles */
.btn {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    user-select: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(168, 85, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

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

.btn-danger {
    background: rgba(251, 113, 133, 0.2);
    color: #fb7185;
    border-color: #fb7185;
}

.btn-danger:hover {
    background: #fb7185;
    color: white;
    box-shadow: 0 5px 15px rgba(251, 113, 133, 0.4);
}

.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: #22c55e;
}

.btn-success:hover {
    background: #22c55e;
    color: white;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-block {
    width: 100%;
    display: flex;
}
