/* ================================================
   PERFORMANCE OPTIMIZATION STYLES
   ================================================ */

/* Low Performance Mode - Reduce animations on weak devices */
body.low-performance-mode * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

body.low-performance-mode .channel-card:hover {
    transform: none;
}

body.low-performance-mode .loading .spinner {
    animation: none;
    opacity: 0.7;
}

/* Reduce backdrop filters on low-end devices */
body.low-performance-mode .modal-content,
body.low-performance-mode .channel-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Optimize image loading */
img:not([src]) {
    visibility: hidden;
}

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

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

/* ================================================
   ORIGINAL STYLES
   ================================================ */

/* Login modal: move eye icon to the left and free typing area (RTL fix) */
#loginModal .password-input-wrapper input {
    padding: 16px 16px 16px 45px; /* reserve space on the left for the icon */
}

#loginModal .toggle-password {
    left: 10px;
    right: auto;
}

@media (max-width: 480px) {
    #loginModal .password-input-wrapper input {
        padding: 14px 14px 14px 40px;
    }
    #loginModal .toggle-password {
        left: 8px;
    }
}

/* Reset and Base Styles */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



/* منع الترميش الأبيض عند التمرير */

html {

    scroll-behavior: smooth;

    overscroll-behavior: none;

    background: var(--background-dark);

}



/* منع الترميش الأبيض في الوضع الفاتح */

body[data-theme="light"] html {

    background: #ffffff;

}



:root {

    --primary-color: #1a1a2e;

    --secondary-color: #16213e;

    --accent-color: #0f3460;

    --highlight-color: #e94560;

    --text-primary: #ffffff;

    --text-secondary: #b8b8b8;

    --background-dark: #0d1117;

    --background-light: #161b22;

    --border-color: #30363d;

    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --border-radius: 12px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



body {

    font-family: 'Cairo', sans-serif;

    background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-color) 100%);

    color: var(--text-primary);

    line-height: 1.6;

    min-height: 100vh;

    direction: rtl;

    transition: all 0.3s ease;

    /* منع الترميش الأبيض عند التمرير */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

    scroll-behavior: smooth;

}



/* Light Theme */

body[data-theme="light"] {

    --primary-color: #f8fafc;

    --secondary-color: #ffffff;

    --accent-color: #f1f5f9;

    --highlight-color: #3b82f6;

    --text-primary: #1e293b;

    --text-secondary: #64748b;

    --background-dark: #ffffff;

    --background-light: #f8fafc;

    --border-color: #e2e8f0;

    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #f8fafc 100%);

    /* منع الترميش الأبيض في الوضع الفاتح */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}



/* Light theme quality display */

body[data-theme="light"] .quality-display {

    background: linear-gradient(135deg, #f1f5f9, #ffffff);

    color: #1e293b;

    border: 1px solid #e2e8f0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .quality-display i {

    color: #10b981;

}



body[data-theme="light"] .quality-display:hover {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



/* Dark Theme */

body[data-theme="dark"] {

    --primary-color: #1a1a2e;

    --secondary-color: #16213e;

    --accent-color: #0f3460;

    --highlight-color: #e94560;

    --text-primary: #ffffff;

    --text-secondary: #b8b8b8;

    --background-dark: #0d1117;

    --background-light: #161b22;

    --border-color: #30363d;

}



/* Auto Theme - defaults to dark */

body[data-theme="auto"] {

    --primary-color: #1a1a2e;

    --secondary-color: #16213e;

    --accent-color: #0f3460;

    --highlight-color: #e94560;

    --text-primary: #ffffff;

    --text-secondary: #b8b8b8;

    --background-dark: #0d1117;

    --background-light: #161b22;

    --border-color: #30363d;

}



/* Auto theme with system preference */

@media (prefers-color-scheme: light) {

    body[data-theme="auto"] {

        --primary-color: #f5f7fa;

        --secondary-color: #ffffff;

        --accent-color: #e2e8f0;

        --highlight-color: #3b82f6;

        --text-primary: #1a202c;

        --text-secondary: #4a5568;

        --background-dark: #ffffff;

        --background-light: #f7fafc;

        --border-color: #e2e8f0;

        background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);

    }

    

    /* Auto theme channel bar styles for light mode */

    body[data-theme="auto"] .channel-bar {

        background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));

        backdrop-filter: blur(15px);

        border-top: 1px solid rgba(226, 232, 240, 0.8);

        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);

    }

    

    body[data-theme="auto"] .channel-bar-header h4 {

        color: #1e293b;

    }

    

    body[data-theme="auto"] .channel-bar-item {

        background: rgba(255, 255, 255, 0.8);

        border: 1px solid rgba(226, 232, 240, 0.6);

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    }

    

    body[data-theme="auto"] .channel-bar-item:hover {

        background: rgba(255, 255, 255, 0.95);

        border-color: #3b82f6;

        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);

    }

    

    body[data-theme="auto"] .channel-bar-item:hover .channel-category {

        background: rgba(59, 130, 246, 0.1);

        border-color: #3b82f6;

        color: #1d4ed8;

    }

    

body[data-theme="auto"] .channel-bar-item.active {

    background: rgba(59, 130, 246, 0.9);

    border-color: #3b82f6;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);

}

    

    body[data-theme="auto"] .channel-bar-item .channel-category {

        color: #64748b;

        background: rgba(248, 250, 252, 0.8);

        padding: 2px 6px;

        border-radius: 4px;

        font-size: 0.65rem;

        font-weight: 500;

        border: 1px solid rgba(226, 232, 240, 0.5);

    }

    

body[data-theme="auto"] .channel-bar-item.active .channel-name {

    color: rgba(255, 255, 255, 0.95);

    font-weight: 600;

}



body[data-theme="auto"] .channel-bar-item.active .channel-category {

    color: rgba(255, 255, 255, 0.95);

    background: rgba(255, 255, 255, 0.15);

    border-color: rgba(255, 255, 255, 0.2);

}

}



/* تحسين الألوان للوضع الفاتح - العناصر المحددة */

body[data-theme="light"] .header {

    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);

    border-bottom: 1px solid #e2e8f0;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}





body[data-theme="light"] .channel-card {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .channel-card:hover {

    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);

    border-color: #3b82f6;

}



body[data-theme="light"] .channel-logo {

    background: linear-gradient(135deg, #f8fafc, #f1f5f9);

}



body[data-theme="light"] .search-input {

    background: #ffffff;

    border: 2px solid #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .search-input:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



/* تحسين الأزرار في الوضع الفاتح */

body[data-theme="light"] .settings-btn,

body[data-theme="light"] .admin-btn,

body[data-theme="light"] .iptv-checker-btn {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);

}



body[data-theme="light"] .settings-btn:hover,

body[data-theme="light"] .admin-btn:hover,

body[data-theme="light"] .iptv-checker-btn:hover {

    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);

    transform: translateY(-2px);

}



body[data-theme="light"] .iptv-checker-btn {

    background: linear-gradient(45deg, #10b981, #059669);

}



body[data-theme="light"] .iptv-checker-btn:hover {

    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);

}



/* تحسين النماذج والمدخلات */

body[data-theme="light"] .modal-content {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .modal-header {

    background: linear-gradient(135deg, #f8fafc, #f1f5f9);

    border-bottom: 1px solid #e2e8f0;

}



body[data-theme="light"] .form-group input,

body[data-theme="light"] .form-group select,

body[data-theme="light"] .admin-search input {

    background: #ffffff;

    border: 2px solid #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .form-group input:focus,

body[data-theme="light"] .form-group select:focus,

body[data-theme="light"] .admin-search input:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



/* Light theme logo upload styles */

body[data-theme="light"] .logo-preview {

    border-color: #e2e8f0;

}



body[data-theme="light"] .form-help {

    color: #64748b;

}



/* تحسين لوحة التحكم */

body[data-theme="light"] .admin-content {

    background: #ffffff;

}



body[data-theme="light"] .admin-sidebar {

    background: #f8fafc;

    border-left-color: #e2e8f0;

}



body[data-theme="light"] .admin-tab {

    color: #64748b;

    background: transparent;

}



body[data-theme="light"] .admin-tab.active {

    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);

    color: #1e293b;

    border-right-color: #3b82f6;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .admin-tab:hover {

    background: rgba(59, 130, 246, 0.05);

    color: #1e293b;

}



body[data-theme="light"] .admin-tab:hover:not(.active) {

    background: rgba(59, 130, 246, 0.08);

}



body[data-theme="light"] .admin-body {

    background: #ffffff;

}



body[data-theme="light"] .form-actions {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .reset-btn {

    background: #f8fafc;

    color: #64748b;

    border-color: #e2e8f0;

}



body[data-theme="light"] .reset-btn:hover {

    background: #f1f5f9;

    color: #1e293b;

    border-color: #3b82f6;

}



body[data-theme="light"] .admin-channel-item {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

}



body[data-theme="light"] .admin-channel-item:hover {

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

}



body[data-theme="light"] .move-btn {

    border-color: #e2e8f0;

    color: #64748b;

}



body[data-theme="light"] .move-btn:hover {

    background: #3b82f6;

    border-color: #3b82f6;

}



body[data-theme="light"] .position-controls {

    background: #f8fafc;

    border-color: #e2e8f0;

}



body[data-theme="light"] .position-input {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .position-input:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);

}



body[data-theme="light"] .position-input:invalid {

    border-color: #ef4444;

}



body[data-theme="light"] .save-order-container {

    background: rgba(255, 255, 255, 0.95);

    border-color: #3b82f6;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(59, 130, 246, 0.2);

}





/* Light theme for mobile sidebar */

body[data-theme="light"] .mobile-sidebar {

    background: rgba(255, 255, 255, 0.95);

    border-left: 1px solid #e2e8f0;

}



/* Light theme for Channel Bar */

body[data-theme="light"] .channel-bar {

    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));

    backdrop-filter: blur(15px);

    border-top: 1px solid rgba(226, 232, 240, 0.8);

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .channel-bar-header {

    border-bottom: 1px solid rgba(226, 232, 240, 0.6);

}
body[data-theme="light"] .channel-bar-header h4 {

    color: #1e293b;

}



body[data-theme="light"] .channel-bar-info {

    color: #64748b;

}



body[data-theme="light"] .channel-bar-close {

    color: #64748b;

}



body[data-theme="light"] .channel-bar-close:hover {

    background: rgba(239, 68, 68, 0.1);

    color: #dc2626;

}



body[data-theme="light"] .channel-bar-item {

    flex-shrink: 0;

    width: 100px;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 10px;

    padding: 10px;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    text-align: center;

    position: relative;

    overflow: hidden;

    backdrop-filter: blur(6px) saturate(120%);

    -webkit-backdrop-filter: blur(6px) saturate(120%);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);

}



body[data-theme="light"] .channel-bar-item:hover {

    background: rgba(255, 255, 255, 0.95);

    border-color: #3b82f6;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .channel-bar-item:hover .channel-category {

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    color: #1d4ed8;

}



body[data-theme="light"] .channel-bar-item.active {

    background: rgba(59, 130, 246, 0.9);

    border-color: #3b82f6;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);

}



body[data-theme="light"] .channel-bar-item .channel-name {

    color: rgba(255, 255, 255, 0.98);

    font-weight: 700;

}



body[data-theme="light"] .channel-bar-item.active .channel-name {

    color: rgba(255, 255, 255, 0.95);

    font-weight: 600;

}



body[data-theme="light"] .channel-bar-item .channel-category {

    color: rgba(255, 255, 255, 0.9);

    background: rgba(255, 255, 255, 0.14);

    padding: 2px 6px;

    border-radius: 4px;

    font-size: 0.65rem;

    font-weight: 500;

    border: 1px solid rgba(255, 255, 255, 0.25);

}



body[data-theme="light"] .channel-bar-item.active .channel-category {

    color: rgba(255, 255, 255, 0.95);

    background: rgba(255, 255, 255, 0.15);

    border-color: rgba(255, 255, 255, 0.2);

}



body[data-theme="light"] .channel-bar-controls {

    border-top: 1px solid rgba(226, 232, 240, 0.6);

}



body[data-theme="light"] .channel-bar-btn {

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(226, 232, 240, 0.6);

    color: #64748b;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .channel-bar-btn:hover {

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    color: #1d4ed8;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .scroll-indicator {

    background: rgba(255, 255, 255, 0.9);

    color: #64748b;

    border: 1px solid rgba(226, 232, 240, 0.6);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .scroll-indicator:hover {

    background: rgba(59, 130, 246, 0.15);

    color: #1d4ed8;

    border-color: #3b82f6;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);

}



/* Smooth transitions for theme switching */

.channel-bar,

.channel-bar-header,

.channel-bar-item,

.channel-bar-btn,

.scroll-indicator {

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;

}



body[data-theme="light"] .mobile-sidebar-header {

    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);

}



body[data-theme="light"] .mobile-sidebar-header h3 {

    color: #1e293b;

}



body[data-theme="light"] .mobile-close-btn {

    background: rgba(255, 255, 255, 0.9);

    border: 1px solid #d1d5db;

    color: #374151;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .mobile-close-btn:hover {

    background: rgba(239, 68, 68, 0.1);

    border-color: #ef4444;

    color: #dc2626;

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);

}



body[data-theme="light"] .mobile-nav-tab {

    color: #64748b;

    border-bottom: 1px solid #f1f5f9;

}



body[data-theme="light"] .mobile-nav-tab:hover {

    background: #f8fafc;

    color: #3b82f6;

}



body[data-theme="light"] .mobile-nav-tab.active {

    background: linear-gradient(45deg, #3b82f6, #06b6d4);

    color: white;

    border-left: 4px solid #3b82f6;

}



body[data-theme="light"] .mobile-search-input {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .mobile-search-input:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



body[data-theme="light"] .mobile-search-container {

    border-top: 1px solid #e2e8f0;

}



/* Diagnostic Modal Styles */

.diagnostic-content {

    max-width: 500px;

    max-height: 70vh;

    overflow-y: auto;

}



.diagnostic-body {

    padding: 0;

}



.diagnostic-section {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    padding: 1rem;

    margin-bottom: 1rem;

}



.diagnostic-section h4 {

    margin: 0 0 0.75rem 0;

    color: var(--highlight-color);

    font-size: 1rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.diagnostic-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0.5rem 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}



.diagnostic-item:last-child {

    border-bottom: none;

}



.diagnostic-label {

    color: var(--text-secondary);

    font-weight: 500;

    font-size: 0.9rem;

}



.diagnostic-value {

    color: var(--text-primary);

    font-weight: 600;

    background: var(--background-dark);

    padding: 0.2rem 0.5rem;

    border-radius: 4px;

    border: 1px solid var(--border-color);

    font-size: 0.85rem;

}



.diagnostic-actions {

    display: flex;

    gap: 0.5rem;

    justify-content: center;

    padding: 1rem 0;

    border-top: 1px solid var(--border-color);

    margin-top: 0.75rem;

}



.diagnostic-btn {

    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));

    color: white;

    border: none;

    padding: 0.5rem 1rem;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 500;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.4rem;

    font-size: 0.8rem;

}



.diagnostic-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

}



.diagnostic-btn.export-btn {

    background: linear-gradient(45deg, #10b981, #059669);

}



.diagnostic-btn.refresh-btn {

    background: linear-gradient(45deg, #3b82f6, #2563eb);

}



.diagnostic-btn.console-btn {

    background: linear-gradient(45deg, #6b7280, #4b5563);

}



/* Status indicators */

.status-ok {

    color: #10b981 !important;

}



.status-warning {

    color: #f59e0b !important;

}



.status-error {

    color: #ef4444 !important;

}



/* Light theme for diagnostic modal */

body[data-theme="light"] .diagnostic-content {

    background: #ffffff;

}



body[data-theme="light"] .diagnostic-section {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

}



body[data-theme="light"] .diagnostic-value {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .diagnostic-item {

    border-bottom: 1px solid #f1f5f9;

}



body[data-theme="light"] .diagnostic-actions {

    border-top: 1px solid #e2e8f0;

}



/* تحسين الإعدادات والمفاتيح */

body[data-theme="light"] .settings-content {

    background: #ffffff;

}



body[data-theme="light"] .setting-item {

    border-bottom: 1px solid #f1f5f9;

}



body[data-theme="light"] .slider {

    background-color: #e2e8f0;

}



body[data-theme="light"] input:checked + .slider {

    background-color: #3b82f6;

}



body[data-theme="light"] .volume-slider,

body[data-theme="light"] .theme-select {

    background: #ffffff;

    border: 2px solid #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .volume-slider:focus,

body[data-theme="light"] .theme-select:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



/* تحسين الأزرار المتنوعة */

body[data-theme="light"] .add-btn,

body[data-theme="light"] .save-settings-btn {

    background: linear-gradient(45deg, #10b981, #059669);

    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);

}



body[data-theme="light"] .add-btn:hover,

body[data-theme="light"] .save-settings-btn:hover {

    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);

}



body[data-theme="light"] .edit-btn {

    background: #ffffff;

    border: 2px solid #3b82f6;

    color: #3b82f6;

}



body[data-theme="light"] .edit-btn:hover {

    background: #3b82f6;

    color: #ffffff;

}



body[data-theme="light"] .save-btn {

    background: linear-gradient(45deg, #10b981, #059669);

    border: 2px solid #10b981;

    color: #ffffff;

    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);

}



body[data-theme="light"] .save-btn:hover {

    background: linear-gradient(45deg, #059669, #047857);

    border-color: #059669;

    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);

}



body[data-theme="light"] .delete-btn {

    background: #ffffff;

    border: 2px solid #ef4444;

    color: #ef4444;

}



body[data-theme="light"] .delete-btn:hover {

    background: #ef4444;

    color: #ffffff;

}



/* تحسين النصوص والعناوين */

body[data-theme="light"] .channel-name {

    color: #1e293b;

}



body[data-theme="light"] .channel-meta {

    color: #64748b;

}



body[data-theme="light"] .logo h1 {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}
body[data-theme="light"] .admin-badge {

    background: #ffffff;

    color: #1e293b;

    border: 2px solid #3b82f6;

    box-shadow: 

        0 2px 8px rgba(0, 0, 0, 0.05),

        inset 0 1px 0 rgba(255, 255, 255, 0.8);

}
body[data-theme="light"] .admin-badge i {

    color: #3b82f6;

}
.container {

    max-width: 1400px;

    margin: 0 auto;

    padding: 0 20px;

    /* منع الترميش الأبيض */

    background: transparent;

    overscroll-behavior: none;

}



/* Header Styles */

.header {

    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border-color);

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: var(--shadow);

}



.header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0.5rem 0;

    gap: 1.5rem;

}



.header-center {

    display: flex;

    align-items: center;

    gap: 1.5rem;

    flex: 1;

    justify-content: center;

    max-width: 800px;

}



.logo {

    display: flex;

    align-items: center;

    gap: 8px;

}



.logo i {

    font-size: 1.5rem;

    color: var(--highlight-color);

}



.logo h1 {

    font-size: 1.4rem;

    font-weight: 700;

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



/* Admin Badge */

.admin-badge {

    display: flex;

    align-items: center;

    gap: 8px;

    background: var(--background-dark);

    color: var(--text-primary);

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    font-family: 'Cairo', sans-serif;

    border: 2px solid var(--highlight-color);

    box-shadow: 

        0 2px 8px rgba(0, 0, 0, 0.1),

        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    position: relative;

}



.admin-badge i {

    font-size: 0.8rem;

    color: var(--highlight-color);

}



/* Header Search */

.header-search-container {

    position: relative;

    flex: 1;

    max-width: 400px;

}



.header-search-input {

    width: 100%;

    background: rgba(255, 255, 255, 0.1);

    border: 2px solid rgba(255, 255, 255, 0.2);

    border-radius: 20px;

    padding: 8px 40px 8px 16px;

    color: white;

    font-size: 0.9rem;

    transition: var(--transition);

    font-family: inherit;

    backdrop-filter: blur(10px);

}



.header-search-input::placeholder {

    color: rgba(255, 255, 255, 0.7);

}



.header-search-input:focus {

    outline: none;

    border-color: var(--highlight-color);

    background: rgba(255, 255, 255, 0.15);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);

}



.header-search-icon {

    position: absolute;

    right: 14px;

    top: 50%;

    transform: translateY(-50%);

    color: rgba(255, 255, 255, 0.7);

    font-size: 1rem;

}



/* Header Filters */



/* Theme Toggle Switch */

.theme-switch {

    font-size: 17px;

    position: relative;

    display: inline-block;

    width: 64px;

    height: 34px;

    cursor: pointer;

}



.theme-switch .theme-input {

    opacity: 0;

    width: 0;

    height: 0;

}



.theme-slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: #73C0FC;

    transition: .4s;

    border-radius: 30px;

    border: 2px solid rgba(255, 255, 255, 0.2);

}



.theme-slider:before {

    position: absolute;

    content: "";

    height: 26px;

    width: 26px;

    border-radius: 20px;

    left: 2px;

    bottom: 2px;

    z-index: 2;

    background-color: #e8e8e8;

    transition: .4s;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



.theme-switch .sun svg {

    position: absolute;

    top: 6px;

    left: 36px;

    z-index: 1;

    width: 24px;

    height: 24px;

    transition: .4s;

}



.theme-switch .moon svg {

    fill: #73C0FC;

    position: absolute;

    top: 5px;

    left: 5px;

    z-index: 1;

    width: 24px;

    height: 24px;

    transition: .4s;

}







.theme-switch .moon svg {

    animation: tilt 5s linear infinite;

}



@keyframes tilt {

    0% {

        transform: rotate(0deg);

    }

    25% {

        transform: rotate(-10deg);

    }

    75% {

        transform: rotate(10deg);

    }

    100% {

        transform: rotate(0deg);

    }

}



.theme-input:checked + .theme-slider {

    background-color: #183153;

    border-color: rgba(255, 255, 255, 0.3);

}



.theme-input:focus + .theme-slider {

    box-shadow: 0 0 1px #183153;

}



.theme-input:checked + .theme-slider:before {

    transform: translateX(30px);

    background-color: #ffffff;

}



.theme-input:checked ~ .sun svg {

    opacity: 0;

    transform: scale(0.8);

}



.theme-input:not(:checked) ~ .moon svg {

    opacity: 0;

    transform: scale(0.8);

}



.header-actions {

    display: flex;

    gap: 12px;

    align-items: center;

}



/* Fullscreen Toggle Button */

.fullscreen-toggle-btn {

    background: linear-gradient(45deg, #4f46e5, #7c3aed);

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 1.1rem;

    cursor: pointer;

    transition: var(--transition);

    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.3);

    min-width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.fullscreen-toggle-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);

}



.fullscreen-toggle-btn:active {

    transform: translateY(0);

}



.fullscreen-toggle-btn i {

    font-size: 1.2rem;

}



/* Mobile Fullscreen Toggle Button */

.mobile-fullscreen-toggle-btn {

    background: linear-gradient(45deg, #4f46e5, #7c3aed);

    color: white;

    border: none;

    padding: 10px 14px;

    border-radius: 8px;

    font-size: 1rem;

    cursor: pointer;

    transition: var(--transition);

    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);

    min-width: 44px;

    height: 44px;

    display: none;

    align-items: center;

    justify-content: center;

}



.mobile-fullscreen-toggle-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);

}



.mobile-fullscreen-toggle-btn:active {

    transform: translateY(0);

}



.mobile-fullscreen-toggle-btn i {

    font-size: 1.1rem;

}



.mobile-menu-btn {

    display: none;

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.2);

    color: white;

    width: 44px;

    height: 44px;

    border-radius: 12px;

    cursor: pointer;

    transition: var(--transition);

    font-size: 1.2rem;

    align-items: center;

    justify-content: center;

}



.mobile-menu-btn:hover {

    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.3);

    transform: translateY(-2px);

}



.settings-btn, .admin-btn, .iptv-checker-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 12px 20px;

    border-radius: var(--border-radius);

    cursor: pointer;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: var(--transition);

    font-family: inherit;

}



.settings-btn:hover, .admin-btn:hover, .iptv-checker-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);

}



.iptv-checker-btn {

    background: linear-gradient(45deg, #10b981, #059669);

}



.iptv-checker-btn:hover {

    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);

}



/* Navigation Styles */



/* Desktop Sidebar */

.desktop-sidebar {

    position: fixed;

    top: 0;

    right: -280px;

    width: 280px;

    height: 100vh;

    background: var(--primary-color);

    border-left: 1px solid var(--border-color);

    z-index: 1000;

    transition: right 0.2s ease-out;

    overflow-y: auto;

    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);

    will-change: right;

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}



/* Global Scrollbar Styles */

* {

    scrollbar-width: thin;

    scrollbar-color: var(--highlight-color) rgba(255, 255, 255, 0.1);

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

}



/* Webkit Scrollbar Styles */

*::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}



*::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 10px;

    margin: 4px;

}
*::-webkit-scrollbar-thumb {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    border-radius: 10px;

    border: 2px solid transparent;

    background-clip: content-box;

    transition: all 0.3s ease;

    /* تحسين التمرير السلس */

    -webkit-overflow-scrolling: touch;

}
*::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(45deg, #ff5252, #e53935);

    border: 1px solid rgba(255, 255, 255, 0.2);

    transform: scale(1.1);

}



*::-webkit-scrollbar-thumb:active {

    background: linear-gradient(45deg, #d32f2f, #b71c1c);

}



*::-webkit-scrollbar-corner {

    background: transparent;

}



/* Desktop Sidebar Specific Scrollbar */

.desktop-sidebar::-webkit-scrollbar {

    width: 6px;

}



.desktop-sidebar::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    margin: 2px;

}



.desktop-sidebar::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.desktop-sidebar::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #ff5252, #e53935);

    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);

}



.desktop-sidebar.active {

    right: 0;

}



.sidebar-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px;

    border-bottom: 1px solid var(--border-color);

    background: rgba(255, 255, 255, 0.05);

}



.sidebar-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text-primary);

}



.sidebar-logo i {

    font-size: 1.5rem;

    color: var(--highlight-color);

}



.sidebar-title {

    font-size: 1.1rem;

    font-weight: 600;

}



.sidebar-toggle-btn {

    background: none;

    border: none;

    color: var(--text-secondary);

    font-size: 1.3rem;

    cursor: pointer;

    padding: 12px;

    border-radius: 8px;

    transition: var(--transition);

    min-width: 45px;

    min-height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.sidebar-toggle-btn:hover {

    background: rgba(255, 255, 255, 0.1);

    color: var(--text-primary);

}



.sidebar-content {

    padding: 20px 0;

}



.sidebar-section {

    margin-bottom: 30px;

}



.sidebar-section-title {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 20px 15px;

    color: var(--text-secondary);

    font-size: 0.9rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-bottom: 1px solid var(--border-color);

    margin-bottom: 15px;

}



.sidebar-section-title i {

    color: var(--highlight-color);

}



.sidebar-nav-tabs {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 0 15px;

}



.sidebar-nav-tab {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background: none;

    border: none;

    color: var(--text-secondary);

    text-align: right;

    cursor: pointer;

    border-radius: 8px;

    transition: color 0.2s ease, background-color 0.2s ease;

    position: relative;

}



.sidebar-nav-tab:hover {

    color: var(--text-primary);

    background-color: rgba(255, 255, 255, 0.1);

}



.sidebar-nav-tab.active {

    background-color: var(--highlight-color);

    color: white;

}



.sidebar-nav-tab i {

    font-size: 1.1rem;

    width: 20px;

    text-align: center;

}



.sidebar-nav-tab span {

    flex: 1;

    font-size: 0.95rem;

    font-weight: 500;

}



.tab-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    padding: 2px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: 600;

    min-width: 20px;

    text-align: center;

    transition: var(--transition);

}



/* Light theme for tab counts */

body[data-theme="light"] .tab-count {

    background: rgba(59, 130, 246, 0.15);

    color: #1d4ed8;

    font-weight: 600;

    animation: none;

}



body[data-theme="light"] .sidebar-nav-tab.active .tab-count {

    background: rgba(255, 255, 255, 0.3);

    color: white;

}



@keyframes pulse {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.05);

    }

    100% {

        transform: scale(1);

    }

}



.sidebar-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 0 15px;

}



.sidebar-action-btn {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border-color);

    color: var(--text-secondary);

    text-align: right;

    cursor: pointer;

    border-radius: 8px;

    transition: var(--transition);

}



.sidebar-action-btn:hover {

    background: rgba(255, 255, 255, 0.1);

    border-color: var(--highlight-color);

    color: var(--text-primary);

    transform: translateX(-3px);

    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);

}



.sidebar-action-btn i {

    font-size: 1rem;

    width: 20px;

    text-align: center;

}



.sidebar-action-btn span {

    flex: 1;

    font-size: 0.9rem;

}



/* Update Channels Button Special Styles */

.sidebar-action-btn[onclick="updateChannels()"] {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));

    border-color: rgba(16, 185, 129, 0.3);

    color: #10b981;

}



.sidebar-action-btn[onclick="updateChannels()"]:hover {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));

    border-color: #10b981;

    color: #10b981;

    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);

}



@keyframes pulse {

    0% { transform: scale(1); }

    50% { transform: scale(1.1); }

    100% { transform: scale(1); }

}
















/* TV Dropdown Styles */

.tv-dropdown-container {

    position: relative;

    padding: 0 15px;

}



.tv-dropdown-btn {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    border: none;

    color: white;

    text-align: right;

    cursor: pointer;

    border-radius: 8px;

    transition: var(--transition);

    width: 100%;

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

}



.tv-dropdown-btn:hover {

    transform: translateX(-5px);

    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);

}
.tv-dropdown-arrow {

    transition: transform 0.2s ease;

    font-size: 0.8rem;

}



.tv-dropdown-btn.open .tv-dropdown-arrow {

    transform: rotate(180deg);

}
.tv-dropdown-menu {

    position: absolute;

    top: 100%;

    right: 0;

    left: 0;

    background: var(--secondary-color);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    box-shadow: var(--shadow);

    z-index: 1000;

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.2s ease;

    margin-top: 5px;

}



.tv-dropdown-menu.show {

    max-height: 400px;

}



.tv-dropdown-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background: none;

    border: none;

    color: var(--text-secondary);

    text-align: right;

    cursor: pointer;

    transition: var(--transition);

    position: relative;

    overflow: hidden;

    width: 100%;

    border-bottom: 1px solid var(--border-color);

}



.tv-dropdown-item:last-child {

    border-bottom: none;

}



.tv-dropdown-item::before {

    content: '';

    position: absolute;

    top: 0;

    right: 0;

    width: 0;

    height: 100%;

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: -1;

}



.tv-dropdown-item:hover::before {

    width: 100%;

}



.tv-dropdown-item:hover {

    color: white;

    transform: translateX(-5px);

}



.tv-dropdown-item.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

}



.tv-dropdown-item i {

    font-size: 1rem;

    width: 18px;

    text-align: center;

}



.tv-dropdown-item span {

    flex: 1;

    font-size: 0.9rem;

    font-weight: 500;

}



/* Mobile TV Dropdown Styles */

.mobile-tv-dropdown-container {

    position: relative;

    padding: 0 1rem;

}



.mobile-tv-dropdown-btn {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 1rem 1.25rem;

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border: none;

    color: white;

    text-align: right;

    cursor: pointer;

    border-radius: 12px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    width: 100%;

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

    margin-bottom: 0.5rem;

    position: relative;

    overflow: hidden;

}



.mobile-tv-dropdown-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.mobile-tv-dropdown-btn:hover::before {

    left: 100%;

}



.mobile-tv-dropdown-btn:hover {

    transform: translateX(-3px) scale(1.02);

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);

}



.mobile-tv-dropdown-btn:active {

    transform: translateX(-1px) scale(0.98);

    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.3);

}



.mobile-tv-dropdown-btn i {

    font-size: 1.1rem;

    width: 20px;

    text-align: center;

    position: relative;

    z-index: 1;

}



.mobile-tv-dropdown-btn span {

    flex: 1;

    font-size: 0.95rem;

    font-weight: 500;

    position: relative;

    z-index: 1;

}



.mobile-tv-dropdown-arrow {

    transition: transform 0.2s ease;

    font-size: 0.8rem;

    position: relative;

    z-index: 1;

}



.mobile-tv-dropdown-btn.open .mobile-tv-dropdown-arrow {

    transform: rotate(180deg);

}



.mobile-tv-dropdown-menu {

    background: var(--secondary-color);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    box-shadow: var(--shadow);

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.2s ease;

    margin-top: 5px;

    position: relative;

    z-index: 1000;

}



.mobile-tv-dropdown-menu.show {

    max-height: 600px;

    overflow-y: auto;

}



/* Dropdown and List Scrollbar */

.tv-dropdown-menu::-webkit-scrollbar,

.mobile-tv-dropdown-menu::-webkit-scrollbar,

.repo-suggestions::-webkit-scrollbar,

.channels-list::-webkit-scrollbar {

    width: 4px;

}



.tv-dropdown-menu::-webkit-scrollbar-track,

.mobile-tv-dropdown-menu::-webkit-scrollbar-track,

.repo-suggestions::-webkit-scrollbar-track,

.channels-list::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.03);

    border-radius: 8px;

}



.tv-dropdown-menu::-webkit-scrollbar-thumb,

.mobile-tv-dropdown-menu::-webkit-scrollbar-thumb,

.repo-suggestions::-webkit-scrollbar-thumb,

.channels-list::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border-radius: 8px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.tv-dropdown-menu::-webkit-scrollbar-thumb:hover,

.mobile-tv-dropdown-menu::-webkit-scrollbar-thumb:hover,

.repo-suggestions::-webkit-scrollbar-thumb:hover,

.channels-list::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #ff5252, #e53935);

}



.mobile-tv-dropdown-item {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 1rem 1.25rem;

    background: none;

    border: none;

    color: var(--text-secondary);

    text-align: right;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

    overflow: hidden;

    width: 100%;

    border-bottom: 1px solid var(--border-color);

    border-radius: 8px;

    margin: 2px 4px;

    width: calc(100% - 8px);

}



.mobile-tv-dropdown-item:last-child {

    border-bottom: none;

}



.mobile-tv-dropdown-item::before {

    content: '';

    position: absolute;

    top: 0;

    right: 0;

    width: 0;

    height: 100%;

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: -1;

}



.mobile-tv-dropdown-item:hover::before {

    width: 100%;

}



.mobile-tv-dropdown-item:hover {

    color: white;

    transform: translateX(-3px) scale(1.01);

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);

}



.mobile-tv-dropdown-item:active {

    transform: translateX(-1px) scale(0.99);

}



.mobile-tv-dropdown-item.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

}



.mobile-tv-dropdown-item i {

    font-size: 1rem;

    width: 18px;

    text-align: center;

}



.mobile-tv-dropdown-item span {

    flex: 1;

    font-size: 0.9rem;

    font-weight: 500;

}

/* Mobile TV Dropdown Responsive Fixes */

