:root {
    --bg: #f6f8f5;
    --surface: #ffffff;
    --ink: #17211b;
    --muted: #657169;
    --line: #dfe7e1;
    --primary: #166534;
    --primary-2: #22c55e;
    --primary-soft: #eaf8ef;
    --accent: #f59e0b;
    --danger: #b91c1c;
    --warning: #9a6700;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(20, 45, 30, .09);
}

* { 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(--ink);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(223,231,225,.85);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand span:last-child { display: grid; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 900;
    box-shadow: 0 8px 20px rgba(22,101,52,.22);
}
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 14px; }
.main-nav > a:not(.btn):hover { color: var(--primary); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 26px; cursor: pointer; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--primary);
    background: var(--primary); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 800;
    cursor: pointer; transition: .2s ease; box-shadow: 0 8px 18px rgba(22,101,52,.12);
}
.btn:hover { transform: translateY(-1px); background: #0f572b; }
.btn-sm { padding: 9px 14px; border-radius: 10px; }
.btn-lg { padding: 14px 22px; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }

.hero {
    padding: 78px 0 56px;
    background:
      radial-gradient(circle at 90% 15%, rgba(34,197,94,.14), transparent 30%),
      radial-gradient(circle at 10% 75%, rgba(245,158,11,.12), transparent 28%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 900; font-size: 13px; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -2.6px; }
h2 { font-size: clamp(29px, 4vw, 44px); letter-spacing: -1.4px; }
h3 { font-size: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); font-weight: 700; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1.3deg); }
.hero-card-inner { border-radius: 20px; overflow: hidden; background: #f0f7f2; }
.hero-cover { height: 180px; background: linear-gradient(135deg, #166534, #4ade80); display: grid; place-items: center; color: white; }
.hero-cover span { font-size: 64px; }
.hero-card-body { padding: 20px; }
.mini-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mini-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }

.section { padding: 76px 0; }
.section-sm { padding: 42px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; max-width: 620px; }
.surface { background: var(--surface); }
.soft { background: var(--primary-soft); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(20,45,30,.05); }
.card-muted { background: #f9fbf9; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); font-size: 24px; margin-bottom: 18px; }

.business-card { overflow: hidden; padding: 0; }
.business-cover { aspect-ratio: 16/8.3; background: linear-gradient(135deg,#d9fbe5,#b4e6c4); overflow: hidden; }
.business-cover img { width: 100%; height: 100%; object-fit: cover; }
.business-body { padding: 20px; }
.business-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.business-card p { color: var(--muted); margin: 0 0 18px; }
.business-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.business-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); margin-top: -46px; background: white; }
.placeholder-logo { display:grid; place-items:center; font-weight:900; color:var(--primary); background:var(--primary-soft); }

.chip, .badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.chip { background: #eef3ef; color: #445149; }
.badge-pending, .badge-inactive { background: #fff3cd; color: #7a5200; }
.badge-verified, .badge-active, .badge-paid { background: #dcfce7; color: #166534; }
.badge-rejected, .badge-suspended, .badge-expired { background: #fee2e2; color: #991b1b; }

.pricing-card { position: relative; padding: 28px; }
.pricing-card.featured { border: 2px solid var(--primary); transform: translateY(-6px); }
.pricing-label { position: absolute; right: 20px; top: 18px; background: var(--primary); color: white; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; }
.price { font-size: 40px; font-weight: 950; letter-spacing: -1.5px; margin: 12px 0 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.check-list li::before { content: '✓'; color: var(--primary); font-weight: 900; margin-right: 9px; }

.page-hero { padding: 54px 0 34px; }
.page-hero p { color: var(--muted); max-width: 760px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.toolbar .field { flex: 1 1 220px; margin: 0; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 850; font-size: 14px; }
.field small { color: var(--muted); }
input, textarea, select {
    width: 100%; border: 1px solid #cad6cd; border-radius: 12px; padding: 12px 13px; color: var(--ink); background: #fff; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.choice { border: 1px solid var(--line); border-radius: 15px; padding: 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.choice input { width: auto; margin-right: 8px; }
.help { color: var(--muted); font-size: 13px; }

.auth-shell { padding: 62px 0; }
.auth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
.auth-side { border-radius: 24px; padding: 36px; color: white; background: linear-gradient(145deg,#0f4f28,#22a956); }
.auth-side p { color: rgba(255,255,255,.82); }

.dashboard-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 28px; padding: 38px 0 70px; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; height: fit-content; position: sticky; top: 92px; }
.sidebar a { display: block; border-radius: 10px; padding: 10px 12px; font-weight: 750; color: #435047; }
.sidebar a:hover, .sidebar a.active { background: var(--primary-soft); color: var(--primary); }
.kpi-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { display:block; color: var(--muted); }
.kpi strong { display:block; font-size: 25px; margin-top: 8px; }
.notice { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f4f7f5; font-size: 13px; color: #536158; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display:inline-flex; gap:8px; align-items:center; }

.alert { border-radius: 12px; padding: 13px 15px; margin-top: 12px; font-weight: 700; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fff3cd; color: #7a5200; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1d4ed8; }
.empty { padding: 36px; text-align: center; color: var(--muted); background: white; border: 1px dashed #bccac0; border-radius: 18px; }

.profile-cover { height: 290px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg,#166534,#86efac); }
.profile-cover img { width:100%; height:100%; object-fit:cover; }
.profile-head { display: flex; gap: 20px; align-items: end; margin: -48px 24px 30px; position: relative; }
.profile-logo { width: 104px; height: 104px; border-radius: 22px; object-fit: cover; border: 5px solid var(--bg); background:white; }
.profile-title { flex:1; padding-bottom: 4px; }
.profile-title h1 { font-size: 38px; letter-spacing:-1px; }
.product-card { padding:0; overflow:hidden; }
.product-image { aspect-ratio: 4/3; background:#e8f4eb; }
.product-image img { width:100%; height:100%; object-fit:cover; }
.product-body { padding:18px; }

.cta-band { border-radius: 26px; padding: 38px; color: white; background: linear-gradient(135deg,#14532d,#16a34a); display:flex; justify-content:space-between; gap:28px; align-items:center; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom:0; }

.flash-stack { position: relative; z-index: 10; }
.site-footer { background: #122018; color: #d7e4da; padding: 48px 0 18px; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:34px; }
.footer-grid > div { display:grid; gap:8px; align-content:start; }
.footer-grid p { color:#9fb0a4; max-width:480px; }
.footer-grid a, .footer-grid span { color:#aebbb2; }
.brand-footer { color:#fff; }
.footer-bottom { border-top:1px solid #2b3b30; margin-top:28px; padding-top:18px; color:#89998d; font-size:13px; }

@media (max-width: 900px) {
    .hero-grid, .auth-grid, .dashboard-layout { grid-template-columns: 1fr; }
    .grid-3, .grid-4, .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sidebar { position: static; display:flex; overflow-x:auto; white-space:nowrap; }
    .profile-head { align-items:center; }
}
@media (max-width: 720px) {
    .nav-toggle { display:block; }
    .main-nav { display:none; position:absolute; left:16px; right:16px; top:68px; padding:16px; border:1px solid var(--line); border-radius:15px; background:white; box-shadow:var(--shadow); flex-direction:column; align-items:stretch; }
    .main-nav.open { display:flex; }
    h1 { letter-spacing:-1.5px; }
    .grid-2, .grid-3, .grid-4, .form-row, .choice-grid, .kpi-grid, .footer-grid { grid-template-columns:1fr; }
    .hero { padding-top:48px; }
    .hero-card { transform:none; }
    .section { padding:54px 0; }
    .section-head, .cta-band, .profile-head { align-items:flex-start; flex-direction:column; }
    .profile-head { margin-left:14px; margin-right:14px; }
    .profile-title h1 { font-size:30px; }
    .profile-cover { height:210px; border-radius:0; margin-inline:-16px; }
    .cta-band { padding:26px; }
}
