/* ==========================================================================
   تقويم نجد للرواتب والتقويم الدراسي
   Visual System · Royal Saudi Theme · Final Polish
   ========================================================================== */

:root {
    /* ── Color Palette: Royal Saudi Emerald & Najd Desert Gold ── */
    --bg-dark:              #040f09;
    --bg-card-dark:         rgba(8, 30, 20, 0.9);
    --bg-surface:           #071a10;
    --bg-surface-elevated:  #0e2d1c;

    --gold-primary:    #c9a84c;
    --gold-light:      #f0d98a;
    --gold-dark:       #8a6a1e;
    --gold-gradient:   linear-gradient(135deg, #c9a84c 0%, #f0d98a 45%, #a07828 100%);
    --gold-glow:       rgba(201, 168, 76, 0.4);

    --green-emerald:   #0b3c2a;
    --green-accent:    #145e3e;
    --green-bright:    #1a8a5a;
    --green-glow:      rgba(26, 138, 90, 0.25);

    --saudi-red:       #006c35;   /* Saudi flag green */
    --saudi-white:     #ffffff;

    --text-main:  #f1f5f0;
    --text-muted: #7a9e8a;
    --text-gold:  #f0d98a;

    --border-gold:   rgba(201, 168, 76, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.07);

    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   36px;
    --radius-pill: 9999px;

    --shadow-deep: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 40px rgba(201,168,76,0.35);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.45);

    --font-primary:     'Tajawal', sans-serif;
    --font-heading:     'Cairo', sans-serif;
    --font-traditional: 'Amiri', serif;

    --transition-fast:   0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light-theme {
    --bg-dark:             #f4f7f4;
    --bg-card-dark:        rgba(255, 255, 255, 0.97);
    --bg-surface:          #ffffff;
    --bg-surface-elevated: #edf2ed;
    --text-main:   #0f1f14;
    --text-muted:  #4a6e55;
    --text-gold:   #7a5a1e;
    --border-gold:   rgba(160, 120, 40, 0.35);
    --border-subtle: rgba(0,0,0,0.07);
}

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

html { scroll-behavior:smooth; font-size:16px; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ══════════════════════════════════════════════════
   👑  ROYAL SAUDI INTRO OVERLAY
═══════════════════════════════════════════════════ */

.royal-intro-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #0a3020 0%, #020c06 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.9s ease,
                visibility 0.9s ease;
}

.royal-intro-overlay.dismiss {
    transform: scale(1.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ambient golden light rays */
.intro-light-rays {
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 180deg at 50% 40%,
            transparent 0deg,
            rgba(201,168,76,0.07) 15deg,
            transparent 30deg,
            transparent 60deg,
            rgba(201,168,76,0.05) 75deg,
            transparent 90deg,
            transparent 150deg,
            rgba(201,168,76,0.08) 165deg,
            transparent 180deg,
            transparent 210deg,
            rgba(201,168,76,0.06) 225deg,
            transparent 240deg,
            transparent 300deg,
            rgba(201,168,76,0.07) 315deg,
            transparent 330deg,
            transparent 360deg
        ),
        radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.15) 0%, transparent 60%);
    animation: rayPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes rayPulse {
    0%   { opacity: 0.7; transform: scale(1) rotate(0deg); }
    100% { opacity: 1;   transform: scale(1.06) rotate(3deg); }
}

/* Saudi geometric ornament SVG behind logo */
.intro-saudi-ornament {
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    opacity: 0.06;
    animation: ornamentSpin 60s linear infinite;
    pointer-events: none;
}

@keyframes ornamentSpin {
    from { transform: translate(-50%, -65%) rotate(0deg); }
    to   { transform: translate(-50%, -65%) rotate(360deg); }
}

.intro-card-wrap {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-logo-outer {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo-img {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 0 8px rgba(201,168,76,0.1), 0 0 50px rgba(201,168,76,0.7);
    object-fit: cover;
    z-index: 2;
    animation: logoPulse 3.5s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    0%   { box-shadow: 0 0 0 8px rgba(201,168,76,0.1), 0 0 35px rgba(201,168,76,0.5); }
    100% { box-shadow: 0 0 0 12px rgba(201,168,76,0.2), 0 0 70px rgba(201,168,76,0.9); }
}

.intro-pulse-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.6);
    opacity: 0;
    animation: pulseRingAnim 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.intro-pulse-ring.delay-1 { animation-delay: 1.5s; }

@keyframes pulseRingAnim {
    0%   { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.5); opacity: 0; }
}

.intro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.5);
    color: var(--gold-light);
    padding: 7px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 24px rgba(201,168,76,0.25);
}

