/* Сотворение — design system */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --forest-950: #041612;
  --forest-900: #0a2926;
  --forest-800: #0f3d38;
  --forest-700: #1a5c54;
  --emerald-600: #1f8a75;
  --emerald-500: #2aab8f;
  --emerald-400: #3ec9a8;
  --sage-200: #b8ddd4;
  --sage-100: #dceee9;
  --sage-50: #f0faf7;
  --gold-500: #c9a227;
  --gold-400: #e4c04a;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --sky-mist: #e8f6f3;
  --text: #0d3530;
  --text-muted: #4a7a72;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-lg: 0 24px 64px rgba(10, 41, 38, 0.14);
  --shadow-md: 0 12px 32px rgba(10, 41, 38, 0.1);
  --shadow-sm: 0 4px 16px rgba(10, 41, 38, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--sage-50);
  min-height: 100vh;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(62, 201, 168, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(201, 162, 39, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(26, 107, 92, 0.15), transparent 55%),
    linear-gradient(168deg, var(--sage-50) 0%, var(--sky-mist) 40%, #dff0ec 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

a {
  color: var(--emerald-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--forest-800); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--forest-900);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--emerald-500), var(--forest-700));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(31, 138, 117, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(31, 138, 117, 0.12);
  color: var(--forest-800);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--forest-800);
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ── Page layout ── */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--emerald-600); }
.breadcrumb-sep { opacity: 0.4; user-select: none; }

/* ── Hero ── */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--forest-700) 45%, var(--emerald-600) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25) 0%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 201, 168, 0.2) 0%, transparent 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  opacity: 0.92;
  line-height: 1.65;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero--compact {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
}

.hero--compact h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: -1.25rem 0 2.5rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(31, 138, 117, 0.1);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald-600);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--forest-950);
  box-shadow: 0 6px 24px var(--gold-glow);
}

.btn-primary:hover {
  color: var(--forest-950);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--gold-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover { color: white; background: rgba(255, 255, 255, 0.25); }

.btn-ghost {
  background: var(--white);
  color: var(--forest-800);
  border: 1px solid rgba(31, 138, 117, 0.25);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { color: var(--emerald-600); transform: translateY(-1px); }

/* ── Section titles ── */
.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--forest-900);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ── Bento / card grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.bento-card:hover::before { opacity: 1; }

.bento-card--wide { grid-column: span 6; }
.bento-card--featured {
  grid-column: span 6;
  background: linear-gradient(145deg, var(--forest-900), var(--forest-700));
  color: white;
  border: none;
}

.bento-card--featured .bento-desc,
.bento-card--featured .bento-link { color: rgba(255, 255, 255, 0.85); }
.bento-card--featured .bento-icon { background: rgba(255, 255, 255, 0.15); }

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sage-100), #c5ebe3);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.bento-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-900);
}

.bento-card--featured h3 { color: white; }

.bento-desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bento-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bento-card--featured .bento-link { color: var(--gold-400); }

/* Legacy card-grid alias */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sage-100), #c5ebe3);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.card h2, .card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest-900);
}

.card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Content blocks ── */
.section-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 138, 117, 0.08);
}

.section-block h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest-900);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--sage-50);
  border-left: 3px solid var(--emerald-500);
}

.value-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--forest-800);
}

.value-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline {
  display: grid;
  gap: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--sage-200);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px var(--sage-100);
}

.timeline-item strong { color: var(--forest-800); }

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--sage-100);
  color: var(--text-muted);
}

.info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-500);
  font-weight: 700;
}

.info-list li:last-child { border-bottom: none; }

.section-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

.info-subheading {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--forest-800);
}

.section-block .info-subheading:first-of-type {
  margin-top: 0.35rem;
}

/* ── Veché rules ── */
.veche-rules-header {
  padding: 1.75rem 1.85rem;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--forest-900) 0%, #1a6b5c 55%, var(--emerald-500) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.veche-rules-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.veche-rules-header h2 {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  color: #fff;
  line-height: 1.2;
}

.veche-rules-lead {
  margin: 0 0 0.7rem;
  font-size: 1.03rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
}

.veche-rules-lead--accent {
  margin-bottom: 0;
  font-weight: 500;
  color: #fff;
}

