:root {
    color-scheme: light;
    --bg: #f3f6f4;
    --panel: #ffffff;
    --text: #111c24;
    --muted: #64717c;
    --line: #d8e2df;
    --brand: #0a8f6d;
    --brand-dark: #05624d;
    --ink: #0e1a18;
    --gold: #d6ff72;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--brand);
    text-decoration: none;
}

.landing {
    min-height: 100vh;
    background:
        linear-gradient(130deg, rgba(10, 143, 109, 0.12), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(214, 255, 114, 0.32), transparent 26%),
        #f3f6f4;
}

.site-nav {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.nav-links a {
    color: #26342f;
}

.nav-cta {
    color: white !important;
    background: var(--ink);
    border-radius: 8px;
    padding: 10px 16px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    gap: 48px;
    align-items: center;
    max-width: 1180px;
    min-height: 74vh;
    margin: 0 auto;
    padding: 68px 20px 58px;
}

.pro-hero {
    position: relative;
}

.eyebrow {
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

h1 {
    font-size: clamp(42px, 6vw, 86px);
    line-height: 0.96;
    margin: 12px 0 18px;
    letter-spacing: 0;
    color: var(--ink);
}

.lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

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

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

.button,
button {
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    border: 1px solid var(--line);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-strip span,
.tag-cloud span {
    border: 1px solid rgba(14, 26, 24, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    padding: 9px 12px;
    color: #31433d;
    font-size: 14px;
    font-weight: 750;
}

.console-card {
    background: #10221e;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 28px 70px rgba(5, 23, 19, 0.28);
    overflow: hidden;
}

.console-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.console-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #da645a;
}

.console-top span:nth-child(2) {
    background: #f1c45f;
}

.console-top span:nth-child(3) {
    background: #72e19f;
}

.console-top strong {
    margin-left: auto;
    color: #d6ff72;
}

.console-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
}

.console-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 16px;
}

.console-stat.accent {
    background: var(--gold);
    color: var(--ink);
}

.console-stat small,
.profile-list span {
    display: block;
    color: inherit;
    opacity: 0.68;
    margin-bottom: 6px;
}

.console-stat strong {
    font-size: 28px;
}

.profile-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.profile-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px;
}

.profile-list span {
    grid-column: 1;
    margin: 0;
}

.profile-list em {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-style: normal;
    color: var(--gold);
    font-weight: 800;
}

.route-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #cfe3dc;
    font-size: 13px;
    font-weight: 800;
}

.route-line i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(214, 255, 114, 0));
}

.panel,
.login-card,
.card-form,
.stat,
.success,
.alert {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.panel {
    padding: 24px;
}

.metric,
.stat {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.metric + .metric {
    border-top: 1px solid var(--line);
}

.metric span,
.stat span {
    color: var(--muted);
}

.feature-band,
.use-case-band {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 20px;
}

.feature-band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    border-top: 1px solid var(--line);
}

.feature-band h2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    margin: 10px 0 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.feature-grid span {
    color: var(--brand);
    font-weight: 700;
}

.feature-grid h3 {
    margin: 30px 0 10px;
}

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

.use-case-band {
    padding-top: 20px;
    padding-bottom: 80px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    padding: 28px;
}

.login-card h1 {
    font-size: 30px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 16px;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    color: var(--text);
}

select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    color: var(--text);
    background: white;
}

textarea {
    resize: vertical;
    font-family: "Cascadia Mono", "Consolas", monospace;
}

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

.sidebar {
    background: #10231f;
    color: white;
    padding: 24px;
}

.sidebar h2 {
    font-size: 20px;
    margin: 0 0 24px;
}

.sidebar nav {
    display: grid;
    gap: 8px;
}

.sidebar a {
    color: #e8fff8;
    padding: 10px 12px;
    border-radius: 8px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.content h1 {
    font-size: 42px;
    line-height: 1.05;
    margin-top: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 16px;
    margin-bottom: 28px;
}

.stat {
    display: grid;
}

.stat strong {
    font-size: 34px;
}

.card-form {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
}

.card-form.wide {
    max-width: 760px;
    grid-template-columns: 1fr;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.success,
.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
}

.success {
    border-color: #bdebdc;
    background: #ecfff8;
}

.alert {
    color: var(--danger);
    border-color: #ffd0ca;
    background: #fff3f1;
}

code {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.9em;
}

.dashboard-panel {
    padding: 22px;
    max-width: 820px;
}

.onboarding-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.onboarding-list a {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #f8fbfa;
}

.onboarding-list a.done {
    border-color: #bdebdc;
    background: #ecfff8;
}

.onboarding-list span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
}

