/* ================================================================
   TISAKENYUMBA — v44 ELITE DESIGN SYSTEM
   Premium transformation layer · Linear × Vercel × Stripe precision
   Loads last — overrides everything, breaks nothing.
   ================================================================ */

/* ----------------------------------------------------------------
   0. GLOBAL ENHANCEMENTS — reset + smoothness
   ---------------------------------------------------------------- */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { font-size: 15px; }

body {
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

/* ----------------------------------------------------------------
   1. EXTENDED DESIGN TOKENS — precision additions
   ---------------------------------------------------------------- */
:root {
  --sky:          #0EA5E9;
  --sky-dark:     #0284C7;
  --sky-light:    #38BDF8;
  --sky-pale:     #E0F2FE;
  --sky-deep:     #0C4A6E;
  --night:        #080E1A;
  --navy:         #0C1B30;
  --slate:        #1A3252;

  --moss:         #10B981;
  --gold:         #F59E0B;
  --danger:       #EF4444;
  --wa:           #25D366;

  /* Refined surfaces */
  --surface-glass:   rgba(255,255,255,0.04);
  --surface-glass2:  rgba(255,255,255,0.07);
  --border-glass:    rgba(255,255,255,0.09);
  --border-glass2:   rgba(255,255,255,0.15);

  /* Glow accents */
  --glow-sky:    rgba(14,165,233,0.18);
  --glow-sky-2:  rgba(56,189,248,0.12);
  --glow-moss:   rgba(16,185,129,0.15);
  --glow-gold:   rgba(245,158,11,0.15);

  /* Premium shadows */
  --sh-xs:  0 1px 2px rgba(0,0,0,0.08);
  --sh-sm:  0 2px 8px rgba(0,0,0,0.12);
  --sh-md:  0 4px 24px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1);
  --sh-lg:  0 8px 40px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.12);
  --sh-sky: 0 4px 24px rgba(14,165,233,0.3), 0 1px 4px rgba(14,165,233,0.2);

  /* Typography */
  --serif: 'Clash Display', sans-serif;
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  /* Border radius refinement */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-mid:     220ms;
  --dur-slow:    380ms;
}

/* ----------------------------------------------------------------
   2. ANIMATIONS — premium motion library
   ---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94) }
  to   { opacity: 1; transform: scale(1) }
}
@keyframes shimmer {
  0%   { background-position: -200% 0 }
  100% { background-position: 200% 0 }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50%       { opacity: 0.5; transform: scale(1.4) }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) }
  50%       { transform: translateY(-6px) }
}
@keyframes slideSheet {
  from { transform: translateY(60px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0 }
}
@keyframes spin {
  to { transform: rotate(360deg) }
}

/* ----------------------------------------------------------------
   3. SCROLL BAR — invisible but functional
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(14,165,233,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14,165,233,0.4); }

/* ----------------------------------------------------------------
   4. LANDING PAGE — cinematic transformation
   ---------------------------------------------------------------- */
#landing {
  background:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(14,165,233,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 5%  90%, rgba(56,189,248,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 80%, rgba(16,185,129,0.06) 0%, transparent 55%),
    #080E1A;
  position: relative;
  overflow: hidden;
}

/* Subtle animated grid */
#landing::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient noise texture */
#landing::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.6;
}

/* Landing topbar — refined */
.land-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8,14,26,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.land-topbar-logo img {
  height: 52px !important;
  width: auto;
}

.land-inner {
  position: relative; z-index: 1;
  max-width: 460px; width: 100%;
  padding: 0 20px;
}

/* Hero section */
.land-hero-block {
  padding: 56px 0 44px;
  text-align: center;
  animation: fadeUp 0.5s var(--ease) both;
}

/* Free badge — premium pill */
.land-free-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6EE7B7;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
}

.land-free-badge svg { color: #34D399; }

/* Hero title */
.land-title {
  font-family: var(--serif);
  font-size: clamp(46px, 12vw, 72px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #F0F9FF;
}

.land-title span {
  display: block;
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 50%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

/* Subtext */
.land-sub {
  font-size: 14px;
  color: rgba(125,211,252,0.75);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Role cards — elite glassmorphism */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.role-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
  padding: 26px 18px 22px;
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
}

.role-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,0.08) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.28s;
}

.role-card:hover {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(14,165,233,0.15);
}

.role-card:hover::after { opacity: 1; }

.role-card:active { transform: translateY(-2px) scale(0.98); }

.rc-icon {
  width: 48px; height: 48px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #38BDF8;
  transition: all 0.25s;
}

.role-card:hover .rc-icon {
  background: rgba(14,165,233,0.2);
  border-color: rgba(14,165,233,0.4);
  transform: scale(1.08);
}

.role-card h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px; color: #E8F4FD;
  letter-spacing: -0.02em;
}

