/* ============================================================
   متجر بندر — نظام التصميم المضيء الفاخر (Premium Gulf SaaS & E-Commerce)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Fira+Code:wght@500;700&display=swap');

:root {
  /* ألوان المتجر الرئيسية الفاخرة */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --surface-card: #ffffff;
  
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  
  --teal-600: #0284c7;
  --teal-500: #0ea5e9;
  --teal-400: #38bdf8;
  --teal-light: #f0f9ff;
  --teal-border: #bae6fd;
  
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-light: #fffbebf0;
  --gold-border: #fde68a;

  --ink-primary: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #94a3b8;
  
  --ok-color: #047857;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  
  --danger-color: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --info-color: #0369a1;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;
  
  --border-line: #e2e8f0;
  --border-focus: #0ea5e9;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-gold: 0 6px 20px rgba(217, 119, 6, 0.25);
  --shadow-teal: 0 6px 20px rgba(14, 165, 233, 0.25);
}

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

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--ink-primary);
  direction: rtl;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--teal-500);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================================
   الترويسة الرئيسية (Top Header Navigation)
   ============================================================ */
.topbar {
  background: #ffffff;
  color: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-line);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.3px;
  transition: transform 0.2s ease;
}
.brand:hover {
  color: var(--navy-900);
  text-decoration: none;
  transform: translateY(-1px);
}

.brand img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.brand-tag {
  background: var(--navy-900);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-inline-start: 6px;
  letter-spacing: 0.3px;
}

.topnav {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   الأزرار (Buttons System)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #1e1400;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: #f1f5f9;
  color: var(--navy-800);
  border-color: var(--border-line);
}
.btn-ghost:hover {
  background: #e2e8f0;
  color: var(--navy-900);
  text-decoration: none;
}

.btn-plain {
  background: #ffffff;
  color: var(--navy-800);
  border-color: var(--border-line);
  box-shadow: var(--shadow-sm);
}
.btn-plain:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--navy-900);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-sm { padding: 7px 15px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }

/* ============================================================
   قسم الهيرو الجذاب (Hero Section Layout)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 45%, #fffbebf0 100%);
  border-bottom: 1px solid var(--border-line);
  padding: 60px 0;
  position: relative;
}

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

.hero-content { text-align: right; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--teal-border);
  color: var(--teal-600);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 17.5px;
  color: var(--navy-700);
  margin: 0 0 28px;
  line-height: 1.75;
  font-weight: 500;
}

.hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--navy-800);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero-feat-item svg {
  width: 16px;
  height: 16px;
  color: var(--teal-600);
  flex-shrink: 0;
}

/* بطاقة الهيرو البصرية التفاعلية بالـ HTML/CSS */
.hero-visual-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-line);
  overflow: hidden;
  text-align: right;
}

.visual-card-header {
  background: #f8fafc;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.visual-dots span:nth-child(1) { background: #ef4444; }
.visual-dots span:nth-child(2) { background: #f59e0b; }
.visual-dots span:nth-child(3) { background: #10b981; }

.visual-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy-700);
}

.visual-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.visual-stat-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.visual-stat-box.stat-green {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-color);
}

.visual-stat-box.stat-blue {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-color);
}

.stat-icon { font-size: 22px; flex-shrink: 0; }
.stat-title { font-weight: 800; font-size: 13.5px; margin-bottom: 2px; }
.stat-sub { font-size: 11.5px; color: var(--navy-600); }

.visual-info-box {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.info-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--gold-600);
  margin-bottom: 4px;
}

.info-desc {
  font-size: 12px;
  color: var(--navy-700);
  line-height: 1.5;
}

/* ============================================================
   تصفية المجموعات والتصنيفات (Group Tabs Bar)
   ============================================================ */
.catalog-header {
  margin: 40px 0 24px;
}

.group-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

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

.group-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  color: var(--navy-700);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.group-tab-btn:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  background: var(--teal-light);
}

.group-tab-btn.active {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  border-color: var(--teal-600);
  color: #ffffff;
  box-shadow: var(--shadow-teal);
}

/* ============================================================
   شبكة كروت المنتجات الجذابة (Product Cards Showcase)
   ============================================================ */
