:root {
  --bg: #08111f;
  --bg-soft: #0f172a;
  --bg-page: #f7fafc;
  --panel: rgba(255,255,255,0.92);
  --panel-2: #ffffff;
  --line: #dbe3ef;
  --text: #0f172a;
  --muted: #5b6472;
  --brand: #22c55e;
  --brand-dark: #15803d;
  --accent: #6366f1;
  --warn: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(99,102,241,0.12), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0b1220 320px, #eaf1fb 320px, #f7fafc 100%);
  min-height: 100vh;
}

main {
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #4f46e5);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.28);
}
.button.secondary {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.button.dark {
  color: #fff;
  background: #0f172a;
}

.hero {
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0) 0%, rgba(247, 250, 252, 0.92) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  max-width: 12ch;
}

.hero p,
.page-hero p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 60ch;
}

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

.hero-points,
.stat-grid,
.metric-grid,
.feature-grid,
.steps,
.category-grid,
.faq-grid,
.form-grid,
.suggestion-grid,
.link-grid,
.policy-grid,
.contact-grid,
.about-grid,
.value-grid {
  display: grid;
  gap: 16px;
}

.hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid, .metric-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.faq-grid { grid-template-columns: repeat(2, 1fr); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.suggestion-grid { grid-template-columns: repeat(2, 1fr); }
.link-grid { grid-template-columns: repeat(3, 1fr); }
.policy-grid { grid-template-columns: 1fr 1fr; }
.contact-grid, .about-grid { grid-template-columns: 1.05fr 0.95fr; }
.value-grid { grid-template-columns: repeat(3, 1fr); }

.hero-point,
.info-card,
.stat,
.metric-card,
.card,
.panel,
.glass-panel,
.cta,
.page-card,
.contact-card {
  border-radius: 24px;
}

.hero-point {
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-point strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.hero-point span {
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  line-height: 1.5;
}

.hero-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 34px 70px rgba(0,0,0,0.25);
}

.glass-panel,
.panel,
.info-card,
.page-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  color: var(--text);
  border: 1px solid rgba(219,227,239,0.9);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid #e0e8f3;
}

.stat small,
.metric-label,
.eyebrow-dark,
.page-card .mini-title,
.list-title,
.tag {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.stat small,
.metric-label,
.eyebrow-dark,
.page-card .mini-title,
.list-title { color: #64748b; }

.stat strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.section {
  position: relative;
  z-index: 1;
  padding: 34px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header h2,
.page-hero h1,
.cta h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.section-header p,
.info-card p,
.info-card li,
.page-card p,
.page-card li,
.contact-card p,
.policy-copy p,
.policy-copy li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.panel h3,
.info-card h3,
.info-card h4,
.page-card h3,
.page-card h4,
.contact-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.panel-subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
  font-size: 15px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #667085;
}

.input-wrap { position: relative; }
.input-prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 700;
  pointer-events: none;
}

input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  border: 1.5px solid #d8e1ec;
  background: #fbfdff;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

textarea { min-height: 150px; resize: vertical; }
input[type="number"].with-prefix { padding-left: 30px; }

input:focus,
select:focus,
textarea:focus {
  border-color: #7c8df6;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
  background: #fff;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-top: 4px;
  color: #334155;
  font-weight: 600;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.helper-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.results-stack { display: grid; gap: 16px; }

.metric-card {
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  text-align: center;
}
.metric-card.profit-positive { background: #f0fdf4; border-color: #bbf7d0; }
.metric-card.profit-negative { background: #fef2f2; border-color: #fecaca; }
.metric-value {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 18px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.card-title h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.bar-row { margin-bottom: 12px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}
.bar-track {
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.4s ease;
}

.totals {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.suggestion-card {
  background: linear-gradient(180deg, #fffbeb, #fff7d6);
  border: 1px solid #f5d575;
}
.suggestion {
  background: rgba(255,255,255,0.88);
  border: 1px solid #f2d38b;
  border-radius: 18px;
  padding: 14px;
}
.suggestion small {
  display: block;
  margin-bottom: 6px;
  color: #92400e;
  font-weight: 700;
  line-height: 1.45;
}
.suggestion strong {
  font-size: 1.6rem;
  color: #78350f;
  letter-spacing: -0.04em;
}

.empty-state {
  text-align: center;
  padding: 34px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  color: #64748b;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #4f46e5);
  color: #fff;
  margin-bottom: 14px;
}

.page-hero {
  position: relative;
  padding: 64px 0 52px;
  color: #fff;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: none;
}
.page-hero .container { display: grid; gap: 18px; }

.page-hero + .section {
  padding-top: 18px;
}

.page-card ul,
.policy-copy ul { padding-left: 18px; }
.page-card li,
.policy-copy li { margin-bottom: 10px; }

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  padding: 8px 12px;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.policy-nav {
  position: sticky;
  top: 92px;
  align-self: start;
}
.policy-nav a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.policy-nav a:last-child { border-bottom: none; }
.policy-nav a:hover { color: #0f172a; background: #f8fafc; }

.contact-list,
.link-list {
  display: grid;
  gap: 12px;
}
.contact-item,
.link-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e0e8f3;
}
.contact-item strong,
.link-item strong {
  display: block;
  margin-bottom: 4px;
}
.small-note {
  font-size: 13px;
  color: #64748b;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.6;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 18px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}

.form-alert.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-alert.warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.form-alert ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.honeypot-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-wrap {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 16px;
  align-items: end;
}

.admin-filter-actions {
  align-self: end;
}

.admin-button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 20px 0 14px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-message-block {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.65;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-sent {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-failed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-pending,
.status-unknown,
.status-other {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cta {
  margin: 38px 0 64px;
  padding: 34px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(30, 64, 175, 0.28);
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  max-width: 56ch;
  line-height: 1.7;
}

.site-footer {
  padding: 28px 0 48px;
  color: #5b6472;
  font-size: 14px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 22px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-grid,
  .calculator-shell,
  .cta,
  .contact-grid,
  .about-grid,
  .policy-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .feature-grid,
  .value-grid,
  .link-grid,
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-nav { position: static; }
}

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: space-between; overflow-x: auto; }
  .hero, .page-hero {
    padding-top: 48px;
    padding-bottom: 44px;
  }
  .hero-points,
  .stat-grid,
  .form-grid,
  .metric-grid,
  .feature-grid,
  .faq-grid,
  .steps,
  .suggestion-grid,
  .category-grid,
  .link-grid,
  .value-grid,
  .dashboard-stats,
  .admin-filter-grid { grid-template-columns: 1fr; }
  .section-header,
  .footer-row { display: block; }
  .panel,
  .glass-panel,
  .info-card,
  .cta,
  .page-card,
  .contact-card { padding: 20px; }
  h1 { max-width: none; }
}