.role-card p {
  font-size: 11.5px; color: rgba(125,211,252,0.6);
  line-height: 1.55;
}

.free-tag, .monthly-tag {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

.free-tag {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6EE7B7;
}

.monthly-tag {
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  color: #7DD3FC;
}

/* Areas strip */
.land-areas {
  font-size: 10.5px;
  color: rgba(37,99,168,0.7);
  letter-spacing: 0.04em;
  line-height: 1.8;
  padding-bottom: 32px;
}

/* How it works */
.how-section {
  padding: 40px 0 28px;
  position: relative;
  animation: fadeUp 0.55s 0.1s var(--ease) both;
}

.how-title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: #E0F2FE;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.how-tabs {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.how-tab {
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  color: rgba(125,211,252,0.6);
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.how-tab.active {
  background: rgba(14,165,233,0.2);
  color: #7DD3FC;
  border: 1px solid rgba(14,165,233,0.3);
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

.how-step {
  display: flex; align-items: flex-start; gap: 14px;
}

.how-num {
  width: 32px; height: 32px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #7DD3FC;
  flex-shrink: 0;
  font-family: var(--serif);
}

.how-text strong {
  font-size: 13px; font-weight: 700; color: #E0F2FE;
  display: block; margin-bottom: 3px;
}

.how-text p {
  font-size: 11.5px; color: rgba(125,211,252,0.55);
  line-height: 1.5;
}

.how-connector {
  width: 1px; height: 20px;
  background: linear-gradient(to bottom, rgba(14,165,233,0.25), rgba(14,165,233,0.08));
  margin-left: 15px; margin-top: 2px; margin-bottom: 2px;
}

/* ----------------------------------------------------------------
   5. NAVIGATION BARS — polished and precise
   ---------------------------------------------------------------- */
.screen-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  background: rgba(8,14,26,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.screen-nav-title {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700;
  color: #E8F4FD;
  letter-spacing: -0.02em;
}

.nav-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  color: rgba(125,211,252,0.75);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 8px 16px;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}

.nav-back-btn:hover {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.35);
  color: #BAE6FD;
  transform: translateX(-1px);
}

/* ----------------------------------------------------------------
   6. APP HEADER (search + dashboard screens)
   ---------------------------------------------------------------- */
.app-header {
  background: rgba(8,14,26,0.95);
  border-bottom: 1px solid rgba(14,165,233,0.1);
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(14,165,233,0.08);
}

.app-logo { font-family: var(--serif); }
.app-logo img { height: 44px !important; width: auto; }

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

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #7DD3FC;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.3);
  color: #BAE6FD;
}

.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 5px 14px 5px 5px;
  font-size: 12px; font-weight: 600;
  color: #BAE6FD;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.user-pill:hover {
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.3);
}

.avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 800;
  letter-spacing: 0.02em;
}

.avatar.green { background: linear-gradient(135deg, #10B981, #059669); }

/* ----------------------------------------------------------------
   7. AUTH SCREENS — premium form design
   ---------------------------------------------------------------- */
#tenant-auth, #agent-auth {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(14,165,233,0.18) 0%, transparent 65%),
    #0A1628;
  min-height: 100vh;
}

.auth-title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #E8F4FD;
  line-height: 1.1;
}

.auth-sub {
  font-size: 13px;
  color: rgba(125,211,252,0.65);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Notice boxes */
.free-notice {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #6EE7B7;
  display: flex; align-items: center; gap: 12px;
  line-height: 1.5;
}

.free-notice svg { color: #34D399; flex-shrink: 0; }
.free-notice strong { color: #A7F3D0; }

/* Form groups */
.fg {
  margin-bottom: 16px;
}

.fg label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(125,211,252,0.55);
  margin-bottom: 7px;
}

.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  font-size: 14px;
  background: rgba(255,255,255,0.04);
  color: #E8F4FD;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  line-height: 1.5;
}

.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: rgba(14,165,233,0.55);
  background: rgba(14,165,233,0.05);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.fg input::placeholder, .fg textarea::placeholder {
  color: rgba(125,211,252,0.28);
}

.fg select option { background: #0C1B30; color: #E0F2FE; }

.fg small {
  display: block;
  font-size: 10.5px;
  color: rgba(125,211,252,0.4);
  margin-top: 6px;
  line-height: 1.5;
}

/* Tab row */
.tab-row {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1; padding: 10px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  color: rgba(125,211,252,0.5);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.01em;
}

.tab-btn.active {
  background: rgba(14,165,233,0.2);
  color: #BAE6FD;
  border: 1px solid rgba(14,165,233,0.3);
  box-shadow: 0 1px 3px rgba(14,165,233,0.15);
}

/* Primary button */
.pri-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 60%, #0369A1 100%);
  color: white;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--dur-mid) var(--ease);
  box-shadow: var(--sh-sky);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}

