/* ===================================================================
   Nawafeth Web — app.css  v2.0
   Modern 2026 Responsive Design System — RTL
   =================================================================== */

/* ──────────── CSS Custom Properties (Theme) ──────────── */
:root {
  /* Brand */
  --color-primary: #673AB7;
  --color-primary-dark: #512DA8;
  --color-primary-light: #E8DEF8;
  --color-primary-subtle: rgba(103, 58, 183, 0.06);
  --color-primary-hover: rgba(103, 58, 183, 0.10);
  --color-accent: #F1A559;
  --color-accent-light: #FFF3E0;

  /* Surfaces */
  --color-bg: #F5F5FA;
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-hover: #FAFAFE;

  /* Text */
  --color-text: #1A1A2E;
  --color-text-secondary: #666680;
  --color-text-tertiary: #9999AA;
  --color-text-on-primary: #FFFFFF;
  --font-family-base: 'Cairo', sans-serif;
  --font-size-body: 15px;
  --font-size-body-sm: 13.5px;
  --font-size-label: 13px;
  --font-size-button: 13.5px;
  --font-size-title-lg: clamp(1.25rem, 1.08rem + 0.7vw, 1.85rem);
  --font-size-title-md: clamp(1.05rem, 0.98rem + 0.38vw, 1.45rem);
  --font-size-title-sm: clamp(0.98rem, 0.93rem + 0.24vw, 1.18rem);
  --font-weight-regular: 500;
  --font-weight-medium: 600;
  --font-weight-strong: 700;
  --font-weight-title: 800;

  /* Borders & Shadows */
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 4px 20px rgba(103, 58, 183, 0.15);
  --shadow-hover: 0 8px 30px rgba(103, 58, 183, 0.18);

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 960px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav */
  --navbar-height: 64px;
  --bottom-nav-height: 68px;
  --topbar-logo-shell-size: 48px;
  --topbar-logo-shell-radius: 14px;
  --topbar-logo-shell-padding: 4px;
  --topbar-logo-media-wide-width: 90%;
  --topbar-logo-media-wide-height: 62%;
  --topbar-logo-media-square-size: 78%;
  --topbar-logo-media-tall-width: 64%;
  --topbar-logo-media-tall-height: 90%;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: 20px;

  /* Status */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Avatar reference system */
  --nw-avatar-ring-gradient: conic-gradient(
    from 180deg at 50% 50%,
    #673ab7 0deg,
    #14958a 118deg,
    #f59e0b 224deg,
    #d946ef 306deg,
    #673ab7 360deg
  );
  --nw-avatar-inner-bg: linear-gradient(165deg, #ffffff 0%, #f7f2ff 62%, #eefaf7 100%);
  --nw-avatar-ring-shadow: 0 10px 26px rgba(30, 27, 75, 0.18), 0 0 0 1px rgba(103, 58, 183, 0.10);
  --nw-avatar-badge-shadow: 0 10px 24px rgba(27, 20, 48, 0.16);
  --nw-avatar-dot-shadow: 0 0 0 1px rgba(6, 32, 56, 0.06), 0 6px 14px rgba(6, 32, 56, 0.20);
}

/* ──────────── Reset & Base ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  line-height: 1.72;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ──────────── Container ──────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-lg); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-xl); } }
@media (min-width: 1400px) { .container { padding: 0 var(--space-2xl); } }

/* ──────────── Responsive Helpers ──────────── */
.mobile-only { display: flex !important; }
.desktop-only { display: none !important; }
.tablet-up { display: none !important; }
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: flex !important; }
  .tablet-up { display: flex !important; }
}

/* ──────────── Shimmer / Skeleton ──────────── */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #eee 25%, #e0e0e8 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ──────────── Animations ──────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }

/* ====================================================================
   TOP NAVBAR — Glass Morphism
   ==================================================================== */
#top-navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
#top-navbar.scrolled { box-shadow: var(--shadow-md); }

#top-navbar.nw-global-topbar {
  z-index: 360;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 250, 255, 0.90) 100%),
    radial-gradient(circle at 80% 0%, rgba(103, 58, 183, 0.08), transparent 48%);
  border-bottom: 1px solid rgba(103, 58, 183, 0.07);
  box-shadow:
    inset 0 -1px 0 rgba(103, 58, 183, 0.05),
    0 10px 32px rgba(18, 18, 36, 0.07);
}

.navbar-inner-global {
  position: relative;
  min-height: 72px;
  height: auto;
  padding: 12px 0;
}

.topbar-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 88px;
}

.topbar-section-right {
  justify-content: flex-start;
}

.topbar-section-left {
  justify-content: flex-end;
}

.nav-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12), rgba(103, 58, 183, 0.04));
  border: 1px solid rgba(103, 58, 183, 0.12);
  color: var(--color-primary-dark);
}

/* ---------- Topbar Showcase: Brand / Sponsor rotation ---------- */
.topbar-brand-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  align-items: center;
  justify-items: center;
  max-width: calc(100% - 128px);
  min-height: 56px;
  isolation: isolate;
}

/* -- Shared face layer (grid stacking for rotation) -- */
.topbar-brand-face {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.34, 1.05, 0.64, 1);
  will-change: opacity, transform;
}

