:root {
  --green-950: #082c20;
  --green-900: #0d3f2a;
  --green-800: #125b39;
  --green-700: #177245;
  --green-100: #eaf6ed;
  --cream: #fffdf7;
  --gold: #eabf55;
  --gold-100: #fff4d5;
  --ink: #1f2a24;
  --muted: #66746b;
  --line: #deeadf;
  --danger: #b83232;
  --danger-bg: #fff0f0;
  --warning: #945d00;
  --warning-bg: #fff5dc;
  --info: #155e91;
  --info-bg: #eaf6ff;
  --shadow: 0 20px 45px rgba(8, 44, 32, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #f4f8f4; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; background: linear-gradient(180deg, #f6faf7 0, #fffdf7 45%, #f5f8f5 100%); }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(18,91,57,.08); }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; color: var(--green-900); letter-spacing: -.02em; }
.brand-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--green-950); background: radial-gradient(circle at 35% 30%, #fff4b4, var(--gold)); box-shadow: 0 8px 18px rgba(234,191,85,.35); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.nav-links a { padding: 8px 10px; border-radius: 10px; color: #476154; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--green-900); background: var(--green-100); }
.nav-links .nav-cta { color: #fff; background: var(--green-800); padding: 10px 14px; }
.nav-links .nav-cta:hover { color: #fff; background: var(--green-900); }
.hero { padding: 84px 0 62px; position: relative; overflow: hidden; }
.hero:before, .hero:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero:before { width: 520px; height: 520px; right: -240px; top: -260px; background: rgba(234,191,85,.22); }
.hero:after { width: 420px; height: 420px; left: -250px; bottom: -310px; background: rgba(24,114,69,.10); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); align-items: center; gap: 42px; }
.eyebrow { margin: 0 0 12px; color: var(--green-700); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 17px; max-width: 700px; color: var(--green-950); font-size: clamp(35px, 5vw, 60px); line-height: 1.08; letter-spacing: -.055em; }
h2 { color: var(--green-900); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.hero-copy { max-width: 640px; font-size: 17px; line-height: 1.75; color: #52655a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; font-size: 14px; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green-900), var(--green-700)); box-shadow: 0 10px 20px rgba(18,91,57,.18); }
.btn-primary:hover { background: var(--green-950); }
.btn-secondary { color: var(--green-900); background: #fff; border-color: #cde0d1; }
.btn-secondary:hover { background: var(--green-100); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-soft { color: var(--green-900); background: var(--green-100); }
.btn-block { width: 100%; }
.hero-panel, .card, .public-summary, .form-card, .table-card, .auth-card { border: 1px solid rgba(18,91,57,.11); border-radius: 22px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.hero-panel { padding: 28px; background: linear-gradient(145deg, #0d3f2a, #1c7145); color: #fff; }
.hero-panel h3 { margin: 0 0 18px; font-size: 18px; }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.hero-list li { display: flex; gap: 12px; line-height: 1.5; color: #def3e5; font-size: 14px; }
.hero-list span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(234,191,85,.22); color: #ffe7a3; font-weight: 900; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-card { padding: 20px; border-radius: 18px; color: var(--green-950); background: linear-gradient(160deg, #fff, #eef8f0); border: 1px solid #d6eadb; }
.summary-card .label { margin: 0 0 9px; color: #5a7564; font-size: 12px; font-weight: 800; }
.summary-card strong { display: block; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.summary-card small { display: block; margin-top: 8px; color: #6d7e72; font-size: 12px; }
.charts-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.chart-card { min-height: 330px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(8,44,32,.06); }
.chart-card h3 { margin: 0 0 18px; color: var(--green-900); font-size: 16px; }
.chart-wrap { position: relative; min-height: 246px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { padding: 24px; border: 1px solid #deeadf; border-radius: 18px; background: #fff; }
.info-card .number { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 50%; background: var(--gold-100); color: #805300; font-weight: 900; }
.info-card h3 { margin-bottom: 8px; color: var(--green-900); font-size: 17px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.footer { padding: 27px 0; color: #6c7d72; font-size: 13px; border-top: 1px solid #e1ebe3; }
.page-banner { padding: 56px 0 34px; background: linear-gradient(135deg, #0d3f2a, #1d7044); color: #fff; }
.page-banner h1 { margin-bottom: 10px; color: #fff; font-size: clamp(34px, 4vw, 48px); }
.page-banner p { margin: 0; max-width: 700px; color: #dff2e4; line-height: 1.7; }
.content-wrap { width: min(760px, calc(100% - 32px)); margin: 42px auto 72px; }
.form-card { padding: 30px; }
.form-card h2 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #395746; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 12px; outline: none; color: var(--ink); border: 1px solid #ccded0; border-radius: 11px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(23,114,69,.11); }
input::placeholder { color: #9aaba0; }
.field-help { margin: -4px 0 0; color: #78877d; font-size: 12px; line-height: 1.5; }
.disclaimer { margin: 18px 0 0; padding: 13px 14px; color: #52665a; font-size: 13px; line-height: 1.6; border-radius: 12px; background: #f4faf5; border: 1px solid #dcece0; }
.alert { margin: 18px 0; padding: 13px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.alert-success { color: #176337; background: #ecf9f0; border: 1px solid #c7ead2; }
.alert-danger { color: #912d2d; background: var(--danger-bg); border: 1px solid #f1c8c8; }
.alert-warning { color: #815200; background: var(--warning-bg); border: 1px solid #f0d8a4; }
.alert-info { color: #155e91; background: var(--info-bg); border: 1px solid #c9e6f8; }
.hidden { display: none !important; }
.result-card { text-align: center; }
.result-icon { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 28px; background: var(--green-700); }
.progress { height: 12px; overflow: hidden; border-radius: 100px; background: #e7eee8; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-700), #44ad64); border-radius: inherit; }
.result-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; text-align: left; }
.result-item { padding: 14px; border-radius: 12px; background: #f5f9f6; }
.result-item span { display: block; color: #6e7e73; font-size: 12px; }
.result-item strong { display: block; margin-top: 6px; color: var(--green-900); }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #0c3c29, #e8efd9); }
.auth-card { width: min(470px, 100%); padding: 34px; }
.install-card { width: min(570px, 100%); }
.auth-card h1 { margin: 7px 0 10px; font-size: 33px; }
.auth-card .muted { color: var(--muted); line-height: 1.6; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-950); font-size: 25px; font-weight: 900; border-radius: 50%; background: var(--gold); }
.dashboard-body { background: #f4f8f5; }
.dashboard-top { background: var(--green-950); color: #fff; }
.dashboard-top .header-row { min-height: 68px; }
.dashboard-brand { color: #fff; }
.dashboard-main { padding: 28px 0 60px; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.dashboard-head h1 { margin: 0; color: var(--green-950); font-size: 32px; }
.dashboard-head p { margin: 5px 0 0; color: var(--muted); }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-summary .summary-card { box-shadow: 0 8px 22px rgba(8,44,32,.05); }
.dashboard-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: start; }
.table-card { padding: 22px; overflow: hidden; }
.table-card h2 { margin-bottom: 16px; font-size: 20px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e2ebe3; }
th { color: #426354; background: #f3f8f4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
td.numeric, th.numeric { text-align: right; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 100px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.badge-success { color: #176337; background: #dff5e6; }
.badge-warning { color: #855100; background: #fff0c7; }
.badge-danger { color: #9a2d2d; background: #ffe0e0; }
.badge-info { color: #155e91; background: #ddf0fc; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-small { min-height: 32px; padding: 7px 9px; border-radius: 9px; font-size: 12px; }
.empty-state { padding: 28px 12px; color: #738177; text-align: center; }
.meta { color: #718075; font-size: 12px; }
.inline-form { display: inline; }
.admin-login-link { color: #def3e5; font-size: 13px; }
.admin-login-link:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .hero-grid, .charts-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .summary-grid, .admin-summary { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-row { min-height: 64px; }
  .brand { font-size: 14px; }
  .nav-links { gap: 1px; }
  .nav-links a { padding: 7px 6px; font-size: 12px; }
  .nav-links a:nth-child(3), .nav-links a:nth-child(4) { display: none; }
  .hero { padding: 44px 0; }
  .hero-panel, .form-card, .table-card, .auth-card { border-radius: 18px; padding: 22px; }
  .summary-grid, .admin-summary, .form-grid, .result-details { grid-template-columns: 1fr; }
  .section { padding: 45px 0; }
  .page-banner { padding: 42px 0 28px; }
  .dashboard-head { align-items: start; flex-direction: column; }
}
