/* =========================================================
   FAJR COUNTER NETWORK — BILINGUAL PRE-DAWN UI (ZERO SCROLLBARS)
   ========================================================= */

:root {
  --bg-deep: #050914;
  --bg-sidebar: #070d1c;
  --bg-card: rgba(13, 21, 39, 0.84);
  --bg-card-solid: #0d1527;
  --bg-input: #080e1d;

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(16, 229, 178, 0.36);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --teal: #10e5b2;
  --teal-deep: #064e3b;
  --emerald: #0ea67d;
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.16);
  --teal-soft: rgba(16, 229, 178, 0.14);

  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar-width: 292px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Sleek Subtle Global Scrollbar (No Ugly White Bars) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

/* Ambient Background */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(115px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(16, 229, 178, 0.17), transparent 70%);
}

.bg-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -150px;
  left: 18%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.12), transparent 70%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 24px 24px, #ffffff 1px, transparent 0),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.4) 50%, transparent 52%);
  background-size: 48px 48px;
}

/* App Shell */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(7, 13, 28, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand-compact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* =========================================================
   SIDEBAR — EXACT INTERACTIVE BILINGUAL STYLE (NO SCROLLBAR)
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 14px;
  z-index: 70;
  transition: transform 0.28s ease;
  overflow: hidden;
}

.sidebar-top {
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 6px 12px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(16, 229, 178, 0.2), rgba(245, 185, 66, 0.24));
  border: 1px solid rgba(16, 229, 178, 0.4);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.logo-badge.large {
  width: 40px;
  height: 40px;
}

.logo-badge svg {
  width: 20px;
  height: 20px;
}

.brand-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-ar {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 0.76rem;
  color: var(--teal);
  font-weight: 700;
}

/* ESP32 Cloud Sync v2.4 Live Pill */
.sync-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(12, 24, 42, 0.85);
  border: 1px solid rgba(16, 229, 178, 0.18);
  font-size: 0.78rem;
}

.sync-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}

.sync-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.sync-version {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.76rem;
}

