:root {
    color-scheme: dark;
    --bg: #0a0e15;
    --bg-soft: #111827;
    --panel: rgba(13, 19, 31, 0.86);
    --panel-strong: rgba(17, 24, 39, 0.94);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --text: #f5f7fb;
    --muted: #93a0b8;
    --muted-strong: #c5cfdf;
    --primary: #7cc3ff;
    --primary-strong: #52a4ea;
    --success: #49d697;
    --warning: #ffb454;
    --danger: #ff7f8d;
    --accent: #8ea6ff;
    --line: rgba(255, 255, 255, 0.1);
    --button-ghost: rgba(255, 255, 255, 0.06);
    --button-ghost-hover: rgba(255, 255, 255, 0.1);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --mono: "JetBrains Mono", "Consolas", monospace;
    --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: linear-gradient(180deg, #081019 0%, #0a1019 36%, #090d14 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.hidden {
    display: none !important;
}

.live-update-highlight {
    border-radius: 10px;
    animation: cabinet-live-update-highlight 1.8s ease-out;
}

@keyframes cabinet-live-update-highlight {
    0% {
        background-color: rgba(73, 214, 151, 0.18);
        box-shadow:
            0 0 0 1px rgba(73, 214, 151, 0.55),
            0 0 26px rgba(73, 214, 151, 0.24);
    }

    42% {
        background-color: rgba(73, 214, 151, 0.1);
        box-shadow:
            0 0 0 1px rgba(73, 214, 151, 0.34),
            0 0 18px rgba(73, 214, 151, 0.18);
    }

    100% {
        background-color: transparent;
        box-shadow:
            0 0 0 1px rgba(73, 214, 151, 0),
            0 0 0 rgba(73, 214, 151, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-update-highlight {
        animation: none;
        background-color: rgba(73, 214, 151, 0.1);
        box-shadow: 0 0 0 1px rgba(73, 214, 151, 0.32);
    }
}

.cabinet-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.34;
}

.orb-a {
    width: 360px;
    height: 360px;
    top: -60px;
    left: -70px;
    background: rgba(124, 195, 255, 0.28);
}

.orb-b {
    width: 420px;
    height: 420px;
    top: 18%;
    right: -120px;
    background: rgba(142, 166, 255, 0.24);
}

.orb-c {
    width: 340px;
    height: 340px;
    bottom: -80px;
    left: 25%;
    background: rgba(73, 214, 151, 0.18);
}

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 28px;
}

.screen {
    max-width: 1260px;
    margin: 0 auto;
}

#screen-cabinet {
    max-width: 760px;
}

.loading-card,
.hero-card,
.auth-card,
.panel-card,
.tab-rail,
.account-stamp {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: var(--panel-shadow);
}

.loading-card,
.hero-card,
.auth-card {
    border-radius: var(--radius-xl);
}

.loading-card {
    max-width: 720px;
    margin: 14vh auto 0;
    padding: 32px;
}

.loading-card h1,
.hero-card h1,
.auth-card h2,
.panel-card h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.loading-card p,
.hero-card p,
.subcopy,
.auth-footnote {
    color: var(--muted);
    line-height: 1.65;
}

.loading-chip,
.pill,
.badge,
.eyebrow,
.stamp-label,
.preview-label,
.point-label,
.selector-head {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
}

.loading-chip,
.pill,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.pill.muted,
.badge.neutral {
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.05);
}

.pill.accent,
.badge.active {
    color: #061321;
    background: linear-gradient(135deg, #8ed3ff 0%, #56a8ea 100%);
    border-color: rgba(124, 195, 255, 0.4);
}

.badge.expired {
    color: #2b100e;
    background: linear-gradient(135deg, #ffb7bf 0%, #ff808d 100%);
    border-color: rgba(255, 127, 141, 0.45);
}

.eyebrow,
.stamp-label,
.preview-label,
.point-label,
.selector-head {
    color: var(--muted);
}

.loading-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.loading-bar span {
    display: block;
    width: 32%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5cc1ff 0%, #8ea6ff 100%);
    animation: shell-progress 1.3s ease-in-out infinite;
}

@keyframes shell-progress {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(120%); }
    100% { transform: translateX(260%); }
}

.session-card {
    max-width: 760px;
    margin: 10vh auto 0;
    padding: 34px;
}

.hero-topline,
.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero-card h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin-top: 18px;
}

.hero-card p {
    max-width: 680px;
    margin-top: 14px;
}

.session-highlights,
.badge-row,
.button-row.wrap,
.selector-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.session-actions,
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.guest-screen {
    --guest-content-width: 1056px;
    display: grid;
    max-width: 1120px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    align-content: start;
}

.guest-layout {
    display: grid;
    width: min(var(--guest-content-width), 100%);
    grid-template-columns: minmax(0, 612px) minmax(360px, 396px);
    justify-content: center;
    justify-self: center;
    gap: 48px;
    align-items: start;
}

.guest-showcase {
    display: grid;
    width: 100%;
    max-width: 612px;
    justify-self: start;
    gap: 26px;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 12%, rgba(124, 195, 255, 0.12), transparent 34%),
        radial-gradient(circle at 70% 96%, rgba(73, 214, 151, 0.08), transparent 30%),
        rgba(13, 19, 31, 0.52);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(16px);
}

.guest-showcase > *,
.guest-hero,
.guest-feature-grid,
.guest-tariffs,
.guest-section-head,
.guest-tariff-grid,
.guest-layout .auth-layout,
.guest-layout .auth-card {
    min-width: 0;
    max-width: 100%;
}

.guest-header {
    display: grid;
    width: min(var(--guest-content-width), 100%);
    justify-self: center;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    min-height: 52px;
    margin-bottom: 22px;
}

.auth-brand.guest-brand {
    justify-content: flex-start;
    margin-bottom: 0;
}

.guest-brand strong {
    font-size: 24px;
}

.guest-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 700;
}

.business-login-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.business-label-short {
    display: none;
}

.business-login-link svg,
.guest-contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.guest-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.guest-nav a:hover,
.guest-login-link:hover {
    color: var(--text);
}

.guest-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 4px;
    color: #b8d8ff;
    font-size: 15px;
    font-weight: 800;
}

.guest-mobile-login {
    display: none;
}

.guest-hero h1 {
    max-width: 560px;
    margin: 0 auto;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    text-align: center;
}

.guest-hero h1,
.guest-hero p {
    max-width: 100%;
}

.guest-hero p {
    max-width: 500px;
    margin: 14px auto 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.42;
    text-align: center;
}

.guest-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
}

.guest-feature-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    min-width: 0;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.guest-feature-grid .guest-feature-card:nth-child(n + 3) {
    min-height: 50px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.guest-feature-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #8dbdff;
}

.guest-feature-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-payment-card {
    align-items: center;
    gap: 13px;
    text-align: left;
}

.guest-payment-content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.guest-tariffs {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

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

.guest-section-head h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
}

.guest-section-head p {
    margin: 0;
}

.guest-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(124, 195, 255, 0.24);
    border-radius: 999px;
    background: rgba(124, 195, 255, 0.08);
    color: #b7ddff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.guest-tariff-grid,
.tariff-price-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.guest-tariff-card,
.tariff-price-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.guest-tariff-card {
    display: flex;
    min-height: 84px;
    padding: 12px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.guest-tariff-card span,
.tariff-price-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.guest-tariff-card strong,
.tariff-price-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.guest-tariff-card strong {
    margin-top: 7px;
    font-size: 19px;
}

.guest-payment-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
}

.guest-payment-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.84;
    filter: saturate(0.9);
}

.guest-payment-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.guest-payment-icon.sber {
    color: #5aa04a;
}

.guest-payment-icon.sber svg {
    width: 15px;
    height: 15px;
}

.guest-payment-icon.sber .sber-ring {
    fill: none;
    stroke: url("#sber-payment-gradient");
    stroke-width: 2.4;
    stroke-linecap: square;
}