.topbar-brand-face.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* -- Brand link -- */
.topbar-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar-brand-mark {
  width: var(--topbar-logo-shell-size);
  height: var(--topbar-logo-shell-size);
  padding: var(--topbar-logo-shell-padding);
  box-sizing: border-box;
  border-radius: var(--topbar-logo-shell-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(69, 52, 110, 0.08);
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(29, 21, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar-brand-link:hover .topbar-brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 21, 55, 0.12);
}

.topbar-brand-mark.has-image {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(69, 52, 110, 0.08);
  box-shadow: 0 4px 16px rgba(29, 21, 55, 0.08);
}

.topbar-brand-mark img,
.topbar-brand-mark.has-image img,
.topbar-sponsor-media img {
  width: var(--topbar-logo-media-square-size);
  height: var(--topbar-logo-media-square-size);
  max-width: var(--topbar-logo-media-square-size);
  max-height: var(--topbar-logo-media-square-size);
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.topbar-brand-mark.is-wide img,
.topbar-sponsor-media.is-wide img {
  width: var(--topbar-logo-media-wide-width);
  height: var(--topbar-logo-media-wide-height);
  max-width: var(--topbar-logo-media-wide-width);
  max-height: var(--topbar-logo-media-wide-height);
}

.topbar-brand-mark.is-tall img,
.topbar-sponsor-media.is-tall img {
  width: var(--topbar-logo-media-tall-width);
  height: var(--topbar-logo-media-tall-height);
  max-width: var(--topbar-logo-media-tall-width);
  max-height: var(--topbar-logo-media-tall-height);
}

.topbar-brand-mark.is-square img,
.topbar-sponsor-media.is-square img {
  width: var(--topbar-logo-media-square-size);
  height: var(--topbar-logo-media-square-size);
  max-width: var(--topbar-logo-media-square-size);
  max-height: var(--topbar-logo-media-square-size);
}

.topbar-brand-copy {
  display: none;
}

/* -- Sponsor face -- */
.topbar-sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
}

.topbar-sponsor.is-link {
  cursor: pointer;
}

.topbar-sponsor-badge-label {
  display: none;
}

.topbar-sponsor-media {
  width: var(--topbar-logo-shell-size);
  height: var(--topbar-logo-shell-size);
  padding: var(--topbar-logo-shell-padding);
  box-sizing: border-box;
  border-radius: var(--topbar-logo-shell-radius);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(69, 52, 110, 0.08);
  box-shadow: 0 4px 16px rgba(29, 21, 55, 0.08);
  color: var(--color-primary-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar-sponsor:hover .topbar-sponsor-media {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(29, 21, 55, 0.12);
}

.topbar-sponsor-media.is-wide,
.topbar-sponsor-media.is-tall,
.topbar-sponsor-media.is-square {
  width: var(--topbar-logo-shell-size);
  height: var(--topbar-logo-shell-size);
}

.topbar-sponsor-placeholder {
  font-size: 14px;
  font-weight: 900;
}

.topbar-sponsor-copy {
  display: none;
}

.topbar-sponsor-label {
  display: none;
}

.topbar-sponsor-name {
  display: none;
}

.topbar-sponsor-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.topbar-sponsor-modal.hidden {
  display: none;
}

.topbar-sponsor-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(16, 13, 31, 0.38), rgba(16, 13, 31, 0.52)),
    radial-gradient(circle at top, rgba(103, 58, 183, 0.12), transparent 42%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.topbar-sponsor-modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: min(calc(100dvh - 36px), 860px);
  border-radius: 32px;
  border: 1px solid rgba(122, 98, 168, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 255, 0.96)),
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.1), transparent 42%),
    radial-gradient(circle at bottom left, rgba(78, 200, 212, 0.08), transparent 36%);
  box-shadow:
    0 34px 80px rgba(19, 15, 38, 0.28),
    0 8px 24px rgba(103, 58, 183, 0.08);
  padding: 24px 24px 20px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  overflow-x: clip;
}

.topbar-sponsor-modal-card::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.08), rgba(103, 58, 183, 0));
  pointer-events: none;
}

.topbar-sponsor-modal-card::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(78, 200, 212, 0.08), rgba(78, 200, 212, 0));
  pointer-events: none;
}

.topbar-sponsor-modal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(154, 132, 194, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 255, 0.95)),
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.16), transparent 48%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(103, 58, 183, 0.09);
}

.topbar-sponsor-modal-media-card {
  min-width: 164px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 24px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.topbar-sponsor-modal-media {
  width: 116px;
  height: 116px;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 243, 255, 0.98)),
    radial-gradient(circle at top, rgba(103, 58, 183, 0.06), transparent 48%);
  box-shadow: 0 18px 34px rgba(103, 58, 183, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.topbar-sponsor-modal-media-note {
  margin: 0;
  color: #706388;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.topbar-sponsor-modal-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.topbar-sponsor-modal-placeholder {
  font-size: 28px;
  font-weight: 900;
  color: #6b46c1;
}

.topbar-sponsor-modal-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.topbar-sponsor-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-sponsor-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5edff, #eee3ff);
  border: 1px solid rgba(103, 58, 183, 0.16);
  color: #663d90;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.topbar-sponsor-modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(103, 58, 183, 0.11);
  color: #6f5f89;
  font-size: 12px;
  font-weight: 900;
}

.topbar-sponsor-modal-kicker {
  margin: 0;
  color: #8a79a1;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.topbar-sponsor-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(103, 58, 183, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #5b36ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(59, 39, 109, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-sponsor-modal-close svg {
  display: block;
}

.topbar-sponsor-modal-close:hover {
  transform: translateY(-1px) scale(1.03);
  background: #f7f1ff;
  border-color: rgba(103, 58, 183, 0.24);
  box-shadow: 0 16px 28px rgba(59, 39, 109, 0.16);
}

.topbar-sponsor-modal-label {
  margin: 0;
  color: #5c4f73;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  padding-inline-start: 0;
}

.topbar-sponsor-modal h3 {
  margin: 0;
  color: #2e1d57;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 900;
  line-height: 1.45;
  padding-inline-start: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.topbar-sponsor-modal-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(177, 164, 201, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 255, 0.94)),
    radial-gradient(circle at top left, rgba(103, 58, 183, 0.06), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 28px rgba(26, 19, 49, 0.05);
}

.topbar-sponsor-modal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-sponsor-modal-quote {
  color: rgba(103, 58, 183, 0.18);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.topbar-sponsor-modal-body {
  margin: 0;
  position: relative;
  color: #4d4563;
  font-size: 15px;
  line-height: 1.85;
  min-height: 0;
  max-height: min(42dvh, 320px);
  padding: 20px 20px 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(177, 164, 201, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 255, 0.92)),
    radial-gradient(circle at top right, rgba(103, 58, 183, 0.06), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 28px rgba(26, 19, 49, 0.05);
  text-align: right;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.topbar-sponsor-modal-body::before {
  content: "";
}

.topbar-sponsor-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-sponsor-modal-secondary,
.topbar-sponsor-modal-link {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.topbar-sponsor-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  border-radius: 18px;
  border: 1px solid rgba(103, 58, 183, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #4f3f69;
  box-shadow: 0 10px 22px rgba(26, 19, 49, 0.06);
}

.topbar-sponsor-modal-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 58, 183, 0.22);
  background: #fbf8ff;
}

.topbar-sponsor-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-inline-start: auto;
  min-width: 156px;
  border-radius: 999px;
  border: 1px solid rgba(70, 152, 43, 0.2);
  background: linear-gradient(180deg, #f7fff2, #ebf7e3);
  color: #2e7e1f;
  box-shadow: 0 10px 20px rgba(47, 125, 30, 0.12);
}

.topbar-sponsor-modal-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 125, 30, 0.16);
  border-color: rgba(60, 127, 34, 0.34);
}

.topbar-sponsor-modal-link.hidden {
  display: none;
}

@media (max-width: 640px) {
  .topbar-sponsor-modal {
    padding: 12px;
  }

  .topbar-sponsor-modal-card {
    width: min(100%, 100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
    padding: 18px 14px 14px;
    gap: 12px;
  }

  .topbar-sponsor-modal-close {
    top: 14px;
    inset-inline-start: 14px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .topbar-sponsor-modal-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 14px 14px;
    gap: 12px;
  }

  .topbar-sponsor-modal-media-card {
    min-width: 0;
    width: 100%;
    padding: 12px;
  }

  .topbar-sponsor-modal-media {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  .topbar-sponsor-modal h3 {
    font-size: 18px;
  }

  .topbar-sponsor-modal-body {
    font-size: 14px;
    line-height: 1.75;
    max-height: min(46dvh, 280px);
    padding: 16px 14px 16px 18px;
  }

  .topbar-sponsor-modal-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .topbar-sponsor-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .topbar-sponsor-modal-secondary,
  .topbar-sponsor-modal-link {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
  }

  .topbar-sponsor-modal-link {
    margin-inline-start: 0;
  }
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: var(--space-md);
}
.navbar-right { display: flex; align-items: center; gap: var(--space-sm); }
.navbar-left { display: flex; align-items: center; gap: var(--space-sm); }

.navbar-brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity var(--transition-fast);
}
.navbar-brand:hover { opacity: 0.85; }

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary-light);
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.nav-icon-btn:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  transform: scale(1.05);
}
.nav-icon-btn:active { transform: scale(0.95); }

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
}

