/* ============================================================
   JMCD v2.0 — Modern Design System
   Palette: Deep maroon, warm gold, clean ivory
   Fonts: Marcellus (display) + Inter (body)
   Signature: Arch motifs, gold gradients, glass effects
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@300;400;500;600;700&family=Tiro+Devanagari+Hindi&display=swap');

:root {
  --maroon: #3D0A14;
  --maroon-mid: #5C0F1E;
  --maroon-light: #7A1A2E;
  --gold: #D4A853;
  --gold-light: #F0D78C;
  --gold-glow: rgba(212,168,83,0.3);
  --ivory: #FAFAF7;
  --white: #FFFFFF;
  --ink: #1A1118;
  --text: #3D2E35;
  --text-light: #6B5A62;
  --line: rgba(61,10,20,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-gold: 0 8px 30px rgba(212,168,83,0.15);
  --glass: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Marcellus', serif;
  color: var(--maroon);
  margin: 0 0 0.5em;
  line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
a { color: var(--maroon-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Scroll Reveal Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ---------- Animated Counter ---------- */
.count-up { transition: none; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,83,0.3);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ivory); text-decoration: none; }
.brand:hover { color: var(--gold-light); text-decoration: none; }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 2px 8px rgba(212,168,83,0.3)); transition: transform var(--transition); }
.brand:hover img { transform: rotate(10deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: 'Marcellus', serif; font-size: 1.1rem; color: var(--gold-light); }
.brand-text span { font-size: 0.68rem; letter-spacing: 2px; color: rgba(248,241,228,0.7); text-transform: uppercase; }

nav.main-nav { display: flex; gap: 2px; align-items: center; }
nav.main-nav a {
  color: rgba(250,250,247,0.85); font-weight: 500; padding: 9px 16px;
  border-radius: var(--radius-xs); font-size: 0.88rem;
  transition: all var(--transition); position: relative;
}
nav.main-nav a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; width: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
  transition: all var(--transition); transform: translateX(-50%);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 60%; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold-light); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
  color: var(--maroon) !important; font-weight: 700 !important;
  border-radius: 50px !important; padding: 9px 22px !important;
  box-shadow: 0 4px 15px rgba(212,168,83,0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,168,83,0.4); }

.menu-toggle { display: none; background: none; border: none; color: var(--gold-light); font-size: 1.5rem; cursor: pointer; padding: 8px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--maroon); flex-direction: column;
    padding: 12px 20px 20px; display: none;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  nav.main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--maroon) 0%, #2A0610 50%, #1A040A 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  color: var(--ivory);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212,168,83,0.12) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--ivory); font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 0.3em; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; letter-spacing: 3px; font-size: 0.75rem;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero .eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--gold); }
.hero .lede { font-size: 1.05rem; color: rgba(250,250,247,0.75); max-width: 48ch; line-height: 1.8; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Hero page (non-home) */
.hero-sm {
  background: linear-gradient(160deg, var(--maroon) 0%, #2A0610 100%);
  padding: 60px 0 40px; color: var(--ivory); position: relative; overflow: hidden;
}
.hero-sm h1 { color: var(--ivory); }
.hero-sm .lede { color: rgba(250,250,247,0.7); }
.hero-sm .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 3px; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.hero-sm .eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--gold); }

