:root {
  --cream-50: #fbf6ea;
  --cream-100: #f4ead4;
  --cream-200: #ead9b8;
  --maroon-900: #4e1620;
  --maroon-700: #6e2230;
  --maroon-500: #8a2e3b;
  --gold-300: #e2c879;
  --gold-400: #cda84f;
  --gold-500: #b68a2e;
  --gold-700: #8a6620;
  --saffron: #e0892f;
  --water-700: #13566a;
  --water-500: #1c7c92;
  --water-300: #5fafc0;
  --ink: #2c2017;
  --ink-soft: #6b5b49;
  --panel: rgba(255, 251, 242, 0.92);
  --line: rgba(125, 90, 34, 0.22);
  --shadow-lg: 0 30px 65px -34px rgba(60, 24, 18, 0.5);
  --shadow-sm: 0 18px 36px -26px rgba(60, 30, 14, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(207, 168, 79, 0.14), transparent 60%),
    radial-gradient(900px 520px at 0% 110%, rgba(28, 124, 146, 0.1), transparent 60%),
    linear-gradient(180deg, #faf3e3 0%, #f3e7cf 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("assets/bg-pattern.jpg");
  background-repeat: repeat;
  background-size: 90px;
  opacity: 0.12;
  pointer-events: none;
}

h1,
h2,
h3 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--maroon-900);
  margin: 0;
}

a {
  color: var(--water-700);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 26px;
  background: linear-gradient(150deg, rgba(78, 22, 32, 0.97), rgba(110, 34, 48, 0.95));
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 14px 30px -22px rgba(40, 12, 16, 0.8);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-drop {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 247, 229, 0.96);
  border: 2px solid rgba(205, 168, 79, 0.8);
  box-shadow: 0 12px 22px -16px rgba(9, 5, 5, 0.9);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-tagline {
  font-family: "Rubik", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #f4dca0, #e2c879 55%, #cda84f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 237, 200, 0.85);
}

.brand-copy strong {
  color: #fff2d3;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 238, 205, 0.86);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff7e0;
}

.header-cta {
  text-decoration: none;
  background: linear-gradient(145deg, #e9cd7f, #c39633);
  color: #40280d;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 235, 189, 0.5);
  box-shadow: 0 12px 22px -16px rgba(45, 30, 8, 0.7);
  white-space: nowrap;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--water-500), var(--water-700));
  color: #fbf4e4;
  box-shadow: 0 16px 26px -16px rgba(19, 60, 98, 0.85);
}

.btn-soft {
  color: var(--maroon-700);
  border: 1px solid rgba(138, 46, 59, 0.4);
  background: rgba(255, 252, 245, 0.92);
}

.btn-gold {
  background: linear-gradient(145deg, #ecd382, #c39633);
  color: #43280c;
  box-shadow: 0 16px 28px -16px rgba(80, 52, 12, 0.7);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 110px;
  background:
    radial-gradient(800px 400px at 78% 18%, rgba(95, 175, 192, 0.18), transparent 62%),
    linear-gradient(160deg, #5b1722 0%, #7a2433 48%, #8a2e3b 100%);
  color: #fbeede;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("assets/bg-pattern.jpg");
  background-repeat: repeat;
  background-size: 90px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-buddha {
  position: absolute;
  inset: 0;
  background-image: url("assets/budda.png");
  background-repeat: no-repeat;
  background-position: center 22%;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 44%, #000 8%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 44%, #000 8%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 246, 224, 0.12);
  border: 1px solid rgba(226, 200, 121, 0.45);
  color: #f3dca0;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 18px 0 0;
  color: #fff7ea;
  text-shadow: 0 2px 0 rgba(40, 10, 14, 0.25);
}

.hero-copy h1 span {
  color: var(--gold-300);
}

.hero-copy > p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 240, 222, 0.86);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

.hero-stat {
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(226, 200, 121, 0.32);
  border-radius: 16px;
  padding: 14px 16px;
}

.hero-stat h3 {
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  color: var(--gold-300);
  margin: 0;
  white-space: nowrap;
}

.hero-stat p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 240, 222, 0.78);
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.emblem-ring {
  position: absolute;
  width: 320px;
  max-width: 90%;
  display: grid;
  place-items: center;
  opacity: 0.5;
  pointer-events: none;
}

.emblem-ring img {
  width: 100%;
  height: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-drop {
  position: relative;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(10, 30, 40, 0.5));
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-mission {
  order: -1;
  display: grid;
  align-content: center;
  justify-items: start;
  text-align: left;
  gap: 12px;
  min-height: 320px;
}

.hero-mission .kicker {
  color: #e7c98f;
  margin-bottom: 0;
}

.hero-mission h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: #fff5e6;
}

.hero-mission-lead {
  margin: 0;
  color: rgba(251, 238, 222, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ===================== SECTION SHELL ===================== */
.section {
  padding: 70px 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.6), rgba(244, 234, 212, 0.45));
  border-top: 1px solid rgba(205, 168, 79, 0.2);
  border-bottom: 1px solid rgba(205, 168, 79, 0.2);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-700);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.18;
}

