/* ================================================================
   RDP — RAMALLAH DIGITAL PRODUCTION
   GLOBAL DESIGN SYSTEM  v2.0
   Brand Source: R.D.P Logo — Red · Slate Gray · Black
   ================================================================ */

/* ----------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ---------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Tajawal:wght@300;400;500;700&family=Oxanium:wght@400;600;700;800&display=swap");

/* ----------------------------------------------------------------
   2. BRAND COLOR TOKENS
   ---------------------------------------------------------------- */
:root {

  /* ── Core Brand ── */
  --primary-color:   #E53935;   /* Main Red  (logo play-button) */
  --primary-hover:   #B71C1C;   /* Deeper Red on hover          */
  --primary-light:   #FF6F6A;   /* Lighter red for accents      */
  --primary-glow:    rgba(229, 57, 53, 0.25);

  /* ── Secondary / Structure ── */
  --secondary-color: #2B2F33;   /* Dark Slate Gray (logo ring)  */
  --secondary-hover: #1A1D20;   /* Hover deepening              */

  /* ── Neutral Grays ── */
  --accent-color:    #6C757D;   /* Mid Gray (body text muted)   */
  --accent-light:    #ADB5BD;   /* Light Gray                   */
  --accent-subtle:   rgba(108, 117, 125, 0.12);

  /* ── Backgrounds ── */
  --background-dark:   #0B0B0B; /* Deep Black                   */
  --background-deep:   #0D1117; /* Near-black with blue hint    */
  --background-card:   #151920; /* Elevated card surface        */
  --background-surface:#1C2128; /* Secondary surface            */
  --background-input:  rgba(255, 255, 255, 0.05);

  /* ── Text ── */
  --text-light:      #FFFFFF;
  --text-primary:    #F0EDE8;   /* Off-white, easier on eyes    */
  --text-secondary:  #9A9EA3;   /* Muted body text              */
  --text-disabled:   #4A4E55;

  /* ── Semantic Status ── */
  --color-success:   #2ECC71;
  --color-warning:   #F59E0B;
  --color-danger:    #E53935;   /* = primary for this brand     */
  --color-info:      #3B9EE8;

  /* ── Borders ── */
  --border-color:        rgba(229, 57, 53, 0.20);
  --border-color-soft:   rgba(255, 255, 255, 0.06);
  --border-color-muted:  rgba(255, 255, 255, 0.10);

  /* ── Shadows ── */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.60);
  --shadow-red: 0 8px 28px rgba(229, 57, 53, 0.35);

  /* ── Radius ── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ── Transitions ── */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-smooth: 0.40s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Typography ── */
  --font-display: "Oxanium", "Cairo", sans-serif;
  --font-body:    "Cairo", "Tajawal", sans-serif;
  --font-mono:    "Courier New", monospace;

  /* ── Spacing Scale ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* ── Z-Index Stack ── */
  --z-base:    1;
  --z-raised:  10;
  --z-dropdown:100;
  --z-sticky:  500;
  --z-fixed:   1000;
  --z-modal:   2000;
  --z-toast:   3000;
}

/* ----------------------------------------------------------------
   3. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--background-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------
   4. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p  { color: var(--text-secondary); line-height: 1.8; }

a  {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--primary-color); }

/* Eyebrow / section label */
.section-label {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* Decorative divider */
.section-divider {
  width: 56px;
  height: 2px;
  background: var(--primary-color);
  margin: var(--space-md) auto;
  border-radius: 2px;
  position: relative;
}
.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}
.section-divider::before { left: -12px; }
.section-divider::after  { right: -12px; }

/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

/* Primary — Red fill */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--text-light);
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--text-light);
}
.btn-primary:active { transform: scale(0.97); }