.veche-rules-lead--muted {
  margin: -0.25rem 0 1.25rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ── Veché rules promo (overview page) ── */
.veche-rules-promo {
  position: relative;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.veche-rules-promo__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, rgba(212, 175, 55, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 100%, rgba(31, 138, 117, 0.4), transparent 50%);
  pointer-events: none;
}

.veche-rules-promo__inner {
  position: relative;
  padding: 2rem 2.1rem;
  background: linear-gradient(145deg, var(--forest-900) 0%, #1a5c52 48%, var(--emerald-600) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.veche-rules-promo h2 {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #fff;
  line-height: 1.2;
}

.veche-rules-promo__lead {
  margin: 0 0 1.25rem;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.veche-rules-promo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.veche-rules-promo__tags span {
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.veche-rules-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 1.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--forest-900) !important;
  background: linear-gradient(135deg, #f8edd4 0%, var(--gold-400) 55%, #e8c96a 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.veche-rules-promo__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.rules-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid rgba(31, 138, 117, 0.12);
}

.rules-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.rules-card--forbidden {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-color: rgba(225, 29, 72, 0.15);
}

.rules-card--forbidden h3 { color: #be123c; }

.rules-card--allowed {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-color: rgba(31, 138, 117, 0.2);
}

.rules-card--allowed h3 { color: var(--emerald-600); }

.rules-card-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--forest-800);
}

.rules-subheading {
  margin: 1.35rem 0 0.7rem;
  padding-top: 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--forest-800);
  border-top: 1px solid var(--sage-100);
}

.rules-card--forbidden .rules-subheading:first-of-type,
.rules-card--allowed .rules-subheading:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.rules-list li:last-child { border-bottom: none; }

.rules-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.rules-card--forbidden .rules-list li::before {
  content: "✕";
  color: #e11d48;
}

.rules-card--allowed .rules-list li::before {
  content: "✓";
  color: var(--emerald-500);
}

.rules-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--sage-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-400);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--forest-800);
}

.rules-note--policy {
  margin-top: 1.35rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, var(--sage-50) 0%, #fff 100%);
  border-left: 4px solid var(--emerald-500);
  font-size: 0.92rem;
  line-height: 1.65;
}

.form-row--custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.form-row--custom label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--forest-800);
}

.form-row--custom input[type="text"] {
  flex: 1;
  min-width: min(100%, 220px);
}

/* ── Subnav ── */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31, 138, 117, 0.1);
  width: fit-content;
  max-width: 100%;
}

.subnav a {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.subnav a:hover { color: var(--forest-800); background: var(--sage-50); }

.subnav a.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--forest-700));
  color: white;
}

/* ── Forms ── */
.form-shell {
  display: grid;
  gap: 1.5rem;
}

.form-step-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sage-100);
}

.form-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--forest-700));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.form-step-label h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest-900);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--forest-800);
}

.form-row .hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sage-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--sage-50);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(31, 138, 117, 0.12);
  background: var(--white);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.checkbox-grid label,
.chip-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: var(--sage-50);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-grid label:has(input:checked),
.chip-label:has(input:checked) {
  border-color: var(--emerald-500);
  background: rgba(31, 138, 117, 0.08);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--sage-50);
  border: 1.5px solid var(--sage-200);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}

.radio-row label:has(input:checked) {
  border-color: var(--emerald-500);
  background: rgba(31, 138, 117, 0.1);
  color: var(--forest-800);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: var(--emerald-600);
  cursor: pointer;
}

.slider-value {
  min-width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  background: linear-gradient(135deg, var(--emerald-600), var(--forest-700));
  border-radius: 50%;
}

.people-list { display: grid; gap: 1rem; }

.person-card {
  padding: 1.35rem;
  background: linear-gradient(135deg, var(--sage-50), var(--sky-mist));
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(31, 138, 117, 0.3);
}

.person-card h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--emerald-600);
}

.person-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 28rem;
}

/* ── Listings (board) ── */
.listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-bar {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--sage-200);
  border-radius: 999px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
}

.search-bar input:focus { box-shadow: none; outline: none; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--sage-200);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: white;
}

.listings {
  display: grid;
  gap: 1rem;
}

.listing-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.listing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 148px;
}

.listing-actions .btn-chat {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: center;
}

.soulmate-posts .listing-item {
  cursor: default;
}

.soulmate-posts .listing-item:hover {
  transform: none;
}

.soulmate-posts .listing-body {
  cursor: default;
}

.listing-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.listing-thumb {
  width: 120px;
  height: 96px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--emerald-500), var(--forest-700));
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
}

.listing-body strong {
  display: block;
  font-size: 1.05rem;
  color: var(--forest-900);
  margin-bottom: 0.25rem;
}

.listing-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.listing-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.listing-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--emerald-600);
  white-space: nowrap;
}

.listing-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--sage-100);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ── VIP ── */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.vip-card {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
}

.vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold-500), var(--emerald-400), var(--gold-400));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.vip-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--forest-800), var(--emerald-500));
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  color: white;
  box-shadow: 0 8px 24px rgba(31, 138, 117, 0.3);
}

.vip-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest-900);
}

.vip-card p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.badge-demo {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--forest-950);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tier-card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.1);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s;
}

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

.tier-card--highlight {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--gold-glow);
}

.tier-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.tier-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest-900);
}

.tier-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--forest-800);
}

.demo-banner-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(10, 41, 38, 0.06));
  border-top: 1px solid rgba(31, 138, 117, 0.12);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-900);
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sage-200);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 380px;
  margin-left: auto;
  padding: 1rem 1.25rem;
  background: var(--forest-900);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.4s var(--ease);
  z-index: 300;
  font-size: 0.9rem;
  line-height: 1.5;
}

