* {
    box-sizing: border-box;
}

:root {
    --bg: #080b11;
    --surface: #0f131c;
    --surface-2: #151a25;
    --border: #252b38;
    --text: #f4f6fb;
    --muted: #929bad;
    --primary: #6d66ff;
    --primary-2: #536dff;
    --success: #38d996;
    --danger: #ff6877;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(90, 84, 255, .14),
            transparent 38%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

.container {
    width: min(
        1120px,
        calc(100% - 40px)
    );

    margin: auto;
}

.nav {
    height: 72px;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid rgba(255,255,255,.07);

    background:
        rgba(8,11,17,.86);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 850;
    letter-spacing: 2px;
    font-size: 19px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;

    color: var(--muted);
    font-size: 14px;
}

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

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

.hero {
    padding: 110px 0 90px;
    max-width: 760px;
}

.eyebrow {
    color: #a8a4ff;

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.hero h1 {
    font-size:
        clamp(42px, 7vw, 72px);

    line-height: 1.02;
    letter-spacing: -3px;

    margin:
        18px 0;
}

.hero p {
    color: var(--muted);

    max-width: 630px;

    font-size: 17px;
    line-height: 1.7;
}

.actions {
    margin-top: 30px;

    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;

    min-height: 44px;

    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 720;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    color: white;
}

.button.secondary {
    background: transparent;
    border-color: var(--border);
    color: #c5cad5;
}

.button.small {
    min-height: 37px;
    padding: 0 13px;
}

button:disabled {
    opacity: .55;
    cursor: default;
}

.section {
    padding: 70px 0;
}

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    border:
        1px solid var(--border);

    border-radius: 18px;

    padding: 25px;
}

.card h3 {
    margin:
        0 0 10px;
}

.card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;
}

.page {
    padding: 70px 0;
}

.page-header {
    max-width: 680px;
    margin-bottom: 35px;
}

.page-header h1 {
    margin:
        8px 0 10px;

    font-size:
        clamp(32px, 5vw, 48px);

    letter-spacing: -1.7px;
}

.page-header p {
    color: var(--muted);
    line-height: 1.65;
}

.form-card {
    width: 100%;
    max-width: 560px;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background: var(--surface);
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;

    margin-bottom: 8px;

    color: #c7ccd7;

    font-size: 13px;
    font-weight: 670;
}

input {
    width: 100%;

    height: 49px;

    padding: 0 15px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background: #090d14;

    outline: 0;

    color: white;

    font-size: 15px;
}

input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(109,102,255,.12);
}

.help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.alert {
    display: none;

    margin-top: 15px;
    padding: 13px 14px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}

.alert.show {
    display: block;
}

.alert.error {
    background:
        rgba(255,104,119,.08);

    border:
        1px solid
        rgba(255,104,119,.2);

    color: #ff9ca6;
}

.alert.success {
    background:
        rgba(56,217,150,.08);

    border:
        1px solid
        rgba(56,217,150,.2);

    color: #85e9bc;
}

.plan {
    margin:
        22px 0;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: #0a0e15;
}

.plan-row {
    display: flex;

    justify-content: space-between;

    padding: 8px 0;

    font-size: 14px;
}

.plan-row span:first-child {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-bottom: 26px;
}

.stat {
    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);
}

.stat-value {
    font-size: 34px;
    font-weight: 800;

    margin-top: 8px;
}

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

.table {
    width: 100%;

    border-collapse: collapse;

    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;

    border:
        1px solid var(--border);

    border-radius: 16px;
}

.table th,
.table td {
    padding:
        15px 17px;

    text-align: left;

    border-bottom:
        1px solid var(--border);

    white-space: nowrap;

    font-size: 13px;
}

.table th {
    color: var(--muted);
    font-weight: 650;

    background: #0c1017;
}

.status {
    font-size: 11px;
    font-weight: 800;

    padding: 6px 9px;

    border-radius: 999px;

    display: inline-block;
}

.status.SUCCESS {
    color: #78e7b3;
    background:
        rgba(56,217,150,.09);
}

.status.FAILED {
    color: #ff9ba5;
    background:
        rgba(255,104,119,.09);
}

.status.RUNNING,
.status.QUEUED {
    color: #b1adff;
    background:
        rgba(109,102,255,.1);
}

.footer {
    margin-top: 80px;

    padding: 35px 0;

    border-top:
        1px solid var(--border);

    color: #646d7d;
    font-size: 12px;
}

@media (max-width: 800px) {

    .nav-links {
        display: none;
    }

    .grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }
}


/* =========================
   CUSTOMER PANEL
   ========================= */

.panel-page {
    padding-top: 40px;
    padding-bottom: 80px;
}


.panel-hero {
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 40px;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(109,102,255,.18),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #111620,
            #0b0f16
        );

    margin-bottom: 25px;
}


.panel-hero h1 {
    margin:
        10px 0;

    font-size:
        clamp(
            34px,
            5vw,
            52px
        );

    letter-spacing:
        -2px;
}


.panel-hero p {
    max-width: 600px;

    color: var(--muted);

    line-height: 1.7;
}


.panel-hero-actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.panel-section {
    margin-top: 55px;
}


.section-title {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap: 25px;

    margin-bottom: 22px;
}


.section-title h2 {
    margin:
        8px 0 5px;

    font-size: 30px;

    letter-spacing:
        -1px;
}


.section-title p {
    margin: 0;

    color: var(--muted);
}


.activation-panel {
    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        var(--surface);

    max-width: 720px;
}


.activation-step {
    width: 100%;
}


.activation-buttons {
    display: flex;
    gap: 10px;
}


.success-box {
    display: flex;

    gap: 15px;

    align-items: center;

    padding: 20px;

    border-radius: 15px;

    background:
        rgba(56,217,150,.07);

    border:
        1px solid
        rgba(56,217,150,.16);

    margin-bottom: 18px;
}


.success-box h3 {
    margin: 0 0 5px;
}


.success-box p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


.success-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(56,217,150,.15);

    color: #78e7b3;

    font-size: 22px;

    font-weight: 900;
}


.products-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 17px;
}


.product-card {
    position: relative;

    overflow: hidden;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #111620,
            #0b0f16
        );
}


.product-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    right: -60px;
    top: -60px;

    background:
        rgba(109,102,255,.09);
}


.product-card h3 {
    margin:
        16px 0 10px;

    font-size: 21px;
}


.product-card p {
    min-height: 70px;

    color: var(--muted);

    line-height: 1.6;

    font-size: 13px;
}


.product-tag {
    display: inline-flex;

    padding:
        5px 9px;

    border-radius: 999px;

    background:
        rgba(109,102,255,.11);

    color: #aaa7ff;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 1px;
}


.account-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background:
        var(--surface);
}


.account-card h3 {
    margin:
        0 0 7px;
}


.account-card p {
    margin: 0;

    color: var(--muted);
}


@media (
    max-width: 850px
) {

    .panel-hero {
        flex-direction: column;

        align-items:
            flex-start;

        padding: 28px;
    }


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


    .section-title {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .account-card {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}
