/* ============================================================
   مساحتي · Brand-Banner Theme
   Final design system — matches the brand banner aesthetic
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; line-height: 1.5; }
img, picture, svg { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 800; }

/* ---------- 2. TOKENS ---------- */
:root {
  --c-navy:       #1B3A6D;
  --c-navy-700:   #15305A;
  --c-blue:       #2563EB;
  --c-blue-soft:  #DBEAFE;
  --c-blue-pale:  #EFF6FF;
  --c-teal:       #0EA5A4;
  --c-green:      #16A34A;
  --c-green-soft: #DCFCE7;
  --c-warning:    #F59E0B;
  --c-warning-bg: #FEF3C7;
  --c-warning-fg: #92400E;
  --c-danger:     #DC2626;
  --c-danger-bg:  #FEE2E2;
  --c-danger-fg:  #991B1B;
  --c-success-bg: #DCFCE7;
  --c-success-fg: #15803D;
  --c-info-bg:    #DBEAFE;
  --c-info-fg:    #1E40AF;

  --c-ink:        #0B1F3F;
  --c-text:       #1F2937;
  --c-text-2:     #4B5563;
  --c-text-3:     #6B7280;
  --c-text-4:     #9CA3AF;
  --c-line:       #E5E7EB;
  --c-line-2:     #F1F3F5;
  --c-bg:         #FFFFFF;
  --c-bg-alt:     #F9FAFB;
  --c-bg-cool:    #F3F4F6;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(15,23,42,.04);
  --sh-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 6px 16px -4px rgba(27,58,109,.10), 0 2px 6px -2px rgba(27,58,109,.06);
  --sh-lg: 0 16px 36px -10px rgba(27,58,109,.18), 0 6px 16px -6px rgba(27,58,109,.08);
  --sh-xl: 0 30px 60px -20px rgba(27,58,109,.25), 0 10px 20px -8px rgba(27,58,109,.12);
  --sh-focus: 0 0 0 3px rgba(37,99,235,.18);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 150ms; --t-mid: 250ms; --t-slow: 400ms;

  --header-h: 80px;
  --container: 1280px;

  --bs-primary: var(--c-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-success: var(--c-green);
  --bs-success-rgb: 22, 163, 74;
  --bs-body-color: var(--c-text);
  --bs-body-bg: #fff;
  --bs-border-color: var(--c-line);
  --bs-link-color: var(--c-blue);
  --bs-link-hover-color: var(--c-navy);
  --bs-border-radius: var(--r-md);
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  font-feature-settings: 'kern','liga';
}

h1, h2, h3, h4 { color: var(--c-navy); letter-spacing: -.022em; }
h1 { font-size: 36px; font-weight: 900; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

a { color: var(--c-blue); transition: color var(--t-fast); }
a:hover { color: var(--c-navy); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-pale);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  width: 100%;
}

.text-soft { color: var(--c-text-2); }
.text-mute { color: var(--c-text-3); }
.text-brand { color: var(--c-navy); }
.font-mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- 3. BRAND LOGO ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-logo__mark {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.brand-logo__mark svg { width: 100%; height: 100%; }
.brand-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-logo__name {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -.02em;
}
.brand-logo__tag {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-logo__tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--c-blue);
}
.brand-logo__tag::after {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--c-green);
}
.brand-logo--sm .brand-logo__mark { width: 40px; height: 40px; }
.brand-logo--sm .brand-logo__name { font-size: 22px; }
.brand-logo--sm .brand-logo__tag { display: none; }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  height: var(--header-h);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-link {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 14.5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--c-blue-pale); color: var(--c-navy); }
.nav-link.is-active { color: var(--c-navy); background: var(--c-blue-pale); }
.nav-end { display: flex; align-items: center; gap: var(--s-3); }
@media (max-width: 920px) { .nav-primary { display: none; } }