/* Outline — Red border */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* Ghost — subtle */
.btn-ghost {
  background: rgba(229, 57, 53, 0.08);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  background: rgba(229, 57, 53, 0.18);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Dark / muted */
.btn-dark {
  background: var(--background-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color-muted);
}
.btn-dark:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Danger */
.btn-danger {
  background: transparent;
  border: 1.5px solid rgba(229, 57, 53, 0.45);
  color: var(--primary-color);
}
.btn-danger:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm { padding: 8px 18px;  font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-icon {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* Disabled state */
.btn:disabled,
.btn[disabled] {
  opacity: 0.40;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------------
   6. NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: var(--z-fixed);
  background: rgba(11, 11, 11, 0.80);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth), height var(--transition-base);
  padding-right: 220px; /* space for fixed logo */
}

.navbar.scrolled {
  background: rgba(8, 8, 10, 0.96);
  border-bottom-color: rgba(229, 57, 53, 0.25);
  height: 64px;
}

.nav-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: rgba(240, 237, 232, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: color var(--transition-base), background var(--transition-base);
  position: relative;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  bottom: 3px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.nav-links > li > a:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}
.nav-links > li > a:hover::after { transform: scaleX(1); }

/* CTA button in nav */
.nav-btn {
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  font-weight: 700 !important;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow) !important;
}

/* Fixed Logo */
.fixed-logo {
  position: fixed;
  top: 12px; right: 20px;
  z-index: calc(var(--z-fixed) + 1);
}
.fixed-logo img {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(229, 57, 53, 0.20));
  transition: transform var(--transition-base), filter var(--transition-base);
}
.fixed-logo img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 20px rgba(229, 57, 53, 0.45));
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 0;
  list-style: none;
  min-width: 180px;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}
.dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important;
  color: rgba(240, 237, 232, 0.65) !important;
  font-size: 0.87rem !important;
  transition: color var(--transition-base), background var(--transition-base) !important;
}
.dropdown-menu a:hover {
  color: var(--primary-color) !important;
  background: rgba(229, 57, 53, 0.08) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1.5px solid rgba(229, 57, 53, 0.25);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
  z-index: calc(var(--z-fixed) + 1);
}
.hamburger:hover {
  background: rgba(229, 57, 53, 0.10);
  border-color: var(--primary-color);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(240, 237, 232, 0.80);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, background var(--transition-base);
}
.hamburger span:nth-child(2) { width: 14px; }
.hamburger:hover span { background: var(--text-light); }
.hamburger:hover span:nth-child(2) { width: 20px; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary-color); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary-color); }

/* ----------------------------------------------------------------
   7. CARDS
   ---------------------------------------------------------------- */
.card {
  background: var(--background-card);
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-base);
  position: relative;
}

/* Red top-accent line */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

/* Inner glow */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 57, 53, 0.30);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(229, 57, 53, 0.08) inset;
}
.card:hover::before { opacity: 1; }
.card:hover::after  { opacity: 1; }

.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}
.card:hover .card-title { color: var(--primary-light); }

.card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color-soft);
}

/* Stat card variant */
.card-stat {
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}
.card-stat .stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.card-stat .stat-label {
  font-size: 0.80rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   8. FORM ELEMENTS
   ---------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color-muted);
  background: var(--background-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
  direction: inherit;
}

.form-control::placeholder { color: var(--text-disabled); }

.form-control:hover {
  border-color: rgba(229, 57, 53, 0.35);
}
.form-control:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ----------------------------------------------------------------
   9. SIDEBAR
   ---------------------------------------------------------------- */
.sidebar {
  background: linear-gradient(160deg, #100507 60%, #1a0609 100%);
  border-right: 1px solid var(--border-color);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.40);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.55;
}

.sidebar ul { list-style: none; padding: 0; }

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 13px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin: 2px 8px;
  transition: color var(--transition-base), background var(--transition-base);
  position: relative;
}

.sidebar ul li a::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  color: var(--text-light);
  background: rgba(229, 57, 53, 0.10);
}
.sidebar ul li a:hover::before,
.sidebar ul li a.active::before {
  opacity: 1;
}

/* ----------------------------------------------------------------
   10. TABLE
   ---------------------------------------------------------------- */
