:root {
    color-scheme: dark;
    --bg: #080d17;
    --bg-soft: #0d1422;
    --surface: #121b2c;
    --surface-2: #182338;
    --surface-3: #1f2d45;
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text: #f1f5ff;
    --text-soft: #cbd5e1;
    --muted: #8ea0ba;
    --purple: #8b5cf6;
    --purple-soft: rgba(139, 92, 246, 0.16);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.14);
    --orange: #f59e0b;
    --orange-soft: rgba(245, 158, 11, 0.14);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.14);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: #b9a5ff;
    text-decoration: none;
}

.hidden,
[hidden] {
    display: none !important;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
}

.boot {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    overflow: hidden;
    text-align: center;
}

.boot__glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 68%);
    filter: blur(10px);
}

.boot__logo {
    position: relative;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.boot__logo span {
    color: #a78bfa;
}

.boot__spinner,
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner--small {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border-width: 2px;
}

.boot__hint {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(86px + var(--safe-bottom));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: calc(14px + var(--safe-top)) 18px 14px;
    background: rgba(8, 13, 23, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(18px);
}

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

.topbar__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar__logo {
    display: block;
    width: auto;
    height: 28px;
    filter: brightness(0) invert(1);
}

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

.topbar__account-text {
    min-width: 0;
    text-align: right;
}

.topbar__account-name {
    overflow: hidden;
    max-width: 180px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__account-role {
    overflow: hidden;
    max-width: 180px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.06em;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.brand__text {
    min-width: 0;
}

.brand__title {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__subtitle {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-2);
    color: #ddd6fe;
    font-size: 13px;
    font-weight: 700;
}

.main {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 20px 16px 28px;
}

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

.eyebrow {
    margin-bottom: 7px;
    color: #a78bfa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.title {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b9a5ff;
    font-size: 12px;
    font-weight: 650;
}

.section {
    margin-top: 22px;
}

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

.section__title {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__link {
    border: 0;
    background: transparent;
    color: #b9a5ff;
    font-size: 12px;
    font-weight: 600;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(24, 35, 56, 0.95), rgba(15, 23, 39, 0.96));
    box-shadow: var(--shadow);
}

.card--flat {
    background: var(--surface);
    box-shadow: none;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero-card::after {
    position: absolute;
    top: -90px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 70%);
    content: "";
    pointer-events: none;
}

.hero-card__label {
    position: relative;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card__title {
    position: relative;
    margin: 8px 0 6px;
    color: var(--text);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.hero-card__text {
    position: relative;
    max-width: 46ch;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.stat__label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.stat__value {
    margin-top: 6px;
    color: var(--text);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat__hint {
    margin-top: 5px;
    color: #7f91aa;
    font-size: 10px;
}

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

.quick {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    text-align: left;
}

.quick__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--purple-soft);
    color: #c4b5fd;
    font-size: 18px;
}

.quick__title {
    display: block;
    font-size: 13px;
    font-weight: 650;
}

.quick__hint {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.quick__hint--new {
    color: #f87171;
    font-weight: 650;
}

.announcement-modal__meta {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.announcement-modal__title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.announcement-body {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.announcement-body p {
    margin: 0 0 10px;
}

.announcement-body p:last-child {
    margin-bottom: 0;
}

.announcement-body a {
    color: #b9a5ff;
    text-decoration: underline;
}

.trial-card {
    padding: 15px;
}

.trial-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.trial-card__label {
    color: var(--muted);
    font-size: 12px;
}

.trial-card__value {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
}

.progress {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
}

.progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width 0.3s ease;
}

.progress--green .progress__bar {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.progress--orange .progress__bar {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-card,
.server-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.client-card:active,
.server-card:active,
.quick:active,
.btn:active {
    transform: scale(0.995);
}

.client-card__top,
.server-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.client-card__name,
.server-card__name {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-card__id {
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.01em;
}

.client-card__meta,
.server-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.client-card__meta strong,
.server-card__meta strong {
    color: var(--text-soft);
    font-weight: 600;
}

.client-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge--ok {
    background: var(--green-soft);
    color: #86efac;
}

.badge--muted {
    background: rgba(148, 163, 184, 0.1);
    color: #a8b6ca;
}

.badge--warn {
    background: var(--orange-soft);
    color: #fcd34d;
}

.badge--danger {
    background: var(--red-soft);
    color: #fca5a5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn--primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.24);
}

.btn__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.ui-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.btn--ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--text-soft);
}

.btn--danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.btn--small {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
}

.btn--block {
    width: 100%;
}

.btn:disabled {
    cursor: wait;
    opacity: 0.55;
}

.search {
    position: relative;
    margin-bottom: 12px;
}

.search input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
}

.search input:focus {
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    font-size: 16px;
    transform: translateY(-50%);
}

.empty {
    padding: 30px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.empty__title {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
}

.empty__text {
    max-width: 34ch;
    margin: 6px auto 0;
    font-size: 12px;
    line-height: 1.5;
}

.skeleton {
    overflow: hidden;
    min-height: 84px;
    border-radius: var(--radius-sm);
    background: linear-gradient(100deg, var(--surface) 20%, var(--surface-2) 40%, var(--surface) 60%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.password-field {
    position: relative;
}

.password-field .input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8797ae;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #ffffff;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.8);
    outline-offset: 1px;
}

.password-toggle .ui-icon {
    width: 18px;
    height: 18px;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.textarea {
    min-height: 96px;
    resize: vertical;
}

.form__error {
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    background: var(--red-soft);
    color: #fecaca;
    font-size: 12px;
    line-height: 1.45;
}

.form__notice {
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    font-size: 12px;
    line-height: 1.45;
}

.auth {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
}

.auth__brand-logo {
    display: block;
    width: min(200px, 62vw);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.auth-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-card__brand {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.auth-card {
    width: min(100%, 440px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(24, 35, 56, 0.98), rgba(10, 16, 28, 0.98));
    box-shadow: var(--shadow);
}

.auth-card__logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.auth-card__text {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-card__footer {
    margin-top: 18px;
    color: #7f91aa;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.auth-card__link {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #b9a5ff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.auth-card__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b9a5ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.auth-card__back:hover {
    color: #ffffff;
}

.tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 10px calc(8px + var(--safe-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(8, 13, 23, 0.94);
    backdrop-filter: blur(20px);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6f819a;
    font-size: 9px;
    font-weight: 600;
}

.tab__icon {
    font-size: 19px;
    line-height: 1;
}

.tab.is-active {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

.detail-hero {
    padding: 18px;
}

.detail-hero__name {
    margin: 8px 0 4px;
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.detail-hero__id {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.detail-item {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8, 13, 23, 0.35);
}

.detail-item__label {
    color: var(--muted);
    font-size: 10px;
}

.detail-item__value {
    overflow-wrap: anywhere;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.list-item__title {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.list-item__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.list-item--menu {
    align-items: center;
    text-align: left;
}

.list-item__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: var(--purple-soft);
    color: #c4b5fd;
}

.list-item__icon .ui-icon {
    width: 17px;
    height: 17px;
}

.list-item__body {
    min-width: 0;
    flex: 1;
}

.list-item__body .list-item__title {
    display: block;
}

.list-item__body .list-item__meta {
    display: block;
    overflow: hidden;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.list-item__trailing {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #7285a0;
}

.message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message--mine {
    align-self: flex-end;
    background: rgba(124, 58, 237, 0.3);
    color: #ede9fe;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 15, 0.7);
    backdrop-filter: blur(4px);
}

.modal__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: 88vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: sheet-in 0.2s ease-out;
}

@keyframes sheet-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

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

.modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 740;
    letter-spacing: -0.03em;
}

.modal__close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 16px;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.code {
    overflow: auto;
    max-height: 40vh;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #050911;
    color: #c7d2fe;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: calc(94px + var(--safe-bottom));
    left: 16px;
    z-index: 80;
    max-width: 420px;
    margin: 0 auto;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: #3f1418;
    color: #fecaca;
}

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

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

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

.small {
    font-size: 11px;
}

@media (min-width: 680px) {
    .main {
        padding-right: 24px;
        padding-left: 24px;
    }

    .stat-grid,
    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

/* Landing (light, matches panel-v3 web) */
body.landing-mode {
    background: #ffffff;
    color: #17172b;
}

.landing {
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    color: #17172b;
}

.landing a {
    color: #4b3fd4;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: calc(10px + var(--safe-top)) 18px 10px;
    border-bottom: 1px solid #ececf3;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
}

.landing-header__brand img {
    display: block;
    width: auto;
    height: 32px;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.landing-nav-link {
    display: none;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #4d4d63;
    font-size: 11px;
    font-weight: 650;
}

.landing-lang {
    padding: 6px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5b5b70;
    font-size: 11px;
    font-weight: 700;
}

.landing-lang.is-active {
    background: #f0efff;
    color: #4b3fd4;
}

.landing-login {
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #4b3fd4;
    border-radius: 9px;
    background: #ffffff;
    color: #4b3fd4;
    font-size: 12px;
    font-weight: 700;
}

.landing-hero {
    overflow: hidden;
    padding: 38px 18px 0;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.13), transparent 34%),
        linear-gradient(135deg, #514bdd 0%, #3730b0 48%, #211c78 100%);
    color: #ffffff;
}

.landing-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
    align-items: end;
    width: min(100%, 1040px);
    margin: 0 auto;
}

.landing-hero__content {
    text-align: center;
}

.landing-hero h1 {
    max-width: 18ch;
    margin: 0 auto;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 6.2vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.landing-hero__subtitle {
    max-width: 44ch;
    margin: 18px auto 0;
    color: #e4e1ff;
    font-size: 14px;
    line-height: 1.6;
}

.landing-hero__subtitle strong {
    color: #ffd7ac;
    font-weight: 700;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}

.landing-cta,
.landing-cta-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.landing-cta {
    border: 1px solid #fb8516;
    background: #fb8516;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(251, 133, 22, 0.22);
}

.landing-cta--wide {
    flex: 1 0 100%;
    width: 100%;
}

.landing-cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
}

.landing-hero__note {
    max-width: 48ch;
    margin: 14px auto 0;
    color: #c7c3ff;
    font-size: 11px;
}

.landing-hero__visual {
    align-self: end;
    margin-bottom: -1px;
    padding: 14px 14px 0;
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 -16px 44px rgba(7, 4, 50, 0.18);
}

.landing-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 330px;
    object-fit: contain;
}

.landing-body {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 34px 18px 10px;
}

.landing-section {
    padding: 25px 0;
}

.landing-section--tight {
    padding-top: 4px;
}

.landing-section__eyebrow {
    margin-bottom: 8px;
    color: #5b4fe0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.landing-section h2 {
    margin: 0;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.landing-section p {
    margin: 12px 0 0;
    color: #5f6076;
    font-size: 13px;
    line-height: 1.7;
}

.landing-intro {
    border-bottom: 1px solid #efeff5;
}

.landing-intro p {
    max-width: 76ch;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.landing-feature {
    padding: 15px;
    border: 1px solid #e9e9f0;
    border-radius: 13px;
    background: #ffffff;
}

.landing-feature__icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 11px;
    place-items: center;
    border-radius: 10px;
    background: #efedff;
    color: #4b3fd4;
    font-size: 16px;
    font-weight: 800;
}

.landing-feature h3 {
    margin: 0;
    color: #1d1d33;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.landing-feature p {
    margin: 6px 0 0;
    color: #6a6b80;
    font-size: 12px;
    line-height: 1.55;
}

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e8e7f3;
    border-radius: 16px;
    background: #f8f7ff;
}

.landing-split--app {
    background: #f4f8ff;
    border-color: #e2eaf8;
}

.landing-split h2 {
    font-size: clamp(21px, 4.5vw, 29px);
}

.landing-split p {
    margin-top: 9px;
}

.landing-split__actions {
    margin-top: 15px;
}

.landing-split__visual img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.landing-trust span {
    padding: 5px 9px;
    border: 1px solid #e5e4ef;
    border-radius: 999px;
    background: #ffffff;
    color: #686a7e;
    font-size: 10px;
    font-weight: 650;
}

.landing-tariffs {
    margin-top: 16px;
    padding: 18px 14px;
    border-radius: 16px;
    background: #f7f7fb;
}

.landing-tariffs__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.landing-tariffs__head h2 {
    font-size: clamp(23px, 5vw, 32px);
}

.landing-tariffs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.landing-tariffs__cta {
    margin-top: 16px;
}

.landing-tariffs__cta .landing-cta {
    width: 100%;
}

.landing-tariffs__loading-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #85869a;
    font-size: 11px;
}

.landing-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ececf3;
    border-top-color: #fb8516;
    border-radius: 50%;
    animation: landing-spin 0.8s linear infinite;
}

.landing-tariffs__skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.landing-tariffs__skeleton {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #ececf3;
    border-radius: 16px;
    background: #fbfbfd;
}

.landing-tariffs__skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.8) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: landing-shimmer 1.35s ease-in-out infinite;
}

.landing-skeleton-line {
    display: block;
    width: 100%;
    height: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #e9eaf1;
}

.landing-skeleton-line--name {
    width: 45%;
    height: 12px;
}

.landing-skeleton-line--price {
    width: 58%;
    height: 24px;
    margin-top: 16px;
    margin-bottom: 14px;
}

.landing-skeleton-line--short {
    width: 34%;
}

.landing-skeleton-line--medium {
    width: 72%;
}

@keyframes landing-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes landing-shimmer {
    to {
        transform: translateX(100%);
    }
}

.landing-tariffs__state {
    padding: 18px 10px;
    color: #737489;
    font-size: 12px;
    text-align: center;
}

.landing-tariff {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    background: #ffffff;
}

.landing-tariff--featured {
    border-color: #fb8516;
    box-shadow: 0 8px 22px rgba(251, 133, 22, 0.1);
}

.landing-tariff__name {
    color: #4b3fd4;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-tariff__price {
    margin-top: 7px;
    color: #1b1b31;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.landing-tariff__price-secondary {
    color: #737489;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}

.landing-tariff__period {
    margin-top: 3px;
    color: #85869a;
    font-size: 10px;
}

.landing-tariff__features {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    margin: 12px 0 14px;
    padding: 0;
    list-style: none;
}

.landing-tariff__features li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #636478;
    font-size: 11px;
    line-height: 1.45;
}

.landing-tariff__feature-icon {
    display: inline-flex;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    color: #fb8516;
}

.landing-tariff__feature-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.landing-tariff__feature-text {
    min-width: 0;
}

.landing-tariff__btn {
    width: 100%;
    min-height: 34px;
    border: 1px solid #dddce9;
    border-radius: 8px;
    background: #ffffff;
    color: #4b3fd4;
    font-size: 11px;
    font-weight: 750;
}

.landing-tariff--featured .landing-tariff__btn {
    border-color: #fb8516;
    background: #fb8516;
    color: #ffffff;
}

.landing-tariffs__note {
    margin: 12px 0 0;
    color: #85869a;
    font-size: 10px;
    line-height: 1.5;
}

.public-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    color: #17172b;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding: calc(14px + var(--safe-top)) 18px 12px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #f0f0f5;
    backdrop-filter: blur(14px);
}

.public-back {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f6076;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.public-back:hover {
    color: #fb8516;
}

.public-header__brand img {
    display: block;
    width: clamp(112px, 24vw, 150px);
    height: auto;
}

.public-header__lang {
    display: flex;
    justify-self: end;
    gap: 3px;
}

.public-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 18px 56px;
}

.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
    gap: 38px;
    align-items: center;
    padding: 24px 0 38px;
    border-bottom: 1px solid #ececf3;
}

.public-kicker {
    margin-bottom: 10px;
    color: #5b4fe0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.public-title {
    margin: 0;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5.5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.public-lead {
    max-width: 60ch;
    margin: 16px 0 0;
    color: #4e4f64;
    font-size: 15px;
    line-height: 1.7;
}

.public-note {
    max-width: 60ch;
    margin: 12px 0 0;
    color: #85869a;
    font-size: 12px;
    line-height: 1.65;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.public-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.public-secondary:hover {
    border-color: #fb8516;
    color: #fb8516;
}

.public-visual {
    width: 100%;
    max-width: 360px;
    justify-self: end;
}

.public-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.public-sections {
    display: grid;
    gap: 26px;
    padding-top: 30px;
}

.public-block h2 {
    margin: 0 0 8px;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 4vw, 30px);
    letter-spacing: -0.03em;
}

.public-block p {
    max-width: 75ch;
    margin: 0;
    color: #5f6076;
    font-size: 14px;
    line-height: 1.75;
}

.public-features {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-features li {
    position: relative;
    padding-left: 22px;
    color: #4e4f64;
    font-size: 14px;
    line-height: 1.55;
}

.public-features li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #fb8516;
    content: "✓";
    font-weight: 800;
}

.public-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px calc(28px + var(--safe-bottom));
    color: #9ca3af;
    font-size: 11px;
}

.public-main--doc {
    max-width: 900px;
}

.public-doc-head {
    padding: 22px 0 24px;
    border-bottom: 1px solid #ececf3;
}

.public-doc-head + .public-doc-body,
.public-doc-head + .public-faq {
    padding-top: 24px;
}

.public-doc {
    padding: 18px 0 30px;
}

.public-form {
    display: grid;
    gap: 14px;
    max-width: 680px;
}

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

.public-field {
    display: grid;
    gap: 6px;
    color: #4e4f64;
    font-size: 12px;
    font-weight: 600;
}

.public-input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d9dbe6;
    border-radius: 8px;
    background: #ffffff;
    color: #17172b;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    outline: none;
}

.public-input:focus {
    border-color: #5b4fe0;
    box-shadow: 0 0 0 3px rgba(91, 79, 224, 0.12);
}

.public-textarea {
    min-height: 130px;
    resize: vertical;
}

.public-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.public-alert {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.public-alert.is-success,
.public-alert.is-error {
    display: block;
}

.public-alert.is-success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.public-alert.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.public-faq {
    display: grid;
    gap: 9px;
    padding: 24px 0 30px;
    max-width: 820px;
}

.public-faq__item {
    padding: 14px 16px;
    border: 1px solid #e7e8ef;
    border-radius: 10px;
    background: #ffffff;
}

.public-faq__item summary {
    color: #17172b;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.public-faq__item p {
    margin: 10px 0 0;
    color: #5f6076;
    font-size: 13px;
    line-height: 1.7;
}

.public-doc .vpnvendor-terms {
    color: #5f6076;
}

.public-doc .vpnvendor-terms__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececf3;
}

.public-doc .vpnvendor-terms h1 {
    margin: 0 0 10px;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.public-doc .vpnvendor-terms h2 {
    margin: 28px 0 10px;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.public-doc .vpnvendor-terms p,
.public-doc .vpnvendor-terms li {
    color: #5f6076;
    font-size: 14px;
    line-height: 1.75;
}

.public-doc .vpnvendor-terms p {
    margin: 0 0 12px;
}

.public-doc .vpnvendor-terms ul {
    margin: 8px 0 16px;
    padding-left: 22px;
}

.public-doc .vpnvendor-terms__meta,
.public-doc .vpnvendor-terms__intro {
    color: #85869a;
    font-size: 13px;
    line-height: 1.7;
}

.public-doc .vpnvendor-terms a {
    color: #5b4fe0;
}

@media (max-width: 700px) {
    .public-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .public-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 10px;
    }

    .public-visual {
        max-width: 300px;
        justify-self: start;
    }
}

.landing-faq {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
}

.landing-faq details {
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.landing-faq summary {
    padding: 12px 13px;
    color: #2b2b42;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

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

.landing-faq summary::after {
    float: right;
    color: #8a8ba0;
    content: "+";
    font-size: 16px;
    line-height: 1;
}

.landing-faq details[open] summary::after {
    content: "?";
}

.landing-faq p {
    margin: 0;
    padding: 0 13px 13px;
    color: #68697d;
    font-size: 12px;
    line-height: 1.6;
}

.landing-final {
    margin: 24px 0 10px;
    padding: 24px 18px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #4e47da, #262080);
    color: #ffffff;
    text-align: center;
}

.landing-final h2 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: clamp(23px, 5vw, 31px);
}

.landing-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.landing-modal.is-open {
    display: flex;
}

.landing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 12, 48, 0.58);
    backdrop-filter: blur(4px);
}

.landing-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: min(84vh, 720px);
    overflow: auto;
    padding: 26px 20px 22px;
    border-radius: 18px;
    background: #ffffff;
    color: #17172b;
    box-shadow: 0 24px 80px rgba(7, 4, 50, 0.3);
}

.landing-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b6c80;
    font-size: 26px;
    line-height: 1;
}

.landing-modal__card h2 {
    margin: 0 38px 12px 0;
    color: #17172b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.landing-modal__text p {
    margin: 0;
    color: #5f6076;
    font-size: 14px;
    line-height: 1.7;
}

.landing-modal__details {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ececf3;
}

.landing-modal__detail-line {
    margin: 0;
    color: #4e4f64;
    font-size: 14px;
    line-height: 1.65;
}

.landing-modal__detail-line strong {
    color: #17172b;
    font-weight: 700;
}

.landing-modal__note {
    margin: 3px 0 0;
    color: #85869a;
    font-size: 12px;
    line-height: 1.6;
}

body.landing-modal-open {
    overflow: hidden;
}

.landing-footer {
    padding: 22px 18px calc(26px + var(--safe-bottom));
    border-top: 1px solid #ececf3;
    background: #fbfbfd;
}

.landing-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
    width: min(100%, 1040px);
    margin: 0 auto;
}

.landing-footer__brand img {
    display: block;
    width: auto;
    height: 28px;
    margin-bottom: 9px;
}

.landing-footer__brand p {
    margin: 0;
    color: #7b7c8f;
    font-size: 10px;
    line-height: 1.55;
}

.landing-footer h3 {
    margin: 0 0 7px;
    color: #35354b;
    font-size: 11px;
    font-weight: 750;
}

.landing-footer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-footer__links button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c6d80;
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
}

.landing-footer__payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    width: min(100%, 1040px);
    margin: 14px auto 0;
}

.landing-footer__payments img {
    display: block;
    width: auto;
    height: 22px;
    object-fit: contain;
}

.landing-footer__bottom {
    width: min(100%, 1040px);
    margin: 18px auto 0;
    padding-top: 12px;
    border-top: 1px solid #ececf3;
    color: #9b9cad;
    font-size: 9px;
    line-height: 1.5;
}

@media (min-width: 520px) {
    .landing-nav-link {
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 720px) {
    .landing-hero__inner,
    .landing-split {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding-top: 30px;
    }

    .landing-hero__visual {
        max-width: 520px;
        margin: 0 auto -1px;
    }

    .landing-hero__visual img {
        max-height: 260px;
    }

    .landing-split__visual {
        max-width: 430px;
        margin: 0 auto;
        order: -1;
    }

    .landing-split--app .landing-split__visual {
        order: 0;
    }

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

    .landing-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .landing-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .landing-header__brand img {
        height: 27px;
    }

    .landing-hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .landing-body {
        padding-right: 14px;
        padding-left: 14px;
    }

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

    .landing-tariffs__grid,
    .landing-tariffs__skeleton-grid {
        grid-template-columns: 1fr;
    }

    .landing-tariff {
        padding: 13px;
    }

    .landing-footer {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Manager client tools */
.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.toolbar-row .btn {
    flex: 0 1 auto;
}

.toolbar-row__spacer {
    flex: 1;
}

.chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 0 0 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.chip.is-active {
    border-color: rgba(167, 139, 250, 0.55);
    background: var(--purple-soft);
    color: #ddd6fe;
}

.client-card__server {
    overflow: hidden;
    margin-top: 3px;
    color: #7689a4;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-section {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.detail-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-section__title {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.config-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--bg-soft);
}

.config-card + .config-card {
    margin-top: 8px;
}

.config-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.config-card__name {
    color: #e9e4ff;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.config-card__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.config-actions .btn {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10px;
}

.qr-image {
    display: block;
    width: min(100%, 280px);
    margin: 0 auto;
    border-radius: 12px;
    background: #fff;
}

.notice {
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.notice--warn {
    border-color: rgba(245, 158, 11, 0.28);
    background: var(--orange-soft);
    color: #fcd34d;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.action-grid .btn {
    width: 100%;
    min-height: 38px;
}

.danger-zone {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.broadcast-server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 12px;
    text-align: left;
}

.broadcast-server + .broadcast-server {
    margin-top: 7px;
}

.broadcast-editor {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.broadcast-count {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

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

.server-card--clickable {
    cursor: pointer;
}

.server-card--clickable:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.75);
    outline-offset: 2px;
}

.badge--premium {
    background: rgba(251, 133, 22, 0.16);
    color: #fdba74;
    border: 1px solid rgba(251, 133, 22, 0.28);
}

/* Tariff shop */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(24, 35, 56, 0.95), rgba(15, 23, 39, 0.96));
}

.shop-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.shop-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.shop-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.shop-card .select {
    min-height: 38px;
    font-size: 11px;
}

.shop-card__features {
    margin: 10px 0 14px;
}

.shop-card__features li {
    font-size: 12px;
}

.shop-card__price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 2px;
}

.shop-card__price span {
    color: var(--text);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.shop-card__price .shop-card__price-secondary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.shop-card__price small {
    color: var(--muted);
    font-size: 10px;
}

.shop-card .btn {
    margin-top: auto;
}

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

/* Checkout / payments */
.payment-summary {
    padding: 15px 16px;
}

.payment-summary__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.payment-summary__row strong {
    color: var(--text-soft);
    font-weight: 650;
    text-align: right;
}

.payment-summary__row strong:first-letter {
    text-transform: uppercase;
}

.payment-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 13px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.payment-summary__total strong {
    color: var(--text);
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-method:hover {
    border-color: rgba(167, 139, 250, 0.52);
    background: var(--surface-2);
}

.payment-method__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    background: var(--purple-soft);
    color: #ddd6fe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.payment-method__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.payment-method__title {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.payment-method__hint {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.payment-method__action {
    flex: 0 0 auto;
    color: #b9a5ff;
    font-size: 11px;
    font-weight: 700;
}

.payment-wait,
.payment-success {
    margin-top: 14px;
    padding: 18px;
    text-align: center;
}

.payment-wait__title {
    color: var(--text);
    font-size: 15px;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.payment-wait__text,
.payment-success__text {
    max-width: 38ch;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.payment-wait .qr-image {
    margin-top: 14px;
}

.payment-wait__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.payment-wait .btn {
    margin-top: 8px;
}

.payment-success__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    place-items: center;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    background: var(--green-soft);
    color: #86efac;
    font-size: 24px;
    font-weight: 800;
}

.payment-success__title {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.payment-success .btn {
    margin-top: 10px;
}

.payment-loading {
    display: flex;
    align-items: center;
    gap: 9px;
}

@media (max-width: 420px) {
    .payment-method__action {
        display: none;
    }
}

/* Help, knowledge base and FAQ */
.kb-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kb-category {
    min-width: 0;
}

.kb-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.kb-category__title {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.kb-article {
    overflow-wrap: anywhere;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.kb-article > :first-child {
    margin-top: 0;
}

.kb-article > :last-child {
    margin-bottom: 0;
}

.kb-article h1,
.kb-article h2,
.kb-article h3,
.kb-article h4,
.kb-article h5,
.kb-article h6 {
    margin: 20px 0 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.kb-article h3,
.kb-article h4,
.kb-article h5,
.kb-article h6 {
    font-size: 14px;
}

.kb-article p {
    margin: 0 0 12px;
}

.kb-article ul,
.kb-article ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.kb-article li {
    margin: 4px 0;
}

.kb-article blockquote {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 2px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
    background: var(--surface-2);
    color: var(--text-soft);
}

.kb-article pre {
    overflow-x: auto;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #070c14;
    color: #d7e2f2;
    font-size: 11px;
    line-height: 1.5;
}

.kb-article code {
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--surface-2);
    font-size: 0.92em;
}

.kb-article pre code {
    padding: 0;
    background: transparent;
}

.kb-article table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 12px;
}

.kb-article th,
.kb-article td {
    padding: 7px 8px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.kb-article th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 650;
}

.help-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-faq__item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.help-faq__item summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

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

.help-faq__icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--purple-soft);
    color: #c4b5fd;
}

.help-faq__icon .ui-icon {
    width: 15px;
    height: 15px;
}

.help-faq__item p {
    margin: 0;
    padding: 0 13px 13px 51px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