.lead {
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.khee-divider {
  height: 26px;
  background-image: url("assets/mongol-khee.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 24px;
  opacity: 0.6;
  margin: 0 auto;
  max-width: 1200px;
}

/* ===================== VALUE CARDS ===================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}

.value-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-icon.water {
  background: linear-gradient(150deg, var(--water-300), var(--water-700));
}

.value-icon.water svg {
  fill: rgba(255, 255, 255, 0.18);
}

.value-icon.gold {
  background: linear-gradient(150deg, var(--gold-300), var(--gold-700));
}

.value-icon.maroon {
  background: linear-gradient(150deg, var(--maroon-500), var(--maroon-900));
}

.value-icon.maroon svg {
  fill: rgba(255, 255, 255, 0.18);
}

.value-card h3 {
  font-size: 1.3rem;
  color: var(--maroon-700);
}

.value-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===================== CAMPAIGNS ===================== */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.campaign-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.campaign-media {
  height: 150px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.campaign-media.media-1 {
  background: url("assets/Card1.jpg") center/cover no-repeat;
}

.campaign-media.media-2 {
  background: url("assets/card2.jpg") center/cover no-repeat;
}

.campaign-media.media-3 {
  background: url("assets/Card3.jpg") center/cover no-repeat;
}

.campaign-badge {
  background: rgba(255, 250, 240, 0.94);
  color: var(--maroon-700);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.campaign-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.campaign-body h3 {
  font-size: 1.16rem;
  color: var(--maroon-700);
  line-height: 1.3;
}

.campaign-desc {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.campaign-progress {
  margin-top: 16px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(125, 90, 34, 0.16);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-400), var(--saffron));
}

.campaign-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.campaign-meta strong {
  color: var(--water-700);
}

.campaign-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.campaign-deadline {
  font-size: 0.85rem;
  color: var(--maroon-500);
  font-weight: 600;
}

.campaign-donors {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--water-700);
}

.campaign-donors-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--water-700);
}

.campaign-donors-count {
  font-size: 1rem;
  font-weight: 800;
  color: var(--water-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.16s ease;
}

.campaign-donors-count:hover {
  opacity: 0.7;
}

/* ===================== PACKAGES ===================== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-thumb {
  height: 120px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}

.thumb-a {
  background: linear-gradient(155deg, var(--water-500), var(--water-700)), radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.28), transparent 54%);
}

.thumb-b {
  background: linear-gradient(155deg, #d6a23a, #8a6620), radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 62%);
}

.thumb-c {
  background: linear-gradient(155deg, var(--maroon-500), var(--maroon-900)), radial-gradient(circle at 65% 23%, rgba(255, 255, 255, 0.28), transparent 60%);
}

.thumb-free {
  background: repeating-linear-gradient(135deg, rgba(205, 168, 79, 0.18) 0 12px, rgba(205, 168, 79, 0.06) 12px 24px);
  border: 1px dashed rgba(138, 102, 32, 0.5);
}

.thumb-free span {
  font-family: "Merriweather", serif;
  font-size: 2.6rem;
  color: var(--gold-700);
  opacity: 0.7;
}

.package h3 {
  font-size: 1.05rem;
  color: var(--maroon-700);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
}

.package > p {
  margin: 8px 0 14px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--water-700);
  font-family: "Merriweather", serif;
}

.package-action {
  margin-top: auto;
  border: 1px solid rgba(28, 124, 146, 0.4);
  border-radius: 999px;
  background: rgba(28, 124, 146, 0.08);
  color: var(--water-700);
  font-weight: 700;
  font: inherit;
  font-weight: 700;
  height: 42px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.package-action:hover {
  background: rgba(28, 124, 146, 0.16);
}

.package.featured {
  border: 2px solid var(--gold-500);
  box-shadow: 0 22px 32px -22px rgba(125, 80, 18, 0.7);
}

.ribbon {
  position: absolute;
  top: -11px;
  left: 14px;
  font-size: 0.74rem;
  background: linear-gradient(145deg, #e9cd7f, #c39633);
  color: #43280c;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* ===================== SHILEN TAILAN ===================== */
.shilen-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.shilen-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold-400);
}