.product-hero h1 {
    max-width: 780px;
    margin-bottom: 12px;
}

.product-hero .lead {
    max-width: 680px;
    margin: 0;
}

.product-stats {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.product-stats .stat {
    min-height: 142px;
    align-items: start;
}

.product-grid,
.proxy-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.product-card,
.proxy-type-grid article,
.empty-state {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.product-card {
    min-height: 210px;
    padding: 24px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card span,
.empty-state span,
.proxy-type-grid span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.product-card strong {
    display: block;
    margin: 18px 0;
    font-size: 24px;
    line-height: 1.18;
}

.product-card em,
.proxy-type-grid em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.page-title-row p {
    max-width: 720px;
    margin-bottom: 0;
}

.empty-state {
    padding: 34px;
    max-width: 760px;
}

.empty-state h2 {
    font-size: 30px;
    margin: 14px 0 10px;
}

.empty-state p {
    color: var(--muted);
    line-height: 1.58;
    max-width: 560px;
}

.product-table {
    margin-top: 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e9f8f2;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 850;
}

.small-button {
    padding: 8px 12px;
    font-size: 13px;
}

.proxy-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.proxy-type-grid article {
    padding: 20px;
    min-height: 150px;
}

.proxy-type-grid strong {
    display: block;
    font-size: 20px;
    margin: 24px 0 10px;
}

.billing-form {
    max-width: 520px;
    grid-template-columns: 1fr auto;
}

.billing-intro {
    max-width: 680px;
}

.billing-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.billing-builder h2 {
    margin: 8px 0 12px;
    font-size: 34px;
}

.billing-builder-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.billing-builder-form input {
    font-size: 22px;
    font-weight: 900;
}

.admin-plan-builder {
    max-width: 560px;
    margin: 18px 0 22px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 34px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 420px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.plan-card.popular {
    border-color: rgba(10, 143, 109, 0.5);
    box-shadow: 0 22px 58px rgba(10, 143, 109, 0.16);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #d6ff72;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.plan-card h2 {
    margin: 0;
    font-size: 24px;
}

.plan-card p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.plan-card strong {
    display: block;
    font-size: 40px;
    line-height: 1;
    color: var(--ink);
}

.plan-card ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 auto;
    list-style: none;
    color: #31433d;
}

.plan-card li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 900;
    margin-right: 8px;
}

.api-panel {
    margin: 18px 0 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.api-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

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

.api-panel-head span,
.method-pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: #edf5f2;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 12px;
}

.api-warn .api-panel-head span {
    background: #fff3f1;
    color: var(--danger);
}

.api-panel pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    min-height: 120px;
    background: #101a18;
    color: #d9eee8;
    font: 13px/1.55 "Cascadia Mono", "Consolas", monospace;
}

.api-doc-card {
    padding: 24px;
    margin-top: 22px;
    max-width: 980px;
}

.api-doc-card h2 {
    margin-top: 0;
}

.api-doc-card pre {
    overflow-x: auto;
    border-radius: 8px;
    padding: 18px;
    background: #101a18;
    color: #d9eee8;
    font: 13px/1.55 "Cascadia Mono", "Consolas", monospace;
}

.api-key-reveal code {
    display: block;
    margin-top: 10px;
    padding: 12px;
    overflow-x: auto;
}

.api-overview-grid .product-card strong,
.api-overview-grid .product-card em {
    overflow-wrap: anywhere;
}

.services-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
    align-items: end;
    margin-bottom: 26px;
}

.services-hero h1 {
    max-width: 760px;
    margin-bottom: 12px;
}

.services-meter {
    min-height: 220px;
    padding: 24px;
    border-radius: 8px;
    background: #10231f;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 22px 58px rgba(16, 35, 31, 0.2);
}

.services-meter span,
.services-meter em {
    color: #b8d3cb;
    font-style: normal;
    font-weight: 800;
}