@media (max-width: 768px) {

    .mobile-tv-dropdown-container {

        position: relative;

        z-index: 1000;

        padding: 0 0.5rem;

    }

    

    .mobile-tv-dropdown-btn {

        padding: 0.875rem 1rem;

        font-size: 0.9rem;

        min-height: 48px;

        gap: 0.5rem;

        border-radius: 12px;

        box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);

    }

    

    .mobile-tv-dropdown-btn i {

        font-size: 1rem;

        width: 18px;

    }

    

    .mobile-tv-dropdown-btn span {

        font-size: 0.9rem;

        font-weight: 600;

    }

    

    .mobile-tv-dropdown-arrow {

        font-size: 0.75rem;

    }

    

    .mobile-tv-dropdown-menu {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        max-width: 100%;

        z-index: 1001;

        background: var(--secondary-color);

        border: 1px solid var(--border-color);

        border-radius: 12px;

        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

        margin-top: 8px;

    }

    

    .mobile-tv-dropdown-menu.show {

        max-height: 70vh;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

    }

    

    .mobile-tv-dropdown-item {

        min-height: 48px;

        padding: 0.875rem 1rem;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

        border-radius: 8px;

        margin: 2px 4px;

        width: calc(100% - 8px);

    }

    

    .mobile-tv-dropdown-item i {

        font-size: 1rem;

        width: 20px;

        flex-shrink: 0;

    }

    

    .mobile-tv-dropdown-item span {

        font-size: 0.9rem;

        flex: 1;

        min-width: 0;

        font-weight: 500;

    }

    

    .mobile-tv-dropdown-item .tab-count {

        flex-shrink: 0;

        margin-left: 0.5rem;

        font-size: 0.8rem;

        background: rgba(255, 255, 255, 0.2);

        padding: 2px 6px;

        border-radius: 10px;

        min-width: 20px;

        text-align: center;

    }

}
/* Extra small screens */

@media (max-width: 480px) {

    .mobile-tv-dropdown-container {

        padding: 0 0.25rem;

    }

    

    .mobile-tv-dropdown-btn {

        padding: 0.75rem 0.875rem;

        font-size: 0.85rem;

        min-height: 44px;

        gap: 0.4rem;

        border-radius: 10px;

    }

    

    .mobile-tv-dropdown-btn i {

        font-size: 0.9rem;

        width: 16px;

    }

    

    .mobile-tv-dropdown-btn span {

        font-size: 0.85rem;

    }

    

    .mobile-tv-dropdown-menu {

        border-radius: 10px;

        margin-top: 6px;

    }

    

    .mobile-tv-dropdown-item {

        min-height: 44px;

        padding: 0.75rem 0.875rem;

        margin: 1px 2px;

        width: calc(100% - 4px);

        border-radius: 6px;

    }

    

    .mobile-tv-dropdown-item i {

        font-size: 0.9rem;

        width: 18px;

    }

    

    .mobile-tv-dropdown-item span {

        font-size: 0.85rem;

    }

    

    .mobile-tv-dropdown-item .tab-count {

        font-size: 0.75rem;

        padding: 1px 4px;

        min-width: 18px;

        border-radius: 8px;

    }

}



/* Very small screens (iPhone SE, etc.) */

@media (max-width: 375px) {

    .mobile-tv-dropdown-container {

        padding: 0 0.125rem;

    }

    

    .mobile-tv-dropdown-btn {

        padding: 0.7rem 0.75rem;

        font-size: 0.8rem;

        min-height: 42px;

        gap: 0.35rem;

    }

    

    .mobile-tv-dropdown-btn i {

        font-size: 0.85rem;

        width: 15px;

    }

    

    .mobile-tv-dropdown-btn span {

        font-size: 0.8rem;

    }

    

    .mobile-tv-dropdown-item {

        min-height: 42px;

        padding: 0.7rem 0.75rem;

        margin: 1px;

        width: calc(100% - 2px);

    }

    

    .mobile-tv-dropdown-item i {

        font-size: 0.85rem;

        width: 16px;

    }

    

    .mobile-tv-dropdown-item span {

        font-size: 0.8rem;

    }

    

    .mobile-tv-dropdown-item .tab-count {

        font-size: 0.7rem;

        padding: 1px 3px;

        min-width: 16px;

    }

}



/* Sidebar Overlay */

.sidebar-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transition: var(--transition);

}



.sidebar-overlay.active {

    opacity: 1;

    visibility: visible;

}



/* Main Content Adjustment */

.main-content {

    transition: margin-right 0.2s ease-out;

    will-change: margin-right;

}



.main-content.sidebar-open {

    margin-right: 280px;

}



/* Header Button Styles */

.header-actions .sidebar-toggle-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 1.1rem;

    cursor: pointer;

    transition: var(--transition);

    box-shadow: 0 3px 12px rgba(233, 69, 96, 0.3);

    min-width: 50px;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.header-actions .sidebar-toggle-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);

}



.favorites-btn {

    background: linear-gradient(45deg, #ff6b6b, #ee5a52);

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 1.1rem;

    cursor: pointer;

    transition: var(--transition);

    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);

    position: relative;

    min-width: 50px;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.favorites-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);

}



.favorites-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    padding: 2px 6px;

    border-radius: 10px;

    font-size: 0.8rem;

    font-weight: 600;

    margin-right: 5px;

}





/* Light Theme for Desktop Sidebar */

body[data-theme="light"] .desktop-sidebar {

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    border-left: 1px solid #e2e8f0;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .sidebar-header {

    background: rgba(0, 0, 0, 0.02);

    border-bottom: 1px solid #e2e8f0;

}



body[data-theme="light"] .sidebar-logo {

    color: #1e293b;

}



body[data-theme="light"] .sidebar-logo i {

    color: #3b82f6;

}



body[data-theme="light"] .sidebar-section-title {

    color: #374151;

    border-bottom: 1px solid #d1d5db;

    font-weight: 600;

}



body[data-theme="light"] .sidebar-section-title i {

    color: #3b82f6;

}



body[data-theme="light"] .sidebar-nav-tab {

    color: #475569;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid #e2e8f0;

    transition: all 0.3s ease;

    font-weight: 500;

}



body[data-theme="light"] .sidebar-nav-tab:hover {

    color: #1e293b;

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    transform: translateX(-2px);

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .sidebar-nav-tab.active {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border-color: #1d4ed8;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);

    font-weight: 600;

}
body[data-theme="light"] .sidebar-action-btn {

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid #d1d5db;

    color: #4b5563;

    transition: all 0.3s ease;

    font-weight: 500;

}



body[data-theme="light"] .sidebar-action-btn:hover {

    background: rgba(59, 130, 246, 0.15);

    border-color: #3b82f6;

    color: #1e293b;

    transform: translateX(-3px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);

}





    color: white !important;

}








/* Responsive Design */

@media (max-width: 768px) {

    .desktop-sidebar {

        display: none;

    }

    

    .main-content.sidebar-open {

        margin-right: 0;

    }

    

    .header-actions .sidebar-toggle-btn {

        display: none;

    }

    


    }

    

    .header-actions .fullscreen-toggle-btn {

        display: none;

    }

    

    .header-actions .mobile-fullscreen-toggle-btn {

        display: flex;

    }

}



@media (max-width: 480px) {

    .desktop-sidebar {

        width: 260px;

        right: -260px;

    }

    

    .main-content.sidebar-open {

        margin-right: 260px;

    }

}



/* Mobile Sidebar */

.mobile-sidebar {

    position: fixed;

    top: 0;

    right: -320px;

    width: 320px;

    height: 100vh;

    background: var(--background-dark);

    border-left: 1px solid var(--border-color);

    z-index: 2000;

    transition: right 0.2s ease-out;

    overflow-y: auto;

    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);

    display: flex;

    flex-direction: column;

    will-change: right;

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}



.mobile-sidebar.active {

    right: 0;

}



.mobile-sidebar-header {

    background: var(--secondary-color);

    padding: 1.5rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid var(--border-color);

    flex-shrink: 0;

}



.mobile-sidebar-logo {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    color: white;

    font-weight: 600;

    font-size: 1.2rem;

}
.mobile-sidebar-logo i {

    color: var(--highlight-color);

    font-size: 1.3rem;

}
.mobile-sidebar-header h3 {

    color: white;

    margin: 0;

    font-size: 1.3rem;

    font-weight: 600;

}



.mobile-close-btn {

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.2);

    color: white;

    width: 45px;

    height: 45px;

    border-radius: 10px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.2rem;

}



.mobile-close-btn:hover {

    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.3);

}



.mobile-sidebar-content {

    flex: 1;

    overflow-y: auto;

    padding: 0;

}



/* Mobile Sidebar Scrollbar */

.mobile-sidebar-content::-webkit-scrollbar {

    width: 4px;

}



.mobile-sidebar-content::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 10px;

}



.mobile-sidebar-content::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.mobile-sidebar-content::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #ff5252, #e53935);

}



.mobile-sidebar-section {

    margin-bottom: 1.5rem;

}



.mobile-sidebar-section-title {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 1rem 1.5rem 0.5rem 1.5rem;

    color: var(--text-primary);

    font-weight: 600;

    font-size: 0.9rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.mobile-sidebar-section-title i {

    color: var(--highlight-color);

    font-size: 0.9rem;

}



.mobile-nav-tabs {

    padding: 0;

}



.mobile-nav-tab {

    width: 100%;

    background: transparent;

    border: none;

    color: var(--text-secondary);

    padding: 1rem 1.5rem;

    text-align: right;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.75rem;

    font-size: 1rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.mobile-nav-tab:hover {

    background: var(--accent-color);

    color: white;

    padding-right: 2rem;

}



.mobile-nav-tab.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    font-weight: 600;

    border-left: 4px solid var(--highlight-color);

}



.mobile-nav-tab i {

    font-size: 1.1rem;

    width: 20px;

}



.mobile-nav-tab .tab-count {

    background: var(--accent-color);

    color: var(--text-primary);

    font-size: 0.8rem;

    font-weight: 600;

    padding: 0.25rem 0.5rem;

    border-radius: 12px;

    margin-left: auto;

    min-width: 20px;

    text-align: center;

    transition: var(--transition);

}



.mobile-nav-tab.active .tab-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

}



.mobile-search-container {

    padding: 1rem 1.5rem;

    border-top: 1px solid var(--border-color);

}



.mobile-search-input {

    width: 100%;

    background: var(--background-light);

    border: 1px solid var(--border-color);

    color: var(--text-primary);

    padding: 12px 16px;

    border-radius: 12px;

    font-size: 1rem;

    transition: var(--transition);

    font-family: inherit;

}



.mobile-search-input:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);

}



.mobile-sidebar-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.4);

    z-index: 1500;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.2s ease, visibility 0.2s ease;

    will-change: opacity;

}



.mobile-sidebar-overlay.active {

    opacity: 1;

    visibility: visible;

}



/* Navigation */



.search-container {

    position: relative;

    max-width: 400px;

    margin: 0 auto;

}



.search-input {

    width: 100%;

    background: var(--background-dark);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    padding: 12px 50px 12px 20px;

    color: var(--text-primary);

    font-size: 1rem;

    transition: var(--transition);

    font-family: inherit;

}



.search-input:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);

}



.search-icon {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--text-secondary);

}



/* Main Content */

.main-content {

    padding: 2rem 0;

    min-height: calc(100vh - 200px);

    /* منع الترميش الأبيض */

    background: transparent;

    overscroll-behavior: none;

}



.channels-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 20px;

    padding: 20px 0;

    /* منع الترميش الأبيض */

    background: transparent;

    overscroll-behavior: none;

}



/* Mobile: Force 2 columns on all mobile devices */

@media (max-width: 768px) {

    .channels-grid {

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 10px;

        padding: 10px 0;

    }

    /* Channel number adjustments for mobile */
    .channel-number {
        top: 50px;
        right: 10px;
        font-size: 0.75rem;
        padding: 3px 6px;
        min-width: 20px;
        border-radius: 10px;
    }

    .channel-card {

        padding: 0.6rem;

        border-radius: 8px;

        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);

        transition: transform 0.2s ease, box-shadow 0.2s ease;

    }

    

    .channel-card:hover {

        transform: translateY(-1px);

        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

    }

    

    .channel-logo {

        height: 70px;

        border-radius: 6px;

        margin-bottom: 0.4rem;

    }

    

    .channel-name {

        font-size: 0.8rem;

        font-weight: 600;

        margin-bottom: 0.3rem;

        line-height: 1.2;

        text-align: center;

    }

    

    .channel-meta {

        gap: 0.3rem;

        flex-wrap: wrap;

        justify-content: center;

    }

    

    .channel-country,

    .channel-category {

        font-size: 0.65rem;

        padding: 0.15rem 0.4rem;

        border-radius: 8px;

        font-weight: 500;

    }

}
@media (max-width: 480px) {

    .channels-grid {

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 8px;

        padding: 8px 0;

    }

    

    .channel-card {

        padding: 0.5rem;

        border-radius: 6px;

        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    }

    /* Channel number adjustments for small screens */
    .channel-number {
        top: 45px;
        right: 8px;
        font-size: 0.7rem;
        padding: 2px 5px;
        min-width: 18px;
        border-radius: 8px;
    }

    

    .channel-logo {

        height: 60px;

        border-radius: 4px;

        margin-bottom: 0.3rem;

    }

    

    .channel-name {

        font-size: 0.75rem;

        margin-bottom: 0.25rem;

    }

    

    .channel-country,

    .channel-category {

        font-size: 0.6rem;

        padding: 0.1rem 0.3rem;

        border-radius: 6px;

    }

}



/* Extra small screens - still 2 columns */

@media (max-width: 375px) {

    .channels-grid {

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 6px;

        padding: 6px 0;

    }

    

    .channel-card {

        padding: 0.4rem;

        border-radius: 6px;

        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    }

    /* Channel number adjustments for extra small screens */
    .channel-number {
        top: 40px;
        right: 6px;
        font-size: 0.65rem;
        padding: 2px 4px;
        min-width: 16px;
        border-radius: 6px;
    }

    

    .channel-logo {

        height: 50px;

        border-radius: 4px;

        margin-bottom: 0.25rem;

    }

    

    .channel-name {

        font-size: 0.7rem;

        margin-bottom: 0.2rem;

    }

    

    .channel-country,

    .channel-category {

        font-size: 0.55rem;

        padding: 0.08rem 0.25rem;

        border-radius: 6px;

    }

}
@media (max-width: 320px) {

    .channels-grid {

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 4px;

        padding: 4px 0;

    }

    

    .channel-card {

        padding: 0.3rem;

        border-radius: 4px;

        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    }

    /* Channel number adjustments for very small screens */
    .channel-number {
        top: 35px;
        right: 5px;
        font-size: 0.6rem;
        padding: 1px 3px;
        min-width: 14px;
        border-radius: 4px;
    }

    

    .channel-logo {

        height: 45px;

        border-radius: 3px;

        margin-bottom: 0.2rem;

    }

    

    .channel-name {

        font-size: 0.65rem;

        margin-bottom: 0.15rem;

    }

    

    .channel-meta {

        gap: 0.2rem;

        justify-content: center;

        flex-wrap: nowrap;

    }

    

    .channel-country {

        font-size: 0.5rem;

        padding: 0.1rem 0.3rem;

        border-radius: 6px;

    }

    

    .channel-category {

        font-size: 0.3rem;

        padding: 0.03rem 0.15rem;

        border-radius: 3px;

    }

    

    .channel-country::before {

        font-size: 0.4rem;

    }

}
.channel-card {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: var(--border-radius);

    overflow: hidden;

    cursor: pointer;

    transition: var(--transition);

    position: relative;

}



.channel-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);

    border-color: var(--highlight-color);

}

/* Channel Number Styles */
.channel-number {
    position: absolute;
    top: 60px;
    right: 12px;
    background: var(--highlight-color);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 24px;
    text-align: center;
    transition: var(--transition);
}

/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn i {
    color: #ff4757;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

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

.favorite-btn.active {
    background: #ff4757;
}

.favorite-btn.active i {
    color: white;
}

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

/* Animation محسنة للقلب */
@keyframes heartBeatPulse {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3) rotate(-3deg);
    }
    30% {
        transform: scale(1.1) rotate(3deg);
    }
    45% {
        transform: scale(1.25) rotate(-2deg);
    }
    60% {
        transform: scale(1.05) rotate(1deg);
    }
    75% {
        transform: scale(1.15) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Glow effect عند التفعيل */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6), 
                    0 0 0 3px rgba(255, 71, 87, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 71, 87, 0.8), 
                    0 0 0 5px rgba(255, 71, 87, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Favorites Header Button */
.favorites-header-btn {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.favorites-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

.favorites-header-btn i {
    font-size: 1.1rem;
}

.favorites-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.favorites-header-btn:active {
    transform: translateY(0);
}

/* Dark theme adjustment */
body[data-theme="dark"] .favorites-header-btn {
    background: linear-gradient(135deg, #e94560, #d63447);
}

body[data-theme="dark"] .favorites-header-btn:hover {
    background: linear-gradient(135deg, #d63447, #c72d3d);
}

/* Dark theme adjustments for favorite button */
body[data-theme="dark"] .favorite-btn {
    background: rgba(30, 39, 46, 0.9);
}

body[data-theme="dark"] .favorite-btn:hover {
    background: rgba(30, 39, 46, 1);
}

body[data-theme="dark"] .favorite-btn.active {
    background: #e94560;
}

/* Mobile adjustments for favorite button */
@media (max-width: 768px) {
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    
    .favorite-btn i {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .favorite-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .favorite-btn i {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .favorite-btn {
        width: 26px;
        height: 26px;
        top: 6px;
        right: 6px;
    }
    
    .favorite-btn i {
        font-size: 0.75rem;
    }
}

.channel-card:hover .channel-number {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dark theme adjustments for channel numbers */
body[data-theme="dark"] .channel-number {
    background: var(--accent-color);
    color: white;
}

/* Light theme adjustments for channel numbers */
body[data-theme="light"] .channel-number {
    background: var(--highlight-color);
    color: white;
}



.channel-logo {

    width: 100%;

    height: 120px;

    object-fit: contain;

    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));

    padding: 12px;

    border-radius: 12px 12px 0 0;

    transition: var(--transition);

    filter: brightness(1) contrast(1.1);

}



.channel-logo:hover {

    transform: scale(1.05);

    filter: brightness(1.1) contrast(1.2);

}



/* تحسين عرض الصور البديلة */

.channel-logo.placeholder-logo {

    object-fit: cover;

    background: none;

    padding: 0;

}



/* تحسين الصور المُحملة من مصادر خارجية */

.channel-logo {

    image-rendering: -webkit-optimize-contrast;

    image-rendering: optimize-contrast;

    image-rendering: crisp-edges;

}



/* تحسين عرض الصور على الشاشات عالية الدقة */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    .channel-logo {

        image-rendering: -webkit-optimize-contrast;

        image-rendering: optimize-contrast;

    }

}



.channel-info {

    padding: 16px;

}



.channel-name {

    font-size: 1.1rem;

    font-weight: 600;

    margin-bottom: 8px;

    color: var(--text-primary);

}



.channel-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 0.9rem;

    color: var(--text-secondary);

}



/* Mobile Layout - Title, Country, and Category in same row */

@media (max-width: 768px) {

    .channel-info {

        display: flex;

        flex-direction: column;

        gap: 0.5rem;

        padding: 12px;

        text-align: center;

    }

    

    .channel-name {

        font-size: 1rem;

        margin-bottom: 0;

        order: 1;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

        max-width: 100%;

        text-align: center;

        font-weight: 600;

        line-height: 1.3;

    }

    

    .channel-meta {

        order: 2;

        display: flex;

        flex-direction: row;

        justify-content: center;

        align-items: center;

        gap: 0.4rem;

        flex-wrap: nowrap;

        width: 100%;

        margin-top: 0.25rem;

    }

    

    .channel-country {

        background: linear-gradient(135deg, var(--highlight-color), #4a90e2);

        color: white;

        padding: 0.25rem 0.6rem;

        border-radius: 12px;

        font-size: 0.65rem;

        font-weight: 600;

        white-space: nowrap;

        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

        border: 1px solid rgba(255, 255, 255, 0.2);

        text-transform: uppercase;

        letter-spacing: 0.2px;

        display: flex;

        align-items: center;

        gap: 0.25rem;

        transition: all 0.3s ease;

        flex-shrink: 0;

        min-width: fit-content;

    }

    

    .channel-country::before {

        content: '🏳️';

        font-size: 0.6rem;

    }

    

    .channel-country:hover {

        transform: translateY(-1px);

        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);

    }

    

    .channel-category {

        background: linear-gradient(135deg, var(--highlight-color), #4a90e2);

        color: white;

        padding: 0.1rem 0.3rem;

        border-radius: 8px;

        font-size: 0.45rem;

        font-weight: 400;

        white-space: nowrap;

        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);

        border: 1px solid rgba(255, 255, 255, 0.2);

        text-transform: uppercase;

        letter-spacing: 0.05px;

        display: flex;

        align-items: center;

        gap: 0.15rem;

        transition: all 0.3s ease;

        flex-shrink: 0;

        min-width: fit-content;

    }

    

    .channel-category:hover {

        transform: translateY(-1px);

        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);

    }

}



@media (max-width: 480px) {

    .channel-meta {

        gap: 0.3rem;

        justify-content: center;

        flex-wrap: nowrap;

    }

    

    .channel-country {

        font-size: 0.6rem;

        padding: 0.2rem 0.5rem;

        border-radius: 10px;

    }

    

    .channel-country::before {

        font-size: 0.5rem;

    }

    

    .channel-category {

        font-size: 0.4rem;

        padding: 0.08rem 0.25rem;

        border-radius: 6px;

    }

}



@media (max-width: 375px) {

    .channel-meta {

        gap: 0.25rem;

        justify-content: center;

        flex-wrap: nowrap;

    }

    

    .channel-country {

        font-size: 0.55rem;

        padding: 0.15rem 0.4rem;

        border-radius: 8px;

    }

    

    .channel-country::before {

        font-size: 0.45rem;

    }

    

    .channel-category {

        font-size: 0.35rem;

        padding: 0.05rem 0.2rem;

        border-radius: 4px;

    }

}



.channel-category {

    background: var(--highlight-color);

    color: white;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: 500;

}

/* VPN Badge in Channel Cards */
.channel-vpn-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

.channel-vpn-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.channel-vpn-badge i {
    font-size: 0.5rem;
}

.play-overlay {
    display: none !important;
}

.play-btn {
    display: none !important;
}



/* Loading Spinner */

.loading {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.8);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 9999;

}



.spinner {

    width: 50px;

    height: 50px;

    border: 4px solid var(--border-color);

    border-top: 4px solid var(--highlight-color);

    border-radius: 50%;

    animation: spin 1s linear infinite;

    margin-bottom: 1rem;

}



/* Login Modal Styles */

.login-content {

    max-width: 420px;

    width: 90%;

    background: var(--background-dark);

    border-radius: 16px;

    padding: 0;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    border: 1px solid var(--border-color);

    overflow: hidden;

    position: relative;

}



.login-content::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 1px;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

}



.login-header {

    background: var(--highlight-color);

    color: white;

    padding: 32px 24px 24px;

    text-align: center;

    position: relative;

    overflow: hidden;

}
.login-header::before {

    content: '';

    position: absolute;

    top: -50%;

    left: -50%;

    width: 200%;

    height: 200%;

    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);

    animation: shimmer 3s ease-in-out infinite;

    opacity: 0;

    transition: opacity 0.3s ease;

}
.login-content.active .login-header::before {

    opacity: 1;

}



@keyframes shimmer {

    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }

    50% { transform: translate(-50%, -50%) rotate(180deg); }

}



.login-icon {

    width: 64px;

    height: 64px;

    background: rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 16px;

    font-size: 24px;

    color: white;

}



.login-header h3 {

    margin: 0 0 8px 0;

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: -0.02em;

    position: relative;

    z-index: 1;

}



.login-header p {

    margin: 0;

    opacity: 0.9;

    font-size: 0.9rem;

    line-height: 1.4;

    font-weight: 400;

    position: relative;

    z-index: 1;

}



.login-form {

    padding: 32px 24px 24px;

    background: var(--background-dark);

    position: relative;

}
/* إزالة المؤثرات البصرية الزائدة من تسجيل الدخول */

.login-content::before,

.login-header::before,

.login-form::before {

    display: none;

}



@keyframes shimmer {

    /* إزالة الرسوم المتحركة */

}



.input-group {

    margin-bottom: 20px;

}



.password-input-wrapper {

    position: relative;

}



.password-input-wrapper input {

    width: 100%;

    padding: 16px 45px 16px 16px;

    border: 2px solid var(--border-color);

    border-radius: 12px;

    background: var(--background-light);

    color: var(--text-primary);

    font-size: 1rem;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    box-sizing: border-box;

    font-weight: 500;

}



.password-input-wrapper input:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 

        0 0 0 4px rgba(59, 130, 246, 0.1),

        0 4px 12px rgba(59, 130, 246, 0.15);

    transform: translateY(-2px);

    background: var(--background-dark);

}



.password-input-wrapper input::placeholder {

    color: var(--text-secondary);

    opacity: 0.8;

    font-weight: 400;

}



.toggle-password {

    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    cursor: pointer;

    color: var(--text-secondary);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-size: 18px;

    padding: 10px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid transparent;

    z-index: 10;

    min-width: 36px;

    min-height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.toggle-password:hover {

    color: var(--highlight-color);

    background: rgba(233, 69, 96, 0.1);

    border-color: rgba(233, 69, 96, 0.2);

    transform: translateY(-50%) scale(1.05);

}



.login-actions {

    display: flex;

    gap: 12px;

    margin-bottom: 16px;

}



.login-btn {

    flex: 1;

    background: linear-gradient(135deg, 

        var(--highlight-color) 0%, 

        #4f46e5 50%, 

        #7c3aed 100%);

    color: white;

    border: none;

    padding: 16px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 700;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    font-size: 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    position: relative;

    overflow: hidden;

    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);

}



.login-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s ease;

}



.login-btn:hover::before {

    left: 100%;

}



.login-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);

}



.login-btn:active {

    transform: translateY(-1px);

}



.cancel-btn {

    flex: 1;

    background: var(--background-light);

    color: var(--text-primary);

    border: 2px solid var(--border-color);

    padding: 16px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    font-size: 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    position: relative;

    overflow: hidden;

}



.cancel-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, var(--highlight-color), #4f46e5);

    opacity: 0;

    transition: opacity 0.3s ease;

}



.cancel-btn:hover::before {

    opacity: 0.1;

}



.cancel-btn:hover {

    border-color: var(--highlight-color);

    transform: translateY(-2px);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);

}



.cancel-btn:active {

    transform: translateY(0);

}



.cancel-btn span {

    position: relative;

    z-index: 1;

}



.login-error {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #ef4444;

    font-size: 0.9rem;

    font-weight: 600;

    padding: 16px 20px;

    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));

    border: 1px solid rgba(239, 68, 68, 0.3);

    border-radius: 12px;

    animation: shake 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    backdrop-filter: blur(10px);

    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1);

}



@keyframes shake {

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

    25% { transform: translateX(-8px); }

    75% { transform: translateX(8px); }

}



/* Light theme for login modal */

body[data-theme="light"] .login-content {

    background: #ffffff;

    box-shadow: 

        0 32px 64px rgba(0, 0, 0, 0.15),

        0 0 0 1px rgba(0, 0, 0, 0.05),

        inset 0 1px 0 rgba(255, 255, 255, 0.8);

}



body[data-theme="light"] .login-header {

    background: linear-gradient(135deg, 

        #3b82f6 0%, 

        #1d4ed8 25%, 

        #7c3aed 50%, 

        #ec4899 75%, 

        #f59e0b 100%);

}



body[data-theme="light"] .login-icon {

    background: rgba(255, 255, 255, 0.2);

    box-shadow: 

        0 8px 32px rgba(0, 0, 0, 0.1),

        inset 0 1px 0 rgba(255, 255, 255, 0.4);

}



body[data-theme="light"] .password-input-wrapper input {

    background: #f8fafc;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .password-input-wrapper input:focus {

    border-color: #3b82f6;

    box-shadow: 

        0 0 0 4px rgba(59, 130, 246, 0.1),

        0 4px 12px rgba(59, 130, 246, 0.1);

    background: #ffffff;

}



body[data-theme="light"] .cancel-btn {

    background: #f8fafc;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .cancel-btn:hover {

    background: #f1f5f9;

    border-color: #cbd5e1;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .password-input-wrapper input::placeholder {

    color: #64748b;

    opacity: 0.8;

    font-weight: 400;

}
/* Mobile responsive for login modal */

@media (max-width: 480px) {

    .login-content {

        max-width: 340px;

        width: 95%;

        border-radius: 20px;

    }

    

    .login-header {

        padding: 24px 20px 20px;

    }

    

    .login-icon {

        width: 56px;

        height: 56px;

        font-size: 20px;

        margin-bottom: 12px;

    }

    

    .login-header h3 {

        font-size: 1.3rem;

    }

    

    .login-header p {

        font-size: 0.85rem;

    }

    

    .login-form {

        padding: 24px 20px 20px;

    }

    

    .login-form::before {

        left: 20px;

        right: 20px;

    }

    

    .password-input-wrapper input {

        padding: 14px 40px 14px 14px;

        font-size: 0.95rem;

    }

    

    .toggle-password {

        right: 6px;

        font-size: 16px;

        padding: 8px;

        min-width: 32px;

        min-height: 32px;

    }

    

    .login-actions {

        gap: 10px;

    }

    

    .login-btn, .cancel-btn {

        padding: 14px 16px;

        font-size: 0.95rem;

        gap: 6px;

    }

}



/* Modal Styles */

.modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 10000;

    display: none;

    animation: fadeIn 0.3s ease-out;

}



.modal.active {

    display: flex;

    align-items: center;

    justify-content: center;

}
.modal-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.8);

    backdrop-filter: blur(10px);

}
.modal-content {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: var(--border-radius);

    max-width: 98vw;

    max-height: 95vh;

    position: relative;

    z-index: 1;

    overflow: hidden;

    box-shadow: var(--shadow);

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

}



/* Mobile Modal Content */

@media (max-width: 768px) {

    .modal-content {

        max-width: 96vw;

        max-height: 82vh;

        border-radius: 16px;

        width: 96vw;

        height: auto;

        display: flex;

        flex-direction: column;

        margin: 0 auto 2vh auto;

        position: relative;

        top: -3vh;

        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

        margin-bottom: 20vh;

    }

    

    .modal {

        padding: 0;

    }

    

    .modal.active {

        align-items: center;

        justify-content: center;

    }

    

    .modal-header {

        flex-shrink: 0;

        background: linear-gradient(135deg, var(--secondary-color), var(--background-dark));

        border-bottom: 2px solid var(--highlight-color);

        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    }

    

    .video-container {

        flex: 1;

        display: flex;

        align-items: center;

        justify-content: center;

        background: #000;

    }

}
@media (max-width: 480px) {

    .modal-content {

        border-radius: 0;

    }

}



.modal-header {

    background: var(--secondary-color);

    padding: 1rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid var(--border-color);

}



.modal-header h3 {

    font-size: 1.3rem;

    font-weight: 600;

}



.admin-header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}



.logout-btn {

    background: linear-gradient(45deg, #ef4444, #dc2626);

    color: white;

    border: none;

    padding: 8px 12px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 500;

    transition: all 0.3s ease;

    font-family: inherit;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 6px;

}



.logout-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);

}



/* Light theme for logout button */

body[data-theme="light"] .logout-btn {

    background: linear-gradient(45deg, #ef4444, #dc2626);

}



body[data-theme="light"] .logout-btn:hover {

    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);

}



.channel-title-container {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0.35rem;

    flex: 1;

    min-width: 0; /* Allow text truncation */

}



.channel-country {

    background: linear-gradient(135deg, var(--highlight-color), #4a90e2);

    color: white;

    padding: 0.3rem 0.8rem;

    border-radius: 20px;

    font-size: 0.75rem;

    font-weight: 600;

    white-space: nowrap;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.2);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 0.4rem;

    transition: all 0.3s ease;

}



.channel-country:hover {

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

}



.channel-country i {

    font-size: 0.7rem;

    opacity: 0.9;

}



.country-text {

    font-weight: 600;

}



.channel-country::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.channel-country:hover::before {

    left: 100%;

}

/* Channel Info Row */
.channel-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* VPN Indicator */
.channel-vpn-indicator {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel-vpn-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.channel-vpn-indicator i {
    font-size: 0.7rem;
    opacity: 0.9;
}

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

.channel-vpn-indicator:hover::before {
    left: 100%;
}

.modal-controls {

    display: flex;

    gap: 8px;

}



.quality-btn, .pip-btn, .fullscreen-btn, .close-btn {

    background: transparent;

    color: var(--text-primary);

    border: 1px solid var(--border-color);

    padding: 8px 12px;

    border-radius: 8px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 6px;

    font-family: inherit;

}



.quality-btn:hover, .pip-btn:hover, .fullscreen-btn:hover, .close-btn:hover {

    background: var(--highlight-color);

    border-color: var(--highlight-color);

}



.quality-btn {

    position: relative;

}



.quality-btn i:last-child {

    font-size: 0.8rem;

    transition: transform 0.3s ease;

}



.quality-btn.open i:last-child {

    transform: rotate(180deg);

}



/* Picture-in-Picture Button Specific Styles */

.pip-btn {

    position: relative;

}



.pip-btn.pip-active {

    background: var(--highlight-color);

    border-color: var(--highlight-color);

    color: white;

}



.pip-btn.pip-active i::before {

    content: "\f422"; /* fas fa-compress-arrows-alt */

}



.pip-btn:not(.pip-active) i::before {

    content: "\f35d"; /* fas fa-external-link-alt */

}



/* Video Player Styles */

.video-container {

    position: relative;

    width: 95vw;

    height: 53.4vw; /* 16:9 aspect ratio */

    max-width: 100vw;

    max-height: 85vh;

    background: #000;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);

}



/* Mobile Video Container */

@media (max-width: 768px) {

    .video-container {

        width: 85vw;

        height: 47.8vw; /* 16:9 aspect ratio for 85vw width */

        max-height: 65vh;

        border-radius: 12px;

        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

        position: relative;

        overflow: hidden;

        margin: 0 auto;

    }

}



@media (max-width: 480px) {

    .video-container {

        width: 82vw;

        height: 46.1vw; /* 16:9 aspect ratio for 82vw width */

        max-height: 60vh;

        border-radius: 8px;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

        margin: 0 auto;

    }

    

    .live-indicator {

        font-size: 0.8rem;

        padding: 5px 10px;

        border-radius: 14px;

    }

    

    .live-dot {

        width: 7px;

        height: 7px;

    }

    

    .channel-logo-overlay {

        max-width: 60px;

        max-height: 60px;

        bottom: 12px;

        right: 12px;

        padding: 6px;

    }

    

    .news-ticker {

        font-size: 0.75rem;

        padding: 8px 12px;

        margin: 0 8px;

    }

}
@media (max-width: 375px) {

    .video-container {

        width: 80vw;

        height: 45vw; /* 16:9 aspect ratio for 80vw width */

        max-height: 55vh;

        border-radius: 6px;

        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

        margin: 0 auto;

    }

    

    .live-indicator {

        font-size: 0.75rem;

        padding: 4px 8px;

        border-radius: 12px;

    }

    

    .live-dot {

        width: 6px;

        height: 6px;

    }

    

    .channel-logo-overlay {

        max-width: 50px;

        max-height: 50px;

        bottom: 10px;

        right: 10px;

        padding: 4px;

    }

    

    .news-ticker {

        font-size: 0.7rem;

        padding: 6px 10px;

        margin: 0 6px;

    }

}



#videoPlayer {

    width: 100%;

    height: 100%;

    object-fit: contain;

    background: #000;

}



/* Mobile Video Player Enhancements */

@media (max-width: 768px) {

    #videoPlayer {

        border-radius: 0;

    }

    

    .video-loading {

        background: rgba(0, 0, 0, 0.9);

        border-radius: 0;

    }

    

    .video-loading .spinner {

        width: 50px;

        height: 50px;

        border-width: 4px;

    }

    

    .video-loading p {

        font-size: 1rem;

        margin-top: 1rem;

    }

}