.intro-title {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.intro-subtitle {
    font-size: 1.05rem;
    color: #6b9e80;
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.intro-loader-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.intro-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.intro-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    box-shadow: 0 0 12px var(--gold-primary);
    border-radius: var(--radius-pill);
    transition: width 0.12s linear;
}

.intro-status-text {
    font-size: 0.82rem;
    color: rgba(201,168,76,0.7);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.intro-enter-btn {
    font-size: 1.15rem;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 40px rgba(201,168,76,0.7);
    animation: btnGlowPulse 2s infinite alternate;
    letter-spacing: 0.5px;
    gap: 10px;
}

@keyframes btnGlowPulse {
    0%   { transform: scale(1);    box-shadow: 0 0 30px rgba(201,168,76,0.6); }
    100% { transform: scale(1.05); box-shadow: 0 0 60px rgba(201,168,76,1); }
}

/* ══════════════════════════════════════════════════
   🖱️  EFFECTS ENGINE
═══════════════════════════════════════════════════ */

.cursor-spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: left 0.05s linear, top 0.05s linear;
}

/* Shimmer Text */
.shimmer-text {
    background: linear-gradient(90deg, #c9a84c 0%, #f5e9b0 40%, #c9a84c 70%, #f0d98a 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}

/* Float Animation */
.float-animation { animation: float 4.5s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* Gold Sparkle Icon */
.gold-sparkle {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.9));
    animation: sparkleGlow 2.5s ease-in-out infinite alternate;
}
@keyframes sparkleGlow {
    0%   { filter: drop-shadow(0 0 4px rgba(201,168,76,0.5)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 14px rgba(201,168,76,1));  transform: scale(1.12); }
}

/* Pulse Border */
.pulse-border { animation: pulseBorder 3.5s infinite alternate; }
@keyframes pulseBorder {
    0%   { box-shadow: 0 0 8px  rgba(201,168,76,0.2); }
    100% { box-shadow: 0 0 28px rgba(201,168,76,0.7); }
}

/* Shine hover sweep */
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 200%; height: 200%;
    background: linear-gradient(65deg, transparent 35%, rgba(255,255,255,0.09) 50%, transparent 65%);
    transform: rotate(30deg) translateY(-120%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.shine-effect:hover::after { transform: rotate(30deg) translateY(120%); }

/* Glow box */
.glow-box {
    box-shadow: 0 0 22px rgba(201,168,76,0.18);
    border: 1px solid var(--border-gold);
}
.glow-unit {
    box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 0 12px rgba(201,168,76,0.08);
    border: 1px solid var(--border-gold);
    transition: all var(--transition-fast);
}
.glow-unit:hover {
    box-shadow: 0 0 22px rgba(201,168,76,0.5);
    border-color: var(--gold-primary);
}
.glowing-bar { box-shadow: 0 0 18px var(--gold-primary); }

/* Ripple */
.ripple-effect { position: relative; overflow: hidden; }
.ripple-effect .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.65s linear;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Pulse Tag */
.pulse-tag { animation: tagPulse 2.8s ease-in-out infinite alternate; }
@keyframes tagPulse {
    0%   { box-shadow: 0 0 6px rgba(201,168,76,0.25); }
    100% { box-shadow: 0 0 20px rgba(201,168,76,0.8); }
}

/* Gold gradient text */
.gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gold-text { color: var(--gold-primary) !important; }

/* Hover lift */
.hover-lift { transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }

/* Glass card */
.glass-card {
    background: var(--bg-card-dark);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.glass-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* ══════════════════════════════════════════════════
   🏛️  HEADER
═══════════════════════════════════════════════════ */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 15, 9, 0.85);
    backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border-gold);
    padding: 14px 0;
    transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}
.main-header.scrolled {
    padding: 8px 0;
    background: rgba(4, 15, 9, 0.98);
    box-shadow: 0 4px 40px rgba(0,0,0,0.7), 0 1px 0 rgba(201,168,76,0.2);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold-light);
}
.brand-tagline { font-size: 0.78rem; color: var(--text-muted); }