/* User pill */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.user-pill:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  --bg: #fff;
  --fg: var(--c-navy);
  --bd: var(--c-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.btn--primary { --bg: var(--c-navy); --fg: #fff; --bd: var(--c-navy); }
.btn--primary:hover { --bg: var(--c-navy-700); --bd: var(--c-navy-700); }
.btn--blue { --bg: var(--c-blue); --fg: #fff; --bd: var(--c-blue); }
.btn--blue:hover { --bg: #1D4ED8; --bd: #1D4ED8; }
.btn--green { --bg: var(--c-green); --fg: #fff; --bd: var(--c-green); }
.btn--green:hover { --bg: #15803D; --bd: #15803D; }
.btn--danger { --bg: var(--c-danger); --fg: #fff; --bd: var(--c-danger); }
.btn--danger:hover { --bg: #B91C1C; --bd: #B91C1C; }
.btn--outline-danger { --bg: #fff; --fg: var(--c-danger); --bd: rgba(220,38,38,.3); }
.btn--outline-danger:hover { --bg: var(--c-danger); --fg: #fff; --bd: var(--c-danger); }
.btn--ghost { --bg: transparent; --bd: transparent; }
.btn--ghost:hover { --bg: var(--c-bg-cool); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn--xl { height: 60px; padding: 0 36px; font-size: 17px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }

/* ---------- 6. FORMS ---------- */
.field { display: block; margin-bottom: var(--s-4); }
.field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.field__hint { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 96px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: var(--sh-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-4); }
.form-control, .form-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: var(--sh-focus);
}
textarea.form-control { height: auto; padding: 12px 14px; min-height: 96px; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--c-navy); margin-bottom: 6px; display: block; }
.form-text { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

/* ---------- 7. CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
  font-weight: 700;
  color: var(--c-navy);
  font-size: 15px;
}
.card-body { padding: var(--s-5); }
.card-footer {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}

/* ---------- 8. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}
.badge.bg-success, .badge--success { background: var(--c-success-bg) !important; color: var(--c-success-fg) !important; }
.badge.bg-warning, .badge--warning { background: var(--c-warning-bg) !important; color: var(--c-warning-fg) !important; }
.badge.bg-danger, .badge--danger   { background: var(--c-danger-bg)  !important; color: var(--c-danger-fg)  !important; }
.badge.bg-info, .badge--info       { background: var(--c-info-bg)    !important; color: var(--c-info-fg)    !important; }
.badge.bg-secondary, .badge--neutral { background: var(--c-bg-cool)  !important; color: var(--c-text-2)     !important; }
.badge.bg-primary, .badge--primary { background: var(--c-blue-pale)  !important; color: var(--c-blue)       !important; }

/* ---------- 9. TABLES ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
  margin-bottom: 0;
}
.table thead { background: var(--c-bg-alt); }
.table thead th {
  text-align: start;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line-2);
  vertical-align: middle;
  color: var(--c-text);
}
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--c-bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-responsive { overflow-x: auto; border-radius: var(--r-lg); }
code.ref {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--c-blue-pale);
  color: var(--c-navy);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 10. ALERTS ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: var(--s-4);
  border: 1px solid transparent;
}
.alert-success, .alert--success { background: var(--c-success-bg); color: var(--c-success-fg); border-color: rgba(22,163,74,.18); }
.alert-warning, .alert--warning { background: var(--c-warning-bg); color: var(--c-warning-fg); border-color: rgba(245,158,11,.2); }
.alert-danger, .alert--danger   { background: var(--c-danger-bg);  color: var(--c-danger-fg);  border-color: rgba(220,38,38,.15); }
.alert-info, .alert--info       { background: var(--c-info-bg);    color: var(--c-info-fg);    border-color: rgba(37,99,235,.15); }

/* ============================================================
   PAGE: HERO (banner-style)
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  background: #fff;
  isolation: isolate; /* contain blob z-index inside hero only */
}
/* Blob clamped to a fixed pixel size — never explodes on mobile */
.hero__blob {
  position: absolute;
  top: -120px;
  inset-inline-start: -180px;
  width: 560px;
  height: 560px;
  max-width: 60vw;
  max-height: 60vw;
  pointer-events: none;
  z-index: -1; /* always behind everything */
  opacity: .55;
}
.hero__blob svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__dots {
  position: absolute;
  top: 80px;
  inset-inline-start: 380px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(27,58,109,.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: -1;
  display: none; /* keep hidden until layout is reliable across viewports */
}
@media (min-width: 1100px) { .hero__dots { display: block; } }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero__blob { width: 360px; height: 360px; top: -80px; inset-inline-start: -120px; opacity: .35; }
}

.hero__brand-block { margin-bottom: var(--s-8); }
.hero__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--s-6);
}
.hero__title-emph {
  position: relative;
  display: inline-block;
}
.hero__title-emph::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 6px;
  width: 100%;
  height: 12px;
  background: var(--c-green);
  opacity: .25;
  border-radius: 6px;
  z-index: -1;
}
.hero__subtitle {
  font-size: 17px;
  color: var(--c-text-2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--s-8);
}
.hero__ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-12);
}

/* Hero quick-search bar (alternative to ctas) */
.hero__search {
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 8px;
  display: flex;
  align-items: stretch;
  max-width: 600px;
  margin-bottom: var(--s-12);
  box-shadow: var(--sh-lg);
}
.hero__search-field {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background var(--t-fast);
}
.hero__search-field + .hero__search-field { border-inline-start: 1px solid var(--c-line); }
.hero__search-field:hover { background: var(--c-bg-cool); }
.hero__search-label { font-size: 11px; font-weight: 700; color: var(--c-navy); margin-bottom: 2px; }
.hero__search-input {
  border: 0; background: transparent;
  font-size: 13px;
  width: 100%;
  outline: none;
  height: 22px;
  color: var(--c-text);
}
.hero__search-input::placeholder { color: var(--c-text-3); }
.hero__search-submit {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
  border: 0;
  transition: all var(--t-fast);
}
.hero__search-submit:hover { background: var(--c-navy); transform: scale(1.05); }
@media (max-width: 720px) {
  .hero__search { flex-direction: column; border-radius: var(--r-xl); padding: 12px; }
  .hero__search-field + .hero__search-field { border-inline-start: 0; border-top: 1px solid var(--c-line); }
  .hero__search-submit { width: 100%; height: 44px; border-radius: var(--r-md); margin-top: 8px; }
}

/* Hero features row (4 cards in line — banner footer) */
.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-line);
}
@media (max-width: 700px) { .hero__features { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--s-2);
}
.hero__feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-blue-pale), #fff);
  border: 1px solid var(--c-blue-soft);
  border-radius: var(--r-md);
  color: var(--c-navy);
  margin-bottom: 6px;
}
.hero__feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
}
.hero__feature-sub { font-size: 12.5px; color: var(--c-text-3); line-height: 1.4; }