.video-loading {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.8);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 2;

}
/* Quality Control Menu */

.quality-control-container {

    position: relative;

}
.quality-menu {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    background: linear-gradient(135deg, var(--background-dark), var(--secondary-color));

    border: 1px solid var(--border-color);

    border-radius: 12px;

    min-width: 220px;

    max-height: 400px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(20px);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 1000;

    overflow-y: auto;

}



.quality-menu.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.quality-option {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 16px;

    color: var(--text-primary);

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    position: relative;

    border-radius: 8px;

    margin: 2px 8px;

}



.quality-option:last-child {

    border-bottom: none;

}



.quality-option:hover {

    background: var(--highlight-color);

    color: white;

    transform: translateX(-2px);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}



.quality-option.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    transform: translateX(-2px);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}



.quality-option i:first-child {

    width: 20px;

    text-align: center;

}


/* Player Categories Filter Dropdown */
.player-categories-filter {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 8px;
}

.player-categories-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.player-categories-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.player-categories-btn i:first-child {
    font-size: 0.9rem;
}

.player-categories-btn i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.player-categories-btn.open i:last-child {
    transform: rotate(180deg);
}

.player-category-text {
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-categories-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, var(--background-dark), var(--secondary-color));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    max-height: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.player-categories-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.player-category-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 8px;
    margin: 2px 8px;
}

.player-category-option:last-child {
    border-bottom: none;
}

.player-category-option:hover {
    background: var(--highlight-color);
    color: white;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-category-option.active {
    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);
    color: white;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-category-option i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.player-category-option span:not(.player-category-count) {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.player-category-count {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.player-category-option.active .player-category-count,
.player-category-option:hover .player-category-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .player-categories-filter {
        margin: 0 4px;
    }
    
    .player-categories-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .player-category-text {
        font-size: 0.8rem;
        max-width: 90px;
    }
    
    .player-categories-btn i:first-child {
        font-size: 0.8rem;
    }
    
    .player-categories-menu {
        min-width: 140px;
        max-width: 160px;
        max-height: 280px;
        z-index: 10001;
    }
    
    .player-category-option {
        padding: 9px 10px;
        gap: 6px;
    }
    
    .player-category-option i {
        width: 16px;
        font-size: 0.8rem;
    }
    
    .player-category-option span:not(.player-category-count) {
        font-size: 0.8rem;
    }
    
    .player-category-count {
        font-size: 0.65rem;
        padding: 2px 5px;
        min-width: 22px;
    }
}

@media (max-width: 480px) {
    .player-categories-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .player-categories-btn i:first-child {
        font-size: 0.7rem;
    }
    
    .player-categories-btn i:last-child {
        font-size: 0.65rem;
    }
    
    .player-category-text {
        font-size: 0.7rem;
        max-width: 60px;
    }
    
    .player-categories-menu {
        min-width: 130px;
        max-width: 150px;
        z-index: 10001;
    }
    
    .player-category-option {
        padding: 8px 8px;
        gap: 5px;
        margin: 2px 6px;
    }
    
    .player-category-option i {
        width: 14px;
        font-size: 0.75rem;
    }

    .player-category-option span:not(.player-category-count) {
        font-size: 0.75rem;
    }
    
    .player-category-count {
        font-size: 0.6rem;
        padding: 1px 4px;
        min-width: 18px;
    }
    
    /* Compact modal-header for very small screens */
    .modal-header {
        padding: 0.5rem 0.4rem !important;
        gap: 4px !important;
        position: relative !important;
    }
    
    .channel-title-container {
        flex: 1 1 100% !important;
    }
    
    .channel-title-container h3 {
        font-size: 0.9rem !important;
    }
    
    .channel-country, .channel-vpn-indicator {
        font-size: 0.7rem !important;
    }
    
    .modal-controls {
        gap: 4px !important;
    }
    
    .player-categories-filter {
        top: 0.5rem !important;
        left: 0.3rem !important;
    }
    
    .channel-title-container h3 {
        margin-left: 110px !important;
    }
    
    .quality-btn, .pip-btn, .fullscreen-btn, .close-btn, .channels-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}

/* Desktop layout for channel-title-container */
@media (min-width: 769px) {
    .channel-title-container {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Additional responsive improvements for modal-header */
@media (max-width: 768px) {
    .modal-header {
        flex-wrap: wrap !important;
        padding: 0.5rem 0.4rem !important;
        gap: 4px !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }
    
    /* First row: Title + Categories button in same line */
    .channel-title-container {
        flex: 1 1 100% !important;
        margin-bottom: 0 !important;
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
    }
    
    .channel-title-container h3 {
        font-size: 0.95rem !important;
        margin: 0 !important;
        margin-left: 120px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        display: block !important;
    }
    
    .channel-info-row {
        margin-top: 1px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
    }
    
    .player-categories-filter {
        order: 2 !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        position: absolute !important;
        top: 0.5rem !important;
        left: 0.4rem !important;
        z-index: 10 !important;
    }
    
    /* Second row: Controls */
    .modal-controls {
        order: 3 !important;
        flex: 1 1 100% !important;
        justify-content: flex-end !important;
        margin-top: 3px !important;
        display: flex !important;
        gap: 5px !important;
    }
    
    /* Adjust button sizes for mobile */
    .quality-btn, .pip-btn, .fullscreen-btn, .close-btn, .channels-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
    font-size: 1rem;

}
.quality-option span {

    flex: 1;

    font-weight: 500;

    font-size: 0.9rem;

}



.quality-check {

    opacity: 0;

    transform: scale(0);

    transition: all 0.2s ease;

    color: #4ade80;

    font-size: 0.9rem;

}



.quality-option.active .quality-check {

    opacity: 1;

    transform: scale(1);

}



.quality-option.quality-available {

    opacity: 1;

}



.quality-option:not(.quality-available) {

    opacity: 0.6;

}



.quality-option:not(.quality-available)::after {

    content: "غير متوفر";

    font-size: 0.7rem;

    color: #ff6b6b;

    margin-left: auto;

}



/* Quality menu header */

.quality-menu::before {

    content: "جودة البث";

    display: block;

    padding: 12px 16px;

    background: var(--accent-color);

    color: white;

    font-weight: 600;

    font-size: 0.9rem;

    border-bottom: 1px solid var(--border-color);

    text-align: center;

}



/* News Ticker Styles */

.news-ticker {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 50px;

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    display: none; /* Hidden by default */

    align-items: center;

    z-index: 3;

    overflow: hidden;

    border-top: 2px solid rgba(255, 255, 255, 0.2);

}



.news-ticker-label {

    background: rgba(0, 0, 0, 0.8);

    color: white;

    padding: 0 20px;

    height: 100%;

    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 600;

    font-size: 0.9rem;

    white-space: nowrap;

    border-left: 2px solid rgba(255, 255, 255, 0.3);

}



.news-ticker-content {

    flex: 1;

    height: 100%;

    overflow: hidden;

    position: relative;

}



.news-ticker-text {

    color: white;

    font-weight: 500;

    font-size: 0.95rem;

    line-height: 50px;

    white-space: nowrap;

    animation: tickerMove 60s linear infinite;

    padding-right: 100%;

}



@keyframes tickerMove {

    0% {

        transform: translateX(100%);

    }

    100% {

        transform: translateX(-100%);

    }

}



/* Channel Logo Overlay */

.channel-logo-overlay {

    position: absolute;

    top: 20px;

    right: 20px;

    width: 80px;

    height: 60px;

    background: rgba(0, 0, 0, 0.6);

    border-radius: 8px;

    padding: 8px;

    z-index: 3;

    backdrop-filter: blur(5px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    display: none; /* Hidden */

}



.channel-logo-overlay img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    border-radius: 4px;

}



/* Live Indicator */

.live-indicator {

    position: absolute;

    top: 20px;

    left: 20px;

    background: var(--highlight-color);

    color: white;

    padding: 8px 12px;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: 600;

    display: none; /* Hidden */

    align-items: center;

    gap: 6px;

    z-index: 3;

}



.live-dot {

    width: 8px;

    height: 8px;

    background: white;

    border-radius: 50%;

}



/* Quality Display */

.quality-display {

    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));

    color: var(--text-primary);

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 0.8rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 6px;

    border: 1px solid var(--border-color);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    animation: qualityDisplayFadeIn 0.5s ease-out;

    margin-left: 8px;

}



.quality-display i {

    font-size: 0.7rem;

    opacity: 0.9;

    color: #4ade80;

}



.quality-display:hover {

    background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

}



.quality-display span {

    font-family: 'Cairo', sans-serif;

    letter-spacing: 0.5px;

}



/* Animation for quality display */

@keyframes qualityDisplayFadeIn {

    0% {

        opacity: 0;

        transform: translateY(-10px) scale(0.9);

    }

    100% {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}



@keyframes blink {

    0%, 50% { opacity: 1; }

    51%, 100% { opacity: 0.3; }

}



/* Time Display */

.time-display {

    position: absolute;

    bottom: 60px;

    right: 20px;

    background: rgba(0, 0, 0, 0.7);

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 0.9rem;

    font-weight: 500;

    z-index: 3;

    backdrop-filter: blur(5px);

    display: none !important; /* Always hidden */

}



/* Settings Modal */

.settings-content {

    width: 700px;

    max-height: 750px;

    box-shadow: none !important;

    animation: none !important;

    transition: none !important;

}



/* Remove effects from settings modal overlay */

#settingsModal .modal-overlay {

    backdrop-filter: none !important;

    background: rgba(0, 0, 0, 0.5) !important;

}



/* Remove effects from settings modal content */

#settingsModal .modal-content {

    box-shadow: none !important;

    animation: none !important;

    transition: none !important;

    transform: none !important;

}



.settings-body {

    padding: 2rem;

    max-height: 400px;

    overflow-y: auto;

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}
/* Modal and Settings Scrollbar */

.settings-body::-webkit-scrollbar,

.admin-body::-webkit-scrollbar,

.diagnostic-content::-webkit-scrollbar,

.setup-help-content::-webkit-scrollbar,

.auto-detect-content::-webkit-scrollbar {

    width: 6px;

}



.settings-body::-webkit-scrollbar-track,

.admin-body::-webkit-scrollbar-track,

.diagnostic-content::-webkit-scrollbar-track,

.setup-help-content::-webkit-scrollbar-track,

.auto-detect-content::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 10px;

    margin: 2px;

}



.settings-body::-webkit-scrollbar-thumb,

.admin-body::-webkit-scrollbar-thumb,

.diagnostic-content::-webkit-scrollbar-thumb,

.setup-help-content::-webkit-scrollbar-thumb,

.auto-detect-content::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.settings-body::-webkit-scrollbar-thumb:hover,

.admin-body::-webkit-scrollbar-thumb:hover,

.diagnostic-content::-webkit-scrollbar-thumb:hover,

.setup-help-content::-webkit-scrollbar-thumb:hover,

.auto-detect-content::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #ff5252, #e53935);

    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);

}



.setting-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1rem 0;

    border-bottom: 1px solid var(--border-color);

}



.setting-item:last-child {

    border-bottom: none;

}



.setting-item label {

    font-weight: 500;

    color: var(--text-primary);

}



.setting-description {

    font-size: 0.85rem;

    color: var(--text-secondary);

    margin-top: 0.25rem;

    display: block;

    font-style: italic;

}

/* Mobile: stack settings labels above controls for consistent layout */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .setting-label-group {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    /* Ensure all selects and inputs span full width inside settings */
    .setting-item select,
    .setting-item .enhanced-select,
    .setting-item .theme-select,
    .setting-item .color-theme-select,
    .setting-item .font-size-select,
    .setting-item .layout-mode-select,
    .setting-item .border-radius-select,
    .setting-item .enhanced-input {
        width: 100%;
    }

    /* Keep switches aligned to start on mobile */
    .setting-item .switch,
    .enhanced-switch {
        align-self: flex-start;
    }
}
/* Switch Toggle */

.switch {

    position: relative;

    display: inline-block;

    width: 50px;

    height: 24px;

}
.switch input {

    opacity: 0;

    width: 0;

    height: 0;

}



.slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: var(--border-color);

    transition: var(--transition);

    border-radius: 24px;

}



.slider:before {

    position: absolute;

    content: "";

    height: 18px;

    width: 18px;

    left: 3px;

    bottom: 3px;

    background-color: white;

    transition: var(--transition);

    border-radius: 50%;

}



input:checked + .slider {

    background-color: var(--highlight-color);

}



input:checked + .slider:before {

    transform: translateX(26px);

}



.volume-slider, .theme-select {

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    color: var(--text-primary);

    padding: 8px;

    font-family: inherit;

}



/* Admin Panel */

.admin-content {

    width: 85vw;

    max-width: 1000px;

    height: 80vh;

    min-height: 600px;

}



/* Admin Layout - Sidebar Design */

.admin-layout {

    display: flex;

    height: calc(100% - 60px);

    background: var(--background-dark);

}
.admin-sidebar {

    width: 280px;

    background: var(--background-darker);

    border-left: 1px solid var(--border-color);

    display: flex;

    flex-direction: column;

    flex-shrink: 0;

}



.admin-tabs {

    display: flex;

    flex-direction: column;

    padding: 1rem 0;

    gap: 0.5rem;

}



.admin-tab {

    background: transparent;

    color: var(--text-secondary);

    border: none;

    padding: 1rem 1.5rem;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-weight: 600;

    font-size: 0.95rem;

    border-radius: 0;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 0.75rem;

    text-align: right;

    border-right: 3px solid transparent;

    margin: 0 0.5rem;

    border-radius: 8px;

}



.admin-tab i {

    font-size: 1.1rem;

    width: 20px;

    text-align: center;

}



.admin-tab span {

    flex: 1;

}



.admin-tab.active {

    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));

    color: var(--text-primary);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    border-right-color: var(--highlight-color);

}



.admin-tab:hover {

    background: rgba(255, 255, 255, 0.05);

    color: var(--text-primary);

    transform: translateX(-2px);

}



.admin-tab:hover:not(.active) {

    background: rgba(255, 255, 255, 0.08);

}



.admin-body {

    flex: 1;

    padding: 1.5rem;

    overflow-y: auto;

    background: var(--background-dark);

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}



.admin-tab-content {

    display: none;

}



.admin-tab-content.active {

    display: block;

}



/* Security Tab Styles */

.security-settings {

    padding: 20px;

}



.security-section {

    background: var(--card-bg);

    border-radius: 12px;

    padding: 24px;

    margin-bottom: 24px;

    border: 1px solid var(--border-color);

}



.security-header {

    display: flex;

    align-items: center;

    margin-bottom: 24px;

    padding-bottom: 16px;

    border-bottom: 2px solid var(--primary-color);

}



.security-header i {

    font-size: 24px;

    color: var(--primary-color);

    margin-left: 12px;

}



.security-header h3 {

    margin: 0;

    color: var(--text-primary);

    font-size: 20px;

    font-weight: 600;

}



.security-header p {

    margin: 8px 0 0 0;

    color: var(--text-secondary);

    font-size: 14px;

}



/* تحسين تصميم قسم الأمان */

.security-header {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 32px;

    padding: 24px;

    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);

    border-radius: 16px;

    border: 1px solid rgba(59, 130, 246, 0.1);

}



.security-icon-wrapper {

    width: 64px;

    height: 64px;

    background: var(--primary-color);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.security-icon-wrapper i {

    font-size: 28px;

    color: white;

}



.security-title-group h3 {

    margin: 0 0 8px 0;

    font-size: 24px;

    font-weight: 700;

    color: var(--text-primary);

}



.security-title-group p {

    margin: 0;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.5;

}



.change-password-form {

    max-width: 600px;

    background: var(--card-bg);

    padding: 32px;

    border-radius: 12px;

    border: 1px solid var(--border-color);

}



/* تحسين تصميم حقول كلمة المرور */

.form-group {

    margin-bottom: 24px;

}



.form-group label {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    font-weight: 600;

    color: var(--text-primary);

    font-size: 16px;

}



.form-group label i {

    color: var(--primary-color);

    font-size: 18px;

}



.password-input-wrapper {

    position: relative;

    margin-bottom: 8px;

    width: 100%;

}



.password-input-wrapper input {

    width: 100%;

    padding: 18px 20px;

    border: 1px solid var(--border-color);

    border-radius: 12px;

    background: var(--input-bg);

    color: var(--text-primary);

    font-size: 17px;

    font-weight: 500;

    position: relative;

    box-sizing: border-box;

}



.password-input-wrapper input:focus {

    border-color: var(--primary-color);

    outline: none;

    background: var(--input-bg);

}



.password-input-wrapper input::placeholder {

    color: var(--text-secondary);

    opacity: 0.8;

    font-weight: 400;

    font-size: 16px;

}



.password-input-wrapper input:hover {

    border-color: var(--primary-color);

}



/* أيقونات إظهار/إخفاء كلمة المرور في التسميات */

.form-group label .toggle-current-password,

.form-group label .toggle-new-password,

.form-group label .toggle-confirm-password {

    float: left;

    margin-left: 10px;

    cursor: pointer;

    color: var(--text-secondary);

    padding: 6px;

    border-radius: 6px;

    font-size: 16px;

    background: transparent;

    border: 1px solid var(--border-color);

    width: 28px;

    height: 28px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}
/* تأثيرات التمرير للأيقونات في التسميات */

.form-group label .toggle-current-password:hover,

.form-group label .toggle-new-password:hover,

.form-group label .toggle-confirm-password:hover {

    color: var(--primary-color);

    background: var(--card-bg);

    border-color: var(--primary-color);

}



/* تحسين مؤشر قوة كلمة المرور */

.password-strength {

    margin-top: 12px;

}



.strength-indicator {

    background: var(--card-bg);

    padding: 16px;

    border-radius: 12px;

    border: 1px solid var(--border-color);

}



.strength-bar {

    width: 100%;

    height: 8px;

    background: var(--border-color);

    border-radius: 4px;

    overflow: hidden;

    margin-bottom: 12px;

    position: relative;

}



.strength-fill {

    height: 100%;

    width: 0%;

    border-radius: 4px;

    position: relative;

}






.strength-fill.weak {

    width: 25%;

    background: #ef4444;

}



.strength-fill.fair {

    width: 50%;

    background: #f59e0b;

}



.strength-fill.good {

    width: 75%;

    background: #3b82f6;

}



.strength-fill.strong {

    width: 100%;

    background: #10b981;

}



.strength-text {

    font-size: 14px;

    font-weight: 600;

    color: var(--text-primary);

    display: flex;

    align-items: center;

    gap: 8px;

}



.strength-text::before {

    content: '';

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--text-secondary);

}



.strength-text.weak::before {

    background: #ef4444;

}



.strength-text.fair::before {

    background: #f59e0b;

}
.strength-text.good::before {

    background: #3b82f6;

}



.strength-text.strong::before {

    background: #10b981;

}
/* تحسين مؤشر تطابق كلمة المرور */

.password-match {

    display: flex;

    align-items: center;

    margin-top: 12px;

    padding: 12px 16px;

    background: var(--card-bg);

    border-radius: 10px;

    border: 1px solid var(--border-color);

    font-size: 14px;

}



.password-match.matching {

    border-color: #10b981;

    background: var(--card-bg);

}



.password-match.not-matching {

    border-color: #ef4444;

    background: var(--card-bg);

}



.match-icon {

    margin-left: 8px;

    font-size: 18px;

}



.password-match.matching .match-icon {

    color: #10b981;

}



.password-match.not-matching .match-icon {

    color: #ef4444;

}



.match-icon.valid {

    color: #10b981;

}



.match-icon.invalid {

    color: #ef4444;

}



.match-text {

    font-weight: 500;

}



.match-text.valid {

    color: #10b981;

}



.match-text.invalid {

    color: #ef4444;

}



/* تحسين تصميم متطلبات كلمة المرور */

.password-requirements {

    background: var(--card-bg);

    border-radius: 12px;

    padding: 20px;

    margin: 24px 0;

    border: 1px solid var(--border-color);

}
.requirements-header {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 16px;

}



.requirements-header i {

    color: var(--primary-color);

    font-size: 18px;

}



.password-requirements h4 {

    margin: 0;

    color: var(--text-primary);

    font-size: 18px;

    font-weight: 700;

}



.requirements-list {

    list-style: none;

    padding: 0;

    margin: 0;

}



.requirement-item {

    display: flex;

    align-items: center;

    margin-bottom: 12px;

    font-size: 15px;

    padding: 8px 12px;

    border-radius: 8px;

}



.requirement-icon {

    margin-left: 12px;

    font-size: 10px;

}



.requirement-item.valid .requirement-icon {

    color: #10b981;

}



.requirement-item.invalid .requirement-icon {

    color: var(--text-secondary);

}



.requirement-item span {

    color: var(--text-secondary);

    font-weight: 500;

}



.requirement-item.valid span {

    color: var(--text-primary);

}



.requirement-item.valid span {

    color: #10b981;

}



/* تحسين تصميم أزرار الإجراءات */

.form-actions {

    display: flex;

    gap: 16px;

    margin-top: 32px;

    justify-content: center;

}



.change-password-btn {

    padding: 16px 32px;

    border-radius: 12px;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    border: none;

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 200px;

    justify-content: center;

    background: var(--primary-color);

    color: white;

    letter-spacing: 0.5px;

}



.change-password-btn:hover {

    background: #1d4ed8;

}



.change-password-btn:disabled {

    background: var(--border-color);

    color: var(--text-secondary);

    cursor: not-allowed;

}



/* تحسينات للوضع المظلم */

body[data-theme="dark"] .security-header {

    background: var(--card-bg);

}



body[data-theme="dark"] .change-password-form {

    background: var(--card-bg);

    border-color: var(--border-color);

}



body[data-theme="dark"] .password-input-wrapper input {

    background: var(--input-bg);

    border-color: var(--border-color);

    color: #ffffff;

}



body[data-theme="dark"] .password-input-wrapper input:focus {

    border-color: var(--primary-color);

    background: var(--input-bg);

}



body[data-theme="dark"] .password-input-wrapper input:hover {

    border-color: var(--primary-color);

    background: var(--input-bg);

}



/* الثيم الداكن للأيقونات في التسميات */

body[data-theme="dark"] .form-group label .toggle-current-password,

body[data-theme="dark"] .form-group label .toggle-new-password,

body[data-theme="dark"] .form-group label .toggle-confirm-password {

    background: transparent;

    border: 1px solid var(--border-color);

    color: var(--text-secondary);

}



body[data-theme="dark"] .password-input-wrapper .toggle-current-password:hover,

body[data-theme="dark"] .password-input-wrapper .toggle-new-password:hover,

body[data-theme="dark"] .password-input-wrapper .toggle-confirm-password:hover {

    background: var(--card-bg);

    border-color: var(--primary-color);

    color: var(--primary-color);

}



body[data-theme="dark"] .strength-indicator,

body[data-theme="dark"] .password-match,

body[data-theme="dark"] .password-requirements {

    background: var(--card-bg);

    border-color: var(--border-color);

}



/* تحسينات للوضع الفاتح */

body[data-theme="light"] .security-header {

    background: var(--card-bg);

    border-color: var(--border-color);

}



body[data-theme="light"] .change-password-form {

    background: var(--card-bg);

    border-color: var(--border-color);

}



body[data-theme="light"] .password-input-wrapper input {

    background: var(--input-bg);

    border-color: var(--border-color);

    color: var(--text-primary);

}



body[data-theme="light"] .password-input-wrapper input:focus {

    border-color: var(--primary-color);

    background: var(--input-bg);

}



body[data-theme="light"] .password-input-wrapper input:hover {

    border-color: var(--primary-color);

    background: var(--input-bg);

}



/* الثيم الفاتح للأيقونات في التسميات */

body[data-theme="light"] .form-group label .toggle-current-password,

body[data-theme="light"] .form-group label .toggle-new-password,

body[data-theme="light"] .form-group label .toggle-confirm-password {

    background: transparent;

    border: 1px solid var(--border-color);

    color: var(--text-secondary);

}



body[data-theme="light"] .password-input-wrapper .toggle-current-password:hover,

body[data-theme="light"] .password-input-wrapper .toggle-new-password:hover,

body[data-theme="light"] .password-input-wrapper .toggle-confirm-password:hover {

    background: var(--card-bg);

    border-color: var(--primary-color);

    color: var(--primary-color);

}



body[data-theme="light"] .strength-indicator,

body[data-theme="light"] .password-match,

body[data-theme="light"] .password-requirements {

    background: var(--card-bg);

    border-color: var(--border-color);

}



/* تحسينات للشاشات الصغيرة */

@media (max-width: 768px) {

    .security-header {

        flex-direction: column;

        text-align: center;

        gap: 12px;

    }

    

    .security-icon-wrapper {

        width: 56px;

        height: 56px;

    }

    

    .security-icon-wrapper i {

        font-size: 24px;

    }

    

    .change-password-form {

        padding: 20px 16px;

        margin: 0 8px;

        border-radius: 16px;

    }

    

    .form-group {

        margin-bottom: 20px;

    }

    

    .form-group label {

        font-size: 15px;

        margin-bottom: 10px;

        flex-wrap: wrap;

        gap: 6px;

    }

    

    .form-actions {

        justify-content: center;

        margin-top: 24px;

    }

    

    .change-password-btn {

        width: 100%;

        padding: 16px 24px;

        min-width: auto;

        font-size: 16px;

    }

    

    .password-input-wrapper {

        margin-right: 0;

    }

    

    .password-input-wrapper input {

        padding: 16px 18px;

        font-size: 16px;

        border-radius: 12px;

    }

    

    .form-group label .toggle-current-password,

    .form-group label .toggle-new-password,

    .form-group label .toggle-confirm-password {

        margin-left: 8px;

        padding: 6px;

        font-size: 14px;

        width: 28px;

        height: 28px;

        border-radius: 8px;

    }

    

    .password-strength {

        margin-top: 10px;

    }

    

    .strength-indicator {

        padding: 12px;

        border-radius: 10px;

    }

    

    .password-match {

        margin-top: 10px;

        padding: 12px;

        border-radius: 10px;

    }

    

    .password-requirements {

        padding: 16px;

        margin-top: 16px;

        border-radius: 12px;

    }

    

    .requirements-list {

        gap: 8px;

    }

    

    .requirement-item {

        padding: 8px 12px;

        font-size: 14px;

        border-radius: 8px;

    }

    

    .password-requirements {

        padding: 16px;

    }

    

    .requirements-list {

        gap: 8px;

    }

    

    .requirement-item {

        padding: 6px 10px;

        font-size: 14px;

    }

}
/* تحسينات إضافية للشاشات الصغيرة جداً */

@media (max-width: 480px) {

    .change-password-form {

        padding: 16px 12px;

        margin: 0 4px;

        border-radius: 12px;

    }

    

    .security-header {

        padding: 16px 12px;

    }

    

    .security-icon-wrapper {

        width: 48px;

        height: 48px;

    }

    

    .security-icon-wrapper i {

        font-size: 20px;

    }

    

    .form-group label {

        font-size: 14px;

        margin-bottom: 8px;

    }

    

    .password-input-wrapper input {

        padding: 14px 16px;

        font-size: 15px;

        border-radius: 10px;

    }

    

    .form-group label .toggle-current-password,

    .form-group label .toggle-new-password,

    .form-group label .toggle-confirm-password {

        margin-left: 6px;

        padding: 4px;

        font-size: 12px;

        width: 24px;

        height: 24px;

        border-radius: 6px;

    }

    

    .password-strength {

        margin-top: 8px;

    }

    

    .strength-indicator {

        padding: 10px;

        border-radius: 8px;

    }

    

    .password-match {

        margin-top: 8px;

        padding: 10px;

        border-radius: 8px;

    }

    

    .password-requirements {

        padding: 12px;

        margin-top: 12px;

        border-radius: 10px;

    }

    

    .requirements-list {

        gap: 6px;

    }

    

    .requirement-item {

        padding: 6px 10px;

        font-size: 13px;

        border-radius: 6px;

    }

    

    .change-password-btn {

        padding: 14px 20px;

        font-size: 15px;

    }

}



.security-info {

    display: grid;

    gap: 16px;

}



.info-item {

    display: flex;

    align-items: center;

    padding: 16px;

    background: var(--bg-secondary);

    border-radius: 8px;

    border: 1px solid var(--border-color);

}
.info-item i {

    font-size: 20px;

    color: var(--primary-color);

    margin-left: 16px;

}



.info-content h4 {

    margin: 0 0 4px 0;

    color: var(--text-primary);

    font-size: 16px;

    font-weight: 600;

}



.info-content p {

    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;

}



.admin-search {

    margin-bottom: 2rem;

}



.admin-search input {

    width: 100%;

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    padding: 12px;

    color: var(--text-primary);

    font-family: inherit;

}



.channels-list {

    display: grid;

    gap: 1rem;

    /* منع الترميش الأبيض */

    overscroll-behavior: none;

    -webkit-overflow-scrolling: touch;

}



.admin-channel-item {

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    padding: 1rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    transition: all 0.3s ease;

    cursor: move;

    position: relative;

    margin-bottom: 8px;

}



.admin-channel-item:hover {

    background: var(--accent-color);

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}



.admin-channel-item.dragging {

    opacity: 0.5;

    transform: rotate(2deg);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

}



.admin-channel-item.drag-over {

    border-color: var(--highlight-color);

    background: var(--highlight-color);

    opacity: 0.7;

}



.drag-handle {

    cursor: grab;

    color: var(--text-secondary);

    margin-left: 8px;

    font-size: 1.2rem;

    transition: color 0.2s ease;

}



.drag-handle:hover {

    color: var(--highlight-color);

}



.drag-handle:active {

    cursor: grabbing;

}



.admin-channel-info {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.admin-channel-logo {

    width: 45px;

    height: 45px;

    object-fit: contain;

    border-radius: 8px;

    transition: var(--transition);

    filter: brightness(1) contrast(1.1);

    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));

    padding: 3px;

}



.admin-channel-logo:hover {

    transform: scale(1.1);

    filter: brightness(1.1) contrast(1.2);

}



.admin-channel-logo.admin-placeholder-logo {

    object-fit: cover;

    background: none;

    padding: 0;

}



.admin-channel-actions {

    display: flex;

    gap: 8px;

    align-items: center;

}



.move-buttons {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-left: 8px;

}



.position-controls {

    display: flex;

    align-items: center;

    gap: 6px;

    background: var(--background-light);

    padding: 6px 8px;

    border-radius: 6px;

    border: 1px solid var(--border-color);

}



.position-label {

    font-size: 0.8rem;

    color: var(--text-secondary);

    white-space: nowrap;

}



.position-input {

    width: 90px;

    padding: 8px 10px;

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 6px;

    color: var(--text-primary);

    font-size: 1rem;

    text-align: center;

    transition: var(--transition);

}



.position-input:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);

}



.position-input:invalid {

    border-color: #ff4757;

}



.arrow-buttons {

    display: flex;

    gap: 4px;

    flex-wrap: wrap;

}



.arrow-buttons .move-btn {

    min-width: 32px;

    height: 32px;

    padding: 6px;

    font-size: 0.8rem;

}
.move-btn {

    background: transparent;

    border: 1px solid var(--border-color);

    color: var(--text-secondary);

    width: 32px;

    height: 24px;

    border-radius: 4px;

    cursor: pointer;

    transition: var(--transition);

    font-size: 0.8rem;

    display: flex;

    align-items: center;

    justify-content: center;

}



.move-btn:hover {

    background: var(--highlight-color);

    border-color: var(--highlight-color);

    color: white;

    transform: scale(1.1);

}



.move-btn:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

}



.save-order-container {

    position: fixed;

    bottom: 15px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;

    padding: 8px 12px;

    background: var(--background-dark);

    border-radius: 8px;

    border: 2px solid var(--highlight-color);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(233, 69, 96, 0.25);

    text-align: center;

    backdrop-filter: blur(10px);

    animation: slideUp 0.3s ease-out;

}



@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateX(-50%) translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateX(-50%) translateY(0);

    }

}



.save-order-actions {

    display: flex;

    gap: 8px;

    justify-content: center;

    flex-wrap: wrap;

}





.save-order-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 8px 20px;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 600;

    transition: var(--transition);

    font-family: inherit;

    font-size: 0.875rem;

    display: flex;

    align-items: center;

    gap: 0.4rem;

    justify-content: center;

    min-width: 140px;

    white-space: nowrap;

}



.save-order-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);

}



.save-order-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}



.order-info {

    color: var(--text-secondary);

    font-size: 0.8rem;

    margin-bottom: 8px;

    line-height: 1.3;

}



.edit-btn, .delete-btn {

    background: transparent;

    border: 1px solid var(--border-color);

    color: var(--text-primary);

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

}



.edit-btn:hover {

    background: var(--accent-color);

    border-color: var(--accent-color);

}



.save-btn {

    background: linear-gradient(45deg, #10b981, #059669);

    border: 1px solid #10b981;

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-weight: 600;

}



.save-btn:hover {

    background: linear-gradient(45deg, #059669, #047857);

    border-color: #059669;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);

}



.delete-btn:hover {

    background: var(--highlight-color);

    border-color: var(--highlight-color);

}



/* Add Channel Form */

.add-channel-form {

    max-width: 800px;

    padding-bottom: 2rem;

}
/* Form Layout - Two Columns */

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2rem;

    margin-bottom: 2rem;

}



.form-column {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}



.form-actions {

    display: flex;

    justify-content: center;

    gap: 1rem;

    margin-top: 2rem;

    padding-top: 1rem;

    border-top: 1px solid var(--border-color);

}



.reset-btn {

    background: var(--background-darker);

    color: var(--text-secondary);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    padding: 0.75rem 1.5rem;

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.reset-btn:hover {

    background: var(--background-light);

    color: var(--text-primary);

    border-color: var(--highlight-color);

    transform: translateY(-1px);

}



.reset-btn:active {

    transform: translateY(0);

}



.form-group {

    margin-bottom: 0.6rem;

}



.form-group label {

    display: block;

    margin-bottom: 0.25rem;

    font-weight: 500;

    color: var(--text-primary);

    font-size: 0.85rem;

}



.form-group input,

.form-group select {

    width: 100%;

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 5px;

    padding: 6px;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 0.85rem;

    transition: var(--transition);

}



.form-group input:focus,

.form-group select:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);

}



/* Logo Upload Styles */

.logo-upload-group {

    margin-bottom: 1rem;

}



.logo-upload-container {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    align-items: flex-start;

}
.logo-upload-btn {

    background: linear-gradient(45deg, #4f46e5, #7c3aed);

    color: white;

    border: none;

    padding: 8px 16px;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.85rem;

    font-weight: 500;

    transition: all 0.3s ease;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



.logo-upload-btn:hover {

    background: linear-gradient(45deg, #4338ca, #6d28d9);

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

}



.logo-upload-btn:active {

    transform: translateY(0);

}



.logo-preview {

    position: relative;

    display: inline-block;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    border: 2px solid var(--border-color);

}



.logo-preview img {

    width: 80px;

    height: 80px;

    object-fit: cover;

    display: block;

}



.remove-logo-btn {

    position: absolute;

    top: -8px;

    right: -8px;

    background: #ef4444;

    color: white;

    border: none;

    border-radius: 50%;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    font-size: 12px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    transition: all 0.2s ease;

}



.remove-logo-btn:hover {

    background: #dc2626;

    transform: scale(1.1);

}



.form-help {

    color: #6b7280;

    font-size: 0.75rem;

    margin-top: 0.25rem;

    display: block;

}



.add-btn, .save-settings-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 6px 12px;

    border-radius: 5px;

    cursor: pointer;

    font-weight: 600;

    font-size: 0.85rem;

    transition: var(--transition);

    font-family: inherit;

}



.add-btn:hover, .save-settings-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);

}