.guest-payment-icon.sber .sber-check {
    fill: none;
    stroke: #4f9b42;
    stroke-width: 2.8;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.guest-payment-icon.tbank {
    background: transparent;
}

.guest-payment-icon.tbank svg {
    width: 15px;
    height: 15px;
}

.guest-payment-icon.tbank .tbank-shield {
    fill: #ffe14a;
}

.guest-payment-icon.tbank .tbank-letter {
    fill: #2d2d2d;
}

.guest-payment-icon.sbp {
    width: 17px;
}

.guest-payment-icon.sbp svg {
    width: 15px;
    height: 15px;
}

.guest-payment-icon.sbp .sbp-left-blue {
    fill: #5da6e9;
}

.guest-payment-icon.sbp .sbp-left-purple {
    fill: #8b55a3;
}

.guest-payment-icon.sbp .sbp-top-yellow {
    fill: #f2c44b;
}

.guest-payment-icon.sbp .sbp-top-orange {
    fill: #df8337;
}

.guest-payment-icon.sbp .sbp-top-red {
    fill: #bd3557;
}

.guest-payment-icon.sbp .sbp-bottom-lime {
    fill: #83bf5b;
}

.guest-payment-icon.sbp .sbp-bottom-green {
    fill: #347a3e;
}

.guest-payment-icon.sbp .sbp-diagonal {
    fill: #4f91d6;
}

.guest-payment-icon.bitcoin {
    color: #e49c2f;
}

.guest-payment-icon.bitcoin svg {
    width: 10px;
    height: 15px;
}

.guest-payment-icon.bitcoin .bitcoin-symbol {
    fill: currentColor;
}

.guest-layout .auth-layout {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.guest-layout .auth-card {
    position: sticky;
    top: 74px;
    height: auto;
    padding: 28px;
    border-radius: 18px;
}

.guest-layout .auth-card > .auth-brand {
    display: none;
}

.guest-layout .auth-intro h1 {
    margin: 0;
    color: #e7f4ff;
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
    text-shadow:
        0 0 18px rgba(124, 195, 255, 0.42),
        0 0 34px rgba(124, 195, 255, 0.22);
}

.guest-layout .auth-intro p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.guest-layout .auth-intro {
    padding: 7px 12px 8px;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(124, 195, 255, 0.2), transparent 64%),
        linear-gradient(90deg, transparent, rgba(124, 195, 255, 0.06), transparent);
}

.guest-layout .auth-section + .email-auth-section {
    margin-top: 12px;
    padding-top: 0;
}

.guest-layout .provider-grid {
    gap: 9px;
    margin-top: 14px;
}

.guest-layout .provider-button {
    min-height: 48px;
    padding: 9px 12px;
    border-radius: 8px;
    border-color: rgba(124, 195, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(124, 195, 255, 0.085), rgba(255, 255, 255, 0.035)),
        rgba(8, 14, 24, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    gap: 11px;
}

.guest-layout .provider-brand {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.guest-layout .provider-button strong {
    font-size: 15px;
}

.guest-layout .email-auth-card {
    padding: 12px;
    border: 1px solid rgba(124, 195, 255, 0.36);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 0%, rgba(124, 195, 255, 0.13), transparent 36%),
        rgba(8, 14, 24, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.guest-layout .email-section-head {
    min-height: 34px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.guest-layout .email-section-head h2 {
    color: var(--text);
    font-size: 15px;
}

.guest-layout .field input {
    padding: 11px 13px;
    border-radius: 8px;
    background: rgba(8, 14, 24, 0.48);
}

.guest-layout .captcha-panel {
    margin-top: 8px;
}

.guest-layout .email-request-row {
    --guest-email-action-height: 44px;
    --guest-email-action-gap: 6px;
    --guest-email-button-width: 116px;
    display: grid;
    grid-template-columns: minmax(0, calc(100% - var(--guest-email-button-width) - var(--guest-email-action-gap))) var(--guest-email-button-width);
    align-items: stretch;
    gap: var(--guest-email-action-gap);
    margin-top: 8px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.guest-layout .email-request-row .captcha-panel,
.guest-layout .email-request-row .button-row {
    margin-top: 0;
    min-width: 0;
}

.guest-layout #auth-email-captcha-panel[hidden] + .button-row {
    grid-column: 1 / -1;
}

.guest-layout .captcha-widget-host cap-widget {
    --cap-border-radius: 10px;
    --cap-checkbox-border-radius: 7px;
    --cap-background: transparent;
    --cap-border-color: transparent;
    --cap-widget-height: var(--guest-email-action-height);
    --cap-widget-padding: 8px 10px;
    --cap-gap: 10px;
    --cap-checkbox-size: 22px;
    --cap-checkbox-margin: 0;
}

.guest-layout .captcha-widget-host {
    height: var(--guest-email-action-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(124, 195, 255, 0.22);
    border-radius: 10px;
    background: rgba(18, 25, 39, 0.58);
    box-sizing: border-box;
}

.guest-layout .captcha-widget-host cap-widget {
    width: 100%;
}

.guest-layout .captcha-widget-host cap-widget::part(label) {
    height: 1.25em;
    font-size: 14px;
    line-height: 1.2;
}

.guest-layout .button-row {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.guest-layout #auth-email-resend:disabled {
    display: none;
}

.guest-layout #auth-email-resend.email-resend-button {
    width: 100%;
    height: 36px;
    min-height: 36px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 8px;
    color: #d8ecff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.guest-layout .button-row .button {
    box-sizing: border-box;
    width: 100%;
    height: var(--guest-email-action-height);
    min-height: var(--guest-email-action-height);
    border-radius: 8px;
}

.guest-layout #auth-email-request.button.primary {
    border-color: rgba(124, 195, 255, 0.38);
    background: rgba(124, 195, 255, 0.16);
    color: #d8ecff;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.guest-layout #auth-email-request.button.primary:hover:not(:disabled) {
    background: rgba(124, 195, 255, 0.22);
}

@media (min-width: 721px) {
    .guest-layout #auth-email-captcha-panel:not([hidden]) + .button-row #auth-email-request.button.primary {
        width: 99%;
        justify-self: end;
    }
}

.guest-layout .checkbox-row {
    min-height: 36px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    gap: 9px;
}

.guest-layout .checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.guest-layout .checkbox-row span {
    font-size: 13px;
}

.auth-layout {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(circle at 86% 6%, rgba(124, 195, 255, 0.22), transparent 34%),
        radial-gradient(circle at 10% 36%, rgba(73, 214, 151, 0.13), transparent 30%),
        linear-gradient(145deg, rgba(13, 19, 31, 0.96), rgba(7, 12, 21, 0.94));
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(124, 195, 255, 0.13), transparent 35%),
        linear-gradient(315deg, rgba(73, 214, 151, 0.1), transparent 42%);
    opacity: 0.72;
}

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

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(108, 255, 156, 0.16));
}

.auth-brand strong {
    font-size: 22px;
    letter-spacing: -0.02em;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(36px, 8vw, 48px);
    line-height: 0.98;
    text-align: center;
}

.auth-intro p {
    margin: 12px 0 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
}

.auth-section + .auth-section {
    margin-top: 0;
}

.auth-section + .email-auth-section {
    margin-top: 18px;
}

.section-head h2 {
    margin-top: 10px;
    font-size: 28px;
}

.provider-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.provider-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.provider-button:hover:not(:disabled),
.button:hover:not(:disabled),
.tab-button:hover {
    transform: translateY(-1px);
}

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

.button.is-disabled,
.provider-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.provider-button strong,
.provider-button small {
    display: block;
    text-align: left;
}

.provider-button strong,
.email-section-head h2 {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.provider-button small {
    margin-top: 4px;
    color: var(--muted);
}

.provider-google:hover:not(:disabled) {
    border-color: rgba(124, 195, 255, 0.4);
    background: rgba(124, 195, 255, 0.08);
}

.provider-apple:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.provider-telegram:hover:not(:disabled):not(.is-disabled) {
    border-color: rgba(42, 171, 238, 0.46);
    background: rgba(42, 171, 238, 0.08);
}

.provider-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.provider-brand-google {
    background: rgba(255, 255, 255, 0.08);
}

.provider-brand-google svg {
    width: 25px;
    height: 25px;
}

.provider-brand-telegram {
    color: #35b8f4;
    background: rgba(255, 255, 255, 0.08);
}

.provider-brand-telegram svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.provider-brand-apple {
    color: #f7f9ff;
    background: rgba(255, 255, 255, 0.08);
}

.provider-brand-apple svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.provider-brand-email {
    color: #d5e6ff;
    background: rgba(255, 255, 255, 0.08);
}

.provider-brand-email svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.provider-button.compact {
    padding: 14px 16px;
}

.telegram-auth-block {
    margin-top: 18px;
    padding: 18px;
    width: 100%;
    min-width: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.telegram-auth-block.compact {
    margin-top: 0;
}

.telegram-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.telegram-head small {
    color: var(--muted);
}

.telegram-slot {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.telegram-bot-login-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
    min-width: 0;
    border: 1px solid rgba(42, 171, 238, 0.28);
    border-radius: var(--radius-md);
    background: rgba(42, 171, 238, 0.08);
}

.telegram-bot-login-panel p {
    margin: 6px 0 0;
    color: var(--muted-strong);
    line-height: 1.45;
}

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

.telegram-bot-actions .button {
    margin: 0;
    min-width: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    white-space: normal;
}

.telegram-bot-qr-details {
    color: var(--muted-strong);
}

.telegram-bot-qr-details summary {
    cursor: pointer;
    font-weight: 800;
}

.telegram-bot-qr {
    display: inline-grid;
    place-items: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
}

.telegram-bot-qr canvas,
.telegram-bot-qr img {
    width: 152px;
    height: 152px;
}

.telegram-auth-switch {
    margin-top: -4px;
    text-align: center;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.link-button:hover {
    background: rgba(124, 195, 255, 0.08);
}

.telegram-slot.small {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 44px;
    overflow: hidden;
    opacity: 0.01;
    pointer-events: none;
}

.field {
    display: block;
    margin-top: 14px;
}

.label-hidden {
    margin-top: 0;
}

.label-hidden > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.field span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 700;
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 15px 16px;
    border-radius: 14px;
    outline: none;
}

.field input:focus {
    border-color: rgba(124, 195, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(124, 195, 255, 0.08);
}

.form-input {
    width: min(100%, 420px);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    outline: none;
}

.form-input:focus {
    border-color: rgba(124, 195, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(124, 195, 255, 0.08);
}

.email-auth-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.email-section-head h2 {
    margin: 0;
}

.email-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted-strong);
}

.checkbox-row input {
    margin-top: 4px;
}

.checkbox-row small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

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

.captcha-widget-host {
    width: 100%;
}

.captcha-widget-host cap-widget {
    display: block;
    width: 100%;
    max-width: 100%;
    --cap-widget-width: 100%;
    --cap-background: rgba(18, 25, 39, 0.92);
    --cap-border-color: rgba(255, 255, 255, 0.14);
    --cap-border-radius: 16px;
    --cap-color: var(--text);
    --cap-checkbox-background: rgba(255, 255, 255, 0.08);
    --cap-checkbox-border: 1px solid rgba(255, 255, 255, 0.3);
    --cap-checkbox-border-radius: 8px;
    --cap-font: "Manrope", sans-serif;
    --cap-spinner-color: #8ec5ff;
    --cap-spinner-background-color: rgba(255, 255, 255, 0.14);
}

.captcha-widget-host cap-widget::part(attribution) {
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
}

.captcha-panel .inline-note {
    margin-top: 10px;
}

.code-block {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.code-block .field {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #07131d;
}

.button.ghost {
    border-color: var(--line);
    background: var(--button-ghost);
    color: var(--text);
}

.button.ghost:hover:not(:disabled) {
    background: var(--button-ghost-hover);
}

.mono {
    font-family: var(--mono);
}

.status-panel {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    line-height: 1.55;
}

.status-panel.hidden {
    display: none;
}

.status-panel.is-success {
    border-color: rgba(73, 214, 151, 0.36);
    color: #c8ffe6;
}

.status-panel.is-error {
    border-color: rgba(255, 127, 141, 0.36);
    color: #ffd2d8;
}

.status-panel.is-warning {
    border-color: rgba(255, 180, 84, 0.36);
    color: #ffe0b2;
}

#cabinet-global-status:not(.hidden) {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 96px);
    left: 50%;
    z-index: 28;
    width: max-content;
    max-width: min(640px, calc(100vw - 56px));
    margin: 0;
    padding: 10px 14px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 195, 255, 0.08), transparent 36%),
        rgba(12, 18, 30, 0.96);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(125%);
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(124, 195, 255, 0.14), transparent 34%),
        rgba(3, 7, 13, 0.74);
    backdrop-filter: blur(10px);
}

