:root {
  --bg: #eef3ff;
  --surface: #ffffff;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --text: #17223b;
  --muted: #5e6780;
  --border: #dce5ff;
  --danger: #dc2626;
  --success: #059669;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #e8efff 0%, #dbe7ff 45%, #d3e2ff 100%);
}

html[lang="he"] body {
  font-family: "Segoe UI", "David", "Arial Hebrew", Tahoma, Arial, sans-serif;
}

.lang-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0b1224 0%, #1e293b 50%, #0b1224 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.lang-topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lang-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-pill.is-active {
  color: #0f172a;
  background: linear-gradient(120deg, #38bdf8 0%, #818cf8 55%, #a78bfa 100%);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

@media (max-width: 480px) {
  .lang-pill {
    min-width: 64px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(98deg, #0f2f7c 0%, #1d4ed8 52%, #4f46e5 100%);
  box-shadow: 0 8px 24px rgba(15, 47, 124, 0.3);
}

body.has-langbar .site-header {
  top: 44px;
}

.nav-wrap {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 20px;
}

.nav-links {
  justify-self: center;
  justify-content: center;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand strong {
  font-size: 1.2rem;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(300px, 58vw);
  object-fit: contain;
  display: block;
}

.site-header .brand-logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  /* اللوجو أكبر بدون تكبير الإطار الأبيض */
  height: 64px;
  width: auto;
  max-height: 64px;
  box-sizing: content-box;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-links a:not(.btn) {
  font-weight: 600;
  white-space: nowrap;
}

.nav-order-btn {
  justify-self: end;
}

html[dir="rtl"] .nav-order-btn {
  justify-self: start;
}

@media (max-width: 720px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand order"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .nav-order-btn {
    grid-area: order;
    justify-self: end;
  }

  html[dir="rtl"] .nav-order-btn {
    justify-self: start;
  }

  .nav-links {
    grid-area: nav;
    justify-self: stretch;
    justify-content: center;
    padding-top: 4px;
  }
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* صورة واضحة بالأعلى — النص والبطاقة تحتها بخلفية صلبة */
.hero-showcase {
  width: 100%;
  overflow: hidden;
  background: #0b1224;
  line-height: 0;
  margin-top: 14px;
  margin-bottom: 8px;
}

.hero-showcase__frame {
  width: 100%;
  overflow: hidden;
}

.hero-showcase__img {
  width: 100%;
  height: clamp(260px, 46vw, 520px);
  object-fit: cover;
  /* إظهار العنوان المكتوب على الصورة (أعلى الإطار) */
  object-position: center 18%;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transform-origin: center 22%;
  animation: heroImgReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-intro {
  position: relative;
  z-index: 5;
  background: #ffffff;
  padding: 52px 0 70px;
  margin-top: 0;
  border-top: 3px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.hero-intro .badge,
.hero-intro h1,
.hero-intro .hero-text,
.hero-intro .hero-actions,
.hero-intro .hero-card {
  opacity: 1;
}

.hero-intro h1 {
  color: var(--text);
  max-width: none;
}

.hero-intro .hero-text {
  color: var(--muted);
  max-width: 56ch;
}

.hero-intro .hero-card {
  background: linear-gradient(155deg, #1e3a8a 0%, #1d4ed8 58%, #4338ca 100%);
  border: none;
  box-shadow: 0 14px 36px rgba(30, 64, 175, 0.22);
}

/* الصفحة الرئيسية — ثيم داكن موحّد */
body.page-home {
  background: #070d1a;
  color: #e2e8f0;
}

body.page-home .hero-showcase {
  margin-bottom: 0;
  background: #070d1a;
}

body.page-home .hero-intro {
  background: linear-gradient(180deg, #0b1224 0%, #0f172a 55%, #0f172a 100%);
  padding: 52px 0 56px;
  border: none;
  box-shadow: none;
}

body.page-home .hero-intro .badge {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

body.page-home .hero-intro h1 {
  color: #f8fafc;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

body.page-home .hero-intro .hero-text {
  color: #94a3b8;
}

body.page-home .hero-intro .btn-outline {
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
}

body.page-home .hero-intro .btn-outline:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}

body.page-home .hero-intro .btn-primary {
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
}

body.page-home .hero-intro .hero-card {
  background: linear-gradient(165deg, #1a2332 0%, #121a28 48%, #0c1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.page-home .hero-intro .hero-card h3 {
  color: #f1f5f9;
}

body.page-home .hero-intro .hero-card li {
  color: #cbd5e1;
}

body.page-home .plans-section {
  padding-top: 48px;
  padding-bottom: 0;
  background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0c1220 100%);
}

/* خطّا فايبر + شرارات تحت الباقات */
.fiber-spark {
  width: 100%;
  overflow: hidden;
  background: #070d1a;
  line-height: 0;
}

.fiber-spark__frame {
  position: relative;
  width: 100%;
  min-height: clamp(200px, 38vw, 420px);
  overflow: hidden;
}

.fiber-spark__img {
  width: 100%;
  height: clamp(200px, 38vw, 420px);
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.06);
  animation: fiberImgPulse 6s ease-in-out infinite alternate;
}

.fiber-spark__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 28% 45% at 50% 50%,
    rgba(56, 189, 248, 0.45) 0%,
    rgba(14, 165, 233, 0.12) 35%,
    transparent 68%
  );
  animation: fiberGlowPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.fiber-spark__sparks {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow:
    0 0 8px #38bdf8,
    0 0 16px #0ea5e9,
    0 0 24px rgba(56, 189, 248, 0.6);
  animation: sparkFly 1.1s ease-out infinite;
  opacity: 0;
}

.spark:nth-child(1) { animation-delay: 0s; --sx: -1; --sy: -0.3; }
.spark:nth-child(2) { animation-delay: 0.12s; --sx: 0.8; --sy: -0.9; }
.spark:nth-child(3) { animation-delay: 0.24s; --sx: -0.6; --sy: 0.9; }
.spark:nth-child(4) { animation-delay: 0.08s; --sx: 1; --sy: 0.2; }
.spark:nth-child(5) { animation-delay: 0.35s; --sx: -0.9; --sy: -0.5; }
.spark:nth-child(6) { animation-delay: 0.18s; --sx: 0.3; --sy: 1; }
.spark:nth-child(7) { animation-delay: 0.42s; --sx: -0.4; --sy: -1; }
.spark:nth-child(8) { animation-delay: 0.05s; --sx: 0.95; --sy: 0.6; }
.spark:nth-child(9) { animation-delay: 0.28s; --sx: -1; --sy: 0.4; }
.spark:nth-child(10) { animation-delay: 0.15s; --sx: 0.5; --sy: -0.7; }
.spark:nth-child(11) { animation-delay: 0.38s; --sx: -0.7; --sy: 0.3; }
.spark:nth-child(12) { animation-delay: 0.22s; --sx: 0.2; --sy: 0.95; }

.spark:nth-child(odd) {
  width: 3px;
  height: 3px;
  background: #bae6fd;
}

.fiber-spark__cables {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 720px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  pointer-events: none;
}

.fiber-cable {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: fiberDraw 2.4s ease-in-out infinite alternate;
}

.fiber-cable--right {
  animation-delay: 0.15s;
}

.fiber-hit {
  fill: rgba(56, 189, 248, 0.35);
  filter: drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 28px #0ea5e9);
  animation: fiberHitPulse 1.2s ease-in-out infinite;
}

@keyframes fiberImgPulse {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes fiberGlowPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sparkFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--sx, 1) * 70px), calc(var(--sy, -1) * 70px)) scale(0.1);
  }
}

@keyframes fiberDraw {
  0% {
    stroke-dashoffset: 380;
  }
  45% {
    stroke-dashoffset: 0;
  }
  55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 380;
  }
}

@keyframes fiberHitPulse {
  0%,
  100% {
    r: 22;
    opacity: 0.5;
  }
  50% {
    r: 32;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fiber-spark__img,
  .fiber-spark__glow,
  .spark,
  .fiber-cable,
  .fiber-hit {
    animation: none;
  }

  .fiber-spark__img {
    transform: scale(1);
  }

  .fiber-cable {
    stroke-dashoffset: 0;
  }
}

body.page-home .about-section {
  background: linear-gradient(180deg, #0c1220 0%, #0a101c 100%);
  padding-top: 56px;
  padding-bottom: 72px;
}

body.page-home .about-section .info-card {
  background: linear-gradient(165deg, #1a2332 0%, #121a28 48%, #0c1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

body.page-home .about-section .info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.28);
}

body.page-home .about-section .info-card h3 {
  color: #f1f5f9;
  margin-top: 0;
}

body.page-home .about-section .info-card p {
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.6;
}

body.page-home .info-card__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.page-home .info-card__list li {
  position: relative;
  padding: 8px 12px 8px 0;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 3px solid rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.35);
  border-radius: 8px 0 0 8px;
}

html[dir="ltr"] body.page-home .info-card__list li {
  padding: 8px 0 8px 12px;
  border-right: none;
  border-left: 3px solid rgba(56, 189, 248, 0.55);
  border-radius: 0 8px 8px 0;
}

body.page-home .info-card--security h3 {
  color: #38bdf8;
}

body.page-home .contact-section {
  background: linear-gradient(180deg, #0a101c 0%, #070d1a 100%);
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
}

body.page-home .contact-title {
  text-align: center;
  margin: 0 0 24px;
  color: #f8fafc;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

body.page-home .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  body.page-home .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

body.page-home .contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(165deg, #1a2332 0%, #121a28 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.page-home .contact-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}

body.page-home .contact-card__lbl {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.page-home .contact-card__val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.35;
}

body.page-home .contact-card__val--email {
  font-size: 1rem;
  word-break: break-all;
}

body.page-home .contact-card__sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 2px;
}

body.page-home .contact-card--static {
  cursor: default;
  text-align: center;
}

body.page-home .contact-card--static:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.18);
}

body.page-home .site-footer {
  background: #070d1a;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}

body.page-home .site-footer p {
  color: #64748b;
  margin: 0;
}

@keyframes heroImgReveal {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase__img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #dbe7ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.hero-text {
  color: var(--muted);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(155deg, #1e3a8a 0%, #1d4ed8 58%, #4338ca 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  margin-bottom: 8px;
}

/* ——— باقات: مستويات داكنة (Level style) ——— */
.plans-section {
  background: linear-gradient(180deg, #070d1a 0%, #0f172a 48%, #111827 100%);
  color: #e2e8f0;
  padding-top: 72px;
  padding-bottom: 80px;
}

.plans-section .plans-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.plans-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #38bdf8;
}

.plans-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  color: #f8fafc;
}

.plans-sub {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.55;
}

.plans-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  overflow: visible;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.plan-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, #1a2332 0%, #121a28 42%, #0c1220 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}

.plan-tier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #334155 0%, #64748b 100%);
  opacity: 0.7;
}

.plan-tier--l1::before {
  background: linear-gradient(90deg, #475569 0%, #94a3b8 100%);
}

.plan-tier--l2::before {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 55%, #22d3ee 100%);
}

.plan-tier--l3::before {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 55%, #fde68a 100%);
}

.plan-tier:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.12);
}

.plan-tier--featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(165deg, #1e2a42 0%, #152238 40%, #0d1528 100%);
  box-shadow:
    0 24px 56px rgba(14, 165, 233, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding-top: 44px;
  overflow: visible;
}

.plan-tier__badge {
  position: absolute;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #0f172a;
  background: linear-gradient(120deg, #38bdf8 0%, #a5f3fc 100%);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.nav-order-btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.plan-tier__head {
  margin-bottom: 16px;
}

.plan-tier__level {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.plan-tier__level-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.plan-tier__level-num {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.plan-tier__bars {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
}

.plan-tier__bars span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.5);
}

.plan-tier__bars span.is-on {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.plan-tier--l3 .plan-tier__bars span.is-on {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.plan-tier__tier-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.plan-tier__gauge {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  margin: 0 0 18px;
}

.plan-tier__ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid rgba(51, 65, 85, 0.8);
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.12) 0%, transparent 62%);
  box-shadow: inset 0 0 40px rgba(14, 165, 233, 0.08);
}

.plan-tier--l2 .plan-tier__ring {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    inset 0 0 40px rgba(14, 165, 233, 0.15),
    0 0 28px rgba(14, 165, 233, 0.2);
}

.plan-tier--l3 .plan-tier__ring {
  border-color: rgba(251, 191, 36, 0.4);
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.1) 0%, transparent 62%);
  box-shadow:
    inset 0 0 40px rgba(251, 191, 36, 0.1),
    0 0 24px rgba(251, 191, 36, 0.12);
}

.plan-tier__speed {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
}

.plan-tier__speed-value {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
}

.plan-tier--l3 .plan-tier__speed-value {
  text-shadow: 0 0 32px rgba(251, 191, 36, 0.3);
}

.plan-tier__speed-unit {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.plan-tier__body {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  text-align: center;
}

.plan-tier__package {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #e2e8f0;
}

.plan-tier__price {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.plan-tier__cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(100, 116, 139, 0.45);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plan-tier__cta:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.55);
  color: #fff;
}

.plan-tier__cta--primary {
  color: #0f172a;
  border-color: transparent;
  background: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.plan-tier__cta--primary:hover {
  color: #0f172a;
  background: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 100%);
}

/* بطاقات قديمة (صفحة الطلب) */
.plan-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(23, 34, 59, 0.08);
}