/* Hero visual (laptop + phone mockup) */
.hero__visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}
@media (max-width: 980px) { .hero__visual { height: 420px; } }
@media (max-width: 600px) { .hero__visual { height: 320px; max-width: 100%; overflow: hidden; } }

.mockup { position: relative; width: 100%; height: 100%; }

.mockup-laptop {
  position: absolute;
  inset-inline-start: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 78%;
  aspect-ratio: 16/10;
  background: var(--c-navy);
  border-radius: 14px 14px 6px 6px;
  padding: 10px 10px 14px 10px;
  box-shadow: var(--sh-xl);
  z-index: 2;
}
.mockup-laptop::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -8%;
  right: -8%;
  height: 14px;
  background: linear-gradient(180deg, var(--c-navy) 0%, #0a1429 100%);
  border-radius: 0 0 20px 20px;
}
.mockup-laptop__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.mock-dash {
  display: grid;
  grid-template-columns: 1fr 80px;
  height: 100%;
}
.mock-dash__main { padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mock-dash__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}
.mock-dash__brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--c-navy); font-size: 10px; }
.mock-dash__brand-mark { width: 14px; height: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.mock-dash__brand-mark span { border-radius: 1.5px; }
.mock-dash__brand-mark span:nth-child(1) { background: var(--c-blue); }
.mock-dash__brand-mark span:nth-child(2) { background: var(--c-green); }
.mock-dash__brand-mark span:nth-child(3) { background: var(--c-navy); }
.mock-dash__brand-mark span:nth-child(4) { background: var(--c-teal); }
.mock-dash__title { color: var(--c-navy); font-size: 9px; font-weight: 700; }
.mock-dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-kpi { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: 4px; padding: 5px 6px; }
.mock-kpi__lbl { font-size: 6.5px; color: var(--c-text-3); margin-bottom: 1px; }
.mock-kpi__val { font-size: 11px; font-weight: 800; color: var(--c-navy); line-height: 1; }
.mock-dash__row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px; flex: 1; min-height: 0; }
.mock-dash__panel {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.mock-dash__panel-title { color: var(--c-navy); font-weight: 700; font-size: 8px; border-bottom: 1px solid var(--c-line); padding-bottom: 3px; }
.mock-bookings { display: flex; flex-direction: column; gap: 3px; }
.mock-booking { display: grid; grid-template-columns: 18px 1fr; gap: 4px; padding: 3px; background: #fff; border-radius: 3px; align-items: center; }
.mock-booking__thumb { width: 18px; height: 18px; border-radius: 3px; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); }
.mock-booking__lines { display: flex; flex-direction: column; gap: 1.5px; }
.mock-booking__line { height: 3px; border-radius: 2px; background: var(--c-line); }
.mock-booking__line:first-child { background: var(--c-navy); width: 80%; }
.mock-booking__line:last-child { width: 50%; }
.mock-mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5px; }
.mock-mini-cal__cell { aspect-ratio: 1; background: #fff; border-radius: 1.5px; font-size: 5px; display: flex; align-items: center; justify-content: center; color: var(--c-text-3); }
.mock-mini-cal__cell--booked { background: var(--c-blue-soft); color: var(--c-navy); }
.mock-mini-cal__cell--selected { background: var(--c-blue); color: #fff; }
.mock-dash__sidebar {
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
}
.mock-dash__nav-item {
  padding: 4px 6px;
  color: rgba(255,255,255,.65);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
}
.mock-dash__nav-item--active { background: var(--c-blue); color: #fff; }
.mock-dash__nav-item span { width: 6px; height: 6px; background: currentColor; border-radius: 1.5px; opacity: .8; }

.mockup-phone {
  position: absolute;
  inset-inline-end: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  max-width: 200px;
  aspect-ratio: 9/19;
  background: var(--c-navy);
  border-radius: 24px;
  padding: 6px;
  box-shadow: var(--sh-xl);
  z-index: 3;
}
.mockup-phone__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
}
.mockup-phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: var(--c-navy);
  border-radius: 0 0 8px 8px;
  z-index: 2;
}
.mock-phone-greet { font-size: 9px; color: var(--c-text-3); margin-top: 8px; }
.mock-phone-greet strong { color: var(--c-navy); font-weight: 800; font-size: 12px; display: block; margin-top: 2px; }
.mock-phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.mock-phone-tile { aspect-ratio: 1; background: var(--c-blue-pale); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 6.5px; color: var(--c-navy); font-weight: 700; gap: 2px; }
.mock-phone-tile__icon { width: 14px; height: 14px; background: var(--c-blue); border-radius: 4px; }
.mock-phone-tile:nth-child(2) .mock-phone-tile__icon { background: var(--c-green); }
.mock-phone-tile:nth-child(3) .mock-phone-tile__icon { background: var(--c-teal); }
.mock-phone-tile:nth-child(4) .mock-phone-tile__icon { background: var(--c-navy); }
.mock-phone-tile:nth-child(5) .mock-phone-tile__icon { background: var(--c-blue); }
.mock-phone-tile:nth-child(6) .mock-phone-tile__icon { background: var(--c-teal); }
.mock-phone-listed { margin-top: 10px; padding: 6px 4px; font-size: 7px; color: var(--c-text-3); border-top: 1px solid var(--c-line); }
.mock-phone-listed strong { display: block; font-size: 9px; color: var(--c-navy); margin-bottom: 4px; }
.mock-phone-card { display: grid; grid-template-columns: 30px 1fr; gap: 5px; padding: 4px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; margin-top: 4px; align-items: center; }
.mock-phone-card__thumb { width: 30px; height: 24px; border-radius: 3px; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); }
.mock-phone-card__lines { display: flex; flex-direction: column; gap: 2px; }
.mock-phone-card__line { height: 3px; background: var(--c-line); border-radius: 2px; }
.mock-phone-card__line:first-child { background: var(--c-navy); width: 80%; }
.mock-phone-card__line:last-child { width: 60%; }