.toast.show { transform: translateY(0); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .bento-card,
  .bento-card--wide,
  .bento-card--featured { grid-column: span 12; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
  .listing-item { grid-template-columns: 1fr; }
  .listing-thumb { width: 100%; height: 140px; }
  .listing-meta { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .subnav { border-radius: var(--radius-lg); width: 100%; }
  .stats-strip { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Services hub & subdomain map ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.service-card {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.12);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.service-domain {
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: var(--emerald-600);
  background: var(--sage-50);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  width: fit-content;
}
.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--forest-900);
}
.eco-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--forest-900), var(--forest-700));
  border-radius: var(--radius-xl);
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.eco-center {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
}
.eco-center strong { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.eco-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: white;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.eco-node:hover { background: rgba(255,255,255,0.18); color: white; }
.eco-col { display: flex; flex-direction: column; gap: 0.65rem; }
.eco-arrow { opacity: 0.5; font-size: 0.8rem; }

/* ── Chat app ── */
.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-rooms {
  background: var(--sage-50);
  border-right: 1px solid var(--sage-200);
  padding: 1rem 0;
  overflow-y: auto;
}
.chat-room {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: background 0.15s;
}
.chat-room:hover, .chat-room.active {
  background: rgba(31, 138, 117, 0.1);
}
.chat-room-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--forest-700));
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.chat-room-info { flex: 1; min-width: 0; }
.chat-room-info strong { display: block; font-size: 0.875rem; }
.chat-room-info span { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-unread {
  background: var(--gold-500);
  color: var(--forest-950);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.chat-main { display: flex; flex-direction: column; }
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sage-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 320px;
  max-height: 420px;
  background: linear-gradient(180deg, var(--sage-50) 0%, var(--white) 100%);
}
.chat-msg {
  max-width: 75%;
  padding: 0.65rem 1rem;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.9rem;
  line-height: 1.45;
  background: var(--white);
  border: 1px solid var(--sage-200);
  box-shadow: var(--shadow-sm);
}
.chat-msg--own {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--emerald-600), var(--forest-700));
  color: white;
  border: none;
  border-radius: 16px 16px 4px 16px;
}
.chat-msg time { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 0.35rem; }
.chat-compose {
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--sage-200);
}
.chat-compose input {
  flex: 1;
  border-radius: 999px;
}

/* ── Soulmate ── */
.soulmate-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.profile-stack {
  position: relative;
  min-height: 420px;
}
.profile-card-lg {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(31, 138, 117, 0.1);
}
.profile-hero {
  height: 200px;
  background: linear-gradient(135deg, var(--forest-800), var(--emerald-500));
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: white;
}
.profile-body { padding: 1.75rem; }
.profile-body h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}
.match-bar {
  height: 8px;
  background: var(--sage-200);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0;
}
.match-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.profile-tag {
  padding: 0.35rem 0.75rem;
  background: var(--sage-50);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn-like { background: linear-gradient(135deg, #e11d48, #f43f5e); color: white; }
.btn-skip { background: var(--sage-100); color: var(--text-muted); }
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.match-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--sage-200);
  cursor: pointer;
  transition: border-color 0.2s;
}
.match-mini:hover, .match-mini.active { border-color: var(--emerald-500); }
.match-mini-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-500);
  display: grid;
  place-items: center;
  color: white;
}

/* ── Admin panel ── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 560px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 117, 0.12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.admin-nav {
  background: var(--forest-900);
  padding: 1.25rem 0;
}
.admin-nav a, .admin-nav button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  border: none;
  background: none;
  color: rgba(255,255,255,0.75);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav button:hover,
.admin-nav a.active, .admin-nav button.active {
  background: rgba(255,255,255,0.1);
  color: white;
}
.admin-content { padding: 1.5rem; overflow: auto; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat {
  padding: 1.25rem;
  background: var(--sage-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--emerald-500);
}
.admin-stat strong { display: block; font-size: 1.75rem; color: var(--emerald-600); font-family: var(--font-display); }
.admin-stat span { font-size: 0.8rem; color: var(--text-muted); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sage-100);
}
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-badge--ok { background: #d1fae5; color: #065f46; }
.status-badge--wait { background: #fef3c7; color: #92400e; }
.status-badge--new { background: #dbeafe; color: #1e40af; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(4, 22, 18, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal-panel { transform: scale(1); }
.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-header h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.modal-close {
  border: none;
  background: var(--sage-100);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.modal-body { padding: 1.5rem; }
.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.cross-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--forest-800);
  text-decoration: none;
  transition: all 0.2s;
}
.cross-link:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: white;
}
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--forest-800);
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .app-layout, .admin-layout, .soulmate-layout { grid-template-columns: 1fr; }
  .chat-rooms { max-height: 200px; border-right: none; border-bottom: 1px solid var(--sage-200); }
  .eco-map { grid-template-columns: 1fr; }
}