.pri-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.pri-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.45), 0 2px 8px rgba(14,165,233,0.25);
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 60%, #0284C7 100%);
}

.pri-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}

.pri-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.terms-text {
  font-size: 11px;
  color: rgba(125,211,252,0.4);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.terms-text a {
  color: rgba(125,211,252,0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Plan comparison table */
.monthly-notice {
  background: rgba(14,165,233,0.07);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.monthly-notice h5 {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #7DD3FC;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}

.plan-compare-table {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.pct-head {
  display: grid; grid-template-columns: 1fr 0.7fr 0.9fr 0.7fr;
  background: rgba(14,165,233,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 9px 12px;
}

.pct-head .pct-feat {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(125,211,252,0.5);
}

.pct-head .pct-col {
  font-size: 10px; font-weight: 700;
  color: rgba(125,211,252,0.6);
  text-align: center;
}

.pct-head .pct-col.pct-pop {
  background: rgba(14,165,233,0.15);
  border-radius: 6px;
  color: #7DD3FC;
  font-weight: 800;
}

.pct-row {
  display: grid; grid-template-columns: 1fr 0.7fr 0.9fr 0.7fr;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
}

.pct-row:last-child { border-bottom: none; }

.pct-feat {
  font-size: 11px; color: rgba(224,242,254,0.65);
}

.pct-col {
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}

.pct-col.pct-pop {
  background: rgba(14,165,233,0.06);
}

.ti {
  width: 16px; height: 16px;
}

.ti.yes { color: #34D399; }
.ti.no  { color: rgba(248,113,113,0.6); }

/* NRC label + tooltip */
.nrc-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nrc-tooltip-wrap { position: relative; display: inline-flex; align-items: center; }

.nrc-lock-icon { color: rgba(125,211,252,0.5); cursor: help; }

.nrc-tooltip {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: 8px;
  background: #0C1B30;
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 11px; color: #7DD3FC;
  white-space: nowrap; max-width: 200px; white-space: normal;
  width: 200px; line-height: 1.5;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
  box-shadow: var(--sh-md);
}

.nrc-tooltip-wrap:hover .nrc-tooltip { opacity: 1; }

/* ----------------------------------------------------------------
   8. SEARCH HERO — elevated filter design
   ---------------------------------------------------------------- */
.search-hero {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(14,165,233,0.2) 0%, transparent 70%),
    linear-gradient(170deg, #080E1A 0%, #0C1B30 60%, #0A1A2E 100%);
  color: #E0F2FE;
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}

.search-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-top {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}

.hero-top h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #E8F4FD;
}

.hero-top p {
  font-size: 11px;
  color: rgba(125,211,252,0.55);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* Filter label row */
.filter-section-label-row {
  margin-bottom: 4px;
  position: relative; z-index: 1;
}

.fsl {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(125,211,252,0.5);
  display: inline-flex; align-items: center; gap: 5px;
}

/* Hero selects — refined */
.hero-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  color: #E8F4FD;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 6px;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  position: relative; z-index: 1;
}

.hero-select:focus {
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
  background: rgba(14,165,233,0.07);
}

.hero-select option {
  background: #0C1B30;
  color: #E0F2FE;
}

.hero-select-hint {
  font-size: 10px;
  color: rgba(125,211,252,0.3);
  margin-top: -4px;
  margin-bottom: 4px;
  padding-left: 2px;
}

/* Search button */
.search-actions {
  display: flex; gap: 8px; margin-top: 12px;
  position: relative; z-index: 1;
}

.search-go {
  flex: 1;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 55%, #0369A1 100%);
  color: white;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.02em;
  transition: all var(--dur-mid) var(--ease);
  box-shadow: var(--sh-sky);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.search-go::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.14) 0%, transparent 60%);
  pointer-events: none;
}

.search-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.5), 0 2px 8px rgba(14,165,233,0.25);
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 55%, #0284C7 100%);
}

.search-go:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}

.map-btn {
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  color: #BAE6FD;
  font-size: 13px;
  transition: all var(--dur-fast) var(--ease);
}

.map-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* Pills bar */
.pills-bar {
  padding: 10px 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  min-height: 0;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky-pale);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--sky-deep);
  animation: scaleIn 0.18s var(--ease-spring) both;
}