.glow-on-hover:hover .brand-name { text-shadow: 0 0 20px rgba(201,168,76,0.8); }

.today-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(201,168,76,0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    flex: 1;
    min-width: 0;
}
.today-badge i { color: var(--gold-primary); font-size: 1.1rem; flex-shrink: 0; }
.today-info { display: flex; flex-direction: column; min-width: 0; }
.today-label { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.today-date {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold-light);
    background: rgba(201,168,76,0.1);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; right: 14px;
    width: 0%; height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: calc(100% - 28px); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.icon-btn:hover { background: rgba(201,168,76,0.2); box-shadow: 0 0 20px rgba(201,168,76,0.4); }

/* ══════════════════════════════════════════════════
   🌄  HERO SECTION
═══════════════════════════════════════════════════ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-backdrop img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transform: scale(1.05);
    animation: heroPanZoom 20s ease-in-out infinite alternate;
}
@keyframes heroPanZoom {
    0%   { transform: scale(1.05) translate(0%, 0%); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(4,15,9,0.3) 0%,
        rgba(4,15,9,0.6) 50%,
        rgba(4,15,9,0.95) 100%
    );
}

/* Saudi geometric pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(26,138,90,0.05) 0%, transparent 35%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 24px rgba(201,168,76,0.2);
    width: fit-content;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 680px;
    line-height: 1.8;
}

/* Quick Jump Bar */
.quick-jump-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}
.quick-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all var(--transition-normal);
    cursor: pointer;
}
.quick-btn:hover {
    background: rgba(201,168,76,0.18);
    box-shadow: 0 0 24px rgba(201,168,76,0.35);
    transform: translateY(-3px);
}
.quick-btn.gold-glow { background: var(--gold-gradient); color: #0a1f10; border-color: transparent; }
.quick-btn.gold-glow:hover { box-shadow: 0 0 40px rgba(201,168,76,0.7); }

/* Featured Countdown Card */
.hero-featured-card {
    background: rgba(10, 26, 17, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.1);
    max-width: 860px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.featured-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
}
.featured-location {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.featured-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.featured-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

.featured-date-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.f-date-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.f-date-detail-item .label { font-size: 0.78rem; color: var(--text-muted); }
.f-date-detail-item strong { font-size: 1rem; font-weight: 700; color: var(--text-main); }

/* Countdown Grid */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.countdown-unit {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: all var(--transition-fast);
}
.countdown-unit:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 24px rgba(201,168,76,0.3);
}
.unit-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.unit-label { font-size: 0.8rem; color: var(--text-muted); }

.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   🕌  SAUDI ORNAMENT BANNER (between sections)
═══════════════════════════════════════════════════ */

.saudi-divider-banner {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--green-accent) 20%,
        var(--gold-primary) 50%,
        var(--green-accent) 80%,
        transparent 100%
    );
    position: relative;
    margin: 0;
}
.saudi-divider-banner::before {
    content: '❖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    color: var(--gold-primary);
    font-size: 1.2rem;
    padding: 0 12px;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.8));
}

/* ══════════════════════════════════════════════════
   🔢  DATE PRECISION CONVERTER
═══════════════════════════════════════════════════ */

.precision-converter-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.converter-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-deep), var(--shadow-gold);
}

.converter-header { margin-bottom: 32px; }
.converter-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin: 8px 0;
    color: var(--text-main);
}
.converter-header p { color: var(--text-muted); font-size: 0.95rem; }

.converter-body { display: flex; flex-direction: column; gap: 24px; }