.admin-setting-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1rem 0;

    border-bottom: 1px solid var(--border-color);

}



.admin-setting-item:last-child {

    border-bottom: none;

}



.admin-setting-item input {

    width: 200px;

}



/* Animations */

@keyframes spin {

    0% { transform: rotate(0deg); }

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

}



@keyframes pulse {

    0%, 100% { opacity: 1; }

    50% { opacity: 0.5; }

}



@keyframes fadeIn {

    from { opacity: 0; transform: scale(0.9); }

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

}



/* Beautiful Notifications System - Enhanced */

.notifications-container {

    position: fixed;

    top: 20px;

    right: 20px;

    z-index: 20000;

    display: flex;

    flex-direction: column;

    gap: 12px;

    max-width: 320px;

    pointer-events: none;

}



/* Scroll to Top Button */

.scroll-to-top-btn {

    position: fixed;

    bottom: 30px;

    right: 30px;

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, var(--highlight-color), #10b981);

    border: none;

    border-radius: 50%;

    color: white;

    font-size: 1.2rem;

    cursor: pointer;

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    display: flex;

    align-items: center;

    justify-content: center;

}



.scroll-to-top-btn:hover {

    background: linear-gradient(135deg, #10b981, var(--highlight-color));

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

}



.scroll-to-top-btn:active {

    transform: translateY(0);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

}



.scroll-to-top-btn.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.scroll-to-top-btn i {

    transition: transform 0.3s ease;

}
.scroll-to-top-btn:hover i {

    transform: translateY(-2px);

}



.notification {

    background: var(--background-dark);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    padding: 12px 16px;

    box-shadow: 

        0 8px 32px rgba(0, 0, 0, 0.2),

        0 0 0 1px rgba(255, 255, 255, 0.05),

        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(16px);

    display: flex;

    align-items: flex-start;

    gap: 12px;

    transform: translateX(100px);

    opacity: 0;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: auto;

    position: relative;

    overflow: hidden;

    cursor: pointer;

    min-height: 50px;

}



.notification.show {

    transform: translateX(0) scale(1);

    opacity: 1;

}



.notification.hide {

    transform: translateX(100px) scale(0.8);

    opacity: 0;

}



.notification::before {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: linear-gradient(90deg, var(--highlight-color), #4f46e5, #7c3aed);

    animation: notificationProgress 5s linear;

    border-radius: 0 0 20px 20px;

}



@keyframes notificationProgress {

    0% { width: 100%; }

    100% { width: 0%; }

}



.notification-icon {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    color: white;

    flex-shrink: 0;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

    position: relative;

    overflow: hidden;

}



.notification-icon::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);

    border-radius: 16px;

}



.notification-icon.success {

    background: linear-gradient(135deg, #10b981, #059669, #047857);

    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);

}



.notification-icon.error {

    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);

    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);

}



.notification-icon.info {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);

    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);

}



.notification-icon.warning {

    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);

    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);

}



.notification-content {

    flex: 1;

    min-width: 0;

    padding-top: 2px;

}



.notification-title {

    font-weight: 600;

    font-size: 0.9rem;

    color: var(--text-primary);

    margin-bottom: 4px;

    line-height: 1.2;

    letter-spacing: -0.01em;

}



.notification-message {

    font-size: 0.8rem;

    color: var(--text-secondary);

    line-height: 1.3;

    word-break: break-word;

    font-weight: 400;

}
.notification-close {

    width: 24px;

    height: 24px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--text-secondary);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    flex-shrink: 0;

    margin-top: 2px;

}



.notification-close:hover {

    background: rgba(255, 255, 255, 0.15);

    color: var(--text-primary);

    transform: scale(1.05);

    border-color: rgba(255, 255, 255, 0.2);

}



/* تحسين الإشعارات للوضع الفاتح */

body[data-theme="light"] .notification {

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow: 

        0 20px 60px rgba(0, 0, 0, 0.1),

        0 0 0 1px rgba(0, 0, 0, 0.05),

        inset 0 1px 0 rgba(255, 255, 255, 0.8);

}



body[data-theme="light"] .notification-close {

    background: rgba(0, 0, 0, 0.06);

    border-color: rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .notification-close:hover {

    background: rgba(0, 0, 0, 0.12);

    border-color: rgba(0, 0, 0, 0.15);

}



/* أنيميشن دخول وخروج محسن */

@keyframes notificationSlideIn {

    0% {

        transform: translateX(100px);

        opacity: 0;

    }

    100% {

        transform: translateX(0);

        opacity: 1;

    }

}



@keyframes notificationSlideOut {

    0% {

        transform: translateX(0);

        opacity: 1;

    }

    100% {

        transform: translateX(100px);

        opacity: 0;

    }

}



.notification.entering {

    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}



.notification.exiting {

    animation: notificationSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}
/* إعدادات خاصة بالكمبيوتر - إشعارات أصغر */

@media (min-width: 1024px) {

    .notifications-container {

        max-width: 280px;

        gap: 10px;

    }

    

    .notification {

        padding: 10px 14px;

        min-height: 45px;

        gap: 10px;

    }

    

    .notification-icon {

        width: 32px;

        height: 32px;

        font-size: 14px;

    }

    

    .notification-title {

        font-size: 0.85rem;

        margin-bottom: 3px;

    }

    

    .notification-message {

        font-size: 0.75rem;

        line-height: 1.2;

    }

    

    .notification-close {

        width: 20px;

        height: 20px;

        font-size: 10px;

    }

}



/* إعدادات خاصة بشاشات الكمبيوتر الكبيرة - إشعارات أصغر جداً */

@media (min-width: 1440px) {

    .notifications-container {

        max-width: 240px;

        gap: 8px;

    }

    

    .notification {

        padding: 8px 12px;

        min-height: 40px;

        gap: 8px;

        border-radius: 8px;

    }

    

    .notification-icon {

        width: 28px;

        height: 28px;

        font-size: 12px;

        border-radius: 8px;

    }

    

    .notification-title {

        font-size: 0.8rem;

        margin-bottom: 2px;

    }

    

    .notification-message {

        font-size: 0.7rem;

        line-height: 1.1;

    }

    

    .notification-close {

        width: 18px;

        height: 18px;

        font-size: 9px;

        border-radius: 6px;

    }

}



/* إشعار التحديث المتاح */

.notification.update-available {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    border: 1px solid rgba(59, 130, 246, 0.3);

    color: white;

}



.notification.update-available .notification-icon {

    background: rgba(255, 255, 255, 0.2);

    color: white;

}



.notification.update-available .notification-text h4 {

    color: white;

    margin-bottom: 8px;

}



.notification.update-available .notification-text p {

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 8px;

}



.notification.update-available .notification-text small {

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.7rem;

}



.notification-actions {

    display: flex;

    gap: 8px;

    margin-top: 12px;

}



.notification-actions .btn-primary,

.notification-actions .btn-secondary {

    padding: 6px 12px;

    border-radius: 6px;

    font-size: 0.8rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    border: none;

    display: flex;

    align-items: center;

    gap: 4px;

}



.notification-actions .btn-primary {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.3);

}



.notification-actions .btn-primary:hover {

    background: rgba(255, 255, 255, 0.3);

    transform: translateY(-1px);

}



.notification-actions .btn-secondary {

    background: rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.notification-actions .btn-secondary:hover {

    background: rgba(255, 255, 255, 0.2);

    color: white;

}



/* New Navigation Enhancements */



/* Breadcrumbs */

.breadcrumbs-container {

    background: linear-gradient(135deg, var(--background-light), var(--secondary-color));

    border-bottom: 1px solid var(--border-color);

    padding: 0.75rem 0;

    position: sticky;

    top: 80px;

    z-index: 998;

    backdrop-filter: blur(10px);

}



.breadcrumbs {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.5rem;

    font-size: 0.9rem;

}



.breadcrumb-item {

    color: var(--text-secondary);

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 0.75rem;

    border-radius: 8px;

    transition: var(--transition);

}



.breadcrumb-item:hover {

    color: var(--text-primary);

    background: var(--accent-color);

}



.breadcrumb-item.active {

    color: var(--highlight-color);

    font-weight: 600;

}



.breadcrumb-separator {

    color: var(--text-secondary);

    font-weight: 300;

}



.breadcrumb-current {

    color: var(--text-primary);

    font-weight: 600;

}
.channel-stats {

    margin-right: auto;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.stats-text {

    color: var(--text-secondary);

    font-size: 0.85rem;

}



.last-update-text {

    color: var(--text-secondary);

    font-size: 0.85rem;

    margin-right: 1rem;

}



.stats-text strong {

    color: var(--highlight-color);

}



.last-update-text strong {

    color: var(--highlight-color);

}



.update-date {

    color: var(--highlight-color);

    font-weight: 600;

}



.update-date .time-part {

    color: #ff6b6b;

    font-weight: 700;

}



.update-time-text {

    color: var(--text-secondary);

    font-size: 0.75rem;

    opacity: 0.9;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));

    padding: 0.25rem 0.5rem;

    border-radius: 8px;

    border: 1px solid rgba(59, 130, 246, 0.2);

    backdrop-filter: blur(5px);

    transition: all 0.3s ease;

    flex-shrink: 0;

}



.update-time-text:hover {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));

    border-color: rgba(59, 130, 246, 0.3);

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);

}



.update-time-text i {

    color: var(--highlight-color);

    margin-left: 0.25rem;

    font-size: 0.7rem;

    opacity: 0.8;

}



.update-time-text #lastUpdateTime {

    color: var(--highlight-color);

    font-weight: 600;

    font-family: 'Cairo', sans-serif;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}





/* Quick Actions */

.quick-actions {

    display: flex;

    gap: 0.5rem;

    align-items: center;

    margin-left: 1rem;

}



.quick-action-btn {

    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--text-primary);

    width: 44px;

    height: 44px;

    border-radius: 12px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    font-size: 1rem;

}



.quick-action-btn:hover {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);

}



.favorites-count {

    position: absolute;

    top: -8px;

    right: -8px;

    background: var(--highlight-color);

    color: white;

    font-size: 0.7rem;

    font-weight: 600;

    padding: 2px 6px;

    border-radius: 12px;

    min-width: 18px;

    text-align: center;

    display: none;

}



.favorites-count.show {

    display: block;

}



/* Search Filters */

.search-filters {

    display: flex;

    gap: 0.5rem;

    margin-top: 0.75rem;

    justify-content: center;

    flex-wrap: wrap;

}
.filter-btn {

    background: var(--background-dark);

    border: 2px solid var(--border-color);

    color: var(--text-secondary);

    padding: 8px 16px;

    border-radius: 25px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.5rem;

    font-size: 0.9rem;

    font-weight: 500;

}



.filter-btn:hover {

    border-color: var(--highlight-color);

    color: var(--text-primary);

    background: var(--accent-color);

}



.filter-btn.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    border-color: var(--highlight-color);

    color: white;

}



.filter-btn i:last-child {

    font-size: 0.8rem;

    transition: transform 0.3s ease;

}



.filter-btn.open i:last-child {

    transform: rotate(180deg);

}





.channel-card {
    position: relative;
}




    position: absolute;

    top: 12px;

    right: 12px;

    background: rgba(0, 0, 0, 0.8);

    border: 2px solid rgba(255, 255, 255, 0.2);

    color: white;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem;

    backdrop-filter: blur(10px);

    z-index: 2;

    opacity: 1;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

}



.favorite-btn:hover {

    background: var(--highlight-color);

    border-color: rgba(255, 255, 255, 0.4);

    transform: scale(1.1);

    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);

}



.favorite-btn.favorited {

    background: var(--highlight-color);

    border-color: rgba(255, 255, 255, 0.4);

    opacity: 1;

    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);

}
.favorite-btn.favorited i {

    color: white;

}



.favorite-btn i {

    transition: var(--transition);

}



.favorite-btn.favorited i:before {

    content: "\f004"; /* Solid heart */

}



/* Channel Actions (Edit and Delete Icons) */

.channel-actions {

    position: absolute;

    top: 12px;

    left: 12px;

    display: flex;

    gap: 8px;

    opacity: 0;

    transition: var(--transition);

    z-index: 3;

}



.channel-card:hover .channel-actions {

    opacity: 1;

}



.channel-edit-btn,

.channel-delete-btn {

    background: rgba(0, 0, 0, 0.7);

    border: none;

    color: white;

    width: 32px;

    height: 32px;

    border-radius: 50%;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.9rem;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.channel-edit-btn:hover {

    background: #3b82f6;

    transform: scale(1.1);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);

}



.channel-delete-btn:hover {

    background: #ef4444;

    transform: scale(1.1);

    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);

}



.channel-edit-btn:active,

.channel-delete-btn:active {

    transform: scale(0.95);

}



/* Enhanced Mobile Navigation */

.mobile-nav-filters {

    padding: 1rem 1.5rem;

    border-top: 1px solid var(--border-color);

}



.mobile-filter-btn {

    width: 100%;

    background: var(--background-light);

    border: 1px solid var(--border-color);

    color: var(--text-primary);

    padding: 12px 16px;

    border-radius: 12px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 0.5rem;

}



.mobile-filter-btn:hover {

    background: var(--accent-color);

    border-color: var(--highlight-color);

}



.mobile-filter-btn.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border-color: var(--highlight-color);

}



.mobile-favorites-count {

    background: var(--highlight-color);

    color: white;

    font-size: 0.7rem;

    font-weight: 600;

    padding: 2px 6px;

    border-radius: 12px;

    min-width: 18px;

    text-align: center;

    display: none;

}



.mobile-favorites-count.show {

    display: inline-block;

}



/* Light Theme Adjustments for New Elements */

body[data-theme="light"] .breadcrumbs-container {

    background: linear-gradient(135deg, #ffffff, #f8fafc);

    border-bottom: 1px solid #e2e8f0;

}



body[data-theme="light"] .breadcrumb-item:hover {

    background: #f1f5f9;

}



/* Light theme for mobile breadcrumbs */

body[data-theme="light"] .breadcrumb-item {

    background: rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .breadcrumb-item:hover {

    background: rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .update-time-text {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.08));

    border-color: rgba(59, 130, 246, 0.15);

    color: #4a5568;

}



body[data-theme="light"] .update-time-text:hover {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));

    border-color: rgba(59, 130, 246, 0.25);

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);

}



body[data-theme="light"] .update-time-text i {

    color: #3b82f6;

}



body[data-theme="light"] .update-time-text #lastUpdateTime {

    color: #3b82f6;

    text-shadow: none;

}





body[data-theme="light"] .breadcrumb-item.active {

    background: #3b82f6;

    color: white;

    border-color: #3b82f6;

}



body[data-theme="light"] .quick-action-btn {

    background: linear-gradient(135deg, #f1f5f9, #ffffff);

    border: 1px solid #e2e8f0;

    color: #64748b;

}



body[data-theme="light"] .quick-action-btn:hover {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .filter-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #64748b;

}



body[data-theme="light"] .filter-btn:hover {

    background: #f1f5f9;

    border-color: #3b82f6;

    color: #1e293b;

}



body[data-theme="light"] .filter-btn.active {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    border-color: #3b82f6;

}
/* =================================
   Player Channel Navigation Buttons
   أزرار التنقل بين القنوات (السابقة/التالية)
   تظهر على الكومبيوتر فقط
   ================================= */
.player-channel-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.player-channel-nav .player-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.player-channel-nav .player-nav-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.player-channel-nav .player-nav-btn.prev {
    right: 12px; /* RTL: previous on the right */
}

.player-channel-nav .player-nav-btn.next {
    left: 12px; /* RTL: next on the left */
}

/* =================================
   Mobile: Hide Channel Nav Buttons
   إخفاء أزرار التنقل على الهاتف
   ================================= */
@media (max-width: 768px) {
    .player-channel-nav {
        display: none !important;
    }
}
body[data-theme="light"] .favorite-btn {

    background: rgba(255, 255, 255, 0.95);

    border-color: rgba(0, 0, 0, 0.1);

    color: #64748b;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

}



body[data-theme="light"] .favorite-btn:hover {

    background: #3b82f6;

    border-color: rgba(255, 255, 255, 0.4);

    color: white;

    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);

}



body[data-theme="light"] .favorite-btn.favorited {

    background: #3b82f6;

    border-color: rgba(255, 255, 255, 0.4);

    color: white;

    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);

}



/* Light theme for Picture-in-Picture buttons */

body[data-theme="light"] .pip-btn {

    background: transparent;

    color: #64748b;

    border-color: #e2e8f0;

}



body[data-theme="light"] .pip-btn:hover {

    background: #3b82f6;

    border-color: #3b82f6;

    color: white;

}



body[data-theme="light"] .pip-btn.pip-active {

    background: #3b82f6;

    border-color: #3b82f6;

    color: white;

}
/* Mobile Video Player Controls */

@media (max-width: 768px) {

    .modal-controls {

        display: flex;

        flex-direction: row;

        gap: 6px;

        padding: 0.5rem;

        background: transparent;

        border-radius: 0;

        margin-top: 0;

        justify-content: center;

    }

    

    .quality-btn, .pip-btn, .fullscreen-btn, .close-btn {

        padding: 8px 10px;

        font-size: 0.75rem;

        min-width: 42px;

        min-height: 40px;

        border-radius: 8px;

        flex: 1;

        max-width: 70px;

        justify-content: center;

        background: var(--secondary-color);

        border: 2px solid var(--border-color);

        color: var(--text-primary);

        transition: all 0.3s ease;

        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

        display: flex;

        align-items: center;

    }

    

    .quality-btn:active, .pip-btn:active, .fullscreen-btn:active, .close-btn:active {

        background: var(--highlight-color);

        border-color: var(--highlight-color);

        transform: scale(0.95);

    }

    

    .quality-btn span, .pip-btn span, .fullscreen-btn span {

        display: none;

    }

    

    .quality-btn i, .pip-btn i, .fullscreen-btn i, .close-btn i {

        font-size: 1.2rem;

        margin: 0;

    }

    

    .quality-display {

        display: none;

    }

    

    .quality-control-container {

        position: relative;

    }

    

    .quality-menu {

        position: absolute;

        top: calc(100% + 8px);

        right: 0;

        background: var(--secondary-color);

        border: 1px solid var(--highlight-color);

        border-radius: 8px;

        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

        z-index: 1000;

        min-width: 200px;

        max-width: 280px;

        max-height: 300px;

        backdrop-filter: blur(8px);

        margin-top: 8px;

        overflow-y: auto;

    }

    

    .quality-option {

        padding: 10px 14px;

        gap: 10px;

        font-size: 0.85rem;

        border-radius: 8px;

        margin: 2px 8px;

    }

    

    .quality-option i:first-child {

        width: 16px;

        font-size: 0.9rem;

    }

    

    .quality-option span {

        font-size: 0.8rem;

    }

    

    .modal-header {

        flex-direction: column;

        gap: 0.5rem;

        padding: 1rem 0.75rem 0.75rem;

    }

    

    .modal-header h3 {

        font-size: 1.1rem;

        text-align: center;

        margin: 0;

        color: var(--text-primary);

        font-weight: 700;

        flex-shrink: 0;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

        max-width: 100%;

    }

    

    .channel-title-container {

        flex-direction: column;

        gap: 0.5rem;

        text-align: center;

        justify-content: center;

        align-items: center;

        width: 100%;

    }

    

    .channel-country {

        font-size: 0.7rem;

        padding: 0.25rem 0.6rem;

        gap: 0.3rem;

    }

    

    .channel-country i {

        font-size: 0.65rem;

    }

}
@media (max-width: 480px) {

    .modal-controls {

        gap: 5px;

        padding: 0.4rem;

    }

    

    .quality-btn, .pip-btn, .fullscreen-btn, .close-btn {

        padding: 7px 8px;

        font-size: 0.7rem;

        min-width: 38px;

        min-height: 38px;

        max-width: 65px;

        border-radius: 8px;

    }

    

    .quality-btn i, .pip-btn i, .fullscreen-btn i, .close-btn i {

        font-size: 0.9rem;

    }

    

    .modal-header h3 {

        font-size: 1.1rem;

    }

    

    .channel-title-container {

        flex-direction: row;

        gap: 0.4rem;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

    }

    

    .channel-country {

        font-size: 0.65rem;

        padding: 0.2rem 0.5rem;

        gap: 0.25rem;

    }

    

    .channel-country i {

        font-size: 0.6rem;

    }

    

    .quality-menu {

        position: absolute;

        top: calc(100% + 8px);

        right: 0;

        min-width: 180px;

        max-width: 240px;

        max-height: 250px;

        font-size: 0.8rem;

        border-radius: 8px;

        margin-top: 6px;

        overflow-y: auto;

    }

    

    .quality-option {

        padding: 8px 12px;

        gap: 8px;

        font-size: 0.8rem;

        border-radius: 6px;

        margin: 1px 6px;

    }

    

    .quality-option i:first-child {

        width: 14px;

        font-size: 0.8rem;

    }

    

    .quality-option span {

        font-size: 0.75rem;

    }

    

    .modal-header {

        padding: 1rem;

        gap: 0.5rem;

    }

}



@media (max-width: 375px) {

    .modal-controls {

        gap: 4px;

        padding: 0.4rem;

        margin-top: 0.25rem;

    }

    

    .quality-btn, .pip-btn, .fullscreen-btn, .close-btn {

        padding: 6px 8px;

        font-size: 0.75rem;

        min-width: 40px;

        min-height: 40px;

        border-radius: 8px;

        max-width: 70px;

    }

    

    .quality-btn i, .pip-btn i, .fullscreen-btn i, .close-btn i {

        font-size: 0.9rem;

    }

    

    .modal-header h3 {

        font-size: 1rem;

    }

    

    .channel-title-container {

        flex-direction: row;

        gap: 0.3rem;

        justify-content: center;

        align-items: center;

        flex-wrap: nowrap;

        max-width: 100%;

    }

    

    .modal-header h3 {

        font-size: 0.9rem;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

        max-width: 60%;

    }

    

    .channel-country {

        font-size: 0.6rem;

        padding: 0.15rem 0.4rem;

        gap: 0.2rem;

    }

    

    .channel-country i {

        font-size: 0.55rem;

    }

    

    .quality-menu {

        position: absolute;

        top: calc(100% + 8px);

        right: 0;

        min-width: 160px;

        max-width: 220px;

        max-height: 200px;

        font-size: 0.75rem;

        border-radius: 6px;

        margin-top: 4px;

        overflow-y: auto;

    }

    

    .quality-option {

        padding: 6px 10px;

        gap: 6px;

        font-size: 0.75rem;

        border-radius: 5px;

        margin: 1px 4px;

    }

    

    .quality-option i:first-child {

        width: 12px;

        font-size: 0.75rem;

    }

    

    .quality-option span {

        font-size: 0.7rem;

    }

    

    .modal-header {

        padding: 0.75rem;

        gap: 0.4rem;

    }

}



/* شاشات صغيرة جداً - تحسين إضافي لقائمة الجودة */

@media (max-width: 320px) {

    .quality-menu {

        position: fixed;

        top: 5px;

        right: 5px;

        left: 5px;

        min-width: 140px;

        max-width: 200px;

        max-height: 180px;

        font-size: 0.7rem;

        border-radius: 6px;

        margin: 0;

        overflow-y: auto;

        z-index: 10000;

        background: linear-gradient(135deg, var(--background-dark), var(--secondary-color));

        border: 2px solid var(--highlight-color);

        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);

        backdrop-filter: blur(15px);

    }

    

    .quality-option {

        padding: 5px 8px;

        gap: 5px;

        font-size: 0.7rem;

        border-radius: 4px;

        margin: 1px 3px;

    }

    

    .quality-option i:first-child {

        width: 12px;

        font-size: 0.7rem;

    }

    

    .quality-option span {

        font-size: 0.65rem;

    }

}
/* تحسينات إضافية لقائمة الجودة في الهاتف */

@media (max-width: 768px) {

    .quality-control-container {

        position: relative;

        display: flex;

        justify-content: center;

    }

    

    .quality-menu {

        position: fixed;

        top: 10px;

        right: 10px;

        left: 10px;

        transform: translateY(0);

        margin: 0;

        max-height: 50vh;

        z-index: 10000;

        background: linear-gradient(135deg, var(--background-dark), var(--secondary-color));

        border: 2px solid var(--highlight-color);

        border-radius: 12px;

        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);

        backdrop-filter: blur(20px);

    }

    

    .quality-menu.show {

        transform: translateY(0);

        animation: slideDownFade 0.3s ease-out;

    }

    

    @keyframes slideDownFade {

        from {

            opacity: 0;

            transform: translateY(-20px);

        }

        to {

            opacity: 1;

            transform: translateY(0);

        }

    }

}
/* Mobile Video Player Additional Elements */

@media (max-width: 768px) {

    .live-indicator {

        font-size: 0.85rem;

        padding: 6px 12px;

        border-radius: 16px;

        background: linear-gradient(135deg, #ff4444, #cc0000);

        color: white;

        font-weight: 600;

        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);

        border: 2px solid rgba(255, 255, 255, 0.2);

    }

    

    .live-dot {

        width: 8px;

        height: 8px;

        background: #fff;

        animation: pulse 2s infinite;

    }

    

    .channel-logo-overlay {

        max-width: 70px;

        max-height: 70px;

        bottom: 15px;

        right: 15px;

        background: rgba(0, 0, 0, 0.7);

        border-radius: 12px;

        padding: 8px;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

    }

    

    .news-ticker {

        font-size: 0.8rem;

        padding: 10px 16px;

        background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));

        border-radius: 8px;

        margin: 0 10px;

    }

    

    .news-ticker-label {

        font-size: 0.75rem;

    }

}



@media (max-width: 480px) {

    .live-indicator {

        font-size: 0.75rem;

        padding: 3px 6px;

        border-radius: 10px;

    }

    

    .live-dot {

        width: 5px;

        height: 5px;

    }

    

    .channel-logo-overlay {

        max-width: 50px;

        max-height: 50px;

        bottom: 8px;

        right: 8px;

    }

    

    .news-ticker {

        font-size: 0.7rem;

        padding: 6px 10px;

    }

    

    .news-ticker-label {

        font-size: 0.65rem;

    }

}



@media (max-width: 375px) {

    .live-indicator {

        font-size: 0.7rem;

        padding: 2px 5px;

        border-radius: 8px;

    }

    

    .live-dot {

        width: 4px;

        height: 4px;

    }

    

    .channel-logo-overlay {

        max-width: 40px;

        max-height: 40px;

        bottom: 6px;

        right: 6px;

    }

    

    .news-ticker {

        font-size: 0.65rem;

        padding: 5px 8px;

    }

    

    .news-ticker-label {

        font-size: 0.6rem;

    }

}



/* Light theme for channel actions */

body[data-theme="light"] .channel-edit-btn,

body[data-theme="light"] .channel-delete-btn {

    background: rgba(255, 255, 255, 0.9);

    color: #64748b;

    border: 1px solid rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .channel-edit-btn:hover {

    background: #3b82f6;

    color: white;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .channel-delete-btn:hover {

    background: #ef4444;

    color: white;

    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);

}





/* Light Theme for Header Elements */

body[data-theme="light"] .header-search-input {

    background: rgba(0, 0, 0, 0.05);

    border: 2px solid rgba(0, 0, 0, 0.1);

    color: #1e293b;

}



body[data-theme="light"] .header-search-input::placeholder {

    color: rgba(0, 0, 0, 0.5);

}



body[data-theme="light"] .header-search-input:focus {

    border-color: #3b82f6;

    background: rgba(0, 0, 0, 0.08);

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);

}



body[data-theme="light"] .header-search-icon {

    color: rgba(0, 0, 0, 0.5);

}



/* Theme Toggle for Light Mode */

body[data-theme="light"] .theme-slider {

    background-color: #3b82f6;

    border-color: rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .theme-switch .moon svg {

    fill: #3b82f6;

}
body[data-theme="light"] .theme-input:checked + .theme-slider {

    background-color: #1e293b;

    border-color: rgba(0, 0, 0, 0.2);

}



body[data-theme="light"] .theme-input:checked + .theme-slider:before {

    background-color: #ffffff;

}









.mobile-filters-section {

    display: flex;

    gap: 0.75rem;

    flex-wrap: wrap;

}



.mobile-main-filter-btn {

    background: var(--background-dark);

    border: 2px solid var(--border-color);

    color: var(--text-secondary);

    padding: 12px 16px;

    border-radius: 20px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.5rem;

    font-size: 0.9rem;

    font-weight: 500;

    font-family: inherit;

    white-space: nowrap;

    flex: 1;

    min-width: 0;

    justify-content: center;

}



.mobile-main-filter-btn:hover {

    border-color: var(--highlight-color);

    color: var(--text-primary);

    background: var(--accent-color);

}



.mobile-main-filter-btn.active {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    border-color: var(--highlight-color);

    color: white;

}



.mobile-main-filter-btn i:last-child {

    font-size: 0.8rem;

    transition: transform 0.3s ease;

}



.mobile-main-filter-btn.open i:last-child {

    transform: rotate(180deg);

}





/* Mobile Sidebar Navigation Tabs */

.mobile-sidebar-nav-tabs {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 0 15px;

}



.mobile-sidebar-nav-tab {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 15px;

    background: none;

    border: none;

    color: var(--text-secondary);

    text-align: right;

    cursor: pointer;

    border-radius: 8px;

    transition: color 0.2s ease, background-color 0.2s ease;

    position: relative;

    width: 100%;

}



.mobile-sidebar-nav-tab:hover {

    color: var(--text-primary);

    background-color: rgba(255, 255, 255, 0.1);

}



.mobile-sidebar-nav-tab.active {

    background-color: var(--highlight-color);

    color: white;

}



.mobile-sidebar-nav-tab i {

    font-size: 1.1rem;

    width: 20px;

    text-align: center;

}



.mobile-sidebar-nav-tab span {

    flex: 1;

    font-size: 0.95rem;

    font-weight: 500;

}



.mobile-sidebar-nav-tab .tab-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    padding: 2px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: 600;

    min-width: 20px;

    text-align: center;

}



/* Light theme for mobile sidebar nav tabs */

body[data-theme="light"] .mobile-sidebar-nav-tab {

    color: #475569;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid #e2e8f0;

    transition: all 0.3s ease;

    font-weight: 500;

}



body[data-theme="light"] .mobile-sidebar-nav-tab:hover {

    color: #1e293b;

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    transform: translateX(-2px);

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .mobile-sidebar-nav-tab.active {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border-color: #1d4ed8;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);

    font-weight: 600;

}



/* Mobile Sidebar Actions */

.mobile-sidebar-actions {

    padding: 0;

    border-top: 1px solid var(--border-color);

    margin-top: auto;

}



.mobile-sidebar-action-btn {

    width: 100%;

    background: transparent;

    border: none;

    color: var(--text-secondary);

    padding: 0.75rem 1.5rem;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 0.75rem;

    font-family: inherit;

    font-size: 0.95rem;

    font-weight: 500;

    text-align: right;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.mobile-sidebar-action-btn:last-child {

    border-bottom: none;

}



.mobile-sidebar-action-btn:hover {

    background: var(--accent-color);

    color: var(--text-primary);

    padding-right: 2rem;

}



/* Mobile Update Channels Button Special Styles */

.mobile-sidebar-action-btn[onclick="updateChannels(); app.closeMobileMenu();"] {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));

    color: #10b981;

    border-bottom-color: rgba(16, 185, 129, 0.3);

}



.mobile-sidebar-action-btn[onclick="updateChannels(); app.closeMobileMenu();"]:hover {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));

    color: #10b981;

    padding-right: 2rem;

}





.mobile-sidebar-action-btn i:first-child {

    font-size: 1rem;

    width: 20px;

    text-align: center;

}



.mobile-sidebar-action-btn span {

    flex: 1;

    text-align: right;

}
.mobile-sidebar-action-btn i:last-child {

    font-size: 0.9rem;

    color: var(--text-secondary);

    transition: transform 0.3s ease;

}



.mobile-sidebar-action-btn:hover i:last-child {

    transform: translateX(-3px);

}



/* Favorites button in mobile sidebar */

.favorites-mobile-btn {

    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;

    color: white !important;

    border-bottom-color: rgba(255, 255, 255, 0.1) !important;

}



.favorites-mobile-btn:hover {

    background: linear-gradient(45deg, #ff5252, #e53935) !important;

    padding-right: 2rem;

}



.favorites-mobile-btn .favorites-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    padding: 2px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: 600;

    min-width: 20px;

    text-align: center;

    margin-left: auto;

}



.favorites-mobile-btn:hover .favorites-count {

    background: rgba(255, 255, 255, 0.3);

}
/* Mobile Filter Dropdown */









/* Desktop Only Elements */

.desktop-only {

    display: flex;

}
/* Mobile Only Elements */

.mobile-only {

    display: none;

}



/* Light Theme for Mobile Elements */





body[data-theme="light"] .mobile-main-filter-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #64748b;

}



body[data-theme="light"] .mobile-main-filter-btn:hover {

    background: #f1f5f9;

    border-color: #3b82f6;

    color: #1e293b;

}



body[data-theme="light"] .mobile-main-filter-btn.active {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    border-color: #3b82f6;

}



body[data-theme="light"] .mobile-sidebar-action-btn {

    background: rgba(255, 255, 255, 0.8);

    color: #4b5563;

    border-bottom-color: #e2e8f0;

    transition: all 0.3s ease;

    font-weight: 500;

}



body[data-theme="light"] .mobile-sidebar-action-btn:hover {

    background: rgba(59, 130, 246, 0.15);

    color: #1e293b;

    padding-right: 2rem;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);

}



body[data-theme="light"] .mobile-sidebar-action-btn i:first-child {

    color: #3b82f6;

}



body[data-theme="light"] .mobile-sidebar-action-btn i:last-child {

    color: #64748b;

}



body[data-theme="light"] .mobile-sidebar-action-btn:hover i:last-child {

    color: #1e293b;

}



body[data-theme="light"] .mobile-sidebar-action-btn:hover i:first-child {

    color: #1d4ed8;

}



/* Light theme for sidebar toggle buttons */