.mock-photo-card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: var(--sh-lg);
  z-index: 4;
}
.mock-photo-card--1 { top: 4%; inset-inline-end: -2%; width: 110px; height: 80px; transform: rotate(8deg); background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.mock-photo-card--2 { top: 28%; inset-inline-end: -6%; width: 120px; height: 90px; transform: rotate(-4deg); background: linear-gradient(135deg, #4ADE80, #16A34A); }
.mock-photo-card--3 { bottom: 14%; inset-inline-end: -3%; width: 110px; height: 80px; transform: rotate(6deg); background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.mock-photo-card--4 { bottom: -2%; inset-inline-end: 18%; width: 100px; height: 70px; transform: rotate(-8deg); background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
@media (max-width: 700px) {
  .mock-photo-card { display: none; }
  .mockup-laptop { width: 90%; inset-inline-start: 5%; }
  .mockup-phone { width: 35%; max-width: 160px; inset-inline-end: 0; }
}

/* Feature strip below hero */
.feature-strip {
  background: var(--c-navy);
  color: rgba(255,255,255,.85);
  border-radius: var(--r-2xl);
  padding: var(--s-8) var(--s-10);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  box-shadow: var(--sh-xl);
}
@media (max-width: 800px) { .feature-strip { grid-template-columns: repeat(2, 1fr); padding: var(--s-6); } }
.feature-strip__item { display: flex; align-items: center; gap: var(--s-3); }
.feature-strip__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  color: var(--c-green);
  font-size: 20px;
  flex-shrink: 0;
}
.feature-strip__text { display: flex; flex-direction: column; gap: 2px; }
.feature-strip__title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.feature-strip__sub { font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--s-12); }
.section__head h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: var(--s-3); }
.section__head p { font-size: 16px; color: var(--c-text-2); line-height: 1.6; }

/* Section-head for in-app pages (left-aligned) */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head p { color: var(--c-text-3); font-size: 14px; }

/* ---------- Categories ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.cat-card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--c-line);
  transition: all var(--t-mid) var(--ease);
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.cat-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-4);
  background: var(--c-blue-pale);
  color: var(--c-navy);
}
.cat-card[data-tone="blue"] .cat-card__icon { background: var(--c-blue-pale); color: var(--c-blue); }
.cat-card[data-tone="green"] .cat-card__icon { background: var(--c-green-soft); color: var(--c-green); }
.cat-card[data-tone="teal"] .cat-card__icon { background: rgba(14,165,164,.12); color: var(--c-teal); }
.cat-card[data-tone="navy"] .cat-card__icon { background: rgba(27,58,109,.08); color: var(--c-navy); }
.cat-card h4 { font-size: 17px; margin-bottom: 6px; color: var(--c-navy); }
.cat-card p { font-size: 13.5px; color: var(--c-text-3); line-height: 1.5; }
.cat-card__count { display: inline-block; margin-top: var(--s-3); font-size: 12px; font-weight: 700; color: var(--c-blue); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-xl);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.step__num {
  position: absolute;
  top: var(--s-6);
  inset-inline-end: var(--s-6);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-blue-pale);
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step__icon {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  color: #fff;
  margin-bottom: var(--s-5);
}
.step:nth-child(2) .step__icon { background: linear-gradient(135deg, var(--c-teal), var(--c-green)); }
.step:nth-child(3) .step__icon { background: linear-gradient(135deg, var(--c-green), #15803D); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--c-text-2); line-height: 1.6; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  background: linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  padding: var(--s-12) var(--s-8);
  border-radius: var(--r-2xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stat { text-align: center; position: relative; }
.stat__num { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat__lbl { font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: var(--s-8); } }

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--c-blue-pale), #fff);
  border: 1px solid var(--c-blue-soft);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  inset-inline-end: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(26px, 4vw, 40px); color: var(--c-navy); margin-bottom: var(--s-3); }
.cta-block p { font-size: 16px; color: var(--c-text-2); margin-bottom: var(--s-8); max-width: 540px; margin-inline: auto; }
.cta-block__ctas { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.7);
  padding: var(--s-16) 0 var(--s-8);
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-4);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-12);
}
@media (max-width: 800px) { .site-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.footer-link { display: block; padding: 6px 0; color: rgba(255,255,255,.6); font-size: 14px; transition: color var(--t-fast); }
.footer-link:hover { color: #fff; }
.site-footer .brand-logo__name { color: #fff; }
.site-footer .brand-logo__tag { color: rgba(255,255,255,.6); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
}
.social-row { display: flex; gap: var(--s-3); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
}
.social-row a:hover { background: var(--c-blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   PAGE: SPACES BROWSE (filters + grid)
   ============================================================ */
.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-8);
}
@media (max-width: 900px) { .browse-layout { grid-template-columns: 1fr; } }
.browse-filters {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: sticky;
  top: calc(var(--header-h) + 16px);
  height: fit-content;
}
.browse-filters h3 { font-size: 15px; margin-bottom: var(--s-4); }

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}

