/* GoldenVisionIPTV — Black & Gold futuristic theme */

:root {
  --bg: #07070a;
  --bg-alt: #0e0e14;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --border: #2a2a38;
  --gold: #d4af37;
  --gold-light: #f1d78c;
  --gold-dim: #8a6f22;
  --text: #f2f0e9;
  --text-muted: #a9a8b3;
  --success: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --shadow-gold: 0 0 24px rgba(212, 175, 55, 0.25);
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, var(--bg-alt) 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  color: var(--gold-light);
  margin: 0 0 0.5em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  order: 1;
  white-space: nowrap;
}

.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  box-shadow: var(--shadow-gold);
}
.brand .brand-logo { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  order: 4;
  flex-basis: 100%;
  justify-content: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; order: 2; flex-shrink: 0; }

.nav-toggle {
  display: none;
  order: 3;
  background: none; border: 1px solid var(--border); color: var(--gold);
  border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 1.1rem; cursor: pointer;
  flex-shrink: 0;
}

/* Language dropdown with flags */
.lang-switcher { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-current:hover { border-color: var(--gold-dim); }
.lang-current .fi { border-radius: 3px; width: 1.3em; height: 1em; }
.lang-current .lang-code { font-weight: 600; letter-spacing: 0.03em; }
.lang-caret { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s ease; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 80;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.lang-menu a:hover { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); }
.lang-menu a.active { color: var(--gold-light); }
.lang-menu .fi { border-radius: 3px; width: 1.4em; height: 1.05em; flex-shrink: 0; }
.lang-menu .lang-check { margin-inline-start: auto; color: var(--gold); font-size: 0.8rem; }

.cart-badge {
  position: relative;
  white-space: nowrap;
}
.cart-badge .count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: #1a1300;
  font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; padding: 0.05rem 0.4rem;
}

/* Keep the header usable at any width: compact the language code and cart
   label first, since the flag/icon alone still conveys their purpose. */
@media (max-width: 480px) {
  .lang-current .lang-code { display: none; }
  .lang-current { padding: 0.4rem 0.55rem; }
  .cart-badge .cart-label { display: none; }
  .cart-badge { padding-inline: 0.7rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1300;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); color: #1a1300; }
.btn-outline {
  background: transparent;
  border-color: var(--gold-dim);
  color: var(--gold-light);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); color: var(--gold-light); }
.btn-danger { background: var(--danger); color: #2a0a0a; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Layout helpers ---------- */
main { flex: 1; }

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Cards (glassmorphism) ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.12), transparent 60%);
  pointer-events: none;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.pkg-card .pkg-image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
}
.pkg-card .pkg-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
}
.pkg-card .pkg-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pkg-card .pkg-features li::before { content: "\2726  "; color: var(--gold); }
.pkg-card.featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.badge {
  display: inline-block;
  background: var(--gold);
  color: #1a1300;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Pricing cards (per-duration plans) ---------- */
.plan-group { margin-bottom: 3.5rem; }
.plan-group:last-child { margin-bottom: 0; }
.plan-group-head { margin-bottom: 2rem; }
.pkg-grid-single { grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); justify-content: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.pricing-card.popular { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.pricing-ribbon {
  position: absolute; top: 0.9rem; right: -2.4rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1300;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 2.8rem;
}
[dir="rtl"] .pricing-ribbon { right: auto; left: -2.4rem; transform: rotate(-45deg); }
.pricing-duration {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.pricing-price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.pricing-original { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.pricing-now { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); font-weight: 800; }
.pricing-features { margin-bottom: 1.25rem; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.5rem; }
.pricing-features li::before { content: none; }
.pricing-features li i { color: var(--gold); margin-top: 0.2rem; flex-shrink: 0; }
.pricing-note {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pricing-note i { color: var(--gold); margin-inline-end: 0.3rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.18), transparent 55%);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-image {
  margin-top: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

/* ---------- Installation guide ---------- */
.install-hero { padding: 3.5rem 0 1rem; position: relative; }
.install-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.install-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.6rem 0 0.5rem; }
.install-hero .lead { font-size: 1.1rem; color: var(--text); margin: 0 0 0.6rem; }
.install-hero-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}
.install-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.device-card { display: flex; flex-direction: column; gap: 0.4rem; }
.device-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.2rem; }
.device-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
  border: 1px solid var(--gold-dim);
  color: var(--gold); font-size: 1.3rem;
}
.device-steps {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.2rem;
  color: var(--text-muted);
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.93rem;
}
.device-steps li { padding-inline-start: 0.2rem; }
.device-steps li::marker { color: var(--gold); font-weight: 700; }

