/* ============================================
           المتغيرات والأساسيات
        ============================================ */
        :root {
            --primary: #1B2B5E;
            --primary-light: #2a3f82;
            --primary-dark: #131d3d;
            --accent: #C8A951;
            --accent-light: #dfc274;
            --bg: #f7f8fc;
            --card: #ffffff;
            --text: #2d3748;
            --text-light: #718096;
            --border: #e2e8f0;
            --success: #38a169;
            --warning: #d69e2e;
            --danger: #e53e3e;
            --info: #3182ce;
            --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.02);
            --radius: 12px;
            --radius-lg: 16px;
        }

        [data-theme="dark"] {
            --primary: #63b3ed;
            --primary-light: #90cdf4;
            --primary-dark: #2a4365;
            --accent: #d4b85c;
            --bg: #0f1724;
            --card: #1a2332;
            --text: #e2e8f0;
            --text-light: #a0aec0;
            --border: #2d3748;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Tajawal', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            transition: background 0.3s, color 0.3s;
        }

        /* ============================================
           الشريط العلوي - Header رسمي
        ============================================ */
        .main-header {
            background: linear-gradient(135deg, #131d3d 0%, #1B2B5E 55%, #253b7e 100%); border-bottom: 3px solid #C8A951;
            color: #fff;
            position: relative;
            overflow: hidden;
        }

        .main-header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 30px;
            position: relative;
            z-index: 1;
        }

        .brand-area {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand-emblem {
            width: 52px;
            height: 52px;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(10px);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            border: 1px solid rgba(255,255,255,0.15);
        }

        .brand-text h1 {
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.3px;
            margin-bottom: 2px;
        }

        .brand-text .subtitle {
            font-size: 0.78rem;
            opacity: 0.8;
            font-weight: 400;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            padding: 9px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.85rem;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 7px;
            transition: all 0.25s ease;
        }

        .header-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-1px);
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 0.78rem;
            background: rgba(255,255,255,0.08);
            padding: 7px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .status-dot {
            width: 7px;
            height: 7px;
            background: #68d391;
            border-radius: 50%;
            animation: blink 2s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* ============================================
           الحاوية الرئيسية
        ============================================ */
        .page-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 24px 20px 80px;
        }

        /* ============================================
           بطاقات KPI
        ============================================ */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }

        .kpi-card {
            background: var(--card);
            border-radius: var(--radius-lg);
            padding: 24px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 18px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .kpi-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }

        .kpi-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            height: 3px;
        }

        .kpi-card.kpi-avg::after { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
        .kpi-card.kpi-perfect::after { background: linear-gradient(90deg, #38a169, #68d391); }
        .kpi-card.kpi-struggling::after { background: linear-gradient(90deg, #e53e3e, #fc8181); }

        .kpi-icon-box {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }

        .kpi-avg .kpi-icon-box { background: linear-gradient(135deg, #ebf4ff, #bee3f8); color: var(--primary-light); }
        .kpi-perfect .kpi-icon-box { background: linear-gradient(135deg, #f0fff4, #c6f6d5); color: #38a169; }
        .kpi-struggling .kpi-icon-box { background: linear-gradient(135deg, #fff5f5, #fed7d7); color: #e53e3e; }

        .kpi-content { flex: 1; }

        .kpi-label {
            font-size: 0.82rem;
            color: var(--text-light);
            font-weight: 500;
            margin-bottom: 4px;
        }

        .kpi-value {
            font-size: 2rem;
            font-weight: 900;
            line-height: 1.1;
        }

        .kpi-avg .kpi-value { color: var(--primary-light); }
        .kpi-perfect .kpi-value { color: #38a169; }
        .kpi-struggling .kpi-value { color: #e53e3e; }

        .kpi-sub {
            font-size: 0.75rem;
            color: var(--text-light);
            margin-top: 2px;
        }

        /* ============================================
           منصة المتميزين
        ============================================ */
        .podium-section {
            background: linear-gradient(135deg, #1a365d 0%, #2a4365 50%, #2b6cb0 100%);
            border-radius: var(--radius-lg);
            padding: 28px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
        }

        .podium-section::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(198,168,75,0.08) 0%, transparent 70%);
            top: -100px;
            left: -100px;
        }

        .podium-title {
            text-align: center;
            color: #fff;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .podium-title .accent-icon {
            color: var(--accent);
        }

        .podium-container {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .podium-item {
            text-align: center;
            transition: transform 0.3s ease;
        }

        .podium-item:hover { transform: translateY(-6px); }

        .podium-medal {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: 900;
            margin: 0 auto 10px;
        }

        .podium-item.gold .podium-medal { background: linear-gradient(135deg, #d4a017, #f6e05e); color: #744210; box-shadow: 0 4px 14px rgba(212,160,23,0.4); }
        .podium-item.silver .podium-medal { background: linear-gradient(135deg, #a0aec0, #e2e8f0); color: #4a5568; box-shadow: 0 4px 14px rgba(160,174,192,0.4); }
        .podium-item.bronze .podium-medal { background: linear-gradient(135deg, #c05621, #ed8936); color: #fff; box-shadow: 0 4px 14px rgba(192,86,33,0.4); }

        .podium-card {
            background: rgba(255,255,255,0.96);
            border-radius: 14px;
            padding: 18px 22px;
            min-width: 170px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        }

        .podium-item.gold .podium-card { border-top: 3px solid var(--accent); }
        .podium-item.silver .podium-card { border-top: 3px solid #a0aec0; }
        .podium-item.bronze .podium-card { border-top: 3px solid #ed8936; }

        .podium-name {
            font-size: 0.88rem;
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .podium-score {
            font-size: 1.6rem;
            font-weight: 900;
            color: var(--primary);
        }

        .podium-bar {
            width: 100%;
            border-radius: 10px 10px 0 0;
            margin-top: 12px;
        }

        .podium-item.gold .podium-bar { background: linear-gradient(180deg, var(--accent), #b7941f); height: 70px; }
        .podium-item.silver .podium-bar { background: linear-gradient(180deg, #cbd5e0, #a0aec0); height: 50px; }
        .podium-item.bronze .podium-bar { background: linear-gradient(180deg, #ed8936, #c05621); height: 40px; }

        /* ============================================
           البطاقات - Grid 3 أعمدة
        ============================================ */
        .cards-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }

        .section-card {
            background: var(--card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .section-card .card-header {
            padding: 14px 18px;
            font-size: 0.92rem;
            font-weight: 700;
            color: var(--text);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-card .card-header i { color: var(--primary-light); font-size: 0.9rem; }

        .section-card .card-body {
            padding: 16px;
            flex: 1;
        }

        /* ============================================
           بطاقة الأحداث
        ============================================ */
        .events-card-v2 {
            background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%) !important;
            border: none !important;
        }

        .events-card-v2 .card-header {
            color: #fff;
            border-bottom: 1px solid rgba(255,255,255,0.15);
        }

        .events-card-v2 .card-header i { color: var(--accent); }

        .events-card-v2 .card-body {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 8px;
        }

        .event-chip {
            background: rgba(255,255,255,0.95);
            border-radius: 10px;
            padding: 10px 6px;
            text-align: center;
            transition: transform 0.2s;
        }

        .event-chip:hover { transform: translateY(-3px); }

        .event-chip .ev-countdown {
            font-size: 1.6rem;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 4px;
        }

        .event-chip .ev-countdown.today { color: #e53e3e; }
        .event-chip .ev-countdown.upcoming { color: var(--primary-light); }

        .event-chip .ev-unit {
            font-size: 0.6rem;
            color: var(--text-light);
            font-weight: 600;
        }

        .event-chip .ev-name {
            font-size: 0.72rem;
            font-weight: 700;
            color: #2d3748;
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .event-chip .ev-date {
            font-size: 0.58rem;
            color: #a0aec0;
        }

        .no-events-v2 {
            text-align: center;
            color: rgba(255,255,255,0.7);
            padding: 30px 10px;
        }

        .no-events-v2 i { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; display: block; }

        /* ============================================
           بطاقة الأقسام
        ============================================ */
        .dept-list-v2 { display: flex; flex-direction: column; gap: 6px; }

        .dept-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: var(--bg);
            border-radius: 10px;
            border-right: 3px solid transparent;
            transition: all 0.25s ease;
        }

        .dept-item:hover {
            background: #edf2f7;
            transform: translateX(-3px);
        }

        .dept-item.rank-1 { border-right-color: var(--accent); background: #fffdf0; }
        .dept-item.rank-2 { border-right-color: #a0aec0; background: #f7fafc; }
        .dept-item.rank-3 { border-right-color: #ed8936; background: #fffaf0; }

        .dept-item .dept-rank {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 800;
            color: #fff;
            margin-left: 8px;
        }

        .dept-item.rank-1 .dept-rank { background: linear-gradient(135deg, #d4a017, #f6e05e); color: #744210; }
        .dept-item.rank-2 .dept-rank { background: linear-gradient(135deg, #a0aec0, #718096); }
        .dept-item.rank-3 .dept-rank { background: linear-gradient(135deg, #ed8936, #c05621); }
        .dept-item .dept-rank.normal { background: #718096; }

        .dept-item .dept-name {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text);
            display: flex;
            align-items: center;
        }

        .dept-item .dept-val {
            font-weight: 800;
            font-size: 0.9rem;
            padding: 2px 10px;
            border-radius: 12px;
            background: rgba(255,255,255,0.8);
        }

        /* ============================================
           شريط الأدوات / الفلاتر
        ============================================ */
        .toolbar-v2 {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px 20px;
            margin-bottom: 20px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: flex-end;
            box-shadow: var(--shadow);
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 120px;
        }

        .filter-group label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .filter-group label i { font-size: 0.7rem; }

        .form-control {
            padding: 9px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.85rem;
            outline: none;
            background: var(--bg);
            color: var(--text);
            transition: border-color 0.2s;
        }

        .form-control:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 2px rgba(43,108,176,0.1);
        }

        /* ============================================
           الجدول الرئيسي
        ============================================ */
        .table-wrapper {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }

        .table-scroll { overflow-x: auto; }

        table { width: 100%; border-collapse: collapse; }

        th, td {
            padding: 10px 8px;
            border: 1px solid var(--border);
            text-align: center;
            vertical-align: middle;
            font-size: 0.82rem;
        }

        .dept-header-cell {
            font-weight: 700;
            color: #1a365d;
            background: #edf2f7;
            font-size: 0.82rem;
        }

        .task-header-cell {
            font-size: 0.72rem;
            color: var(--text-light);
            font-weight: 600;
            background: #f7fafc;
            height: 50px;
            vertical-align: bottom;
        }

        tbody tr:nth-child(even) { background: #fafbfc; }
        tbody tr:hover { background: #edf2f7 !important; }

        .school-cell {
            text-align: right;
            font-weight: 600;
            min-width: 200px;
            max-width: 220px;
            position: sticky;
            right: 0;
            background: #fff;
            z-index: 10;
            color: var(--text);
        }

        tbody tr:nth-child(even) .school-cell { background: #fafbfc; }
        tbody tr:hover .school-cell { background: #edf2f7 !important; }

        .section-sep { border-left: 3px double #a0aec0 !important; }

        .val-num {
            font-weight: 800;
            font-size: 0.85rem;
            display: block;
            margin-bottom: 2px;
        }

        .prog-bar-bg {
            width: 100%;
            height: 4px;
            background: #edf2f7;
            border-radius: 2px;
            overflow: hidden;
            max-width: 42px;
            margin: 0 auto;
        }

        .prog-bar-fill { height: 100%; border-radius: 2px; }

        .c-ok { color: #38a169; } .bg-ok { background: #38a169; }
        .c-mid { color: #3182ce; } .bg-mid { background: #3182ce; }
        .c-low { color: #e53e3e; } .bg-low { background: #e53e3e; }

        .cell-na {
            background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 8px, #f0f1f3 8px, #f0f1f3 16px) !important;
            color: #cbd5e0;
            font-size: 1rem;
        }

        /* mini circle */
        .mini-circ {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin: 0 auto;
        }

        .mini-circ::before {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #fff;
        }

        .mini-circ .mv { position: relative; font-size: 0.65rem; font-weight: 800; z-index: 1; }

        .btn-eye {
            background: #edf2f7;
            border: 1px solid #e2e8f0;
            color: var(--primary-light);
            cursor: pointer;
            border-radius: 6px;
            padding: 3px 7px;
            margin-left: 6px;
            font-size: 0.75rem;
            transition: all 0.2s;
        }

        .btn-eye:hover { background: var(--primary-light); color: #fff; }

        /* pagination */
        .pagination-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 18px;
            background: #f7fafc;
            border-top: 1px solid var(--border);
        }

        .page-btn {
            background: var(--card);
            border: 1px solid var(--border);
            padding: 7px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            color: var(--text);
            font-size: 0.85rem;
            font-family: inherit;
            transition: all 0.2s;
        }

        .page-btn:hover:not(:disabled) { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }
        .page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

        .page-info { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }

        /* ============================================
           قسم شركاء النجاح
        ============================================ */
        .partners-section {
            margin-bottom: 30px;
        }

        .partners-title {
            text-align: center;
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .partners-subtitle {
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-light);
            margin-bottom: 24px;
        }

        .partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 16px;
        }

        .partner-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px 18px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .partner-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .partner-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .partner-card:hover::before { opacity: 1; }

        .partner-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
            font-size: 1.5rem;
        }

        .partner-icon.color-1 { background: linear-gradient(135deg, #ebf4ff, #bee3f8); color: #2b6cb0; }
        .partner-icon.color-2 { background: linear-gradient(135deg, #f0fff4, #c6f6d5); color: #38a169; }
        .partner-icon.color-3 { background: linear-gradient(135deg, #fffaf0, #fefcbf); color: #d69e2e; }
        .partner-icon.color-4 { background: linear-gradient(135deg, #fff5f5, #fed7d7); color: #e53e3e; }
        .partner-icon.color-5 { background: linear-gradient(135deg, #faf5ff, #e9d8fd); color: #805ad5; }
        .partner-icon.color-6 { background: linear-gradient(135deg, #e6fffa, #b2f5ea); color: #319795; }

        .partner-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
        }

        .partner-desc {
            font-size: 0.78rem;
            color: var(--text-light);
            line-height: 1.5;
        }

        /* ============================================
           التذييل
        ============================================ */
        .main-footer {
            text-align: center;
            padding: 24px;
            border-top: 1px solid var(--border);
            margin-top: 20px;
        }

        .footer-line {
            font-size: 0.82rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .footer-line .accent { color: var(--accent); font-weight: 700; }

        /* ============================================
           Modal
        ============================================ */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
        .modal-content { background: #fff; width: 720px; max-width: 95%; max-height: 90vh; overflow-y: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
        .close-modal { position: absolute; left: 18px; top: 14px; font-size: 1.8rem; cursor: pointer; color: #fff; z-index: 5; }
        .modal-header-bg { background: linear-gradient(135deg, #1a365d, #2b6cb0); padding: 28px; color: #fff; text-align: center; border-radius: 16px 16px 0 0; position: relative; }
        .modal-school-name { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px 0; }
        .modal-body { padding: 24px; }
        .rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
        .rank-box { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; text-align: center; }
        .rank-title { font-size: 0.8rem; font-weight: 600; color: #718096; margin-bottom: 6px; }
        .rank-val { font-size: 1.2rem; font-weight: 900; color: var(--primary-light); }
        .card-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
        .card-table th { background: #edf2f7; color: #2d3748; padding: 10px; font-size: 0.85rem; border-bottom: 2px solid #e2e8f0; }
        .card-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; font-size: 0.85rem; text-align: center; }
        .badge { padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; }
        .btn-print-card { background: linear-gradient(135deg, #1a365d, #2b6cb0); color: #fff; border: none; padding: 10px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit; }

        /* circular progress */
        .circular-progress { position: relative; width: 130px; height: 130px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
        .circular-progress::before { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: #fff; }
        .circular-progress .progress-value { position: relative; font-size: 2.2rem; font-weight: 900; z-index: 1; }
        .circular-progress .progress-label { position: absolute; bottom: -22px; font-size: 0.8rem; color: #718096; font-weight: 600; }

        /* ============================================
           Responsive
        ============================================ */
        @media (max-width: 992px) {
            .kpi-grid, .cards-row { grid-template-columns: 1fr; }
            .podium-container { flex-direction: column; align-items: center; }
        }

        @media (max-width: 768px) {
            .header-top { flex-direction: column; gap: 14px; }
            .brand-text h1 { font-size: 1.1rem; text-align: center; }
            .header-actions { flex-wrap: wrap; justify-content: center; }
            .partners-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media print {
            .main-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .header-actions, .toolbar-v2 { display: none !important; }
        }
/* ============================================
   إعلانات وتنويهات المنصة (Site Announcements)
============================================ */
.site-announcements-wrapper {
    position: relative;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-announcements-slider {
    position: relative;
    width: 100%;
}

.ann-banner-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    gap: 25px;
    animation: annFadeIn 0.4s ease forwards;
}

.ann-banner-slide.active {
    display: flex;
}

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

/* التدرجات اللونية الرسمية */
.ann-banner-slide.grad-default {
    background: linear-gradient(135deg, #131d3d 0%, #1B2B5E 55%, #1e3a8a 100%);
    border: 1px solid rgba(200, 169, 81, 0.35);
}

.ann-banner-slide.grad-gold {
    background: linear-gradient(135deg, #785210 0%, #92722A 50%, #B8973A 100%);
    border: 1px solid rgba(254, 240, 138, 0.4);
}

.ann-banner-slide.grad-emerald {
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 60%, #115e59 100%);
    border: 1px solid rgba(110, 231, 183, 0.3);
}

.ann-banner-slide.grad-purple {
    background: linear-gradient(135deg, #3b0764 0%, #4c1d95 60%, #581c87 100%);
    border: 1px solid rgba(216, 180, 254, 0.3);
}

.ann-banner-slide.grad-crimson {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 55%, #991b1b 100%);
    border: 1px solid rgba(252, 165, 165, 0.3);
}

/* زخرفة خلفية هندسية ناعمة */
.ann-banner-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ann-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    min-width: 0;
}

.ann-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.3px;
}

.ann-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: annPulse 2s infinite;
}

@keyframes annPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ann-banner-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ann-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1B2B5E;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.ann-banner-btn:hover {
    background: #f8fafc;
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

.ann-banner-media {
    flex-shrink: 0;
    z-index: 2;
}

.ann-banner-media img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.ann-banner-media img:hover {
    transform: scale(1.05);
}

/* أزرار التنقل بين السلايدات */
.ann-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.ann-nav-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.ann-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.ann-dots-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ann-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.ann-dot.active {
    width: 22px;
    background: var(--primary);
}

/* Lightbox Modal */
.ann-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ann-lightbox-overlay.active {
    display: flex;
}

.ann-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.ann-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
}

.ann-lightbox-close {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .ann-banner-slide {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 16px;
    }
    .ann-banner-title {
        font-size: 1.05rem;
    }
    .ann-banner-media {
        width: 100%;
    }
    .ann-banner-media img {
        width: 100%;
        height: 160px;
    }
}