/* ═══════════════════════════════════════════════════════════
   Abozlam.com - Dark Red Style v3.0
   أبوظلام - موقع البرامج والأدوات
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1F1F1F;
    --bg-card: #181818;
    --blood-dark: #8B0000;
    --blood: #B91C1C;
    --red-accent: #DC2626;
    --red-light: #F87171;
    --red-glow: rgba(220,38,38,0.4);
    --gold: #FBBF24;
    --text-primary: #F5F5F5;
    --text-secondary: #A1A1A1;
    --text-muted: #6B6B6B;
    --border: #2A2A2A;
    --border-red: #3D0A0A;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-red: 0 8px 30px rgba(220,38,38,0.3);
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Tahoma', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
    font-size: 15px;
    background-image: 
        radial-gradient(circle at 20% 10%, rgba(139,0,0,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(220,38,38,0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

a { color: var(--red-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-accent); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--blood); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   Header & Logo
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background: linear-gradient(180deg, #0A0A0A 0%, #141414 100%);
    border-bottom: 2px solid var(--border-red);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(139,0,0,0.2);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ─── اللوجو ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-shield {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1A0000 0%, #8B0000 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 0 2px rgba(220,38,38,0.3),
        0 0 20px rgba(220,38,38,0.5),
        inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.logo-shield::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo-shield .mark {
    font-size: 26px;
    font-weight: 900;
    color: var(--red-accent);
    text-shadow: 0 0 15px var(--red-glow), 0 0 30px var(--red-glow);
    font-family: 'Georgia', serif;
    z-index: 1;
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #DC2626 50%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Georgia', serif;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── القائمة ─── */
.main-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(220,38,38,0.1);
    color: var(--red-accent);
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15%;
    left: 15%;
    height: 2px;
    background: var(--red-accent);
    border-radius: 2px;
}

/* ─── زر البحث ─── */
.search-trigger {
    background: linear-gradient(135deg, #1F1F1F, #141414);
    border: 1px solid var(--border-red);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.search-trigger:hover {
    border-color: var(--red-accent);
    color: var(--red-accent);
    box-shadow: 0 0 20px rgba(220,38,38,0.2);
}

/* ═══════════════════════════════════════════════════════════
   Container
   ═══════════════════════════════════════════════════════════ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ═══════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════ */
.hero {
    background: 
        linear-gradient(135deg, #141414 0%, #0A0A0A 100%),
        radial-gradient(circle at 30% 50%, rgba(139,0,0,0.15) 0%, transparent 50%);
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 60%);
    animation: rotate 40s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFFFFF 0%, #DC2626 60%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 60px rgba(220,38,38,0.3);
    font-family: 'Georgia', serif;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-dark) 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-red);
    transition: var(--transition);
    border: 1px solid rgba(248,113,113,0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220,38,38,0.5);
    color: #fff;
    background: linear-gradient(135deg, var(--red-accent) 0%, var(--blood) 100%);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 36px;
    font-weight: 900;
    color: var(--red-accent);
    font-family: monospace;
    text-shadow: 0 0 20px var(--red-glow);
}

.hero-stat .label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* ═══════════════════════════════════════════════════════════
   Section Titles
   ═══════════════════════════════════════════════════════════ */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-red);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: var(--red-accent);
    box-shadow: 0 0 10px var(--red-glow);
}

.section-title h2 {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title h2 .accent {
    color: var(--red-accent);
}

.section-title .view-all {
    color: var(--red-light);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title .view-all:hover { color: var(--red-accent); }

/* ═══════════════════════════════════════════════════════════
   Categories Grid
   ═══════════════════════════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.category-card:hover::before {
    transform: translateX(100%);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--blood);
    box-shadow: var(--shadow-red);
    color: var(--text-primary);
}

.category-card .cat-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(220,38,38,0.3));
}

.category-card .cat-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
}

.category-card .cat-count {
    color: var(--text-muted);
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   Programs Grid
   ═══════════════════════════════════════════════════════════ */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.program-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--blood);
    box-shadow: var(--shadow-red);
}

.program-thumb {
    width: 100%;
    height: 180px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(139,0,0,0.2) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-red);
}

.program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s;
}

.program-card:hover .program-thumb img {
    transform: scale(1.05);
}

.program-thumb .placeholder-icon {
    font-size: 60px;
    opacity: 0.4;
}

.program-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(251,191,36,0.4);
}

.program-platform {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10,10,10,0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-red);
}

.program-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.program-card:hover .program-name {
    color: var(--red-accent);
}