/* Space card */
.space-card {
  display: block;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  text-decoration: none;
  color: inherit;
}
.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
  color: inherit;
}
.space-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--c-bg-cool);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.space-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18));
}
.space-card__badge {
  position: absolute;
  top: var(--s-3);
  inset-inline-start: var(--s-3);
  background: rgba(255,255,255,.96);
  color: var(--c-navy);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.space-card__body { padding: var(--s-4); }
.space-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-3);
  margin-bottom: 6px;
}
.space-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.space-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  flex-shrink: 0;
}
.space-card__rating .bi-star-fill { color: var(--c-warning); font-size: 12px; }
.space-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
}
.space-card__meta i { color: var(--c-blue); margin-inline-end: 2px; }
.space-card__desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s-4);
}
.space-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-2);
}
.space-card__price-amount { font-size: 18px; font-weight: 800; color: var(--c-navy); }
.space-card__price-unit { font-size: 12px; color: var(--c-text-3); margin-inline-start: 2px; }
.space-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PAGE: SPACE DETAILS
   ============================================================ */
.detail-hero { padding: var(--s-8) 0 var(--s-6); }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-3);
  margin-bottom: var(--s-4);
}
.detail-back:hover { color: var(--c-navy); }
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: var(--s-6);
}
.detail-meta__rating { font-weight: 700; color: var(--c-navy); display: inline-flex; align-items: center; gap: 4px; }
.detail-meta__rating .bi-star-fill { color: var(--c-warning); }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
.gallery__cell {
  background: var(--c-bg-cool);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: filter var(--t-fast);
}
.gallery__cell:hover { filter: brightness(.92); }
.gallery__cell--main { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .gallery__cell:not(.gallery__cell--main) { display: none; }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-12);
}
@media (max-width: 1000px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-block {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--c-line);
}
.detail-block:last-child { border-bottom: 0; }
.detail-block h2 { margin-bottom: var(--s-5); font-size: 22px; }