.notif-badge {
  position: absolute;
  top: 6px; left: 6px;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-error);
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.notif-badge.hidden { display: none; }

/* Ensure notification badges anchor correctly on any clickable host */
.badge-host {
  position: relative !important;
  overflow: visible !important;
}

.navbar-links { align-items: center; gap: var(--space-xs); }
.nav-link {
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  color: var(--color-text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { background: var(--color-primary-subtle); color: var(--color-primary); }
.nav-link.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 700; }

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 2px solid var(--color-primary-subtle);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.nav-avatar:hover { border-color: var(--color-primary); transform: scale(1.08); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar.hidden { display: none; }

@media (max-width: 768px) {
  .navbar-inner-global {
    min-height: 68px;
    padding: 10px 0;
  }

  .topbar-brand-wrap {
    max-width: calc(100% - 116px);
  }

  .topbar-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 17px;
  }

  .topbar-sponsor-media {
    width: var(--topbar-logo-shell-size);
    height: var(--topbar-logo-shell-size);
    border-radius: 12px;
  }

  .topbar-sponsor-media.is-wide,
  .topbar-sponsor-media.is-tall,
  .topbar-sponsor-media.is-square {
    width: var(--topbar-logo-shell-size);
    height: var(--topbar-logo-shell-size);
  }

  .topbar-sponsor-badge-label {
    display: none;
  }
}

/* ====================================================================
   MOBILE SIDEBAR
   ==================================================================== */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 560;
  transition: opacity var(--transition-normal);
  opacity: 1;
}
.sidebar-overlay.hidden { opacity: 0; pointer-events: none; }

.sidebar {
  position: fixed; top: 0; right: 0;
  /* أضيق على الويب/سطح المكتب: حدّ أقصى 340px بدل 420px ونسبة أقل من العرض. */
  width: clamp(290px, 22vw, 340px);
  max-width: 92vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--color-surface);
  z-index: 570;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.26);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow: hidden;
  overscroll-behavior: contain;
}
[dir="rtl"] .sidebar { right: 0; left: auto; transform: translateX(100%); }
.sidebar.open { transform: translateX(0) !important; }

.sidebar-header {
  padding: calc(var(--space-lg) + env(safe-area-inset-top, 0px)) var(--space-lg) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  position: relative;
  min-height: 136px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sidebar-close {
  position: absolute; top: var(--space-md); left: var(--space-md);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
[dir="rtl"] .sidebar-close { left: auto; right: var(--space-md); }
.sidebar-close:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.04); }

.sidebar-user { display: flex; align-items: center; gap: var(--space-md); flex-direction: row-reverse; }
.sidebar-user-info { flex: 1; }
.sidebar-name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.3; }
.sidebar-role { font-size: 12px; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }
.sidebar-avatar {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-nav {
  padding: var(--space-md) 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar-link {
  display: flex; align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-lg);
  margin: 2px var(--space-sm);
  min-height: 50px;
  border-radius: 14px;
  font-size: 14px; font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-direction: row-reverse;
}
.sidebar-link:hover { background: var(--color-primary-subtle); color: var(--color-primary); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(103, 58, 183, 0.16), rgba(103, 58, 183, 0.05));
  color: var(--color-primary-dark);
  font-weight: 800;
}
.sidebar-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(103, 58, 183, 0.06);
}
.sidebar-link.active .sidebar-icon {
  background: rgba(103, 58, 183, 0.18);
}
.sidebar-label { flex: 1; line-height: 1.45; }
.sidebar-separator { height: 1px; background: var(--color-border); margin: var(--space-sm) calc(var(--space-lg) + 2px); }
.sidebar-footer {
  margin-top: auto;
  padding: var(--space-sm) 0 calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff);
}
.sidebar-auth-link { color: var(--color-text-secondary); }
.sidebar-auth-link:hover { color: var(--color-primary); }
.sidebar-delete-account {
  color: #c62828;
}
.sidebar-delete-account .sidebar-icon {
  background: rgba(198, 40, 40, 0.08);
}
.sidebar-delete-account:hover {
  color: #b71c1c;
  background: rgba(198, 40, 40, 0.08);
}
.sidebar-logout.hidden,
.sidebar-delete-account.hidden {
  display: none;
}

.global-toast {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 2000;
  width: min(520px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #172033;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.global-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.global-toast-icon {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(103, 58, 183, 0.12);
  flex: 0 0 auto;
}
.global-toast.success .global-toast-icon {
  background: #0f766e;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}
.global-toast.warning .global-toast-icon {
  background: #b45309;
  box-shadow: 0 0 0 6px rgba(180, 83, 9, 0.12);
}
.global-toast.error .global-toast-icon {
  background: #c62828;
  box-shadow: 0 0 0 6px rgba(198, 40, 40, 0.12);
}
.global-toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1.65;
}
.global-toast-copy strong {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}
.global-toast-copy span {
  font-size: 13px;
  color: #4b5563;
}

@media (min-width: 1024px) {
  .sidebar {
    border-left: 1px solid rgba(103, 58, 183, 0.12);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: min(360px, 92vw);
  }
  .global-toast {
    top: auto;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 16px;
  }
}

/* ====================================================================
   HERO SECTION — Cinematic Full-Width
   ==================================================================== */
#hero {
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #512DA8 0%, #7E57C2 50%, #9575CD 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.05) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-top: 56px; padding-bottom: 36px;
  min-height: 260px;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .hero-content {
    min-height: 380px;
    padding-top: 80px; padding-bottom: 48px;
    flex-direction: row; align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}
@media (min-width: 1024px) {
  .hero-content { min-height: 440px; padding-top: 100px; padding-bottom: 56px; }
}
@media (min-width: 1400px) {
  .hero-content { min-height: 500px; padding-bottom: 64px; }
}

.hero-text { margin-bottom: 0; }
@media (min-width: 768px) { .hero-text { flex: 1; max-width: 600px; } }

.hero-tagline {
  font-size: 24px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 8px; line-height: 1.3;
}
@media (min-width: 768px) { .hero-tagline { font-size: 34px; } }
@media (min-width: 1024px) { .hero-tagline { font-size: 42px; } }
@media (min-width: 1400px) { .hero-tagline { font-size: 50px; } }

.hero-subtitle { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }
@media (min-width: 768px) { .hero-subtitle { font-size: 16px; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 18px; } }

/* Hero search bar */
.search-bar {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transition: all var(--transition-normal);
  max-width: 520px; width: 100%;
}
.search-bar:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  background: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.5);
}
.search-bar:active { transform: scale(0.98); }
.search-bar span { font-size: 14px; color: rgba(150,150,160,.9); font-weight: 500; }
@media (min-width: 768px) {
  .search-bar { min-width: 360px; width: auto; flex-shrink: 0; padding: 16px 24px; }
  .search-bar span { font-size: 15px; }
}