.services-meter strong {
    font-size: 74px;
    line-height: 0.9;
    color: var(--gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    min-height: 360px;
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
    display: flex;
    flex-direction: column;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto 22px 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.service-card-top span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #10231f;
    color: var(--gold);
    font-weight: 900;
}

.service-card-top em {
    color: var(--muted);
    font-style: normal;
    font-weight: 850;
    font-size: 13px;
}

.service-card h2 {
    margin: 26px 0 10px;
    font-size: 26px;
}

.service-status {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e9f8f2;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.service-metric {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.service-card p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 18px;
}

.service-card ul {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.service-card li {
    color: #31433d;
    line-height: 1.38;
}

.service-card li::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--brand);
    transform: translateY(-1px);
}

.services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 28px;
    border-radius: 8px;
    background: #10231f;
    color: white;
}

.services-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.services-cta p {
    margin: 0;
    color: #b8d3cb;
}

.catalog-group {
    margin: 28px 0;
}

.catalog-group h2 {
    font-size: 22px;
}

.catalog-group code {
    display: block;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
}

.api-console-form {
    grid-template-columns: 150px minmax(260px, 1fr) minmax(240px, 1fr) minmax(240px, 1fr) auto;
}

@media (max-width: 820px) {
    .hero,
    .feature-band,
    .feature-grid,
    .product-grid,
    .proxy-type-grid,
    .plan-grid,
    .services-hero,
    .services-grid,
    .app-shell,
    .card-form,
    .stats {
        grid-template-columns: 1fr;
    }

    .product-hero,
    .page-title-row,
    .services-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .api-console-form {
        grid-template-columns: 1fr;
    }

    .site-nav {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
    }

    .console-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .content {
        padding: 22px;
    }
}

.health-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.health-banner span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.health-banner strong,
.health-banner small {
    display: block;
}

.health-banner small {
    margin-top: 6px;
    color: var(--muted);
}

.health-ok {
    border-color: #bdebdc;
    background: #f3fffb;
}

.health-ok span {
    background: #dff8ef;
    color: var(--brand-dark);
}

.health-warn {
    border-color: #ffe0a6;
    background: #fff9ed;
}

.health-warn span {
    background: #fff1c7;
    color: #8a5a00;
}

.meter {
    height: 9px;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efec;
}

.meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.labeled-meter {
    max-width: 520px;
}

.stat small {
    color: var(--muted);
    font-weight: 750;
}

.wide-panel {
    max-width: none;
}

.customer-action-grid .product-card {
    min-height: 230px;
}

.resource-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.resource-summary-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 16px 40px rgba(30, 45, 70, 0.08);
}

.resource-summary-grid span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.resource-summary-grid strong {
    display: block;
    margin-top: 18px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.16;
}

.resource-summary-grid em {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
    font-weight: 750;
}

.action-empty .actions {
    margin-top: 18px;
}

.api-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.api-example-grid .api-panel {
    margin: 0;
}

.service-paused {
    opacity: 0.72;
}

.service-paused .service-status {
    background: #f1f5f3;
    color: var(--muted);
}

.compact-plan-grid .plan-card {
    min-height: 280px;
}

@media (max-width: 820px) {
    .health-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-summary-grid,
    .api-example-grid {
        grid-template-columns: 1fr;
    }

    .billing-builder,
    .billing-builder-form {
        grid-template-columns: 1fr;
    }
}

.resource-admin-panel {
    margin-top: 24px;
    max-width: none;
}

.inline-form {
    display: inline;
}

.inline-form button {
    margin: 0;
}

/* Advance Bypass System skin */
:root {
    color-scheme: dark;
    --bg: #060b0a;
    --panel: #0d1513;
    --text: #edf7f1;
    --muted: #8ea39a;
    --line: rgba(178, 255, 210, 0.14);
    --brand: #21f28f;
    --brand-dark: #0bb46a;
    --ink: #f4fff8;
    --gold: #c8ff4d;
    --danger: #ff6b5f;
}

