/* style.css - دمج الألوان الجديدة مع الوظائف القديمة */

/* الخطوط والأساسيات */
/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gaming-inspired color palette */
    --primary-color: #00d4ff;          /* Bright cyan - main action color */
    --primary-dark: #0099cc;           /* Darker cyan for hover states */
    --secondary-color: #ff6b35;        /* Vibrant orange - secondary actions */
    --accent-color: #ffd23f;           /* Bright yellow - highlights and rewards */
    --success-color: #00ff88;          /* Neon green - success states */
    --warning-color: #ffb347;          /* Warm orange - warnings */
    --danger-color: #ff4757;           /* Bright red - errors and danger */
    --info-color: #3742fa;             /* Electric blue - information */
    
    /* Text colors for dark gaming theme */
    --text-primary: #ffffff;           /* Pure white for primary text */
    --text-secondary: #b8c5d6;         /* Light blue-gray for secondary text */
    --text-light: #8b9bb4;             /* Muted blue-gray for tertiary text */
    --text-muted: #6c7b7f;             /* Dark gray for disabled text */
    
    /* Background colors - dark gaming theme */
    --bg-primary: #0a0e1a;             /* Deep dark blue - main background */
    --bg-secondary: #1a1f2e;           /* Slightly lighter dark blue */
    --bg-tertiary: #2a2f3e;            /* Medium dark blue for cards */
    --bg-dark: #050812;                /* Darkest blue for headers */
    --bg-card: rgba(26, 31, 46, 0.8); /* Semi-transparent card background */
    
    /* Border colors */
    --border-color: #2d3748;           /* Dark border for separation */
    --border-light: #4a5568;           /* Lighter border for subtle separation */
    --border-glow: rgba(0, 212, 255, 0.3); /* Glowing border for active elements */
    
    /* Shadow system with gaming glow effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4); /* Special glow effect */
    
    /* Border radius for modern gaming UI */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Font family */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Gaming-specific gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    --gradient-accent: linear-gradient(135deg, #ffd23f 0%, #ffb347 100%);
    --gradient-success: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-danger: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    --gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2a2f3e 100%);
    
    /* Animation speeds */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary) !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.15), transparent 30%),
        radial-gradient(circle at 80% 90%, rgba(255, 107, 53, 0.15), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.1), transparent 50%) !important;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Header */
.main-header {
    background-color: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.header-logo-img {
    width: 100px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Navigation Menu */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

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

/* User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.username-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.username-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 17, 34, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.mobile-nav-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .user-greeting {
        display: none;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .header-logo-img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* الصفحة الرئيسية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.08)!important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(189, 147, 249, 0.5);
}

.header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #bdc3c7;
    font-weight: 400;
}

.main-content {
    background: rgba(255, 255, 255, 0.08)!important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.option-card {
    background: rgba(255, 255, 255, 0.08)!important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.option-card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.game-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #bdc3c7;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2)!important;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: #7d5fff;
    box-shadow: 0 0 15px rgba(125, 95, 255, 0.5);
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.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 var(--transition-slow);
}

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

.btn-primary {
    background: var(--gradient-primary) !important;
    color: white;
    border: 1px solid var(--border-glow);
}

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

.btn-secondary {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary) !important;
    color: white;
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.btn-success {
    background: var(--gradient-success) !important;
    color: var(--bg-dark);
    font-weight: 700;
}

.btn-diamond {
    background: var(--gradient-accent) !important;
    color: var(--bg-dark);
    border: none;
    font-weight: 700;
}

.error-message {
    background: var(--gradient-danger) !important;
    color: white;
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--danger-color);
}

.balance-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* قواعد اللعبة */
.game-rules {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.game-rules h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.rule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

.rule-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.rule-item strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1.1rem;
}

.rule-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #bdc3c7;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #bdc3c7;
    font-weight: 500;
}

/* صفحة اللعبة */
.game-body {
    background: #1f2041;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.game-header {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.game-info h2 {
    color: #fff;
    margin-bottom: 5px;
}

.game-code {
    background: rgba(0,0,0,0.3);
    color: #e0e0e0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
}

.game-code strong {
    color: #f1c40f;
}

/* منطقة الانتظار */
.waiting-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.join-form {
    max-width: 400px;
    margin: 0 auto;
}

.join-form h3 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2rem;
}