/* Booking widget */
.booking-widget {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-md);
}
.booking-widget__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-5);
}
.booking-widget__price { font-size: 26px; font-weight: 800; color: var(--c-navy); }
.booking-widget__per { color: var(--c-text-2); font-size: 14px; }

#spaceCalendar {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  margin-top: var(--s-4);
}
.fc { font-family: inherit; }
.fc .fc-toolbar-title { font-size: 16px; color: var(--c-navy); font-weight: 800; }
.fc .fc-button {
  background: #fff !important;
  border: 1.5px solid var(--c-line) !important;
  color: var(--c-text-2) !important;
  box-shadow: none !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--r-pill) !important;
  text-transform: none !important;
}
.fc .fc-button:hover { background: var(--c-blue-pale) !important; color: var(--c-navy) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--c-navy) !important;
  border-color: var(--c-navy) !important;
  color: #fff !important;
}
.fc-day-today { background: var(--c-blue-pale) !important; }
.fc-event { border-radius: 4px !important; padding: 2px 4px !important; font-size: 11px !important; }

/* ============================================================
   PAGE: AUTH
   ============================================================ */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: var(--s-12) var(--s-8); }
.auth-form-card { width: 100%; max-width: 440px; }
.auth-form-card h1 { font-size: 30px; margin-bottom: var(--s-3); }
.auth-form-card .lead { color: var(--c-text-2); font-size: 15px; margin-bottom: var(--s-8); }
.auth-side {
  background:
    radial-gradient(circle at 0% 100%, rgba(14,165,164,.4), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(22,163,74,.25), transparent 50%),
    linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  color: #fff;
  padding: var(--s-12);
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin-bottom: var(--s-4); }
.auth-side p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; }
.auth-side__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--s-6);
  align-self: flex-start;
}
.auth-side__features {
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-3);
}
.auth-side__feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.auth-side__feature i { color: #5EEAD4; font-size: 18px; }

/* ============================================================
   PAGE: DASHBOARD
   ============================================================ */
.dash-greet {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8);
  margin-bottom: var(--s-6);
  position: relative;
  overflow: hidden;
}
.dash-greet::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,164,.3), transparent 70%);
  pointer-events: none;
}
.dash-greet h1 { color: #fff; font-size: 26px; margin-bottom: 6px; position: relative; }
.dash-greet p { color: rgba(255,255,255,.75); font-size: 15px; position: relative; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.kpi__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kpi__icon--blue   { background: var(--c-blue-pale); color: var(--c-blue); }
.kpi__icon--green  { background: var(--c-green-soft); color: var(--c-green); }
.kpi__icon--warning{ background: var(--c-warning-bg); color: var(--c-warning-fg); }
.kpi__icon--info   { background: rgba(14,165,164,.12); color: var(--c-teal); }
.kpi__icon--navy   { background: rgba(27,58,109,.08); color: var(--c-navy); }
.kpi__lbl { font-size: 13px; color: var(--c-text-3); margin-bottom: 4px; font-weight: 500; }
.kpi__num { font-size: 24px; font-weight: 800; color: var(--c-navy); line-height: 1; letter-spacing: -.02em; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
}
.empty-state__icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--s-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-blue-pale);
  border-radius: 50%;
  font-size: 32px;
  color: var(--c-blue);
}
.empty-state h3 { color: var(--c-navy); margin-bottom: var(--s-2); }
.empty-state p { color: var(--c-text-3); margin-bottom: var(--s-6); }