/* Arch frame (hero visual element) */
.arch-frame {
  position: relative; background: linear-gradient(180deg, var(--maroon-mid) 0%, var(--maroon) 100%);
  border-radius: 999px 999px 20px 20px; aspect-ratio: 3/4;
  overflow: hidden; border: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), inset 0 0 60px rgba(212,168,83,0.1);
  animation: floatArch 6s ease-in-out infinite;
}
@keyframes floatArch { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.arch-frame::before {
  content: ''; position: absolute; inset: 12px;
  border: 1.5px solid rgba(212,168,83,0.4);
  border-radius: 999px 999px 16px 16px; pointer-events: none;
}
.arch-frame .arch-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding: 30px; text-align: center;
  color: var(--gold-light);
  background: linear-gradient(180deg, transparent 30%, rgba(26,4,10,0.85) 100%);
}
.arch-frame .plot-tag {
  font-family: 'Marcellus', serif; font-size: 1.4rem; color: var(--ivory);
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
  font-family: 'Inter', sans-serif; letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  color: var(--gold-light); box-shadow: 0 4px 15px rgba(61,10,20,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(61,10,20,0.35); color: var(--gold-light); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: var(--gold-light); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--maroon); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,83,0.35); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; border-radius: 8px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head {
  max-width: 640px; margin: 0 auto 50px; text-align: center;
}
.section-head p { color: var(--text-light); margin-top: 12px; }
.section-subtitle {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-weight: 600; letter-spacing: 3px; font-size: 0.72rem;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-subtitle::before, .section-subtitle::after {
  content: ''; width: 24px; height: 1.5px; background: var(--gold);
}
.divider-arch {
  width: 50px; height: 25px; margin: 14px auto 0;
  border: 2px solid var(--gold); border-bottom: none;
  border-radius: 25px 25px 0 0; opacity: 0.6;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.15rem; }
.card .tag {
  display: inline-block; font-size: 0.68rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 700; color: var(--gold);
  background: rgba(212,168,83,0.1); padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px;
}

/* Feature cards with icon */
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(212,168,83,0.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  border: 1px solid rgba(212,168,83,0.2);
}

/* ---------- Plot Cards ---------- */
.plot-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.plot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plot-card .plot-head {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  color: var(--gold-light); padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Marcellus', serif; font-size: 1.05rem;
}
.plot-card .plot-body { padding: 22px; }
.plot-card .price {
  font-size: 1.6rem; color: var(--maroon);
  font-family: 'Marcellus', serif; margin: 8px 0;
}
.status-pill {
  font-size: 0.65rem; padding: 4px 14px; border-radius: 20px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-available { background: rgba(34,197,94,0.12); color: #15803d; }
.status-booked { background: rgba(245,158,11,0.12); color: #b45309; }
.status-sold { background: rgba(239,68,68,0.12); color: #dc2626; }
.status-pending { background: rgba(99,102,241,0.12); color: #4338ca; }
.plot-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.85rem;
  color: var(--text-light); margin: 10px 0;
}
.plot-meta span {
  background: rgba(61,10,20,0.04); padding: 4px 12px;
  border-radius: 20px; font-size: 0.82rem;
}

/* ---------- Plan / Data Tables ---------- */
table.plan-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.plan-table th, table.plan-table td { padding: 16px 22px; text-align: left; }
table.plan-table th {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  color: var(--gold-light); font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 0.95rem;
}
table.plan-table td { border-bottom: 1px solid var(--line); }
table.plan-table tr:last-child td { border-bottom: none; }
table.plan-table tr { transition: background var(--transition); }
table.plan-table tr:hover { background: rgba(212,168,83,0.04); }

/* ---------- Forms ---------- */
.form-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.form-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
label {
  display: block; font-weight: 600; margin: 16px 0 6px;
  font-size: 0.85rem; color: var(--text); letter-spacing: 0.3px;
}
input, select, textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(61,10,20,0.12);
  border-radius: var(--radius-xs); font-family: 'Inter', sans-serif;
  font-size: 0.9rem; background: var(--ivory);
  transition: all var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 4px rgba(212,168,83,0.1);
  outline: none;
}
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; }
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(34,197,94,0.08); color: #15803d; border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(99,102,241,0.08); color: #4338ca; border: 1px solid rgba(99,102,241,0.2); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(160deg, var(--maroon) 0%, #1A040A 100%);
  color: rgba(250,250,247,0.7); padding: 60px 0 28px; margin-top: 0;
  position: relative; overflow: hidden;
}
footer.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
footer.site-footer h4 {
  color: var(--gold-light); font-family: 'Marcellus', serif;
  font-size: 1rem; margin-bottom: 18px;
}
footer.site-footer a { color: rgba(250,250,247,0.7); transition: color var(--transition); }
footer.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  text-align: center; font-size: 0.78rem; opacity: 0.5;
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px;
}
footer p { margin: 8px 0; }

/* ---------- Dashboard Shell ---------- */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 270px; background: linear-gradient(180deg, var(--maroon) 0%, #1A040A 100%);
  color: var(--ivory); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.dash-sidebar::-webkit-scrollbar { width: 4px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(212,168,83,0.3); border-radius: 4px; }
.dash-sidebar .brand {
  padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 12px;
}
.dash-sidebar nav { padding: 16px 12px; }
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(250,250,247,0.65); padding: 12px 16px;
  border-radius: var(--radius-sm); margin-bottom: 3px;
  font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.dash-sidebar nav a .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.dash-sidebar nav a:hover { background: rgba(212,168,83,0.1); color: var(--gold-light); text-decoration: none; }
.dash-sidebar nav a.active { background: rgba(212,168,83,0.15); color: var(--gold-light); font-weight: 600; }
.dash-sidebar .nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 0; }
.dash-main { flex: 1; background: #F4F2EF; min-width: 0; }
.dash-topbar {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 18px 32px; display: flex; justify-content: space-between;
  align-items: center; position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px); background: rgba(255,255,255,0.9);
}
.dash-topbar strong { font-family: 'Marcellus', serif; font-size: 1.15rem; color: var(--maroon); }
.dash-content { padding: 32px; }

/* Stats grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 32px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: all var(--transition); border: 1px solid var(--line);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .num {
  font-family: 'Marcellus', serif; font-size: 1.8rem; color: var(--maroon); margin-bottom: 4px;
}
.stat-card .label {
  font-size: 0.75rem; color: var(--text-light); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600;
}

/* Data table */
table.data-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
table.data-table th, table.data-table td {
  padding: 14px 18px; font-size: 0.88rem; text-align: left;
}
table.data-table th {
  background: #F4F0EA; color: var(--text); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
}
table.data-table td { border-bottom: 1px solid var(--line); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr { transition: background var(--transition); }
table.data-table tr:hover { background: rgba(212,168,83,0.03); }
table.data-table tr form,
table.plan-table tr form { display: contents; }

.btn-danger { background: #dc2626; color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }
.btn-edit {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon); border: none; font-weight: 600;
}
.btn-edit:hover { transform: translateY(-1px); }
.btn-approve { background: #16a34a; color: #fff; border: none; }
.btn-approve:hover { background: #15803d; }
.btn-block { background: #ea580c; color: #fff; border: none; }

/* Network tree */
.tree-node { display: inline-block; text-align: center; margin: 0 20px; }
.tree-box {
  background: var(--white); border: 2px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 22px;
  font-size: 0.85rem; min-width: 140px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.tree-box:hover { box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.tree-row { display: flex; justify-content: center; gap: 40px; margin-top: 28px; position: relative; }

/* Map container */
.map-container {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
#township-map { width: 100%; height: 450px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar {
    width: 100%; position: relative; height: auto;
    display: flex; flex-wrap: wrap; align-items: center;
  }
  .dash-sidebar .brand { border-bottom: none; }
  .dash-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 12px; }
  .dash-sidebar nav a { padding: 8px 12px; font-size: 0.82rem; }
  .dash-sidebar .nav-divider { display: none; }
  .dash-content { padding: 20px 16px; }
  .dash-topbar { padding: 14px 16px; }
  .hero { padding: 60px 0 50px; }
  section { padding: 50px 0; }
}

/* Badge for counts */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--gold); color: var(--maroon); font-size: 0.7rem;
  font-weight: 700; border-radius: 20px; margin-left: auto;
}

/* Amount highlight */
.amount { font-family: 'Marcellus', serif; color: var(--maroon); font-weight: 400; }
.amount-lg { font-size: 1.4rem; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 20px; border-radius: 50px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
  background: var(--white); border: 1.5px solid var(--line); color: var(--text);
  font-family: 'Inter', sans-serif;
}
.tab-btn:hover { border-color: var(--gold); color: var(--maroon); }
.tab-btn.active { background: var(--maroon); color: var(--gold-light); border-color: var(--maroon); }

/* Skeleton loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4de 50%, #f0ede8 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm); min-height: 20px;
}

/* Glassmorphism card variant */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Quick action links in admin */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.quick-action {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--line); transition: all var(--transition);
  text-decoration: none; color: var(--text);
}
.quick-action:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--maroon); text-decoration: none; }
.quick-action .qa-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(212,168,83,0.04));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  flex-shrink: 0;
}
.quick-action .qa-label { font-weight: 600; font-size: 0.88rem; }
.quick-action .qa-count { font-size: 0.75rem; color: var(--text-light); }
