/* ========= الوضع الداكن للموقع العام (يُفعَّل بـ data-theme="dark" على <html>) ========= */
.theme-toggle{background:transparent;border:1px solid rgba(255,255,255,.35);color:#dbe7f1;border-radius:999px;width:30px;height:28px;display:inline-grid;place-items:center;padding:0;line-height:1;font-size:.8rem;cursor:pointer}
.theme-toggle:hover{background:rgba(255,255,255,.12)}

:root[data-theme=dark]{
  color-scheme:dark;
  --ink:#e3ebf5; --muted:#9fb0c3; --line:#26364b; --bg:#0e1a29; --white:#122033;
  --primary-soft:color-mix(in srgb,#5aa9e6 14%,#0e1a29);
  --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-lg:0 20px 45px rgba(0,0,0,.5);
}
[data-theme=dark] body{background:#0a1420;color:var(--ink)}
[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4,[data-theme=dark] h5{color:#cfe4fb}
[data-theme=dark] a{color:#8cc4f4}
[data-theme=dark] a:hover{color:var(--secondary)}
[data-theme=dark] .btn-primary,[data-theme=dark] .btn-accent,[data-theme=dark] .btn-light{color:#fff}
[data-theme=dark] .btn-light{color:#0a3b5c}
[data-theme=dark] .btn-outline-primary{color:#8cc4f4;border-color:#8cc4f4}
[data-theme=dark] .btn-outline-primary:hover{background:#8cc4f4;color:#0a1420}

/* أسطح بيضاء ثابتة في app.css */
[data-theme=dark] .site-header{background:rgba(14,26,41,.96)}
[data-theme=dark] .site-header.scrolled{box-shadow:0 6px 24px rgba(0,0,0,.5)}
[data-theme=dark] .brand-text strong{color:#cfe4fb}
[data-theme=dark] .navbar-nav .nav-link{color:var(--ink)}
[data-theme=dark] .navbar-toggler-icon{filter:invert(1)}
[data-theme=dark] .card-box,[data-theme=dark] .quick-card,[data-theme=dark] .event-row,
[data-theme=dark] .side-card,[data-theme=dark] .filter-bar,[data-theme=dark] .partner{background:#122033;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .partner{filter:none;opacity:.9;background:#e8eef5}
[data-theme=dark] .pb-light,[data-theme=dark] .section-alt{background:#0e1a29}
[data-theme=dark] .pb-white{background:#0a1420}
[data-theme=dark] .album-item{background:#1b2b40}
[data-theme=dark] .skip-link{background:#122033;color:var(--ink)}
[data-theme=dark] .dropdown-menu{background:#122033}
[data-theme=dark] .dropdown-item{color:var(--ink)}
[data-theme=dark] .dropdown-item:hover{background:var(--primary-soft);color:#cfe4fb}
[data-theme=dark] .footer-logo,[data-theme=dark] .about-media img{background:#fff}
[data-theme=dark] .form-control,[data-theme=dark] .form-select{background-color:#0e1a29;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .prose,[data-theme=dark] .prose p,[data-theme=dark] .prose li{color:var(--ink)}
[data-theme=dark] .table{--bs-table-bg:transparent;--bs-table-color:var(--ink);--bs-table-border-color:var(--line)}
[data-theme=dark] img{filter:brightness(.92)}
[data-theme=dark] .footer-logo,[data-theme=dark] .brand-logo,[data-theme=dark] .partner img{filter:none}
[data-theme=dark] .search-suggest{background:#122033}
[data-theme=dark] .search-suggest a{color:var(--ink)}
[data-theme=dark] .dept-pill{color:var(--card-color)}
[data-theme=dark] .dept-pill:hover,[data-theme=dark] .dept-pill.active{color:#fff}
[data-theme=dark] .album-card{background:#122033;border-color:var(--line);color:var(--ink)}
