* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 25%),
        linear-gradient(180deg, #08101d 0%, #050914 100%);
    color: #e2e8f0;
}

.hidden {
    display: none !important;
}

.shell {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
    padding: 16px 0 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 4px 20px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-link {
    display: inline-flex;
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #60a5fa, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 13px;
    color: #94a3b8;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dev-banner {
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.24);
    color: #fde68a;
    font-size: 14px;
    line-height: 1.5;
}

.auth-view {
    display: flex;
    justify-content: center;
    padding-top: 8vh;
}

.auth-card,
.hero-card,
.card {
    background: rgba(8, 15, 28, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.referral-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #bfdbfe;
    font-size: 14px;
    line-height: 1.5;
}

.auth-card {
    width: min(460px, 100%);
    border-radius: 24px;
    padding: 28px;
}

.auth-head h1,
.card-head h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.auth-head p,
.card-copy {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0 18px;
}

.tab-btn,
.ghost-btn,
.secondary-btn,
.primary-btn {
    border: 0;
    border-radius: 14px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.tab-btn {
    flex: 1;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.95);
    color: #94a3b8;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #eff6ff;
}

.auth-form,
.chat-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.text-btn {
    border: 0;
    background: transparent;
    color: #93c5fd;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.text-btn:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.recovery-view {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.recovery-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.recovery-head p {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 14px;
}

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

.recovery-password-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recovery-back-btn {
    align-self: flex-start;
}

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

.field span,
.meta-label,
.hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.field input,
.field textarea,
#chat-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
}

.phone-input {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.82);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-input:focus-within {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.phone-input-prefix {
    flex: 0 0 auto;
    padding: 14px 0 14px 16px;
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.phone-input input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 14px 16px 14px 10px;
}

.field input:focus,
.field textarea:focus,
#chat-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.phone-input input:focus {
    border-color: transparent;
    box-shadow: none;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #eff6ff;
    font-weight: 700;
}

.secondary-btn {
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #dbeafe;
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.tab-btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.tab-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.hero-card {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 6px;
}

.hero-meta {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 6px;
}

.hero-phone {
    font-size: 16px;
    color: #cbd5e1;
}

.hero-verification {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-telegram {
    margin-top: 14px;
}

.hero-telegram-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

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

.card {
    border-radius: 24px;
    padding: 24px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

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

.badge-accent {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.badge-green {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.badge-red {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.badge-dark {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.verification-callout {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.5;
}

.verification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-top: 14px;
}

.verification-code-field {
    flex: 0 0 190px;
    margin: 0;
}

.verification-code-field input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 18px;
    font-weight: 700;
}

.verification-callout.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.26);
    color: #fde68a;
}

.verification-callout.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

.vpn-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.vpn-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.vpn-actions,
.chat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.billing-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.billing-collapsible {
    overflow: hidden;
}

.billing-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 15, 28, 0.92));
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.billing-summary:hover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.18);
    background: linear-gradient(180deg, rgba(17, 27, 47, 0.9), rgba(8, 15, 28, 0.96));
}

.billing-summary:active {
    transform: translateY(1px);
}

.billing-summary:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: 3px;
}

.billing-summary-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.billing-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font-size: 0;
    font-weight: 700;
    white-space: nowrap;
}

.billing-summary-toggle::before {
    font-size: 13px;
}

.billing-summary-toggle::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.16s ease;
}

.billing-collapsible[open] .billing-summary-toggle {
    color: #bfdbfe;
}

.billing-collapsible[open] .billing-summary-toggle::after {
    transform: rotate(90deg);
}

.billing-collapsible[open] .billing-summary-toggle::before {
    content: "Скрыть";
}

.billing-collapsible:not([open]) .billing-summary-toggle::before {
    content: "Открыть";
}

.billing-collapsible-body {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.payment-notice {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
}

.payment-notice strong,
.pending-order-transfer-note strong {
    display: block;
    font-size: 14px;
    color: #fef3c7;
}

.payment-notice span,
.pending-order-transfer-note span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #fcd34d;
}

.help-center {
    margin-top: 6px;
}

.help-center-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 15, 28, 0.92));
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.help-center-summary:hover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.18);
    background: linear-gradient(180deg, rgba(17, 27, 47, 0.9), rgba(8, 15, 28, 0.96));
}

.help-center-summary:active {
    transform: translateY(1px);
}

.help-center-summary:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: 3px;
}

.help-center-summary-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.help-center-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font-size: 0;
    font-weight: 700;
    white-space: nowrap;
}

.help-center-toggle::before {
    font-size: 13px;
}

.help-center-toggle::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.16s ease;
}

.help-center[open] .help-center-toggle {
    color: #bfdbfe;
}

.help-center[open] .help-center-toggle::after {
    transform: rotate(90deg);
}

.help-center[open] .help-center-toggle::before {
    content: "Скрыть";
}

.help-center:not([open]) .help-center-toggle::before {
    content: "Открыть";
}