.rdp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.rdp-table thead th {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 8px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.rdp-table tbody tr {
  background: var(--background-card);
  transition: background var(--transition-base), transform var(--transition-base);
}

.rdp-table tbody tr:hover {
  background: var(--background-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.rdp-table tbody td {
  padding: 13px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  vertical-align: middle;
  text-align: right;
  border-top: 1px solid rgba(229, 57, 53, 0.05);
}

/* ----------------------------------------------------------------
   11. BADGES / TAGS
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(229, 57, 53, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(229, 57, 53, 0.25);
}
.badge-live {
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.30);
  color: #FF5252;
}
.badge-live .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FF5252;
  animation: blink-dot 1.2s ease-in-out infinite;
}
.badge-success {
  background: rgba(46, 204, 113, 0.10);
  border: 1px solid rgba(46, 204, 113, 0.22);
  color: var(--color-success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--color-warning);
}
.badge-muted {
  background: rgba(108, 117, 125, 0.10);
  border: 1px solid var(--border-color-muted);
  color: var(--text-secondary);
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.20; }
}

/* ----------------------------------------------------------------
   12. MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--background-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(229, 57, 53, 0.08);
  transform: scale(0.88) translateY(20px);
  transition: transform var(--transition-smooth);
  text-align: center;
  color: var(--text-light);
}
.modal-overlay.show .modal-box {
  transform: scale(1) translateY(0);
}

/* ----------------------------------------------------------------
   13. FILTER BAR
   ---------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: var(--space-xl);
  width: 100%;
}

.filter-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--background-input);
  border: 1.5px solid var(--border-color-muted);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.filter-input-wrap:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}
.filter-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.90rem;
  outline: none;
}
.filter-input-wrap input::placeholder { color: var(--text-disabled); }

/* ----------------------------------------------------------------
   14. SCROLLBAR
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--background-dark); }
::-webkit-scrollbar-thumb {
  background: rgba(229, 57, 53, 0.30);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 57, 53, 0.55);
}

/* ----------------------------------------------------------------
   15. UTILITY CLASSES
   ---------------------------------------------------------------- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color-soft);
}

.text-brand   { color: var(--primary-color) !important; }
.text-muted   { color: var(--text-secondary) !important; }
.text-light   { color: var(--text-light) !important; }
.bg-dark      { background: var(--background-dark) !important; }
.bg-card      { background: var(--background-card) !important; }

/* ----------------------------------------------------------------
   16. DARK MODE OVERRIDES (body.dark-mode)
   ---------------------------------------------------------------- */
body.dark-mode {
  --background-dark:    #050505;
  --background-card:    #0F1015;
  --background-surface: #141519;
}

/* ----------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .navbar { padding-right: 160px; }
}

@media (max-width: 900px) {
  .navbar { height: 64px; padding-right: 0; }
  .nav-container { padding: 0 20px; justify-content: flex-start; }
  .hamburger { display: flex; margin-right: auto; }

  nav.rdp-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    transform: translateY(-110%);
    transition: transform 0.50s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-fixed);
  }
  nav.rdp-nav.active { transform: translateY(0); }

  .nav-links {
    flex-direction: column;
    gap: 4px;
    width: min(370px, 90vw);
    background: rgba(20, 22, 28, 0.98);
    border-radius: var(--radius-xl);
    padding: 24px 0;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-links > li > a { font-size: 1.10rem; padding: 13px 24px; }

  .fixed-logo img { height: 44px; }
  .fixed-logo { top: 10px; right: 14px; }
}

@media (max-width: 600px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════
   27-INCH  ≥ 1920px — navbar, typography, buttons
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {
  body { font-size: 17px; }

  .navbar        { height: 80px; }
  .navbar.scrolled { height: 72px; }
  .nav-container { max-width: 1600px; padding: 0 64px; }
  .nav-links > li > a {
    font-size: 0.96rem;
    padding: 10px 16px;
  }

  .btn    { padding: 14px 36px; font-size: 1rem; }
  .btn-sm { padding: 9px 22px;  font-size: 0.88rem; }
  .btn-lg { padding: 18px 48px; font-size: 1.1rem; }

  h1 { font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
  h2 { font-size: clamp(1.7rem, 3.2vw, 3.2rem); }
  h3 { font-size: clamp(1.3rem, 2.2vw, 2.2rem); }
}

/* ═══════════════════════════════════════════════════════════
   2K أصلي  ≥ 2200px
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 2200px) {
  body { font-size: 18px; }

  .navbar        { height: 88px; }
  .navbar.scrolled { height: 80px; }
  .nav-container { max-width: 1920px; padding: 0 80px; }
  .nav-links > li > a {
    font-size: 1.05rem;
    padding: 12px 18px;
  }

  .btn    { padding: 16px 44px; font-size: 1.08rem; }
  .btn-sm { padding: 10px 26px; font-size: 0.92rem; }
  .btn-lg { padding: 20px 56px; font-size: 1.18rem; }
}