body[data-theme="light"] .header-actions .sidebar-toggle-btn {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border: 1px solid #1d4ed8;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .header-actions .sidebar-toggle-btn:hover {

    background: linear-gradient(135deg, #1d4ed8, #1e40af);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);

}



/* Light theme for fullscreen toggle button */

body[data-theme="light"] .fullscreen-toggle-btn {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border: 1px solid #1d4ed8;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .fullscreen-toggle-btn:hover {

    background: linear-gradient(135deg, #1d4ed8, #1e40af);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);

}



/* Light theme for mobile fullscreen toggle button */

body[data-theme="light"] .mobile-fullscreen-toggle-btn {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border: 1px solid #1d4ed8;

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .mobile-fullscreen-toggle-btn:hover {

    background: linear-gradient(135deg, #1d4ed8, #1e40af);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);

}



body[data-theme="light"] .mobile-menu-btn {

    background: rgba(255, 255, 255, 0.9);

    border: 1px solid #d1d5db;

    color: #374151;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .mobile-menu-btn:hover {

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    color: #1e293b;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);

}



/* Additional improvements for sidebar toggle buttons in light theme */

body[data-theme="light"] .sidebar-toggle-btn {

    background: rgba(255, 255, 255, 0.9);

    border: 1px solid #d1d5db;

    color: #374151;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    transition: all 0.3s ease;

}



body[data-theme="light"] .sidebar-toggle-btn:hover {

    background: rgba(59, 130, 246, 0.1);

    border-color: #3b82f6;

    color: #1e293b;

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);

}



/* Light theme for favorites button in mobile sidebar */

body[data-theme="light"] .favorites-mobile-btn {

    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;

    color: white !important;

    border-bottom-color: rgba(255, 107, 107, 0.2) !important;

}



body[data-theme="light"] .favorites-mobile-btn:hover {

    background: linear-gradient(45deg, #ff5252, #e53935) !important;

}



/* Light Theme Scrollbar Styles */

body[data-theme="light"] * {

    scrollbar-color: #3b82f6 rgba(0, 0, 0, 0.05);

    /* منع الترميش الأبيض في الوضع الفاتح */

    overscroll-behavior: none;

}



body[data-theme="light"] *::-webkit-scrollbar-track {

    background: rgba(0, 0, 0, 0.05);

    border-radius: 10px;

    margin: 4px;

}
body[data-theme="light"] *::-webkit-scrollbar-thumb {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    border-radius: 10px;

    border: 2px solid transparent;

    background-clip: content-box;

    /* تحسين التمرير السلس في الوضع الفاتح */

    -webkit-overflow-scrolling: touch;

}



body[data-theme="light"] *::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(45deg, #2563eb, #1e40af);

    border: 1px solid rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] *::-webkit-scrollbar-thumb:active {

    background: linear-gradient(45deg, #1d4ed8, #1e3a8a);

}



/* Light Theme Specific Scrollbars */

body[data-theme="light"] .desktop-sidebar::-webkit-scrollbar-track {

    background: rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .desktop-sidebar::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    border: 1px solid rgba(0, 0, 0, 0.1);

    /* تحسين التمرير السلس في الوضع الفاتح */

    -webkit-overflow-scrolling: touch;

}



body[data-theme="light"] .desktop-sidebar::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #2563eb, #1e40af);

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .mobile-sidebar-content::-webkit-scrollbar-track {

    background: rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .mobile-sidebar-content::-webkit-scrollbar-thumb {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    border: 1px solid rgba(0, 0, 0, 0.1);

    /* تحسين التمرير السلس في الوضع الفاتح */

    -webkit-overflow-scrolling: touch;

}



body[data-theme="light"] .mobile-sidebar-content::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(135deg, #2563eb, #1e40af);

}



/* Light theme for mobile sidebar */

body[data-theme="light"] .mobile-sidebar {

    background: #ffffff;

    border-left-color: #e2e8f0;

}



body[data-theme="light"] .mobile-sidebar-header {

    background: linear-gradient(135deg, #f8fafc, #e2e8f0);

}



body[data-theme="light"] .mobile-sidebar-logo {

    color: #1e293b;

}



body[data-theme="light"] .mobile-sidebar-logo i {

    color: #3b82f6;

}



body[data-theme="light"] .mobile-sidebar-section-title {

    color: #374151;

    font-weight: 600;

}



body[data-theme="light"] .mobile-sidebar-section-title i {

    color: #3b82f6;

}



body[data-theme="light"] .mobile-nav-tab {

    color: #64748b;

    border-bottom-color: #f1f5f9;

}



body[data-theme="light"] .mobile-nav-tab:hover {

    background: #f1f5f9;

    color: #1e293b;

}



body[data-theme="light"] .mobile-nav-tab.active {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

    color: white;

}



body[data-theme="light"] .mobile-nav-tab .tab-count {

    background: #f1f5f9;

    color: #64748b;

}



body[data-theme="light"] .mobile-nav-tab.active .tab-count {

    background: rgba(255, 255, 255, 0.2);

    color: white;

}

/* Light theme for mobile TV dropdown tab counts */

body[data-theme="light"] .mobile-tv-dropdown-item .tab-count {

    background: rgba(59, 130, 246, 0.15);

    color: #1d4ed8;

}

/* Light theme for mobile sidebar tab counts */

body[data-theme="light"] .mobile-sidebar-nav-tab .tab-count {

    background: rgba(59, 130, 246, 0.15);

    color: #1d4ed8;

}





/* Diagnostic Tools Section */

.diagnostic-tools-section {

    margin-top: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid var(--border-color);

}



.diagnostic-tools-title {

    margin-bottom: 1rem;

    color: var(--text-primary);

    font-size: 1.1rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.diagnostic-tools-title::before {

    content: "🔧";

    font-size: 1.2rem;

}



.diagnostic-tools-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 1rem;

}



.diagnostic-tool-btn {

    background: var(--background-light);

    border: 2px solid var(--border-color);

    color: var(--text-primary);

    padding: 1rem;

    border-radius: 12px;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0.5rem;

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 500;

    text-align: center;

    min-height: 80px;

}



.diagnostic-tool-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    border-color: var(--highlight-color);

}



.diagnostic-tool-btn i {

    font-size: 1.5rem;

    margin-bottom: 0.25rem;

}



.diagnostic-tool-btn span {

    font-weight: 600;

    line-height: 1.2;

}



/* Different button colors */

.diagnostic-tool-btn.diagnostic-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));

}



.diagnostic-tool-btn.diagnostic-btn:hover {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));

}



.diagnostic-tool-btn.diagnostic-btn i {

    color: #3b82f6;

}



.diagnostic-tool-btn.export-btn {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));

}

.diagnostic-tool-btn.export-btn:hover {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));

}



.diagnostic-tool-btn.export-btn i {

    color: #10b981;

}



.diagnostic-tool-btn.import-btn {

    border-color: #8b5cf6;

    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));

}



.diagnostic-tool-btn.import-btn:hover {

    border-color: #8b5cf6;

    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));

}



.diagnostic-tool-btn.import-btn i {

    color: #8b5cf6;

}



/* Categories Management */

.categories-management {

    max-width: 800px;

    margin: 0 auto;

}



.categories-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 2rem;

    padding-bottom: 1rem;

    border-bottom: 1px solid var(--border-color);

}
.categories-header h4 {

    color: var(--text-primary);

    font-size: 1.3rem;

    margin: 0;

}
.add-category-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 12px 20px;

    border-radius: 8px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.add-category-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

}



.category-form-container {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    padding: 2rem;

    margin-bottom: 2rem;

}



.category-form h5 {

    color: var(--text-primary);

    font-size: 1.2rem;

    margin-bottom: 1.5rem;

    text-align: center;

}



.category-form .form-group {

    margin-bottom: 1.5rem;

}



.category-form label {

    display: block;

    color: var(--text-primary);

    font-weight: 600;

    margin-bottom: 0.5rem;

}



.category-form input,

.category-form select {

    width: 100%;

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    padding: 12px;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 1rem;

    transition: var(--transition);

}



.category-form input:focus,

.category-form select:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);

}



.category-form small {

    color: var(--text-secondary);

    font-size: 0.85rem;

    margin-top: 0.25rem;

    display: block;

}



.form-actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    margin-top: 2rem;

    padding-bottom: 1rem;

}



.save-category-btn {

    background: linear-gradient(45deg, #10b981, #059669);

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 8px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.save-category-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);

}



.cancel-category-btn {

    background: var(--background-dark);

    color: var(--text-secondary);

    border: 1px solid var(--border-color);

    padding: 12px 24px;

    border-radius: 8px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.cancel-category-btn:hover {

    background: var(--accent-color);

    color: var(--text-primary);

    transform: translateY(-2px);

}



.categories-list {

    display: grid;

    gap: 1rem;

}



.category-item {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    padding: 1.5rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

    transition: all 0.3s ease;

}



.category-item:hover {

    background: var(--accent-color);

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}



.category-info {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.category-icon {

    font-size: 1.5rem;

    width: 40px;

    text-align: center;

    color: var(--highlight-color);

}



.category-details h6 {

    color: var(--text-primary);

    font-size: 1.1rem;

    margin: 0 0 0.25rem 0;

    font-weight: 600;

}
.category-details p {

    color: var(--text-secondary);

    font-size: 0.9rem;

    margin: 0;

}



.category-actions {

    display: flex;

    gap: 0.5rem;

}



.edit-category-btn,

.delete-category-btn {

    padding: 8px 12px;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    font-family: inherit;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 0.25rem;

}



.edit-category-btn {

    background: linear-gradient(45deg, #3b82f6, #2563eb);

    color: white;

}



.edit-category-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);

}



.delete-category-btn {

    background: linear-gradient(45deg, #ef4444, #dc2626);

    color: white;

}



.delete-category-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);

}



/* Light Theme for Categories Management */

body[data-theme="light"] .categories-header {

    border-bottom-color: #e2e8f0;

}



body[data-theme="light"] .categories-header h4 {

    color: #1e293b;

}



body[data-theme="light"] .category-form-container {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .category-form h5 {

    color: #1e293b;

}



body[data-theme="light"] .category-form label {

    color: #1e293b;

}



body[data-theme="light"] .category-form input,

body[data-theme="light"] .category-form select {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .category-form input:focus,

body[data-theme="light"] .category-form select:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



body[data-theme="light"] .category-form small {

    color: #64748b;

}



body[data-theme="light"] .cancel-category-btn {

    background: #f8fafc;

    color: #64748b;

    border-color: #e2e8f0;

}



body[data-theme="light"] .cancel-category-btn:hover {

    background: #f1f5f9;

    color: #1e293b;

}



body[data-theme="light"] .category-item {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .category-item:hover {

    background: #f8fafc;

}



body[data-theme="light"] .category-details h6 {

    color: #1e293b;

}



body[data-theme="light"] .category-details p {

    color: #64748b;

}



body[data-theme="light"] .category-icon {

    color: #3b82f6;

}



/* Light Theme for Diagnostic Tools */

body[data-theme="light"] .diagnostic-tools-section {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .diagnostic-tools-title {

    color: #1e293b;

}



body[data-theme="light"] .diagnostic-tool-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .diagnostic-tool-btn:hover {

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .diagnostic-tool-btn.diagnostic-btn {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));

}



body[data-theme="light"] .diagnostic-tool-btn.diagnostic-btn:hover {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));

}



body[data-theme="light"] .diagnostic-tool-btn.export-btn {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));

}



body[data-theme="light"] .diagnostic-tool-btn.export-btn:hover {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));

}



body[data-theme="light"] .diagnostic-tool-btn.import-btn {

    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(124, 58, 237, 0.02));

}



body[data-theme="light"] .diagnostic-tool-btn.import-btn:hover {

    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));

}



/* Remote Storage Styles */

.remote-storage-section {

    margin-top: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid var(--border-color);

}



.remote-storage-title {

    margin-bottom: 1rem;

    color: var(--text-primary);

    font-size: 1.1rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.remote-storage-title::before {

    content: "☁️";

    font-size: 1.2rem;

}



.remote-storage-container {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    padding: 1.5rem;

}
.test-connection-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));

}



.test-connection-btn:hover {

    background: linear-gradient(135deg, #3b82f6, #2563eb);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);

}



.save-remote-settings-btn {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));

}



.save-remote-settings-btn:hover {

    background: linear-gradient(135deg, #10b981, #059669);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);

}



.sync-now-btn {

    border-color: var(--highlight-color);

    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(255, 107, 107, 0.05));

}



.sync-now-btn:hover {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

}



.sync-status {

    margin-top: 1.5rem;

    padding: 1rem;

    background: rgba(255, 255, 255, 0.05);

    border-radius: 8px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}



.sync-status p {

    margin: 0.5rem 0;

    color: var(--text-secondary);

    font-size: 0.9rem;

}
.sync-status strong {

    color: var(--text-primary);

}



#syncStatusText {

    color: var(--highlight-color);

    font-weight: 600;

}



#lastSyncTime {

    color: var(--text-primary);

    font-weight: 500;

}



/* Light Theme for Remote Storage */

body[data-theme="light"] .remote-storage-section {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .remote-storage-title {

    color: #1e293b;

}



body[data-theme="light"] .remote-storage-container {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .remote-storage-config {

    border-top-color: #f1f5f9;

}



body[data-theme="light"] .admin-setting-item small {

    color: #64748b;

}



body[data-theme="light"] .test-connection-btn,

body[data-theme="light"] .save-remote-settings-btn,

body[data-theme="light"] .sync-now-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .test-connection-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));

}



body[data-theme="light"] .save-remote-settings-btn {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));

}



body[data-theme="light"] .sync-now-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));

}



body[data-theme="light"] .sync-status {

    background: #f8fafc;

    border-color: #e2e8f0;

}



body[data-theme="light"] .sync-status p {

    color: #64748b;

}



body[data-theme="light"] .sync-status strong {

    color: #1e293b;

}



body[data-theme="light"] #syncStatusText {

    color: #3b82f6;

}



body[data-theme="light"] #lastSyncTime {

    color: #1e293b;

}



/* Conflict Resolution Modal */

.conflict-resolution-modal {

    max-width: 600px;

    width: 90vw;

}



.conflict-details {

    padding: 2rem;

}



.conflict-details p {

    margin-bottom: 1.5rem;

    color: var(--text-secondary);

    line-height: 1.6;

    text-align: center;

}



.conflict-comparison {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1.5rem;

    margin: 2rem 0;

}



.local-data,

.remote-data {

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    padding: 1.5rem;

    text-align: center;

}



.local-data h4,

.remote-data h4 {

    color: var(--text-primary);

    margin-bottom: 1rem;

    font-size: 1.1rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

}



.local-data h4::before {

    content: "💻";

}



.remote-data h4::before {

    content: "☁️";

}



.local-data p,

.remote-data p {

    margin: 0.5rem 0;

    color: var(--text-secondary);

    font-size: 0.9rem;

}



.local-data strong,

.remote-data strong {

    color: var(--text-primary);

}



.conflict-actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 2rem;

}
.conflict-btn {

    background: var(--background-light);

    border: 2px solid var(--border-color);

    color: var(--text-primary);

    padding: 12px 20px;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    font-family: inherit;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

    font-size: 0.9rem;

    min-width: 160px;

    justify-content: center;

    flex: 1;

    max-width: 180px;

}



.conflict-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

}



.use-local-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));

}



.use-local-btn:hover {

    background: linear-gradient(135deg, #3b82f6, #2563eb);

    color: white;

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);

}



.use-remote-btn {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));

}



.use-remote-btn:hover {

    background: linear-gradient(135deg, #10b981, #059669);

    color: white;

    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);

}



.merge-btn {

    border-color: var(--highlight-color);

    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(255, 107, 107, 0.05));

}



.merge-btn:hover {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    color: white;

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

}



/* Light theme for conflict resolution */

body[data-theme="light"] .conflict-details p {

    color: #64748b;

}



body[data-theme="light"] .local-data,

body[data-theme="light"] .remote-data {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .local-data h4,

body[data-theme="light"] .remote-data h4 {

    color: #1e293b;

}



body[data-theme="light"] .local-data p,

body[data-theme="light"] .remote-data p {

    color: #64748b;

}



body[data-theme="light"] .local-data strong,

body[data-theme="light"] .remote-data strong {

    color: #1e293b;

}



body[data-theme="light"] .conflict-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .use-local-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));

}



body[data-theme="light"] .use-remote-btn {

    border-color: #10b981;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));

}



body[data-theme="light"] .merge-btn {

    border-color: #3b82f6;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));

}



/* Responsive conflict modal */

@media (max-width: 768px) {

    .conflict-comparison {

        grid-template-columns: 1fr;

        gap: 1rem;

    }

    

    .conflict-actions {

        flex-direction: column;

        gap: 0.75rem;

    }

    

    .conflict-btn {

        max-width: none;

        width: 100%;

    }

}



/* Enhanced Settings Styles */

.settings-section-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* transition removed */
}

.settings-section-card:hover {
    /* hover effects removed */
}

/* Ensure proper spacing and alignment */
.settings-section-content {
    padding: 1.5rem;
}

.settings-section-content > *:last-child {
    margin-bottom: 0;
}



.settings-section-header {

    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));

    padding: 1.5rem;

    display: flex;

    align-items: center;

    gap: 1rem;

    border-bottom: 1px solid var(--border-color);

}



.settings-section-header i {

    font-size: 1.5rem;

    color: var(--highlight-color);

    width: 24px;

    text-align: center;

}
.enhanced-slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: var(--border-color);

    /* transition removed */

    border-radius: 32px;

}



.enhanced-slider:before {

    position: absolute;

    content: "";

    height: 24px;

    width: 24px;

    left: 4px;

    bottom: 4px;

    background-color: white;

    /* transition removed */

    border-radius: 50%;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



input:checked + .enhanced-slider {

    background-color: var(--highlight-color);

}



input:checked + .enhanced-slider:before {

    transform: translateX(28px);

}



.settings-save-section {

    text-align: center;

    padding: 2rem 0;

    border-top: 1px solid var(--border-color);

    margin-top: 2rem;

}



.enhanced-save-btn {

    background: linear-gradient(45deg, var(--highlight-color), #ff6b6b);

    color: white;

    border: none;

    padding: 16px 32px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    font-family: inherit;

    font-size: 1.1rem;

    display: inline-flex;

    align-items: center;

    gap: 0.75rem;

    min-width: 200px;

    justify-content: center;

}



.enhanced-save-btn:hover {

    background: linear-gradient(45deg, #d63384, #e94560);

}



.enhanced-diagnostic-btn {

    background: var(--background-light);

    border: 2px solid var(--border-color);

    color: var(--text-primary);

    padding: 0.75rem;

    border-radius: 8px;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0.25rem;

    font-family: inherit;

    font-size: 0.8rem;

    font-weight: 500;

    text-align: center;

    min-height: 70px;

    transition: all 0.2s ease;

}



.enhanced-diagnostic-btn:hover {

    border-color: var(--highlight-color);

    background: var(--accent-color);

}



.enhanced-diagnostic-btn i {

    font-size: 1.2rem;

    margin-bottom: 0.25rem;

}



.enhanced-diagnostic-btn span {

    font-size: 0.9rem;

    font-weight: 500;

}



.enhanced-diagnostic-btn small {

    font-size: 0.7rem;

    color: var(--text-secondary);

    font-weight: 400;

}



.enhanced-diagnostic-btn.diagnostic-btn i {

    color: #3b82f6;

}



.enhanced-diagnostic-btn.export-btn i {

    color: #10b981;

}



.enhanced-diagnostic-btn.import-btn i {

    color: #8b5cf6;

}



.enhanced-diagnostic-btn.delete-cookies-btn {

    background: linear-gradient(135deg, #ef4444, #dc2626);

    border: 1px solid #dc2626;

}



.enhanced-diagnostic-btn.delete-cookies-btn:hover {

    background: linear-gradient(135deg, #dc2626, #b91c1c);

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);

}



.enhanced-diagnostic-btn.delete-cookies-btn i {

    color: #ffffff;

}



.diagnostic-tools-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 1rem;

    margin-top: 1rem;

}



/* Settings Customization Styles */

.settings-section {

    margin: 2rem 0;

    padding: 1.5rem;

    background: var(--background-light);

    border: 1px solid var(--border-color);

    border-radius: 12px;

}



.settings-section-title {

    margin: 0 0 1.5rem 0;

    color: var(--text-primary);

    font-size: 1.1rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding-bottom: 0.75rem;

    border-bottom: 1px solid var(--border-color);

}



.settings-section-title i {

    color: var(--primary-color);

    font-size: 1rem;

}



.setting-label-group {

    display: flex;

    flex-direction: column;

    gap: 0.25rem;

    flex: 1;

}



.setting-label-group label {

    font-weight: 600;

    color: var(--text-primary);

    font-size: 0.95rem;

}



.setting-label-group small {

    color: var(--text-secondary);

    font-size: 0.85rem;

    line-height: 1.4;

}



.zoom-control {

    display: flex;

    align-items: center;

    gap: 1rem;

    width: 100%;

}



.zoom-slider {

    flex: 1;

    height: 6px;

    background: var(--border-color);

    border-radius: 3px;

    outline: none;

    cursor: pointer;

    -webkit-appearance: none;

    appearance: none;

}



.zoom-slider::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background: var(--highlight-color);

    cursor: pointer;

    border: 2px solid white;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    transition: all 0.2s ease;

}



.zoom-slider::-webkit-slider-thumb:hover {

    transform: scale(1.1);

    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);

}



.zoom-slider::-moz-range-thumb {

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background: var(--highlight-color);

    cursor: pointer;

    border: 2px solid white;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    transition: all 0.2s ease;

}



.zoom-value {

    color: var(--text-primary);

    font-weight: 600;

    min-width: 50px;

    text-align: center;

    background: var(--background-dark);

    padding: 0.25rem 0.75rem;

    border-radius: 6px;

    border: 1px solid var(--border-color);

    font-size: 0.9rem;

}
.color-theme-select,

.font-size-select,

.layout-mode-select,

.border-radius-select {

    background: var(--background-dark);

    border: 1px solid var(--border-color);

    border-radius: 8px;

    color: var(--text-primary);

    padding: 8px 12px;

    font-family: inherit;

    font-size: 0.9rem;

    transition: var(--transition);

    width: 200px;

}



.color-theme-select:focus,

.font-size-select:focus,

.layout-mode-select:focus,

.border-radius-select:focus {

    outline: none;

    border-color: var(--highlight-color);

    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);

}



.settings-actions {

    margin-top: 2rem;

    padding-top: 1.5rem;

    border-top: 1px solid var(--border-color);

    text-align: center;

}



.settings-actions-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 1rem;

    margin-top: 0;

}



.settings-action-btn {

    padding: 1rem 1.5rem;

    background: var(--card-bg);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    color: var(--text-primary);

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 0.75rem;

    justify-content: center;

}



.settings-action-btn:hover {

    background: var(--primary-color);

    color: white;

    border-color: var(--primary-color);

}

.settings-action-btn.delete-btn:hover {

    background: #ef4444;

    border-color: #ef4444;

    color: white;

}



.settings-action-btn i {

    font-size: 1.1rem;

}



.settings-button-group {

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

}



.settings-button-group-title {

    font-size: 0.9rem;

    font-weight: 600;

    color: var(--text-secondary);

    margin-bottom: 0.5rem;

    text-align: center;

    padding: 0.75rem 1rem;

    background: linear-gradient(135deg, var(--background-light), var(--background-dark));

    border-radius: 10px;

    border: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    position: relative;

    overflow: hidden;

}



.settings-button-group-title::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);

    transition: left 0.6s;

}



.settings-button-group-title:hover::before {

    left: 100%;

}

.settings-button-group-title i {

    color: var(--highlight-color);

    font-size: 1rem;

}



.reset-settings-btn {

    background: linear-gradient(135deg, #ef4444, #dc2626);

    color: white;

    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin: 0;

    font-size: 0.95rem;

    position: relative;

    overflow: hidden;

}



.reset-settings-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.reset-settings-btn:hover::before {

    left: 100%;

}



.reset-settings-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);

    background: linear-gradient(135deg, #dc2626, #b91c1c);

}

.delete-cookies-btn {

    background: linear-gradient(135deg, #f59e0b, #d97706);

    color: white;

    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin: 0;

    font-size: 0.95rem;

    position: relative;

    overflow: hidden;

}



.delete-cookies-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.delete-cookies-btn:hover::before {

    left: 100%;

}



.delete-cookies-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);

    background: linear-gradient(135deg, #d97706, #b45309);

}



.test-notifications-btn {

    background: linear-gradient(135deg, #8b5cf6, #7c3aed);

    color: white;

    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin: 0;

    font-size: 0.95rem;

    position: relative;

    overflow: hidden;

}



.test-notifications-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.test-notifications-btn:hover::before {

    left: 100%;

}



.test-notifications-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);

    background: linear-gradient(135deg, #7c3aed, #6d28d9);

}



.show-welcome-btn {

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    color: white;

    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin: 0;

    font-size: 0.95rem;

    position: relative;

    overflow: hidden;

}



.show-welcome-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.show-welcome-btn:hover::before {

    left: 100%;

}



.show-welcome-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);

    background: linear-gradient(135deg, #1d4ed8, #1e40af);

}

.disable-auto-update-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

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

.disable-auto-update-btn:hover::before {
    left: 100%;
}

.disable-auto-update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #b45309);
}

.disable-auto-update-btn.disabled {
    background: linear-gradient(135deg, #10b981, #059669);
}

.disable-auto-update-btn.disabled:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.reset-notifications-btn {

    background: linear-gradient(135deg, #6b7280, #4b5563);

    color: white;

    border: none;

    padding: 14px 20px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: inherit;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin: 0;

    font-size: 0.95rem;

    position: relative;

    overflow: hidden;

}



.reset-notifications-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.5s;

}



.reset-notifications-btn:hover::before {

    left: 100%;

}



.reset-notifications-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(107, 114, 128, 0.4);

    background: linear-gradient(135deg, #4b5563, #374151);

}



/* Color Theme Variants */

body[data-color-theme="blue"] {

    --highlight-color: #3b82f6;

    --accent-color: #1e40af;

}



body[data-color-theme="green"] {

    --highlight-color: #10b981;

    --accent-color: #047857;

}



body[data-color-theme="purple"] {

    --highlight-color: #8b5cf6;

    --accent-color: #7c3aed;

}



body[data-color-theme="orange"] {

    --highlight-color: #f59e0b;

    --accent-color: #d97706;

}



body[data-color-theme="red"] {

    --highlight-color: #ef4444;

    --accent-color: #dc2626;

}



/* Font Size Variants */

body[data-font-size="small"] {

    font-size: 0.85rem;

}



body[data-font-size="small"] .logo h1 {

    font-size: 1.4rem;

}



body[data-font-size="small"] .channel-name {

    font-size: 0.95rem;

}



body[data-font-size="large"] {

    font-size: 1.1rem;

}



body[data-font-size="large"] .logo h1 {

    font-size: 2rem;

}



body[data-font-size="large"] .channel-name {

    font-size: 1.25rem;

}



body[data-font-size="xlarge"] {

    font-size: 1.25rem;

}



body[data-font-size="xlarge"] .logo h1 {

    font-size: 2.5rem;

}



body[data-font-size="xlarge"] .channel-name {

    font-size: 1.4rem;

}
/* Border Radius Variants */

body[data-border-radius="minimal"] * {

    border-radius: 2px !important;

}



body[data-border-radius="rounded"] * {

    border-radius: 20px !important;

}



body[data-border-radius="rounded"] .channel-logo {

    border-radius: 20px !important;

}



/* Layout Variants */

.channels-grid.list-layout {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}



.channels-grid.list-layout .channel-card {

    display: flex;

    align-items: center;

    padding: 1rem;

    max-width: none;

}



.channels-grid.list-layout .channel-logo {

    width: 80px;

    height: 60px;

    margin-left: 1rem;

    flex-shrink: 0;

}



.channels-grid.list-layout .channel-info {

    flex: 1;

    padding: 0;

}



.channels-grid.compact-layout {

    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

    gap: 12px;

}



.channels-grid.compact-layout .channel-card {

    padding: 0.75rem;

}



.channels-grid.compact-layout .channel-logo {

    height: 80px;

}
.channels-grid.compact-layout .channel-name {

    font-size: 0.9rem;

}



/* Compact Mode */

body.compact-mode .header {

    padding: 0.5rem 0;

}





body.compact-mode .channel-card {

    padding: 0.75rem;

}



body.compact-mode .breadcrumbs-container {

    padding: 0.5rem 0;

}



/* Animations Disabled */

body.animations-disabled * {

    transition: none !important;

    animation: none !important;

}



/* Footer Styles */

.footer {

    background: linear-gradient(135deg, var(--background-dark), var(--primary-color));

    border-top: 1px solid var(--border-color);

    margin-top: 3rem;

    padding: 3rem 0 1rem;

    position: relative;

    overflow: hidden;

}



.footer::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 1px;

    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);

}



.footer-content {

    display: grid;

    grid-template-columns: 1fr;

    gap: 2rem;

    margin-bottom: 2rem;

}
/* Brand section - full width */

.footer-section:first-child {

    order: -1;

    padding: 1.5rem;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));

    border-radius: 12px;

    border: 1px solid rgba(59, 130, 246, 0.1);

    margin-bottom: 1rem;

    text-align: center;

}





.footer-section {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}



.footer-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.75rem;

    margin-bottom: 1rem;

}



.footer-logo i {

    font-size: 1.5rem;

    color: var(--highlight-color);

    background: linear-gradient(135deg, var(--highlight-color), #10b981);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.footer-logo h3 {

    color: var(--text-primary);

    font-size: 1.25rem;

    font-weight: 700;

    margin: 0;

    font-family: 'Cairo', sans-serif;

}
.footer-description {

    color: var(--text-secondary);

    font-size: 0.9rem;

    line-height: 1.6;

    margin: 0 auto 1.5rem;

    opacity: 0.9;

    text-align: center;

    max-width: 100%;

}



.footer-social {

    display: flex;

    gap: 0.75rem;

    margin-top: 0.5rem;

    justify-content: center;

}



.social-link {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 2.5rem;

    height: 2.5rem;

    background: rgba(59, 130, 246, 0.1);

    border: 1px solid rgba(59, 130, 246, 0.2);

    border-radius: 50%;

    color: var(--text-secondary);

    text-decoration: none;

    backdrop-filter: blur(5px);

}



.social-link:hover {

    background: rgba(59, 130, 246, 0.2);

    color: var(--text-primary);

}



.social-link i {

    font-size: 1rem;

}





.footer-links {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}



.footer-links li {

    margin: 0;

}



.footer-links a {

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 0.9rem;

    padding: 0.4rem 0.5rem;

    display: block;

    position: relative;

    background: rgba(59, 130, 246, 0.05);

    border-radius: 6px;

    margin: 0.2rem 0;

    text-align: center;

}



.footer-links a:hover {

    color: var(--highlight-color);

    background: rgba(59, 130, 246, 0.1);

}



.footer-links a::before {

    display: none;

}



.footer-bottom {

    border-top: 1px solid var(--border-color);

    padding-top: 1.5rem;

    display: flex;

    flex-direction: column;

    text-align: center;

    gap: 1.5rem;

    margin-top: 2rem;

}



.footer-copyright {

    display: flex;

    flex-direction: column;

    gap: 0.25rem;

}



.footer-copyright p {

    color: var(--text-secondary);

    font-size: 0.85rem;

    margin: 0;

    opacity: 0.8;

}

.footer-design a {

    color: var(--text-primary);

    text-decoration: underline;

    font-weight: bold;

    transition: all 0.3s ease;

    text-decoration-color: var(--highlight-color);

    text-decoration-thickness: 2px;

}

.footer-design a:hover {

    color: var(--highlight-color);

    text-decoration-color: var(--text-primary);

    transform: translateY(-1px);

}



.footer-version {

    font-size: 0.75rem !important;

    opacity: 0.6 !important;

}



.footer-legal {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 1rem;

    flex-wrap: wrap;

    order: 1;

}



.footer-copyright {

    order: 2;

}



.legal-link {

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 0.85rem;

    opacity: 0.8;

    padding: 0.5rem 1rem;

    background: rgba(59, 130, 246, 0.1);

    border-radius: 20px;

    border: 1px solid rgba(59, 130, 246, 0.2);

}



.legal-link:hover {

    color: var(--highlight-color);

    background: rgba(59, 130, 246, 0.2);

}



.separator {

    display: none;

}



/* Light Theme Footer */

body[data-theme="light"] .footer {

    background: linear-gradient(135deg, #f8fafc, #ffffff);

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .footer::before {

    background: linear-gradient(90deg, transparent, #3b82f6, transparent);

}



body[data-theme="light"] .footer-logo i {

    background: linear-gradient(135deg, #3b82f6, #10b981);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



body[data-theme="light"] .social-link {

    background: rgba(59, 130, 246, 0.08);

    border-color: rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .social-link:hover {

    background: rgba(59, 130, 246, 0.15);

}





body[data-theme="light"] .footer-bottom {

    border-top-color: #e2e8f0;

}



/* Light theme mobile footer */

body[data-theme="light"] .footer-section:first-child {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(16, 185, 129, 0.03));

    border-color: rgba(59, 130, 246, 0.08);

}



body[data-theme="light"] .footer-links a {

    background: rgba(59, 130, 246, 0.03);

}



body[data-theme="light"] .footer-links a:hover {

    background: rgba(59, 130, 246, 0.08);

}



body[data-theme="light"] .legal-link {

    background: rgba(59, 130, 246, 0.08);

    border-color: rgba(59, 130, 246, 0.15);

}



body[data-theme="light"] .legal-link:hover {

    background: rgba(59, 130, 246, 0.15);

}

/* Inline App Download Section Styles */

.app-download-inline {

    margin-top: 1rem;

    padding: 1rem;

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));

    border-radius: 8px;

    border: 1px solid rgba(16, 185, 129, 0.1);

}

.app-download-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

}

.download-info {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    flex: 1;

}

.download-text {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    color: var(--text-primary);

    font-weight: 600;

    font-size: 0.9rem;

}

.download-text i {

    color: var(--highlight-color);

    font-size: 1rem;

}

.download-features {

    display: flex;

    gap: 0.5rem;

    flex-wrap: wrap;

}

.feature-badge {

    background: rgba(16, 185, 129, 0.1);

    color: #10b981;

    padding: 0.25rem 0.5rem;

    border-radius: 4px;

    font-size: 0.75rem;

    font-weight: 500;

}
.download-btn-inline {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    background: linear-gradient(135deg, var(--highlight-color), #10b981);

    color: white;

    text-decoration: none;

    padding: 0.5rem 1rem;

    border-radius: 6px;

    font-weight: 600;

    font-size: 0.85rem;

    transition: all 0.3s ease;

    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);

    white-space: nowrap;

}

.download-btn-inline:hover {

    transform: translateY(-1px);

    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);

    color: white;

}

.download-btn-inline i {

    font-size: 0.9rem;

}

/* Light theme for inline app download */

body[data-theme="light"] .app-download-inline {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(59, 130, 246, 0.03));

    border-color: rgba(16, 185, 129, 0.08);

}

/* Urban VPN Download Section Styles */

.vpn-download-inline {

    margin-top: 0.75rem;

    padding: 0.75rem;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));

    border: 1px solid rgba(59, 130, 246, 0.1);

    border-radius: 8px;

    transition: all 0.3s ease;

}

.vpn-download-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

}

.vpn-download-info {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}

.vpn-download-text {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    color: var(--text-primary);

    font-weight: 600;

    font-size: 0.9rem;

}
.vpn-download-text i {

    color: var(--highlight-color);

    font-size: 1rem;

}

.vpn-download-features {

    display: flex;

    gap: 0.5rem;

}

.vpn-feature-badge {

    background: rgba(59, 130, 246, 0.1);

    color: var(--highlight-color);

    padding: 0.2rem 0.5rem;

    border-radius: 12px;

    font-size: 0.7rem;

    font-weight: 500;

}

.vpn-download-buttons {

    display: flex;

    gap: 0.5rem;

}

.vpn-download-btn {

    display: flex;

    align-items: center;

    gap: 0.4rem;

    padding: 0.5rem 0.75rem;

    background: var(--background-secondary);

    color: var(--text-primary);

    text-decoration: none;

    border-radius: 6px;

    font-size: 0.8rem;

    font-weight: 500;

    transition: all 0.3s ease;

    border: 1px solid var(--border-color);

}

.vpn-download-btn:hover {

    background: var(--highlight-color);

    color: white;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}

.vpn-download-btn i {

    font-size: 0.9rem;

}

.chrome-btn:hover {

    background: #4285f4;

}

.android-btn:hover {

    background: #3ddc84;

}
/* Light theme for Urban VPN download */

body[data-theme="light"] .vpn-download-inline {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(16, 185, 129, 0.03));

    border-color: rgba(59, 130, 246, 0.08);

}