.confirm-modal-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 22px;
    border: 1px solid rgba(124, 195, 255, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(124, 195, 255, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(19, 27, 43, 0.98), rgba(9, 14, 24, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.confirm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.confirm-modal-card h2 {
    margin: 12px 42px 0 0;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.confirm-modal-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(124, 195, 255, 0.28);
    border-radius: 18px;
    background: rgba(124, 195, 255, 0.08);
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.confirm-modal-card p {
    margin: 16px 0 0;
    color: var(--muted-strong);
    line-height: 1.55;
}

.confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.confirm-modal-actions .button {
    min-width: 0;
    width: 100%;
    white-space: normal;
}

.inline-note {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted-strong);
}

.inline-note.error {
    border-color: rgba(255, 127, 141, 0.36);
    color: #ffd2d8;
}

.inline-note.warning {
    border-color: rgba(255, 180, 84, 0.36);
    color: #ffe0b2;
}

.security-reauth-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.security-reauth-note .button {
    min-height: 40px;
    white-space: nowrap;
}

.security-grid .security-reauth-note {
    grid-template-columns: 1fr;
}

.security-grid .security-reauth-note .button {
    width: 100%;
}

.inline-note .button {
    margin-top: 12px;
}

.button.compact {
    padding: 10px 14px;
    border-radius: 14px;
}

.button.compact.small-action {
    width: auto;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.cabinet-layout {
    display: block;
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.cabinet-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(2, 6, 11, 0.46);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.cabinet-layout.menu-open::before {
    opacity: 1;
    pointer-events: auto;
}

.cabinet-main {
    --sticky-route-offset: 96px;
    min-width: 0;
}

.tab-rail {
    position: fixed;
    top: 76px;
    right: max(18px, calc((100vw - 760px) / 2));
    z-index: 30;
    width: min(268px, calc(100vw - 36px));
    max-height: calc(100vh - 104px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 10px;
    border-radius: 22px;
    height: fit-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.tab-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.cabinet-layout.menu-open .tab-rail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.menu-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.menu-list {
    display: grid;
    gap: 4px;
}

.menu-exit {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.tab-button {
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    margin-top: 0;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted-strong);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tab-button.active {
    background: rgba(124, 195, 255, 0.1);
    border-color: rgba(124, 195, 255, 0.28);
    color: var(--text);
}

.menu-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 8px 6px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.menu-action-title {
    display: grid;
    justify-items: center;
    gap: 1px;
    max-width: 100%;
    min-height: 36px;
    font-size: 15px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.menu-action-primary {
    color: #07131d;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    border-color: rgba(124, 195, 255, 0.38);
}

.menu-action-primary.active {
    color: #07131d;
    background: linear-gradient(135deg, #9fd4ff 0%, #62afea 100%);
}

.menu-action.active:not(.menu-action-primary) {
    border-color: rgba(124, 195, 255, 0.34);
    background: rgba(124, 195, 255, 0.1);
    color: var(--text);
}

.menu-row {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    font-size: 14px;
    line-height: 1.2;
}

.menu-row::after {
    content: "";
    width: 7px;
    height: 7px;
    justify-self: end;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.48;
    transform: rotate(45deg);
}

.menu-row-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: var(--primary-soft);
    background: rgba(124, 195, 255, 0.08);
}

.menu-row-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-row-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-row.active .menu-row-icon {
    color: var(--text);
    background: rgba(124, 195, 255, 0.16);
}

.tab-button.danger {
    color: #ffb6bf;
}

.tab-button.danger::after {
    display: none;
}

.tab-button.danger .menu-row-icon {
    color: #ffb6bf;
    background: rgba(255, 127, 141, 0.08);
}

.tab-button.danger:hover {
    border-color: rgba(255, 127, 141, 0.28);
    background: rgba(255, 127, 141, 0.08);
}

.cabinet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
    position: sticky;
    top: 0;
    z-index: 26;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.cabinet-topbar::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 132px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 11, 19, 0.95) 0%, rgba(6, 11, 19, 0.78) 46%, rgba(6, 11, 19, 0.32) 78%, transparent 100%);
    backdrop-filter: blur(14px) saturate(118%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
}

.cabinet-topbar > * {
    position: relative;
    z-index: 1;
}

.cabinet-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cabinet-brand > div {
    min-width: 0;
}

.cabinet-topbar h1 {
    margin: 0;
    font-size: clamp(30px, 7vw, 42px);
    letter-spacing: -0.03em;
}

.cabinet-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 2px;
}

.cabinet-user-title {
    display: block;
    max-width: 240px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-vip-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border: 1px solid rgba(236, 185, 92, 0.42);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(236, 185, 92, 0.14), rgba(124, 195, 255, 0.05));
    color: #f2cf8a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(236, 185, 92, 0.12);
}

.cabinet-corporate-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border: 1px solid rgba(124, 195, 255, 0.4);
    border-radius: 999px;
    background: rgba(124, 195, 255, 0.11);
    color: #9fd9ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.account-choice-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.account-choice-button {
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

body.corporate-employee-mode [data-tab="renewal"],
body.corporate-employee-mode [data-tab="tariff"],
body.corporate-employee-mode [data-tab="payments"],
body.corporate-employee-mode [data-tab="referral"],
body.corporate-employee-mode [data-tab="partner"],
body.corporate-employee-mode [data-tab="gift"],
body.corporate-employee-mode [data-tab="security"],
body.corporate-employee-mode [data-tab="help"],
body.corporate-employee-mode [data-panel="renewal"],
body.corporate-employee-mode [data-panel="tariff"],
body.corporate-employee-mode [data-panel="payments"],
body.corporate-employee-mode [data-panel="referral"],
body.corporate-employee-mode [data-panel="partner"],
body.corporate-employee-mode [data-panel="gift"],
body.corporate-employee-mode [data-panel="security"],
body.corporate-employee-mode [data-panel="help"],
body.corporate-employee-mode #overview-renew-action,
body.corporate-employee-mode #overview-tariff-action,
body.corporate-employee-mode #overview-share-action,
body.corporate-employee-mode #overview-gift-action {
    display: none !important;
}

body.corporate-employee-mode .subscription-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.corporate-employee-mode .corporate-device-metric {
    cursor: default;
    pointer-events: none;
}

body.corporate-employee-mode #overview-location-action::before {
    content: none;
}

body.corporate-employee-mode .home-primary-actions {
    grid-template-columns: 1fr;
}

body.corporate-employee-mode #overview-connect-action {
    width: 100%;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.account-stamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.account-stamp strong {
    font-family: var(--mono);
    font-size: 13px;
    min-width: 86px;
    text-align: center;
}

.account-stamp:hover,
.account-stamp:focus-visible {
    border-color: rgba(124, 195, 255, 0.38);
    background: rgba(124, 195, 255, 0.08);
}

.account-stamp:active {
    transform: translateY(1px);
}

.account-stamp.is-copied {
    border-color: rgba(73, 214, 151, 0.4);
    background: rgba(73, 214, 151, 0.12);
    color: #c8ffe6;
}

.account-stamp.is-copied strong {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.notification-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid rgba(10, 16, 27, 0.98);
    border-radius: 999px;
    background: #7cc3ff;
    color: #06111f;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.route-toolbar {
    position: sticky;
    top: var(--sticky-route-offset);
    z-index: 27;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 195, 255, 0.1), transparent 42%),
        rgba(12, 18, 30, 0.94);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.route-toolbar > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    text-align: right;
}

.route-toolbar > div strong,
.route-toolbar > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-toolbar > div strong {
    font-size: clamp(14px, 3.6vw, 18px);
    font-weight: 900;
}

.route-toolbar > div span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.route-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 10px 13px;
    border: 1px solid rgba(124, 195, 255, 0.2);
    border-radius: 14px;
    background: rgba(124, 195, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
}

.route-back-icon {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.home-stack {
    display: grid;
    gap: 16px;
}

.subscription-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 242px;
    border: 1px solid rgba(124, 195, 255, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 22%, rgba(124, 195, 255, 0.2), transparent 34%),
        radial-gradient(circle at 60% 0%, rgba(45, 117, 215, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(16, 34, 60, 0.98), rgba(10, 16, 27, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

.subscription-hero-glow {
    position: absolute;
    inset: auto -40px -80px 28%;
    height: 180px;
    background: radial-gradient(circle, rgba(73, 214, 151, 0.18), transparent 68%);
    filter: blur(20px);
}

.subscription-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 242px;
    padding: 22px;
}

.subscription-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 159px;
    height: 159px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.subscription-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.subscription-hero-card h2 {
    order: 2;
    align-self: end;
    margin: 5px 0 0;
    padding-right: 129px;
    font-size: clamp(25px, 3.45vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.subscription-hero-card.subscription-active h2 {
    color: #7fd3ff;
    text-shadow:
        0 0 22px rgba(83, 188, 255, 0.38),
        0 0 48px rgba(73, 214, 151, 0.18);
}

.subscription-hero-card .subscription-remaining-label {
    order: 1;
    align-self: end;
    margin: 17px 0 0;
    padding-right: 129px;
    color: var(--muted-strong);
    font-size: 16px;
    font-weight: 900;
}

.subscription-hero-card p {
    order: 3;
    margin: 10px 0 0;
    color: var(--muted-strong);
}

.subscription-hero-card.subscription-active #overview-expiry-caption {
    font-size: 14px;
    font-weight: 700;
}

.subscription-hero-card.subscription-expired h2 {
    order: 3;
    margin-top: 18px;
}

.subscription-hero-card.subscription-expired .subscription-remaining-label {
    order: 1;
}

.subscription-hero-card.subscription-expired #overview-expiry-caption {
    order: 2;
    margin-top: 6px;
}

.subscription-metrics {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-metric {
    display: grid;
    gap: 5px;
    justify-items: center;
    min-width: 0;
    padding: 16px 16px 0 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: center;
}

.subscription-metric + .subscription-metric {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-metric span,
.subscription-metric small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.subscription-metric strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34em;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.location-title-name {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.38em;
    height: 0.96em;
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.24),
        0 4px 10px rgba(0, 0, 0, 0.22);
    font-size: 1em;
    line-height: 1;
    overflow: hidden;
}

.location-flag-de {
    background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.location-flag-lv {
    background: linear-gradient(to bottom, #9e3039 0 40%, #fff 40% 60%, #9e3039 60% 100%);
}

.location-flag-nl {
    background: linear-gradient(to bottom, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}

.location-flag-pl {
    background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.location-flag-ru {
    background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.location-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 1.7em;
    height: 1.18em;
    padding: 0 0.28em;
    border-radius: 0.48em;
    background: rgba(124, 195, 255, 0.14);
    color: var(--primary);
    font-size: 0.58em;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.subscription-metric strong .location-title,
.subscription-metric strong .location-title-name {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.subscription-metric strong .location-flag-fallback {
    color: var(--primary);
    font-size: 0.58em;
    font-weight: 900;
}

.subscription-metric small {
    color: var(--primary);
}

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

.partner-home-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    justify-content: center;
}

.partner-home-action,
.home-primary-actions .overview-action-button {
    position: relative;
    overflow: hidden;
}

.overview-action-icon {
    position: absolute;
    left: 18px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    opacity: 0.86;
    pointer-events: none;
}

.overview-action-label {
    display: block;
    max-width: calc(100% - 48px);
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shortcut-link {
    justify-self: center;
    margin-top: -2px;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: rgba(178, 218, 255, 0.74);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgba(178, 218, 255, 0.32);
    text-underline-offset: 4px;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.home-shortcut-link:hover,
.home-shortcut-link:focus-visible {
    color: rgba(214, 235, 255, 0.96);
    text-decoration-color: rgba(124, 195, 255, 0.72);
}

.compact-panel {
    padding: 18px;
}

.home-help-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(124, 195, 255, 0.16);
    border-radius: 20px;
    background: rgba(124, 195, 255, 0.06);
}

.home-help-card span {
    color: var(--muted);
    line-height: 1.55;
}

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

.security-grid > *,
.link-stack,
.link-stack > *,
.link-email-card {
    min-width: 0;
}

.overview-location-card {
    grid-column: 1 / -1;
}

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

.connection-flow {
    display: grid;
    gap: 14px;
}

.connection-step-card {
    padding: 20px;
}

.connection-step-card h2 {
    margin-top: 12px;
    font-size: 24px;
}

.connection-step-lead {
    margin: 14px 0 0;
    color: var(--primary);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.22);
}

.connection-platform-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 240px);
    justify-content: start;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.connection-platform-row label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.connection-platform-row > div {
    min-width: 0;
}

.platform-label-short {
    display: none;
}

.platform-dropdown {
    position: relative;
}

.platform-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted-strong) 50%) right 17px center / 7px 7px no-repeat,
        linear-gradient(135deg, var(--muted-strong) 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
        rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    font: 800 14px var(--font);
    appearance: none;
    text-align: left;
}

.platform-select:focus {
    border-color: rgba(124, 195, 255, 0.48);
    box-shadow: 0 0 0 3px rgba(124, 195, 255, 0.12);
    outline: none;
}

.platform-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 25;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(124, 195, 255, 0.3);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(24, 33, 50, 0.98) 0%, rgba(15, 22, 35, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.platform-option {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted-strong);
    cursor: pointer;
    font: 800 14px var(--font);
    text-align: left;
}

.platform-option:hover,
.platform-option.active {
    background: rgba(124, 195, 255, 0.16);
    color: var(--text);
}

.panel-card {
    border-radius: var(--radius-xl);
    padding: 22px;
}

.panel-card h2 {
    margin-top: 14px;
    font-size: 28px;
}

.spotlight {
    background:
        radial-gradient(circle at top right, rgba(124, 195, 255, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(18, 30, 49, 0.96) 0%, rgba(11, 18, 30, 0.96) 100%);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.metric-tile,
.selector-pill,
.faq-item,
.link-email-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.metric-tile {
    padding: 14px;
    border-radius: 16px;
}

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

.metric-tile strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
}

.detail-list {
    margin-top: 18px;
}

.detail-list.compact {
    margin-top: 0;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: var(--muted);
}

.detail-row strong {
    text-align: right;
    word-break: break-word;
}

.devices-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
}

.devices-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.device-code-card {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(124, 195, 255, 0.28);
    border-radius: 16px;
    background: rgba(124, 195, 255, 0.1);
}

.device-code-card span,
.device-code-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.device-code-card strong {
    font-family: var(--mono);
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    letter-spacing: 0;
}

.device-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.device-item > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.device-item strong,
.device-item span,
.device-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-item strong {
    color: var(--text);
    font-size: 15px;
}

.device-item span,
.device-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.icon-copy-button.danger {
    color: #ffb7c0;
}

.download-grid {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.download-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 10px 10px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.download-card strong {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    font-size: 15px;
}

.download-app-identity {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.download-app-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform-origin: center;
}

.download-app-icon.is-hiddify {
    transform: scale(1.2);
}

.download-app-icon.is-incy {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 0;
    border-radius: 13px;
}

.download-card .button {
    flex: 0 0 auto;
}

.download-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.download-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.download-copy-link:hover,
.download-copy-link:focus-visible {
    border-color: rgba(124, 195, 255, 0.32);
    background: rgba(124, 195, 255, 0.08);
    color: var(--primary);
}

.download-copy-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-copy-check {
    display: none;
    color: #c8ffe6;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.download-copy-link.is-copied {
    border-color: rgba(73, 214, 151, 0.38);
    background: rgba(73, 214, 151, 0.16);
    color: #c8ffe6;
}

.download-copy-link.is-copied .download-copy-icon {
    display: none;
}

.download-copy-link.is-copied .download-copy-check {
    display: inline;
}

.connection-device-note {
    margin-top: 9px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.recommended-star {
    color: #f7d979;
    font-size: 14px;
    line-height: 1;
}

.connection-return-note {
    position: relative;
    margin-top: 12px;
    padding: 13px 14px 13px 42px;
    border: 1px solid rgba(124, 195, 255, 0.42);
    border-radius: 16px;
    background:
        radial-gradient(circle at left center, rgba(124, 195, 255, 0.2), transparent 42%),
        rgba(124, 195, 255, 0.11);
    color: #dceeff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
}

.connection-return-note::before {
    content: "!";
    position: absolute;
    left: 14px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #071019;
    font-size: 12px;
    font-weight: 1000;
    transform: translateY(-50%);
}

.connection-download-card .button-row {
    margin-top: 14px;
}

.connection-installed-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-color: rgba(124, 195, 255, 0.28);
    background: rgba(124, 195, 255, 0.06);
    color: var(--text);
    box-shadow: none;
}

.connection-installed-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(157, 169, 190, 0.34);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 1000;
    line-height: 1;
    box-shadow: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button.ghost.connection-installed-button.is-active {
    border-color: rgba(124, 195, 255, 0.78);
    background: rgba(124, 195, 255, 0.15);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(124, 195, 255, 0.16), 0 14px 30px rgba(86, 168, 234, 0.18);
}

.button.ghost.connection-installed-button.is-active:hover:not(:disabled) {
    background: rgba(124, 195, 255, 0.2);
}

.button.ghost.connection-installed-button.is-active .connection-installed-check {
    border-color: rgba(124, 195, 255, 0.8);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #071019;
    animation: connection-installed-check-pop 0.46s ease;
}

@keyframes connection-installed-check-pop {
    0% {
        transform: scale(0.78);
    }
    48% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

.connection-app-open-card,
.connection-manual-card {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.connection-app-open-card {
    padding: 14px;
}

.connection-app-buttons {
    gap: 8px;
    margin-top: 10px;
}

.connection-app-buttons .button {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 10px 14px;
}

.connection-app-button {
    gap: 8px;
}

.button.ghost.connection-app-button.is-active {
    border-color: rgba(124, 195, 255, 0.62);
    background: rgba(124, 195, 255, 0.12);
    color: var(--text);
}

.connection-app-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 7px;
    object-fit: contain;
    transform-origin: center;
}

.connection-app-icon.is-hiddify {
    transform: none;
}

.connection-app-icon.is-incy {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    padding: 0;
    border-radius: 9px;
}

.connection-other-device-button {
    margin-top: 10px;
    padding-left: 0;
    padding-right: 0;
}

.connection-other-device-button.is-active {
    color: var(--text);
}

.connection-manual-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(176px, 212px);
    gap: 14px;
    padding: 14px;
    align-items: stretch;
}

.connection-manual-copy {
    min-width: 0;
}

.connection-manual-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.25;
}

.connection-manual-copy .button {
    width: 240px;
    max-width: 100%;
    margin-top: 10px;
    font-size: 15px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.connection-manual-copy .button.is-copy-feedback {
    border-color: rgba(73, 214, 151, 0.36);
    background: rgba(73, 214, 151, 0.16);
    color: #c8ffe6;
}

.connection-qr-card {
    display: grid;
    align-items: center;
}

.mono-box,
.qr-box {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
}

.mono-box {
    margin-top: 10px;
    padding: 11px 12px;
    font-family: var(--mono);
    font-size: 11px;
    word-break: break-all;
}

.connection-manual-card .mono-box {
    max-height: 58px;
    overflow: hidden;
}

.qr-config-layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.qr-box {
    min-height: 200px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-qr-card .qr-box {
    width: 100%;
    min-height: 0;
    padding: 16px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.qr-box canvas,
.qr-box img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.location-summary-card,
.location-option {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.subcopy.compact {
    margin: 0;
    line-height: 1.55;
}

.location-summary-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
}

body.corporate-employee-mode .location-summary-card {
    justify-content: center;
    text-align: center;
}

.location-summary-card > strong,
.location-summary-card > span {
    display: inline-flex;
    align-items: center;
}

.location-summary-card strong {
    font-size: 18px;
}

.location-summary-card > span {
    color: var(--muted);
    font-weight: 800;
}

.location-current-server-switch {
    min-height: 42px;
    margin-left: auto;
    padding: 0 16px;
    border-radius: 14px;
    white-space: normal;
}

.location-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.location-switch-header {
    display: grid;
    gap: 10px;
}

.location-switch-description {
    max-width: 520px;
    margin: -2px auto 0;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.location-switch-divider {
    height: 1px;
    margin: 2px 0 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 195, 255, 0.28), transparent);
}

.panel-card .location-switch-title {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
}

.location-limit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(124, 195, 255, 0.2);
    border-radius: 14px;
    background: rgba(124, 195, 255, 0.055);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.location-limit-note.is-ready {
    color: rgba(178, 218, 255, 0.95);
}

.location-limit-note.is-waiting {
    border-color: rgba(255, 194, 122, 0.22);
    background: rgba(255, 194, 122, 0.055);
}

.location-limit-note.is-vip {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(189, 222, 255, 0.96);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.22);
}

.location-vip-word {
    color: #8ad8ff;
    font-weight: 950;
}

body.corporate-employee-mode .location-limit-note {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 2px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

body.corporate-employee-mode .location-limit-note.is-waiting {
    background: transparent;
}

.location-vip-badge {
    min-height: 18px;
    padding: 0 7px;
    font-size: 9px;
}

.location-picker-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.location-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.location-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text);
    cursor: pointer;
    font: 800 15px var(--font);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.location-option:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(124, 195, 255, 0.42);
    background: rgba(124, 195, 255, 0.08);
}

body.corporate-employee-mode .location-option[data-corporate-server-switch] {
    border-color: rgba(147, 197, 253, 0.58);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(14, 165, 233, 0.2));
    box-shadow: 0 12px 34px rgba(59, 130, 246, 0.16);
    color: #f8fbff;
}

body.corporate-employee-mode .location-option[data-corporate-server-switch]:hover:not(:disabled) {
    border-color: rgba(191, 219, 254, 0.78);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.46), rgba(14, 165, 233, 0.28));
    box-shadow: 0 14px 38px rgba(59, 130, 246, 0.22);
}

.location-option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.location-after-note {
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(189, 222, 255, 0.96);
    font-weight: 820;
    line-height: 1.55;
    text-align: center;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.18);
}

body.corporate-employee-mode .location-after-note {
    max-width: 720px;
    margin: 16px auto 0;
    padding: 2px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(189, 222, 255, 0.96);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
    text-align: center;
}

.identity-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.identity-item {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px 62px 16px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.identity-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.identity-corner-icon {
    position: absolute;
    top: 16px;
    right: 16px;
}

.identity-corner-icon .provider-brand {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.identity-main strong,
.identity-main small {
    display: block;
}

.identity-main strong {
    line-height: 1.25;
}

.identity-provider-details {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    color: #9ed8ff;
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-main small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.35;
}

.identity-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.identity-status-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.identity-lock-note {
    min-width: 0;
    color: rgba(147, 160, 184, 0.68);
    font-size: 13px;
    line-height: 1.2;
}

.identity-action {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
}

.link-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.link-email-card {
    padding: 18px;
    border-radius: 18px;
}

.link-email-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.link-email-head strong {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

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

.security-email-actions .button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
}

.selector-block + .selector-block {
    margin-top: 14px;
}

.selector-row {
    margin-top: 10px;
}

.renewal-current-plan {
    margin: 0;
    color: var(--muted-strong);
    font-weight: 800;
    line-height: 1.45;
}

.renewal-current-line {
    display: block;
}

.renewal-current-line + .renewal-current-line {
    margin-top: 4px;
}

.renewal-current-line strong {
    display: inline;
    margin-left: 6px;
    padding: 0;
    color: #9fd0ff;
    background: none;
    border: 0;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.28);
}

.selector-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-radius: 18px;
    color: var(--muted-strong);
    padding: 12px 14px;
    cursor: pointer;
    min-width: 124px;
}

.selector-pill small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

.selector-pill.active {
    background: rgba(124, 195, 255, 0.12);
    border-color: rgba(124, 195, 255, 0.28);
    color: var(--text);
}

#renewal-method-selector .selector-pill,
#tariff-method-selector .selector-pill,
#gift-method-selector .selector-pill {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tariff-price-block {
    display: grid;
    gap: 10px;
}

.tariff-price-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.tariff-price-strip {
    margin-top: 2px;
    gap: 8px;
}

.tariff-price-card {
    display: flex;
    min-height: 58px;
    padding: 8px 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tariff-price-card strong {
    margin-top: 4px;
    color: #9fd0ff;
    font-size: 18px;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.2);
}

.tariff-price-note {
    margin: 10px 0 0;
}

.tariff-current-value {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 900;
}

.tariff-current-step {
    border-color: rgba(124, 195, 255, 0.38);
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 195, 255, 0.16), transparent 54%),
        rgba(124, 195, 255, 0.075);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 38px rgba(0, 0, 0, 0.18);
}