.shilen-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.shilen-card h3 {
  margin: 10px 0 0;
  font-family: "Merriweather", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  color: var(--water-700);
}

.shilen-breakdown {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.shilen-breakdown h3 {
  font-size: 1.25rem;
  color: var(--maroon-700);
  margin-bottom: 18px;
}

.breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.breakdown-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.breakdown-top strong {
  color: var(--water-700);
}

.shilen-breakdown .bar {
  height: 12px;
}

.shilen-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===================== MAP ===================== */
.map-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.map-canvas {
  margin-top: 4px;
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(184, 144, 76, 0.28);
  background: rgba(255, 251, 244, 0.92);
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px;
}

.map-canvas svg {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
}

.map-canvas .mongolia-clean-map {
  filter: none;
}

.map-canvas .mongolia-clean-map .map-region-wrap .map-region-shadow {
  display: none;
  fill-opacity: 0;
  stroke-opacity: 0;
  transition: transform 0.22s ease, fill-opacity 0.22s ease, stroke-opacity 0.22s ease;
}

.map-canvas .mongolia-clean-map .map-region-wrap .map-region {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  outline: none;
  transition:
    transform 0.22s ease,
    fill 0.22s ease,
    stroke 0.22s ease,
    stroke-width 0.22s ease,
    filter 0.22s ease;
}

.map-canvas .mongolia-clean-map .map-region-label {
  fill: #f8fbff;
  stroke: rgba(17, 44, 73, 0.78);
  stroke-width: 0.65;
  paint-order: stroke;
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: 8.2px;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}

.map-canvas .mongolia-clean-map .map-region-label.is-compact {
  font-size: 6.8px;
  font-weight: 600;
}

.map-canvas .mongolia-clean-map .map-region-label.map-region-label-custom {
  font-size: 5.4px;
  font-weight: 600;
}

.map-canvas .mongolia-clean-map .map-region-wrap.is-selected .map-region-label {
  fill: #fff7cc;
  stroke: rgba(17, 44, 73, 0.95);
}

.map-canvas .mongolia-clean-map .map-region-wrap .map-region:focus-visible {
  stroke: #f6e18e;
  stroke-width: 2.4;
  filter: brightness(1.12);
}

.map-canvas .mongolia-clean-map .map-region-wrap.is-selected .map-region {
  fill: #e0a83b !important;
  stroke: #6e2230;
  stroke-width: 1.9;
  transform: translate(-1.2px, -2px);
  filter: brightness(1.06) drop-shadow(4px 6px 0 rgba(78, 22, 32, 0.5));
}

.map-loading {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.map-error {
  color: #7f2d2d;
}

.map-active-label {
  margin: 12px 0 0;
  color: var(--maroon-700);
  font-weight: 700;
  text-align: center;
}

.map-region-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 176px;
  max-width: min(240px, calc(100% - 16px));
  border-radius: 12px;
  border: 1px solid rgba(189, 143, 55, 0.45);
  background: linear-gradient(160deg, rgba(255, 251, 242, 0.98), rgba(243, 230, 203, 0.98));
  box-shadow: 0 18px 34px -22px rgba(15, 34, 56, 0.75);
  padding: 8px 10px;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 12;
}

.map-region-tooltip.is-bottom {
  transform: translate(-50%, 10px);
}

.map-region-tooltip.is-visible {
  opacity: 1;
}

.map-region-tooltip h4 {
  margin: 0 0 6px;
  color: var(--maroon-700);
  font-size: 0.96rem;
  font-weight: 800;
}

.map-region-tooltip dl {
  margin: 0;
  display: grid;
  gap: 4px;
}

.map-region-tooltip dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.map-region-tooltip dt {
  color: #4c5f79;
  font-weight: 600;
}

.map-region-tooltip dd {
  margin: 0;
  color: var(--water-700);
  font-weight: 800;
}

.map-region-tooltip-note,
.map-region-tooltip-empty {
  margin: 6px 0 0;
  color: #6a6270;
  font-size: 0.76rem;
  line-height: 1.35;
}

.map-well-marker-count {
  fill: #ffd975;
  stroke: rgba(24, 39, 58, 0.78);
  stroke-width: 0.58;
  paint-order: stroke;
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  user-select: none;
}

/* ===================== ORDER ENTRIES ===================== */
.order-entry-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.order-entry-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.order-entry-head p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.order-entry-head strong {
  color: var(--water-700);
  font-weight: 800;
}

.order-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.order-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 32px;
  background: var(--panel);
  border-radius: 14px;
  border: 1px dashed rgba(125, 90, 34, 0.32);
  margin: 0;
}

