/* ══════════════════════════════════════════════════
   SAKHIA — Main CSS Design System v1.0
   ══════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  /* Brand Colors */
  --color-primary-dark:    #49225B;
  --color-primary:         #6E3482;
  --color-primary-light:   #A56ABD;
  --color-surface-purple:  #E7DBEF;
  --color-background:      #F5EBFA;

  /* Semantic Colors */
  --color-gold-accent:     #C9A84C;
  --color-gold-light:      #E8D5A3;
  --color-text-primary:    #1A0622;
  --color-text-secondary:  #29132E;
  --color-text-muted:      #6B7280;
  --color-text-faint:      #9CA3AF;
  --color-white:           #FFFFFF;
  --color-success:         #16A34A;
  --color-warning:         #D97706;
  --color-error:           #DC2626;
  --color-border:          #E7DBEF;
  --color-border-focus:    #6E3482;

  /* Fonts */
  --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Type Scale */
  --text-display-lg:  2rem;       /* 32px */
  --text-display-sm:  1.625rem;   /* 26px */
  --text-heading-xl:  1.375rem;   /* 22px */
  --text-heading-lg:  1.25rem;    /* 20px */
  --text-heading-md:  1.125rem;   /* 18px */
  --text-heading-sm:  1rem;       /* 16px */
  --text-body-lg:     0.9375rem;  /* 15px */
  --text-body-md:     0.875rem;   /* 14px */
  --text-body-sm:     0.8125rem;  /* 13px */
  --text-label-lg:    0.8125rem;  /* 13px */
  --text-label-md:    0.75rem;    /* 12px */
  --text-label-sm:    0.6875rem;  /* 11px */
  --text-micro:       0.625rem;   /* 10px */

  /* Spacing (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:  0 4px 20px -2px rgba(80, 23, 91, 0.08);
  --shadow-nav:   0 -4px 20px rgba(0, 0, 0, 0.05);
  --shadow-btn:   0 10px 25px -5px rgba(100, 27, 105, 0.35);
  --shadow-soft:  0 8px 30px -4px rgba(76, 29, 90, 0.08);
  --shadow-modal: 0 25px 60px -10px rgba(49, 9, 60, 0.25);

  /* Gradients */
  --grad-header:  radial-gradient(circle at 10% 20%, #5A1A67 0%, #350840 70%, #200427 100%);
  --grad-hero:    linear-gradient(135deg, #f5eff9 0%, #ecdcf5 35%, #e1c8f0 100%);
  --grad-cta:     linear-gradient(135deg, #6c1f73 0%, #4b1754 100%);
  --grad-gold:    linear-gradient(135deg, #C9A84C 0%, #E8D5A3 50%, #C9A84C 100%);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-fast: 0.12s ease;
  --transition-slow: 0.3s ease;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body-md);
  color: var(--color-text-secondary);
  background: var(--color-background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── App Shell ─────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--color-background);
}

/* ─── Header ─────────────────────────────────────── */
.app-header {
  background: var(--grad-header);
  color: #fff;
  padding: 12px 16px 20px;
  border-bottom-left-radius: var(--radius-3xl);
  border-bottom-right-radius: var(--radius-3xl);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(49, 9, 60, 0.3);
}

.app-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.app-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2b0933, #4a1260);
  border: 2px solid var(--color-gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.app-logo__s {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.app-logo__name {
  font-family: var(--font-sans);
  font-size: var(--text-heading-md);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: background var(--transition);
  position: relative;
  flex-shrink: 0;
}

.icon-btn:hover { background: rgba(255,255,255,0.22); }
.icon-btn--dark { background: rgba(0,0,0,0.08); color: var(--color-text-secondary); border-color: var(--color-border); }
.icon-btn--dark:hover { background: var(--color-surface-purple); }

.notification-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: #f472b6;
  border-radius: 50%;
  border: 2px solid #350840;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  gap: 8px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}

.search-input-wrap i { color: var(--color-text-muted); font-size: 18px; flex-shrink: 0; }

.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  outline: none;
  min-width: 0;
}

.search-input-wrap input::placeholder { color: var(--color-text-faint); }

/* ─── Bottom Navigation ──────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav__inner {
  display: flex;
  height: 64px;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text-faint);
  font-size: var(--text-micro);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab i { font-size: 22px; }
.nav-tab span { font-size: 10px; font-weight: 600; }

.nav-tab.active {
  color: var(--color-primary-dark);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 0 0 4px 4px;
}

/* ─── Scrollable Content ─────────────────────────── */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 16px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-content::-webkit-scrollbar { display: none; }

/* ─── Section ────────────────────────────────────── */
.section { padding: 16px 16px 0; }
.section:last-child { padding-bottom: 16px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--text-heading-md);
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: -0.1px;
}

.see-all {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.see-all:hover { text-decoration: underline; }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* Business Card */
.business-card { width: 220px; flex-shrink: 0; }
.business-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--color-surface-purple); }
.business-card__body { padding: 10px 12px 12px; }
.business-card__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-top: -22px; margin-bottom: 4px; background: var(--color-surface-purple); }
.business-card__name { font-size: var(--text-body-lg); font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-card__meta { font-size: var(--text-label-md); color: var(--color-text-muted); margin-top: 2px; }
.business-card__rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--text-label-md); color: var(--color-text-muted); }
.business-card__rating i { color: var(--color-gold-accent); font-size: 13px; }

