/* ============================================================
   LandFin Governance Hub — Main Stylesheet
   Design: Institutional · Vibrant · Data-Oriented
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Palette */
  --navy:      #0A1628;
  --navy-mid:  #112240;
  --blue:      #1565C0;
  --blue-mid:  #1976D2;
  --blue-light:#2196F3;
  --teal:      #00695C;
  --teal-mid:  #00897B;
  --teal-light:#26A69A;
  --gold:      #F57F17;
  --gold-mid:  #F9A825;
  --gold-light:#FDD835;
  --green:     #2E7D32;
  --green-mid: #43A047;
  --red:       #C62828;
  --red-mid:   #E53935;
  --orange:    #E65100;

  /* Neutrals */
  --white:     #FFFFFF;
  --gray-50:   #F8F9FA;
  --gray-100:  #F1F3F5;
  --gray-200:  #E9ECEF;
  --gray-300:  #DEE2E6;
  --gray-400:  #CED4DA;
  --gray-500:  #ADB5BD;
  --gray-600:  #6C757D;
  --gray-700:  #495057;
  --gray-800:  #343A40;
  --gray-900:  #212529;

  /* Semantic */
  --text-primary:   #1A1F2E;
  --text-secondary: #4A5568;
  --text-muted:     #718096;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E0;
  --bg-page:        #F0F4F8;
  --bg-card:        #FFFFFF;
  --bg-sidebar:     #0A1628;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.12);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.12s ease;

  /* Sidebar */
  --sidebar-w: 260px;
  --topbar-h:  64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; font-weight: 600; line-height: 1.25; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-mid); }
img { max-width: 100%; }
code, pre { font-family: 'JetBrains Mono', monospace; }

/* ══════════════════════════════════
   PUBLIC / MARKETING PAGES
══════════════════════════════════ */

/* ── Public Nav ── */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 72px;
  display: flex; align-items: center;
}
.pub-nav .nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-nav .logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.pub-nav .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.pub-nav .logo-text { color: white; }
.pub-nav .logo-text strong { font-family: 'Sora',sans-serif; font-size: 1.05rem; display: block; }
.pub-nav .logo-text span { font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; }
.pub-nav .nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.pub-nav .nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.875rem; border-radius: var(--r-sm);
  transition: var(--transition);
}
.pub-nav .nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
.pub-nav .nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(21,101,192,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,105,92,0.3) 0%, transparent 60%);
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  max-width: 900px; text-align: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(33,150,243,0.15); border: 1px solid rgba(33,150,243,0.3);
  border-radius: var(--r-full);
  padding: 0.375rem 1rem; color: #90CAF9; font-size: 0.8rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: white; line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--blue-light), var(--teal-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p.subtitle {
  font-size: 1.2rem; color: rgba(255,255,255,0.7);
  max-width: 660px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}