.pill-x {
  width: 16px; height: 16px;
  background: var(--sky);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.pill-x:hover { transform: scale(1.25) rotate(90deg); }

/* Listings section */
.listings-section { padding: 18px 20px; flex: 1; }

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

.section-hdr h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
}

.count-badge {
  font-size: 11px; font-weight: 700;
  background: var(--sky-pale);
  color: var(--sky-dark);
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   9. LISTING CARDS — premium enhancement
   ---------------------------------------------------------------- */
.listing-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.25);
}

.listing-card:active { transform: scale(0.98); }

/* Card image */
.card-img-v2 {
  position: relative; width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, #0C1B30 0%, #1A3252 100%);
  overflow: hidden; flex-shrink: 0;
}

/* Featured badge */
.card-feat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  box-shadow: 0 2px 10px rgba(245,158,11,0.4);
}

/* Price pill */
.card-price-pill {
  display: inline-flex; align-items: baseline; gap: 2px;
  background: rgba(8,20,40,0.75);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 16px; font-weight: 800;
  font-family: var(--serif);
  padding: 5px 12px; border-radius: 10px;
  border: 1px solid rgba(14,165,233,0.3);
  letter-spacing: -0.02em;
}

.card-price-pill span {
  font-size: 11px; font-weight: 500;
  opacity: 0.75; margin-left: 1px;
  font-family: var(--sans);
}

/* Card body */
.card-body-v2 {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
}

.card-title-v2 {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-beds-v2 {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--subtext);
  font-weight: 500;
}

/* Favourite button */
.card-fav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(8,20,40,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-spring);
}

.card-fav-btn:hover { transform: scale(1.12); background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.5); }
.card-fav-btn:active { transform: scale(0.9); }
.card-fav-btn.saved { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.6); }

/* ----------------------------------------------------------------
   10. AGENT DASHBOARD — stat cards + hero
   ---------------------------------------------------------------- */
.agent-hero {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(14,165,233,0.22) 0%, transparent 70%),
    linear-gradient(170deg, #080E1A 0%, #0C1B30 100%);
  color: #E0F2FE; padding: 22px 20px 20px;
  position: relative; overflow: hidden;
}

.agent-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.agent-hero h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  position: relative; z-index: 1;
}

.agent-hero p, #agent-plan-label {
  font-size: 12px; color: rgba(125,211,252,0.6);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}

/* Stat cards */
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 18px;
  position: relative; z-index: 1;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--dur-fast) var(--ease);
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
}

.stat-card:hover {
  border-color: rgba(14,165,233,0.25);
  background: rgba(14,165,233,0.08);
}

.stat-card .num {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700;
  color: #7DD3FC;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card .lbl {
  font-size: 9px; font-weight: 700;
  color: rgba(125,211,252,0.45);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Add listing button */
.add-listing-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: white; border-radius: var(--r-md);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--dur-mid) var(--ease);
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
  letter-spacing: 0.01em;
  position: relative; z-index: 1;
  overflow: hidden;
}

.add-listing-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.add-listing-btn:hover {
  box-shadow: 0 8px 32px rgba(14,165,233,0.5);
  transform: translateY(-2px);
}

/* Subscription banner */
.sub-banner {
  margin: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color var(--dur-fast);
}

.sub-banner:hover { border-color: var(--border2); }

.sub-info h4 {
  font-size: 13px; font-weight: 700;
  margin-bottom: 3px; color: var(--text);
}

.sub-info p { font-size: 11px; color: var(--subtext); }

.upgrade-btn {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: white; border-radius: 10px;
  padding: 8px 16px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(14,165,233,0.3);
  transition: all var(--dur-fast) var(--ease);
}

.upgrade-btn:hover {
  box-shadow: 0 4px 18px rgba(14,165,233,0.45);
  transform: translateY(-1px);
}

/* Dashboard body */
.dash-body { padding: 16px 20px; flex: 1; }

/* Health panel */
.health-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-top: 16px;
}

.health-panel h4 {
  font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
  color: var(--text);
}