@media (max-width: 780px) {
  .install-hero-inner { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
}

/* ---------- Home: feature icons ---------- */
.feature-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 0.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 1.5rem; color: var(--gold);
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.04));
  border: 1px solid var(--gold-dim);
}

/* ---------- Home: stats strip ---------- */
.stats-strip { padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(212,175,55,0.03); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold); font-weight: 800; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Home: alternating showcase rows ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.showcase:last-child { margin-bottom: 0; }
.showcase-reverse .showcase-media { order: 2; }
.showcase-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.showcase-media img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.showcase-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.device-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.5rem; }
.device-badges span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.85rem; color: var(--text-muted);
}
.device-badges span i { color: var(--gold); }

.pkg-price .from-label { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Home: testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.testimonial-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.testimonial-avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(212,175,55,0.05));
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; color: var(--gold-light); }
.testimonial-stars { color: var(--gold); font-size: 0.8rem; margin-top: 0.1rem; }
.testimonial-stars .fa-regular { color: var(--border); }
.testimonial-quote { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

@media (max-width: 780px) {
  .showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase-reverse .showcase-media { order: 0; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
textarea { resize: vertical; min-height: 100px; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 200px; }
.payment-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.payment-option {
  flex: 1; min-width: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
}
.payment-option.selected { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}
.alert-error { background: rgba(248,113,113,0.12); border: 1px solid var(--danger); color: #ffb4b4; }
.alert-success { background: rgba(52,211,153,0.12); border: 1px solid var(--success); color: #9dfcd6; }
.alert-info { background: rgba(212,175,55,0.1); border: 1px solid var(--gold-dim); color: var(--gold-light); }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
th { color: var(--gold-light); font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: rgba(212,175,55,0.04); }
.status-pill {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.status-paid { background: rgba(52,211,153,0.15); color: var(--success); }
.status-pending, .status-pending_manual_payment { background: rgba(212,175,55,0.15); color: var(--gold); }
.status-cancelled, .status-failed { background: rgba(248,113,113,0.15); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand {
  padding: 0 0.5rem 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sidebar .brand .brand-logo { max-height: 32px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(212,175,55,0.1); color: var(--gold-light); }
.admin-sidebar nav a[href="/admin/logout.php"] { margin-top: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--border); border-radius: 0; }

.admin-main { flex: 1; padding: 2.25rem; max-width: 1100px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2.25rem; }
.stat-card { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 1.8rem; color: var(--gold); }

.admin-main > .card { margin-bottom: 1.5rem; }
.admin-main h3 { margin-top: 0; }

.duration-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.duration-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.duration-row input { margin: 0; }
.duration-row .btn { flex-shrink: 0; }
.duration-popular-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 500; font-size: 0.85rem; color: var(--text-muted);
  white-space: nowrap; margin: 0; cursor: pointer;
}
.duration-popular-toggle .popular-checkbox { width: auto; margin: 0; }

/* Action buttons inside table cells (edit/delete/toggle) need breathing room */
td .btn, td form { margin: 0.15rem 0.4rem 0.15rem 0; }
td form:last-child, td .btn:last-child { margin-right: 0; }

.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.login-card { width: 100%; max-width: 380px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 60; transition: left 0.2s ease; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1.25rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; gap: 1rem;
    z-index: 70;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { flex-direction: column; gap: 1.5rem; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* RTL is layered separately in rtl.css */