.tariff-current-step .selector-head {
    color: #b7ddff;
}

.tariff-current-step,
.tariff-select-step,
.tariff-method-step {
    text-align: center;
}

.tariff-current-step .selector-head,
.tariff-select-step .selector-head,
.tariff-method-step .selector-head {
    text-align: center;
}

.tariff-current-step .tariff-current-value,
.tariff-select-step .selector-row,
.tariff-method-step .selector-row {
    justify-content: center;
    text-align: center;
}

.tariff-change-rules {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.tariff-current-value strong,
.tariff-option-label {
    color: #9fd0ff;
    font-weight: 900;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.28);
}

.tariff-option {
    min-width: 156px;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
    padding: 10px 14px;
}

.tariff-option-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    min-height: 0;
}

.tariff-option.is-current {
    cursor: default;
    opacity: 0.82;
}

.tariff-option.is-unavailable {
    cursor: not-allowed;
    opacity: 0.66;
}

.tariff-option.is-current .tariff-option-label,
.tariff-option.is-unavailable .tariff-option-label {
    color: var(--muted-strong);
    text-shadow: none;
}

.tariff-option.is-current .tariff-option-note {
    color: #9fd0ff;
}

.tariff-option.is-unavailable .tariff-option-note {
    color: var(--muted);
}