body {
    background:
        linear-gradient(90deg, rgba(33, 242, 143, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(33, 242, 143, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 12% 10%, rgba(33, 242, 143, 0.16), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(200, 255, 77, 0.14), transparent 24%),
        #060b0a;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.landing {
    background:
        radial-gradient(circle at 70% 12%, rgba(33, 242, 143, 0.20), transparent 26%),
        linear-gradient(135deg, #060b0a 0%, #101915 50%, #07100d 100%);
}

.brand,
.nav-links a,
h1,
.content h1,
.feature-band h2,
.product-card strong,
.resource-summary-grid strong,
.stat strong {
    color: var(--text);
}

.brand-mark,
.sidebar,
.console-card,
.services-meter,
.services-cta {
    background: linear-gradient(180deg, #07110e, #0d2119);
    border-right: 1px solid rgba(33, 242, 143, 0.18);
}

.sidebar {
    box-shadow: inset -1px 0 rgba(200, 255, 77, 0.08);
}

.sidebar h2 {
    color: var(--brand);
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar a {
    color: #c9f8df;
}

.sidebar a:hover {
    background: rgba(33, 242, 143, 0.12);
    color: white;
}

.button,
button,
.nav-cta {
    background: linear-gradient(135deg, var(--brand), var(--gold));
    color: #03110b !important;
    box-shadow: 0 12px 26px rgba(33, 242, 143, 0.18);
}

.button.ghost {
    background: rgba(13, 21, 19, 0.82);
    color: var(--brand) !important;
    border: 1px solid rgba(33, 242, 143, 0.24);
}

.panel,
.login-card,
.card-form,
.stat,
.product-card,
.onboarding-list a,
.proxy-type-grid article,
.empty-state,
.plan-card,
.service-card,
.resource-summary-grid article,
.table-wrap,
.api-panel,
.api-doc-card,
.health-banner {
    background: linear-gradient(180deg, rgba(16, 28, 24, 0.96), rgba(9, 16, 14, 0.96));
    border: 1px solid rgba(33, 242, 143, 0.18);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.03);
}

input,
select,
textarea {
    background: rgba(8, 17, 14, 0.94);
    border-color: rgba(33, 242, 143, 0.22);
    color: var(--text);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px #0c1713 inset;
    caret-color: var(--text);
}

th,
td {
    border-bottom-color: rgba(178, 255, 210, 0.10);
}

th,
.muted,
.lead,
label,
.product-card em,
.proxy-type-grid em,
.resource-summary-grid em,
.service-card p,
.services-cta p,
.stat small {
    color: var(--muted);
}

code,
.api-panel pre,
.api-doc-card pre {
    background: #020706;
    color: #bfffdc;
    border: 1px solid rgba(33, 242, 143, 0.16);
}

.status-pill,
.service-status,
.api-panel-head span,
.method-pill {
    background: rgba(33, 242, 143, 0.13);
    color: var(--brand);
}

.health-ok {
    background: linear-gradient(180deg, rgba(12, 39, 27, 0.95), rgba(8, 18, 14, 0.95));
    border-color: rgba(33, 242, 143, 0.26);
}

.health-warn {
    background: linear-gradient(180deg, rgba(50, 37, 9, 0.95), rgba(18, 14, 8, 0.95));
    border-color: rgba(255, 203, 87, 0.32);
}

.meter {
    background: rgba(255, 255, 255, 0.08);
}

.meter i,
.service-card::after {
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.feature-grid article,
.trust-strip span,
.tag-cloud span {
    background: rgba(13, 21, 19, 0.72);
    border-color: rgba(33, 242, 143, 0.18);
    color: #cafade;
}

.console-stat,
.profile-list div {
    background: rgba(33, 242, 143, 0.08);
    border-color: rgba(33, 242, 143, 0.14);
}

.console-stat.accent {
    background: linear-gradient(135deg, var(--brand), var(--gold));
    color: #04110b;
}

.onboarding-list a {
    color: var(--text);
}

.onboarding-list a.done {
    background: rgba(33, 242, 143, 0.12);
    border-color: rgba(33, 242, 143, 0.36);
}

.onboarding-list strong {
    color: var(--text);
}

.success {
    background: rgba(33, 242, 143, 0.10);
    border-color: rgba(33, 242, 143, 0.32);
    color: #c9ffe0;
}

.alert {
    background: rgba(255, 107, 95, 0.10);
    border-color: rgba(255, 107, 95, 0.34);
    color: #ffd3ce;
}

.plan-card ul,
.service-card li,
.feature-grid p,
.nav-links a,
.metric span,
.login-card p,
.login-card small {
    color: var(--muted);
}

.login-card a {
    color: var(--brand);
}

.legal-checkbox {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.92rem;
}

.legal-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.auth-legal {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.table-wrap table,
.table-wrap td,
.table-wrap th {
    color: var(--text);
}

.table-wrap td,
.table-wrap th {
    overflow-wrap: anywhere;
}

tbody tr:hover {
    background: rgba(33, 242, 143, 0.045);
}

select option {
    background: #08110e;
    color: var(--text);
}

.site-nav {
    border-bottom: 1px solid rgba(33, 242, 143, 0.12);
}

.login-page {
    background:
        radial-gradient(circle at 16% 12%, rgba(33, 242, 143, 0.16), transparent 26%),
        radial-gradient(circle at 86% 8%, rgba(200, 255, 77, 0.12), transparent 24%),
        #060b0a;
}

.service-paused .service-status {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.app-footer,
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(33, 242, 143, 0.14);
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 36px;
}

.app-footer a,
.site-footer a {
    color: var(--muted);
    font-weight: 800;
}

.legal-shell {
    min-height: 100vh;
}

.legal-page {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.legal-page h1 {
    max-width: 780px;
}

.legal-sections,
.ticket-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.legal-sections h2 {
    margin-top: 0;
}

.legal-sections p,
.legal-note,
.ticket-card p {
    line-height: 1.65;
}

.ticket-form {
    display: grid;
    max-width: 880px;
}

.ticket-card {
    padding: 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(16, 28, 24, 0.96), rgba(9, 16, 14, 0.96));
    border: 1px solid rgba(33, 242, 143, 0.18);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.03);
}

.ticket-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.ticket-card-head strong,
.ticket-card-head small,
.ticket-card-head em {
    display: block;
}

.ticket-card-head strong {
    margin-top: 10px;
    font-size: 22px;
}

.ticket-card-head small,
.ticket-card-head em,
.ticket-card p {
    color: var(--muted);
    font-style: normal;
}

.ticket-reply {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(33, 242, 143, 0.08);
    border: 1px solid rgba(33, 242, 143, 0.18);
}

.ticket-reply span {
    color: var(--brand);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.ticket-admin-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

/* Responsive hardening */
img,
svg,
video,
canvas {
    max-width: 100%;
}

.content,
.panel,
.product-card,
.plan-card,
.service-card,
.api-panel,
.table-wrap,
.console-card {
    min-width: 0;
}

button,
.button,
.small-button,
input,
select,
textarea {
    max-width: 100%;
}

.table-wrap {
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-wrap code,
.api-panel-head span,
.method-pill {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding-top: 42px;
    }

    .console-card {
        max-width: 760px;
    }

    .product-grid,
    .proxy-type-grid,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .api-example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats,
    .product-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-console-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        background-size: 30px 30px, 30px 30px, auto, auto, auto;
    }

    .site-nav {
        width: min(100% - 28px, 1180px);
        padding: 14px 0;
    }

    .brand {
        font-size: 17px;
        line-height: 1.15;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .nav-links {
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .hero {
        padding: 34px 14px 40px;
        gap: 28px;
    }

    h1,
    .content h1 {
        font-size: clamp(34px, 13vw, 54px);
        line-height: 1.02;
    }

    .lead {
        font-size: 17px;
    }

    .feature-band,
    .use-case-band {
        padding: 34px 14px;
    }

    .feature-grid,
    .console-grid,
    .product-grid,
    .proxy-type-grid,
    .plan-grid,
    .services-grid,
    .stats,
    .product-stats,
    .resource-summary-grid,
    .api-example-grid,
    .onboarding-list,
    .billing-builder,
    .billing-builder-form,
    .card-form,
    .api-console-form {
        grid-template-columns: 1fr;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(33, 242, 143, 0.18);
    }

    .sidebar h2 {
        margin: 0 0 10px;
        font-size: 15px;
        line-height: 1.2;
    }

    .sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .sidebar a {
        flex: 0 0 auto;
        padding: 9px 11px;
        font-size: 14px;
        white-space: nowrap;
    }

    .content {
        padding: 18px 14px 34px;
    }

    .content h1 {
        margin-bottom: 14px;
    }

    .panel,
    .login-card,
    .card-form,
    .product-card,
    .plan-card,
    .service-card,
    .resource-summary-grid article,
    .empty-state,
    .api-doc-card {
        padding: 18px;
    }

    .product-card,
    .plan-card,
    .service-card,
    .product-stats .stat,
    .services-meter {
        min-height: auto;
    }

    .plan-card strong,
    .stat strong {
        font-size: 32px;
    }

    .service-metric {
        font-size: 26px;
    }

    .billing-builder {
        gap: 18px;
    }

    .billing-builder h2 {
        font-size: 28px;
    }

    .billing-builder-form button,
    .actions .button,
    .page-title-row .button,
    .health-banner .button,
    .services-cta .button {
        width: 100%;
    }

    .product-hero,
    .page-title-row,
    .services-hero,
    .services-cta,
    .health-banner,
    .api-panel-head,
    .route-line {
        align-items: stretch;
        flex-direction: column;
    }

    .ticket-card-head {
        flex-direction: column;
    }

    .legal-page {
        padding: 34px 0;
    }

    .page-title-row {
        gap: 14px;
    }

    .services-meter {
        min-height: 150px;
    }

    .services-meter strong {
        font-size: 54px;
    }

    .empty-state {
        max-width: none;
    }

    .empty-state h2,
    .services-cta h2 {
        font-size: 24px;
    }

    .api-panel pre,
    .api-doc-card pre {
        font-size: 12px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .table-wrap {
        border-radius: 8px;
    }

    table {
        min-width: 620px;
    }
}

@media (max-width: 460px) {
    .login-page {
        padding: 14px;
        align-items: start;
    }

    .login-card {
        width: 100%;
        margin-top: 32px;
        padding: 20px;
    }

    .content {
        padding-inline: 12px;
    }

    .sidebar {
        padding-inline: 12px;
    }

    .button,
    button {
        width: 100%;
        padding: 12px 14px;
    }

    .small-button {
        width: auto;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .console-card,
    .panel,
    .product-card,
    .plan-card,
    .service-card {
        border-radius: 8px;
    }

    .profile-list div,
    .metric,
    .stat {
        grid-template-columns: 1fr;
    }

    .profile-list em {
        grid-row: auto;
        grid-column: auto;
    }

    table {
        min-width: 560px;
    }
}

/* Responsive account navigation override */
.app-shell {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-head {
    display: grid;
    gap: 4px;
}

.sidebar-head h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.sidebar-head span {
    color: rgba(201, 248, 223, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar nav {
    display: grid;
    gap: 6px;
}

.sidebar a {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid transparent;
}

.sidebar a.active,
.sidebar a[aria-current="page"] {
    background: rgba(33, 242, 143, 0.16);
    border-color: rgba(33, 242, 143, 0.32);
    color: #ffffff;
}

.content {
    width: 100%;
    overflow-x: hidden;
}

.table-wrap,
.api-panel pre,
pre {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        height: auto;
        max-height: none;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 12px 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(33, 242, 143, 0.20);
        gap: 10px;
    }

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

    .sidebar-head h2 {
        font-size: 15px;
        line-height: 1.2;
        max-width: 58vw;
    }

    .sidebar-head span {
        font-size: 11px;
        white-space: nowrap;
    }

    .sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .sidebar a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 11px;
        white-space: nowrap;
        scroll-snap-align: start;
        font-size: 14px;
    }

    .content {
        padding: 18px 14px 34px;
    }

    .health-banner,
    .page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title-row .button,
    .page-title-row button,
    .health-banner .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .sidebar-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .sidebar-head h2 {
        max-width: 100%;
    }

    .content h1 {
        font-size: 32px;
    }
}

.settings-form h2 {
    margin: 10px 0 2px;
}

.settings-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-panel > div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.settings-panel h3 {
    margin: 0 0 8px;
}

.settings-help {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    margin-bottom: 16px;
}

.option-grid .checkbox {
    margin: 0;
}

.payment-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.plan-card .payment-selects {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .settings-panel,
    .payment-selects {
        grid-template-columns: 1fr;
    }

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

.danger-button {
    background: var(--danger);
    color: white;
}

.danger-button:hover {
    filter: brightness(1.06);
}