.plan-card {
  padding: 12px 10px 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: grid;
  gap: 6px;
  text-align: center;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(23, 34, 59, 0.14);
}

.plan-card.featured {
  border: 2px solid #5b2dff;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
}

.plan-top {
  margin: 2px 0 4px;
  padding: 8px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: radial-gradient(120% 120% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.plan-speed {
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.4px;
  background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-speed-unit {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #334155;
}

.plan-card h3 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.price {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 900;
  color: #0f172a;
}

.plan-card .btn {
  padding: 7px 12px;
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  margin-bottom: 4px;
  background: linear-gradient(120deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.speed {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}

.cards-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer {
  border-top: 1px solid #d7e0ff;
  background: #edf2ff;
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23, 34, 59, 0.12);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.resume-wrap {
  border: 1px solid #d9e3ff;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.ref-badge {
  margin: 0;
  font-weight: 700;
  color: #1e3a8a;
}

.resume-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-ref-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(520px, 100%);
}

@media (max-width: 720px) {
  .resume-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .resume-ref-inline {
    width: 100%;
  }

  .resume-controls > .btn {
    width: 100%;
  }
}

.otp-card {
  border: 1px solid #d9e3ff;
  border-radius: 14px;
  background: #fbfdff;
  padding: 16px;
}

.otp-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.otp-phone {
  font-weight: 800;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
  direction: ltr;
}

.otp-digit {
  width: 46px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 34, 59, 0.08);
  direction: ltr;
  unicode-bidi: plaintext;
}

.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

@media (max-width: 520px) {
  .otp-digit {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }
}

.steps-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.steps-head--numeric {
  justify-content: center;
  gap: 16px;
  margin: 8px 0 20px;
}

.step-chip {
  background: #e7eeff;
  border: 1px solid #ccd9ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.step-chip--num {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 50%;
}

.step-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.step-panel {
  display: grid;
  gap: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.step-panel.is-active {
  max-height: 2600px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #cfd8f7;
  background: #fbfcff;
  border-radius: 10px;
  padding: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.offer-grid {
  display: grid;
  gap: 14px;
}

.offer-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  text-align: right;
  border: 1px solid #9eb6ff;
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 132px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-choice {
  min-height: 320px;
  padding: 0;
  background: #f7faff;
  border-color: #8fb2ff;
}

.offers-section {
  display: grid;
  gap: 8px;
}

.offers-topline {
  width: fit-content;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.plan-head {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 65%, #1d4ed8 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 10px 12px;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.option-info {
  display: grid;
  gap: 6px;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
}

.option-title,
.option-speed,
.option-price {
  display: block;
}

.option-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.1;
}

.option-speed {
  color: #1e293b;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.option-price {
  width: fit-content;
  background: linear-gradient(120deg, #dbeafe 0%, #c7d2fe 100%);
  color: #1e3a8a;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: auto;
}

.plan-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 14px;
}

.meters-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  direction: ltr;
}

.mini-meter {
  background: #fff;
  border: 1px solid #e2e8ff;
  border-radius: 12px;
  padding: 10px 8px 8px;
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.mini-meter.upload {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
  transform: scale(0.82);
  opacity: 0.92;
}

.mini-meter.download {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  transform: scale(1.06);
}

.meter-arc {
  width: 82px;
  height: 42px;
  border-top-left-radius: 82px;
  border-top-right-radius: 82px;
  border: 7px solid #e7ecfb;
  border-bottom: 0;
  position: relative;
}

.mini-meter.upload .meter-arc {
  border-top-color: #f59e0b;
}

.mini-meter.download .meter-arc {
  border-top-color: #3b82f6;
}

.meter-needle {
  position: absolute;
  width: 3px;
  height: 28px;
  top: 18px;
  background: #334155;
  border-radius: 999px;
  transform-origin: bottom center;
  transform: rotate(var(--needle-rotate));
}

.meter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  position: absolute;
  top: 42px;
}

.meter-value {
  margin-top: 6px;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 900;
}

.mini-meter.upload .meter-value {
  color: #ea580c;
  font-size: 1.1rem;
}

.mini-meter.download .meter-value {
  color: #2563eb;
  font-size: 2.1rem;
}

.meter-label {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
}

.mini-meter.upload .meter-label {
  font-size: 0.7rem;
}

.mini-meter.download .meter-label {
  font-size: 0.86rem;
}

.needle-25 { --needle-rotate: -66deg; }
.needle-50 { --needle-rotate: -62deg; }
.needle-100 { --needle-rotate: -56deg; }
.needle-250 { --needle-rotate: -10deg; }
.needle-500 { --needle-rotate: 18deg; }
.needle-1000 { --needle-rotate: 52deg; }

.plan-info {
  justify-items: center;
  text-align: center;
}

.option-card:hover {
  border-color: #5f85ff;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.2);
}

.option-card.active {
  border-color: #1d4ed8;
  background: linear-gradient(145deg, #eef4ff 0%, #dbeafe 100%);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28);
}

.option-card.active .option-price {
  background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 100%);
  border-color: transparent;
  color: #fff;
}

.agreement-box {
  border: 1px solid #d7e0ff;
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px;
  color: #334155;
}

.summary-box {
  display: grid;
  gap: 10px;
}

.summary-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1e3a8a;
}

.summary-grid {
  display: grid;
  gap: 8px;
}

.summary-grid div {
  background: #ffffff;
  border: 1px solid #dbe5ff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.96rem;
}

.payment-box {
  display: grid;
  gap: 8px;
}

.payment-total {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  border: 1px solid #bfd0ff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: center;
}

.payment-total-label {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
}

.payment-total-amount {
  font-size: 2.2rem;
  font-weight: 1000;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.payment-monthly-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.payment-total-formula {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
}

.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1px solid #dbe5ff;
  border-radius: 10px;
  padding: 10px 12px;
}

.billing-mode-wrap {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.billing-mode-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
}

.billing-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #eef3ff;
  border: 1px solid #dbe5ff;
  border-radius: 12px;
}

.billing-mode-option {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
}

.billing-mode-option.is-active {
  background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 100%);
  color: #fff;
}

.billing-mode-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.billing-mode-locked-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.92rem;
  font-weight: 700;
}