.h-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.h-item:last-child { border: none; }

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

.h-dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}

.h-dot.ok   { background: var(--moss); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.h-dot.warn { background: var(--gold); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.h-dot.bad  { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,0.5); }

/* ----------------------------------------------------------------
   11. MODALS & BOTTOM SHEETS
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end; justify-content: center;
  padding: 0;
}

.modal-overlay.open { display: flex; }

.modal-sheet {
  width: 100%; max-width: 600px;
  max-height: 92vh; overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 0 20px 48px;
  animation: slideSheet 0.32s var(--ease-spring);
  overscroll-behavior: contain;
  position: relative;
}

.modal-sheet::before {
  content: '';
  position: sticky; top: 0; z-index: 1;
  display: block;
  height: 0;
}

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: var(--r-full);
  margin: 14px auto 8px;
}

.sheet-title {
  font-family: var(--serif);
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  display: flex; align-items: center;
}

.sheet-sub {
  font-size: 12px; color: var(--subtext);
  margin-bottom: 20px; line-height: 1.5;
}

.modal-nav-bar {
  display: flex; align-items: center;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.modal-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  color: var(--subtext);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 7px 15px;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}

.modal-back-btn:hover {
  color: var(--sky);
  border-color: var(--sky);
  background: var(--sky-pale);
}

.modal-nav-title {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-left: 12px;
  letter-spacing: -0.01em;
}

/* Notice boxes in modals */
.notice-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.6;
}

.listing-req-notice h5 {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}

.listing-req-notice ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}

.listing-req-notice ul li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--subtext);
}

.listing-req-notice ul li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
  transition: all var(--dur-fast) var(--ease);
  margin-bottom: 14px;
}

.upload-zone:hover {
  border-color: var(--sky);
  background: var(--sky-pale);
}

.uz-icon {
  width: 56px; height: 56px;
  background: var(--sky-pale);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky);
  margin: 0 auto 12px;
  transition: all var(--dur-fast) var(--ease-spring);
}

.upload-zone:hover .uz-icon {
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.3);
  transform: scale(1.08);
}

.upload-zone p {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}

.upload-hint {
  font-size: 11px !important;
  color: var(--subtext) !important;
  font-weight: 400 !important;
}

/* Form groups in modals */
.fg {
  margin-bottom: 16px;
}

.fg label {
  display: block;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--subtext);
  margin-bottom: 7px;
}

.fg input, .fg select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
}

.fg input:focus, .fg select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* Rent input */
.rent-input-wrap { position: relative; }
.rent-prefix {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px; font-weight: 700;
  color: var(--subtext); pointer-events: none;
}

/* Features grid */
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 16px;
}

/* Expiry options */
.expiry-opts {
  display: flex; gap: 8px; margin-bottom: 20px;
}

.exp-opt {
  flex: 1; padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  color: var(--subtext);
}

.exp-opt:hover { border-color: var(--sky); color: var(--sky); }
.exp-opt.sel   { border-color: var(--sky); background: var(--sky-pale); color: var(--sky-dark); }

.divider-line {
  height: 1px; background: var(--border);
  margin: 18px 0;
}

/* WhatsApp notice */
.wa-notice-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(37,211,102,0.06);
  border-color: rgba(37,211,102,0.18) !important;
  color: rgba(255,255,255,0.7);
}

/* Mpamba payment box */
.mpamba-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.mpamba-box h4 {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text); margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}

.mpamba-steps {
  display: flex; flex-direction: column; gap: 10px;
}

.mpamba-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 12.5px; color: var(--subtext);
  line-height: 1.5;
}

.mpamba-num {
  width: 24px; height: 24px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  color: var(--sky);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.mpamba-step strong { color: var(--text); }
.till { font-family: 'JetBrains Mono', monospace; }

/* Plan cards */
.portal-plan-cards, #prem-plans, #plan-cards {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}

/* Zone grid in map modal */
.zone-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}

/* ----------------------------------------------------------------
   12. TOAST — refined notification
   ---------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #E0F2FE;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  z-index: 500;
  transition: transform 0.28s var(--ease-spring), opacity 0.2s;
  white-space: nowrap;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  letter-spacing: 0.01em;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
}

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

.toast.success {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #6EE7B7;
}

.toast.error {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.3);
  color: #FCA5A5;
}

/* ----------------------------------------------------------------
   13. SPINNER & LOADING
   ---------------------------------------------------------------- */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(14,165,233,0.15);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