.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px -8px rgba(40, 10, 14, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(40, 10, 14, 0.3);
}

.order-card.status-new {
  border-left-color: var(--gold-500);
}

.order-card.status-active {
  border-left-color: var(--water-500);
}

.order-card.status-done {
  border-left-color: #3a8d4a;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.order-status.status-new {
  background: rgba(182, 138, 46, 0.16);
  color: var(--gold-700);
}

.order-status.status-active {
  background: rgba(28, 124, 146, 0.16);
  color: var(--water-700);
}

.order-status.status-done {
  background: rgba(58, 141, 74, 0.18);
  color: #2a6e38;
}

.order-card-date {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.order-card-name {
  font-size: 1.08rem;
  color: var(--maroon-700);
  margin: 0;
  line-height: 1.2;
}

.order-card-purpose {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

.order-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(125, 90, 34, 0.22);
}

.order-card-amount {
  font-size: 1.1rem;
  color: var(--water-700);
  font-weight: 800;
}

.order-card-start {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.order-card-progress {
  font-size: 0.86rem;
  color: var(--ink);
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 247, 230, 0.6);
  border-radius: 8px;
  line-height: 1.4;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: rgba(110, 34, 48, 0.08);
  color: var(--maroon-700);
  font-weight: 700;
}

tbody tr:hover {
  background: rgba(205, 168, 79, 0.08);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.state.ok {
  color: #0e6d53;
  background: rgba(12, 142, 109, 0.16);
}

.state.warn {
  color: #915e00;
  background: rgba(215, 150, 27, 0.18);
}

.state.new {
  color: var(--maroon-700);
  background: rgba(138, 46, 59, 0.14);
}

/* ===================== REPORTS ===================== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.report-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--water-500);
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.report-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.report-card h3 {
  font-size: 1.12rem;
  color: var(--maroon-700);
  line-height: 1.32;
}

.report-loc {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.report-metrics div {
  display: flex;
  flex-direction: column;
}

.report-metrics strong {
  font-family: "Merriweather", serif;
  font-size: 1.18rem;
  color: var(--water-700);
}

.report-metrics span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.report-text {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.report-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--water-700);
}

.report-link:hover {
  text-decoration: underline;
}

/* ===================== STEPS ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--maroon-500), var(--maroon-900));
  color: var(--gold-300);
  font-weight: 800;
  font-family: "Merriweather", serif;
}

.steps h3 {
  margin: 14px 0 0;
  color: var(--maroon-700);
  font-size: 1.18rem;
}

.steps p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===================== CTA BAND ===================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(95, 175, 192, 0.2), transparent 60%),
    linear-gradient(150deg, #5b1722, #7a2433);
  color: #fbeede;
  text-align: center;
}

.cta-inner h2 {
  color: #fff7ea;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

.cta-inner p {
  margin: 12px auto 26px;
  max-width: 560px;
  color: rgba(255, 240, 222, 0.86);
  font-size: 1.05rem;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: linear-gradient(160deg, #3e1019, #4e1620);
  color: rgba(255, 240, 222, 0.82);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 36px;
}

.footer-brand {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 240, 222, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-300);
}

.footer-contact p {
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(226, 200, 121, 0.2);
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--gold-300);
  text-decoration: none;
}

/* ===================== DONATION MODAL ===================== */
body.modal-open {
  overflow: hidden;
}

.donation-modal[hidden] {
  display: none;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}

.donation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 14, 18, 0.62);
  backdrop-filter: blur(3px);
}