/* Product Card */
.product-card { flex-shrink: 0; width: calc(50% - 6px); }
.product-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--color-surface-purple); }
.product-card__body { padding: 8px 10px 10px; }
.product-card__name { font-size: var(--text-body-sm); font-weight: 600; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price { font-size: var(--text-heading-sm); font-weight: 700; color: var(--color-primary-dark); margin-top: 4px; }
.product-card__compare { font-size: var(--text-label-md); color: var(--color-text-faint); text-decoration: line-through; margin-left: 4px; }
.product-card__seller { font-size: var(--text-micro); color: var(--color-text-muted); margin-top: 2px; }

/* Entrepreneur Card */
.entrepreneur-card { width: 140px; flex-shrink: 0; text-align: center; }
.entrepreneur-card__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-surface-purple); margin: 0 auto 8px; background: var(--color-surface-purple); }
.entrepreneur-card__name { font-size: var(--text-body-sm); font-weight: 600; color: var(--color-text-secondary); }
.entrepreneur-card__type { font-size: var(--text-label-md); color: var(--color-text-muted); margin-top: 2px; }

/* Horizontal scroll row */
.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ─── Category Chips ─────────────────────────────── */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-label-md);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover, .chip.active {
  background: var(--color-primary-dark);
  color: #fff;
  border-color: var(--color-primary-dark);
}

.chip i { font-size: 15px; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-label-lg);
  letter-spacing: 0.1px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-btn);
  padding: 12px 20px;
  height: 48px;
}
.btn--primary:hover { opacity: 0.92; }

.btn--secondary {
  background: var(--color-surface-purple);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light);
  padding: 12px 20px;
  height: 48px;
}
.btn--secondary:hover { background: #ddd0eb; }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 10px 18px;
  height: 44px;
}
.btn--outline:hover { background: rgba(110,52,130,0.06); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 10px 16px;
  height: 40px;
}

.btn--sm {
  font-size: var(--text-label-md);
  padding: 8px 14px;
  height: 34px;
  border-radius: var(--radius-full);
}

.btn--lg {
  font-size: var(--text-body-md);
  padding: 14px 24px;
  height: 52px;
  border-radius: var(--radius-lg);
  width: 100%;
}

.btn--icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
}

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

/* ─── Hero Banner ────────────────────────────────── */
.hero-banner {
  margin: 12px 16px 0;
  border-radius: var(--radius-2xl);
  background: var(--grad-hero);
  padding: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(165, 106, 189, 0.2);
  min-height: 170px;
}

.hero-banner__content { width: 58%; position: relative; z-index: 1; }

