/* =========================================================
   PANGKALANLPG — Design System
   Mobile-first · Green primary · Blue secondary · Yellow CTA
   ========================================================= */

:root {
  --green-700: #0F6B3A;
  --green-600: #1B8A4A;
  --green-500: #22A35A;
  --green-100: #E8F7EE;
  --green-50: #F3FBF6;
  --blue-600: #1A6BB5;
  --blue-500: #2B7FD4;
  --blue-100: #E8F2FC;
  --yellow-500: #F5B800;
  --yellow-400: #FFC933;
  --yellow-100: #FFF6D6;
  --ink: #1A1F24;
  --ink-2: #3D4650;
  --muted: #6B7580;
  --line: #E5E9EE;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --danger: #D64545;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(26, 31, 36, 0.06);
  --shadow-md: 0 6px 24px rgba(26, 31, 36, 0.08);
  --nav-h: 64px;
  --header-h: 56px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --max: 720px;
  --desktop-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Typography */
.h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 1.05rem; font-weight: 700; }
.muted { color: var(--muted); font-size: 0.875rem; }
.small { font-size: 0.8125rem; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  max-width: var(--desktop-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-secondary { background: var(--blue-600); color: #fff; }
.btn-secondary:hover { background: #155a9c; color: #fff; }
.btn-cta { background: var(--yellow-500); color: var(--ink); }
.btn-cta:hover { background: var(--yellow-400); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--white); border-color: var(--muted); color: var(--ink); }
.btn-outline-green {
  background: var(--white);
  color: var(--green-600);
  border: 1.5px solid var(--green-600);
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.8125rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 50%; background: var(--bg); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.btn-icon:hover { background: var(--line); }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 163, 90, 0.15);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--ink-2); margin-bottom: 10px;
}
.form-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-600); }

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-error { background: #FDECEC; color: var(--danger); }
.alert-info { background: var(--blue-100); color: var(--blue-600); }
.alert-warn { background: var(--yellow-100); color: #8A6A00; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 14px 16px; }

/* ========== APP HEADER ========== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.app-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--desktop-max);
  margin: 0 auto;
  padding: 0 12px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(27, 138, 74, 0.35);
}
.header-actions { display: flex; align-items: center; gap: 6px; }
.search-wrap {
  flex: 1;
  max-width: 280px;
  position: relative;
  display: none;
}
.search-wrap input {
  width: 100%;
  min-height: 38px;
  padding: 6px 12px 6px 36px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 0.875rem;
}
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--green-100);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
}
.icon-btn { position: relative; }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.bottom-nav .nav-inner {
  display: flex;
  width: 100%;
  max-width: var(--max);
  justify-content: space-around;
  align-items: center;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  min-height: 56px;
  transition: color .15s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active {
  color: var(--green-600);
}
.nav-item.active .nav-icon-wrap {
  background: var(--green-100);
  border-radius: 12px;
  padding: 4px 12px;
}
.nav-icon-wrap { display: grid; place-items: center; transition: background .15s; }

/* ========== FEED ========== */
.page { padding: 12px 0 24px; }

.composer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.composer-top {
  display: flex; gap: 10px; align-items: center; cursor: pointer;
}
.composer-input {
  flex: 1;
  background: var(--bg);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  border: none;
  min-height: 42px;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.composer-actions {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover, .chip.active {
  background: var(--green-100);
  color: var(--green-700);
  border-color: var(--green-500);
}
.chip-yellow { background: var(--yellow-100); color: #8A6A00; border-color: #F0D060; }
.chip-blue { background: var(--blue-100); color: var(--blue-600); border-color: #B8D4F0; }

.scroll-x {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-header {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px 8px;
}
.post-meta { flex: 1; min-width: 0; }
.post-name { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.post-sub { font-size: 0.75rem; color: var(--muted); }
.post-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-left: 4px;
}
.post-content {
  padding: 0 14px 10px;
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: var(--bg);
}
.post-cat {
  display: inline-block;
  margin: 0 14px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-50);
  padding: 3px 8px;
  border-radius: 6px;
}
.post-actions {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 4px;
}
.post-action {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px;
  border: none; background: transparent;
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border-radius: 8px;
}
.post-action:hover { background: var(--bg); color: var(--ink-2); }
.post-action.liked { color: var(--blue-600); }
.post-action svg { width: 18px; height: 18px; }

/* Marketplace grid */
.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.mp-card:active { transform: scale(0.98); }
.mp-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
}
.mp-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.mp-save {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none; display: grid; place-items: center;
  cursor: pointer; color: var(--muted);
}
.mp-body { padding: 10px; }
.mp-title {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.mp-price { font-weight: 800; font-size: 0.9375rem; color: var(--green-700); margin-top: 4px; }
.mp-loc { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

/* Discussion list */
.disc-item {
  display: flex; gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.disc-item:hover { border-color: var(--green-500); }
.disc-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
.disc-stats { display: flex; gap: 12px; margin-top: 8px; font-size: 0.75rem; color: var(--muted); }

/* Profile */
.profile-hero {
  background: linear-gradient(160deg, var(--green-600) 0%, var(--green-700) 60%, #0A4D2C 100%);
  color: #fff;
  padding: 24px 16px 48px;
  border-radius: 0 0 24px 24px;
  position: relative;
}
.profile-card {
  margin: -36px 16px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 16px;
  text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid #fff; margin: -56px auto 10px;
  object-fit: cover; background: var(--green-100);
  box-shadow: var(--shadow);
}
.stats-row {
  display: flex; justify-content: space-around;
  padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px;
}
.stat-val { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.stat-label { font-size: 0.7rem; color: var(--muted); }

/* Notifikasi */
.notif-item {
  display: flex; gap: 12px; padding: 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.notif-item.unread { background: var(--green-50); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: 0.875rem; }
.notif-text { font-size: 0.8125rem; color: var(--muted); }

/* Admin */
.admin-layout { display: flex; min-height: 100dvh; padding-bottom: 0; }
.admin-sidebar {
  width: 240px; background: var(--ink); color: #fff;
  padding: 20px 12px; flex-shrink: 0;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.admin-sidebar a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.75); font-weight: 500; font-size: 0.875rem;
  margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.1); color: #fff;
}
.admin-main { flex: 1; padding: 20px; background: var(--bg); }
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--line);
}
.stat-card .num { font-size: 1.75rem; font-weight: 800; color: var(--green-600); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg); font-weight: 700; color: var(--ink-2); }

/* Landing */
.landing-hero {
  min-height: 100dvh;
  background:
    linear-gradient(165deg, rgba(15, 107, 58, 0.92) 0%, rgba(26, 107, 181, 0.85) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(245, 184, 0, 0.25), transparent 50%);
  color: #fff;
  padding: 20px 16px 80px;
  position: relative;
  overflow: hidden;
}
.landing-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.04'%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");
  pointer-events: none;
}
.landing-nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 960px; margin: 0 auto 48px; position: relative; z-index: 1;
}
.landing-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.landing-content {
  max-width: 560px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.landing-content h1 {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.landing-content .lead {
  font-size: 1.05rem; opacity: 0.9; margin-bottom: 28px; line-height: 1.6;
}
.landing-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 40px auto 0;
  position: relative;
  z-index: 1;
  text-align: center;
}
.landing-stats strong {
  display: block;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--yellow-400);
}
.landing-stats span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 600;
}
.landing-map-teaser {
  background: linear-gradient(180deg, #031018 0%, #0a1f28 100%);
  color: #e8f7fb;
}
.landing-map-teaser .muted { color: #7aa8b5; }
.landing-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00e5ff;
  margin-bottom: 8px;
}
.landing-map-teaser-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
.landing-map-teaser .h2 { color: #fff; }
.landing-map-preview {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    radial-gradient(ellipse at 45% 50%, #0a4a58 0%, #021018 70%);
  transition: transform .2s, border-color .2s;
}
.landing-map-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.55);
  color: inherit;
}
.landing-map-preview-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 40% 55%, rgba(0, 229, 255, 0.18), transparent 50%);
  pointer-events: none;
}
.landing-map-preview-frame {
  position: relative;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.landing-map-preview-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #00e5ff;
}
.landing-map-dots {
  position: absolute;
  inset: 36px 16px 40px;
}
.landing-map-dots i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: landingDot 2.2s ease-in-out infinite;
}
.landing-map-dots i:nth-child(odd) { animation-delay: .4s; }
.landing-map-dots i:nth-child(3n) { animation-delay: .8s; width: 10px; height: 10px; }
@keyframes landingDot {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
.landing-map-preview-frame p {
  font-size: 0.8rem;
  color: #7aa8b5;
  font-weight: 600;
}
.landing-mitra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.landing-mitra-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.landing-mitra-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.landing-mitra-top h3 {
  font-size: 0.95rem;
  font-weight: 800;
}
.landing-quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.landing-quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.landing-quote p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.landing-quote footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.features {
  max-width: 960px; margin: -40px auto 0; padding: 0 16px 60px; position: relative; z-index: 2;
}
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; margin-bottom: 12px; font-size: 1.25rem;
}
.section-pad { padding: 48px 16px; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 28px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(26, 31, 36, 0.45);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 520px;
  max-height: 90dvh; overflow-y: auto;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 40px; height: 4px; background: var(--line);
  border-radius: 2px; margin: 0 auto 16px;
}
.modal-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }

/* FAB */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: #fff; border: none;
  box-shadow: 0 4px 20px rgba(27, 138, 74, 0.4);
  display: grid; place-items: center;
  cursor: pointer; z-index: 150;
  font-size: 1.5rem; font-weight: 300;
}
.fab:active { transform: scale(0.95); }

/* Empty / loading */
.empty {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.5; }
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #f0f2f5 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite; border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page title bar */
.page-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 14px; gap: 10px;
}
.page-title-bar h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
}
.pill-green { background: var(--green-100); color: var(--green-700); }
.pill-blue { background: var(--blue-100); color: var(--blue-600); }
.pill-yellow { background: var(--yellow-100); color: #8A6A00; }
.pill-gray { background: var(--bg); color: var(--muted); }
.pill-red { background: #FDECEC; color: var(--danger); }

/* Auth pages */
.auth-page {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding-bottom: 0;
}
.auth-header {
  background: linear-gradient(160deg, var(--green-600), var(--green-700));
  color: #fff; padding: 32px 20px 48px; text-align: center;
}
.auth-card {
  margin: -28px 16px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-width: 420px;
  width: calc(100% - 32px);
  align-self: center;
}

/* Desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .search-wrap { display: block; }
  .container { max-width: var(--max); }
  .app-shell {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: 20px;
    max-width: var(--desktop-max);
    margin: 0 auto;
    padding: 16px;
  }
  .sidebar-left, .sidebar-right {
    display: block;
    position: sticky; top: calc(var(--header-h) + 16px);
    align-self: start;
  }
  .sidebar-left { display: block; }
  .desktop-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
    margin-bottom: 2px;
  }
  .desktop-nav a:hover, .desktop-nav a.active {
    background: var(--green-100); color: var(--green-700);
  }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-map-teaser-inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .landing-mitra-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-quote-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); max-height: 85vh; }
  .fab { bottom: 24px; }
  .admin-sidebar { display: block; }
}

@media (max-width: 767px) {
  .sidebar-left, .sidebar-right { display: none; }
  .app-shell { display: block; padding: 0 12px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: relative;
    display: flex; gap: 4px; overflow-x: auto; padding: 10px;
  }
  .admin-sidebar a { white-space: nowrap; }
}

/* Utilities */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.coming-soon-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  background: var(--yellow-100); color: #8A6A00;
  padding: 2px 8px; border-radius: 6px; margin-left: 6px;
}