body[data-theme="light"] .vpn-download-btn {

    background: rgba(59, 130, 246, 0.05);

    border-color: rgba(59, 130, 246, 0.1);

}

body[data-theme="light"] .vpn-download-btn:hover {

    background: var(--highlight-color);

    color: white;

}

body[data-theme="light"] .download-text i {

    color: #3b82f6;

}

body[data-theme="light"] .feature-badge {

    background: rgba(16, 185, 129, 0.08);

    color: #059669;

}
/* Mobile responsive for inline app download */

@media (max-width: 768px) {

    .app-download-content {

        flex-direction: column;

        gap: 0.75rem;

        text-align: center;

    }

    .download-info {

        align-items: center;

    }

    .download-features {

        justify-content: center;

    }

    /* Urban VPN Mobile Styles */

    .vpn-download-content {

        flex-direction: column;

        gap: 0.75rem;

        text-align: center;

    }

    .vpn-download-info {

        align-items: center;

    }

    .vpn-download-features {

        justify-content: center;

    }

    .vpn-download-buttons {

        width: 100%;

        justify-content: center;

    }

    .vpn-download-btn {

        flex: 1;

        justify-content: center;

    }

}

@media (max-width: 480px) {

    .app-download-inline {

        padding: 0.75rem;

    }

    .download-text {

        font-size: 0.85rem;

    }

    .download-btn-inline {

        padding: 0.5rem 0.75rem;

        font-size: 0.8rem;

    }

    /* Urban VPN Small Screen Styles */

    .vpn-download-inline {

        padding: 0.75rem;

    }

    .vpn-download-text {

        font-size: 0.85rem;

    }

    .vpn-download-btn {

        padding: 0.5rem 0.75rem;

        font-size: 0.8rem;

    }

}



/* YouTube Ad Blocking Styles */

#youtubePlayer {

    position: relative;

    overflow: hidden;

}



#youtubePlayer::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 1;

    pointer-events: none;

    background: transparent;

}



/* Hide potential ad overlays */

#youtubePlayer iframe {

    filter: contrast(1.1) brightness(1.05);

}



/* Ad blocking notification */

.ad-block-notification {

    position: absolute;

    top: 10px;

    right: 10px;

    background: rgba(0, 0, 0, 0.8);

    color: white;

    padding: 0.5rem 1rem;

    border-radius: 6px;

    font-size: 0.8rem;

    z-index: 10;

    display: none;

}



.ad-block-notification.show {

    display: block;

    animation: slideIn 0.3s ease;

}



@keyframes slideIn {

    from {

        transform: translateX(100%);

        opacity: 0;

    }

    to {

        transform: translateX(0);

        opacity: 1;

    }

}



/* Channel Bar */

.channel-bar {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background: rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px) saturate(120%);

    -webkit-backdrop-filter: blur(8px) saturate(120%);

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    transform: translateY(100%);

    transition: transform 0.2s ease;

    z-index: 20;

    max-height: 40vh;

    overflow: hidden;

}



/* Mobile positioning - move to bottom of video player */

@media (max-width: 768px) {

    .channel-bar {

        position: fixed;

        bottom: 0;

        left: 0;

        right: 0;

        max-height: 35vh;

        border-radius: 0;

        /* Ensure it's above video player */

        z-index: 25;

        /* Optimized for mobile performance */

        will-change: transform;

        transform: translateY(100%);

        transition: transform 0.15s ease;

    }

}



.channel-bar.show {

    transform: translateY(0);

}



/* Keep channel bar visible on mobile when shown */

@media (max-width: 768px) {

    .channel-bar.show {

        transform: translateY(0);

        /* Prevent auto-hide on mobile */

        pointer-events: auto;

        /* Ensure it stays visible */

        opacity: 1;

        visibility: visible;

    }

}



/* Channel bar toggle button styles */

.channels-btn {

    transition: all 0.3s ease;

}



.channels-btn.active {

    background: var(--highlight-color);

    color: white;

    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);

}



.channels-btn.active:hover {

    background: var(--highlight-color);

    transform: scale(1.05);

}



.channel-bar-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}



.channel-bar-header h4 {

    color: #fff;

    margin: 0;

    font-size: 1rem;

    font-weight: 600;

}



.channel-bar-info {

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.85rem;

    margin: 0 12px;

}



.channel-bar-close {

    background: none;

    border: none;

    color: #fff;

    font-size: 1.2rem;

    cursor: pointer;

    padding: 4px;

    border-radius: 4px;

    transition: background-color 0.2s;

}



.channel-bar-close:hover {

    background: rgba(255, 255, 255, 0.1);

}



.channel-bar-container {

    position: relative;

    overflow: hidden;

}



.channel-bar-scroll {

    overflow-x: auto;

    overflow-y: hidden;

    scrollbar-width: none;

    -ms-overflow-style: none;

    scroll-behavior: smooth;

    user-select: none;

    /* Mobile optimizations */

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

}



.channel-bar-scroll:active {

    cursor: grabbing;

}



/* Mobile touch optimizations */

@media (max-width: 768px) {

    .channel-bar-scroll {

        /* Enhanced touch scrolling */

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

        /* Smooth momentum */

        scroll-behavior: auto;

        /* Prevent overscroll */

        overscroll-behavior-y: none;

        /* Better touch control */

        touch-action: pan-x;

        /* Optimized for mobile performance */

        will-change: scroll-position;

    }

    

    .channel-bar-item {

        /* Better touch targets */

        min-height: 44px;

        min-width: 44px;

        /* Prevent text selection during scroll */

        -webkit-user-select: none;

        -moz-user-select: none;

        -ms-user-select: none;

        user-select: none;

        /* Optimized for mobile performance */

        will-change: auto;

    }

}
/* Desktop touch optimizations */

@media (min-width: 769px) {

    .channel-bar-scroll {

        /* Enhanced desktop touch scrolling */

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

        overscroll-behavior-y: none;

        

        /* Better desktop touch response */

        touch-action: pan-x;

        

        /* Smooth cursor transitions */

        cursor: grab;

        transition: cursor 0.2s ease;

    }

    

    .channel-bar-scroll.touch-active {

        cursor: grabbing;

    }

    

    .channel-bar-scroll.mouse-drag-active {

        cursor: grabbing;

        background: rgba(255, 255, 255, 0.05);

        border-radius: 8px;

    }

    

    .channel-bar-scroll.wheel-scrolling {

        background: rgba(255, 255, 255, 0.03);

        border-radius: 8px;

        transition: background 0.15s ease;

    }

    

    .channel-bar-item {

        /* Enhanced desktop touch targets */

        min-height: 48px;

        min-width: 48px;

        

        /* Better desktop touch feedback */

        transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;

        

        /* Improved hover states for desktop touch */

        cursor: pointer;

        

        /* Prevent text selection during touch */

        -webkit-user-select: none;

        -moz-user-select: none;

        -ms-user-select: none;

        user-select: none;

    }

    

    .channel-bar-item:hover {

        background: rgba(255, 255, 255, 0.25);

        transform: translateY(-3px) scale(1.08);

        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);

    }

    

    .channel-bar-item:active {

        transform: scale(0.98);

        background-color: rgba(255, 255, 255, 0.3);

    }

}



.channel-bar-scroll::-webkit-scrollbar {

    display: none;

}
.channel-bar-content {

    display: flex;

    gap: 12px;

    padding: 16px;

    min-width: max-content;

    transition: transform 0.3s ease;

}



.channel-bar-item {

    flex-shrink: 0;

    width: 100px;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 10px;

    padding: 10px;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    text-align: center;

    position: relative;

    overflow: hidden;

    backdrop-filter: blur(6px) saturate(120%);

    -webkit-backdrop-filter: blur(6px) saturate(120%);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);

}



.channel-bar-item:hover {

    background: rgba(255, 255, 255, 0.25);

    border-color: rgba(255, 255, 255, 0.4);

    transform: translateY(-2px) scale(1.05);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(8px);

}



.channel-bar-item:hover .channel-category {

    background: rgba(255, 255, 255, 0.2);

    border-color: rgba(255, 255, 255, 0.4);

    color: rgba(255, 255, 255, 0.95);

}



.channel-bar-item.active {

    background: rgba(233, 69, 96, 0.9);

    border-color: var(--highlight-color);

    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);

}



.channel-bar-item.active .channel-name {

    color: rgba(255, 255, 255, 0.95);

    font-weight: 600;

}
.channel-bar-scroll-indicators {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 100%;

    pointer-events: none;

    z-index: 10;

}
.scroll-indicator {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 32px;

    height: 32px;

    background: rgba(0, 0, 0, 0.8);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 0.8rem;

    opacity: 0;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: auto;

    cursor: pointer;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.scroll-indicator.left {

    left: 8px;

}



.scroll-indicator.right {

    right: 8px;

}



.scroll-indicator:hover {

    background: rgba(0, 0, 0, 0.95);

    border-color: rgba(255, 255, 255, 0.4);

    transform: translateY(-50%) scale(1.1);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

}



.channel-bar-container:hover .scroll-indicator {

    opacity: 1;

}



.channel-bar-item img {

    width: 40px;

    height: 40px;

    border-radius: 6px;

    object-fit: cover;

    margin-bottom: 6px;

}



.channel-bar-item .channel-name {

    color: #fff;

    font-size: 0.8rem;

    font-weight: 500;

    line-height: 1.2;

    margin: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.channel-bar-item .channel-category {

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.7rem;

    margin-top: 2px;

    background: rgba(255, 255, 255, 0.1);

    padding: 2px 6px;

    border-radius: 4px;

    font-weight: 500;

    border: 1px solid rgba(255, 255, 255, 0.2);

}

/* VPN Badge in Channel Bar */
.channel-bar-vpn-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.channel-bar-vpn-badge i {
    font-size: 0.4rem;
}



.channel-bar-controls {

    display: flex;

    justify-content: center;

    gap: 12px;

    padding: 12px 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

}



.channel-bar-btn {

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.2);

    color: #fff;

    padding: 8px 16px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-size: 0.9rem;

    backdrop-filter: blur(5px);

}



.channel-bar-btn:hover {

    background: rgba(255, 255, 255, 0.25);

    border-color: rgba(255, 255, 255, 0.4);

    transform: translateY(-1px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(8px);

}



.channel-bar-btn:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

}



/* Channels Button */

.channels-btn {

    background: var(--secondary-color);

    border: 1px solid var(--border-color);

    color: var(--text-primary);

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.2s ease;

    font-size: 0.9rem;

}



.channels-btn:hover {

    background: var(--primary-color);

    color: #fff;

    transform: translateY(-1px);

}



/* Responsive Channel Bar */

@media (max-width: 768px) {

    .channel-bar-content {

        gap: 8px;

        padding: 12px;

    }

    

    .channel-bar-item {

        width: 80px;

        padding: 6px;

    }

    

    .channel-bar-item img {

        width: 32px;

        height: 32px;

    }

    

    .channel-bar-item .channel-name {

        font-size: 0.75rem;

    }

    

    .channel-bar-item .channel-category {

        font-size: 0.65rem;

    }

    

    .scroll-indicator {

        width: 28px;

        height: 28px;

        font-size: 0.7rem;

    }

}



@media (max-width: 480px) {

    .channel-bar-content {

        gap: 6px;

        padding: 8px;

    }

    

    .channel-bar-item {

        width: 70px;

        padding: 4px;

        /* Enhanced touch response */

        touch-action: manipulation;

        -webkit-tap-highlight-color: transparent;

        transition: transform 0.1s ease, background-color 0.1s ease;

    }

    

    .channel-bar-item:active {

        transform: scale(0.95);

        background-color: rgba(255, 255, 255, 0.3);

    }

    

    .channel-bar-item img {

        width: 28px;

        height: 28px;

    }

    

    .channel-bar-item .channel-name {

        font-size: 0.7rem;

    }

    

    .channel-bar-item .channel-category {

        font-size: 0.6rem;

    }

    

    .scroll-indicator {

        width: 24px;

        height: 24px;

        font-size: 0.6rem;

        /* Better touch targets */

        min-width: 44px;

        min-height: 44px;

        display: flex;

        align-items: center;

        justify-content: center;

    }

    

    .scroll-indicator.left {

        left: 4px;

    }

    

    .scroll-indicator.right {

        right: 4px;

    }

    

    /* Enhanced mobile scrolling */

    .channel-bar-scroll {

        /* Faster momentum scrolling */

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;

        scroll-snap-type: x mandatory;

        /* Reduce scroll friction */

        scroll-behavior: auto;

    }

}



/* High Contrast Mode */

body.high-contrast {

    --text-primary: #ffffff;

    --text-secondary: #e5e5e5;

    --background-dark: #000000;

    --background-light: #1a1a1a;

    --border-color: #555555;

    --highlight-color: #ffff00;

}



body.high-contrast .channel-card {

    border: 2px solid var(--border-color);

}



body.high-contrast .channel-card:hover {

    border-color: var(--highlight-color);

    box-shadow: 0 0 10px var(--highlight-color);

}



/* Status Toggle Styles */

.status-toggle-container {

    display: flex;

    gap: 0.5rem;

    margin-top: 0.5rem;

}



.status-toggle {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 1rem;

    border: 2px solid var(--border-color);

    border-radius: 8px;

    background: var(--background-light);

    cursor: pointer;

    transition: all 0.2s ease;

    font-size: 0.9rem;

    font-weight: 500;

}



.status-toggle:hover {

    border-color: var(--highlight-color);

    background: var(--accent-color);

}



.status-toggle.active {

    border-color: var(--highlight-color);

    background: var(--highlight-color);

    color: white;

}
.status-icon {

    font-size: 0.8rem;

    transition: color 0.2s ease;

}



.status-toggle.active .status-icon.active {

    color: #10b981;

}



.status-toggle .status-icon.inactive {

    color: #ef4444;

}



.status-toggle.active .status-icon.inactive {

    color: white;

}
.channel-status-indicator.inactive {

    color: #ef4444;

}



.channel-status-indicator i {

    font-size: 0.7rem;

}



/* Admin Channel Status Indicator */

.admin-channel-title-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.5rem;

    margin-bottom: 0.25rem;

}



.admin-channel-status-indicator {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    flex-shrink: 0;

}



.admin-channel-status-indicator.active {

    color: #10b981;

}



.admin-channel-status-indicator.inactive {

    color: #ef4444;

}



.admin-channel-status-indicator i {

    font-size: 0.8rem;

}



/* Light Theme for New Elements */