.loading-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 48px 20px;
  color: var(--subtext); font-size: 12px;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   14. OFFLINE BAR
   ---------------------------------------------------------------- */
#offline-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #0C1B30;
  color: #38BDF8;
  font-size: 12px; font-weight: 700;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(14,165,233,0.25);
  backdrop-filter: blur(12px);
  letter-spacing: 0.02em;
}

#offline-bar.show { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ----------------------------------------------------------------
   15. STATUS SCREEN (pending verification)
   ---------------------------------------------------------------- */
.status-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; padding: 48px 24px;
  text-align: center;
}

.si.si-success {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(16,185,129,0.4), 0 0 0 12px rgba(16,185,129,0.08);
  animation: scaleIn 0.4s var(--ease-spring);
}

.status-screen h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.status-screen p {
  font-size: 13px; color: var(--subtext);
  line-height: 1.65; max-width: 300px;
}

/* ----------------------------------------------------------------
   16. PORTAL PLANS SECTION
   ---------------------------------------------------------------- */
.portal-plans-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 18px;
  margin-top: 20px;
}

.portal-plans-title {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 6px;
  display: flex; align-items: center;
}

.portal-plans-sub {
  font-size: 11.5px; color: var(--subtext);
  margin-bottom: 18px; line-height: 1.5;
}

/* Subscription required notice */
.sub-required {
  margin: 14px 20px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}

.sub-required h4 {
  font-size: 14px; font-weight: 700;
  color: var(--gold); margin-bottom: 7px;
  display: flex; align-items: center; gap: 7px;
}

.sub-required p {
  font-size: 12px; color: var(--subtext);
  margin-bottom: 14px; line-height: 1.6;
}

/* ----------------------------------------------------------------
   17. FOCUS STATES — accessibility
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ----------------------------------------------------------------
   18. DARK MODE ENHANCEMENTS
   ---------------------------------------------------------------- */
[data-theme="dark"] .role-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .listing-card {
  background: var(--surface);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .listing-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(14,165,233,0.15);
}

[data-theme="dark"] .fg input,
[data-theme="dark"] .fg select,
[data-theme="dark"] .fg textarea {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .fg input:focus,
[data-theme="dark"] .fg select:focus,
[data-theme="dark"] .fg textarea:focus {
  border-color: var(--sky);
  background: rgba(14,165,233,0.05);
}

[data-theme="dark"] .modal-back-btn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #7DD3FC;
}

[data-theme="dark"] .modal-back-btn:hover {
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.35);
  color: #BAE6FD;
}

[data-theme="dark"] .tab-btn.active {
  background: rgba(14,165,233,0.15);
  color: #BAE6FD;
  border: 1px solid rgba(14,165,233,0.25);
}

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

/* ----------------------------------------------------------------
   20. RESPONSIVE — mobile-native quality
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .land-title { font-size: clamp(40px, 10vw, 56px); letter-spacing: -0.025em; }
  .role-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-card  { padding: 20px 14px 18px; border-radius: var(--r-lg); }
  .role-card h3 { font-size: 14px; }
  .rc-icon    { width: 40px; height: 40px; border-radius: 12px; }
  .rc-icon svg { width: 20px; height: 20px; }

  .search-hero { padding: 16px 16px 14px; }
  .hero-top h2 { font-size: 19px; }
  .listings-section { padding: 14px 16px; }

  .modal-sheet { padding: 0 16px 40px; }
  .sheet-title { font-size: 19px; }

  .stats-row { gap: 8px; }
  .stat-card .num { font-size: 24px; }

  .agent-hero { padding: 18px 16px 16px; }
  .dash-body  { padding: 14px 16px; }
  .sub-banner { margin: 12px 16px; padding: 12px 14px; }

  .pct-head, .pct-row {
    grid-template-columns: 1.2fr 0.7fr 0.9fr 0.7fr;
    padding: 7px 10px;
  }

  .how-tab { padding: 8px 14px; font-size: 11px; }

  .land-topbar { padding: 12px 18px; }
  .land-topbar-logo img { height: 42px !important; }
}

@media (max-width: 360px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-card { padding: 18px 16px; border-radius: var(--r-lg); }
  .land-hero-block { padding: 40px 0 32px; }
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-sheet {
    max-height: 85vh;
    border-radius: var(--r-xl);
    margin: 20px;
    width: calc(100% - 40px);
  }
  .sheet-handle { display: none; }
}

@media (min-width: 1024px) {
  .land-inner { max-width: 520px; }
  .land-title { font-size: 80px; }
}