.tariff-pay-step #tariff-preview-selection {
    display: block;
    margin-top: 6px;
}

#renewal-period-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.renewal-period-option {
    min-width: 0;
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
}

.renewal-period-option:hover,
.renewal-period-option.active {
    border-color: rgba(124, 195, 255, 0.42);
    background: rgba(124, 195, 255, 0.12);
}

.renewal-period-option span {
    color: #9fd0ff;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(124, 195, 255, 0.28);
}

.renewal-period-option strong {
    font-size: 22px;
    line-height: 1.1;
}

.renewal-discount {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.renewal-discount.is-soft {
    color: #d8f4ff;
    background: rgba(124, 195, 255, 0.14);
    border: 1px solid rgba(124, 195, 255, 0.22);
}

.renewal-discount.is-medium {
    color: #dfffe3;
    background: rgba(77, 218, 110, 0.16);
    border: 1px solid rgba(77, 218, 110, 0.28);
}

.renewal-discount.is-strong {
    color: #132114;
    background: linear-gradient(135deg, #a7ff82, #4dda6e);
    border: 1px solid rgba(167, 255, 130, 0.5);
}

.payment-preview {
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.preview-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.payment-runtime-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 18px;
    margin-top: 18px;
}

.payment-runtime-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.payment-qr-box {
    min-height: 240px;
    margin-top: 18px;
}

#payment-result-note,
#payment-method-note {
    margin-top: 18px;
}

.payment-history-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.compact-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.compact-list-item > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.compact-list-item strong,
.compact-list-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-list-item small {
    color: var(--muted);
    font-size: 13px;
}

.support-message-row {
    grid-template-columns: minmax(0, 1fr);
}

.support-message-row > span {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.support-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.support-attachment {
    display: inline-flex;
    max-width: 180px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.support-attachment img {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
}

.help-support-layout {
    display: grid;
    gap: 10px;
}

.help-faq-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.help-faq-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.help-faq-disclosure {
    display: grid;
    gap: 10px;
}

.help-faq-disclosure summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(124, 195, 255, 0.22);
    border-radius: 13px;
    background: rgba(124, 195, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}

.help-faq-disclosure summary::-webkit-details-marker {
    display: none;
}

.help-faq-disclosure summary:hover,
.help-faq-disclosure summary:focus-visible {
    border-color: rgba(124, 195, 255, 0.4);
    background: rgba(124, 195, 255, 0.13);
    outline: none;
}

.faq-toggle-close,
.help-faq-disclosure[open] .faq-toggle-open {
    display: none;
}

.help-faq-disclosure[open] .faq-toggle-close {
    display: inline;
}

.faq-list.support-faq-list {
    gap: 8px;
    margin-top: 4px;
}

.support-faq-list .faq-item {
    border-radius: 14px;
}

.support-faq-list .faq-item summary {
    min-height: 42px;
    padding: 10px 12px;
    gap: 10px;
    font-size: 14px;
    line-height: 1.25;
}

.support-faq-list .faq-item summary::after {
    font-size: 19px;
}

.support-faq-list .faq-answer {
    padding: 0 12px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.support-chat-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px 14px;
}

.support-chat-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 20px;
}

.support-chat-header .support-context-chip {
    display: none !important;
}

.support-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 6px;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.support-composer textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    outline: none;
    min-height: 38px;
    max-height: 140px;
    padding: 8px 10px;
    line-height: 1.45;
    resize: vertical;
}

.support-composer textarea:focus {
    border-color: rgba(124, 195, 255, 0.48);
    box-shadow: 0 0 0 3px rgba(124, 195, 255, 0.12);
}

.support-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
}