.converter-inputs {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.input-group { flex: 1; min-width: 200px; }
.input-group label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.input-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    direction: ltr;
}
.input-group input[type="date"]:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.converter-result-box {
    background: rgba(0,0,0,0.35);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.res-row:last-child { border-bottom: none; padding-bottom: 0; }
.res-row span { color: var(--text-muted); font-size: 0.9rem; }
.res-row strong { font-size: 0.95rem; color: var(--text-main); font-weight: 700; }

/* ══════════════════════════════════════════════════
   💰  SALARIES SECTION
═══════════════════════════════════════════════════ */

.salaries-section {
    padding: 80px 0;
    background: var(--bg-surface);
    position: relative;
}

/* Saudi palm tree pattern bg */
.salaries-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 80%, rgba(201,168,76,0.03) 0%, transparent 40%),
                      radial-gradient(circle at 90% 20%, rgba(26,138,90,0.04) 0%, transparent 35%);
    pointer-events: none;
}

.salaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.salary-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform var(--transition-spring), box-shadow var(--transition-spring);
    cursor: pointer;
}
.salary-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.2);
    border-color: var(--gold-primary);
}

.salary-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.salary-icon-wrap {
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.salary-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 6px;
}
.salary-card-day, .salary-card-hijri {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.salary-card-day { color: var(--gold-primary); font-weight: 700; margin-bottom: 2px; }

.salary-countdown-box {
    background: rgba(0,0,0,0.35);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.salary-cd-days {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.salary-cd-label { font-size: 0.78rem; color: var(--text-muted); text-align: left; }

/* ══════════════════════════════════════════════════
   🎓  ACADEMIC SECTION
═══════════════════════════════════════════════════ */

.academic-section { padding: 80px 0; background: var(--bg-dark); }

.academic-progress-card {
    padding: 32px;
    border: 1px solid rgba(201,168,76,0.2);
    margin-bottom: 40px;
    background: rgba(14,45,28,0.6);
}

.acad-prog-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.term-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(26,138,90,0.2);
    color: #5de0a0;
    border: 1px solid rgba(26,138,90,0.4);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.acad-prog-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
}
.prog-stats { font-size: 0.9rem; color: var(--text-muted); }
.prog-stats strong { color: var(--gold-primary); }

.progress-bar-wrap {
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-bright), var(--gold-primary));
    border-radius: var(--radius-pill);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ══════════════════════════════════════════════════
   📊  STATS RIBBON
═══════════════════════════════════════════════════ */

.stats-ribbon {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(14,45,28,0.8) 0%, rgba(4,15,9,0.9) 100%);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}
.stats-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(201,168,76,0.01) 40px,
        rgba(201,168,76,0.01) 80px
    );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    position: relative;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-spring);
    cursor: default;
}
.stat-item:hover {
    border-color: var(--gold-primary);
    background: rgba(201,168,76,0.06);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(201,168,76,0.2);
}
.stat-item i { font-size: 2rem; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-number {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   📅  CALENDAR SECTION + VIEWS
═══════════════════════════════════════════════════ */

.calendar-section { padding: 80px 0; background: var(--bg-surface); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 24px;
    flex-wrap: wrap;
}
.section-title-wrap { max-width: 600px; }
.sub-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    background: rgba(201,168,76,0.1);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(201,168,76,0.2);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 10px;
}
.section-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 640px; }