/* ---------- Pagination ---------- */
.pagination { gap: 6px; display: flex; justify-content: center; padding: var(--s-6) 0; flex-wrap: wrap; }
.pagination .page-link {
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md) !important;
  color: var(--c-text-2);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--t-fast);
}
.pagination .page-link:hover { background: var(--c-blue-pale); color: var(--c-navy); border-color: var(--c-blue-soft); }
.pagination .page-item.active .page-link { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* ---------- Modal ---------- */
.modal-content { border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.modal-header { border-bottom: 1px solid var(--c-line); padding: var(--s-5); }
.modal-title { color: var(--c-navy); font-weight: 800; font-size: 18px; }
.modal-footer { border-top: 1px solid var(--c-line); padding: var(--s-4) var(--s-5); }
[dir=rtl] .modal-header .btn-close { margin-right: auto; margin-left: 0; }

/* ---------- Bootstrap dropdown override ---------- */
.dropdown-menu {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 6px;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--c-blue-pale); color: var(--c-navy); }
.dropdown-divider { margin: 6px 0; border-color: var(--c-line); }
.dropdown-header { padding: 8px 12px; font-size: 12px; color: var(--c-text-3); }

/* ---------- Notif dropdown ---------- */
.notif-trigger { position: relative; }
.notif-badge-pill {
  position: absolute;
  top: 4px; inset-inline-start: 4px;
  min-width: 18px; height: 18px;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--r-pill);
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
  display: block;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-line-2);
  color: var(--c-text);
  transition: background var(--t-fast);
}
.notif-item:hover { background: var(--c-bg-alt); color: var(--c-text); }
.notif-item.unread { background: var(--c-blue-pale); border-inline-end: 3px solid var(--c-blue); }
.notif-item__title { font-weight: 700; font-size: 13px; color: var(--c-navy); margin-bottom: 2px; }
.notif-item__msg { font-size: 12.5px; color: var(--c-text-3); line-height: 1.4; }
.notif-item__time { font-size: 11px; color: var(--c-text-4); margin-top: 4px; }

/* ---------- Booking summary banner ---------- */
.booking-summary {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
}
.booking-summary h2 { color: #fff; margin-bottom: 4px; }
.booking-summary .reference {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  display: inline-block;
}
.booking-detail-row {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line-2);
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 14px;
}
.booking-detail-row:last-child { border-bottom: 0; }
.booking-detail-row .label { color: var(--c-text-3); }
.booking-detail-row .value { font-weight: 700; color: var(--c-navy); text-align: end; }

/* ---------- Owner space form ---------- */
.form-section {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  overflow: hidden;
}
.form-section__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.form-section__head h3 { font-size: 16px; }
.form-section__body { padding: var(--s-5); }

/* ---------- Image grid for uploads ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.upload-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
}

/* ---------- Tabs (nav-pills override) ---------- */
.nav-pills { gap: 4px; flex-wrap: wrap; }
.nav-pills .nav-link {
  background: #fff;
  border: 1.5px solid var(--c-line);
  color: var(--c-text-2);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-pills .nav-link:hover { background: var(--c-blue-pale); color: var(--c-navy); border-color: var(--c-blue-soft); }
.nav-pills .nav-link.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- Misc ---------- */
::selection { background: var(--c-navy); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-line); border: 3px solid #fff; border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* RTL fixes */
[dir=rtl] .me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
[dir=rtl] .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }
[dir=rtl] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir=rtl] .ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
[dir=rtl] .ms-2 { margin-right: .5rem !important; margin-left: 0 !important; }
[dir=rtl] .carousel-control-prev { right: 0; left: auto; }
[dir=rtl] .carousel-control-next { left: 0; right: auto; }