/* Navigation List (Scrollbar Completely Hidden & Compact Fit) */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-emerald { color: #10e5b2; }
.icon-gold    { color: #f5b942; }
.icon-cyan    { color: #22d3ee; }
.icon-amber   { color: #fbbf24; }
.icon-slate   { color: #94a3b8; }
.icon-purple  { color: #c084fc; }
.icon-white   { color: #ffffff; }

.nav-en {
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-ar {
  font-family: "Cairo", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #7c8ea8;
  white-space: nowrap;
  flex-shrink: 0;
}

.ar-gold {
  color: var(--gold);
}

.nav-item:hover:not(.nav-order-cta) {
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
}

/* Active Item with Glowing Left Emerald Bar */
.nav-item.active:not(.nav-order-cta) {
  background: linear-gradient(90deg, rgba(16, 229, 178, 0.14), rgba(16, 229, 178, 0.03));
  border-color: rgba(16, 229, 178, 0.22);
  color: var(--teal);
}

.nav-item.active:not(.nav-order-cta)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.nav-item.active:not(.nav-order-cta) .nav-ar {
  color: #a7f3d0;
}

/* Highlighted Request System Order CTA Button */
.nav-order-cta {
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.26);
}

.nav-order-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.38);
}

.nav-order-cta.active {
  box-shadow: 0 0 0 2px #ffffff, 0 10px 28px rgba(16, 229, 178, 0.45);
}

.cta-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.order-ar-badge {
  font-family: "Cairo", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(4, 52, 40, 0.78);
  color: var(--gold);
  flex-shrink: 0;
}

/* Bottom Left Advice Card */
.sidebar-footer {
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.advice-card {
  background: linear-gradient(145deg, rgba(16, 28, 52, 0.92), rgba(10, 18, 36, 0.92));
  border: 1px solid rgba(16, 229, 178, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.advice-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.advice-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-whatsapp-sidebar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp-sidebar svg {
  width: 16px;
  height: 16px;
}

.btn-whatsapp-sidebar:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.74);
  z-index: 65;
}

/* =========================================================
   MAIN CONTENT & FIXED-PROPORTION CARDS
   ========================================================= */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 28px 34px 56px;
  max-width: 1480px;
}

.page-section {
  display: none;
  animation: fadeUp 0.25s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 22px;
}

.section-header.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.teal { color: var(--teal); }
.gold { color: var(--gold); }

.gradient-text {
  background: linear-gradient(90deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #06b893);
  color: #031512;
  box-shadow: 0 8px 22px rgba(16, 229, 178, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16, 229, 178, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border-color: rgba(16, 229, 178, 0.45);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal-soft);
}

.btn-sm { padding: 8px 13px; font-size: 0.8rem; }
.btn-lg { padding: 13px 20px; font-size: 0.95rem; }
.full-width { width: 100%; }

/* Hero */
.hero-banner {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(14, 24, 48, 0.94), rgba(8, 14, 30, 0.94)),
    radial-gradient(circle at top right, rgba(245, 185, 66, 0.18), transparent);
  border: 1px solid rgba(16, 229, 178, 0.22);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero-copy p {
  color: var(--text-muted);
  margin: 12px 0 20px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* TFT Preview Card */
.tft-sim-card {
  background: #060c1a;
  border: 2px solid #223254;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 0 22px rgba(16, 229, 178, 0.08);
}

.tft-sim-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-online { color: var(--teal); }
.tft-sim-body { padding: 18px 4px; }
.tft-sim-body small { color: var(--text-dim); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }
.tft-sim-body h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.tft-name { color: var(--teal); font-weight: 700; font-size: 1.04rem; }
.tft-dua { color: var(--gold); font-weight: 600; margin-top: 4px; }

.tft-sim-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1.15; }
.stat-sub { font-size: 0.77rem; color: var(--text-dim); }

/* Split Layouts */
.dashboard-split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.teal-bg { background: rgba(16, 229, 178, 0.15); }
.gold-bg { background: rgba(245, 185, 66, 0.16); }
.blue-bg { background: rgba(56, 189, 248, 0.16); }
.purple-bg { background: rgba(168, 85, 247, 0.16); }

.feature-mini h4 { font-size: 0.94rem; margin-bottom: 5px; }
.feature-mini p { font-size: 0.82rem; color: var(--text-muted); }

/* Activity Feed */
.live-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.activity-list { display: flex; flex-direction: column; gap: 10px; }

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.activity-user { display: flex; align-items: center; gap: 10px; }

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea67d, #2563eb);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.activity-meta strong { display: block; font-size: 0.88rem; }
.activity-meta span { font-size: 0.76rem; color: var(--text-muted); }

.streak-badge {
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Blessing of Fajr */
.quran-banner {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(16, 229, 178, 0.09));
  border: 1px solid rgba(245, 185, 66, 0.34);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  margin-bottom: 20px;
}

.arabic-verse {
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  direction: rtl;
}

.verse-translation { max-width: 780px; margin: 0 auto 10px; font-size: 0.96rem; }
.verse-ref { font-size: 0.82rem; color: var(--teal); font-weight: 700; }

.hadith-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.hadith-card { display: flex; flex-direction: column; gap: 10px; }

.hadith-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.arabic-text {
  font-family: "Cairo", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold);
  direction: rtl;
  text-align: right;
}

.english-text { font-size: 0.9rem; color: var(--text-muted); }

.athkar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dhikr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dhikr-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.dhikr-card.completed { border-color: var(--teal); background: rgba(16, 229, 178, 0.1); }
.dhikr-ar { font-family: "Cairo", sans-serif; font-size: 1.02rem; font-weight: 700; direction: rtl; text-align: right; }
.dhikr-en { font-size: 0.8rem; color: var(--text-muted); }
.dhikr-counter-bar { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; font-size: 0.84rem; }

/* Tables */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 260px;
}

.search-box svg { width: 18px; height: 18px; color: var(--text-muted); }

.search-box input,
.inline-search {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.inline-search {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  width: 190px;
}

.table-card { padding: 10px 18px 18px; }
.table-responsive { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.89rem; }
.data-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

.progress-wrap { width: 120px; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), #38bdf8); border-radius: 999px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.status-pill.online { background: var(--teal-soft); color: var(--teal); }
.status-pill.offline { background: var(--gold-soft); color: var(--gold); }

.selector-group { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.selector-group label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.styled-select {
  background: var(--bg-card-solid);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.mosque-detail-panel { display: flex; flex-direction: column; gap: 12px; }
.detail-row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 0.88rem; }

/* =========================================================
   ORDER PAGE — MOSQUES, OFFICES, COMPANIES & FEEDBACK
   ========================================================= */
.order-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.order-main { display: flex; flex-direction: column; gap: 20px; }
.form-card { display: flex; flex-direction: column; gap: 16px; }

.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.step-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal); }
.step-icon svg { width: 22px; height: 22px; }

/* Organization Type Selector Pills */
.org-type-wrap { display: flex; flex-direction: column; gap: 10px; }
.org-type-label { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }

.org-type-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.org-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.org-pill:hover {
  border-color: rgba(16, 229, 178, 0.35);
  color: var(--text-main);
}

.org-pill.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-muted); }

.input-group input,
.input-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  resize: none;
  transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 229, 178, 0.12);
}

.feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hardware Product Cards */
.product-list { display: flex; flex-direction: column; gap: 14px; }

.hardware-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(7, 12, 25, 0.88);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.hardware-item:hover {
  border-color: rgba(16, 229, 178, 0.35);
}