/* ── Stats Band ── */
.stats-band {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 2rem;
}
.stats-band .inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; text-align: center;
}
.stat-item .num { font-size: 2rem; font-weight: 700; color: var(--gold-mid); font-family: 'Sora',sans-serif; }
.stat-item .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ── Public Section Container ── */
.pub-section { padding: 5rem 2rem; }
.pub-section .inner { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card-icon.blue  { background: #E3F2FD; }
.card-icon.teal  { background: #E0F2F1; }
.card-icon.gold  { background: #FFF8E1; }
.card-icon.green { background: #E8F5E9; }
.card-icon.red   { background: #FFEBEE; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: white;
}
.btn-primary:hover { background: var(--blue-mid); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,192,0.35); }
.btn-secondary {
  background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.6); }
.btn-teal   { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-mid); color: white; }
.btn-gold   { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-mid); color: var(--navy); }
.btn-outline {
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-sm   { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.btn-lg   { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-danger { background: var(--red-mid); color: white; }
.btn-success { background: var(--green-mid); color: white; }
.btn-warning { background: var(--gold); color: var(--navy); }
.btn-ghost { background: var(--gray-100); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--gray-200); color: var(--text-primary); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.65rem; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-success  { background: #E8F5E9; color: #2E7D32; }
.badge-warning  { background: #FFF8E1; color: #E65100; }
.badge-danger   { background: #FFEBEE; color: #C62828; }
.badge-info     { background: #E3F2FD; color: #1565C0; }
.badge-secondary{ background: #F1F3F5; color: #495057; }
.badge-teal     { background: #E0F2F1; color: #00695C; }
.badge-gold     { background: #FFF8E1; color: #F57F17; }

/* ══════════════════════════════════
   APP LAYOUT (authenticated)
══════════════════════════════════ */

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--navy);
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 900;
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-brand .logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.brand-text strong { display: block; font-family: 'Sora',sans-serif; font-size: 0.875rem; color: white; }
.brand-text span   { font-size: 0.65rem; color: rgba(255,255,255,0.45); }

.sidebar-nav {
  flex: 1; padding: 1rem 0.75rem;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-section-title {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3); padding: 1rem 0.5rem 0.4rem; font-weight: 600;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 0.575rem 0.75rem; border-radius: var(--r-sm);
  color: rgba(255,255,255,0.62); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); text-decoration: none;
  position: relative;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-link.active {
  color: white; background: rgba(33,150,243,0.2);
  border-left: 3px solid var(--blue-light); padding-left: calc(0.75rem - 3px);
}
.nav-link .icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; font-size: 0.68rem; padding: 0.1rem 0.45rem;
  border-radius: var(--r-full); background: var(--red-mid); color: white; font-weight: 600;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; color: white; flex-shrink: 0;
}
.user-info strong { display: block; font-size: 0.8rem; color: white; }
.user-info span   { font-size: 0.68rem; color: rgba(255,255,255,0.45); }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: white; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky; top: 0; z-index: 800;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.page-title  { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.breadcrumb  { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gray-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 1rem;
  text-decoration: none;
}
.topbar-icon-btn:hover { background: var(--gray-200); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-mid); border: 2px solid white;
}

/* ── Page Content ── */
.page-content { flex: 1; padding: 1.75rem; }
.page-header  { margin-bottom: 1.75rem; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.page-header p  { color: var(--text-secondary); font-size: 0.875rem; }
.page-actions   { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ── Stat Cards (app) ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .sc-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; }
.stat-card .sc-value { font-size: 1.8rem; font-weight: 700; font-family: 'Sora',sans-serif; color: var(--text-primary); line-height: 1; }
.stat-card .sc-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.stat-card .sc-icon  { position: absolute; right: 1rem; top: 1rem; font-size: 2rem; opacity: 0.12; }
.stat-card.blue  { border-left: 4px solid var(--blue); }
.stat-card.teal  { border-left: 4px solid var(--teal); }
.stat-card.gold  { border-left: 4px solid var(--gold); }
.stat-card.green { border-left: 4px solid var(--green-mid); }
.stat-card.red   { border-left: 4px solid var(--red-mid); }

/* ── App Cards ── */
.app-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.app-card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.app-card-header h3 { font-size: 0.95rem; font-weight: 600; }
.app-card-body { padding: 1.25rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  background: var(--gray-50); color: var(--text-secondary);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 2px solid var(--border);
}
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table .actions { display: flex; gap: 0.375rem; flex-wrap: wrap; }

/* ── Forms ── */
.form-group   { margin-bottom: 1.25rem; }
.form-label   { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-label.required::after { content: ' *'; color: var(--red-mid); }
.form-control {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text-primary);
  background: white; transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.form-control::placeholder { color: var(--gray-500); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text-primary);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem;
}

/* ── Alerts / Flash ── */
.alert {
  padding: 0.875rem 1rem; border-radius: var(--r-sm);
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; margin-bottom: 1.25rem;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-warning { background: #FFF8E1; color: #E65100; border: 1px solid #FFE0B2; }
.alert-danger  { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-info    { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ── Quick Actions ── */
.quick-actions {
  display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.75rem;
}
.qa-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: white;
  color: var(--text-primary); transition: var(--transition);
  text-decoration: none;
}
.qa-btn:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.qa-btn .icon { font-size: 1rem; }

/* ── Timeline ── */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { display: flex; gap: 1rem; padding: 0 0 1.25rem 0; position: relative; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; border: 2px solid white; position: relative; z-index: 1;
}
.tl-blue   { background: var(--blue);     color: white; }
.tl-green  { background: var(--green-mid);color: white; }
.tl-gold   { background: var(--gold);     color: var(--navy); }
.tl-red    { background: var(--red-mid);  color: white; }
.tl-teal   { background: var(--teal-mid); color: white; }
.tl-gray   { background: var(--gray-400); color: white; }
.timeline-body { flex: 1; padding-top: 4px; }
.timeline-body .tl-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.timeline-body .tl-sub   { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.15rem; }
.timeline-body .tl-time  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── Filter Bar ── */
.filter-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; background: var(--gray-50); border-bottom: 1px solid var(--border);
}
.filter-bar .form-control { width: auto; min-width: 160px; }
.search-input-wrap { position: relative; }
.search-input-wrap .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-500); }
.search-input-wrap .form-control { padding-left: 2.2rem; }

/* ── Map Container ── */
.map-container {
  height: 480px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: #e8edf4;
}

/* ── Workflow Steps ── */
.workflow-steps {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.wf-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  background: var(--gray-100); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  position: relative; margin-right: 0;
}
.wf-step:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.wf-step:last-child  { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.wf-step.active  { background: var(--blue); color: white; border-color: var(--blue); }
.wf-step.done    { background: var(--green-mid); color: white; border-color: var(--green-mid); }
.wf-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }

/* ── Parcel Profile Card ── */
.parcel-profile {
  display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem;
}
.parcel-map-thumb {
  height: 200px; background: var(--gray-100); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gray-400);
  border: 1px solid var(--border); overflow: hidden;
}
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.info-row:last-child { border-bottom: none; }
.info-row .key { color: var(--text-muted); }
.info-row .val { font-weight: 500; text-align: right; }

/* ── Credit Score Widget ── */
.credit-score-ring {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(var(--teal-mid) calc(var(--score) * 1%), var(--gray-200) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative; margin: 0 auto;
}
.credit-score-ring::before {
  content: ''; position: absolute; width: 88px; height: 88px;
  background: white; border-radius: 50%;
}
.credit-score-ring .score-val {
  position: relative; z-index: 1; font-size: 1.5rem; font-weight: 700;
  font-family: 'Sora',sans-serif; color: var(--teal);
}

/* ── GIS Map Overlays ── */
.map-legend {
  background: white; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.875rem 1rem; font-size: 0.8rem;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; }
.legend-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.map-controls {
  position: absolute; top: 1rem; right: 1rem; z-index: 500;
  display: flex; flex-direction: column; gap: 0.5rem;
}

/* ── Charts wrapper ── */
.chart-container { position: relative; height: 280px; }

/* ── Pagination ── */
.pagination {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 1rem 1.25rem; border-top: 1px solid var(--border);
}
.page-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.8rem; cursor: pointer; transition: var(--transition);
  background: white; color: var(--text-secondary); text-decoration: none;
}
.page-btn:hover { background: var(--gray-100); }
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-info { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white; border-radius: var(--r-xl);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  padding: 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); padding: 0.25rem; border-radius: 4px; }
.modal-close:hover { color: var(--text-primary); background: var(--gray-100); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ── Public Footer ── */
.pub-footer {
  background: var(--navy); color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 2rem;
}
.pub-footer .inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand .brand-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-top: 1rem; }
.footer-col h4 { color: white; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer-tags { display: flex; gap: 0.5rem; }
.footer-tag { padding: 0.2rem 0.6rem; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-full); font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* ── Use Case Cards ── */
.use-case-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: var(--transition);
}
.use-case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.uc-header {
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  position: relative; overflow: hidden;
}
.uc-header::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.uc-num  { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.08); font-family: 'Sora',sans-serif; line-height: 1; }
.uc-title{ color: white; font-size: 1.1rem; margin-top: 0.25rem; }
.uc-body { padding: 1.5rem; }
.uc-body p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1rem; }
.uc-steps { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.uc-steps li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.uc-steps li::before { content: '→'; color: var(--blue); font-weight: 700; }

/* ── Demo Lifecycle Cards ── */
.demo-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative; overflow: hidden;
}
.demo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  opacity: 0; transition: var(--transition);
}
.demo-card:hover::before { opacity: 0.06; }
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.demo-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.demo-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.demo-card p  { font-size: 0.82rem; color: var(--text-secondary); }
.demo-step-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gray-100); border-radius: var(--r-full);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Login / Register ── */
.auth-page {
  min-height: 100vh; background: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(21,101,192,0.4) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.auth-card {
  background: white; border-radius: var(--r-xl); padding: 2.5rem;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-xl);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .icon { font-size: 2.5rem; }
.auth-logo h1 { font-size: 1.5rem; margin-top: 0.5rem; }
.auth-logo p  { color: var(--text-muted); font-size: 0.875rem; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Notifications ── */
.notif-item {
  display: flex; gap: 1rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border); transition: var(--transition);
  cursor: pointer;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #EFF6FF; }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-body .n-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.notif-body .n-msg   { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.15rem; line-height: 1.5; }
.notif-body .n-time  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-success{ color: var(--green); }
.text-danger { color: var(--red-mid); }
.text-blue   { color: var(--blue); }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.fw-600      { font-weight: 600; }
.mt-1        { margin-top: 0.5rem; }
.mt-2        { margin-top: 1rem; }
.mt-3        { margin-top: 1.5rem; }
.mb-1        { margin-bottom: 0.5rem; }
.mb-2        { margin-bottom: 1rem; }
.mb-3        { margin-bottom: 1.5rem; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.mono        { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
.tag {
  display: inline-flex; align-items: center;
  background: var(--gray-100); color: var(--text-secondary);
  padding: 0.15rem 0.5rem; border-radius: var(--r-sm);
  font-size: 0.72rem; font-weight: 500;
}
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.875rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .parcel-profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .pub-nav .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