.support-send-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.support-thread {
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 280px;
    max-height: 460px;
    overflow: auto;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    background: rgba(5, 10, 18, 0.18);
}

.support-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 10px;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

.support-message-row {
    display: flex;
    min-width: 0;
}

.support-message-user {
    justify-content: flex-end;
}

.support-message-assistant,
.support-message-operator,
.support-message-system {
    justify-content: flex-start;
}

.support-message-bubble {
    display: grid;
    gap: 5px;
    max-width: min(74%, 680px);
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
}

.support-message-user .support-message-bubble {
    border-color: rgba(124, 195, 255, 0.32);
    border-bottom-right-radius: 8px;
    background: rgba(124, 195, 255, 0.13);
}

.support-message-assistant .support-message-bubble,
.support-message-operator .support-message-bubble {
    border-bottom-left-radius: 8px;
}

.support-message-system .support-message-bubble {
    max-width: 100%;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
}

.support-message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
    line-height: 1.1;
}

.support-message-meta strong {
    font-size: 11px;
    font-weight: 800;
}

.support-message-meta small {
    color: inherit;
    cursor: help;
    font-size: 11px;
    white-space: nowrap;
}

.support-message-body {
    overflow-wrap: anywhere;
    color: var(--text);
    line-height: 1.45;
    white-space: pre-wrap;
}

.support-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.compact-list-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gift-list-item {
    transition: border-color 0.18s ease, background 0.18s ease;
}

.gift-list-item.pending {
    border-color: rgba(124, 195, 255, 0.18);
}

.gift-list-item.activated {
    border-color: rgba(73, 214, 151, 0.16);
    background: rgba(73, 214, 151, 0.035);
}

.gift-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.gift-list-meta small {
    min-width: 0;
}

.gift-status-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.gift-status-pill.pending {
    color: #a8d8ff;
    border-color: rgba(124, 195, 255, 0.34);
    background: rgba(124, 195, 255, 0.08);
}

.gift-status-pill.activated {
    color: #8fe3ba;
    border-color: rgba(73, 214, 151, 0.34);
    background: rgba(73, 214, 151, 0.08);
}

.gift-status-pill.expired {
    color: #ffb7bf;
    border-color: rgba(255, 127, 141, 0.34);
    background: rgba(255, 127, 141, 0.08);
}

.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.compact-stats-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 76px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.compact-stats-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.compact-stats-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 19px;
    line-height: 1.1;
}

.referral-bonus-note {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(124, 195, 255, 0.24);
    border-radius: 18px;
    background: rgba(124, 195, 255, 0.08);
    color: var(--muted-strong);
    line-height: 1.45;
}

.referral-bonus-note strong {
    color: #a9dcff;
}

.referral-link-card,
.gift-incoming-card {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(124, 195, 255, 0.24);
    border-radius: 20px;
    background: rgba(124, 195, 255, 0.07);
}

.referral-link-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.referral-link-card > span,
.gift-incoming-card p {
    margin: 0;
    color: var(--muted);
}