.donation-dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(177, 126, 46, 0.42);
  background: linear-gradient(170deg, rgba(255, 253, 246, 0.99), rgba(244, 234, 212, 0.99));
  box-shadow: 0 30px 60px -30px rgba(40, 14, 18, 0.8);
  padding: 26px;
}

.donation-dialog h2 {
  color: var(--maroon-700);
}

.modal-subtext {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(138, 46, 59, 0.1);
  color: var(--maroon-700);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.donation-form {
  margin-top: 18px;
  display: grid;
  gap: 7px;
}

.donation-form label {
  font-weight: 600;
  color: var(--maroon-700);
  font-size: 0.95rem;
}

.donation-form input,
.donation-form select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(125, 90, 34, 0.32);
  padding: 0 14px;
  font: inherit;
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  width: 100%;
}

.donation-form input:focus,
.donation-form select:focus {
  outline: none;
  border-color: var(--water-500);
  box-shadow: 0 0 0 3px rgba(28, 124, 146, 0.18);
}

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}

.amount-presets button {
  border: 1px solid rgba(28, 124, 146, 0.34);
  background: rgba(28, 124, 146, 0.07);
  color: var(--water-700);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease;
}

.amount-presets button:hover {
  background: rgba(28, 124, 146, 0.15);
}

.amount-presets button.is-active {
  background: var(--water-500);
  color: #fff;
  border-color: var(--water-500);
}

.donation-form input.amount-range {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--water-500), var(--gold-500));
  cursor: pointer;
  margin: 4px 0 0;
}

.donation-form input.amount-range:focus {
  outline: none;
  box-shadow: none;
}

.amount-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--water-500);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.amount-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--water-500);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.amount-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 2px 0 4px;
}

.days-range-readout {
  margin: 6px 0 2px;
  font-size: 0.95rem;
  color: var(--maroon-700);
}

.donation-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(125, 90, 34, 0.32);
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  width: 100%;
  resize: vertical;
  min-height: 84px;
}

.donation-form textarea:focus {
  outline: none;
  border-color: var(--water-500);
  box-shadow: 0 0 0 3px rgba(28, 124, 146, 0.18);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wizard-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 4px;
}

.wizard-step {
  display: grid;
  gap: 7px;
}

.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.wizard-nav .btn {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-nav .btn[hidden] {
  display: none;
}

.form-grid-2 label {
  display: block;
  margin-bottom: 6px;
}

.donation-submit {
  margin-top: 12px;
  width: 100%;
}

.donation-feedback {
  min-height: 20px;
  margin: 0;
  font-weight: 600;
  color: var(--water-700);
  line-height: 1.5;
}

/* ===================== MOBILE CTA ===================== */
.mobile-order-cta {
  display: none;
}

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    display: none;
  }

  .hero-mission {
    min-height: auto;
    margin-top: 4px;
  }

  .value-grid,
  .campaign-grid,
  .report-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid,
  .shilen-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand-drop {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .brand-tagline {
    font-size: 1.4rem;
  }

  .header-cta {
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 44px 0 80px;
  }

  .section {
    padding: 50px 0;
  }

  .value-grid,
  .campaign-grid,
  .report-grid,
  .steps,
  .package-grid,
  .shilen-counters {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 240px;
    padding: 8px;
  }

  .map-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .shilen-breakdown,
  .donation-dialog {
    padding: 18px;
    border-radius: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-order-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(145deg, #e9cd7f, #c39633);
    color: #40280d;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 235, 189, 0.5);
    box-shadow: 0 14px 28px -16px rgba(45, 30, 8, 0.75);
    z-index: 1200;
  }
}