/* View Switcher */
.view-switcher {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    flex-shrink: 0;
}
.view-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.view-btn:hover { color: var(--gold-light); background: rgba(201,168,76,0.1); }
.view-btn.active { background: var(--gold-gradient); color: #0a1f10; font-weight: 800; }

/* Filter Card */
.filter-card {
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon { position: absolute; right: 16px; color: var(--gold-primary); font-size: 0.95rem; }
.search-box input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-box input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}
.search-box input::placeholder { color: var(--text-muted); }
.clear-btn {
    position: absolute;
    left: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.filter-groups {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.filter-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}
.filter-select-wrap label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
    font-weight: 600;
}
.filter-select-wrap select {
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.filter-select-wrap select:focus { border-color: var(--gold-primary); }

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.chip:hover { border-color: var(--gold-primary); color: var(--gold-light); background: rgba(201,168,76,0.08); }
.chip.active { background: var(--gold-gradient); color: #0a1f10; border-color: transparent; font-weight: 800; box-shadow: 0 4px 16px rgba(201,168,76,0.4); }

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 320px;
    transition: transform var(--transition-spring), box-shadow var(--transition-spring), border-color var(--transition-fast);
}
.event-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.18);
    border-color: var(--gold-primary);
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.event-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 10px;
}
.event-desc-snippet { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.event-days-left {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.8rem;
    color: var(--gold-primary);
    font-weight: 700;
    white-space: nowrap;
}
.event-date-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.event-date-row span { display: flex; align-items: center; gap: 6px; }

/* Category Tags */
.category-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.cat-salaries  { background: rgba(201,168,76,0.15); color: var(--gold-primary); border-color: rgba(201,168,76,0.3); }
.cat-academic  { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.cat-astronomy { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.3); }
.cat-national  { background: rgba(26,138,90,0.15); color: #4ade80; border-color: rgba(26,138,90,0.3); }
.cat-islamic   { background: rgba(245,158,11,0.15); color: var(--amber-accent, #f59e0b); border-color: rgba(245,158,11,0.3); }
.cat-general   { background: rgba(148,163,184,0.15); color: #94a3b8; border-color: rgba(148,163,184,0.3); }

/* Calendar Monthly Grid */
.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    margin-bottom: 16px;
    border: 1px solid var(--border-gold);
}
.calendar-header-bar h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; }
.month-nav-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}
.month-nav-btn:hover { background: rgba(201,168,76,0.2); box-shadow: 0 0 20px rgba(201,168,76,0.3); }

.calendar-table-responsive { overflow-x: auto; }
.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.calendar-grid-header > div {
    text-align: center;
    padding: 10px 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(201,168,76,0.06);
    border-radius: var(--radius-sm);
}
.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.day-cell {
    min-height: 90px;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    transition: all var(--transition-fast);
    cursor: default;
}
.day-cell:hover { border-color: var(--gold-primary); background: rgba(201,168,76,0.04); }
.day-cell.other-month { background: rgba(0,0,0,0.15); opacity: 0.3; }
.day-cell.today {
    border-color: var(--gold-primary) !important;
    background: rgba(201,168,76,0.08) !important;
    box-shadow: 0 0 18px rgba(201,168,76,0.3) !important;
}

.cell-date-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cell-greg-day { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.cell-hijri-day { font-size: 0.68rem; color: var(--text-muted); }
.day-event-pill {
    display: block;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.68rem;
    color: var(--gold-light);
    margin-top: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--transition-fast);
}
.day-event-pill:hover { background: rgba(201,168,76,0.25); }

/* Timeline View */
.timeline-container { display: flex; flex-direction: column; gap: 20px; }
.timeline-item {
    background: var(--bg-card-dark);
    border-right: 4px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform var(--transition-normal);
    border: 1px solid var(--border-subtle);
    border-right-color: var(--gold-primary);
    border-right-width: 4px;
}
.timeline-item:hover { transform: translateX(-6px); }

/* ══════════════════════════════════════════════════
   🌙  NAJD SEASONS SECTION
═══════════════════════════════════════════════════ */

.najd-seasons-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

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

.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.star-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition-spring), box-shadow var(--transition-spring), border-color var(--transition-fast);
}
.star-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.2);
    border-color: var(--gold-primary);
}

.star-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; }
.star-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 4px;
}
.star-duration {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    background: rgba(0,0,0,0.3);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}
.star-advice {
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: right;
    font-family: var(--font-traditional);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-top: 16px;
}
.star-advice strong { color: var(--gold-primary); display: block; margin-bottom: 6px; font-family: var(--font-primary); }