/* ====================================================================
   REELS / SPOTLIGHTS
   ==================================================================== */
.section-reels { padding: var(--space-lg) 0 var(--space-sm); overflow: hidden; }
.reels-track {
  display: flex; gap: var(--space-md); padding: 0 var(--space-xs);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.reels-track::-webkit-scrollbar { display: none; }

.reel-item {
  width: 76px; flex-shrink: 0;
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  scroll-snap-align: start;
  transition: transform var(--transition-fast);
}
.reel-item:hover { transform: scale(1.05); }
.reel-item:active { transform: scale(0.95); }
@media (min-width: 768px) { .reel-item { width: 84px; } }
@media (min-width: 1024px) { .reel-item { width: 90px; } }

.reel-ring {
  width: 76px; height: 76px;
  border-radius: var(--radius-full);
  background: conic-gradient(#9F57DB, #F1A559, #C8A5FC, #9F57DB);
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
  transition: transform var(--transition-fast);
}
@media (min-width: 768px) { .reel-ring { width: 84px; height: 84px; } }
@media (min-width: 1024px) { .reel-ring { width: 90px; height: 90px; } }

.reel-inner {
  width: 100%; height: 100%;
  border-radius: var(--radius-full);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
}
.reel-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
.reel-placeholder {
  width: 100%; height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #B39DDB, #E1BEE7);
  display: flex; align-items: center; justify-content: center;
}
.reel-caption {
  max-width: 76px; font-size: 11px; font-weight: 600;
  color: var(--color-text-secondary); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .reel-caption { max-width: 84px; font-size: 12px; } }
.reels-empty {
  padding: var(--space-md) 0;
  color: var(--color-text-tertiary);
  font-size: 13px; font-weight: 600; text-align: center;
  width: 100%;
}

/* ====================================================================
   SECTION BLOCKS
   ==================================================================== */
.section-block { padding: var(--space-lg) 0 var(--space-md); }
@media (min-width: 768px) { .section-block { padding: var(--space-xl) 0 var(--space-lg); } }
@media (min-width: 1024px) { .section-block { padding: var(--space-2xl) 0 var(--space-lg); } }

.section-title {
  font-size: 17px; font-weight: var(--font-weight-title);
  color: var(--color-text);
  margin-bottom: var(--space-md); line-height: 1.35;
}
@media (min-width: 768px) { .section-title { font-size: 20px; margin-bottom: var(--space-lg); } }
@media (min-width: 1024px) { .section-title { font-size: 23px; } }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-md);
}
@media (min-width: 768px) { .section-header { margin-bottom: var(--space-lg); } }

.view-all-btn {
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
  background: none; border: none; cursor: pointer;
  font-family: 'Cairo', sans-serif;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.view-all-btn:hover { background: var(--color-primary-subtle); }

/* ====================================================================
   CATEGORIES — Responsive Grid
   ==================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: var(--space-md);
}
@media (min-width: 600px) { .categories-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); } }
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-lg); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }

.cat-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  background: transparent;
}
.cat-item:hover { background: var(--color-surface); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-item:active { transform: scale(0.95); }

.cat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
@media (min-width: 768px) { .cat-icon { width: 64px; height: 64px; border-radius: var(--radius-xl); } }
.cat-item:hover .cat-icon { box-shadow: var(--shadow-primary); background: var(--color-primary-light); }
.cat-icon svg { color: var(--color-primary); width: 26px; height: 26px; }
@media (min-width: 768px) { .cat-icon svg { width: 28px; height: 28px; } }

.cat-name {
  margin-top: var(--space-sm); font-size: 12px; font-weight: 600;
  color: var(--color-text-secondary); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
  transition: color var(--transition-fast);
}
.cat-item:hover .cat-name { color: var(--color-primary); }
@media (min-width: 768px) { .cat-name { font-size: 13px; } }

.skeleton-cat .cat-icon { width: 56px; height: 56px; }
.skeleton-cat .cat-name { width: 50px; height: 11px; margin-top: var(--space-sm); }

/* ====================================================================
   PROVIDERS — Modern Card Grid
   ==================================================================== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 600px) { .providers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .providers-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }
@media (min-width: 1024px) { .providers-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .providers-grid { grid-template-columns: repeat(5, 1fr); } }

.provider-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; cursor: pointer;
  transition: all var(--transition-normal);
}
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.provider-card:active { transform: scale(0.98); }

.provider-cover {
  height: 90px; width: 100%;
  background: linear-gradient(135deg, #B39DDB, #CE93D8);
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .provider-cover { height: 100px; } }
@media (min-width: 1024px) { .provider-cover { height: 110px; } }
.provider-cover img { width: 100%; height: 100%; object-fit: cover; }

.provider-info {
  padding: 0 var(--space-md); margin-top: -20px;
  display: flex; flex-direction: column; gap: var(--space-sm);
  position: relative; z-index: 1;
}
.provider-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  border: 3px solid var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--color-primary);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .provider-avatar { width: 44px; height: 44px; } }
.provider-avatar img { width: 100%; height: 100%; object-fit: cover; }

.provider-name-row { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs); }
.provider-name {
  font-size: 13px; font-weight: 700; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
@media (min-width: 768px) { .provider-name { font-size: 14px; } }

.badge-verified { width: 16px; height: 16px; flex-shrink: 0; }
.provider-city {
  font-size: 11px; color: var(--color-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .provider-city { font-size: 12px; } }

.provider-stats {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}
.provider-stat {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: 11px; color: var(--color-text-tertiary); font-weight: 600;
}
.provider-stat svg { width: 14px; height: 14px; color: var(--color-accent); }

.skeleton-provider .provider-cover { height: 90px; }
.provider-info-skeleton { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }

.providers-empty {
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  width: 100%; grid-column: 1 / -1;
  color: var(--color-text-tertiary); font-size: 14px; font-weight: 600;
}

/* ====================================================================
   BANNERS — Promotional Cards
   ==================================================================== */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}
@media (min-width: 768px) { .banners-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); } }

.banner-card {
  position: relative; height: 160px;
  border-radius: var(--radius-xl); overflow: hidden;
  cursor: pointer; transition: all var(--transition-normal);
}
@media (min-width: 768px) { .banner-card { height: 180px; } }
@media (min-width: 1024px) { .banner-card { height: 200px; } }
.banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner-card:active { transform: scale(0.98); }

.banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #7E57C2, #B39DDB);
}
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  z-index: 1;
}
.banner-caption { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.banner-provider { font-size: 12px; color: rgba(255,255,255,.75); }

/* ====================================================================
   FOOTER — Full-Width
   ==================================================================== */
#site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.8);
  margin-top: auto;
  padding-top: var(--space-2xl);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-xl); padding-bottom: var(--space-xl);
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.footer-logo { font-size: 28px; font-weight: 900; color: #fff; display: block; margin-bottom: var(--space-sm); }
.footer-logo-image {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
}
.footer-desc { font-size: 14px; color: rgba(255,255,255,.6); max-width: 340px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: var(--space-md); }
.footer-links a {
  display: block; font-size: 13px; color: rgba(255,255,255,.6);
  padding: var(--space-xs) 0; transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-accent); }
.footer-store-links,
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}
.footer-store-link,
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.footer-store-link:hover,
.footer-social-link:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--space-lg) 0;
  font-size: 13px; color: rgba(255,255,255,.4); text-align: center;
}

/* ====================================================================
   MOBILE BOTTOM NAV
   ==================================================================== */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: var(--radius-md);
  color: var(--color-text-tertiary); text-decoration: none;
  font-size: 10px; font-weight: 600;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.bnav-item:hover, .bnav-item.active { color: var(--color-primary); }
.bnav-item.active { background: var(--color-primary-subtle); }
.bnav-item svg { width: 22px; height: 22px; }
.bnav-item.bnav-item--reserved-hidden {
  opacity: 0;
  pointer-events: none;
}

.bnav-fab {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-top: -26px;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.bnav-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(103,58,183,.3); }
.bnav-fab:active { transform: scale(0.95); }
.bnav-fab svg { width: 26px; height: 26px; }

/* ====================================================================
   OFFLINE BANNER
   ==================================================================== */
.offline-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-md));
  left: 50%; transform: translateX(-50%);
  background: var(--color-error); color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: var(--space-sm);
  box-shadow: var(--shadow-lg); z-index: 150; white-space: nowrap;
}
@media (min-width: 769px) { .offline-banner { bottom: var(--space-lg); } }

/* ====================================================================
   PAGE CONTENT — Inner Pages
   ==================================================================== */
.page-content {
  padding: var(--space-lg) 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
  min-height: 60vh;
}
@media (min-width: 769px) {
  .page-content { padding: var(--space-xl) 0 var(--space-2xl); }
}

.page-header { margin-bottom: var(--space-lg); }
@media (min-width: 769px) { .page-header { margin-bottom: var(--space-xl); } }

.page-header h1, .page-title {
  font-size: 20px; font-weight: var(--font-weight-title);
  color: var(--color-text); line-height: 1.28;
}
@media (min-width: 769px) { .page-header h1, .page-title { font-size: 25px; } }
@media (min-width: 1024px) { .page-header h1, .page-title { font-size: 29px; } }

.page-back-header {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) 0;
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
}
@media (min-width: 769px) { .page-back-header { position: relative; padding: var(--space-lg) 0; } }

.page-back-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast);
  color: var(--color-text);
}
.page-back-btn:hover { background: var(--color-primary-subtle); color: var(--color-primary); border-color: var(--color-primary); }
.page-back-title { font-size: 18px; font-weight: 700; color: var(--color-text); }
@media (min-width: 769px) { .page-back-title { font-size: 22px; } }

/* ====================================================================
   TABS — Modern Pill
   ==================================================================== */
.tabs-row {
  display: flex; gap: var(--space-xs);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xs);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}
.tabs-row::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none; cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tab-btn:hover { background: var(--color-primary-subtle); color: var(--color-primary); }
.tab-btn.active { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-primary); }

/* ====================================================================
   FILTER CHIPS
   ==================================================================== */
.filter-chips {
  display: flex; gap: var(--space-sm);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-lg);
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-fast);
  white-space: nowrap;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: var(--shadow-primary); }

/* ====================================================================
   SEARCH PAGE
   ==================================================================== */
.search-input-wrap { position: relative; margin-bottom: var(--space-lg); }
.search-input {
  width: 100%; padding: 14px 20px 14px 48px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 15px; color: var(--color-text);
  transition: all var(--transition-fast); outline: none;
}
[dir="rtl"] .search-input { padding: 14px 48px 14px 20px; }
.search-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-subtle); }
.search-input::placeholder { color: var(--color-text-tertiary); }
.search-input-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary); pointer-events: none;
}
[dir="rtl"] .search-input-icon { left: auto; right: 16px; }

.sort-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.sort-label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; }

/* ====================================================================
   PROFILE PAGE
   ==================================================================== */
.profile-hero {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: var(--space-lg);
}
@media (min-width: 769px) { .profile-hero { border-radius: var(--radius-2xl); margin-bottom: var(--space-xl); } }
.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  position: relative;
}
@media (min-width: 768px) { .profile-cover { height: 200px; } }
@media (min-width: 1024px) { .profile-cover { height: 260px; } }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }

.profile-main {
  background: var(--color-surface);
  padding: 0 var(--space-lg) var(--space-lg);
  position: relative;
}
.profile-avatar-wrap { display: flex; justify-content: center; margin-top: -40px; position: relative; z-index: 2; }
@media (min-width: 769px) { .profile-avatar-wrap { justify-content: flex-start; margin-top: -48px; } }
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  border: 4px solid var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--color-primary);
  overflow: hidden; box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .profile-avatar { width: 100px; height: 100px; } }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { font-size: 20px; font-weight: 800; color: var(--color-text); text-align: center; margin-top: var(--space-md); }
@media (min-width: 769px) { .profile-name { text-align: start; font-size: 26px; } }
.profile-handle { font-size: 13px; color: var(--color-text-tertiary); text-align: center; }
@media (min-width: 769px) { .profile-handle { text-align: start; } }

.profile-stats {
  display: flex; justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 769px) { .profile-stats { justify-content: flex-start; } }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-stat-value { font-size: 18px; font-weight: 800; color: var(--color-primary); }
.profile-stat-label { font-size: 11px; color: var(--color-text-tertiary); font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
@media (min-width: 600px) { .quick-actions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .quick-actions { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }

.quick-action-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-fast); text-decoration: none;
}
.quick-action-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-primary); transform: translateY(-2px); }
.quick-action-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.quick-action-label { font-size: 13px; font-weight: 600; color: var(--color-text); text-align: center; }

/* ====================================================================
   PROVIDER DETAIL PAGE
   ==================================================================== */
.provider-detail-hero { position: relative; overflow: hidden; }
.provider-detail-cover {
  height: 200px;
  background: linear-gradient(135deg, #7E57C2, #B39DDB);
  position: relative;
}
@media (min-width: 768px) { .provider-detail-cover { height: 260px; } }
@media (min-width: 1024px) { .provider-detail-cover { height: 320px; } }
.provider-detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.provider-detail-info {
  background: var(--color-surface);
  padding: 0 var(--space-lg) var(--space-lg);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  position: relative;
}
@media (min-width: 769px) {
  .provider-detail-info {
    max-width: var(--container-max);
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    margin-top: -40px;
    position: relative; z-index: 2;
    box-shadow: var(--shadow-lg);
  }
}
.provider-detail-avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  border: 4px solid var(--color-surface);
  margin-top: -40px;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--color-primary);
  overflow: hidden; box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .provider-detail-avatar { width: 96px; height: 96px; margin-top: -48px; } }
