:root {
    --bg: #0f172f;
    --bg-soft: #162347;
    --surface: rgba(12, 20, 44, 0.78);
    --surface-strong: rgba(16, 28, 58, 0.92);
    --surface-alt: rgba(116, 163, 255, 0.08);
    --text: #edf4ff;
    --muted: #98aad3;
    --line: rgba(147, 183, 255, 0.18);
    --line-strong: rgba(147, 183, 255, 0.3);
    --brand: #73b7ff;
    --brand-strong: #8f7cff;
    --brand-deep: #4d67ff;
    --ok: #66d9b5;
    --warn: #f6cc74;
    --bad: #ff8d9d;
    --shadow: 0 28px 80px rgba(4, 9, 24, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(circle at top left, rgba(115, 183, 255, 0.3), transparent 25%),
        radial-gradient(circle at top right, rgba(143, 124, 255, 0.24), transparent 30%),
        linear-gradient(180deg, #12204a 0%, #0b1228 52%, #09101d 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background: transparent;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.34;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -8rem;
    left: -10rem;
    background: rgba(92, 165, 255, 0.45);
}

body::after {
    right: -10rem;
    bottom: -12rem;
    background: rgba(122, 100, 255, 0.34);
}

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

a:hover {
    color: #cbe3ff;
}

.shell,
.login-shell {
    position: relative;
    z-index: 1;
}

.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

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

.auth-shell {
    width: min(1120px, 100%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 18px;
}

.auth-intro,
.auth-panel {
    display: grid;
    gap: 18px;
}

.auth-card-shell {
    position: relative;
    min-height: 420px;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    transition: 0.18s ease;
}

.auth-tabs button:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.auth-tabs button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #081124;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(115, 183, 255, 0.22);
}

.auth-card {
    padding: 24px;
    min-height: 420px;
}

.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(9, 15, 34, 0.68);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.nav-centered {
    max-width: 980px;
}

.nav a,
.nav button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    transition: 0.18s ease;
    backdrop-filter: blur(14px);
}

svg {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav a:hover,
.nav button:hover,
.button:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav a.active,
.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #081124;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(115, 183, 255, 0.22);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.03);
}

.button.ghost {
    background: transparent;
}

.inline-form {
    display: inline;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
    background: linear-gradient(180deg, rgba(13, 22, 48, 0.94), rgba(10, 18, 40, 0.88));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.hero {
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(115, 183, 255, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(143, 124, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(17, 30, 62, 0.96), rgba(10, 18, 40, 0.92));
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.dashboard-name {
    margin-bottom: 10px;
    color: #d7e8ff;
    font-size: clamp(1.15rem, 2.35vw, 1.45rem);
    font-weight: 700;
}

.dashboard-eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
}

.dashboard-hero-grid {
    align-items: start;
}

.dashboard-hero-side {
    align-self: start;
    padding-top: 8px;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: end;
}

.hero-side {
    display: grid;
    gap: 12px;
}

.hero-payments {
    padding: 22px 26px 18px;
}

.hero-grid-payments {
    align-items: start;
}

.hero-copy {
    align-self: start;
    padding-top: 6px;
}

.hero-side-payments {
    align-self: start;
}

.account-panel {
    margin-top: 14px;
}

.mini-panel {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(147, 183, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.mini-panel .label,
.stat .label,
th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mini-panel .value {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
}

.mini-panel__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.mini-panel__head > div:first-child {
    min-width: 0;
}

.email-state {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.email-state__address {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.email-state__badge {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.email-state__badge.is-verified {
    color: var(--ok);
    background: rgba(102, 217, 181, 0.12);
    border: 1px solid rgba(102, 217, 181, 0.2);
}

.email-state__badge.is-pending {
    color: #ffd28a;
    background: rgba(255, 210, 138, 0.12);
    border: 1px solid rgba(255, 210, 138, 0.22);
}

.email-state__hint {
    max-width: 250px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.mini-panel__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(115, 183, 255, 0.12);
    border: 1px solid rgba(147, 183, 255, 0.18);
    color: var(--brand);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.mini-panel__toggle {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(115, 183, 255, 0.12);
    border: 1px solid rgba(147, 183, 255, 0.18);
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.mini-panel__toggle:hover {
    background: rgba(115, 183, 255, 0.18);
}

.mini-panel__drawer {
    margin-top: 12px;
}

.mini-panel__form {
    padding-top: 12px;
    border-top: 1px solid rgba(147, 183, 255, 0.12);
    gap: 12px;
}

.form-hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.compact-info {
    padding: 12px 14px;
    margin: 0;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(115, 183, 255, 0.14);
    border: 1px solid rgba(147, 183, 255, 0.16);
    color: #d7e8ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.stat {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat .value {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 700;
}

.status-ok {
    color: var(--ok);
}

.status-bad {
    color: var(--bad);
}

.status-warn {
    color: var(--warn);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(147, 183, 255, 0.1);
}

td {
    color: #dce8ff;
}

tbody tr:hover td {
    background: rgba(115, 183, 255, 0.04);
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.flash.success {
    background: rgba(102, 217, 181, 0.12);
    border-color: rgba(102, 217, 181, 0.22);
    color: var(--ok);
}

.flash.error {
    background: rgba(255, 141, 157, 0.12);
    border-color: rgba(255, 141, 157, 0.22);
    color: var(--bad);
}

.password-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 141, 157, 0.28);
    background: rgba(255, 77, 109, 0.13);
    color: #ffd6dd;
    box-shadow: 0 16px 40px rgba(255, 77, 109, 0.08);
}

.password-warning a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.link-button {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.link-button:hover {
    color: #dceaff;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 18, 0.68);
    backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(147, 183, 255, 0.24);
    background:
        radial-gradient(circle at 12% 0%, rgba(115, 183, 255, 0.16), transparent 36%),
        linear-gradient(155deg, rgba(28, 43, 78, 0.98), rgba(8, 15, 36, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

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

.modal-head h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 0.95;
}

.modal-copy {
    margin: 0 0 18px;
    color: var(--muted);
}

.modal-section {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(147, 183, 255, 0.14);
}

.choice-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(147, 183, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
}

form.inline,
.inline-form {
    display: inline;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(5, 11, 26, 0.74);
    color: var(--text);
    font: inherit;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #7c92be;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(115, 183, 255, 0.48);
    box-shadow: 0 0 0 4px rgba(115, 183, 255, 0.12);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.stack {
    display: grid;
    gap: 14px;
}

.button-row,
.toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-row-stretch {
    align-items: stretch;
}

.button-row-center {
    justify-content: center;
}

.button-fill {
    flex: 1 1 220px;
    min-height: 48px;
}

.button-form-fill {
    display: flex;
    flex: 1 1 160px;
}

.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.payment-form select {
    min-height: 48px;
}

.platform-grid {
    display: grid;
    gap: 12px;
}

.platform-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    transition: 0.18s ease;
}

.platform-card:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.07);
}

.platform-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

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

.copy-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.copy-line__value {
    min-width: 0;
}

.copy-button {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

.copy-button.is-copied {
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(52, 211, 153, 0.12);
    color: #d1fae5;
}

@media (max-width: 640px) {
    .copy-line {
        grid-template-columns: 1fr;
    }

    .copy-button {
        width: 100%;
    }
}

.toolbar-form input {
    flex: 1 1 260px;
}

.mono {
    font-family: "Consolas", "Courier New", monospace;
    word-break: break-all;
    color: #d9e8ff;
}

.code-block,
pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(116, 163, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(147, 183, 255, 0.12);
    color: #dce7ff;
}

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

.detail-list--soft {
    margin-top: 16px;
}

.detail-item {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(147, 183, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #dce7ff;
}

.subscription-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.subscription-card--compact {
    max-width: 620px;
}

.subscription-card__footer {
    margin-top: auto;
}

.subscription-card .section-title {
    display: block;
    min-height: auto;
}

.subscription-card .section-title h2 {
    line-height: 1.15;
    margin: 0;
}

.pill-wide {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    font-size: 13px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.summary-item,
.traffic-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(147, 183, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.summary-item__label,
.traffic-item__label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.summary-item__value,
.traffic-item__value {
    margin-top: 8px;
    color: #edf4ff;
    font-size: 18px;
    font-weight: 600;
}

.traffic-block {
    display: grid;
    gap: 12px;
}

.traffic-block__title {
    color: #d7e8ff;
    font-size: 14px;
    font-weight: 700;
}

.traffic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.info-box {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(147, 183, 255, 0.12);
    background: rgba(116, 163, 255, 0.08);
}

.info-box__label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.split-card {
    display: grid;
    gap: 18px;
}

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

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
}

.login-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.login-form-card {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(147, 183, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
}

.empty-row td,
.empty-state {
    color: var(--muted);
}

.table-nowrap {
    white-space: nowrap;
}

.page-spacer {
    margin-top: 18px;
}

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

@media (max-width: 760px) {
    .shell,
    .login-shell {
        padding: 16px;
    }

    .topbar {
        padding: 16px;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero {
        padding: 22px;
    }

    .stat .value {
        font-size: 22px;
    }
}

/* Kalaron glass redesign */
:root {
    --bg: #2d0b14;
    --bg-soft: #14313a;
    --surface: rgba(34, 49, 57, 0.58);
    --surface-strong: rgba(32, 42, 50, 0.76);
    --surface-alt: rgba(165, 243, 252, 0.08);
    --text: #f4f7ff;
    --muted: #c3ccd1;
    --line: rgba(235, 252, 255, 0.14);
    --line-strong: rgba(165, 243, 252, 0.44);
    --brand: #a5f3fc;
    --brand-strong: #68d6e1;
    --brand-deep: #2d7581;
    --ok: #75f0cc;
    --warn: #ffd083;
    --bad: #ff8aa3;
    --shadow: 0 30px 90px rgba(24, 3, 10, 0.44);
    --glow-cyan: 0 0 46px rgba(165, 243, 252, 0.2);
    --glass: linear-gradient(132deg, rgba(43, 65, 70, 0.64), rgba(45, 11, 20, 0.62));
}

html {
    background:
        radial-gradient(circle at 42% 47%, rgba(35, 82, 102, 0.56), transparent 23%),
        radial-gradient(circle at 5% 74%, rgba(165, 243, 252, 0.2), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(45, 11, 20, 0.94), transparent 42%),
        linear-gradient(112deg, #130612 0%, #172633 44%, #2d0b14 100%);
}

body {
    font-family: "Segoe UI Variable", "Segoe UI", "Manrope", sans-serif;
    letter-spacing: -0.01em;
}

body::before {
    top: 10%;
    left: 4%;
    width: 42rem;
    height: 42rem;
    background: rgba(165, 243, 252, 0.26);
}

body::after {
    right: 0;
    bottom: 8%;
    width: 46rem;
    height: 46rem;
    background: rgba(45, 11, 20, 0.34);
}

.shell {
    max-width: 1384px;
    padding-top: 26px;
}

.topbar {
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(12, 12, 24, 0.38);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.nav {
    gap: 12px;
}

.nav a,
.nav button,
.button,
.auth-tabs button {
    min-height: 48px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(34, 45, 52, 0.42);
    color: rgba(244, 247, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.nav a:hover,
.nav button:hover,
.button:hover,
.auth-tabs button:hover {
    border-color: rgba(165, 243, 252, 0.38);
    background: rgba(55, 82, 86, 0.5);
    box-shadow: var(--glow-cyan);
}

.nav a.active,
.button.primary,
.auth-tabs button.active {
    background: linear-gradient(100deg, #a5f3fc 0%, #81dfe8 58%, #5bb9c4 100%);
    color: #14252a;
    box-shadow: 0 18px 44px rgba(165, 243, 252, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button.secondary,
.button.ghost {
    background: rgba(43, 58, 65, 0.42);
}

.button svg,
.support-link svg {
    margin-right: 9px;
}

.card,
.auth-intro,
.auth-panel,
.modal-card,
.topbar,
.support-strip {
    backdrop-filter: blur(24px) saturate(132%);
    -webkit-backdrop-filter: blur(24px) saturate(132%);
}

.card,
.auth-intro,
.auth-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border-color: rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(circle at 8% 0%, rgba(165, 243, 252, 0.18), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(45, 11, 20, 0.2), transparent 32%),
        var(--glass);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.card::before,
.auth-intro::before,
.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(165, 243, 252, 0.13), transparent 30%, rgba(45, 11, 20, 0.1));
    opacity: 0.72;
}

.card > *,
.auth-intro > *,
.auth-panel > * {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 32px;
}

.hero h1,
.auth-intro h1,
.auth-card h2,
.modal-head h2 {
    letter-spacing: -0.045em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero h1,
.auth-intro h1 {
    font-size: clamp(2.6rem, 6vw, 4.55rem);
}

.eyebrow,
.pill {
    min-height: 34px;
    padding: 8px 14px;
    border-color: rgba(165, 243, 252, 0.24);
    background: rgba(165, 243, 252, 0.12);
    color: #e3fdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 34px rgba(165, 243, 252, 0.11);
}

.pill-wide {
    background: linear-gradient(135deg, rgba(165, 243, 252, 0.16), rgba(45, 11, 20, 0.12));
}

.stat,
.mini-panel,
.summary-item,
.traffic-item,
.detail-item,
.info-box,
.platform-card,
.info-item,
.login-form-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(25, 38, 45, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.stat {
    min-height: 130px;
    border-radius: 26px;
}

.stat .value,
.summary-item__value,
.traffic-item__value,
.mini-panel .value {
    color: #f7faff;
    letter-spacing: -0.03em;
}

.status-ok {
    color: var(--ok);
    text-shadow: 0 0 22px rgba(117, 240, 204, 0.22);
}

.status-bad {
    color: var(--bad);
}

.label,
.mini-panel .label,
.stat .label,
.summary-item__label,
.traffic-item__label,
.info-box__label,
th {
    color: rgba(203, 218, 241, 0.75);
}

input,
select,
textarea {
    min-height: 50px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(3, 7, 18, 0.58);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(165, 243, 252, 0.62);
    box-shadow: 0 0 0 4px rgba(165, 243, 252, 0.12), 0 0 34px rgba(165, 243, 252, 0.14);
}

table {
    border-spacing: 0;
}

th,
td {
    padding: 15px 10px;
}

tbody tr:hover td {
    background: rgba(165, 243, 252, 0.055);
}

.flash {
    border-radius: 18px;
}

.flash.success {
    background: rgba(117, 240, 204, 0.11);
}

.flash.error,
.password-warning {
    background: rgba(255, 80, 118, 0.12);
}

.modal-backdrop {
    background: rgba(2, 3, 10, 0.72);
}

.modal-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(165, 243, 252, 0.2), transparent 36%),
        radial-gradient(circle at 100% 0%, rgba(45, 11, 20, 0.24), transparent 36%),
        rgba(24, 34, 40, 0.9);
}

.login-shell {
    display: block;
    min-height: 100vh;
    padding: 34px clamp(18px, 4.5vw, 58px) 24px;
}

.auth-shell {
    width: min(1290px, 100%);
    margin: 0 auto;
}

.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(165, 243, 252, 0.16), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(165, 243, 252, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 35px rgba(165, 243, 252, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfeff;
    position: relative;
    overflow: hidden;
}

.icon-wrap::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle, rgba(165, 243, 252, 0.12), transparent 70%);
    z-index: 0;
}

.icon-wrap svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.7;
    color: #ecfeff;
    filter: drop-shadow(0 0 10px rgba(165, 243, 252, 0.35));
    position: relative;
    z-index: 1;
}

.icon-wrap-lg {
    width: 104px;
    height: 104px;
    border-radius: 999px;
}

.icon-wrap-lg svg {
    width: 46px;
    height: 46px;
}

.icon-wrap-xl {
    width: 92px;
    height: 104px;
    border-radius: 28px 28px 38px 38px;
}

.icon-wrap-xl svg {
    width: 54px;
    height: 54px;
}

.login-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.login-brand {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -0.05em;
}

.language-pill {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 16px;
    color: rgba(244, 247, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(45, 11, 20, 0.34);
    backdrop-filter: blur(18px);
}

.auth-layout {
    grid-template-columns: minmax(430px, 0.82fr) minmax(560px, 1fr);
    gap: 16px;
}

.auth-intro,
.auth-panel {
    min-height: 620px;
    padding: 36px;
}

.auth-intro {
    align-content: start;
}

.auth-intro p {
    max-width: 430px;
    color: rgba(216, 224, 240, 0.78);
    font-size: 1.02rem;
    line-height: 1.65;
}

.auth-visual {
    position: absolute;
    right: 58px;
    top: 86px;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(165, 243, 252, 0.44), rgba(165, 243, 252, 0.1) 43%, transparent 66%),
        radial-gradient(ellipse at bottom, rgba(165, 243, 252, 0.22), transparent 55%);
    border: 1px solid rgba(165, 243, 252, 0.14);
    box-shadow: 0 0 86px rgba(165, 243, 252, 0.28);
}

.auth-visual__shield {
    background:
        linear-gradient(145deg, rgba(165, 243, 252, 0.34), rgba(37, 77, 88, 0.18)),
        rgba(165, 243, 252, 0.12);
    transform: rotate(-7deg);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(12, 13, 25, 0.38);
}

.auth-tabs button {
    border-radius: 16px;
    border-color: transparent;
    min-height: 58px;
    background: transparent;
    gap: 9px;
}

.auth-card-shell {
    min-height: 486px;
    display: grid;
    margin-top: 18px;
}

.auth-card {
    min-height: 486px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 40px;
    border-radius: 26px;
    background: rgba(6, 8, 18, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.auth-card .section-title {
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}

.auth-card form {
    width: min(520px, 100%);
    margin-inline: auto;
    text-align: left;
}

.auth-method-list {
    display: grid;
    gap: 0;
    margin-top: auto;
    padding-top: 28px;
}

.auth-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 76px;
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 19, 31, 0.42);
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: 0.18s ease;
}

.auth-method:first-child {
    border-radius: 18px 18px 0 0;
}

.auth-method:last-child {
    border-radius: 0 0 18px 18px;
}

.auth-method.active {
    border-color: rgba(165, 243, 252, 0.38);
    background:
        radial-gradient(circle at 0% 50%, rgba(165, 243, 252, 0.18), transparent 38%),
        rgba(44, 83, 90, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--glow-cyan);
}

.auth-method:hover {
    border-color: rgba(165, 243, 252, 0.28);
    background: rgba(38, 59, 67, 0.46);
}

.auth-method__icon.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex: 0 0 48px;
}

.auth-method__icon.icon-wrap svg {
    width: 25px;
    height: 25px;
}

.auth-method strong,
.auth-method small {
    display: block;
}

.auth-method strong {
    margin-bottom: 3px;
    font-size: 1.02rem;
}

.auth-method small {
    color: rgba(215, 226, 235, 0.72);
}

.auth-method__arrow {
    color: rgba(235, 252, 255, 0.72);
    font-size: 28px;
}

.auth-admin-hint {
    margin-top: 24px;
    text-align: center;
    color: rgba(220, 229, 238, 0.75);
}

.auth-pane-icon {
    margin: 0 auto 28px;
    background:
        radial-gradient(circle at 50% 38%, rgba(165, 243, 252, 0.24), rgba(165, 243, 252, 0.04) 62%),
        linear-gradient(135deg, rgba(165, 243, 252, 0.18), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 64px rgba(165, 243, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-pane-copy {
    max-width: 460px;
    margin: 0 auto 28px;
    color: rgba(218, 227, 236, 0.76);
    line-height: 1.55;
}

.auth-main-action {
    width: min(460px, 100%);
    margin: 6px auto 28px;
}

.auth-security-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    width: min(460px, 100%);
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(33, 49, 58, 0.36);
    text-align: left;
}

.auth-security-note > span.icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    flex: 0 0 54px;
}

.auth-security-note > span.icon-wrap svg {
    width: 26px;
    height: 26px;
}

.auth-security-note strong,
.auth-security-note small {
    display: block;
}

.auth-security-note small {
    margin-top: 4px;
    color: rgba(218, 227, 236, 0.72);
}

.support-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 18px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 14, 27, 0.46);
    box-shadow: var(--shadow);
}

.support-icon.icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    flex: 0 0 58px;
}

.support-strip strong,
.support-strip span {
    display: block;
}

.support-strip span {
    margin-top: 4px;
    color: var(--muted);
}

.support-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(165, 243, 252, 0.12);
    border: 1px solid rgba(165, 243, 252, 0.2);
    color: #e2fdff;
    font-weight: 700;
}

.support-link svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
    color: rgba(205, 214, 230, 0.62);
}

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

    .auth-intro,
    .auth-panel {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .login-page-head,
    .support-strip {
        grid-template-columns: 1fr;
    }

    .login-page-head {
        gap: 14px;
        align-items: start;
    }

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

    .auth-visual {
        position: static;
        margin: 18px 0;
    }
}

/* Premium login gateway refactor */
.premium-login {
    isolation: isolate;
}

.premium-login::before,
.premium-login::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.premium-login::before {
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 52% 38%, black, transparent 72%);
}

.premium-login::after {
    inset: 0;
    opacity: 0.09;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0 0.7px, transparent 0.8px);
    background-size: 3px 3px;
    mix-blend-mode: screen;
}

.premium-login .auth-shell {
    width: min(1320px, 100%);
}

.premium-login .login-page-head {
    margin-bottom: 30px;
}

.premium-login .login-brand {
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.premium-login .language-pill {
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 18px;
}

.premium-login .language-pill svg:first-child {
    width: 24px;
    height: 24px;
}

.premium-login .language-pill svg:last-child {
    width: 18px;
    height: 18px;
}

.gateway-grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.gateway-overview,
.gateway-panel {
    min-height: 628px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 72% 21%, rgba(165, 243, 252, 0.14), transparent 21%),
        radial-gradient(circle at 4% 100%, rgba(45, 11, 20, 0.46), transparent 36%),
        rgba(19, 24, 35, 0.42);
    box-shadow:
        0 28px 90px rgba(10, 4, 12, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(28px) saturate(128%);
    -webkit-backdrop-filter: blur(28px) saturate(128%);
}

.gateway-overview {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    padding: clamp(28px, 4vw, 42px);
}

.gateway-overview::before {
    content: "";
    position: absolute;
    right: -120px;
    top: 40px;
    width: 330px;
    height: 330px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(165, 243, 252, 0.2), transparent 64%);
    filter: blur(2px);
    pointer-events: none;
}

.gateway-overview > * {
    position: relative;
    z-index: 1;
}

.gateway-copy {
    max-width: 450px;
    margin-top: 26px;
}

.gateway-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 5vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.gateway-copy p {
    margin: 0;
    color: rgba(238, 246, 255, 0.72);
    font-size: 1.08rem;
    line-height: 1.62;
}

.gateway-actions {
    display: grid;
    gap: 14px;
    margin-top: 38px;
}

.gateway-action {
    width: 100%;
    min-height: 64px;
    border-radius: 18px;
    font-size: 1.04rem;
}

.gateway-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 34px 0 22px;
    color: rgba(236, 254, 255, 0.64);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.gateway-divider::before,
.gateway-divider::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 254, 255, 0.2), transparent);
}

.access-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 18, 0.28);
}

.access-summary .icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.access-summary .icon-wrap svg {
    width: 26px;
    height: 26px;
}

.access-summary strong,
.access-summary span {
    display: block;
}

.access-summary strong {
    color: rgba(255, 255, 255, 0.9);
}

.access-summary span {
    margin-top: 6px;
    color: rgba(221, 233, 241, 0.62);
    line-height: 1.45;
}

.gateway-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    padding: clamp(18px, 2.4vw, 28px);
    background:
        radial-gradient(circle at 52% 50%, rgba(165, 243, 252, 0.08), transparent 34%),
        rgba(15, 17, 28, 0.36);
}

.gateway-panel::before {
    opacity: 0.42;
}

.gateway-panel .auth-tabs {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px;
    border-radius: 20px;
    background: rgba(10, 10, 18, 0.34);
    border-color: rgba(255, 255, 255, 0.075);
}

.gateway-panel .auth-tabs button {
    gap: 10px;
    min-height: 58px;
    border-radius: 16px;
    color: rgba(241, 248, 255, 0.75);
}

.gateway-panel .auth-tabs button svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 8px rgba(165, 243, 252, 0.18));
}

.gateway-panel .auth-tabs button.active {
    color: #ecfeff;
    background:
        linear-gradient(135deg, rgba(165, 243, 252, 0.28), rgba(165, 243, 252, 0.08));
    border: 1px solid rgba(165, 243, 252, 0.2);
    box-shadow:
        0 0 36px rgba(165, 243, 252, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gateway-panel .auth-card-shell {
    min-height: 0;
    margin: 0;
    display: grid;
}

.gateway-panel .auth-card {
    min-height: 0;
    padding: clamp(28px, 4.2vw, 58px);
    border: 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 16%, rgba(165, 243, 252, 0.09), transparent 28%),
        rgba(8, 9, 18, 0.18);
    box-shadow: none;
}

.gateway-panel .auth-card::before {
    display: none;
}

.gateway-panel .auth-card .section-title h2 {
    font-size: clamp(1.9rem, 3vw, 2.35rem);
}

.gateway-panel .auth-card form {
    display: grid;
    gap: 15px;
    width: min(480px, 100%);
}

.gateway-panel .auth-card label {
    margin-bottom: 8px;
    color: rgba(221, 233, 241, 0.66);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.gateway-panel .auth-card input,
.gateway-panel .auth-card select {
    min-height: 56px;
    border-radius: 17px;
    background: rgba(5, 7, 14, 0.5);
}

.auth-main-action {
    min-height: 64px;
    border-radius: 18px;
}

.auth-security-note {
    border-radius: 20px;
    background: rgba(20, 30, 42, 0.36);
}

.premium-login .support-strip {
    margin-top: 16px;
    padding: 18px 24px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(14, 14, 24, 0.34);
}

.premium-login .support-link {
    gap: 8px;
}

@media (max-width: 1080px) {
    .gateway-grid {
        grid-template-columns: 1fr;
    }

    .gateway-overview,
    .gateway-panel {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .premium-login {
        padding: 18px 14px;
    }

    .premium-login .login-page-head {
        gap: 14px;
        align-items: flex-start;
    }

    .gateway-overview,
    .gateway-panel {
        border-radius: 24px;
        padding: 22px;
    }

    .gateway-copy {
        margin-top: 18px;
    }

    .gateway-actions {
        margin-top: 26px;
    }

    .gateway-divider {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .gateway-divider::before,
    .gateway-divider::after {
        display: none;
    }

    .access-summary,
    .premium-login .support-strip {
        grid-template-columns: 1fr;
    }

    .gateway-panel .auth-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .gateway-panel .auth-tabs button {
        min-height: 52px;
        font-size: 0.92rem;
    }

    .gateway-panel .auth-card {
        padding: 26px 0 4px;
    }

    .auth-pane-icon.icon-wrap-lg {
        width: 86px;
        height: 86px;
    }

    .auth-pane-icon.icon-wrap-lg svg {
        width: 38px;
        height: 38px;
    }
}

/* Login modal gateway */
.gateway-screen {
    min-height: min(640px, calc(100vh - 210px));
    display: grid;
    align-items: center;
}

.gateway-hero {
    width: min(680px, 100%);
    min-height: 0;
    border-radius: 34px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    background:
        radial-gradient(circle at 82% 22%, rgba(165, 243, 252, 0.16), transparent 26%),
        radial-gradient(circle at 0% 100%, rgba(45, 11, 20, 0.48), transparent 38%),
        rgba(18, 25, 36, 0.48);
    box-shadow:
        0 34px 110px rgba(13, 3, 10, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(128%);
    -webkit-backdrop-filter: blur(28px) saturate(128%);
    overflow: hidden;
    position: relative;
}

.gateway-hero::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 82% 22%, rgba(165, 243, 252, 0.14), transparent 22%),
        radial-gradient(circle at 18% 82%, rgba(165, 243, 252, 0.08), transparent 28%);
    pointer-events: none;
}

.gateway-hero__content {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 5vw, 46px);
}

.gateway-hero h1 {
    margin: 26px 0 18px;
    font-size: clamp(2.65rem, 6vw, 4.45rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.gateway-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(238, 246, 255, 0.72);
    font-size: 1.08rem;
    line-height: 1.65;
}

.auth-modal-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-modal-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.auth-inline-panel {
    width: min(1040px, 100%);
    margin: 22px auto 0;
    transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.28s ease, margin 0.22s ease;
}

.js-auth-ready .auth-inline-panel:not(.is-open) {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.auth-inline-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.auth-inline-panel .auth-card-shell {
    min-height: 430px;
}

.auth-inline-panel .auth-card {
    padding-top: clamp(24px, 4vw, 42px);
}

.auth-compact-block {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(165, 243, 252, 0.12);
    background: rgba(6, 10, 18, 0.22);
}

.auth-compact-title {
    color: rgba(236, 254, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.premium-login .support-strip {
    margin-top: 18px;
}

.premium-login .auth-panel {
    display: grid;
}

@media (min-width: 1081px) {
    .gateway-screen {
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .gateway-screen {
        min-height: auto;
    }

    .gateway-hero {
        width: 100%;
        border-radius: 26px;
    }

    .gateway-hero__content {
        padding: 24px;
    }

    .auth-inline-panel .auth-card-shell {
        min-height: auto;
    }

    .auth-inline-panel .auth-card form,
    .auth-main-action {
        width: 100%;
    }
}

/* Admin readability and audit journal */
.admin-card {
    color: rgba(239, 246, 255, 0.94);
}

.admin-card pre {
    color: rgba(235, 245, 255, 0.92);
    background: rgba(3, 7, 18, 0.42);
    border-color: rgba(165, 243, 252, 0.12);
    line-height: 1.58;
}

.admin-table-wrap {
    border-radius: 20px;
    border: 1px solid rgba(165, 243, 252, 0.12);
    background: rgba(3, 7, 18, 0.28);
}

.admin-table-wrap--wide {
    max-height: none;
}

.admin-table {
    min-width: 720px;
}

.admin-table--audit {
    min-width: 980px;
}

.admin-table th {
    color: rgba(213, 232, 255, 0.78);
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-table td {
    color: rgba(244, 248, 255, 0.9);
    vertical-align: top;
    line-height: 1.45;
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.018);
}

.admin-table tbody tr + tr td {
    border-top: 1px solid rgba(165, 243, 252, 0.08);
}

.admin-table tbody tr:hover td {
    background: rgba(165, 243, 252, 0.07);
}

.admin-pill-link {
    color: #e3fdff;
    text-decoration: none;
}

.admin-pill-link:hover {
    color: #ffffff;
    border-color: rgba(165, 243, 252, 0.38);
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-filter {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filter label {
    color: rgba(213, 232, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-filter__row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 720px) {
    .admin-card .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-card-actions .button {
        width: 100%;
    }

    .admin-filter__row {
        grid-template-columns: 1fr;
    }

    .admin-filter__row .button {
        width: 100%;
    }
}

/* Stable private access gateway */
.premium-login {
    min-height: 100vh;
    overflow-x: hidden;
    padding: clamp(18px, 3.2vw, 42px);
    background:
        radial-gradient(circle at 14% 18%, rgba(165, 243, 252, 0.16), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(124, 58, 237, 0.13), transparent 30%),
        radial-gradient(circle at 54% 94%, rgba(45, 11, 20, 0.66), transparent 35%),
        linear-gradient(135deg, #050816 0%, #0b1020 46%, #2d0b14 100%);
}

.premium-login .auth-shell {
    width: min(1220px, 100%);
    min-height: auto;
    margin: 0 auto;
}

.premium-login .login-page-head {
    margin-bottom: clamp(18px, 3vw, 30px);
}

.premium-login .login-brand {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    letter-spacing: -0.045em;
}

.premium-login .language-pill {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(165, 243, 252, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-gateway-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: center;
    min-height: calc(100vh - 190px);
}

.login-gateway-layout .gateway-hero,
.login-gateway-layout .gateway-panel {
    width: auto;
    min-height: 590px;
    border-radius: 30px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    background:
        radial-gradient(circle at 82% 18%, rgba(165, 243, 252, 0.15), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(45, 11, 20, 0.42), transparent 34%),
        rgba(8, 13, 28, 0.62);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(124%);
    -webkit-backdrop-filter: blur(22px) saturate(124%);
}

.login-gateway-layout .gateway-hero {
    display: grid;
    align-items: center;
    overflow: hidden;
}

.login-gateway-layout .gateway-hero__content {
    padding: clamp(28px, 4vw, 46px);
}

.login-gateway-layout .gateway-hero h1 {
    max-width: 520px;
    margin: 24px 0 16px;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.login-gateway-layout .gateway-hero p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.62;
    color: rgba(238, 246, 255, 0.72);
}

.login-gateway-layout .gateway-actions {
    grid-template-columns: 1fr;
    width: min(470px, 100%);
    margin-top: 34px;
}

.login-gateway-layout .gateway-action {
    min-height: 62px;
    justify-content: center;
    border-radius: 20px;
}

.login-gateway-layout .gateway-divider {
    width: min(470px, 100%);
    margin: 30px 0 18px;
}

.login-gateway-layout .access-summary {
    width: min(470px, 100%);
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(4, 9, 20, 0.34);
    border-color: rgba(165, 243, 252, 0.11);
}

.login-gateway-layout .access-summary strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(236, 254, 255, 0.92);
}

.login-gateway-layout .access-summary span {
    color: rgba(238, 246, 255, 0.62);
}

.login-gateway-layout .auth-inline-panel {
    margin: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
}

.login-gateway-layout .gateway-panel {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    padding: clamp(24px, 3vw, 34px);
}

.login-gateway-layout .gateway-panel:focus {
    outline: none;
}

.login-gateway-layout .auth-modal-head {
    margin-bottom: 16px;
}

.login-gateway-layout .auth-modal-head h2 {
    font-size: clamp(2rem, 3.2vw, 3.05rem);
}

.login-gateway-layout #notice:not([hidden]) {
    margin: 0 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    background: rgba(127, 29, 29, 0.22);
    color: rgba(255, 235, 235, 0.96);
}

.login-gateway-layout #notice.success:not([hidden]) {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(6, 78, 59, 0.2);
    color: rgba(220, 252, 231, 0.96);
}

.login-gateway-layout .auth-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(165, 243, 252, 0.1);
    background: rgba(4, 8, 18, 0.34);
}

.login-gateway-layout .auth-tabs button {
    min-width: 0;
    min-height: 54px;
    gap: 9px;
    border-radius: 16px;
    border-color: transparent;
    color: rgba(238, 246, 255, 0.66);
    background: transparent;
}

.login-gateway-layout .auth-tabs button svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    filter: drop-shadow(0 0 8px rgba(165, 243, 252, 0.16));
}

.login-gateway-layout .auth-tabs button:hover {
    color: rgba(236, 254, 255, 0.92);
    background: rgba(165, 243, 252, 0.07);
    transform: translateY(-1px);
}

.login-gateway-layout .auth-tabs button.active {
    color: #ecfeff;
    background:
        linear-gradient(135deg, rgba(165, 243, 252, 0.22), rgba(124, 58, 237, 0.16)),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(165, 243, 252, 0.2);
    box-shadow: 0 0 28px rgba(165, 243, 252, 0.14);
}

.login-gateway-layout .auth-card-shell {
    min-height: 390px;
    margin-top: 18px;
}

.login-gateway-layout .auth-card {
    min-height: 390px;
    padding: clamp(18px, 2.4vw, 30px) 0 0;
    display: grid;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-gateway-layout [data-auth-pane][hidden],
.login-gateway-layout .auth-compact-block[hidden],
.login-gateway-layout #notice[hidden] {
    display: none !important;
}

.login-gateway-layout [data-auth-pane]:not([hidden]) {
    display: grid;
}

.login-gateway-layout .auth-card-centered {
    justify-items: center;
    text-align: center;
}

.login-gateway-layout .auth-pane-copy {
    max-width: 500px;
    color: rgba(238, 246, 255, 0.68);
}

.login-gateway-layout .auth-card form,
.login-gateway-layout .auth-main-action,
.login-gateway-layout .auth-security-note,
.login-gateway-layout .auth-compact-block {
    width: min(460px, 100%);
}

.login-gateway-layout .auth-security-note,
.login-gateway-layout .auth-compact-block {
    border-radius: 20px;
    border: 1px solid rgba(165, 243, 252, 0.11);
    background: rgba(4, 9, 20, 0.28);
}

.login-gateway-layout .auth-card input,
.login-gateway-layout .auth-card select {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    background: rgba(3, 7, 18, 0.52);
    color: rgba(248, 250, 252, 0.96);
}

.login-gateway-layout .auth-card input::placeholder {
    color: rgba(203, 213, 225, 0.48);
}

.login-gateway-layout .auth-card input:focus,
.login-gateway-layout .auth-card select:focus {
    border-color: #a5f3fc;
    box-shadow: 0 0 0 4px rgba(165, 243, 252, 0.1), 0 0 28px rgba(165, 243, 252, 0.12);
}

.premium-login .button.primary {
    border: 0;
    background: linear-gradient(100deg, #67e8f9 0%, #7dd3fc 48%, #8b5cf6 100%);
    color: #07111e;
    box-shadow: 0 16px 42px rgba(103, 232, 249, 0.16);
}

.premium-login .button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 52px rgba(103, 232, 249, 0.22);
}

.premium-login .button.secondary {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(165, 243, 252, 0.15);
    color: rgba(248, 250, 252, 0.9);
}

.premium-login .button.secondary:hover {
    background: rgba(165, 243, 252, 0.08);
    border-color: rgba(165, 243, 252, 0.28);
    transform: translateY(-1px);
}

.premium-login .icon-wrap {
    background:
        radial-gradient(circle at 50% 40%, rgba(165, 243, 252, 0.14), transparent 68%),
        linear-gradient(135deg, rgba(165, 243, 252, 0.12), rgba(255, 255, 255, 0.025));
    border-color: rgba(165, 243, 252, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 28px rgba(165, 243, 252, 0.08);
}

.premium-login .icon-wrap svg {
    color: #ecfeff;
    filter: drop-shadow(0 0 10px rgba(165, 243, 252, 0.34));
}

.premium-login .support-strip {
    margin-top: clamp(18px, 2.5vw, 26px);
    border-radius: 26px;
    background: rgba(8, 13, 28, 0.5);
    border-color: rgba(165, 243, 252, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 980px) {
    .login-gateway-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-gateway-layout .gateway-hero,
    .login-gateway-layout .gateway-panel {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .premium-login {
        padding: 14px;
    }

    .premium-login .login-page-head {
        display: grid;
        gap: 12px;
    }

    .premium-login .language-pill {
        width: 100%;
        justify-content: center;
    }

    .login-gateway-layout .gateway-hero,
    .login-gateway-layout .gateway-panel,
    .premium-login .support-strip {
        border-radius: 24px;
    }

    .login-gateway-layout .gateway-hero__content,
    .login-gateway-layout .gateway-panel {
        padding: 22px;
    }

    .login-gateway-layout .gateway-hero h1 {
        font-size: clamp(2.65rem, 15vw, 4rem);
    }

    .login-gateway-layout .gateway-actions,
    .login-gateway-layout .gateway-divider,
    .login-gateway-layout .access-summary {
        width: 100%;
    }

    .login-gateway-layout .auth-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-gateway-layout .auth-tabs button {
        min-height: 48px;
        font-size: 0.84rem;
    }

    .login-gateway-layout .auth-tabs button svg {
        width: 18px;
        height: 18px;
    }

    .login-gateway-layout .auth-card-shell,
    .login-gateway-layout .auth-card {
        min-height: auto;
    }

    .login-gateway-layout .auth-modal-head h2,
    .login-gateway-layout .auth-card .section-title h2 {
        font-size: clamp(1.75rem, 9vw, 2.35rem);
    }

    .login-gateway-layout .access-summary,
    .premium-login .support-strip {
        grid-template-columns: 1fr;
    }
}

/* Public landing: matches /login gateway without exposing auth forms */
.public-landing .landing-shell {
    width: min(1240px, 100%);
    min-height: calc(100vh - clamp(36px, 6.4vw, 80px));
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: center;
}

.landing-gateway-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(48px, 5vw, 72px);
    align-items: center;
    width: 100%;
}

.landing-gateway-layout .landing-hero {
    min-height: clamp(560px, 68vh, 690px);
}

.landing-gateway-layout .landing-actions {
    width: min(520px, 100%);
}

.landing-feature-grid {
    display: grid;
    gap: 16px;
}

.landing-feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(165, 243, 252, 0.12);
    background:
        radial-gradient(circle at 8% 12%, rgba(165, 243, 252, 0.08), transparent 34%),
        rgba(8, 13, 28, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);
}

.landing-feature-card .feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    grid-row: span 2;
}

.landing-feature-card h2 {
    margin: 0 0 5px;
    color: rgba(248, 250, 252, 0.95);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    letter-spacing: -0.02em;
}

.landing-feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.5;
}

.landing-support-strip {
    width: min(760px, 100%);
    justify-self: center;
    margin-top: clamp(18px, 2.4vw, 26px);
    padding: 12px;
    border-radius: 20px;
    background: rgba(3, 7, 18, 0.24);
    border: 1px solid rgba(165, 243, 252, 0.08);
}

.landing-support-strip .support-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

@media (max-width: 980px) {
    .public-landing .landing-shell {
        min-height: auto;
    }

    .landing-gateway-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .landing-gateway-layout .landing-hero {
        min-height: auto;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .landing-feature-card,
    .landing-support-strip {
        grid-template-columns: 1fr;
    }

    .landing-support-strip .support-link {
        width: 100%;
        justify-content: center;
    }
}

/* Focused /login screen */
.focused-login {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 32px);
    overflow-x: hidden;
}

.focused-login-shell {
    width: min(560px, 100%);
    min-height: calc(100vh - clamp(32px, 6vw, 64px));
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    gap: 16px;
    margin: 0 auto;
}

.focused-login-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 4px;
    text-align: center;
}

.focused-login-brand .login-brand {
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.focused-login .focused-auth-card {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: clamp(30px, 4vw, 34px);
    border-radius: 28px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    background: rgba(8, 13, 28, 0.62);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(124%);
    -webkit-backdrop-filter: blur(22px) saturate(124%);
}

.focused-login .auth-modal-head {
    margin-bottom: 18px;
    text-align: center;
}

.focused-login .auth-modal-head h1 {
    margin: 0;
    color: rgba(248, 250, 252, 0.98);
    font-size: clamp(2rem, 6vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.065em;
}

.focused-login .auth-modal-head p {
    margin: 9px 0 0;
    color: rgba(226, 232, 240, 0.58);
}

.focused-login .auth-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.focused-login .auth-tabs button {
    min-height: 50px;
    padding-inline: 10px;
}

.focused-login .auth-card-shell {
    min-height: 0;
    margin-top: 18px;
}

.focused-login .auth-card {
    min-height: 0;
    height: auto;
    padding-top: 8px;
    align-content: start;
}

.focused-login [data-auth-pane][hidden],
.focused-login .auth-compact-block[hidden],
.focused-login #notice[hidden] {
    display: none !important;
}

.focused-login [data-auth-pane]:not([hidden]) {
    display: grid;
}

.focused-login .auth-pane-icon.icon-wrap-lg {
    width: 64px;
    height: 64px;
    border-radius: 22px;
}

.focused-login .auth-card .section-title {
    margin-top: 14px;
}

.focused-login .auth-card .section-title h2 {
    font-size: clamp(1.65rem, 5vw, 2.15rem);
}

.focused-login .auth-pane-copy {
    margin-bottom: 18px;
}

.focused-login .auth-card form,
.focused-login .auth-main-action,
.focused-login .auth-security-note,
.focused-login .auth-compact-block {
    width: 100%;
}

.focused-login .auth-support-strip {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 18px;
}

.focused-login .auth-support-strip .support-link {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
}

.dashboard-return-link {
    justify-self: center;
    color: rgba(165, 243, 252, 0.78);
    font-size: 0.94rem;
    text-decoration: none;
}

.dashboard-return-link:hover {
    color: #ecfeff;
}

.focused-login .login-footer {
    margin: 0;
    text-align: center;
}

@media (max-width: 560px) {
    .focused-login {
        padding: 16px;
    }

    .focused-login-shell {
        min-height: calc(100vh - 32px);
        gap: 14px;
    }

    .focused-login .focused-auth-card {
        padding: 22px;
        border-radius: 24px;
    }

    .focused-login .auth-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .focused-login .auth-tabs button {
        min-height: 48px;
    }

    .focused-login .button {
        width: 100%;
    }

    .focused-login .auth-support-strip {
        grid-template-columns: 1fr;
    }
}

/* Final /login polish */
.premium-login {
    min-height: 100vh;
    padding: clamp(16px, 3vw, 38px);
    background:
        radial-gradient(circle at 15% 20%, rgba(165, 243, 252, 0.14), transparent 28%),
        radial-gradient(circle at 86% 16%, rgba(124, 58, 237, 0.11), transparent 30%),
        radial-gradient(circle at 56% 90%, rgba(45, 11, 20, 0.72), transparent 34%),
        linear-gradient(135deg, #050816 0%, #0b1020 45%, #2d0b14 100%);
}

.premium-login::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.18;
}

.premium-login .auth-shell {
    width: min(1240px, 100%);
    min-height: calc(100vh - clamp(32px, 6vw, 76px));
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    margin: 0 auto;
}

.premium-login .login-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 clamp(42px, 8vw, 96px);
}

.premium-login .login-brand {
    color: rgba(248, 250, 252, 0.96);
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -0.055em;
}

.premium-login .language-pill {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(165, 243, 252, 0.13);
    color: rgba(248, 250, 252, 0.9);
}

.login-gateway-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
    gap: clamp(24px, 3vw, 34px);
    align-items: center;
    width: 100%;
    min-height: auto;
}

.login-gateway-layout .gateway-hero,
.login-gateway-layout .gateway-panel {
    width: auto;
    min-height: clamp(610px, 72vh, 720px);
    border-radius: 32px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    background:
        radial-gradient(circle at 82% 18%, rgba(165, 243, 252, 0.13), transparent 27%),
        radial-gradient(circle at 8% 92%, rgba(45, 11, 20, 0.44), transparent 35%),
        rgba(8, 13, 28, 0.62);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(124%);
    -webkit-backdrop-filter: blur(22px) saturate(124%);
}

.login-gateway-layout .gateway-hero {
    display: grid;
    align-items: stretch;
    overflow: hidden;
}

.login-gateway-layout .gateway-hero::before {
    opacity: 0.7;
}

.login-gateway-layout .gateway-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 4vw, 48px);
}

.login-gateway-layout .eyebrow {
    width: max-content;
    border: 1px solid rgba(165, 243, 252, 0.22);
    background: rgba(165, 243, 252, 0.09);
    color: rgba(211, 252, 255, 0.92);
    box-shadow: 0 0 24px rgba(165, 243, 252, 0.08);
}

.login-gateway-layout .gateway-hero h1 {
    max-width: 540px;
    margin: 24px 0 16px;
    color: rgba(248, 250, 252, 0.98);
    font-size: clamp(3.3rem, 5.5vw, 5.35rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
}

.login-gateway-layout .gateway-hero p {
    max-width: 520px;
    color: rgba(226, 232, 240, 0.7);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.66;
}

.login-gateway-layout .gateway-actions {
    display: flex;
    width: min(520px, 100%);
    gap: 12px;
    margin-top: 34px;
}

.login-gateway-layout .gateway-action {
    min-height: 58px;
    flex: 1 1 0;
    justify-content: center;
    border-radius: 19px;
}

.login-gateway-layout .gateway-divider {
    width: min(520px, 100%);
    margin: 32px 0 16px;
}

.login-gateway-layout .gateway-divider span {
    color: rgba(226, 232, 240, 0.52);
    font-size: 0.72rem;
}

.login-gateway-layout .access-summary {
    width: min(520px, 100%);
    padding: 15px;
    border-radius: 20px;
    background: rgba(4, 9, 20, 0.28);
    border: 1px solid rgba(165, 243, 252, 0.1);
}

.login-gateway-layout .access-summary__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.login-gateway-layout .access-summary strong {
    font-size: 0.96rem;
}

.login-gateway-layout .access-summary span {
    margin-top: 3px;
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.92rem;
}

.login-gateway-layout .auth-inline-panel {
    margin: 0;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
}

.login-gateway-layout .gateway-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 34px);
}

.login-gateway-layout .auth-modal-head {
    margin-bottom: 16px;
}

.login-gateway-layout .auth-modal-head h2 {
    color: rgba(248, 250, 252, 0.96);
    font-size: clamp(2rem, 3vw, 2.85rem);
    letter-spacing: -0.065em;
}

.login-gateway-layout .auth-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(165, 243, 252, 0.1);
    background: rgba(3, 7, 18, 0.3);
}

.login-gateway-layout .auth-tabs button {
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(226, 232, 240, 0.6);
    font-weight: 700;
}

.login-gateway-layout .auth-tabs button svg {
    width: 19px;
    height: 19px;
}

.login-gateway-layout .auth-tabs button:hover {
    color: rgba(236, 254, 255, 0.94);
    border-color: rgba(165, 243, 252, 0.14);
    background: rgba(165, 243, 252, 0.08);
}

.login-gateway-layout .auth-tabs button.active {
    color: #ecfeff;
    border-color: rgba(165, 243, 252, 0.28);
    background:
        linear-gradient(135deg, rgba(165, 243, 252, 0.22), rgba(124, 58, 237, 0.14)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 30px rgba(165, 243, 252, 0.14);
}

.login-gateway-layout .auth-card-shell {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 18px;
}

.login-gateway-layout .auth-card {
    min-height: 0;
    height: 100%;
    padding: clamp(20px, 2.4vw, 30px) 0 0;
    display: grid;
    align-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-gateway-layout [data-auth-pane][hidden],
.login-gateway-layout .auth-compact-block[hidden],
.login-gateway-layout #notice[hidden] {
    display: none !important;
}

.login-gateway-layout [data-auth-pane]:not([hidden]) {
    display: grid;
}

.login-gateway-layout .auth-card-centered {
    justify-items: center;
    text-align: center;
}

.login-gateway-layout .auth-pane-icon.icon-wrap-lg {
    width: 72px;
    height: 72px;
    border-radius: 24px;
}

.login-gateway-layout .auth-card .section-title {
    display: block;
    min-height: auto;
    margin: 18px 0 8px;
}

.login-gateway-layout .auth-card .section-title h2 {
    color: rgba(248, 250, 252, 0.96);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    letter-spacing: -0.055em;
}

.login-gateway-layout .auth-pane-copy {
    max-width: 470px;
    margin: 0 auto 22px;
    color: rgba(226, 232, 240, 0.64);
    font-size: 1rem;
    line-height: 1.55;
}

.login-gateway-layout .auth-card form,
.login-gateway-layout .auth-main-action,
.login-gateway-layout .auth-security-note,
.login-gateway-layout .auth-compact-block {
    width: min(460px, 100%);
    margin-inline: auto;
}

.login-gateway-layout label {
    margin-bottom: 7px;
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-gateway-layout .auth-card input,
.login-gateway-layout .auth-card select {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(165, 243, 252, 0.14);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    appearance: none;
}

.login-gateway-layout .auth-card input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.login-gateway-layout .auth-card input:focus,
.login-gateway-layout .auth-card select:focus {
    border-color: #a5f3fc;
    box-shadow: 0 0 0 3px rgba(165, 243, 252, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-gateway-layout .auth-security-note,
.login-gateway-layout .auth-compact-block {
    margin-top: 18px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(165, 243, 252, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.login-gateway-layout .auth-security-note {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
}

.login-gateway-layout .auth-security-note .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.login-gateway-layout .auth-compact-title {
    color: rgba(236, 254, 255, 0.82);
}

.premium-login .button {
    min-height: 52px;
    border-radius: 18px;
    font-weight: 750;
}

.premium-login .button.primary {
    border: 0;
    background: linear-gradient(100deg, #67e8f9 0%, #7dd3fc 50%, #8b5cf6 100%);
    color: #07111e;
    box-shadow: 0 16px 42px rgba(103, 232, 249, 0.16);
}

.premium-login .button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 52px rgba(103, 232, 249, 0.22);
}

.premium-login .button.primary:active,
.premium-login .button.secondary:active {
    transform: translateY(0);
}

.premium-login .button.secondary {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(165, 243, 252, 0.15);
    color: rgba(248, 250, 252, 0.86);
}

.premium-login .button.secondary:hover {
    background: rgba(165, 243, 252, 0.08);
    border-color: rgba(165, 243, 252, 0.28);
    transform: translateY(-1px);
}

.login-gateway-layout .auth-support-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(3, 7, 18, 0.28);
    border: 1px solid rgba(165, 243, 252, 0.09);
    box-shadow: none;
}

.login-gateway-layout .auth-support-strip .support-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

.login-gateway-layout .auth-support-strip strong {
    font-size: 0.96rem;
}

.login-gateway-layout .auth-support-strip span {
    color: rgba(226, 232, 240, 0.56);
    font-size: 0.9rem;
}

.login-gateway-layout .auth-support-strip .support-link {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 14px;
}

.premium-login .login-footer {
    margin-top: 18px;
    color: rgba(226, 232, 240, 0.42);
}

@media (max-width: 980px) {
    .premium-login .auth-shell {
        min-height: auto;
        align-items: stretch;
    }

    .login-gateway-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-gateway-layout .gateway-hero,
    .login-gateway-layout .gateway-panel {
        min-height: auto;
    }

    .premium-login .login-page-head {
        margin-bottom: 34px;
    }
}

@media (max-width: 560px) {
    .premium-login {
        padding: 14px;
    }

    .premium-login .login-page-head {
        display: grid;
        gap: 12px;
        margin-bottom: 28px;
    }

    .premium-login .language-pill {
        width: 100%;
        justify-content: center;
    }

    .login-gateway-layout .gateway-hero,
    .login-gateway-layout .gateway-panel {
        border-radius: 24px;
    }

    .login-gateway-layout .gateway-hero__content,
    .login-gateway-layout .gateway-panel {
        padding: 22px;
    }

    .login-gateway-layout .gateway-hero h1 {
        font-size: clamp(2.75rem, 15vw, 4rem);
    }

    .login-gateway-layout .gateway-actions {
        display: grid;
        width: 100%;
    }

    .login-gateway-layout .gateway-divider,
    .login-gateway-layout .access-summary {
        width: 100%;
    }

    .login-gateway-layout .auth-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-gateway-layout .auth-tabs button {
        min-height: 48px;
        font-size: 0.84rem;
    }

    .login-gateway-layout .auth-tabs button svg {
        width: 17px;
        height: 17px;
    }

    .login-gateway-layout .auth-card {
        align-content: start;
    }

    .login-gateway-layout .auth-card form,
    .login-gateway-layout .auth-main-action,
    .login-gateway-layout .auth-security-note,
    .login-gateway-layout .auth-compact-block {
        width: 100%;
    }

    .login-gateway-layout .auth-support-strip {
        grid-template-columns: 1fr;
    }

    .login-gateway-layout .auth-support-strip .support-link {
        width: 100%;
        justify-content: center;
    }
}

/* /login polish pass: spacing and depth */
.premium-login {
    padding: clamp(18px, 3.2vw, 40px);
    background:
        radial-gradient(circle at 15% 20%, rgba(165, 243, 252, 0.14), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.12), transparent 30%),
        radial-gradient(circle at 55% 90%, rgba(45, 11, 20, 0.72), transparent 34%),
        linear-gradient(135deg, #050816 0%, #0b1020 45%, #2d0b14 100%);
}

.premium-login .auth-shell {
    width: min(1240px, 100%);
    min-height: calc(100vh - clamp(36px, 6.4vw, 80px));
}

.login-gateway-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
    gap: clamp(48px, 5vw, 72px);
    align-items: center;
}

.login-gateway-layout .gateway-hero,
.login-gateway-layout .gateway-panel {
    min-height: clamp(600px, 70vh, 700px);
}

.login-gateway-layout .gateway-panel {
    padding: clamp(30px, 3vw, 34px);
    background: rgba(8, 13, 28, 0.62);
    border: 1px solid rgba(165, 243, 252, 0.14);
    border-radius: 28px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-gateway-layout .gateway-hero__content {
    padding: clamp(32px, 4.2vw, 50px);
}

.login-gateway-layout .gateway-hero p {
    max-width: 520px;
}

.login-gateway-layout .gateway-actions {
    gap: 14px;
}

.login-gateway-layout .auth-tabs {
    background: rgba(3, 7, 18, 0.28);
}

.login-gateway-layout .auth-tabs button {
    background: transparent;
}

.login-gateway-layout .auth-tabs button.active {
    border-color: rgba(165, 243, 252, 0.28);
    background:
        linear-gradient(135deg, rgba(165, 243, 252, 0.2), rgba(124, 58, 237, 0.14)),
        rgba(255, 255, 255, 0.035);
}

.login-gateway-layout .auth-card-shell {
    margin-top: 20px;
}

.login-gateway-layout .auth-card {
    padding-top: 22px;
}

.login-gateway-layout .auth-card input,
.login-gateway-layout .auth-card select {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(165, 243, 252, 0.14);
}

.login-gateway-layout .auth-card input:focus,
.login-gateway-layout .auth-card select:focus {
    border-color: #a5f3fc;
    box-shadow: 0 0 0 3px rgba(165, 243, 252, 0.1);
}

.login-gateway-layout .auth-security-note,
.login-gateway-layout .auth-compact-block {
    border-color: rgba(165, 243, 252, 0.08);
    background: rgba(255, 255, 255, 0.022);
}

.login-gateway-layout .auth-support-strip {
    margin-top: 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.22);
    border-color: rgba(165, 243, 252, 0.08);
}

.login-gateway-layout .auth-support-strip .support-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.login-gateway-layout .auth-support-strip strong {
    font-size: 0.9rem;
}

.login-gateway-layout .auth-support-strip span {
    font-size: 0.84rem;
}

.login-gateway-layout .auth-support-strip .support-link {
    min-height: 38px;
    font-size: 0.88rem;
}

.premium-login .login-footer {
    margin-top: 14px;
    font-size: 0.84rem;
    color: rgba(226, 232, 240, 0.34);
}

@media (max-width: 980px) {
    .login-gateway-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-gateway-layout .gateway-hero,
    .login-gateway-layout .gateway-panel {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .premium-login {
        padding: 14px;
    }

    .login-gateway-layout {
        gap: 14px;
    }

    .login-gateway-layout .gateway-hero__content,
    .login-gateway-layout .gateway-panel {
        padding: 22px;
    }

    .login-gateway-layout .gateway-actions {
        display: grid;
        gap: 12px;
    }

    .login-gateway-layout .auth-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-gateway-layout .auth-support-strip {
        grid-template-columns: 1fr;
    }
}