body[data-theme="light"] .settings-section {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .settings-section-title {

    color: #1e293b;

    border-bottom-color: #e2e8f0;

}



body[data-theme="light"] .zoom-slider {

    background: #e2e8f0;

}



body[data-theme="light"] .zoom-value {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .color-theme-select,

body[data-theme="light"] .font-size-select,

body[data-theme="light"] .layout-mode-select,

body[data-theme="light"] .border-radius-select {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .settings-actions {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .settings-button-group-title {

    background: linear-gradient(135deg, #f8fafc, #e2e8f0);

    border-color: #cbd5e1;

    color: #475569;

}



body[data-theme="light"] .settings-button-group-title i {

    color: #3b82f6;

}



body[data-theme="light"].high-contrast {

    --text-primary: #000000;

    --text-secondary: #333333;

    --background-dark: #ffffff;

    --background-light: #f5f5f5;

    --border-color: #999999;

    --highlight-color: #0066cc;

}
/* Light Theme for Enhanced Settings */

body[data-theme="light"] .settings-section-card {

    background: #ffffff;

    border-color: #e2e8f0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}



body[data-theme="light"] .settings-section-header {

    background: linear-gradient(135deg, #f8fafc, #f1f5f9);

    border-bottom-color: #e2e8f0;

}
body[data-theme="light"] .settings-section-header h3 {

    color: #1e293b;

}



body[data-theme="light"] .setting-label-group label {

    color: #1e293b;

}



body[data-theme="light"] .setting-label-group small {

    color: #64748b;

}



body[data-theme="light"] .enhanced-input,

body[data-theme="light"] .enhanced-select {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .enhanced-input:focus,

body[data-theme="light"] .enhanced-select:focus {

    border-color: #3b82f6;

}



body[data-theme="light"] .enhanced-slider {
    background-color: #e2e8f0;
}

/* Enhanced Settings Styles - Missing from main CSS */
.enhanced-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
    /* Animations removed for better performance */
}

.enhanced-setting-item:hover {
    /* Hover effects removed */
}

.enhanced-setting-item:last-child {
    border-bottom: none;
}

.setting-label-group {
    flex: 1;
    min-width: 0;
}

.setting-label-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.setting-label-group small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.enhanced-input {
    width: 100%;
    max-width: 300px;
    background: var(--background-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    /* transition removed */
}

.enhanced-input:focus {
    outline: none;
    border-color: var(--highlight-color);
}

.enhanced-select {
    width: 100%;
    max-width: 300px;
    background: var(--background-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    /* transition removed */
}

.enhanced-select:focus {
    outline: none;
    border-color: var(--highlight-color);
}

.enhanced-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

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

.enhanced-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    /* transition removed */
    border-radius: 32px;
}

.enhanced-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    /* transition removed */
    border-radius: 50%;
}

.enhanced-switch input:checked + .enhanced-slider {
    background-color: var(--highlight-color);
}

.enhanced-switch input:checked + .enhanced-slider:before {
    transform: translateX(28px);
}

.remote-storage-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.test-connection-btn,
.save-remote-settings-btn,
.sync-now-btn {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 140px;
    justify-content: center;
}

.test-connection-btn {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
}

.test-connection-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.save-remote-settings-btn {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.save-remote-settings-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.sync-now-btn {
    border-color: var(--highlight-color);
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(255, 107, 107, 0.05));
}

.sync-now-btn:hover {
    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.sync-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sync-status strong {
    color: var(--text-primary);
}

#syncStatusText {
    color: var(--highlight-color);
    font-weight: 600;
}

#lastSyncTime {
    color: var(--text-primary);
    font-weight: 500;
}

.diagnostic-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.enhanced-diagnostic-btn {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-height: 80px;
    justify-content: center;
}

.enhanced-diagnostic-btn:hover {
    border-color: var(--highlight-color);
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.enhanced-diagnostic-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.enhanced-diagnostic-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.enhanced-diagnostic-btn small {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.enhanced-diagnostic-btn.diagnostic-btn i {
    color: #3b82f6;
}

.enhanced-diagnostic-btn.export-btn i {
    color: #10b981;
}

.enhanced-diagnostic-btn.import-btn i {
    color: #8b5cf6;
}

/* Light Theme for Enhanced Settings */
body[data-theme="light"] .enhanced-input,
body[data-theme="light"] .enhanced-select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body[data-theme="light"] .enhanced-input:focus,
body[data-theme="light"] .enhanced-select:focus {
    border-color: #3b82f6;
}

body[data-theme="light"] .enhanced-slider {
    background-color: #e2e8f0;
}

body[data-theme="light"] .test-connection-btn,
body[data-theme="light"] .save-remote-settings-btn,
body[data-theme="light"] .sync-now-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body[data-theme="light"] .test-connection-btn {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

body[data-theme="light"] .save-remote-settings-btn {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
}

body[data-theme="light"] .sync-now-btn {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

body[data-theme="light"] .sync-status {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body[data-theme="light"] .sync-status p {
    color: #64748b;
}

body[data-theme="light"] .sync-status strong {
    color: #1e293b;
}

body[data-theme="light"] #syncStatusText {
    color: #3b82f6;
}

body[data-theme="light"] #lastSyncTime {
    color: #1e293b;
}

body[data-theme="light"] .enhanced-diagnostic-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body[data-theme="light"] .enhanced-diagnostic-btn:hover {
    background: #f8fafc;
    border-color: #3b82f6;
}

body[data-theme="light"] .enhanced-diagnostic-btn small {
    color: #64748b;
}

/* Mobile Responsive Styles for Enhanced Settings */
@media (max-width: 768px) {
    .settings-section-card {
        margin: 0 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .settings-section-header {
        padding: 1rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .settings-section-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .settings-section-header i {
        font-size: 1.1rem;
    }
    
    .settings-section-content {
        padding: 1rem;
    }
    
    .enhanced-setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .enhanced-setting-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .setting-label-group {
        width: 100%;
    }
    
    .setting-label-group label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .setting-label-group small {
        font-size: 0.8rem;
    }
    
    .enhanced-input,
    .enhanced-select {
        width: 100%;
        max-width: none;
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .enhanced-switch {
        align-self: flex-start;
        transform: scale(0.9);
    }
    
    .remote-storage-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.75rem;
    }
    
    .remote-storage-actions button {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .diagnostic-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .enhanced-diagnostic-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
        min-height: 70px;
    }
    
    .enhanced-diagnostic-btn small {
        font-size: 0.7rem;
    }
    
    .sync-status {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .sync-status p {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .settings-section-card {
        margin: 0 0.25rem 0.75rem;
        border-radius: 6px;
    }
    
    .settings-section-header {
        padding: 0.75rem;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }
    
    .settings-section-header h3 {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .settings-section-header i {
        font-size: 0.9rem;
    }
    
    .settings-section-content {
        padding: 0.75rem;
    }
    
    .enhanced-setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .enhanced-setting-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .setting-label-group label {
        font-size: 0.85rem;
    }
    
    .setting-label-group small {
        font-size: 0.75rem;
    }
    
    .enhanced-input,
    .enhanced-select {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .enhanced-switch {
        transform: scale(0.8);
    }
    
    .remote-storage-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .remote-storage-actions button {
        padding: 0.65rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .diagnostic-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .enhanced-diagnostic-btn {
        padding: 0.65rem;
        font-size: 0.8rem;
        min-height: 60px;
    }
    
    .enhanced-diagnostic-btn small {
        font-size: 0.65rem;
    }
    
    .sync-status {
        padding: 0.65rem;
        font-size: 0.75rem;
    }
    
    .sync-status p {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
}

/* Additional Enhancements for Admin Settings */
.remote-storage-config {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Improve button states */
.enhanced-diagnostic-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-connection-btn:active,
.save-remote-settings-btn:active,
.sync-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Focus states for accessibility */
.enhanced-input:focus,
.enhanced-select:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

.enhanced-switch input:focus + .enhanced-slider {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* Loading states */
.test-connection-btn.loading,
.save-remote-settings-btn.loading,
.sync-now-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.test-connection-btn.loading i,
.save-remote-settings-btn.loading i,
.sync-now-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* VPN Toggle Styles */
.vpn-toggle-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.vpn-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
    justify-content: center;
    min-width: 120px;
    text-align: center;
}

.vpn-toggle:hover {
    border-color: var(--highlight-color);
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpn-toggle.active {
    border-color: var(--highlight-color);
    background: var(--highlight-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.vpn-toggle .vpn-icon {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.vpn-toggle.active .vpn-icon {
    color: white;
}

.vpn-toggle:not(.active) .vpn-icon {
    color: var(--text-muted);
}

/* VPN Toggle Focus States */
.vpn-toggle:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* VPN Toggle Active States */
.vpn-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light Theme for VPN Toggle */
body[data-theme="light"] .vpn-toggle {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body[data-theme="light"] .vpn-toggle:hover {
    background: #f8fafc;
    border-color: #3b82f6;
}

body[data-theme="light"] .vpn-toggle.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

body[data-theme="light"] .vpn-toggle:not(.active) .vpn-icon {
    color: #64748b;
}

/* Mobile Responsive for VPN Toggle */
@media (max-width: 768px) {
    .vpn-toggle-container {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .vpn-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: var(--background-light);
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
        font-weight: 500;
        flex: 1;
        justify-content: center;
        min-width: auto;
        width: auto;
    }
    
    .vpn-toggle:hover {
        border-color: var(--highlight-color);
        background: var(--accent-color);
    }
    
    .vpn-toggle.active {
        border-color: var(--highlight-color);
        background: var(--highlight-color);
        color: white;
    }
    
    .vpn-toggle .vpn-icon {
        font-size: 0.8rem;
        transition: color 0.2s ease;
    }
    
    .vpn-toggle.active .vpn-icon {
        color: white;
    }
    
    .vpn-toggle:not(.active) .vpn-icon {
        color: var(--text-muted);
    }
}

@media (max-width: 480px) {
    .vpn-toggle-container {
        gap: 0.5rem;
    }
    
    .vpn-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .vpn-toggle .vpn-icon {
        font-size: 0.75rem;
    }
}



body[data-theme="light"] input:checked + .enhanced-slider {

    background-color: #3b82f6;

}



body[data-theme="light"] .enhanced-diagnostic-btn {

    background: #ffffff;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .enhanced-diagnostic-btn:hover {

    background: #f8fafc;

    border-color: #3b82f6;

}



body[data-theme="light"] .enhanced-diagnostic-btn small {

    color: #64748b;

}



body[data-theme="light"] .settings-save-section {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .enhanced-save-btn {

    background: linear-gradient(45deg, #3b82f6, #1d4ed8);

}



body[data-theme="light"] .enhanced-save-btn:hover {

    background: linear-gradient(45deg, #2563eb, #1e40af);

}
/* Responsive Design */

@media (max-width: 768px) {

    .container {

        padding: 0 15px;

    }

    

    .header-content {

        flex-direction: row;

        gap: 1rem;

    }

    

    .header-actions {

        width: auto;

        justify-content: flex-end;

    }

    

    /* Theme switch responsive adjustments */

    .theme-switch {

        width: 56px;

        height: 30px;

        font-size: 15px;

    }

    

    .theme-slider:before {

        height: 22px;

        width: 22px;

    }

    

    .theme-switch .sun svg,

    .theme-switch .moon svg {

        width: 20px;

        height: 20px;

    }

    

    .theme-switch .sun svg {

        left: 32px;

        top: 5px;

    }

    

    .theme-switch .moon svg {

        left: 4px;

        top: 4px;

    }

    

    .theme-input:checked + .theme-slider:before {

        transform: translateX(26px);

    }

    

    /* Show mobile menu button on mobile */

    .mobile-menu-btn {

        display: flex;

    }

    

    /* Hide desktop navigation on mobile */

    

    /* Show breadcrumbs on mobile with optimized layout */

    .breadcrumbs-container {

        display: block;

        padding: 0.5rem 0;

        position: sticky;

        top: 70px;

        z-index: 998;

    }

    

    .breadcrumbs {

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        gap: 0.5rem;

        font-size: 0.8rem;

    }

    

    .breadcrumb-item {

        padding: 0.25rem 0.5rem;

        font-size: 0.7rem;

        border-radius: 6px;

        background: rgba(255, 255, 255, 0.05);

        border: 1px solid rgba(255, 255, 255, 0.1);

        transition: all 0.3s ease;

    }

    

    .breadcrumb-item:first-child {

        display: none;

    }

    

    .breadcrumb-item:hover {

        background: rgba(255, 255, 255, 0.1);

        transform: translateX(-2px);

    }

    

    .breadcrumb-item.active {

        background: var(--highlight-color);

        color: white;

        border-color: var(--highlight-color);

    }

    

    .breadcrumb-separator {

        display: none;

    }

    

    .channel-stats {

        margin-right: 0;

        margin-top: 0;

        margin-bottom: 0;

        align-self: center;

    }

    

    .stats-text {

        font-size: 0.75rem;

    }

    

    .last-update-text {

        font-size: 0.7rem;

        margin-right: 0.5rem;

    }

    

    .update-time-text {

        font-size: 0.7rem;

        padding: 0.2rem 0.4rem;

        border-radius: 6px;

    }

    

    

    /* Footer Mobile Responsive */

    .footer {

        padding: 2.5rem 0 1.5rem;

        margin-top: 2rem;

    }

    

    .footer-content {

        display: grid;

        grid-template-columns: 1fr;

        gap: 2.5rem;

    }

    

    /* Brand section - full width */

    .footer-section:first-child {

        order: -1;

        padding: 1.5rem;

        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));

        border-radius: 12px;

        border: 1px solid rgba(59, 130, 246, 0.1);

        margin-bottom: 1rem;

        text-align: center;

    }

    

    .footer-logo {

        justify-content: center;

        margin-bottom: 1rem;

    }

    

    .footer-logo h3 {

        font-size: 1.3rem;

    }

    

    .footer-description {

        font-size: 0.9rem;

        text-align: center;

        max-width: 100%;

        margin: 0 auto 1.5rem;

        line-height: 1.6;

    }

    

    .footer-social {

        justify-content: center;

        margin-top: 1rem;

        gap: 1rem;

    }

    

    /* Links sections - 2 columns */

    .footer-section:not(:first-child) {

        padding: 0;

    }

    

    

    .footer-links {

        gap: 0.5rem;

        list-style: none;

        padding: 0;

        margin: 0;

    }

    

    .footer-links a {

        font-size: 0.8rem;

        padding: 0.4rem 0.5rem;

        text-align: center;

        background: rgba(59, 130, 246, 0.05);

        border-radius: 6px;

        margin: 0.2rem 0;

        transition: all 0.3s ease;

        display: block;

        color: var(--text-secondary);

        text-decoration: none;

    }

    

    .footer-links a:hover {

        background: rgba(59, 130, 246, 0.1);

        transform: translateY(-1px);

        color: var(--highlight-color);

    }

    

    .footer-bottom {

        flex-direction: column;

        text-align: center;

        gap: 1.5rem;

        padding-top: 1.5rem;

        border-top: 1px solid var(--border-color);

        margin-top: 2rem;

    }

    

    .footer-copyright {

        order: 2;

    }

    

    .footer-legal {

        justify-content: center;

        order: 1;

        flex-wrap: wrap;

        gap: 1rem;

    }

    

    .legal-link {

        font-size: 0.85rem;

        padding: 0.5rem 1rem;

        background: rgba(59, 130, 246, 0.1);

        border-radius: 20px;

        border: 1px solid rgba(59, 130, 246, 0.2);

        transition: all 0.3s ease;

    }

    

    .legal-link:hover {

        background: rgba(59, 130, 246, 0.2);

        transform: translateY(-2px);

    }

    

    .separator {

        display: none;

    }
    /* Mobile breadcrumbs for smaller screens */

    @media (max-width: 480px) {

        .breadcrumbs-container {

            padding: 0.375rem 0;

            top: 65px;

        }

        

        .breadcrumbs {

            font-size: 0.75rem;

            gap: 0.3rem;

        }

        

        .breadcrumb-item {

            padding: 0.2rem 0.4rem;

            font-size: 0.65rem;

        }

        

        .stats-text {

            font-size: 0.7rem;

        }

        

        .update-time-text {

            font-size: 0.65rem;

            padding: 0.15rem 0.3rem;

            border-radius: 4px;

        }

        

        

        /* Footer for extra small screens */

        .footer {

            padding: 1.5rem 0 0.75rem;

            margin-top: 1.5rem;

        }

        

        .footer-content {

            gap: 1.5rem;

        }

        

        .footer-section:first-child {

            padding: 1rem;

            margin-bottom: 0.5rem;

        }

        

        .footer-logo h3 {

            font-size: 1.1rem;

        }

        

        .footer-description {

            font-size: 0.8rem;

            margin-bottom: 1rem;

        }

        

        .footer-social {

            gap: 0.5rem;

        }

        

        .social-link {

            width: 2rem;

            height: 2rem;

        }

        

        .social-link i {

            font-size: 0.9rem;

        }

        

        .footer-section {

            padding: 0.5rem 0;

        }

        

        

        .footer-links {

            gap: 0.4rem;

        }

        

        .footer-links a {

            font-size: 0.8rem;

            padding: 0.35rem 0;

        }

        

        .footer-bottom {

            gap: 1rem;

            padding-top: 1rem;

        }

        

        .footer-copyright p {

            font-size: 0.75rem;

        }

        

        .footer-version {

            font-size: 0.65rem !important;

        }

        

        .footer-legal {

            gap: 0.5rem;

        }

        

        .legal-link {

            font-size: 0.75rem;

            padding: 0.35rem 0.6rem;

        }

        

        

        .footer-links a {

            font-size: 0.7rem;

            padding: 0.25rem 0.3rem;

        }

        

        /* Footer for very small screens */

        .footer {

            padding: 2rem 0 1rem;

            margin-top: 2rem;

        }

        

        .footer-content {

            gap: 2rem;

        }

        

        .footer-section:first-child {

            padding: 1.25rem;

            margin-bottom: 0.75rem;

        }

        

        .footer-logo h3 {

            font-size: 1.2rem;

        }

        

        .footer-description {

            font-size: 0.85rem;

            margin-bottom: 1.25rem;

        }

        

        .footer-social {

            gap: 0.75rem;

        }

        

        .social-link {

            width: 2.25rem;

            height: 2.25rem;

        }

        

        .social-link i {

            font-size: 1rem;

        }

        

        

        .footer-links {

            gap: 0.3rem;

        }

        

        .footer-links a {

            font-size: 0.75rem;

            padding: 0.3rem 0.4rem;

        }

        

        .footer-bottom {

            gap: 1.25rem;

            padding-top: 1.25rem;

        }

        

        .footer-copyright p {

            font-size: 0.8rem;

        }

        

        .footer-version {

            font-size: 0.7rem !important;

        }

        

        .footer-legal {

            gap: 0.75rem;

        }

        

        .legal-link {

            font-size: 0.8rem;

            padding: 0.4rem 0.8rem;

        }

    }

    

    @media (max-width: 375px) {

        .breadcrumbs-container {

            padding: 0.25rem 0;

            top: 60px;

        }

        

        .breadcrumbs {

            font-size: 0.7rem;

            gap: 0.2rem;

        }

        

        .breadcrumb-item {

            padding: 0.15rem 0.3rem;

            font-size: 0.6rem;

        }

        

        .stats-text {

            font-size: 0.65rem;

        }

    }

    

    /* Adjust quick actions on mobile */

    .quick-actions {

        margin-left: 0.5rem;

        gap: 0.25rem;

    }

    

    .quick-action-btn {

        width: 36px;

        height: 36px;

        font-size: 0.9rem;

    }

    

    /* Hide header search and filters on mobile */

    .header-center {

        display: none;

    }

    

    /* Hide desktop-only elements on mobile */

    .desktop-only {

        display: none !important;

    }

    

    

    /* Adjust header layout for mobile */

    .header-content {

        gap: 1rem;

    }

    

    /* Adjust mobile sidebar to use flexbox */

    .mobile-sidebar {

        display: flex;

        flex-direction: column;

    }

    

    .nav-tabs {

        flex-wrap: wrap;

        justify-content: center;

    }

    

    

    .video-container {

        width: 85vw;

        height: 47.8vw;

        max-height: 58vh;

        margin-top: 2vh;

        margin-bottom: 3vh;

    }

    

    .modal-content {

        max-width: 90vw;

        max-height: 90vh;

    }

    

    .settings-content {

        width: 90vw;

        max-width: 500px;

        height: 75vh;

        margin: 10vh auto 0;

        position: relative;

        top: 0;

        border-radius: 16px;

        display: flex;

        flex-direction: column;

    }

    

    .admin-content {

        width: 98vw;

        height: 92vh;

        max-width: none;

        border-radius: 16px;

        margin: 3vh auto 0;

        position: relative;

        top: 0;

    }

    

    /* تحسين رأس لوحة التحكم */

    .modal-header {

        padding: 1.25rem 1rem;

        flex-wrap: wrap;

        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);

        border-bottom: 2px solid var(--highlight-color);

        border-radius: 16px 16px 0 0;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    }

    

    .modal-header h3 {

        font-size: 1.15rem;

        flex: 1;

        min-width: 200px;

        font-weight: 700;

        color: var(--text-primary);

    }

    

    .admin-header-actions {

        display: flex;

        gap: 0.5rem;

    }

    

    .logout-btn,

    .close-btn {

        width: 44px;

        height: 44px;

        padding: 0;

        display: flex;

        align-items: center;

        justify-content: center;

        border-radius: 12px;

        font-size: 1.1rem;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

        transition: all 0.3s ease;

    }

    

    .logout-btn:active,

    .close-btn:active {

        transform: scale(0.95);

        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

    }

    

    /* تحسين admin sidebar للموبايل */

    .admin-layout {

        flex-direction: column;

        height: 100%;

    }

    

    .admin-sidebar {

        width: 100%;

        max-height: none;

        border-left: none;

        border-bottom: 2px solid var(--border-color);

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

    }

    

    .admin-tabs {

        flex-direction: row;

        padding: 0.5rem;

        gap: 0.5rem;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }

    

    .admin-tabs::-webkit-scrollbar {

        display: none;

    }

    

    .admin-tab {

        flex-shrink: 0;

        padding: 0.75rem 1rem;

        font-size: 0.85rem;

        white-space: nowrap;

        border-radius: 12px;

        margin: 0;

        border-right: none;

        border-bottom: 3px solid transparent;

    }

    

    .admin-tab.active {

        border-bottom-color: var(--highlight-color);

    }

    

    .admin-tab i {

        font-size: 1rem;

    }

    

    .admin-body {

        flex: 1;

        padding: 1rem;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

    }

    

    .add-channel-form {

        max-width: 100%;

        display: flex;

        flex-direction: column;

        height: 100%;

        max-height: none;

        overflow: hidden;

        padding: 0;

        position: relative;

        background: var(--background-dark);

    }

    

    /* حاوية قابلة للتمرير للحقول */

    .add-channel-form .form-row {

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        flex: 1;

        padding: 1rem;

        padding-bottom: 0.5rem;

        margin-bottom: 0;

    }

    

    /* Mobile Form Layout - Single Column */

    .form-row {

        display: flex;

        flex-direction: column;

        gap: 0;

        margin-bottom: 0;

    }

    

    .form-column {

        gap: 0;

        width: 100%;

    }

    

    .form-actions {

        position: relative !important;

        bottom: auto !important;

        left: 0;

        right: 0;

        margin-top: 0 !important;

        padding: 1rem !important;

        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem) !important;

        background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, var(--background-dark) 100%) !important;

        z-index: 10 !important;

        display: flex !important;

        flex-direction: row !important;

        gap: 0.75rem !important;

        border-top: 2px solid var(--highlight-color) !important;

        margin-left: 0;

        margin-right: 0;

        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25) !important;

        flex-shrink: 0 !important;

        backdrop-filter: blur(10px);

    }

    

    .reset-btn {

        flex: 1;

        padding: 0.7rem;

        font-size: 0.9rem;

        font-weight: 600;

        background: rgba(255, 255, 255, 0.05);

        border: 2px solid var(--border-color);

        color: var(--text-secondary);

        border-radius: 10px;

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 0.5rem;

        cursor: pointer;

        transition: all 0.3s ease;

        min-height: 44px;

    }

    

    .reset-btn:active {

        background: var(--background-darker);

        transform: scale(0.98);

    }

    

    .form-fields {

        flex: 1;

        overflow-y: auto;

        padding-bottom: 1rem;

        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */

        scroll-behavior: smooth;

    }

    

    .form-actions {

        position: sticky;

        bottom: 0;

        background: var(--background-dark);

        padding: 1rem 0 2rem 0;

        border-top: 1px solid var(--border-color);

        margin-top: auto;

        z-index: 100;

        margin-bottom: env(safe-area-inset-bottom, 0px);

        flex-shrink: 0;

        min-height: 80px;

    }

    

    .form-group {

        margin-bottom: 0.7rem;

        width: 100%;

    }

    

    .form-group:last-child {

        margin-bottom: 0.3rem;

    }

    

    .form-group label {

        display: block;

        font-size: 0.8rem;

        font-weight: 600;

        color: var(--text-primary);

        margin-bottom: 0.3rem;

        letter-spacing: -0.01em;

    }

    

    .form-group input[type="text"],

    .form-group input[type="url"],

    .form-group select {

        width: 100%;

        padding: 0.5rem 0.6rem;

        font-size: 14px;

        border: 1.5px solid var(--border-color);

        border-radius: 8px;

        background: rgba(255, 255, 255, 0.05);

        color: var(--text-primary);

        -webkit-appearance: none;

        -moz-appearance: none;

        appearance: none;

        box-sizing: border-box;

        transition: all 0.3s ease;

        min-height: 38px;

    }

    

    .form-group input[type="text"]:focus,

    .form-group input[type="url"]:focus,

    .form-group select:focus {

        outline: none;

        border-color: var(--highlight-color);

        background: rgba(59, 130, 246, 0.08);

        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

    }

    

    .form-group select {

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");

        background-repeat: no-repeat;

        background-position: left 0.8rem center;

        padding-left: 2.2rem;

    }

    

    .form-group .form-help {

        display: block;

        font-size: 0.7rem;

        color: var(--text-secondary);

        margin-top: 0.25rem;

        line-height: 1.25;

    }

    

    /* تحسين مؤشر نوع الرابط */

    #urlTypeIndicator {

        margin-top: 0.5rem !important;

        padding: 0.6rem !important;

        background: var(--secondary-color) !important;

        border: 1px solid var(--border-color) !important;

        border-radius: 8px !important;

        align-items: center !important;

        gap: 0.4rem !important;

    }

    

    /* عرض المؤشر فقط عند وجود رابط */

    #urlTypeIndicator[style*="display: block"] {

        display: flex !important;

    }

    

    #urlTypeIndicator[style*="display: none"] {

        display: none !important;

    }

    

    #urlTypeIndicator i {

        font-size: 1rem;

    }

    

    #urlTypeValue {

        font-weight: 700 !important;

        color: var(--highlight-color) !important;

    }

    

    /* تصغير خاص للحقول الأساسية: اسم القناة، الفئة، البلد */

    #channelName,

    #channelCategory,

    #channelCountryInput {

        padding: 0.4rem 0.55rem !important;

        font-size: 14px !important;

        min-height: 36px !important;

        border-radius: 7px !important;

    }

    

    /* تصغير Labels للحقول الأساسية */

    label[for="channelName"],

    label[for="channelCategory"],

    label[for="channelCountryInput"] {

        font-size: 0.75rem !important;

        font-weight: 600 !important;

        margin-bottom: 0.25rem !important;

    }

    

    /* تصغير مسافات Form Groups للحقول الأساسية */

    #channelName,

    #channelCategory,

    #channelCountryInput {

        margin-bottom: 0.5rem;

    }

    

    /* ترتيب الحقول في وضع الهاتف: اسم القناة والبلد بجانب بعض */

    .add-channel-form .form-column {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 0.5rem;

        width: 100%;

    }

    

    /* اسم القناة - العمود الأول، الصف الأول */

    .add-channel-form .form-column > .form-group:nth-child(1) {

        grid-column: 1;

        grid-row: 1;

    }

    

    /* البلد - العمود الثاني، الصف الأول */

    .add-channel-form .form-column > .form-group:nth-child(3) {

        grid-column: 2;

        grid-row: 1;

    }

    

    /* الفئة - كامل العرض، الصف الثاني */

    .add-channel-form .form-column > .form-group:nth-child(2) {

        grid-column: 1 / -1;

        grid-row: 2;

    }

    

    /* باقي الحقول - كامل العرض */

    .add-channel-form .form-column > .form-group:nth-child(n+4) {

        grid-column: 1 / -1;

    }

    


    .add-btn {
        flex: 1 !important;

        padding: 0.7rem !important;

        font-size: 0.95rem !important;

        font-weight: 600 !important;

        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;

        color: white !important;

        border: none !important;

        border-radius: 10px !important;

        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        gap: 0.5rem !important;

        visibility: visible !important;

        opacity: 1 !important;

        min-height: 44px !important;

        margin: 0 !important;

        box-sizing: border-box !important;

        position: relative !important;

        z-index: 1000 !important;

        cursor: pointer !important;

        transition: all 0.3s ease !important;

        text-transform: none !important;

    }

    

    .add-btn:active {

        transform: scale(0.98) !important;

        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;

    }

    

    .add-btn:hover {

        background: linear-gradient(135deg, #1d4ed8, #1e40af);

        transform: translateY(-1px);

        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);

    }

    

    .form-group label {

        font-size: 0.85rem;

        margin-bottom: 0.25rem;

    }
    /* Extra small screens - ensure form fits properly */

    @media (max-width: 375px) {

        .add-channel-form {

            max-width: 95vw;

            height: calc(100vh - 120px);

        }

        

        .form-actions {

            padding: 0.75rem 0 1.5rem 0;

        }

        

        .form-group input,

        .form-group select,

        .form-group textarea {

            padding: 12px;

            font-size: 16px; /* Prevent zoom on iOS */

            border-radius: 8px;

            width: 100%;

        }

        

        .add-btn {

            padding: 12px;

            font-size: 16px;

        }

        

        .form-group label {

            font-size: 0.8rem;

        }

    }

    

    /* Very small screens - ensure form fits */

    @media (max-width: 320px) {

        .add-channel-form {

            max-width: 98vw;

            height: calc(100vh - 100px);

        }

        

        .form-actions {

            padding: 0.5rem 0 1.25rem 0;

        }

        

        .form-group input,

        .form-group select,

        .form-group textarea {

            padding: 10px;

            font-size: 16px;

        }

        

        .add-btn {

            padding: 10px;

            font-size: 16px;

        }

        

        .form-group label {

            font-size: 0.75rem;

        }

    }

    

    /* Light theme for mobile form */

    body[data-theme="light"] .form-actions {

        background: #ffffff;

        border-top-color: #e2e8f0;

    }

    

    body[data-theme="light"] .add-btn {

        background: linear-gradient(135deg, #3b82f6, #1d4ed8);

        color: white;

        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

    }

    

    body[data-theme="light"] .add-btn:hover {

        background: linear-gradient(135deg, #1d4ed8, #1e40af);

        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);

    }

    

    /* Additional safety for very small screens */

    @media (max-height: 600px) {

        .add-channel-form {

            height: calc(100vh - 100px);

        }

        

        .form-actions {

            padding: 0.5rem 0 1rem 0;

        }

    }

    

    /* Landscape orientation adjustments */

    @media (max-height: 500px) and (orientation: landscape) {

        .add-channel-form {

            height: calc(100vh - 80px);

        }

        

        .form-actions {

            padding: 0.25rem 0 0.75rem 0;

        }

        

        .add-btn {

            padding: 8px !important;

            font-size: 14px !important;

        }

    }

    

    /* Force button visibility on mobile */

    @media (max-width: 768px) {

        .add-btn {

            display: flex !important;

            visibility: visible !important;

            opacity: 1 !important;

            position: relative !important;

            z-index: 1000 !important;

            margin: 0 !important;

            width: 100% !important;

            order: 2 !important;

        }

        

        .reset-btn {

            display: flex !important;

            visibility: visible !important;

            opacity: 1 !important;

            order: 1 !important;

        }

        

        .add-channel-form {

            padding-bottom: 0 !important;

            display: flex !important;

            flex-direction: column !important;

        }

        

        .form-actions {

            display: flex !important;

            flex-shrink: 0 !important;

            min-height: auto !important;

        }

    }

    

    .form-group input,

    .form-group select {

        padding: 6px;

        font-size: 0.85rem;

    }

    

    .add-btn {

        padding: 6px 12px;

        font-size: 0.85rem;

    }

    

    .logo-upload-group {

        margin-top: 0.5rem;

    }

    

    .logo-upload-container {

        display: flex;

        flex-direction: column;

        gap: 1rem;

    }

    

    .logo-upload-btn {

        width: 100%;

        padding: 1rem;

        font-size: 1rem;

        background: var(--secondary-color);

        border: 2px dashed var(--border-color);

        border-radius: 8px;

        color: var(--text-primary);

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 0.5rem;

        cursor: pointer;

        transition: all 0.3s ease;

    }

    

    .logo-upload-btn:active {

        background: var(--highlight-color);

        border-color: var(--highlight-color);

        color: white;

    }

    

    .logo-preview {

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 1rem;

        background: var(--background-dark);

        border: 1px solid var(--border-color);

        border-radius: 8px;

        position: relative;

    }

    

    .logo-preview img {

        width: 100px;

        height: 100px;

        object-fit: contain;

        border-radius: 6px;

    }

    

    .remove-logo-btn {

        position: absolute;

        top: 0.5rem;

        left: 0.5rem;

        width: 32px;

        height: 32px;

        border-radius: 50%;

        background: rgba(233, 69, 96, 0.9);

        color: white;

        border: none;

        font-size: 0.9rem;

        display: flex;

        align-items: center;

        justify-content: center;

        cursor: pointer;

    }

    

    .admin-layout {

        flex-direction: column;

        height: calc(100% - 60px);

    }

    

    .admin-sidebar {

        width: 100%;

        height: auto;

        border-left: none;

        border-bottom: 1px solid var(--border-color);

    }

    

    .admin-tabs {

        flex-direction: row;

        padding: 0.5rem;

        gap: 0.25rem;

        overflow-x: auto;

        scrollbar-width: none;

        -ms-overflow-style: none;

    }

    

    .admin-tabs::-webkit-scrollbar {

        display: none;

    }

    

    .admin-tab {

        flex: 1;

        min-width: 100px;

        padding: 0.6rem 0.5rem;

        font-size: 0.75rem;

        border-radius: 8px;

        border-right: none;

        border-bottom: 3px solid transparent;

        margin: 0 0.15rem;

        text-align: center;

        flex-direction: column;

        gap: 0.3rem;

        white-space: nowrap;

    }

    

    .admin-tab i {

        font-size: 1.2rem;

        width: auto;

    }

    

    .admin-tab span {

        font-size: 0.7rem;

        display: block;

        overflow: hidden;

        text-overflow: ellipsis;

    }

    

    .admin-tab.active {

        border-bottom-color: var(--highlight-color);

        transform: none;

    }

    

    .admin-tab.active {

        border-right-color: transparent;

        border-bottom-color: var(--highlight-color);

    }

    

    .admin-tab:hover {

        transform: translateY(-1px);

    }

    

    .admin-body {

        flex: 1;

        padding: 0.75rem;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

    }

    

    /* تحسين البحث في لوحة التحكم */

    .admin-search {

        padding: 0.75rem;

        margin-bottom: 0.5rem;

    }

    

    .admin-search input {

        padding: 0.75rem;

        font-size: 0.9rem;

    }

    

    /* تحسين قائمة القنوات */

    .channels-list {

        padding: 0.5rem;

    }

    

    .admin-channel-item {

        flex-direction: column;

        align-items: flex-start;

        gap: 0.75rem;

        padding: 0.75rem;

        margin-bottom: 0.75rem;

        border-radius: 8px;

    }

    

    /* تحسين معلومات القناة */

    .admin-channel-info {

        width: 100%;

        gap: 0.5rem;

    }

    

    .admin-channel-info h4 {

        font-size: 0.95rem;

    }

    

    .admin-channel-meta {

        font-size: 0.8rem;

        flex-wrap: wrap;

    }

    

    /* تحسين شعار القناة */

    .admin-channel-logo {

        width: 60px;

        height: 60px;

    }

    

    /* إلغاء تأثيرات الهوفر في الهاتف */

    .admin-channel-item:hover {

        background: var(--background-dark);

        transform: none;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    }

    

    .admin-channel-logo:hover {

        transform: none;

        filter: brightness(1) contrast(1.1);

    }

    

    /* إلغاء تأثيرات الهوفر في الهاتف للوضع الفاتح */

    body[data-theme="light"] .admin-channel-item:hover {

        background: #ffffff;

        transform: none;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

        border-color: #e2e8f0;

    }

    

    /* إلغاء تأثيرات الهوفر على الأزرار في الهاتف */

    .admin-channel-actions .edit-btn:hover,

    .admin-channel-actions .delete-btn:hover {

        transform: none;

        box-shadow: none;

    }

    

    .move-btn:hover {

        transform: none;

        box-shadow: none;

    }

    

    .admin-channel-actions {

        width: 100%;

        justify-content: space-between;

        align-items: center;

        flex-wrap: wrap;

        gap: 8px;

    }

    

    .move-buttons {

        flex-direction: row;

        gap: 8px;

        margin-left: 0;

        margin-bottom: 0;

        order: 1;

    }

    

    .admin-channel-actions .edit-btn,

    .admin-channel-actions .delete-btn {

        order: 2;

    }

    

    .position-controls {

        flex: 1;

        min-width: 120px;

        order: 1;

    }

    

    .arrow-buttons {

        flex-shrink: 0;

        flex-wrap: wrap;

        justify-content: center;

        order: 1;

    }

    

    /* تحسين أزرار التعديل والحذف في الهاتف */

    .admin-channel-actions .edit-btn,

    .admin-channel-actions .delete-btn {

        min-width: 80px;

        padding: 0.6rem 1rem;

        font-size: 0.85rem;

    }

    

    /* تحسين زر حفظ الترتيب */

    .save-order-container {

        position: fixed;

        bottom: 10px;

        left: 50%;

        transform: translateX(-50%);

        z-index: 1000;

        padding: 6px 10px;

        width: auto;

        max-width: calc(100% - 20px);

        background: var(--background-dark);

        border: 2px solid var(--highlight-color);

        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 12px rgba(233, 69, 96, 0.2);

        border-radius: 8px;

    }

    

    .save-order-btn {

        padding: 6px 12px;

        font-size: 0.8rem;

        border-radius: 6px;

        min-width: 100px;

        gap: 0.3rem;

    }

    

    /* تحسين حقول الإدخال */

    .form-group label {

        font-size: 0.9rem;

        margin-bottom: 0.4rem;

    }

    

    .form-group input,

    .form-group select,

    .form-group textarea {

        padding: 0.75rem;

        font-size: 0.9rem;

        border-radius: 6px;

        -webkit-appearance: none;

    }

    
    /* تحسين أزرار الحالة والVPN */

    .status-toggle-container,

    .vpn-toggle-container {

        display: flex;

        gap: 0.5rem;

        margin-top: 0.5rem;

        flex-wrap: nowrap;

    }

    


    .status-toggle,

    .vpn-toggle {

        display: flex;

        align-items: center;

        gap: 0.4rem;

        padding: 0.4rem 0.7rem;

        border: 2px solid var(--border-color);

        border-radius: 7px;

        background: var(--background-light);

        cursor: pointer;

        transition: all 0.2s ease;

        font-size: 0.8rem;

        font-weight: 500;

        flex: 1;

        justify-content: center;

        color: var(--text-secondary);

        min-width: auto;

    }

    

    .status-toggle:hover,

    .vpn-toggle:hover {

        border-color: var(--highlight-color);

        background: var(--accent-color);

    }

    


    .status-toggle.active,

    .vpn-toggle.active {

        background: var(--highlight-color);

        border-color: var(--highlight-color);

        color: white;

        font-weight: 600;

    }

    

    .status-toggle .status-icon,

    .vpn-toggle .vpn-icon {

        font-size: 0.75rem;

        transition: color 0.2s ease;

    }

    

    .status-toggle.active .status-icon,

    .vpn-toggle.active .vpn-icon {

        color: white;

    }
    

    .arrow-buttons .move-btn {

        min-width: 28px;

        height: 28px;

        font-size: 0.7rem;

    }

    

    .save-order-container {

        bottom: 8px;

        padding: 4px 6px;

    }

    

    .save-order-actions {

        gap: 6px;

    }
    .save-order-btn {

<<<<<<< HEAD
        width: 100%;

        padding: 0.65rem;

        font-size: 0.85rem;

        border-radius: 8px;

    }

    

    /* تحسين إدارة الفئات */

    .categories-management {

        padding: 0;

    }

    

    .categories-header {

        padding: 0 0.75rem 0.75rem;

        flex-direction: column;

        gap: 0.6rem;

        align-items: stretch;

    }

    

    .categories-header h4 {

        font-size: 0.95rem;

    }

    

    .add-category-btn {

        width: 100%;

        padding: 0.65rem;

        font-size: 0.85rem;

    }

    

    .category-form-container {

        padding: 0.75rem;

    }

    

    .categories-list {

        padding: 0.5rem;

    }

    

    .category-item {
        padding: 6px 12px;
        margin-bottom: 3px;
        border-radius: 6px;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
    }

    

    .category-info {

        width: 100%;

    }

    

    .category-info h5 {

        font-size: 0.9rem;

    }

    

    .category-info p {

        font-size: 0.75rem;

    }

    

    .category-actions {

        width: 100%;

        justify-content: flex-start;

        gap: 0.4rem;

    }

    

    .category-actions button {

        flex: 1;

        padding: 0.6rem;

        font-size: 0.8rem;

    }

    

    /* تحسين الإعدادات العامة */

    .settings-section-card {

        margin: 0 0.5rem 1rem;

        padding: 1rem;

        border-radius: 12px;

        background: var(--background-light);

        border: 1px solid var(--border-color);

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    }

    

    .settings-section-header {

        padding: 0.75rem 0;

        margin-bottom: 1rem;

        flex-direction: row;

        gap: 0.5rem;

        align-items: center;

        border-bottom: 1px solid var(--border-color);

    }

    

    .settings-section-header h3 {

        font-size: 1rem;

        font-weight: 600;

        color: var(--text-primary);

        margin: 0;

    }

    

    .settings-section-header i {

        font-size: 1.1rem;

        color: var(--highlight-color);

        width: 20px;

        text-align: center;

    }

    

    .enhanced-setting-item {

        flex-direction: column;

        align-items: stretch;

        gap: 0.75rem;

        padding: 1rem 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    }

    

    .enhanced-setting-item:last-child {

        border-bottom: none;

        padding-bottom: 0;

    }

    

    .setting-label-group {

        width: 100%;

    }

    

    .setting-label-group label {

        font-size: 0.85rem;

    }

    

    .setting-label-group small {

        font-size: 0.75rem;

    }

    

    .enhanced-input,

    .enhanced-select {

        width: 100%;

        padding: 0.65rem 0.75rem;

        font-size: 0.9rem;

        border-radius: 6px;

    }

    

    .enhanced-switch {

        transform: scale(0.9);

    }

    

    .remote-storage-actions {

        flex-direction: column;

        gap: 0.6rem;

        margin-top: 0.75rem;

    }

    

    .remote-storage-actions button {

        width: 100%;

        padding: 0.65rem;

        font-size: 0.85rem;

        border-radius: 8px;

    }

    

    .diagnostic-tools-grid {

        grid-template-columns: 1fr;

        gap: 0.6rem;

        padding: 0 0.5rem;

    }

    

    .enhanced-diagnostic-btn {

        padding: 0.65rem;

        font-size: 0.85rem;

    }

    

    .enhanced-diagnostic-btn small {

        font-size: 0.7rem;

    }

    

    .sync-status {

        padding: 0.65rem;

        font-size: 0.75rem;

    }

    

    .sync-status p {

        font-size: 0.75rem;

        margin-bottom: 0.3rem;

    }

    

    /* تحسين نموذج إضافة الفئات */

    .category-form {

        padding: 0 0.75rem 0.75rem;

    }

    

    .category-form h5 {

        font-size: 0.9rem;

        margin-bottom: 0.75rem;

    }

    

    .category-form .form-group {

        margin-bottom: 0.75rem;

    }

    

    .category-form input,

    .category-form select {

        padding: 0.65rem 0.75rem;

        font-size: 0.9rem;

    }

    

    .category-form .form-actions {

        gap: 0.6rem;

        margin-top: 0.75rem;

    }

    

    .save-category-btn,

    .cancel-category-btn {

        padding: 0.65rem;

        font-size: 0.85rem;

    }

    

    /* تحسين حقول التبديل */

    .status-toggle-container,

    .vpn-toggle-container {

        gap: 0.4rem;

    }

    

    .status-toggle,

    .vpn-toggle {

        padding: 0.6rem 0.75rem;

        font-size: 0.8rem;

    }

    

    /* تحسين رفع الشعار */

    .logo-upload-btn {

        padding: 0.65rem;

        font-size: 0.85rem;

    }

    

    .logo-preview {

        max-width: 100%;

    }

    

    .logo-preview img {

        max-width: 80px;

        max-height: 80px;
=======
        padding: 6px 12px;

        font-size: 0.8rem;

        gap: 0.3rem;
>>>>>>> parent of 10674be (3030)

    }

}
@media (max-width: 480px) {

    .logo h1 {

        font-size: 1.4rem;

    }

    

    .admin-badge {

        padding: 6px 12px;

        font-size: 0.75rem;

        gap: 6px;

    }

    

    .admin-badge i {

        font-size: 0.7rem;

    }

    

    /* تحسين تخطيط لوحة التحكم في الشاشات الصغيرة */

    .admin-channel-actions {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

    }

    

    .move-buttons {

        justify-content: center;

        order: 2;

    }

    

    .admin-channel-actions .edit-btn,

    .admin-channel-actions .delete-btn {

        order: 1;

        width: 100%;

        max-width: none;

        margin: 2px 0;

    }

    

    /* إلغاء تأثيرات الهوفر في الشاشات الصغيرة جداً */

    .admin-channel-item:hover {

        background: var(--background-dark);

        transform: none;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    }

    

    body[data-theme="light"] .admin-channel-item:hover {

        background: #ffffff;

        transform: none;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

        border-color: #e2e8f0;

    }

    

    

    .channel-logo {

        height: 100px;

    }

    

    /* Diagnostic Tools on Mobile */

    .diagnostic-tools-grid {

        grid-template-columns: 1fr;

        gap: 0.75rem;

    }

    

    .diagnostic-tool-btn {

        flex-direction: row;

        justify-content: flex-start;

        text-align: right;

        min-height: 60px;

        padding: 0.75rem 1rem;

    }

    

    .diagnostic-tool-btn i {

        font-size: 1.3rem;

        margin-bottom: 0;

        margin-left: 0.75rem;

        flex-shrink: 0;

    }

    

    .diagnostic-tool-btn span {

        flex: 1;

        text-align: right;

    }

    

    /* Settings responsive */

    .settings-section {

        margin: 1rem 0;

        padding: 1rem;

    }

    

    .zoom-control {

        flex-direction: column;

        align-items: stretch;

        gap: 0.75rem;

    }

    

    .zoom-value {

        align-self: center;

        min-width: auto;

    }

    

    .color-theme-select,

    .font-size-select,

    .layout-mode-select,

    .border-radius-select {

        width: 100%;

        padding: 0.75rem 1rem;

        font-size: 0.9rem;

        border-radius: 8px;

        border: 1px solid var(--border-color);

        background: var(--background-light);

        color: var(--text-primary);

        transition: all 0.2s ease;

    }

    

    .color-theme-select:focus,

    .font-size-select:focus,

    .layout-mode-select:focus,

    .border-radius-select:focus {

        outline: none;

        border-color: var(--highlight-color);

        box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);

    }

    

    .settings-actions {

        margin-top: 1.5rem;

        padding-top: 1rem;

    }

    

    .settings-actions-grid {

        grid-template-columns: 1fr;

        gap: 1rem;

    }

    

    .settings-action-btn {

        padding: 0.875rem 1.25rem;

        font-size: 0.9rem;

    }

    

    .setting-label-group label {

        font-size: 0.95rem;

        font-weight: 600;

        color: var(--text-primary);

        margin: 0;

    }

    

    .setting-label-group small {

        font-size: 0.8rem;

        color: var(--text-secondary);

        line-height: 1.3;

        margin: 0;

    }

    

    .settings-button-group {

        gap: 0.5rem;

    }

    

    .settings-button-group-title {

        font-size: 0.85rem;

        padding: 0.4rem;

    }

    

    .reset-settings-btn,

    .delete-cookies-btn,

    .test-notifications-btn,

    .show-welcome-btn,

    .reset-notifications-btn,

    .disable-auto-update-btn {

        width: 100%;

        justify-content: center;

        padding: 12px 16px;

        font-size: 0.9rem;

    }

    

    /* Enhanced Settings Mobile */

    .enhanced-setting-item {

        flex-direction: column;

        align-items: stretch;

        gap: 1rem;

    }

    

    .enhanced-input,

    .enhanced-select {

        max-width: none;

        width: 100%;

    }

    

    .enhanced-switch {

        align-self: flex-start;

    }

    

    .diagnostic-tools-grid {

        grid-template-columns: 1fr;

        gap: 1rem;

    }

    

    .enhanced-diagnostic-btn {

        min-height: 60px;

        padding: 0.5rem;

    }

    

    .enhanced-save-btn {

        width: 100%;

        min-width: auto;

    }

    

    .nav-tab {

        padding: 10px 16px;

        font-size: 0.9rem;

    }

    

    .video-container {

        width: 82vw;

        height: 46.1vw;

        max-height: 60vh;

    }

    

    /* Mobile responsive news ticker */

    .news-ticker {

        height: 40px;

    }

    

    .news-ticker-label {

        padding: 0 12px;

        font-size: 0.8rem;

    }

    

    .news-ticker-text {

        font-size: 0.85rem;

        line-height: 40px;

    }

    

    .channel-logo-overlay {

        display: none !important; /* Always hidden on mobile */

    }

    

    .live-indicator {

        top: 15px;

        left: 15px;

        padding: 6px 10px;

        font-size: 0.7rem;

    }

    

    .quality-display {

        padding: 6px 10px;

        font-size: 0.7rem;

        margin-left: 6px;

    }
    .time-display {

        display: none !important; /* Always hidden on mobile */

    }
    /* إشعارات محسنة للهاتف - تصميم جديد */

    .notifications-container {

        position: fixed !important;

        top: 80px !important; /* تحت الهيدر مباشرة */

        left: 16px !important;

        right: 16px !important;

        bottom: auto !important;

        transform: none !important;

        max-width: none !important;

        width: calc(100vw - 32px) !important;

        gap: 8px !important;

        flex-direction: column !important;

        z-index: 10000 !important;

        pointer-events: none !important;

    }

    

    .notification {

        padding: 12px 16px !important;

        border-radius: 12px !important;

        min-height: 48px !important;

        transform: translateY(-20px) scale(0.95) !important;

        gap: 10px !important;

        box-shadow: 

            0 4px 20px rgba(0, 0, 0, 0.3),

            0 2px 6px rgba(0, 0, 0, 0.15),

            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;

        backdrop-filter: blur(20px) !important;

        border: 1px solid rgba(255, 255, 255, 0.15) !important;

        background: rgba(0, 0, 0, 0.85) !important;

        pointer-events: auto !important;

        position: relative !important;

        overflow: hidden !important;

    }

    

    /* تأثيرات إضافية للإشعارات */

    .notification::before {

        content: '' !important;

        position: absolute !important;

        top: 0 !important;

        left: 0 !important;

        right: 0 !important;

        height: 1px !important;

        background: linear-gradient(90deg, var(--highlight-color), #4f46e5, #7c3aed) !important;

        border-radius: 16px 16px 0 0 !important;

    }

    

    .notification::after {

        content: '' !important;

        position: absolute !important;

        top: 0 !important;

        left: 0 !important;

        right: 0 !important;

        bottom: 0 !important;

        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent) !important;

        border-radius: 16px !important;

        pointer-events: none !important;

    }

    

    .notification.show {

        transform: translateY(0) scale(1) !important;

        opacity: 1 !important;

    }

    

    .notification.hide {

        transform: translateY(-20px) scale(0.95) !important;

        opacity: 0 !important;

        margin-bottom: 0 !important;

        margin-top: -60px !important;

    }

    

    .notification-icon {

        width: 36px !important;

        height: 36px !important;

        font-size: 16px !important;

        border-radius: 10px !important;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;

        flex-shrink: 0 !important;

        position: relative !important;

        z-index: 2 !important;

    }

    

    /* تأثيرات خاصة للأيقونات */

    .notification-icon.success {

        background: linear-gradient(135deg, #10b981, #059669) !important;

        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;

    }

    

    .notification-icon.error {

        background: linear-gradient(135deg, #ef4444, #dc2626) !important;

        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;

    }

    

    .notification-icon.warning {

        background: linear-gradient(135deg, #f59e0b, #d97706) !important;

        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;

    }

    

    .notification-icon.info {

        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;

        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;

    }

    

    .notification-title {

        font-size: 0.9rem !important;

        margin-bottom: 2px !important;

        font-weight: 700 !important;

        color: #ffffff !important;

        line-height: 1.3 !important;

    }

    

    .notification-message {

        font-size: 0.8rem !important;

        line-height: 1.3 !important;

        color: rgba(255, 255, 255, 0.9) !important;

        font-weight: 400 !important;

        position: relative !important;

        z-index: 2 !important;

    }

    

    .notification-content {

        position: relative !important;

        z-index: 2 !important;

    }

    

    .notification-close {

        width: 28px !important;

        height: 28px !important;

        font-size: 10px !important;

        border-radius: 6px !important;

        margin-top: 0 !important;

        background: rgba(255, 255, 255, 0.1) !important;

        border: 1px solid rgba(255, 255, 255, 0.2) !important;

        color: rgba(255, 255, 255, 0.8) !important;

        transition: all 0.3s ease !important;

    }

    

    .notification-close:hover {

        background: rgba(255, 255, 255, 0.2) !important;

        color: #ffffff !important;

        transform: scale(1.1) !important;

    }

    

    .notification-close {

        position: relative !important;

        z-index: 3 !important;

    }

    

    /* تحسينات إضافية للإشعارات في الهاتف */

    .notification.show {

        animation: mobileNotificationSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

    }

    

    .notification.hide {

        animation: mobileNotificationSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

    }

    

    /* تحسين التباين للوضع الفاتح في الهاتف */

    body[data-theme="light"] .notification {

        background: rgba(255, 255, 255, 0.95) !important;

        border: 1px solid rgba(0, 0, 0, 0.1) !important;

        box-shadow: 

            0 8px 32px rgba(0, 0, 0, 0.15),

            0 2px 8px rgba(0, 0, 0, 0.1),

            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;

    }

    

    body[data-theme="light"] .notification-title {

        color: #1f2937 !important;

    }

    

    body[data-theme="light"] .notification-message {

        color: rgba(31, 41, 55, 0.8) !important;

    }

    

    body[data-theme="light"] .notification-close {

        background: rgba(0, 0, 0, 0.1) !important;

        border: 1px solid rgba(0, 0, 0, 0.2) !important;

        color: rgba(31, 41, 55, 0.8) !important;

    }

    

    body[data-theme="light"] .notification-close:hover {

        background: rgba(0, 0, 0, 0.2) !important;

        color: #1f2937 !important;

    }

    

    /* رسوم متحركة مخصصة للإشعارات في الهاتف */

    @keyframes mobileNotificationSlideIn {

        0% {

            transform: translateY(-20px) scale(0.95);

            opacity: 0;

        }

        50% {

            transform: translateY(5px) scale(1.02);

            opacity: 0.8;

        }

        100% {

            transform: translateY(0) scale(1);

            opacity: 1;

        }

    }

    

    @keyframes mobileNotificationSlideOut {

        0% {

            transform: translateY(0) scale(1);

            opacity: 1;

        }

        100% {

            transform: translateY(-20px) scale(0.95);

            opacity: 0;

        }

    }

}



/* تحسينات للأجهزة اللوحية (أحجام شاشات متوسطة) */

@media (min-width: 481px) and (max-width: 768px) {

    .notifications-container {

        position: fixed !important;

        top: 20px !important;

        right: 20px !important;

        left: auto !important;

        bottom: auto !important;

        transform: none !important; /* إزالة التحويل الأساسي */

        max-width: 350px !important;

        gap: 12px !important;

        flex-direction: column !important;

        z-index: 9999 !important;

    }

    

    .notification {

        padding: 14px 18px;

        border-radius: 14px;

        min-height: 60px;

        gap: 12px;

        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);

        backdrop-filter: blur(12px);

    }

    

    .notification-icon {

        width: 40px;

        height: 40px;

        font-size: 18px;

        border-radius: 10px;

    }

    

    .notification-title {

        font-size: 1rem;

        margin-bottom: 3px;

        font-weight: 700;

    }

    

    .notification-message {

        font-size: 0.85rem;

        line-height: 1.4;

    }

    

    .notification-close {

        width: 28px;

        height: 28px;

        font-size: 12px;

        border-radius: 8px;

    }

    

    /* Mobile responsive channel actions */

    .channel-actions {

        top: 8px;

        left: 8px;

        gap: 6px;

    }

    

    .channel-edit-btn,

    .channel-delete-btn {

        width: 28px;

        height: 28px;

        font-size: 0.8rem;

    }

    

}
.gitlab-btn:hover {

    background: #e24329;

    transform: translateY(-2px);

}



.token-btn {

    background: var(--accent-color);

    color: white;

}



.token-btn:hover {

    background: var(--highlight-color);

    transform: translateY(-2px);

}



.config-btn {

    background: var(--highlight-color);

    color: white;

}



.config-btn:hover {

    background: #d6336c;

    transform: translateY(-2px);

}



.setup-help {

    text-align: center;

    margin-top: 25px;

}



.help-btn {

    background: transparent;

    border: 2px solid var(--highlight-color);

    color: var(--highlight-color);

    padding: 12px 25px;

    border-radius: 25px;

    font-size: 1rem;

    cursor: pointer;

    transition: var(--transition);

    display: inline-flex;

    align-items: center;

    gap: 10px;

}



.help-btn:hover {

    background: var(--highlight-color);

    color: white;

    transform: translateY(-2px);

}



.advanced-config-section {

    margin-top: 20px;

}



.config-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border-color);

}



.config-header h4 {

    color: var(--text-primary);

    display: flex;

    align-items: center;

    gap: 10px;

}



.toggle-simple-btn {

    background: transparent;

    border: 1px solid var(--border-color);

    color: var(--text-secondary);

    padding: 8px 15px;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 8px;

}



.toggle-simple-btn:hover {

    border-color: var(--highlight-color);

    color: var(--highlight-color);

}



.input-help {

    margin-top: 8px;

    padding: 8px 12px;

    background: rgba(15, 52, 96, 0.1);

    border-radius: 6px;

    font-size: 0.85rem;

    color: var(--text-secondary);

    display: flex;

    align-items: center;

    gap: 8px;

}



/* Repository Input Container */

.repository-input-container {

    position: relative;

    display: flex;

    gap: 8px;

}



.repository-input-container .enhanced-input {

    flex: 1;

}
.fetch-repo-btn {

    background: var(--accent-color);

    color: white;

    border: none;

    padding: 10px 15px;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 45px;

}
.fetch-repo-btn:hover {

    background: var(--highlight-color);

}



.fetch-repo-btn:disabled {

    background: var(--text-secondary);

    cursor: not-allowed;

}



/* Repository Suggestions */

.repo-suggestions {

    margin-top: 10px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border-color);

    border-radius: var(--border-radius);

    max-height: 200px;

    overflow-y: auto;

}



.repo-suggestion-item {

    padding: 12px 15px;

    cursor: pointer;

    transition: var(--transition);

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.repo-suggestion-item:last-child {

    border-bottom: none;

}



.repo-suggestion-item:hover {

    background: rgba(233, 69, 96, 0.05);

}



.repo-suggestion-info {

    flex: 1;

}



.repo-suggestion-name {

    color: var(--text-primary);

    font-weight: 600;

    margin-bottom: 4px;

}



.repo-suggestion-description {

    color: var(--text-secondary);

    font-size: 0.85rem;

}



.repo-suggestion-visibility {

    padding: 4px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: 600;

    margin-left: 10px;

}



.repo-suggestion-visibility.public {

    background: rgba(16, 185, 129, 0.1);

    color: #10b981;

}



.repo-suggestion-visibility.private {

    background: rgba(245, 158, 11, 0.1);

    color: #f59e0b;

}



/* Token Input Container */

.token-input-container {

    position: relative;

    display: flex;

    gap: 8px;

}



.token-input-container .enhanced-input {

    flex: 1;

}



.validate-token-btn,

.toggle-token-visibility {

    background: var(--accent-color);

    color: white;

    border: none;

    padding: 10px 12px;

    border-radius: 6px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 40px;

}



.validate-token-btn:hover {

    background: var(--highlight-color);

}



.toggle-token-visibility {

    background: #6b7280;

}



.toggle-token-visibility:hover {

    background: #4b5563;

}



.validate-token-btn:disabled {

    background: var(--text-secondary);

    cursor: not-allowed;

}



/* Token Status */

.token-status {

    margin-top: 10px;

    padding: 10px 15px;

    border-radius: 6px;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 10px;

}



.token-status.valid {

    background: rgba(16, 185, 129, 0.1);

    color: #10b981;

    border: 1px solid rgba(16, 185, 129, 0.3);

}



.token-status.invalid {

    background: rgba(239, 68, 68, 0.1);

    color: #ef4444;

    border: 1px solid rgba(239, 68, 68, 0.3);

}



.token-status.validating {

    background: rgba(59, 130, 246, 0.1);

    color: #3b82f6;

    border: 1px solid rgba(59, 130, 246, 0.3);

}



.token-status i {

    font-size: 1.1rem;

}



/* Repository Fetch Hint */

.repo-fetch-hint {

    margin-top: 10px;

    background: rgba(59, 130, 246, 0.1);

    border: 1px solid rgba(59, 130, 246, 0.3);

    border-radius: 6px;

    padding: 12px 15px;

}



.hint-content {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}



.hint-content i {

    color: #3b82f6;

    font-size: 1.1rem;

}



.hint-content span {

    color: var(--text-secondary);

    font-size: 0.9rem;

    flex: 1;

}



.hint-btn {

    background: #3b82f6;

    color: white;

    border: none;

    padding: 6px 12px;

    border-radius: 4px;

    font-size: 0.85rem;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 6px;

}



.hint-btn:hover {

    background: #2563eb;

}



/* Setup Help Modal Styles */

.setup-help-content {

    max-width: 800px;

    max-height: 90vh;

    overflow-y: auto;

}



.setup-help-body {

    padding: 0;

}



.help-tabs {

    display: flex;

    border-bottom: 1px solid var(--border-color);

    margin-bottom: 25px;

}



.help-tab {

    flex: 1;

    padding: 15px 20px;

    background: transparent;

    border: none;

    color: var(--text-secondary);

    cursor: pointer;

    transition: var(--transition);

    font-size: 1rem;

    font-weight: 600;

}



.help-tab.active {

    color: var(--highlight-color);

    border-bottom: 2px solid var(--highlight-color);

}



.help-tab:hover {

    color: var(--text-primary);

}



.help-content {

    padding: 0 25px 25px;

}



.help-tab-content {

    display: none;

}



.help-tab-content.active {

    display: block;

}



.help-step {

    margin-bottom: 30px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.02);

    border-radius: var(--border-radius);

    border-left: 4px solid var(--highlight-color);

}



.help-step h4 {

    color: var(--text-primary);

    font-size: 1.3rem;

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 15px;

}



.help-step .step-number {

    width: 30px;

    height: 30px;

    background: var(--highlight-color);

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 1rem;

}



.step-details {

    margin-right: 45px;

}

.step-details p {

    color: var(--text-secondary);

    margin-bottom: 8px;

    line-height: 1.6;

}



.step-details a {

    color: var(--highlight-color);

    text-decoration: none;

    font-weight: 600;

}



.step-details a:hover {

    text-decoration: underline;

}



.step-details code {

    background: rgba(233, 69, 96, 0.1);

    color: var(--highlight-color);

    padding: 2px 6px;

    border-radius: 4px;

    font-family: 'Courier New', monospace;

    font-size: 0.9rem;

}



.help-footer {

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid var(--border-color);

}



.help-tips {

    background: rgba(15, 52, 96, 0.1);

    padding: 20px;

    border-radius: var(--border-radius);

    border: 1px solid var(--border-color);

}



.help-tips h5 {

    color: var(--highlight-color);

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 10px;

}



.help-tips ul {

    list-style: none;

    padding: 0;

}



.help-tips li {

    color: var(--text-secondary);

    margin-bottom: 8px;

    padding-right: 20px;

    position: relative;

}



.help-tips li::before {

    content: "•";

    color: var(--highlight-color);

    position: absolute;

    right: 0;

    font-weight: bold;

}



/* Auto Detect Modal Styles */

.auto-detect-content {

    max-width: 600px;

    max-height: 80vh;

    overflow-y: auto;

}



.auto-detect-body {

    padding: 25px;

}



.detect-intro {

    text-align: center;

    margin-bottom: 25px;

    padding: 15px;

    background: rgba(15, 52, 96, 0.1);

    border-radius: var(--border-radius);

    border: 1px solid var(--border-color);

}



.detect-intro p {

    color: var(--text-secondary);

    margin: 0;

}



.detect-form {

    margin-bottom: 25px;

}



.detect-form .form-group {

    margin-bottom: 20px;

}



.detect-form label {

    display: block;

    margin-bottom: 8px;

    color: var(--text-primary);

    font-weight: 600;

}

.detect-btn {

    width: 100%;

    padding: 15px 25px;

    background: var(--highlight-color);

    color: white;

    border: none;

    border-radius: var(--border-radius);

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}



.detect-btn:hover {

    background: #d6336c;

    transform: translateY(-2px);

}
.detect-btn:disabled {

    background: var(--text-secondary);

    cursor: not-allowed;

    transform: none;

}



.detect-results {

    margin-top: 25px;

}



.detect-results h4 {

    color: var(--text-primary);

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 10px;

}



.repositories-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.repository-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px;

    background: rgba(255, 255, 255, 0.02);

    border-radius: var(--border-radius);

    border: 1px solid var(--border-color);

    transition: var(--transition);

}



.repository-item:hover {

    border-color: var(--highlight-color);

    background: rgba(233, 69, 96, 0.05);

}



.repository-info {

    flex: 1;

}



.repository-name {

    color: var(--text-primary);

    font-weight: 600;

    margin-bottom: 5px;

}



.repository-description {

    color: var(--text-secondary);

    font-size: 0.9rem;

}



.repository-visibility {

    margin-left: 15px;

    padding: 4px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: 600;

}



.repository-visibility.public {

    background: rgba(16, 185, 129, 0.1);

    color: #10b981;

}



.repository-visibility.private {

    background: rgba(245, 158, 11, 0.1);

    color: #f59e0b;

}



.use-repository-btn {

    background: var(--accent-color);

    color: white;

    border: none;

    padding: 8px 15px;

    border-radius: 6px;

    font-size: 0.9rem;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    align-items: center;

    gap: 6px;

}



.use-repository-btn:hover {

    background: var(--highlight-color);

}



.detect-loading {

    text-align: center;

    padding: 40px 20px;

}



.detect-loading .spinner {

    margin: 0 auto 20px;

}



.detect-loading p {

    color: var(--text-secondary);

    margin: 0;

}



.auto-detect-btn {

    background: transparent;

    border: 2px solid var(--accent-color);

    color: var(--accent-color);

    margin-top: 10px;

}



.auto-detect-btn:hover {

    background: var(--accent-color);

    color: white;

}



/* Backup & Restore Styles */

.backup-intro {

    text-align: center;

    margin-bottom: 25px;

    padding: 15px;

    background: rgba(16, 185, 129, 0.1);

    border-radius: var(--border-radius);

    border: 1px solid rgba(16, 185, 129, 0.3);

}



.backup-intro p {

    color: var(--text-secondary);

    margin: 0;

    font-size: 1rem;

}



.backup-actions-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 25px;

}



.enhanced-backup-btn {

    background: rgba(255, 255, 255, 0.02);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    padding: 20px;

    cursor: pointer;

    transition: var(--transition);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 10px;

    min-height: 120px;

    justify-content: center;

}



.enhanced-backup-btn:hover {

    border-color: var(--highlight-color);

    background: rgba(233, 69, 96, 0.05);

    transform: translateY(-2px);

}



.enhanced-backup-btn i {

    font-size: 2rem;

    color: var(--highlight-color);

}



.enhanced-backup-btn span {

    color: var(--text-primary);

    font-weight: 600;

    font-size: 1rem;

}



.enhanced-backup-btn small {

    color: var(--text-secondary);

    font-size: 0.85rem;

}



.enhanced-backup-btn.export-btn {

    border-color: #10b981;

}



.enhanced-backup-btn.export-btn:hover {

    border-color: #10b981;

    background: rgba(16, 185, 129, 0.05);

}



.enhanced-backup-btn.export-btn i {

    color: #10b981;

}



.enhanced-backup-btn.import-btn {

    border-color: #f59e0b;

}



.enhanced-backup-btn.import-btn:hover {

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.05);

}



.enhanced-backup-btn.import-btn i {

    color: #f59e0b;

}



.enhanced-backup-btn.sync-backup-btn {

    border-color: #3b82f6;

}



.enhanced-backup-btn.sync-backup-btn:hover {

    border-color: #3b82f6;

    background: rgba(59, 130, 246, 0.05);

}



.enhanced-backup-btn.sync-backup-btn i {

    color: #3b82f6;

}



.enhanced-backup-btn.download-backup-btn {

    border-color: #8b5cf6;

}



.enhanced-backup-btn.download-backup-btn:hover {

    border-color: #8b5cf6;

    background: rgba(139, 92, 246, 0.05);

}



.enhanced-backup-btn.download-backup-btn i {

    color: #8b5cf6;

}



/* Cookie Delete Button */

.cookie-delete-btn {

    background: linear-gradient(45deg, #dc2626, #ef4444);

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

    font-family: inherit;

    font-size: 1rem;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition: all 0.3s ease;

    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);

}



.cookie-delete-btn:hover {

    background: linear-gradient(45deg, #b91c1c, #dc2626);

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);

}



.cookie-delete-btn:active {

    transform: translateY(0);

    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);

}



.cookie-delete-btn i {

    font-size: 1.1rem;

}



/* Light theme for cookie delete button */

body[data-theme="light"] .cookie-delete-btn {

    background: linear-gradient(45deg, #dc2626, #ef4444);

    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);

}
body[data-theme="light"] .cookie-delete-btn:hover {

    background: linear-gradient(45deg, #b91c1c, #dc2626);

    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);

}



/* Welcome Modal Styles */

.welcome-content {

    max-width: 600px;

    width: 90%;

    max-height: 90vh;

    overflow-y: auto;

    background: var(--background-primary);

    border-radius: 20px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    border: 1px solid var(--border-color);

}



.welcome-header {

    text-align: center;

    padding: 2rem 2rem 1rem;

    border-bottom: 1px solid var(--border-color);

}



.welcome-icon {

    width: 80px;

    height: 80px;

    margin: 0 auto 1.5rem;

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);

}



.welcome-icon i {

    font-size: 2.5rem;

    color: white;

}



.welcome-header h2 {

    color: var(--text-primary);

    font-size: 1.8rem;

    font-weight: 700;

    margin-bottom: 0.5rem;

}



.welcome-header p {

    color: var(--text-secondary);

    font-size: 1.1rem;

    margin: 0;

}



.welcome-body {

    padding: 2rem;

}



.welcome-step {

    display: flex;

    align-items: flex-start;

    gap: 1.5rem;

    margin-bottom: 2rem;

    padding: 1.5rem;

    background: rgba(255, 255, 255, 0.02);

    border-radius: 12px;

    border: 1px solid var(--border-color);

    transition: all 0.3s ease;

}



.welcome-step:hover {

    background: rgba(233, 69, 96, 0.05);

    border-color: var(--highlight-color);

    transform: translateY(-2px);

}



.welcome-step:last-child {

    margin-bottom: 0;

}



.step-icon {

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);

}



.step-icon i {

    font-size: 1.5rem;

    color: white;

}



.step-content h3 {

    color: var(--text-primary);

    font-size: 1.2rem;

    font-weight: 600;

    margin: 0 0 0.5rem 0;

}



.step-content p {

    color: var(--text-secondary);

    font-size: 1rem;

    margin: 0;

    line-height: 1.5;

}
.welcome-footer {

    padding: 1.5rem 2rem 2rem;

    border-top: 1px solid var(--border-color);

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;

}
.welcome-btn {

    padding: 12px 24px;

    border-radius: 10px;

    font-weight: 600;

    font-size: 1rem;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    border: none;

    font-family: inherit;

    min-width: 160px;

    justify-content: center;

}
.welcome-btn.primary {

    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);

    color: white;

    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);

}



.welcome-btn.primary:hover {

    background: linear-gradient(135deg, #d63384, #e94560);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);

}



.welcome-btn.secondary {

    background: transparent;

    color: var(--text-primary);

    border: 2px solid var(--border-color);

}



.welcome-btn.secondary:hover {

    border-color: var(--highlight-color);

    background: rgba(233, 69, 96, 0.05);

    color: var(--highlight-color);

}



/* Light theme for welcome modal */

body[data-theme="light"] .welcome-content {

    background: #ffffff;

    border-color: #e2e8f0;

}



body[data-theme="light"] .welcome-header {

    border-bottom-color: #e2e8f0;

}



body[data-theme="light"] .welcome-step {

    background: #f8fafc;

    border-color: #e2e8f0;

}



body[data-theme="light"] .welcome-step:hover {

    background: #fef2f2;

    border-color: #3b82f6;

}



body[data-theme="light"] .welcome-footer {

    border-top-color: #e2e8f0;

}



body[data-theme="light"] .welcome-btn.secondary {

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .welcome-btn.secondary:hover {

    border-color: #3b82f6;

    background: #eff6ff;

    color: #3b82f6;

}



/* Responsive design for welcome modal */

@media (max-width: 768px) {

    .welcome-content {

        width: 95%;

        margin: 1rem;

    }

    

    .welcome-header {

        padding: 1.5rem 1.5rem 1rem;

    }

    

    .welcome-icon {

        width: 60px;

        height: 60px;

    }

    

    .welcome-icon i {

        font-size: 2rem;

    }

    

    .welcome-header h2 {

        font-size: 1.5rem;

    }

    

    .welcome-body {

        padding: 1.5rem;

    }

    

    .welcome-step {

        flex-direction: column;

        text-align: center;

        gap: 1rem;

    }

    

    .welcome-footer {

        flex-direction: column;

        align-items: center;

    }

    

    .welcome-btn {

        width: 100%;

        max-width: 300px;

    }

}



/* تأثير النبضة لزر التحديث */

@keyframes pulse {

    0% {

        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);

    }

    70% {

        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);

    }

    100% {

        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);

    }

}



.pulse-effect {

    animation: pulse 2s infinite;

}



/* Update notification styles */

@keyframes spin {

    0% { transform: rotate(0deg); }

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

}



.update-indicator {

    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);

    color: white;

    padding: 4px 8px;

    border-radius: 4px;

    font-size: 12px;

    font-weight: bold;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    animation: pulse 2s infinite;

    margin-right: 8px;

}



.update-indicator i {

    animation: spin 2s linear infinite;

}



.update-indicator button {

    background: rgba(255, 255, 255, 0.2);

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 2px 6px;

    border-radius: 3px;

    font-size: 10px;

    cursor: pointer;

    transition: all 0.3s ease;

}



.update-indicator button:hover {

    background: rgba(255, 255, 255, 0.3);

    transform: scale(1.05);

}



.backup-info {

    background: rgba(15, 52, 96, 0.1);

    padding: 20px;

    border-radius: var(--border-radius);

    border: 1px solid var(--border-color);

}



.backup-info h5 {

    color: var(--highlight-color);

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 10px;

}



.backup-info ul {

    list-style: none;

    padding: 0;

    margin: 0;

}



.backup-info li {

    color: var(--text-secondary);

    margin-bottom: 8px;

    padding-right: 20px;

    position: relative;

    line-height: 1.5;

}



.backup-info li::before {

    content: "•";

    color: var(--highlight-color);

    position: absolute;

    right: 0;

    font-weight: bold;

}
.search-result-info p {

    color: var(--text-secondary);

    margin: 0;

    font-size: 0.85rem;

}



.no-results {

    text-align: center;

    color: var(--text-secondary);

    padding: 20px;

    font-style: italic;

}
/* More Menu */

.more-menu {

    position: fixed;

    bottom: 70px;

    left: 20px;

    transform: translateY(20px);

    background: var(--primary-color);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    z-index: 1001;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

    min-width: 150px;

    width: 200px;

    -webkit-tap-highlight-color: transparent;

}



.more-menu.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.more-menu-content {

    padding: 8px 0;

    -webkit-tap-highlight-color: transparent;

}



.more-menu-item {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding: 12px 16px;

    background: none;

    border: none;

    color: var(--text-secondary);

    text-align: right;

    transition: all 0.3s ease;

    cursor: pointer;

    justify-content: flex-start;

    -webkit-tap-highlight-color: transparent;

    -webkit-touch-callout: none;

    -webkit-user-select: none;

    -moz-user-select: none;

    -ms-user-select: none;

    user-select: none;

}



.more-menu-item:hover {

    background: rgba(255, 255, 255, 0.1);

    color: var(--text-primary);

}



.more-menu-item i {

    font-size: 1rem;

    width: 20px;

    text-align: center;

}



.more-menu-item span {

    font-size: 0.9rem;

    font-weight: 500;

}



/* Mobile Overlay */

.mobile-overlay {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}



.mobile-overlay.active {

    opacity: 1;

    visibility: visible;

}






body[data-theme="light"] .categories-dropdown {

    background: rgba(255, 255, 255, 0.95);

    border-color: #e2e8f0;

    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.15);

    border-radius: 20px 20px 0 0;

}



body[data-theme="light"] .categories-dropdown .dropdown-header {

    background: #f8fafc;

    border-bottom-color: #e2e8f0;

    border-radius: 20px 20px 0 0;

}



body[data-theme="light"] .categories-dropdown .dropdown-header h3 {

    color: #1e293b;

}



body[data-theme="light"] .categories-dropdown .close-dropdown {

    color: #64748b;

}



body[data-theme="light"] .categories-dropdown .close-dropdown:hover {

    background: rgba(59, 130, 246, 0.1);

    color: #1e293b;

}



body[data-theme="light"] .categories-dropdown .category-item {

    color: #64748b;

}



body[data-theme="light"] .categories-dropdown .category-item:hover {

    background: rgba(59, 130, 246, 0.1);

    color: #1e293b;

}



body[data-theme="light"] .categories-dropdown .category-item.active {

    background: #3b82f6;

    color: white;

}

/* Light theme for category counts in dropdown */

body[data-theme="light"] .categories-dropdown .category-count {

    background: rgba(59, 130, 246, 0.15);

    color: #1d4ed8;

}

body[data-theme="light"] .categories-dropdown .dropdown-header::after {

    background: #cbd5e1;

    opacity: 0.8;

}



body[data-theme="light"] .search-popup-content {

    background: rgba(255, 255, 255, 0.95);

    border-color: #e2e8f0;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .search-popup-header {

    background: #f8fafc;

    border-bottom-color: #e2e8f0;

}



body[data-theme="light"] .search-popup-header h3 {

    color: #1e293b;

}



body[data-theme="light"] .search-popup .close-search {

    color: #64748b;

}



body[data-theme="light"] .search-popup .close-search:hover {

    background: rgba(59, 130, 246, 0.1);

    color: #1e293b;

}
body[data-theme="light"] .search-popup-input {

    background: #f8fafc;

    border-color: #e2e8f0;

    color: #1e293b;

}



body[data-theme="light"] .search-popup-input:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



body[data-theme="light"] .search-input-container .search-icon {

    color: #64748b;

}



body[data-theme="light"] .search-result-item {

    background: #f8fafc;

    border-color: #e2e8f0;

}



body[data-theme="light"] .search-result-item:hover {

    background: #3b82f6;

    color: white;

}



body[data-theme="light"] .search-result-info h4 {

    color: #1e293b;

}



body[data-theme="light"] .search-result-info p {

    color: #64748b;

}
body[data-theme="light"] .search-result-item:hover .search-result-info h4,

body[data-theme="light"] .search-result-item:hover .search-result-info p {

    color: white;

}



body[data-theme="light"] .no-results {

    color: #64748b;

}



/* Scroll to Top Button - Light Theme */

body[data-theme="light"] .scroll-to-top-btn {

    background: linear-gradient(135deg, #3b82f6, #10b981);

    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);

}



body[data-theme="light"] .scroll-to-top-btn:hover {

    background: linear-gradient(135deg, #10b981, #3b82f6);

    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);

}



/* تحسينات إضافية لشعارات البحث في الهاتف */

@media (max-width: 768px) {

    .search-results {

        max-height: calc(100vh - 180px);

        min-height: 200px;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;

        scrollbar-color: var(--highlight-color) transparent;

        padding-bottom: 50px;

        scroll-padding-bottom: 20px;

    }

    

    .search-results::-webkit-scrollbar {

        width: 6px;

    }

    

    .search-results::-webkit-scrollbar-track {

        background: transparent;

    }

    

    .search-results::-webkit-scrollbar-thumb {

        background: var(--highlight-color);

        border-radius: 3px;

    }

    

    .search-results::-webkit-scrollbar-thumb:hover {

        background: var(--highlight-color);

        opacity: 0.8;

    }

    

    .search-results-header {

        padding: 12px 16px;

        margin-bottom: 12px;

        border-radius: 12px;

    }

    

    .results-count {

        font-size: 1rem;

        font-weight: 600;

    }

    

    .search-result-logo {

        width: 55px;

        height: 55px;

        border-radius: 12px;

        border-width: 2px;

    }

    

    .search-result-item {

        padding: 16px;

        gap: 16px;

    }

    

    .search-result-item:last-child {

        margin-bottom: 30px;

    }

    

    .search-result-info h4 {

        font-size: 1.1rem;

        margin-bottom: 6px;

    }

    

    .search-result-info p {

        font-size: 0.9rem;

    }

    

    /* إخفاء زر الصعود إلى الأعلى في الهاتف */

    .scroll-to-top-btn {

        display: none !important;

    }

}



body[data-theme="light"] .more-menu {

    background: rgba(255, 255, 255, 0.95);

    border-color: #e2e8f0;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

}



body[data-theme="light"] .more-menu-item {

    color: #64748b;

}



body[data-theme="light"] .more-menu-item:hover {

    background: rgba(59, 130, 246, 0.1);

    color: #1e293b;

}



/* ===== NEW MOBILE BOTTOM NAVIGATION ===== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--highlight-color);
    background: rgba(59, 130, 246, 0.15);
}

.nav-icon {
    position: relative;
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* More Menu Backdrop Overlay */
.more-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.more-menu.active::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* More Menu - Enhanced Professional Design */
.more-menu {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: calc(100% - 32px);
    max-width: 380px;
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.more-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.more-menu-content {
    position: relative;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text-secondary);
    text-align: right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.more-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.more-item:hover::before,
.more-item:active::before {
    opacity: 1;
}

.more-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.more-item:active {
    transform: translateX(-2px) scale(0.98);
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Active state with visual feedback */
.more-item.clicked {
    background: var(--highlight-color);
    color: white;
    transform: translateX(-6px) scale(0.96);
}

.more-item.clicked i {
    background: white;
    color: var(--highlight-color);
    transform: scale(1.15) rotate(360deg);
    transition: all 0.5s ease;
}

.more-item i {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 10px;
    color: var(--highlight-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.more-item:hover i {
    background: var(--highlight-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.more-item span {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
    letter-spacing: -0.01em;
}

/* Arrow indicator for More Menu - نقطة تشير للأسفل */
.more-menu-content::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 10;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 380px) {
    .more-menu {
        width: calc(100% - 24px);
        max-width: 100%;
    }
    
    .more-item {
        padding: 14px 16px;
        gap: 14px;
    }
    
    .more-item i {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .more-item span {
        font-size: 0.9rem;
    }
}

/* For very small screens */
@media (max-width: 320px) {
    .more-menu {
        width: calc(100% - 16px);
        bottom: 72px;
    }
    
    .more-menu-content {
        padding: 6px;
        gap: 3px;
    }
    
    .more-item {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .more-item i {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
    
    .more-item span {
        font-size: 0.85rem;
    }
}

/* Categories Dropdown */
.categories-dropdown {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease;
    max-height: 70vh;
    overflow: hidden;
}

.categories-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close-dropdown {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.categories-list {
    padding: 8px 0;
    max-height: 50vh;
    overflow-y: auto;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: right;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--highlight-color);
    color: white;
}

.category-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.category-item span:first-of-type {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Light Theme */
body[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .nav-item {
    color: #64748b;
}

body[data-theme="light"] .nav-item:hover {
    color: #1e293b;
    background: rgba(59, 130, 246, 0.1);
}

body[data-theme="light"] .nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

body[data-theme="light"] .more-menu::before {
    background: rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .more-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e2e8f0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .more-menu-content::after {
    border-top-color: rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

body[data-theme="light"] .more-item {
    color: #64748b;
    background: rgba(248, 250, 252, 0.5);
}

body[data-theme="light"] .more-item::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
}

body[data-theme="light"] .more-item i {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

body[data-theme="light"] .more-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

body[data-theme="light"] .more-item:hover i {
    background: #3b82f6;
    color: white;
}

body[data-theme="light"] .more-item:active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

body[data-theme="light"] .more-item.clicked {
    background: #3b82f6;
    color: white;
}

body[data-theme="light"] .more-item.clicked i {
    background: white;
    color: #3b82f6;
}

body[data-theme="light"] .categories-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: #e2e8f0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .dropdown-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .dropdown-header h3 {
    color: #1e293b;
}

body[data-theme="light"] .close-dropdown {
    color: #64748b;
}

body[data-theme="light"] .close-dropdown:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e293b;
}

body[data-theme="light"] .category-item {
    color: #64748b;
}

body[data-theme="light"] .category-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e293b;
}

body[data-theme="light"] .category-item.active {
    background: #3b82f6;
    color: white;
}

body[data-theme="light"] .category-count {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

body[data-theme="light"] .category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ===== PROFESSIONAL SEARCH MODAL ===== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

/* Search Header */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.search-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-title i {
    color: var(--highlight-color);
    font-size: 1.2rem;
}

.search-title h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.close-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Search Input Section */
.search-input-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-input-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-left: 8px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 16px 8px;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.suggestion-item i {
    color: var(--highlight-color);
    font-size: 0.9rem;
}

.suggestion-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Search Filters */
.search-filters {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-label i {
    color: var(--highlight-color);
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--highlight-color);
    color: white;
    border-color: var(--highlight-color);
}

.filter-btn i {
    font-size: 0.8rem;
}

/* Search Results Section */
.search-results-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.results-count {
    color: var(--highlight-color);
    font-size: 1.1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--highlight-color);
}

/* Search Results */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-right: 8px;
    padding-left: 8px;
    border-radius: 8px;
}

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

.search-result-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.search-result-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.search-result-category {
    background: var(--highlight-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.no-results p {
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.search-tips {
    text-align: right;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-tips h5 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
    padding-right: 12px;
    position: relative;
}

.search-tips li::before {
    content: "•";
    color: var(--highlight-color);
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* Recent Searches */
.recent-searches {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.recent-header i {
    color: var(--highlight-color);
}

.clear-recent {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: auto;
}

.clear-recent:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: var(--highlight-color);
    color: white;
    border-color: var(--highlight-color);
}

/* Light Theme */
body[data-theme="light"] .search-modal {
    background: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .search-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
}

body[data-theme="light"] .search-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .search-title h3 {
    color: #1e293b;
}

body[data-theme="light"] .close-search {
    color: #64748b;
}

body[data-theme="light"] .close-search:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e293b;
}

body[data-theme="light"] .search-input-wrapper {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body[data-theme="light"] .search-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body[data-theme="light"] .search-input {
    color: #1e293b;
}

body[data-theme="light"] .search-input::placeholder {
    color: #64748b;
}

body[data-theme="light"] .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .suggestion-item {
    border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .suggestion-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

body[data-theme="light"] .suggestion-text {
    color: #1e293b;
}

body[data-theme="light"] .filter-label {
    color: #1e293b;
}

body[data-theme="light"] .filter-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

body[data-theme="light"] .filter-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e293b;
}

body[data-theme="light"] .filter-btn.active {
    background: #3b82f6;
    color: white;
}

body[data-theme="light"] .search-results-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .results-info {
    color: #1e293b;
}

body[data-theme="light"] .sort-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

body[data-theme="light"] .sort-select:focus {
    border-color: #3b82f6;
}

body[data-theme="light"] .search-result-item {
    border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .search-result-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

body[data-theme="light"] .search-result-info h4 {
    color: #1e293b;
}

body[data-theme="light"] .search-result-info p {
    color: #64748b;
}

body[data-theme="light"] .no-results h4 {
    color: #1e293b;
}

body[data-theme="light"] .search-tips {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body[data-theme="light"] .search-tips h5 {
    color: #1e293b;
}

body[data-theme="light"] .search-tips li {
    color: #64748b;
}

body[data-theme="light"] .recent-searches {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

body[data-theme="light"] .recent-header {
    color: #1e293b;
}

body[data-theme="light"] .recent-item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

body[data-theme="light"] .recent-item:hover {
    background: #3b82f6;
    color: white;
}

/* Responsive adjustments for mobile */

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    .main-content {
        padding-bottom: 80px;
    }

    

    /* Hide header search on mobile */

    .header-search-container {

        display: none !important;

    }

    

    /* Adjust header layout for mobile */

    .header-center {

        display: none !important;

    }

    

    .header-content {

        justify-content: space-between;

    }

}



@media (min-width: 769px) {

    

    .categories-dropdown,

    .search-popup,

    .more-menu,

    .mobile-overlay {

        display: none;

    }

}



/* Hide mobile sidebar on mobile devices */

@media (max-width: 768px) {

    .mobile-sidebar {

        display: none !important;

    }

    

    .mobile-sidebar-overlay {

        display: none !important;

    }

    

    .mobile-menu-btn {

        display: none !important;

    }

}



/* Cloud Sync Prompt Notification Styles */

.cloud-sync-prompt {

    border-left: 4px solid #8b5cf6;

    background: linear-gradient(135deg, var(--background-dark) 0%, rgba(139, 92, 246, 0.1) 100%);

    border-color: rgba(139, 92, 246, 0.3);

}



.cloud-sync-prompt .notification-icon {

    color: #8b5cf6;

}
.notification-actions {

    display: flex;

    gap: 8px;

    margin-top: 12px;

    flex-wrap: wrap;

}
.notification-actions .btn-primary,

.notification-actions .btn-secondary {

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;

    border: none;

    display: flex;

    align-items: center;

    gap: 6px;

    flex: 1;

    min-width: 0;

}



.notification-actions .btn-primary {

    background: var(--primary-color);

    color: white;

}



.notification-actions .btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



.notification-actions .btn-secondary {

    background: var(--background-light);

    color: var(--text-secondary);

    border: 1px solid var(--border-color);

}



.notification-actions .btn-secondary:hover {

    background: var(--background-dark);

    color: var(--text-primary);

    transform: translateY(-1px);

}



/* Responsive styles for notification actions */

@media (max-width: 480px) {

    .notification-actions {

        flex-direction: column;

        gap: 6px;

    }

    

    .notification-actions .btn-primary,

    .notification-actions .btn-secondary {

        flex: none;

        width: 100%;

        justify-content: center;

    }

}