.provider-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }

.provider-stats-row {
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.provider-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; }
.provider-stat-value { font-size: 18px; font-weight: 800; color: var(--color-primary); }
.provider-stat-label { font-size: 11px; color: var(--color-text-tertiary); font-weight: 600; }

.provider-actions { display: flex; gap: var(--space-sm); padding: var(--space-lg) 0; flex-wrap: wrap; }
.provider-action-btn {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none; font-family: 'Cairo', sans-serif;
}
.provider-action-btn.primary { background: var(--color-primary); color: #fff; }
.provider-action-btn.primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-primary); }
.provider-action-btn.secondary { background: var(--color-surface); color: var(--color-primary); border: 1px solid var(--color-border); }
.provider-action-btn.secondary:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.provider-action-btn.success { background: #25D366; color: #fff; }
.provider-action-btn.success:hover { background: #20BD5A; }

/* ====================================================================
   ORDERS
   ==================================================================== */
.order-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  cursor: pointer; transition: all var(--transition-fast);
}
.order-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-md); }
.order-title { font-size: 15px; font-weight: 700; color: var(--color-text); line-height: 1.4; }
.order-status {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.order-status.new { background: #E3F2FD; color: #1565C0; }
.order-status.in-progress { background: #FFF3E0; color: #E65100; }
.order-status.completed { background: #E8F5E9; color: #2E7D32; }
.order-status.cancelled { background: #FFEBEE; color: #C62828; }
.order-meta { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: 12px; color: var(--color-text-tertiary); }
.order-meta-item { display: flex; align-items: center; gap: var(--space-xs); }

/* ====================================================================
   CHATS
   ==================================================================== */
.chat-thread {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: background var(--transition-fast);
  text-decoration: none;
}
.chat-thread:hover { background: var(--color-surface-hover); }
.chat-thread.unread { background: var(--color-primary-subtle); }
.chat-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--color-primary);
  overflow: hidden; flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-content { flex: 1; min-width: 0; }
.chat-name { font-size: 14px; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.chat-last-msg { font-size: 13px; color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-xs); flex-shrink: 0; }
.chat-time { font-size: 11px; color: var(--color-text-tertiary); }
.chat-unread-badge {
  min-width: 20px; height: 20px; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* Chat detail */
.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.chat-bubble {
  max-width: 75%; padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl); font-size: 14px; line-height: 1.6; word-break: break-word;
}
.chat-bubble.sent { background: var(--color-primary); color: #fff; align-self: flex-start; border-bottom-right-radius: var(--radius-sm); }
[dir="rtl"] .chat-bubble.sent { border-bottom-right-radius: var(--radius-xl); border-bottom-left-radius: var(--radius-sm); }
.chat-bubble.received {
  background: var(--color-surface); color: var(--color-text); align-self: flex-end;
  border-bottom-left-radius: var(--radius-sm); border: 1px solid var(--color-border);
}
[dir="rtl"] .chat-bubble.received { border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-sm); }
.chat-input-wrap {
  padding: var(--space-md); background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; gap: var(--space-sm);
}
.chat-input {
  flex: 1; padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-family: 'Cairo', sans-serif; font-size: 14px;
  outline: none; background: var(--color-bg);
  transition: border-color var(--transition-fast);
}
.chat-input:focus { border-color: var(--color-primary); }
.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: all var(--transition-fast);
}
.chat-send-btn:hover { background: var(--color-primary-dark); }

/* ====================================================================
   NOTIFICATIONS
   ==================================================================== */
.notification-item {
  display: flex; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: background var(--transition-fast);
}
.notification-item:hover { background: var(--color-surface-hover); }
.notification-item.unread { background: var(--color-primary-subtle); }
.notification-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notification-content { flex: 1; min-width: 0; }
.notification-text { font-size: 14px; color: var(--color-text); line-height: 1.5; }
.notification-time { font-size: 12px; color: var(--color-text-tertiary); margin-top: 4px; }

/* ====================================================================
   INTERACTIVE PAGE
   ==================================================================== */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 600px) { .interactive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .interactive-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }
@media (min-width: 1024px) { .interactive-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .interactive-grid { grid-template-columns: repeat(5, 1fr); } }

/* ====================================================================
   ADD SERVICE / REQUEST PAGES
   ==================================================================== */
.action-cards { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-xl); }
@media (min-width: 600px) { .action-cards { grid-template-columns: repeat(3, 1fr); } }
.action-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-md); padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl); border: 2px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-normal);
  text-decoration: none; text-align: center;
}
.action-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-primary); transform: translateY(-4px); }
.action-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.action-card-title { font-size: 16px; font-weight: 700; color: var(--color-text); }
.action-card-desc { font-size: 13px; color: var(--color-text-tertiary); line-height: 1.5; }

/* ====================================================================
   FORMS
   ==================================================================== */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: var(--font-size-label); font-weight: var(--font-weight-medium); color: var(--color-text); margin-bottom: var(--space-sm); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-family-base); font-size: var(--font-size-body-sm);
  color: var(--color-text); transition: all var(--transition-fast); outline: none;
  line-height: 1.6;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-subtle);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.05); box-shadow: 0 4px 16px rgba(241,165,89,.3); }
.btn-sm { padding: var(--space-sm) var(--space-md); font-size: 13px; }
.btn-lg { padding: var(--space-lg) var(--space-2xl); font-size: 16px; }
.btn-block { width: 100%; }

/* ====================================================================
   CARDS
   ==================================================================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  font-family: var(--font-family-base);
  font-size: var(--font-size-button); font-weight: var(--font-weight-strong);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn-sm { padding: var(--space-sm) var(--space-md); font-size: 12.5px; }
.btn-lg { padding: var(--space-lg) var(--space-2xl); font-size: 15px; }
.auth-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50vh; gap: var(--space-lg); text-align: center;
  padding: var(--space-2xl);
}
.auth-gate-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.auth-gate-title { font-size: 20px; font-weight: 800; color: var(--color-text); }
.auth-gate-desc { font-size: 14px; color: var(--color-text-secondary); max-width: 360px; line-height: 1.6; }

/* ====================================================================
   LOGIN PAGE
   ==================================================================== */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: var(--space-xl); }
.login-card {
  width: 100%; max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
}
.login-header { text-align: center; margin-bottom: var(--space-xl); }
.login-logo { font-size: 32px; font-weight: 900; color: var(--color-primary); margin-bottom: var(--space-sm); }
.login-subtitle { font-size: 14px; color: var(--color-text-secondary); }

/* ====================================================================
   EMPTY / LOADING
   ==================================================================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-2xl); text-align: center; min-height: 200px;
}
.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg);
}
.empty-state-text { font-size: 15px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: var(--space-md); }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: var(--space-2xl); }

/* ====================================================================
   SETTINGS / STATIC PAGES
   ==================================================================== */