.join-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.teams-list h3 {
    color: #fff;
    margin-bottom: 20px;
}

.teams-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

/* منطقة اللعبة */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.teams-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-play-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teams-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-card.current-turn {
    transform: scale(1.02);
    box-shadow: 0 0 25px #7d5fff;
    border-color: #7d5fff;
}

.team-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #bdc3c7;
}

.stat-value {
    display: block;
    font-size: 2rem;
    color: #f1c40f;
    font-weight: bold;
    margin-top: 5px;
}

.player-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    text-align: right;
}

.player-list li {
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.player-list .captain {
    font-weight: bold;
    color: #9b59b6;
    border-right: 4px solid #7d5fff;
}

.join-team-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #333;
}

.join-team-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    color: #333;
}

.join-team-card h4,
.join-team-card .team-name {
    color: #333 !important;
    font-weight: bold;
}

.join-team-card .player-list,
.join-team-card .player-list li {
    color: #555 !important;
}

.creator-controls {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 15px;
    margin-top: 15px;
}

.creator-controls .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    background: transparent;
    padding: 5px;
}

/* منطقة اللعب */
.game-play-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    overflow-y: auto;
}

/* اختيار الأسئلة */
.question-selection h3 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.questions-list {
    display: grid;
    gap: 15px;
    max-width: 800px;
    width: 100%;
}