.hardware-thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #060b18;
  cursor: pointer;
  flex-shrink: 0;
}

.hardware-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hardware-thumb:hover img { transform: scale(1.08); }

.zoom-hint {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(5, 9, 20, 0.85);
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hardware-thumb:hover .zoom-hint { opacity: 1; }

.hardware-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.hardware-info h4 { font-size: 0.98rem; font-weight: 700; }
.hardware-info p { font-size: 0.82rem; color: var(--text-muted); }

.price-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.teal-pill { background: var(--teal-soft); color: var(--teal); }
.gold-pill { background: var(--gold-soft); color: var(--gold); }

/* Quantity Controls */
.qty-controls { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #16213a;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.qty-btn:hover { background: #223154; border-color: var(--teal); }

.qty-input {
  width: 70px;
  height: 38px;
  border-radius: 10px;
  background: #060b16;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.teal-input { border: 1px solid rgba(16, 229, 178, 0.5); color: var(--teal); }
.gold-input { border: 1px solid rgba(245, 185, 66, 0.55); color: var(--gold); }

/* Sticky Summary */
.order-summary-col { position: sticky; top: 22px; }
.summary-card { display: flex; flex-direction: column; gap: 15px; border-color: rgba(16, 229, 178, 0.28); }
.summary-lines { display: flex; flex-direction: column; gap: 11px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.summary-row strong { color: var(--text-main); }
.summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem; font-weight: 700; }
.summary-total strong { font-size: 1.7rem; color: var(--teal); }
.summary-footnote { font-size: 0.77rem; color: var(--text-dim); text-align: center; }

/* Leaderboards, Settings, FAQ */
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.leader-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.leader-left { display: flex; align-items: center; gap: 12px; }
.rank-badge { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, 0.06); }
.rank-1 { background: rgba(245, 185, 66, 0.25); color: var(--gold); }
.rank-2 { background: rgba(203, 213, 225, 0.2); color: #e2e8f0; }
.rank-3 { background: rgba(251, 146, 60, 0.2); color: #fb923c; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border-radius: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }

.switch { position: relative; display: inline-block; width: 46px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #253352; border-radius: 999px; transition: 0.25s; }
.slider::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.25s; }
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(21px); }

.steps-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.step-box { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.step-box p { font-size: 0.84rem; color: var(--text-muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 13px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.faq-question { width: 100%; padding: 14px 16px; background: transparent; border: none; color: var(--text-main); font-family: inherit; font-size: 0.9rem; font-weight: 700; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-answer { display: none; padding: 0 16px 15px; color: var(--text-muted); font-size: 0.86rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--teal); }

.contact-card { display: flex; flex-direction: column; gap: 15px; }
.contact-details { display: flex; flex-direction: column; gap: 10px; }
.contact-line { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 0.86rem; }

/* Modals & Toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3, 7, 18, 0.84); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }

.lightbox-content { position: relative; max-width: 500px; width: 100%; background: var(--bg-card-solid); border: 1px solid var(--border-strong); border-radius: 20px; padding: 16px; text-align: center; }
.lightbox-content img { width: 100%; border-radius: 14px; display: block; margin-bottom: 12px; }
.lightbox-content p { font-weight: 700; color: var(--teal); }

.modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 1.4rem; cursor: pointer; }

.modal-card { max-width: 480px; width: 100%; background: var(--bg-card-solid); border: 1px solid var(--border-strong); border-radius: 22px; padding: 26px; text-align: center; }
.modal-check { width: 54px; height: 54px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }
.receipt-box { text-align: left; background: var(--bg-input); border: 1px solid var(--border); border-radius: 14px; padding: 15px; margin: 15px 0 18px; font-size: 0.86rem; line-height: 1.65; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

.toast { position: fixed; bottom: 24px; right: 24px; z-index: 120; background: #0f1b33; border: 1px solid var(--teal); color: var(--text-main); padding: 12px 18px; border-radius: 12px; font-size: 0.88rem; font-weight: 600; opacity: 0; transform: translateY(14px); pointer-events: none; transition: 0.25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE — LAPTOPS, TABLETS & PORTRAIT PHONES
   ========================================================= */
@media (max-width: 1180px) {
  .stats-grid, .steps-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner, .dashboard-split, .order-layout, .settings-grid { grid-template-columns: 1fr; }
  .order-summary-col { position: static; }
  .athkar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-type-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .mobile-header { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; padding: 18px 14px 48px; }
  .hero-banner { padding: 20px 16px; }
  .hadith-grid, .feature-mini-grid, .form-grid, .athkar-grid, .steps-showcase { grid-template-columns: 1fr; }
  .hardware-item { grid-template-columns: 76px 1fr; gap: 12px; }
  .hardware-thumb { width: 76px; height: 76px; }
  .qty-controls { grid-column: 1 / -1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .stats-grid, .org-type-pills { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}