.settings-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.settings-item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  cursor: pointer; transition: all var(--transition-fast); text-decoration: none;
}
.settings-item:hover { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.settings-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-label { font-size: 14px; font-weight: 600; color: var(--color-text); flex: 1; }

.static-content { max-width: var(--container-narrow); margin: 0 auto; }
.static-content h2 { font-size: 20px; font-weight: 800; color: var(--color-text); margin-bottom: var(--space-md); }
.static-content p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: var(--space-md); }

/* QR */
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.qr-image { width: 160px; height: 160px; border-radius: var(--radius-md); overflow: hidden; }

/* ====================================================================
   RESPONSIVE: BOTTOM NAV vs FOOTER
   ==================================================================== */
@media (max-width: 768px) {
  body.mobile-web-parity #site-footer { display: none !important; }
  body.mobile-web-parity #bottom-nav { display: flex !important; }
  main, .page-content { padding-bottom: calc(var(--bottom-nav-height) + var(--space-lg)); }
}
@media (min-width: 769px) {
  body.mobile-web-parity #site-footer { display: block !important; }
  body.mobile-web-parity #bottom-nav { display: none !important; }
  main, .page-content { padding-bottom: var(--space-2xl); }
}

/* ====================================================================
   SCROLLBAR (Desktop)
   ==================================================================== */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(103,58,183,.15); border-radius: var(--radius-full); }
  ::-webkit-scrollbar-thumb:hover { background: rgba(103,58,183,.3); }
}

/* Selection */
::selection { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* Focus */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Print */
@media print {
  #top-navbar, #bottom-nav, #sidebar, .sidebar-overlay, #site-footer { display: none !important; }
  body { background: #fff; }
}

/* ====================================================================
   Mobile Hardening — shared overflow and small-screen fixes
   ==================================================================== */
html,
body {
  max-width: 100%;
}

body.mobile-web-parity,
body.mobile-web-parity main,
body.mobile-web-parity .page-content,
body.mobile-web-parity .container,
body.mobile-web-parity .page-shell,
body.mobile-web-parity .detail-card,
body.mobile-web-parity .card,
body.mobile-web-parity .auth-card {
  min-width: 0;
}

body.mobile-web-parity :where(img, video, iframe, canvas) {
  max-width: 100%;
}

body.mobile-web-parity :where(button, .btn, input, select, textarea) {
  max-width: 100%;
}

body.mobile-web-parity :where(
  .table-wrap,
  .verify-summary-table-wrap,
  .promo-summary-table-wrap,
  .promo-requests-table-wrap,
  .pricing-table-wrap,
  .admin-report-table-wrap
) {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

body.mobile-web-parity :where(
  .page-header,
  .form-row,
  .modal-header,
  .modal-body,
  .detail-card,
  .card,
  .table-wrap,
  .verify-summary-table-wrap,
  .promo-summary-table-wrap,
  .promo-requests-table-wrap
) {
  min-width: 0;
}

@media (max-width: 389px) {
  .container {
    padding-inline: 12px;
  }

  .topbar-section {
    min-width: 72px;
    gap: 6px;
  }

  .topbar-brand-wrap {
    max-width: calc(100% - 104px);
  }

  .nav-icon-btn,
  .nav-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .nav-icon-btn svg,
  .nav-menu-btn svg {
    width: 18px;
    height: 18px;
  }

  .sidebar {
    width: min(86vw, 296px);
    max-width: calc(100vw - 12px);
  }

  .sidebar-header {
    padding-inline: 14px;
  }

  .sidebar-link {
    padding-inline: 14px;
  }

  #bottom-nav {
    padding-inline: 4px;
  }
}

@media (max-width: 359px) {
  .container {
    padding-inline: 10px;
  }

  .topbar-section {
    min-width: 64px;
  }

  .topbar-brand-wrap {
    max-width: calc(100% - 96px);
  }

  .bnav-item {
    gap: 4px;
    font-size: 10px;
    min-width: 0;
  }

  .bnav-item svg {
    width: 20px;
    height: 20px;
  }
}

/* ====================================================================
   FOOTER — Desktop Premium Redesign (>=1024px)
   ==================================================================== */
@media (min-width: 1024px) {
  #site-footer {
    position: relative;
    margin-top: 64px;
    padding-top: 0;
    background:
      radial-gradient(circle at 88% 0%, rgba(124, 58, 237, 0.22), transparent 42%),
      radial-gradient(circle at 12% 100%, rgba(20, 184, 166, 0.18), transparent 45%),
      linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #0b1224 100%);
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    isolation: isolate;
  }

  #site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(167, 139, 250, 0.5) 18%,
      rgba(244, 114, 182, 0.55) 50%,
      rgba(45, 212, 191, 0.5) 82%,
      transparent 100%);
    z-index: 1;
  }

  #site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  #site-footer .container.footer-inner {
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 64px 28px 40px;
    max-width: 1240px;
    margin-inline: auto;
  }

  #site-footer .footer-brand {
    max-width: 420px;
  }

  #site-footer .footer-logo-link {
    gap: 14px;
    margin-bottom: 14px;
  }

  #site-footer .footer-logo-image {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 56px;
    object-fit: contain;
    padding: 7px;
    border-radius: 17px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(103, 58, 183, .14);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  }

  #site-footer .footer-logo {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff, #c4b5fd 70%, #f9a8d4);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
  }

  #site-footer .footer-desc {
    font-size: 14.5px;
    line-height: 1.95;
    color: rgba(226, 232, 240, 0.78);
    max-width: 420px;
    margin: 6px 0 22px;
  }

  #site-footer .footer-store-links,
  #site-footer .footer-social-row {
    gap: 10px;
    margin-top: 14px;
  }

  #site-footer .footer-store-link,
  #site-footer .footer-social-link {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  #site-footer .footer-store-link:hover,
  #site-footer .footer-social-link:hover {
    transform: translateY(-2px);
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.3);
  }

  #site-footer .footer-links {
    position: relative;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: start;
  }

  #site-footer .footer-links h4 {
    position: relative;
    margin: 0 0 10px;
    padding-bottom: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
  }

  #site-footer .footer-links h4::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
  }

  #site-footer .footer-links a {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 220px);
    min-height: 38px;
    gap: 10px;
    padding: 0 12px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.76);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  #site-footer .footer-links a::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.85), rgba(244, 114, 182, 0.75));
    opacity: 0.68;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
  }

  #site-footer .footer-links a:hover {
    color: #ffffff;
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  [dir="rtl"] #site-footer .footer-links a:hover {
    transform: translateX(3px);
  }

  #site-footer .footer-links a:hover::before {
    width: 22px;
    opacity: 1;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
  }

  #site-footer .footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 22px 28px;
    max-width: 1240px;
    margin-inline: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.55);
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
  }
}