.program-version {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    font-family: monospace;
    display: inline-block;
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.program-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.program-price {
    color: var(--gold);
    font-weight: 800;
    font-size: 15px;
}

.program-downloads {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Breadcrumb
   ═══════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--red-accent);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--red-accent); }
.breadcrumb .sep { color: var(--blood); }

/* ═══════════════════════════════════════════════════════════
   Program Details Header
   ═══════════════════════════════════════════════════════════ */
.program-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.program-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220,38,38,0.15), transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .program-header { grid-template-columns: 1fr; }
}

.program-header-img {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.program-header-img img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.program-header-info {
    position: relative;
    z-index: 1;
}

.program-header-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.program-meta-item .icon {
    color: var(--red-accent);
}

.program-rating-big {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.program-rating-big .rating-num {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
    font-family: monospace;
    text-shadow: 0 0 20px rgba(251,191,36,0.4);
}

.stars {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 2px;
    direction: ltr;
    display: inline-block;
}

.stars .empty { color: var(--bg-tertiary); }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-dark) 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 17px;
    border: 1px solid rgba(248,113,113,0.4);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
    margin-top: 15px;
    font-family: inherit;
    width: 100%;
    max-width: 400px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220,38,38,0.5);
    color: #fff;
    background: linear-gradient(135deg, var(--red-accent) 0%, var(--blood) 100%);
}

/* ═══════════════════════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 26px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.tab-btn:hover { color: var(--red-accent); }

.tab-btn.active {
    color: var(--red-accent);
    border-bottom-color: var(--red-accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--red-accent);
    box-shadow: 0 0 15px var(--red-glow);
    border-radius: 2px;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   Content Box
   ═══════════════════════════════════════════════════════════ */
.content-box {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.content-box h2 {
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-red);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.content-box h2 .icon {
    color: var(--red-accent);
    font-size: 24px;
}

.content-box p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.9;
}

.content-box pre {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    color: var(--red-light);
    font-family: monospace;
    font-size: 13px;
    border: 1px solid var(--border-red);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:hover {
    background: rgba(220,38,38,0.05);
}

.specs-table td {
    padding: 14px 12px;
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 180px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-table td:first-child::before {
    content: '▸';
    color: var(--red-accent);
}

.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   Reviews
   ═══════════════════════════════════════════════════════════ */
.review-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 12px;
    border-right: 4px solid var(--red-accent);
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateX(-3px);
    box-shadow: 0 5px 20px rgba(220,38,38,0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-name {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-name::before {
    content: '👤';
    font-size: 14px;
}

.review-date {
    color: var(--text-muted);
    font-size: 12px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}

/* Review Form */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--red-accent);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-dark) 100%);
    color: #fff;
    padding: 12px 28px;
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    background: linear-gradient(135deg, var(--red-accent) 0%, var(--blood) 100%);
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #050505 100%);
    border-top: 2px solid var(--border-red);
    padding: 50px 20px 20px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--red-accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--red-glow);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover { 
    color: var(--red-accent); 
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo .mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blood-dark), var(--red-accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 15px var(--red-glow);
}

/* ═══════════════════════════════════════════════════════════
   Search Modal
   ═══════════════════════════════════════════════════════════ */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.95);
    z-index: 9999;
    display: none;
    padding: 100px 20px 20px;
    backdrop-filter: blur(15px);
}

.search-modal.active { display: block; }

.search-box-large {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input-large {
    width: 100%;
    padding: 22px 30px;
    font-size: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--blood);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 0 40px rgba(220,38,38,0.3);
}

.search-input-large:focus {
    border-color: var(--red-accent);
    box-shadow: 0 0 60px rgba(220,38,38,0.5);
}

.search-results {
    max-width: 700px;
    margin: 20px auto 0;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-red);
    box-shadow: var(--shadow-red);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text-primary);
}

.search-result-item:hover {
    background: rgba(220,38,38,0.1);
    padding-right: 25px;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 5px;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--red-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px var(--red-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 42px;
    text-align: center;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--red-accent);
    color: var(--red-accent);
    box-shadow: 0 0 15px rgba(220,38,38,0.3);
}

.pagination .active {
    background: linear-gradient(135deg, var(--blood), var(--blood-dark));
    color: #fff;
    border-color: var(--red-accent);
    box-shadow: var(--shadow-red);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blood-dark), var(--blood));
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-accent);
}

/* Mobile */
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 25px; }
    .hero-stat .num { font-size: 26px; }
    .program-header-info h1 { font-size: 22px; }
    .header-inner { flex-direction: column; }
    .main-nav { justify-content: center; }
    .logo-name { font-size: 18px; }
}