.help-center-copy {
    margin: 8px 0 0;
}

.help-center-body {
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.help-card-item {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.help-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    cursor: pointer;
    list-style: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.help-card-head::-webkit-details-marker {
    display: none;
}

.help-card-head:hover {
    background: rgba(255, 255, 255, 0.03);
}

.help-card-head:active {
    transform: translateY(1px);
}

.help-card-head:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: -2px;
}

.help-card-head h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.help-card-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.help-summary-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.help-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font-size: 0;
    font-weight: 700;
    white-space: nowrap;
}

.help-card-item[open] .help-summary-toggle {
    color: #bfdbfe;
}

.help-summary-toggle::before {
    font-size: 13px;
}

.help-summary-toggle::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.16s ease;
}

.help-card-item[open] .help-summary-toggle::before {
    content: "Скрыть";
}

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

.help-card-item:not([open]) .help-summary-toggle::before {
    content: "Открыть";
}

.help-card-body {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.help-video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(8, 15, 28, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 14px;
}

.help-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    background: #020617;
}

.help-video.video-unavailable {
    display: none;
}

.help-video-fallback {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
    color: #cbd5e1;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.86));
}

.help-video-fallback strong {
    color: #eff6ff;
    font-size: 16px;
}

.help-video-fallback span {
    font-size: 14px;
    line-height: 1.5;
}

.help-steps {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.billing-head h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.promo-panel {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.promo-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.promo-panel-head h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.promo-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    align-items: flex-end;
}

.promo-field {
    flex: 1 1 240px;
    margin: 0;
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.billing-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.billing-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

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

.billing-panel-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.billing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tariffs-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.tariff-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.tariff-card-head h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.tariff-card-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

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

.tariff-variant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 15, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.tariff-variant-meta {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tariff-variant-copy,
.tariff-variant-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tariff-variant-copy span,
.tariff-price-label {
    color: #94a3b8;
    font-size: 14px;
}

.tariff-variant-period,
.tariff-variant-gb,
.tariff-variant-prices strong {
    display: block;
}

.tariff-variant-period {
    font-size: 22px;
    line-height: 1.05;
}

.tariff-variant-gb {
    font-size: 15px;
    line-height: 1.3;
}

.tariff-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tariff-price-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.tariff-price-row-accent strong {
    color: #eff6ff;
}

.tariff-variant-prices strong {
    font-size: 18px;
    text-align: right;
}

.tariff-old-price {
    color: #64748b;
    font-size: 12px;
    text-decoration: line-through;
}

.tariff-variant-discount {
    color: #86efac;
    font-size: 13px;
    line-height: 1.4;
}

.tariff-variant-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.tariff-variant-actions .secondary-btn,
.tariff-variant-actions .ghost-btn {
    min-width: 168px;
}

.pending-order-transfer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 15, 28, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pending-order-transfer strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.pending-order-transfer-note {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.partner-block {
    margin-top: 18px;
}

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

.partner-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.partner-link {
    resize: vertical;
}

.chat-messages {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.chat-empty {
    color: #94a3b8;
    font-size: 14px;
    padding: 24px 0;
}

.message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.45;
}

.message.user {
    margin-left: auto;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #eff6ff;
}

.message.admin {
    margin-right: auto;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.message.system {
    margin: 0 auto;
    max-width: 100%;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

.message-meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(226, 232, 240, 0.72);
}

.message-read-badge {
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-line {
    min-height: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.status-line.error {
    color: #fca5a5;
}

.status-line.success {
    color: #86efac;
}

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

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100%, calc(100% - 16px));
    }

    .auth-card,
    .hero-card,
    .card {
        border-radius: 20px;
        padding: 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .billing-panel-head {
        flex-direction: column;
    }

    .billing-panel-grid {
        grid-template-columns: 1fr;
    }

    .promo-panel-head {
        flex-direction: column;
    }

    .promo-actions {
        width: 100%;
    }

    .promo-actions .secondary-btn,
    .promo-actions .ghost-btn {
        width: 100%;
    }

    .tariff-variant {
        grid-template-columns: 1fr;
    }

    .tariff-price-row {
        gap: 10px;
    }

    .tariff-variant button,
    .billing-actions a,
    .billing-actions button {
        width: 100%;
    }

    .tariff-variant-actions {
        justify-content: stretch;
    }

    .pending-order-transfer {
        grid-template-columns: 1fr;
    }

    .partner-stats {
        grid-template-columns: 1fr;
    }


    .help-video-fallback {
        min-height: 220px;
    }

    .help-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .billing-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .billing-summary-side {
        width: 100%;
        justify-content: space-between;
    }

    .help-center-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .help-center-summary-side {
        width: 100%;
        justify-content: space-between;
    }

    .help-summary-side {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .tariff-variant {
        grid-template-columns: 1fr;
    }

    .tariff-variant-actions .secondary-btn,
    .tariff-variant-actions .ghost-btn {
        width: 100%;
        min-width: 0;
    }
}
