:root {
    --brand: #1b5e20;
    --brand-light: #2e7d32;
    --accent: #f57f17;
    --bg: #f7f9f7;
    --card: #ffffff;
    --text: #1a1f1c;
    --text-muted: #66716a;
    --border: #e6ebe7;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--brand);
}

.brand .logo-dot {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    box-shadow: 0 6px 18px rgba(27,94,32,.25);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
    padding: 70px 0 90px;
    text-align: center;
}

.hero .eyebrow {
    display: inline-block;
    background: #eafaf1;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hero h1 span { color: var(--brand); }

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature grid */
.features {
    padding: 20px 0 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 760px) {
    .features { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.feature-card .icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #eafaf1;
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Auth pages */
.auth-wrap {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(20,40,25,.06);
}

.auth-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.auth-card p.sub {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 26px;
}

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 15px;
    background: #fbfcfb;
}

.field input:focus {
    outline: none;
    border-color: var(--brand-light);
    background: #fff;
}

.field small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fdecea;
    color: #a32d2d;
    border: 1px solid #f7c1c1;
}

/* Dashboard */
.dash-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    padding: 34px 0 46px;
}

.dash-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-header h1 {
    margin: 0;
    font-size: 24px;
}

.dash-header p {
    margin: 4px 0 0;
    opacity: .85;
    font-size: 13.5px;
}

.dash-body {
    margin-top: -30px;
    padding-bottom: 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}

table.orders {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

table.orders th, table.orders td {
    padding: 12px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.orders th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

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

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    background: #eafaf1;
    color: var(--brand);
}

.status-pill.canceled, .status-pill.failed, .status-pill.refunded {
    background: #fdecea;
    color: #a32d2d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 12.5px;
}