.referral-link-card > strong {
    grid-column: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.referral-link-card .button-row {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
}

.referral-link-card .button {
    width: fit-content;
    min-width: min(260px, 100%);
}

.referral-list-details,
.gift-list-details {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.referral-list-details summary,
.gift-list-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.gift-list-details summary {
    padding: 12px 15px;
    font-size: 16px;
}

.referral-list-details summary::-webkit-details-marker,
.gift-list-details summary::-webkit-details-marker {
    display: none;
}

.referral-list-details summary::after,
.gift-list-details summary::after {
    content: "⌄";
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}

.referral-list-details[open] summary::after,
.gift-list-details[open] summary::after {
    transform: rotate(180deg);
}

.referral-list-details .compact-list,
.gift-list-details .compact-list {
    margin: 0;
    padding: 0 14px 14px;
}

.gift-intro {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    margin-bottom: 14px;
}

.gift-intro h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.gift-intro p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.gift-panel #gift-duration-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gift-duration-pill {
    min-height: 86px;
    padding: 12px;
}

.gift-panel .selector-row {
    align-items: stretch;
}

.gift-panel .selector-pill {
    justify-content: center;
    text-align: center;
}

.gift-panel .payment-preview > div:first-child {
    display: grid;
    gap: 5px;
}

.gift-panel .payment-preview .preview-label {
    display: block;
}

.notification-item.is-unread {
    border-color: rgba(124, 195, 255, 0.34);
    background: rgba(124, 195, 255, 0.07);
}

.notification-item {
    cursor: pointer;
    align-items: flex-start;
}

.notification-item:focus-visible {
    outline: 2px solid rgba(124, 195, 255, 0.72);
    outline-offset: 2px;
}

.compact-list-item small.notification-body {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-list-item.notification-item.is-expanded small.notification-body {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.compact-list-item.notification-item.is-expanded {
    border-color: rgba(124, 195, 255, 0.28);
    background: rgba(124, 195, 255, 0.045);
}

.notifications-panel .payments-title-row {
    align-items: center;
}

.notifications-panel .payments-title-row h2 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
}

.payments-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.payments-title-row h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.payments-title-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.payments-paid-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.payments-paid-filter input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.payment-history-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.payment-history-head {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.payment-history-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.payment-history-title-row > strong {
    min-width: 0;
    display: block;
    font-size: 16px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-history-date {
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
}

.payment-id-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.payment-id-label,
.payment-meta-line small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.payment-id-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.payment-meta-line span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.payment-meta-line strong {
    font-size: 16px;
}

.payment-amount-highlight {
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    color: #a9dcff;
    background: rgba(124, 195, 255, 0.12);
}

.flow-panel {
    display: grid;
    gap: 14px;
}

.flow-panel .subcopy {
    margin-top: 0;
}

.flow-step {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.flow-step .inline-note {
    margin-top: 10px;
}

.final-step {
    border-color: rgba(124, 195, 255, 0.2);
    background: rgba(124, 195, 255, 0.06);
}

.renewal-pay-step {
    align-items: flex-start;
}

.renewal-pay-summary strong {
    display: block;
    margin-top: 6px;
}

.renewal-pay-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: min(640px, 100%);
}

.renewal-pay-actions > .button,
.renewal-pay-actions > .renewal-copy-action {
    flex: 1 1 0;
}

.renewal-copy-action {
    display: grid;
    gap: 6px;
}

.renewal-copy-action .button {
    width: 100%;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.renewal-copy-action .button.is-copy-feedback {
    font-size: 15px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.renewal-copy-action small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.payment-id-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.payment-id-value > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-id-short {
    display: none;
}

.text-link {
    color: var(--primary);
}

.text-link:hover {
    color: #a9dcff;
}

.icon-action-button,
.icon-copy-button,
.icon-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    cursor: pointer;
    flex: 0 0 auto;
    font-weight: 900;
    text-decoration: none;
}

.icon-action-button {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 18px;
}

.icon-copy-button.is-copy-feedback {
    color: #c8ffe6;
    border-color: rgba(95, 222, 160, 0.5);
    background: rgba(95, 222, 160, 0.12);
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.faq-item {
    border-radius: 18px;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "›";
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
    transform: rotate(90deg);
}

.faq-question {
    min-width: 0;
}

.faq-answer {
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.faq-answer strong {
    color: var(--text);
}

.faq-answer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(124, 195, 255, 0.5);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
    color: var(--text);
    text-decoration-color: currentColor;
}

@media (max-width: 1100px) {
    .auth-layout,
    .overview-grid,
    .security-grid,
    .help-grid,
    .connection-grid,
    .payment-runtime-grid,
    .metric-row,
    .qr-config-layout,
    .connection-manual-card {
        grid-template-columns: 1fr;
    }

}

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

    .guest-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .guest-showcase {
        max-width: none;
        justify-self: stretch;
        padding-top: 0;
    }

    .guest-layout .auth-card {
        position: relative;
        top: auto;
        height: auto;
    }
}

@media (max-width: 560px) {
    .compact-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .compact-stats-grid > div {
        min-height: 66px;
        padding: 10px 6px;
        border-radius: 14px;
    }

    .compact-stats-grid span {
        font-size: 10px;
    }

    .compact-stats-grid strong {
        font-size: clamp(14px, 3.6vw, 17px);
        white-space: nowrap;
    }

    .referral-link-card {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .referral-link-card > strong,
    .referral-link-card .button-row {
        grid-column: 1;
    }

    .referral-link-card .button-row {
        grid-row: auto;
        justify-content: center;
        margin-top: 4px;
    }

    .referral-link-card .button {
        width: min(360px, 100%);
    }

    .devices-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .devices-intro .button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .support-chat-header {
        flex-direction: column;
        align-items: stretch;
    }

    .support-chat-card {
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        height: calc(100svh - 16px);
        min-height: calc(100svh - 16px);
    }

    @supports (height: 100dvh) {
        .support-chat-card {
            height: calc(100dvh - 16px);
            min-height: calc(100dvh - 16px);
        }
    }

    .support-thread {
        min-height: 0;
        max-height: none;
    }

    .support-message-bubble {
        max-width: 92%;
    }

    .shell {
        padding: 8px 14px 14px;
    }

    .guest-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        justify-items: stretch;
        gap: 10px;
        min-height: 34px;
        margin-bottom: 6px;
    }

    .guest-nav {
        display: flex;
        justify-self: end;
        gap: 8px;
        font-size: 13px;
        line-height: 1;
    }

    .guest-mobile-login {
        display: none;
    }

    .guest-brand {
        justify-self: start;
    }

    .business-login-link,
    .guest-contact-link {
        justify-content: center;
        min-height: 34px;
        border: 1px solid rgba(124, 195, 255, 0.22);
        border-radius: 10px;
        background: rgba(124, 195, 255, 0.08);
        color: #d4e6ff;
    }

    .business-login-link {
        padding: 0 10px;
        gap: 6px;
    }

    .business-label-full {
        display: none;
    }

    .business-label-short {
        display: inline;
    }

    .guest-contact-link {
        width: 34px;
        padding: 0;
    }

    .guest-contact-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .business-login-link svg,
    .guest-contact-link svg {
        width: 17px;
        height: 17px;
    }

    .guest-brand .auth-brand-logo {
        width: 30px;
        height: 30px;
    }

    .guest-brand strong {
        font-size: 17px;
    }

    .guest-login-link {
        min-height: 34px;
        padding: 0;
        font-size: 13px;
    }

    .guest-layout {
        gap: 11px;
    }

    .guest-showcase {
        gap: 14px;
        padding: 12px;
        border-radius: 16px;
    }

    .guest-payment-card {
        flex-direction: row;
        align-items: center;
        gap: 13px;
    }

    .guest-hero h1 {
        font-size: 23px;
        line-height: 1.04;
    }

    .guest-hero p {
        max-width: 340px;
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.45;
    }

    .guest-feature-grid {
        gap: 8px;
    }

    .guest-feature-card {
        min-height: 44px;
        gap: 10px;
        padding: 8px 11px;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.15;
    }

    .guest-feature-grid .guest-feature-card:nth-child(n + 3) {
        min-height: 40px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .guest-feature-icon {
        width: 24px;
        height: 24px;
    }

    .guest-feature-icon svg {
        width: 23px;
        height: 23px;
    }

    .guest-section-head h2 {
        font-size: 22px;
    }

    .guest-discount-badge {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .guest-tariff-grid,
    .tariff-price-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .guest-tariff-card,
    .tariff-price-card {
        border-radius: 10px;
    }

    .guest-tariff-card {
        min-height: 60px;
        padding: 7px 6px;
    }

    .tariff-price-card {
        min-height: 52px;
        padding: 6px 5px;
    }

    .guest-tariff-card span,
    .tariff-price-card span {
        font-size: 9px;
    }

    .guest-tariff-card strong,
    .tariff-price-card strong {
        margin-top: 5px;
        font-size: 16px;
    }

    .tariff-price-card strong {
        margin-top: 3px;
        font-size: 15px;
    }

    .guest-layout .auth-card {
        padding: 10px 14px 14px;
        border-radius: 16px;
    }

    .guest-layout .auth-intro h1 {
        font-size: 18px;
        text-align: center;
    }

    .guest-layout .auth-intro p {
        font-size: 12px;
        text-align: center;
    }

    .guest-layout .provider-grid {
        gap: 8px;
        margin-top: 8px;
    }

    .guest-layout .provider-button {
        min-height: 48px;
        padding: 9px 12px;
    }

    .guest-layout .email-auth-card {
        padding: 9px;
    }

    .guest-layout .auth-section + .email-auth-section {
        margin-top: 8px;
    }

    .guest-layout .email-section-head {
        min-height: 34px;
        margin-bottom: 8px;
        padding: 0;
    }

    .guest-layout .email-request-row {
        --guest-email-action-height: 42px;
        --guest-email-action-gap: 8px;
        --guest-email-button-width: 112px;
    }

    .guest-layout .button-row .button {
        padding: 0 10px;
    }

    .guest-layout .captcha-widget-host cap-widget::part(label) {
        font-size: 15px;
    }

    .loading-card,
    .hero-card,
    .auth-card,
    .panel-card,
    .tab-rail {
        padding: 18px;
    }

    .cabinet-topbar,
    .identity-item,
    .detail-row,
    .payment-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    #renewal-period-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-panel #gift-duration-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .renewal-period-option {
        min-height: 86px;
    }

    .renewal-pay-actions,
    .renewal-pay-actions .button {
        width: 100%;
    }

    .renewal-pay-actions {
        display: grid;
        min-width: 0;
    }

    .renewal-copy-action .button.is-copy-feedback {
        font-size: 13px;
    }

    .renewal-copy-action .button {
        font-size: 15px;
    }

    #tariff-limit-selector {
        display: grid;
        gap: 10px;
    }

    .tariff-option {
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 0;
        justify-content: stretch;
        border: 0;
        background: transparent;
        display: grid;
        grid-template-columns: minmax(156px, 0.9fr) minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        text-align: left;
    }

    .tariff-option.active {
        background: transparent;
        border-color: transparent;
    }

    .tariff-option-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 58px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.04);
        font-size: 18px;
        font-weight: 900;
        line-height: 1.15;
    }

    .tariff-option.active .tariff-option-label {
        border-color: rgba(124, 195, 255, 0.42);
        background: rgba(124, 195, 255, 0.12);
    }

    .tariff-option.is-current .tariff-option-label,
    .tariff-option.is-unavailable .tariff-option-label {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.025);
    }

    .tariff-option-note {
        min-height: 0;
        margin-top: 0;
        text-align: left;
        font-size: 14px;
    }

    .screen {
        max-width: 560px;
    }

    .tab-rail {
        top: 76px;
        right: 14px;
        bottom: auto;
        left: auto;
        width: min(268px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 92px);
        max-height: calc(100dvh - 92px);
        padding: 10px;
        border-radius: 22px;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top right;
    }

    .cabinet-layout.menu-open .tab-rail {
        transform: translateY(0) scale(1);
    }

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

    .tab-button {
        padding: 10px 11px;
    }

    .menu-action {
        min-height: 56px;
    }

    .menu-list {
        gap: 4px;
    }

    .menu-row {
        min-height: 41px;
        font-size: 13px;
        grid-template-columns: 27px minmax(0, 1fr) 10px;
        gap: 7px;
    }

    .menu-row-icon {
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    .cabinet-main {
        --sticky-route-offset: 84px;
    }

    #cabinet-global-status:not(.hidden) {
        top: calc(env(safe-area-inset-top, 0px) + 84px);
        max-width: calc(100vw - 28px);
        padding: 9px 12px;
    }

    .cabinet-topbar {
        position: sticky;
        top: 0;
        z-index: 26;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand-title actions"
            "brand-meta brand-meta";
        align-items: start;
        row-gap: 2px;
        margin: 0 0 10px;
        padding: 6px 8px 7px;
        border-radius: 0;
    }

    .cabinet-topbar::before {
        height: 84px;
        background:
            radial-gradient(circle at 84% 0%, rgba(124, 195, 255, 0.08), transparent 34%),
            linear-gradient(180deg, rgba(6, 11, 19, 0.92) 0%, rgba(6, 11, 19, 0.62) 56%, transparent 100%);
        backdrop-filter: blur(12px) saturate(115%);
        -webkit-mask-image: none;
        mask-image: none;
    }

    .cabinet-brand {
        display: contents;
    }

    .cabinet-brand > div {
        display: contents;
    }

    .cabinet-title-row {
        display: flex;
        grid-area: brand-meta;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        gap: 6px;
        overflow: hidden;
    }

    .cabinet-topbar h1 {
        grid-area: brand-title;
        font-size: 26px;
        line-height: 1.08;
    }

    .cabinet-user-title {
        display: block;
        flex: 0 1 auto;
        max-width: min(150px, 36vw);
        min-width: 36px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.2;
    }

    .cabinet-vip-badge,
    .cabinet-corporate-badge {
        max-width: min(150px, 42vw);
        min-height: 17px;
        padding: 0 6px;
        overflow: hidden;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cabinet-vip-badge span,
    .cabinet-corporate-badge span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .route-toolbar {
        top: var(--sticky-route-offset);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
    }

    .route-toolbar > div {
        text-align: right;
        align-self: center;
    }

    .route-toolbar > div span {
        display: none;
    }

    .route-toolbar > div strong {
        font-size: clamp(13px, 3.45vw, 15px);
        line-height: 1.1;
    }

    .route-back-button {
        padding: 9px 11px;
        font-size: 14px;
        line-height: 1.1;
    }

    .route-back-icon {
        width: 15px;
        height: 15px;
    }

    .topbar-actions {
        grid-area: actions;
        align-self: start;
        width: auto;
        margin-top: -1px;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    .account-stamp {
        width: auto;
        min-width: auto;
        min-height: 38px;
        padding: 5px 9px;
        border-radius: 999px;
    }

    .account-stamp strong {
        margin-top: 0;
        font-size: 12px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
        border-radius: 16px;
    }

    .connection-step-card {
        padding: 16px;
    }

    .connection-step-card h2 {
        font-size: 22px;
    }

    .connection-platform-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        margin-top: 9px;
    }

    .connection-step-lead {
        margin-top: 12px;
        font-size: 16px;
    }

    .platform-label-full {
        display: none;
    }

    .platform-label-short {
        display: inline;
    }

    .download-grid.compact {
        grid-template-columns: 1fr;
    }

    .download-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 54px;
        padding: 10px 10px 10px 14px;
    }

    .connection-manual-card {
        gap: 12px;
    }

    .location-summary-card {
        align-items: center;
        gap: 8px 10px;
        padding: 14px;
    }

    .location-summary-card .location-current-label {
        font-size: 13px;
        line-height: 1.25;
    }

    .location-summary-card strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .location-current-server-switch {
        width: 100%;
        margin-left: 0;
    }

    .panel-card .location-switch-title {
        font-size: 19px;
    }

    .location-options {
        grid-template-columns: 1fr;
    }

    .connection-qr-card .qr-box {
        min-height: 0;
    }

    .button,
    .provider-button {
        width: 100%;
    }

    .download-card .button {
        width: auto;
        min-width: 104px;
        min-height: 42px;
        flex: 0 0 auto;
        padding: 0 12px;
        border-radius: 13px;
    }

    .download-actions {
        width: auto;
        margin-left: 0;
        justify-content: flex-end;
        gap: 6px;
    }

    .download-copy-link {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .connection-app-buttons .button {
        width: auto;
        flex: 1 1 calc(33.333% - 8px);
        min-width: 0;
    }

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

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

    .security-reauth-note {
        grid-template-columns: 1fr;
    }

    .security-reauth-note .button {
        width: 100%;
    }

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

    .home-primary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-primary-actions .button {
        min-height: 46px;
        padding: 0 12px;
        font-size: 14px;
    }

    .overview-action-icon {
        left: 16px;
        width: 17px;
        height: 17px;
    }

    .overview-action-label {
        max-width: calc(100% - 44px);
    }

    .subscription-hero-card,
    .subscription-hero-content {
        min-height: 224px;
    }

    .subscription-hero-content {
        padding: 18px;
    }

    .subscription-logo {
        width: 124px;
        height: 124px;
        top: 18px;
        right: 16px;
    }

    .subscription-hero-card h2 {
        margin-top: 5px;
        padding-right: 99px;
        font-size: clamp(24px, 5.75vw, 29px);
    }

    .subscription-hero-card.subscription-expired h2 {
        margin-top: 18px;
    }

    .subscription-hero-card .subscription-remaining-label {
        margin-top: 17px;
        padding-right: 99px;
        font-size: 16px;
    }

    .subscription-metric {
        padding: 14px 8px 0;
    }

    .payments-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
    }

    .payments-title-row h2 {
        font-size: 20px;
        line-height: 1.15;
    }

    .payments-title-actions {
        display: contents;
    }

    .payments-paid-filter {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        min-height: 22px;
        font-size: 12px;
        gap: 7px;
    }

    .payments-paid-filter input {
        width: 14px;
        height: 14px;
    }

    #payments-refresh {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .payment-id-value {
        align-self: stretch;
        justify-content: flex-start;
        text-align: left;
    }

    .payment-id-full {
        display: none;
    }

    .payment-id-short {
        display: inline;
    }

    .payment-history-title-row > strong {
        font-size: 15px;
    }

    .payment-history-title-row .badge {
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {
    .help-faq-card,
    .support-chat-card {
        padding: 12px;
    }

    .support-thread {
        padding: 8px 6px;
    }

    .support-message-bubble {
        max-width: 88%;
    }
}

@media (max-width: 380px) {
    .shell {
        padding: 8px;
    }

    .screen,
    #screen-cabinet,
    .cabinet-layout {
        max-width: none;
    }

    .guest-screen {
        max-width: none;
    }

    .guest-layout {
        gap: 10px;
    }

    .guest-showcase {
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
    }

    .guest-header {
        min-height: 28px;
        margin-bottom: 2px;
        gap: 8px;
    }

    .guest-nav {
        gap: 6px;
        font-size: 12px;
    }

    .business-login-link {
        min-height: 32px;
        padding: 0 8px;
    }

    .guest-contact-link {
        width: 32px;
        min-height: 32px;
    }

    .guest-hero h1 {
        font-size: clamp(19px, 6.35vw, 21px);
        line-height: 1.08;
    }

    .guest-hero p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.35;
    }

    .guest-feature-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .guest-feature-card,
    .guest-feature-grid .guest-feature-card:nth-child(n + 3) {
        min-height: 40px;
        padding: 7px 10px;
    }

    .guest-section-head {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 6px;
    }

    .guest-section-head h2 {
        font-size: 20px;
    }

    .guest-discount-badge {
        max-width: 100%;
        min-height: 24px;
        justify-content: flex-start;
        padding: 4px 8px;
        border-radius: 10px;
        font-size: 10px;
        white-space: normal;
    }

    .guest-tariff-grid,
    .tariff-price-strip {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .guest-tariff-card,
    .tariff-price-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 44px;
        padding: 8px 10px;
        column-gap: 8px;
        text-align: left;
    }

    .guest-tariff-card strong,
    .tariff-price-card strong {
        justify-self: end;
        margin-top: 0;
        font-size: 16px;
    }

    .guest-layout .auth-card {
        padding: 10px;
    }

    .guest-layout .auth-intro {
        padding: 6px 8px;
    }

    .guest-layout .auth-intro h1 {
        font-size: 17px;
    }

    .guest-layout .provider-button {
        min-height: 44px;
        padding: 8px 10px;
    }

    .guest-layout .provider-brand {
        width: 32px;
        height: 32px;
    }

    .guest-layout .provider-button strong {
        font-size: 14px;
    }

    .guest-layout .email-request-row {
        --guest-email-action-height: 40px;
        grid-template-columns: 1fr;
    }

    .guest-layout #auth-email-captcha-panel[hidden] + .button-row {
        grid-column: auto;
    }

    .loading-card,
    .hero-card,
    .auth-card,
    .panel-card,
    .tab-rail {
        padding: 14px;
        border-radius: 18px;
    }

    .panel-card h2 {
        font-size: 22px;
        line-height: 1.15;
    }

    .card-topline,
    .hero-topline {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cabinet-topbar {
        margin-bottom: 8px;
        padding: 6px 4px 7px;
    }

    .cabinet-topbar h1 {
        font-size: 22px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .account-stamp {
        min-height: 36px;
        padding: 5px 8px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .route-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
    }

    .route-toolbar > div {
        text-align: left;
    }

    .route-back-button {
        width: 100%;
    }

    .home-primary-actions,
    .subscription-metrics,
    .security-email-actions,
    .payment-meta-line,
    .compact-list-item,
    .payment-id-row,
    .payment-history-title-row,
    .referral-link-card {
        grid-template-columns: 1fr;
    }

    .home-primary-actions .button {
        justify-content: center;
        min-height: 44px;
    }

    .overview-action-label {
        max-width: calc(100% - 48px);
    }

    .subscription-hero-card,
    .subscription-hero-content {
        min-height: auto;
    }

    .subscription-hero-content {
        padding: 14px;
    }

    .subscription-logo {
        top: 12px;
        right: 12px;
        width: 82px;
        height: 82px;
        opacity: 0.52;
    }

    .subscription-hero-card h2,
    .subscription-hero-card .subscription-remaining-label {
        padding-right: 72px;
    }

    .subscription-hero-card h2 {
        font-size: 22px;
    }

    .subscription-hero-card .subscription-remaining-label {
        font-size: 14px;
    }

    .subscription-metrics {
        gap: 8px;
        margin-top: 16px;
        border-top: 0;
    }

    .subscription-metric,
    .subscription-metric + .subscription-metric {
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .compact-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .compact-stats-grid > div {
        min-height: 54px;
        padding: 10px;
    }

    .compact-stats-grid strong {
        font-size: 17px;
    }

    .selector-row,
    .button-row {
        gap: 8px;
    }

    .selector-pill {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    #renewal-period-selector,
    .gift-panel #gift-duration-selector {
        grid-template-columns: 1fr;
    }

    .renewal-period-option {
        min-height: 68px;
    }

    .tariff-option {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
    }

    .tariff-option-label {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .tariff-option-note {
        text-align: center;
        font-size: 13px;
    }

    .payment-preview {
        padding: 14px;
    }

    .renewal-pay-actions {
        min-width: 0;
    }

    .renewal-copy-action .button.is-copy-feedback {
        white-space: normal;
    }

    .payments-title-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }

    .payments-title-actions {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .payments-paid-filter,
    #payments-refresh {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .notifications-panel .payments-title-row h2 {
        white-space: normal;
    }

    .payment-id-actions,
    .compact-list-actions {
        justify-self: start;
    }

    .payment-id-label {
        display: none;
    }

    .download-card {
        grid-template-columns: 1fr;
    }

    .download-actions {
        width: 100%;
        justify-content: stretch;
    }

    .download-card .button {
        width: 100%;
    }

    .connection-platform-row,
    .connection-manual-card,
    .qr-config-layout {
        grid-template-columns: 1fr;
    }

    .connection-app-buttons .button {
        flex-basis: 100%;
    }

    .connection-manual-copy .button {
        white-space: normal;
    }

    .location-summary-card {
        gap: 8px;
        padding: 12px;
    }

    .identity-item {
        padding: 14px;
    }

    .identity-corner-icon {
        position: static;
        justify-self: start;
    }

    .identity-control-row {
        flex-wrap: wrap;
    }

    .button.compact.small-action {
        white-space: normal;
    }

    .faq-item summary {
        padding: 14px;
    }
}
