:root {
    --bg: #f3f6fb;
    --surface: #fff;
    --text: #172033;
    --muted: #667085;
    --primary: #2764e7;
    --primary-dark: #194db7;
    --border: #dfe6f0;
    --success: #16865c;
    --danger: #a72f3e;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 0,
            rgba(39, 100, 231, .12),
            transparent 32%
        ),
        var(--bg);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

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

.shell {
    width: min(1100px, calc(100% - 34px));
    margin: auto;
}

.topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);
}

.topbar-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

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

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

.auth {
    min-height: calc(100vh - 73px);
    display: grid;
    grid-template-columns: 1fr minmax(350px, 460px);
    gap: 55px;
    align-items: center;
    padding: 55px 0;
}

.copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.copy p {
    max-width: 590px;
    color: var(--muted);
    font-size: 18px;
}

.badge {
    display: inline-block;
    padding: 7px 11px;
    color: var(--primary);
    background: #e8f0ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.benefits {
    display: grid;
    gap: 11px;
    margin-top: 25px;
}

.benefit {
    font-weight: 700;
}

.benefit::before {
    content: "✓";
    margin-right: 10px;
    color: var(--success);
}

.card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(30, 48, 82, .11);
}

.card h2 {
    margin: 0 0 7px;
    font-size: 28px;
}

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

.field {
    margin: 17px 0;
}

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

.field input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #cdd7e5;
    border-radius: 11px;
    font: inherit;
}

.field input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(39, 100, 231, .1);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

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

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

.button-light {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
}

.button-block {
    width: 100%;
}

.alert {
    margin: 17px 0;
    padding: 12px 14px;
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #f1c9cf;
    border-radius: 11px;
    font-weight: 700;
}