.payment-ref-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.28);
  text-align: center;
}

.payment-ref-note-label {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.payment-ref-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: 0.05em;
}

/* Default: hide "first payment" row (shown only on router purchase) */
#firstPaymentRow {
  display: none;
}

/* Default: hide first payment details in agreement step (shown only on router purchase) */
#firstPaymentSummaryRow {
  display: none;
}

.payment-line strong {
  color: #1e3a8a;
  font-size: 1.05rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe5ff;
  background: #f8fbff;
}

.checkbox input {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-red input {
  border: 2px solid #ef4444;
}

.checkbox span {
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.3;
}

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

.card-type {
  min-height: 18px;
  margin: 4px 2px 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-type.visa {
  color: #1d4ed8;
}

.card-type.mastercard {
  color: #ea580c;
}

.card-type.amex {
  color: #0f766e;
}

.field-error {
  min-height: 18px;
  margin: 4px 2px 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
}

.result {
  min-height: 20px;
  margin: 0;
  font-weight: 700;
}

.result.error {
  color: var(--danger);
}

.result.success {
  color: var(--success);
}

.ltr-input {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.success-screen {
  margin-top: 18px;
}

.success-card {
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(23, 34, 59, 0.14);
  padding: 22px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.success-badge {
  display: inline-block;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--success);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

.success-ref {
  margin-top: 8px;
  font-size: 2.1rem;
  font-weight: 1000;
  letter-spacing: 1px;
  color: #0f172a;
}

.success-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero-grid,
  .cards-grid,
  .field-grid.two,
  .offer-grid.three,
  .offer-grid.two {
    grid-template-columns: 1fr;
  }

  .plan-speed {
    font-size: 2.05rem;
  }
}

@media (max-width: 1100px) {
  .option-price {
    margin-right: auto;
    margin-left: auto;
  }
}

.muted {
  color: var(--muted);
}

.auth-section {
  padding-top: 40px;
}

.auth-card h2 {
  margin-top: 0;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* Admin home dashboard */
.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  position: sticky;
  top: 84px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.admin-side-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.admin-side-title {
  font-weight: 1000;
  letter-spacing: 0.2px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  color: var(--text);
}

.admin-nav-item:hover {
  border-color: var(--border);
  background: #f8faff;
}

.admin-nav-item.is-active {
  background: rgba(0, 87, 255, 0.08);
  border-color: rgba(0, 87, 255, 0.22);
  color: var(--primary);
}

.admin-nav-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.admin-main {
  min-width: 0;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.admin-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 1000;
  border: 1px solid var(--border);
  background: #fff;
}
.admin-pill.ok {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--success);
}
.admin-pill.bad {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--danger);
}

.admin-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 1100px) {
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.admin-kpi-label {
  font-weight: 900;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-kpi-value {
  margin-top: 6px;
  font-size: 1.9rem;
  font-weight: 1100;
  color: #0f172a;
  letter-spacing: 0.4px;
}

.admin-kpi-sub {
  margin-top: 2px;
  font-size: 0.85rem;
}

.admin-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-grid.admin-grid-3 {
  grid-template-columns: 1.25fr 0.85fr 1.1fr;
}
@media (max-width: 1200px) {
  .admin-grid.admin-grid-3 {
    grid-template-columns: 1fr;
  }
}

.admin-table-scroll {
  overflow: auto;
}

.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-mini-table th,
.admin-mini-table td {
  text-align: right;
  padding: 10px 10px;
  border-bottom: 1px solid #eef2ff;
  white-space: nowrap;
}

.admin-mini-table th {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 1000;
  background: #fbfdff;
  position: sticky;
  top: 0;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.admin-metric {
  border: 1px solid #dbe5ff;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
}

.admin-metric-label {
  font-weight: 900;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-metric-value {
  margin-top: 6px;
  font-weight: 1100;
  font-size: 1.35rem;
  color: #0f172a;
}

.admin-metric-sub {
  margin-top: 2px;
  font-size: 0.85rem;
}

.admin-actions {
  display: grid;
  gap: 10px;
}

.admin-action {
  display: block;
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}
.admin-action:hover {
  background: #f6f9ff;
}
.admin-action-title {
  font-weight: 1000;
}
.admin-action-sub {
  margin-top: 2px;
  font-size: 0.9rem;
}

.orders-customer-list {
  margin-top: 24px;
}

.order-customer-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(15, 47, 124, 0.08);
  border: 1px solid var(--border);
}

.order-customer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-soft {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8efff;
  color: var(--primary-dark);
  font-size: 0.85rem;
  margin-inline-start: 8px;
}

.order-customer-body p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.order-customer-edit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-select,
.input-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}

.input-textarea {
  resize: vertical;
  min-height: 88px;
}

.admin-body .site-header .brand {
  color: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 47, 124, 0.06);
}

.admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-text {
  width: min(520px, 100%);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
}

@media (max-width: 920px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-table-scroll {
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: #f0f4ff;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #f8faff;
}

.admin-edit-heading {
  margin: 8px 0 16px;
  font-size: 1.1rem;
}

.admin-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-order-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 47, 124, 0.06);
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.admin-order-meta p {
  margin: 4px 0;
  font-size: 0.92rem;
}

.admin-order-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}