.question-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.question-item:hover {
    background: rgba(0,0,0,0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.question-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.question-preview h4 {
    text-align: right;
    flex: 1;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.question-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* ألوان صعوبة الأسئلة */
.question-item.difficulty-easy {
    border-color: #2ecc71;
}

.question-item.difficulty-easy h4,
.question-item.difficulty-easy .question-price {
    color: #2ecc71;
}

.question-item.difficulty-medium {
    border-color: #f1c40f;
}

.question-item.difficulty-medium h4,
.question-item.difficulty-medium .question-price {
    color: #f1c40f;
}

.question-item.difficulty-hard {
    border-color: #e74c3c;
}

.question-item.difficulty-hard h4,
.question-item.difficulty-hard .question-price {
    color: #e74c3c;
}

/* عرض السؤال */
.question-display {
    max-width: 900px;
    width: 100%;
}

.question-info {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.price-tag,
.turn-info {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

.price-tag {
    color: #f1c40f;
}

.turn-info {
    color: #7d5fff;
}

.question-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    background: linear-gradient(145deg, #41436a, #262740);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.question-content h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #ffffff;
}

.answer-section {
    display: grid;
    gap: 30px;
}

.answer-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.answer-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    color: white;
}

.answer-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: #7d5fff;
}

.powerups-section {
    margin-top: 25px;
}

.powerups-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.powerup-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.powerup-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.powerup-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.info-message {
    text-align: center;
    color: #bdc3c7;
    font-size: 1.2rem;
    padding: 40px;
}

/* مؤقت الإجابة */
.timer-display {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    text-shadow: 0 0 10px #e74c3c;
}

/* شريط التقدم */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.progress-info {
    text-align: center;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 600;
}

.progress-track {
    background: rgba(0,0,0,0.3);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #7d5fff, #ab5fff);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

/* مودال نهاية اللعبة */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1f2041;
    border: 1px solid #7d5fff;
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px rgba(125, 95, 255, 0.5);
    color: #fff;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.winner-section {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.winner-section h3 {
    font-size: 1.5rem;
}

.final-scores {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    font-weight: 600;
}

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

.score-item span:last-child {
    color: #f1c40f;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* الخيارات المتقدمة */
.advanced-options {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-options fieldset {
    border: none;
    padding: 0;
}

.advanced-options fieldset[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.advanced-options legend {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    padding: 0;
    width: 100%;
    text-align: right;
}

.advanced-options .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.advanced-options .form-group label {
    margin-bottom: 0;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #7d5fff;
}

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

/* زر الاشتراك المقفل */
.locked-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 8px;
    transition: all 0.3s ease;
}

.locked-toggle:hover {
    background: rgba(0,0,0,0.5);
}

.locked-toggle .lock-icon {
    font-size: 1.2rem;
    color: #ff4b2b;
    margin-bottom: 2px;
}

.locked-toggle .subscribe-text {
    font-size: 0.7rem;
    color: #fad541;
    font-weight: bold;
}

/* تحسينات خاصة بقسم التصنيفات */
.category-selection-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-search {
    margin-bottom: 15px;
}

.category-search input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.category-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.category-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    font-size: 0.85rem;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.category-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4facfe;
    cursor: pointer;
}

.category-item.hidden {
    display: none;
}

.category-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000000;
    font-weight: 500;
}

.category-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-show-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-show-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-show-more .arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-show-more.expanded .arrow {
    transform: rotate(180deg);
}

.category-controls {
    display: flex;
    gap: 8px;
}

.btn-category-control {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.btn-category-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* تأثير البحث */
.category-item.search-highlight {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

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

/* تحسين عرض النتائج الفارغة */
.no-results-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

/* معلومات الرصيد */
#balance-display {
    margin-top: 10px !important;
    padding: 10px 15px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    color: #e0e0e0 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.dark-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.dark-icon-box i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: inherit;
    text-align: center;
}

/* دعم الصور في الأسئلة */
.question-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.question-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: #f8f9fa;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.question-image-loading {
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #bdc3c7;
    font-style: italic;
    font-size: 0.9rem;
}

.result-display .question-image-container {
    margin-bottom: 20px;
}

.result-display .question-image {
    max-height: 200px;
    border-radius: 12px;
}

.question-content:has(.question-image-container) h3 {
    margin-top: 0;
}

.question-image-container img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.question-image-container img[src] {
    opacity: 1;
}

.question-image-container::before {
    content: "";
    display: block;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border-radius: 15px;
    position: absolute;
    z-index: -1;
}

/* استجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    .user-status-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .container, .game-container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .game-options {
        grid-template-columns: 1fr;
    }

    .teams-info {
        flex-direction: column;
    }
    
    .game-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        gap: 15px;
    }
    
    .teams-section {
        order: 1;
        margin-bottom: 10px;
    }
    
    .progress-section {
        order: 2;
        margin-bottom: 15px;
    }
    
    .game-play-section {
        order: 3;
        height: auto;
        min-height: 300px;
    }
    
    .teams-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .team-card {
        padding: 15px;
        margin-bottom: 0;
    }
    
    .team-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .player-list {
        margin-top: 8px;
    }
    
    .player-list li {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .game-play-area {
        padding: 20px;
        min-height: 250px;
    }
    
    .question-selection h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .question-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .question-preview h4 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .question-price {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .game-header {
        flex-direction: column;
        gap: 15px;
    }

    .answer-form {
        flex-direction: column;
    }

    .powerup-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .questions-list {
        grid-template-columns: 1fr;
    }

    .question-preview {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .question-info {
        flex-direction: column;
        gap: 10px;
    }

    .teams-container {
        flex-direction: column;
        gap: 15px;
    }

    .question-image {
        max-height: 220px;
        max-width: 95%;
    }

    .question-content {
        padding: 20px;
        gap: 15px;
    }

    .question-content h3 {
        font-size: 1.4rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 6px;
    }

    .category-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .category-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .category-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
    }

    .option-card {
        padding: 20px;
    }

    .game-play-area {
        padding: 20px;
    }

    .question-content h3 {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .header {
        padding: 30px 15px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .team-card {
        padding: 15px;
    }

    .team-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .teams-info {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .player-list li {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .game-play-area {
        padding: 15px;
        min-height: 200px;
    }
    
    .question-selection h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .question-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .question-preview h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .question-price {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }

    .advanced-options {
        padding: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .category-item {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .question-image {
        max-height: 180px;
        border-radius: 10px;
    }

    .result-display .question-image {
        max-height: 150px;
    }

    .question-content {
        padding: 15px;
        gap: 12px;
    }

    .question-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

/* Error Pages */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
}

.error-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 6rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.error-content h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-content .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ===== NEW LANDING PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.9;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 40px;
}

.main-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; }
.floating-icon:nth-child(3) { top: 60%; left: 5%; }
.floating-icon:nth-child(4) { top: 30%; right: 25%; }
.floating-icon:nth-child(5) { top: 70%; right: 10%; }
.floating-icon:nth-child(6) { top: 80%; left: 20%; }

