:root {
    --navy: #10213d;
    --navy-2: #17345f;
    --green: #18a86b;
    --green-dark: #118052;
    --paper: #ffffff;
    --soft: #f3f7fb;
    --line: #d9e4ef;
    --muted: #64748b;
    --danger: #d9534f;
    --warning: #b7791f;
    --shadow: 0 20px 50px rgba(16, 33, 61, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--navy);
    background: var(--soft);
    line-height: 1.5;
}

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

.site-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header.compact {
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-weight: 750;
}

.nav-links a:hover {
    color: var(--navy);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 42px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
}

.hero-copy h1,
.section-heading h1,
.admin-header h1 {
    margin: 14px 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy p,
.section-heading p,
.quote-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(24, 168, 107, .22);
    border-radius: 999px;
    background: rgba(24, 168, 107, .08);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 850;
}

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

.btn {
    border: 0;
    border-radius: 8px;
    min-height: 44px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 14px 28px rgba(24, 168, 107, .22);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--line);
}

.btn-google {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
}

.btn-google:hover {
    border-color: #b6c4d4;
    background: #f8fafc;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.btn-small {
    min-height: 36px;
    padding: 8px 12px;
    background: var(--navy);
    color: #fff;
}

.quote-panel,
.quick-pay-panel,
.form-card,
.table-card,
.success-card,
.service-picker {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.quote-panel {
    padding: 28px;
}

.pay-hero {
    grid-template-columns: .95fr 1.05fr;
}

.quick-pay-panel,
.success-card,
.service-picker {
    padding: 24px;
}

.quick-pay-head {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.quick-pay-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.quick-pay-head strong {
    font-size: 24px;
}

.quote-panel span {
    color: var(--muted);
    font-weight: 800;
}

.quote-panel strong {
    display: block;
    margin: 8px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.feature-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
}

.feature-grid span {
    color: var(--green);
    font-weight: 900;
}

.feature-grid h2 {
    margin: 12px 0 6px;
    font-size: 22px;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.service-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-tile-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-tile {
    display: grid;
    gap: 6px;
    width: 100%;
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.service-tile:hover,
.service-tile.active {
    border-color: rgba(24, 168, 107, .55);
    box-shadow: 0 14px 28px rgba(24, 168, 107, .12);
}

.service-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(24, 168, 107, .1);
    color: var(--green-dark);
    font-weight: 900;
}

.service-tile strong {
    font-size: 16px;
}

.service-tile small {
    line-height: 1.35;
}

.page-shell {
    width: min(980px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.checkout-shell {
    width: min(1180px, calc(100% - 32px));
}

.page-shell.narrow {
    width: min(760px, calc(100% - 32px));
}

.admin-shell {
    width: min(1220px, calc(100% - 32px));
}

.form-card {
    padding: 24px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 18px;
    align-items: start;
}

.service-picker h2,
.success-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.success-card {
    margin-bottom: 18px;
}

.success-card h2 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.success-card p,
.dashboard-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.narrow-card {
    max-width: 520px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h1,
.admin-header h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.stacked-form,
.search-form {
    display: grid;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-weight: 800;
}

label span {
    font-size: 13px;
    color: var(--muted);
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    color: var(--navy);
    background: #fff;
}

input:focus,
select:focus {
    border-color: var(--green);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(24, 168, 107, .12);
}

em {
    color: var(--danger);
    font-style: normal;
    font-size: 13px;
}

.search-form {
    grid-template-columns: 1fr auto;
}

.alert,
.notice-inline {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff5f5;
    color: #8a2424;
    border: 1px solid #ffd5d5;
    font-weight: 750;
}

.alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.notice-inline {
    margin: 0;
    background: #ecfdf5;
    color: var(--green-dark);
    border-color: #b8f0d3;
}

.status-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfe;
}

.status-card h2 {
    margin: 12px 0;
}

dl {
    margin: 0;
    display: grid;
    gap: 8px;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    margin: 0;
    text-align: right;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e7eef7;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-pill.completed,
.status-pill.paid {
    background: #dcfce7;
    color: #166534;
}

.status-pill.processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-pill.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill.flagged {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.verified,
.status-pill.approved {
    background: #dcfce7;
    color: #166534;
}

.status-pill.pending_review,
.status-pill.pending,
.status-pill.unverified {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.rejected,
.status-pill.suspended {
    background: #fee2e2;
    color: #991b1b;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.sidebar {
    background: var(--navy);
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar .brand-mark {
    background: var(--green);
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .76);
    font-weight: 800;
}

.side-nav a:hover,
.side-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.app-main {
    padding: 32px;
    min-width: 0;
}

.dashboard-head,
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-head h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(16, 33, 61, .06);
}

.metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.metric-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
}

.card-head {
    padding: 16px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.card-head.clean {
    padding: 0 0 16px;
    margin-bottom: 16px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.card-head h2 {
    margin: 0;
    font-size: 20px;
}

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

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}

small {
    color: var(--muted);
}

.inline-update {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    min-width: 420px;
}

.inline-update.wide {
    grid-template-columns: 1fr 1fr 1fr auto;
    min-width: 620px;
}

.simple-pay-page {
    background: #eef5fb;
}

.simple-header {
    max-width: 980px;
}

.simple-pay-shell {
    width: min(980px, calc(100% - 28px));
    margin: 18px auto 56px;
}

.simple-pay-title {
    margin-bottom: 18px;
}

.simple-pay-title h1 {
    margin: 10px 0 6px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.04;
}

.simple-pay-title p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.simple-pay-card,
.simple-success {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.simple-pay-card {
    padding: 18px;
}

.simple-success {
    margin-bottom: 16px;
}

.simple-service-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.simple-service-tabs button {
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
    color: var(--navy);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.simple-service-tabs button.active,
.simple-service-tabs button:hover {
    background: #ecfdf5;
    border-color: rgba(24, 168, 107, .55);
}

.simple-service-tabs strong,
.simple-service-tabs small {
    display: block;
}

.simple-service-tabs small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.3;
}

.simple-service-form {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.btn-wide {
    width: 100%;
    min-height: 52px;
}

.vas-store-page {
    min-height: 100vh;
    background: #f6f8fb;
}

.vas-header,
.vas-store-shell {
    width: min(760px, calc(100% - 32px));
}

.vas-header {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.vas-header .nav-links {
    justify-content: center;
}

.vas-store-shell {
    margin-top: 14px;
    margin-bottom: 64px;
}

.vas-hero {
    min-height: auto;
    display: block;
    margin: 8px auto 22px;
    text-align: center;
}

.vas-hero h1 {
    margin: 12px auto 8px;
    max-width: 680px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.04;
}

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

.vas-store-page .simple-success {
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(16, 33, 61, .08);
}

.vas-store-page .simple-success .hero-actions {
    justify-content: center;
}

.integration-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 33, 61, .08);
}

.integration-strip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.integration-strip strong {
    font-size: 19px;
}

.vas-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.vas-service-menu,
.vas-sale-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(16, 33, 61, .08);
}

.vas-service-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.vas-service-menu > .eyebrow {
    grid-column: 1 / -1;
    justify-self: center;
}

.vas-service-menu button {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    width: 100%;
    min-height: 118px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    text-align: center;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16, 33, 61, .05);
}

.vas-service-menu button.active,
.vas-service-menu button:hover {
    background: #f3fbf7;
    border-color: rgba(24, 168, 107, .55);
    box-shadow: 0 12px 28px rgba(24, 168, 107, .12);
}

.vas-service-menu strong,
.vas-service-menu small {
    display: block;
}

.vas-service-menu small {
    color: var(--muted);
    line-height: 1.35;
}

.vas-service-menu em {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 850;
}

.vas-sale-panel {
    display: grid;
    gap: 15px;
    padding: 24px;
}

.sale-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.sale-panel-head h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 32px);
}

.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.amount-chips button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
    color: var(--navy);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.amount-chips button:hover {
    border-color: rgba(24, 168, 107, .55);
    background: #ecfdf5;
}

.integration-note {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
}

.integration-note span {
    color: #335f9c;
    font-size: 14px;
}

@media (max-width: 820px) {
    .site-header,
    .hero,
    .feature-grid,
    .field-grid,
    .search-form,
    .admin-header,
    .app-layout,
    .metric-grid,
    .checkout-grid,
    .service-tile-grid,
    .service-tile-grid.compact,
    .simple-service-tabs,
    .vas-hero,
    .vas-workspace {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 18px;
    }

    .site-header,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
    }

    .nav-links,
    .hero-actions,
    .btn {
        width: 100%;
    }

    .nav-links {
        justify-content: space-between;
    }

    .vas-header {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
        text-align: center;
    }

    .vas-header .nav-links {
        width: auto;
        justify-content: center;
        flex-wrap: wrap;
    }

    .vas-store-shell {
        width: min(760px, calc(100% - 24px));
        margin-top: 8px;
        margin-bottom: 36px;
    }

    .vas-hero {
        margin-bottom: 18px;
    }

    .vas-service-menu {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .vas-service-menu button {
        min-height: 96px;
    }

    .vas-sale-panel {
        padding: 18px;
    }

    .sale-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .amount-chips {
        justify-content: flex-start;
    }
}