@media (min-width: 1280px) {
  #site-footer .container.footer-inner {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    padding: 72px 32px 48px;
  }
}

/* ====================================================================
   FOOTER — Usability pass
   Clearer scan order, quieter palette, and balanced link groups.
   ==================================================================== */
#site-footer {
  background:
    repeating-linear-gradient(135deg, rgba(103, 58, 183, .035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #fbfaff 0%, #f2f8f7 100%);
  color: #1f1738;
}

#site-footer .footer-inner {
  gap: 24px;
}

#site-footer .footer-brand {
  min-width: 0;
}

#site-footer .footer-logo-link {
  min-height: 52px;
}

#site-footer .footer-logo {
  letter-spacing: 0;
}

#site-footer .footer-desc {
  margin: 8px 0 0;
  max-width: 46ch;
  color: #667085;
}

#site-footer .footer-links {
  min-width: 0;
}

#site-footer .footer-links h4 {
  letter-spacing: 0;
}

#site-footer .footer-links a {
  text-decoration: none;
}

#site-footer .notif-badge {
  display: none !important;
}

@media (min-width: 769px) {
  #site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(103, 58, 183, .14);
    overflow: hidden;
    box-shadow: 0 -18px 50px rgba(74, 45, 143, .06);
  }

  #site-footer::before {
    content: "";
    position: static;
    inset: auto;
    display: block;
    width: auto;
    height: 4px;
    background: linear-gradient(90deg, #673AB7 0%, #8b5cf6 48%, #0f766e 100%);
    z-index: auto;
  }

  #site-footer::after {
    display: none;
  }

  #site-footer .container.footer-inner {
    grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, .7fr));
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    max-width: 1180px;
    padding: 40px 24px 30px;
  }

  #site-footer .footer-logo-image {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(103, 58, 183, .14);
    box-shadow: 0 12px 28px rgba(74, 45, 143, .12);
  }

  #site-footer .footer-logo {
    font-size: 24px;
    color: #1f1738;
    background: linear-gradient(135deg, #1f1738 0%, #673AB7 58%, #0f766e 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #site-footer .footer-store-links,
  #site-footer .footer-social-row {
    gap: 8px;
    margin-top: 16px;
  }

  #site-footer .footer-store-link,
  #site-footer .footer-social-link {
    min-height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #4a2d8f;
    border-color: rgba(103, 58, 183, .16);
    box-shadow: none;
  }

  #site-footer .footer-store-link:hover,
  #site-footer .footer-social-link:hover {
    transform: translateY(-1px);
    background: rgba(103, 58, 183, .08);
    border-color: rgba(103, 58, 183, .26);
    color: #4a2d8f;
    box-shadow: 0 10px 24px rgba(74, 45, 143, .08);
  }

  #site-footer .footer-links {
    padding-top: 8px;
    gap: 6px;
  }

  #site-footer .footer-links h4 {
    margin: 0 0 8px;
    padding-bottom: 10px;
    color: #1f1738;
    font-size: 13px;
    text-transform: none;
  }

  #site-footer .footer-links h4::after {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #673AB7, #0f766e);
  }

  #site-footer .footer-links a {
    width: 100%;
    min-height: 36px;
    padding: 0;
    color: #4b5563;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  #site-footer .footer-links a::before {
    width: 6px;
    height: 6px;
    background: #0f766e;
  }

  #site-footer .footer-links a:hover,
  [dir="rtl"] #site-footer .footer-links a:hover {
    color: #4a2d8f;
    transform: none;
    background: transparent;
  }

  #site-footer .footer-links a:hover::before {
    width: 6px;
    background: #673AB7;
  }

  #site-footer .footer-bottom {
    max-width: 1180px;
    padding: 18px 24px calc(22px + var(--bottom-nav-height, 0px));
    text-align: start;
    color: #667085;
    border-top-color: rgba(103, 58, 183, .12);
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  #site-footer .container.footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  #site-footer .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (min-width: 1280px) {
  #site-footer .container.footer-inner {
    grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(160px, .72fr));
    gap: 56px;
    padding: 46px 28px 34px;
  }
}

/* ===================================================================
   Presence indicator dot (provider online/offline)
   Author: presence feature, May 2026
   Usage: container must be position:relative, then append
          <span class="nw-presence-dot is-online|is-offline"></span>
   =================================================================== */
.nw-presence-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  inset-inline-end: auto;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9ca3af;        /* offline – grey */
  box-shadow: var(--nw-avatar-dot-shadow);
  pointer-events: none;
  z-index: 6;
  transform: translate(30%, 30%);
}
[dir="rtl"] .nw-presence-dot,
.nw-presence-dot {
  right: 0;
  left: auto;
  inset-inline-end: auto;
}
.nw-presence-dot.is-online {
  background: #22c55e;        /* online – green */
}
.nw-presence-dot.is-offline {
  background: #9ca3af;
}
.nw-presence-dot.size-sm { width: 9px;  height: 9px; border-width: 1.5px; }
.nw-presence-dot.size-lg { width: 16px; height: 16px; border-width: 2.5px; }

/* Ensure common avatar containers can host the dot. */
.thread-avatar-wrap,
.chat-peer-avatar,
.featured-specialist-avatar-shell,
.home-provider-avatar-shell,
.provider-search-avatar-shell,
.providers-scroll .provider-avatar-shell,
.interactive-following-avatar-wrap,
.profile-avatar-wrap,
#peer-avatar,
.pd-avatar-wrap,
.pd-not-provider-avatar,
.pd-avatar,
.sd-provider-avatar,
.sv-provider-avatar,
.sv-side-avatar,
.provider-avatar-shell,
.search-map-provider-avatar-link,
.ur-provider-avatar,
.sr-sp-avatar-wrap {
  position: relative;
  overflow: visible;
}

/* Keep the status dot independent from verification/excellence badges. */
.thread-avatar-wrap > .nw-presence-dot,
.chat-peer-avatar > .nw-presence-dot,
.featured-specialist-avatar-shell > .nw-presence-dot,
.home-provider-avatar-shell > .nw-presence-dot,
.provider-search-avatar-shell > .nw-presence-dot,
.providers-scroll .provider-avatar-shell > .nw-presence-dot,
.interactive-following-avatar-wrap > .nw-presence-dot,
.profile-avatar-wrap > .nw-presence-dot,
#peer-avatar > .nw-presence-dot,
.pd-avatar-wrap > .nw-presence-dot,
.pd-not-provider-avatar > .nw-presence-dot,
.pd-avatar > .nw-presence-dot,
.sd-provider-avatar > .nw-presence-dot,
.sv-provider-avatar > .nw-presence-dot,
.sv-side-avatar > .nw-presence-dot,
.provider-avatar-shell > .nw-presence-dot,
.search-map-provider-avatar-link > .nw-presence-dot,
.ur-provider-avatar > .nw-presence-dot,
.sr-sp-avatar-wrap > .nw-presence-dot {
  bottom: 0;
  right: 0;
  left: auto;
  inset-inline-end: auto;
  z-index: 6;
}