.form-footer {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.dashboard {
    padding: 42px 0 70px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-head h1 {
    margin: 0;
    font-size: 35px;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 19px;
}

.panel-card {
    padding: 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.metric {
    margin: 16px 0 5px;
    font-size: 48px;
    font-weight: 900;
}

.metric small {
    color: var(--muted);
    font-size: 15px;
}

.progress {
    height: 11px;
    overflow: hidden;
    margin: 18px 0 10px;
    background: #e7ecf4;
    border-radius: 999px;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--primary);
}

.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.meta div {
    padding: 14px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.empty {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 25px;
    text-align: center;
    background: #f8faff;
    border: 1px dashed #bdc9db;
    border-radius: 15px;
}

.logout {
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

@media (max-width: 820px) {
    .auth,
    .grid {
        grid-template-columns: 1fr;
    }

    .copy {
        text-align: center;
    }
}

@media (max-width: 550px) {
    .auth {
        padding: 32px 0;
    }

    .card {
        padding: 22px;
    }

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

/* USER_PLANS_START */

.user-plans-page {
    padding-top: 40px;
    padding-bottom: 70px;
}

.user-plans-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.user-plans-heading h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -.035em;
}

.user-plans-heading p {
    margin: 7px 0 0;
    color: #667085;
}

.current-plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 18px 20px;
    color: #173d82;
    background: #eaf2ff;
    border: 1px solid #cbdcff;
    border-radius: 15px;
}

.current-plan-banner strong {
    display: block;
    margin-top: 4px;
    font-size: 21px;
}

.current-plan-label {
    color: #5170a5;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.no-current-plan {
    color: #874514;
    background: #fff5e8;
    border-color: #f0d4ac;
}

.user-plan-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 18px;
}

.user-plan-card {
    position: relative;
    padding: 25px;
    background: #fff;
    border: 1px solid #dfe6f0;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(30, 48, 82, .06);
}

.user-plan-card.current {
    border: 2px solid #2764e7;
    box-shadow: 0 18px 50px rgba(39, 100, 231, .12);
}

.user-plan-current-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 9px;
    color: #fff;
    background: #2764e7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.user-plan-code {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
}

.user-plan-card h2 {
    margin: 8px 0 4px;
    font-size: 25px;
}

.user-plan-price {
    margin-top: 18px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.user-plan-duration {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.user-plan-description {
    min-height: 42px;
    margin: 18px 0;
    color: #596579;
    line-height: 1.55;
}

.user-plan-features {
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.user-plan-features li {
    position: relative;
    margin: 11px 0;
    padding-left: 23px;
    color: #344054;
    line-height: 1.45;
}

.user-plan-features li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: #1e9b68;
    font-weight: 900;
}

.user-plan-disabled-button {
    width: 100%;
    justify-content: center;
    pointer-events: none;
    cursor: default;
}

@media (max-width: 700px) {
    .user-plans-heading,
    .current-plan-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-plans-heading h1 {
        font-size: 32px;
    }
}

/* USER_PLANS_END */

/* COMPUTERS_SYSTEM_START */

.computers-page,
.add-computer-page {
    padding-top: 40px;
    padding-bottom: 70px;
}

.computer-limit {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.computer-limit span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.computer-limit strong {
    font-size: 21px;
}

.computer-notice,
.computer-error,
.pairing-warning {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
}

.computer-notice {
    color: #166544;
    background: #e9f8f0;
    border: 1px solid #c7ead8;
}

.computer-error {
    color: #8e2835;
    background: #fff0f2;
    border: 1px solid #f3c9cf;
}

.pairing-warning {
    color: #845017;
    background: #fff5e8;
    border: 1px solid #efd5af;
}

.computer-list {
    display: grid;
    gap: 13px;
}

.computer-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 1px solid #e1e7f0;
    border-radius: 13px;
}

.computer-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #2764e7;
    background: #edf3ff;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
}

.computer-main h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.computer-main p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.computer-state {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.computer-state small {
    color: #667085;
    font-size: 12px;
}

.computer-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.computer-status-pending {
    color: #895117;
    background: #fff2dc;
}

.computer-status-online {
    color: #126443;
    background: #e5f7ee;
}

.computer-status-offline {
    color: #596579;
    background: #edf0f4;
}

.computer-status-revoked {
    color: #8d2b38;
    background: #ffebee;
}

.computer-cancel {
    padding: 0;
    color: #a33a47;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.computer-cancel:hover {
    text-decoration: underline;
}

.computer-button-disabled {
    pointer-events: none;
    opacity: .65;
}

.computer-add-form {
    display: grid;
    gap: 10px;
    max-width: 600px;
    margin-top: 24px;
}

.computer-add-form label {
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.computer-add-form input {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #cdd7e5;
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.computer-add-form input:focus {
    border-color: #2764e7;
    box-shadow: 0 0 0 4px rgba(39, 100, 231, .10);
}

.computer-add-form small {
    margin-bottom: 10px;
    color: #667085;
}

.computer-add-form .button {
    justify-self: start;
}

.pairing-success {
    max-width: 780px;
}

.pairing-code {
    margin: 22px 0;
    padding: 20px;
    overflow-wrap: anywhere;
    color: #163a78;
    background: #edf4ff;
    border: 1px solid #cbdcff;
    border-radius: 13px;
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 900;
    letter-spacing: .055em;
    text-align: center;
}

.computer-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.computer-panel-heading h2 {
    margin: 0;
}

.computer-panel-list {
    display: grid;
    gap: 10px;
}

.computer-panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px;
    color: inherit;
    border: 1px solid #e2e8f1;
    border-radius: 11px;
}

.computer-panel-item:hover {
    background: #f8faff;
    text-decoration: none;
}

.computer-panel-item strong,
.computer-panel-item span {
    display: block;
}

.computer-panel-item div > span {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.computer-view-all {
    display: inline-block;
    margin-top: 15px;
    color: #2764e7;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 680px) {
    .computer-row {
        grid-template-columns: 45px minmax(0, 1fr);
    }

    .computer-icon {
        width: 45px;
        height: 45px;
    }

    .computer-state {
        grid-column: 1 / -1;
        justify-items: start;
    }

    .computer-limit,
    .computer-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* COMPUTERS_SYSTEM_END */