/* ══════════════════════════════════════════════════
   🗂️  EVENT MODAL
═══════════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(16px);
    z-index: 9500;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-backdrop.active .modal-content { transform: scale(1) translateY(0); }

.modal-content {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(201,168,76,0.2);
}

.modal-close {
    position: absolute; top: 20px; left: 20px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.4);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: rgba(201,168,76,0.15); color: var(--gold-primary); border-color: var(--gold-primary); }

.modal-header { margin-bottom: 28px; }
.modal-cat-badge { margin-bottom: 12px; display: inline-flex; }
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.3;
}

.modal-dates-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.3);
}
.m-date-box {
    display: flex; flex-direction: column; gap: 4px;
    text-align: center;
}
.m-date-box i { color: var(--gold-primary); font-size: 1.1rem; margin-bottom: 4px; }
.m-date-box span { font-size: 0.75rem; color: var(--text-muted); }
.m-date-box strong { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }

.modal-desc-wrap { margin-bottom: 20px; }
.modal-desc-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-light);
    display: flex; align-items: center; gap: 8px;
}
.modal-desc-wrap p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.modal-advice-box {
    display: flex; gap: 14px;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}
.modal-advice-box i { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.modal-advice-box strong { font-size: 0.85rem; color: var(--gold-light); display: block; margin-bottom: 4px; }
.modal-advice-box p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.meta-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.85rem;
}
.meta-item i { color: var(--gold-primary); }
.meta-item span { color: var(--text-muted); }
.meta-item strong { color: var(--text-main); margin-right: 4px; }

.modal-footer { display: flex; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   🔘  BUTTONS
═══════════════════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.btn-gold {
    background: var(--gold-gradient);
    color: #0a1f10;
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-gold:hover { box-shadow: 0 8px 35px rgba(201,168,76,0.7); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); border-color: var(--gold-primary); }
.btn-google {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}
.btn-google:hover { background: rgba(255,255,255,0.14); }

/* ══════════════════════════════════════════════════
   🦶  FOOTER
═══════════════════════════════════════════════════ */

.main-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #020c06 100%);
    border-top: 1px solid var(--border-gold);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

/* Saudi geometric footer accent */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent, var(--green-accent) 30%, var(--gold-primary) 50%, var(--green-accent) 70%, transparent
    );
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-primary); margin-bottom: 18px; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold-primary); margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }

.footer-links h4, .footer-categories h4 { color: var(--gold-light); margin-bottom: 20px; font-family: var(--font-heading); font-size: 1.05rem; }
.footer-links ul, .footer-categories ul { list-style: none; }
.footer-links li, .footer-categories li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '←'; color: var(--gold-primary); font-size: 0.75rem; }
.footer-links a:hover { color: var(--gold-primary); }
.footer-categories li { color: var(--text-muted); font-size: 0.88rem; display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.footer-categories li i.gold { color: var(--gold-primary); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border-subtle);
    padding: 22px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.83rem;
}

/* ══════════════════════════════════════════════════
   ✨  FINAL POLISH – اللمسات الأخيرة
═══════════════════════════════════════════════════ */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Scroll-to-Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 32px; left: 32px;
    width: 52px; height: 52px;
    background: var(--gold-gradient);
    border: none; border-radius: 50%;
    color: #0a1f10;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(201,168,76,0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    pointer-events: none;
}
#scrollTopBtn.visible { opacity:1; transform: translateY(0) scale(1); pointer-events:all; }
#scrollTopBtn:hover { box-shadow: 0 0 35px rgba(201,168,76,0.9); transform: translateY(-4px) scale(1.1); }

/* Toast */
#toastContainer {
    position: fixed;
    bottom: 100px; left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    background: linear-gradient(135deg, var(--bg-surface-elevated), #0d3020);
    border: 1px solid var(--gold-primary);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.92rem; font-weight: 600;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5), 0 0 20px rgba(201,168,76,0.3);
    display: flex; align-items: center; gap: 10px;
    pointer-events: none;
    animation: toastIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
.toast.hide { animation: toastOut 0.35s ease forwards; }
.toast i { color: var(--gold-primary); }
@keyframes toastIn  { from { opacity:0; transform:translateY(20px) scale(0.9); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(-10px) scale(0.95); } }

/* Section Divider Ornament */
.section-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin: 16px auto 48px; max-width: 480px;
}
.section-divider::before, .section-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}
.section-divider-icon { color: var(--gold-primary); font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(201,168,76,0.8)); animation: sparkleGlow 2.5s ease-in-out infinite alternate; }

/* ── Responsive ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 1024px) { .main-nav { display: none; } }
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-title { font-size: 2rem; }
    .modal-content { padding: 28px; }
    .modal-dates-ribbon { grid-template-columns: 1fr; }
    .modal-meta-grid { grid-template-columns: 1fr; }
    .hero-featured-card { padding: 24px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .section-title { font-size: 1.7rem; }
    .intro-title { font-size: 1.75rem; }
    #scrollTopBtn { bottom: 18px; left: 18px; width: 44px; height: 44px; }
    .featured-date-detail-grid { grid-template-columns: 1fr 1fr; }
    .salaries-grid { grid-template-columns: 1fr; }
}
