:root {
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #18212a;
  --muted: #63717c;
  --line: #dce3e8;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --danger: #b42318;
  --ok-soft: #dff6ef;
  --shadow: 0 10px 28px rgba(24, 33, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent-strong); }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #101820;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav a {
  color: #d5dee6;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.site-main { min-height: calc(100vh - 180px); }

.site-footer {
  background: #101820;
  color: #c5d0d8;
  margin-top: 48px;
  padding: 28px 0 18px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner a {
  display: block;
  color: #d5dee6;
  text-decoration: none;
  margin-top: 6px;
}

.footer-copy {
  margin-top: 18px;
  color: #8ea0ad;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-strong); }

.btn-secondary {
  background: #fff;
  color: var(--accent-strong);
}

.btn-secondary:hover { background: var(--ok-soft); }

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero {
  padding: 56px 0;
  background: linear-gradient(180deg, #eaf4f2 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin: 14px 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-card,
.feature,
.price-card,
.form-card,
.admin-card,
.message-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-card { padding: 22px; }
.hero-card ul { margin: 0; padding-left: 18px; }
.hero-card li { margin: 8px 0; }

.section { padding: 42px 0; }
.section.narrow .container { max-width: 560px; }
.section.muted { background: #eef3f6; }

.section-head { margin-bottom: 22px; }
.section-head h1, .section h1 { margin: 0 0 8px; font-size: 32px; }

.steps,
.feature-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.steps { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }

.steps article,
.feature { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.steps strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--accent-strong);
}

.cta-band {
  background: #101820;
  color: #fff;
  padding: 36px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.price-card {
  padding: 24px;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.price { margin: 16px 0 18px; }
.price strong { font-size: 34px; }
.price span { color: var(--muted); }

.pricing-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.billing-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 12px;
  padding: 10px 16px;
}

.billing-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.billing-label.active {
  color: var(--accent-strong);
}

.billing-save {
  background: var(--ok-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.billing-switch {
  display: inline-flex;
  position: relative;
}

.billing-switch input {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.billing-track {
  background: #cbd5dd;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  height: 30px;
  position: relative;
  transition: background 0.2s ease;
  width: 54px;
}

.billing-thumb {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  height: 24px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 0.2s ease;
  width: 24px;
}

.billing-switch input:checked + .billing-track {
  background: var(--accent);
}

.billing-switch input:checked + .billing-track .billing-thumb {
  transform: translateX(24px);
}

.billing-switch input:focus-visible + .billing-track {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.form-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

label { display: grid; gap: 6px; }
label span { font-size: 13px; font-weight: 700; color: var(--muted); }

input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5dd;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

textarea { resize: vertical; }

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.alert.success { background: #e8f8ef; border: 1px solid #9ed9b4; }
.alert.error { background: #fdecec; border: 1px solid #f1b0b0; }
.alert.info { background: #eef5ff; border: 1px solid #b7cff5; }

.note, .form-foot { color: var(--muted); font-size: 14px; }

.admin-top {
  background: #101820;
  color: #fff;
}

.admin-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  gap: 16px;
}

.admin-top nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-top a {
  color: #d5dee6;
  text-decoration: none;
}

.admin-main { padding: 24px 0 40px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.admin-stats article,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.admin-stats span { color: var(--muted); font-size: 13px; }
.admin-stats strong { font-size: 30px; display: block; margin-top: 8px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table.wide { min-width: 900px; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.filter-tabs a {
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.filter-tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
}

.pill.pending { background: #fff4db; }
.pill.approved { background: #e7f8ee; }
.pill.rejected { background: #fde8e8; }
.pill.suspended { background: #eceff3; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inline-form input[type=text] { min-width: 120px; width: auto; }

.message-list { display: grid; gap: 14px; }
.message-card { padding: 18px; }
.message-card.unread { border-color: var(--accent); }
.message-card header {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.empty { text-align: center; color: var(--muted); }

.setup-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .feature-grid,
  .pricing-grid,
  .admin-stats,
  .cta-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner { flex-direction: column; align-items: flex-start; }
}