.hero-banner__title {
  font-family: var(--font-serif);
  font-size: var(--text-display-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.hero-banner__sub {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.hero-banner__cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
}

.hero-banner__visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-banner__visual img { 
  width: 100%; height: 100%; 
  object-fit: cover;
  object-position: top;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  opacity: 0.4;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-dot.active {
  opacity: 1;
  width: 20px;
  border-radius: 3px;
  background: var(--color-primary-dark);
}

/* ─── Become a Seller Banner ─────────────────────── */
.seller-cta-banner {
  margin: 16px 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.seller-cta-banner__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.seller-cta-banner__text { flex: 1; }
.seller-cta-banner__title { font-size: var(--text-body-lg); font-weight: 700; color: var(--color-text-secondary); }
.seller-cta-banner__sub { font-size: var(--text-label-md); color: var(--color-text-muted); margin-top: 2px; }

/* ─── Inputs & Forms ─────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-body-md);
  color: var(--color-text-secondary);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(110, 52, 130, 0.08);
}

.form-input::placeholder { color: var(--color-text-faint); }
.form-input.error { border-color: var(--color-error); }
.form-input.success { border-color: var(--color-success); }

.form-textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
  padding: 12px 16px;
  line-height: 1.5;
}

.form-error { font-size: var(--text-label-sm); color: var(--color-error); margin-top: 4px; }
.form-hint { font-size: var(--text-label-sm); color: var(--color-text-muted); margin-top: 4px; }

/* ─── Badges & Status ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: var(--text-label-sm);
  font-weight: 600;
  border: 1px solid transparent;
}

.badge--active   { background: #DCFCE7; color: #16A34A; border-color: #86EFAC; }
.badge--pending  { background: #FEF9C3; color: #A16207; border-color: #FDE047; }
.badge--rejected { background: #FEE2E2; color: #DC2626; border-color: #FCA5A5; }
.badge--verified { background: var(--grad-gold); color: var(--color-text-primary); }
.badge--new      { background: #EDE9FE; color: var(--color-primary); border-color: #C4B5FD; }
.badge--purple   { background: var(--color-surface-purple); color: var(--color-primary-dark); }

/* ─── Star Rating ────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star-filled { color: var(--color-gold-accent); }
.star-empty { color: var(--color-border); }

/* ─── Toast / Snackbar ───────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 32px);
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-body-sm);
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  animation: toastSlideUp 0.25s ease, toastFadeOut 0.3s ease 3s forwards;
  pointer-events: auto;
}

.toast--success { background: #1a3d24; color: #fff; }
.toast--error   { background: #3d1a1a; color: #fff; }
.toast--info    { background: var(--color-primary-dark); color: #fff; }
.toast--warning { background: #3d2a00; color: #fff; }

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ─── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 6, 34, 0.5);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-sheet {
  background: #fff;
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-modal);
  animation: sheetSlideUp 0.25s ease;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

/* ─── Loading / Skeleton ─────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e7dbef 25%, #f0e8f5 50%, #e7dbef 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty State ────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state__icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-surface-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.empty-state__title { font-size: var(--text-heading-md); font-weight: 700; color: var(--color-text-secondary); }
.empty-state__text { font-size: var(--text-body-md); color: var(--color-text-muted); margin-top: 8px; max-width: 260px; line-height: 1.5; }
.empty-state__action { margin-top: 20px; }

/* ─── Page-level header (internal pages) ────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header__back {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  text-decoration: none;
}

.page-header__title {
  flex: 1;
  font-size: var(--text-heading-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ─── Verified Badge ─────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-label-sm);
  font-weight: 600;
  color: var(--color-gold-accent);
}

.verified-badge i { font-size: 14px; }

/* ─── Divider ────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

.divider--dashed { border-top: 1px dashed var(--color-border); height: 0; }

/* ─── Loader Spinner ─────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--color-surface-purple);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PWA Install Prompt ─────────────────────────── */
.pwa-install-banner {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 8px);
  left: 16px; right: 16px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-modal);
  z-index: 90;
  animation: toastSlideUp 0.3s ease;
}

.pwa-install-banner img { width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0; }
.pwa-install-banner__text { flex: 1; font-size: var(--text-body-sm); }
.pwa-install-banner__text strong { display: block; font-weight: 700; }

/* ─── Update Banner ──────────────────────────────── */
.update-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-body-sm);
  z-index: 200;
  gap: 12px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 390px) {
  .hero-banner__title { font-size: 1.4rem; }
  .business-card { width: 195px; }
}

@media (min-width: 768px) {
  .app-shell {
    box-shadow: 0 0 60px rgba(49, 9, 60, 0.15);
    border-radius: 24px;
    margin: 24px auto;
    min-height: calc(100dvh - 48px);
  }
  .bottom-nav { border-radius: 0 0 24px 24px; }
}

/* ─── Accessibility ──────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

/* ─── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Dark Mode (future) ─────────────────────────── */
@media (prefers-color-scheme: dark) {
  /* SAKHIA intentionally uses its brand palette — no dark mode override yet */
}

/* ─── Print ──────────────────────────────────────── */
@media print {
  .bottom-nav, .app-header, .pwa-install-banner { display: none !important; }
  .page-content { overflow: visible !important; padding-bottom: 0 !important; }
}