main { flex: 1; padding-bottom: 60px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-interactive:hover {
  transform: translateY(-5px);
}

.card .body { padding: 24px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
}

.card h4 {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
}

.muted { color: var(--ink-muted); font-size: 14px; }

.price {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}

/* الشارات والبادجات (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.badge-ok { background: var(--ok-bg); color: var(--ok-color); border: 1px solid var(--ok-border); }
.badge-wait { background: var(--gold-light); color: var(--gold-600); border: 1px solid var(--gold-border); }
.badge-bad { background: var(--danger-bg); color: var(--danger-color); border: 1px solid var(--danger-border); }
.badge-info { background: var(--info-bg); color: var(--info-color); border: 1px solid var(--info-border); }
.badge-dark { background: var(--navy-900); color: #ffffff; }

/* ============================================================
   تصميم كروت المنتجات البرمجية (Software Product Card)
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-cover {
  position: relative;
  height: 190px;
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-cover img {
  transform: scale(1.06);
}

.product-group-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffffff;
  color: var(--navy-900);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 6px;
}

.product-tagline {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  min-height: 44px;
}

.product-tech-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tech-spec-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-700);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.product-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border-line);
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.pkg-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-md);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pkg-item-btn:hover {
  border-color: var(--teal-500);
  background: var(--teal-light);
  color: var(--teal-600);
  transform: translateX(-2px);
}

.pkg-device-tag {
  font-size: 11.5px;
  font-weight: 800;
  background: #e2e8f0;
  color: var(--navy-800);
  padding: 2px 8px;
  border-radius: 6px;
  margin-inline-start: 6px;
}

.pkg-price-tag {
  font-weight: 900;
  color: var(--navy-900);
  font-size: 15px;
}

/* ============================================================
   عناوين الأقسام والتنبيهات المصورة (Section Headers)
   ============================================================ */
.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy-900);
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  border-radius: 4px;
}

/* الإعلانات المصورة */
.ad-banner {
  background: linear-gradient(135deg, #ffffff, var(--teal-light));
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.ad-banner img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
}

.ad-badge {
  background: var(--teal-500);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ============================================================
   قسم المميزات والمجموعات المصور (Platform Feature Boxes)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 36px 0;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: right;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-box:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--teal-light);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--teal-border);
}

.feature-box h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy-900);
}

.feature-box p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.65;
}

/* خطوات الشراء والتفعيل */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 36px;
  font-weight: 900;
  color: #cbd5e1;
  line-height: 1;
}

.step-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--navy-900);
}

.step-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   النماذج وحقول الإدخال (Light Inputs)
   ============================================================ */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-800);
}

.input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  background: #ffffff;
  color: var(--navy-900);
  transition: all 0.2s ease;
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.input::placeholder { color: var(--ink-subtle); }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }

/* ============================================================
   الجداول الفاتحة (Light Tables)
   ============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: right;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-line);
}

th {
  background: #f8fafc;
  color: var(--navy-800);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

td {
  font-size: 14px;
  color: var(--ink-primary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f8fafc; }

/* ============================================================
   النوافذ التفاعلية الفاتحة (Light Modals & Dialogs)
   ============================================================ */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-back.open { display: flex; opacity: 1; }

.modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 490px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  border: 1px solid var(--border-line);
}

.modal-back.open .modal { transform: translateY(0); }

.modal h2 {
  margin: 0 0 18px;
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 800;
}

.close-x {
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 24px;
  line-height: 1;
  border: 0;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.close-x:hover { background: #e2e8f0; color: var(--navy-900); }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 14px 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-err { background: var(--danger-bg); color: var(--danger-color); border: 1px solid var(--danger-border); }
.alert-ok { background: var(--ok-bg); color: var(--ok-color); border: 1px solid var(--ok-border); }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   التذييل الفاتح (Footer)
   ============================================================ */
.footer {
  margin-top: auto;
  background: var(--navy-900);
  color: #94a3b8;
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--teal-400); }

/* ============================================================
   شريط الحساب الداخلي (Account Sidebar Layout)
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.side {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.side-title {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-subtle);
  text-transform: uppercase;
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--navy-700);
  font-weight: 700;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.side a:hover {
  background: var(--teal-light);
  color: var(--teal-600);
  text-decoration: none;
}

.side a.active {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #ffffff;
  box-shadow: var(--shadow-teal);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-size: 34px; font-weight: 900; color: var(--navy-900); line-height: 1; }

.key-box {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  letter-spacing: 0.5px;
}

.hidden { display: none !important; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { text-align: center; }
  .hero-features { justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .topbar .container { height: auto; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .topnav { width: 100%; justify-content: flex-end; }
  .side { position: static; }
}