/* Enhanced Hero Content */
.hero-titles {
    margin-bottom: 30px;
}

.hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tagline-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.tagline-accent {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-cta {
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero::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;
}

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

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Enhanced Stats */
.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::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 ease;
}

.stat-item:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: arrow-bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-5px); }
    60% { transform: rotate(45deg) translateY(-2px); }
}

/* Game Actions Section */
.game-actions {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.action-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 40px;
    border: 1px solid var(--border-glow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.action-card:hover::before {
    opacity: 0.1;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-md);
}

.action-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Form Styles */
.game-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
}

.balance-display i {
    color: var(--accent-color);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.5);
}

/* Game Options */
.game-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-options h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.option-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.option-info i {
    color: #667eea;
    font-size: 1.1rem;
}

/* Buttons */
.btn-large {
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* About Game Section */
.about-game {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.game-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
}

.value-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.value-item span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Game Preview */
.game-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-screen {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.preview-screen:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.preview-header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.preview-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.preview-item small {
    display: block;
    color: #fbbf24;
    font-size: 0.8rem;
    margin-top: 5px;
}

.preview-teams {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.85rem;
}

/* How to Play Section */
.how-to-play {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.rule-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.rule-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.rule-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.rule-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Help Tools Section */
.help-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.tool-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tool-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.tool-note i {
    color: #667eea;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.footer-text {
    text-align: center;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #764ba2;
}

/* Toast Notifications */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

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

.toast-content {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.error-toast .toast-content {
    background: rgba(239, 68, 68, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-toast .toast-content {
    background: rgba(34, 197, 94, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        gap: 10px;
    }
    
    .tagline-text {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .action-card {
        padding: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .game-values {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        flex-direction: column;
        gap: 5px;
    }
    
    .tagline-text {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        gap: 15px;
    }
    
    .btn-hero {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .floating-icon {
        font-size: 1.2rem;
    }
    
    .action-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .action-card h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Information */
.contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.method-content h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.method-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.social-links h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Contact Form */
.contact-form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form .form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    padding: 0 25px 25px;
    margin: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
}
/* =============================================== */
/* ====== أكواد خاصة بقائمة اختيار المواضيع ====== */
/* =============================================== */

.category-selection-container {
    background: rgba(255, 255, 255, 0.05); /* تعديل ليتناسب مع التصميم الحديث */
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-search {
    margin-bottom: 15px;
}

.category-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; /* تعديل ليتناسب مع التصميم الحديث */
    background: rgba(0, 0, 0, 0.2); /* تعديل ليتناسب مع التصميم الحديث */
    color: white;
    font-size: 0.9rem;
    text-align: right; /* تعديل للغة العربية */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.category-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.category-search input:focus {
    outline: none;
    border-color: #8A2BE2; /* لون بنفسجي مميز */
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* مساحة أكبر قليلاً */
    gap: 10px;
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px; /* تعديل ليتناسب مع التصميم الحديث */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* إخفاء الحدود الافتراضية */
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ستايل عند اختيار التصنيف */
.category-item input[type="checkbox"]:checked + .category-text {
    color: #9f7aea; /* لون بنفسجي فاتح */
    font-weight: bold;
}


.category-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #8A2BE2; /* لون بنفسجي مميز */
    cursor: pointer;
}

.category-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF; /* تعديل ليتناسب مع التصميم الحديث */
    font-weight: 500;
    font-size: 0.9rem;
}

.category-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.btn-show-more, .btn-category-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-show-more:hover, .btn-category-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-show-more {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-show-more .arrow {
    transition: transform 0.3s ease;
}

.category-controls {
    display: flex;
    gap: 10px;
}

