:root {
  --bg: #f3f6f4;
  --surface: #fff;
  --text: #142018;
  --muted: #5c6b61;
  --line: rgba(20, 32, 24, 0.1);
  --accent: #1f7a45;
  --accent-2: #2f9e5b;
  --accent-soft: rgba(31, 122, 69, 0.1);
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(18, 40, 28, 0.1);
  --font: "Space Grotesk", "Bahnschrift", "Segoe UI Semibold", sans-serif;
  --radius: 16px;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(47, 158, 91, 0.12), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(138, 115, 64, 0.08), transparent 55%),
    var(--bg);
}

body { line-height: 1.45; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0b120e;
  display: grid;
  place-items: center;
  color: #39e75f;
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 820px) {
  .auth-grid { grid-template-columns: 1fr; }
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-copy p { color: var(--muted); margin: 0 0 12px; }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  padding: 4px;
  border-radius: 999px;
  width: fit-content;
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.tabs button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(20, 40, 28, 0.08);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}

input:focus, textarea:focus {
  outline: 2px solid rgba(31, 122, 69, 0.25);
  border-color: var(--accent);
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(31, 122, 69, 0.28);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.plan {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan.featured {
  border-color: rgba(31, 122, 69, 0.45);
  box-shadow: 0 10px 28px rgba(31, 122, 69, 0.12);
}

.plan h3 { margin: 0; font-size: 15px; }
.plan .price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.plan .blurb { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.plan .btn { margin-top: auto; }
.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.plan-actions .btn { width: 100%; }

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .meta { grid-template-columns: 1fr; }
}

.meta .card { padding: 14px 16px; }
.meta .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.meta .v { font-size: 15px; font-weight: 700; word-break: break-all; }

.section-title {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

@media (max-width: 720px) {
  .admin-form .row { grid-template-columns: 1fr; }
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.check input { width: auto; margin: 0; }

.note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.mobile-note {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .mobile-note { display: block; }
}
