:root {
  color-scheme: dark;
}

body.page-account-local {
  --lk-bg: #050b08;
  --lk-card: #0b1712;
  --lk-card-2: #0f1f18;
  --lk-border: rgba(255, 255, 255, 0.08);
  --lk-text: #e8fff4;
  --lk-muted: rgba(228, 255, 240, 0.64);
  --lk-accent: #21f3a3;
  --lk-accent-2: #0cc07e;
  --lk-danger: #ff6666;
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(33, 243, 163, 0.12), transparent 40%),
    radial-gradient(circle at 90% 12%, rgba(33, 163, 243, 0.1), transparent 34%),
    var(--lk-bg);
  color: var(--lk-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

/* main.css sets section { max-width: 1160px; padding: ... } — reset for LK layout */
body.page-account-local section.lk-main,
body.page-account-local #account-view-root > section.lk-view {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

/* Chrome a11y: password change forms should include a username field for autofill */
.lk-hidden-username {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lk-shell {
  width: 100%;
  max-width: min(2560px, 100%);
  margin: 0 auto;
  padding: calc(var(--cab-header-h, 86px) + 12px) 16px 96px;
  display: grid;
  grid-template-columns: minmax(280px, clamp(300px, 24vw, 420px)) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: max(100vh, 100dvh);
  box-sizing: border-box;
}

.lk-sidebar {
  border-radius: 22px;
  border: 1px solid var(--lk-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(14px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--cab-header-h, 86px) + 10px);
  align-self: stretch;
  min-height: calc(100dvh - var(--cab-header-h, 86px) - 24px);
  max-height: calc(100dvh - var(--cab-header-h, 86px) - 24px);
  overflow: auto;
}

.lk-brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lk-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}

.lk-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lk-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.lk-brand small {
  display: block;
  font-size: 11px;
  color: var(--lk-muted);
}

.lk-nav {
  display: grid;
  gap: 8px;
}

.lk-nav-item {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  color: var(--lk-text);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.lk-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lk-nav-item:active {
  transform: translateX(1px) scale(0.995);
}

.lk-nav-item.is-active {
  border-color: rgba(33, 243, 163, 0.45);
  background: rgba(33, 243, 163, 0.16);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 26px rgba(33, 243, 163, 0.12);
}

.lk-nav-item.is-active:hover {
  transform: none;
}

.lk-sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.lk-main {
  min-width: 0;
  min-height: calc(100dvh - var(--cab-header-h, 86px) - 36px);
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
}

.lk-main > #account-view-root {
  min-height: 0;
}

.lk-lang-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lk-border);
  transition: opacity 0.22s ease;
}

.lk-lang-toggle.is-switching {
  opacity: 0.92;
}

.lk-lang-label {
  font-size: 11px;
  color: var(--lk-muted);
  margin-right: 4px;
}

.lk-lang-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--lk-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lk-text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.lk-lang-btn.is-active {
  border-color: rgba(33, 243, 163, 0.45);
  background: rgba(33, 243, 163, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(33, 243, 163, 0.14);
  transform: translateY(-1px);
}

.lk-lang-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.lk-lang-btn.is-busy {
  pointer-events: none;
  opacity: 0.78;
}

.lk-mobile-topbar {
  display: none;
}

.lk-notice {
  border-radius: 14px;
  border: 1px solid var(--lk-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.lk-notice.ok {
  border-color: rgba(33, 243, 163, 0.35);
  background: rgba(33, 243, 163, 0.1);
}

.lk-notice.warn,
.lk-notice.error {
  border-color: rgba(255, 102, 102, 0.35);
  background: rgba(255, 102, 102, 0.1);
}

#account-view-root {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

@keyframes lk-view-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab switches replace section.innerHTML; avoid opacity/transform flash each time */
#account-view-root > .lk-view {
  animation: none;
}

.lk-view {
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: min(100%, calc(100dvh - var(--cab-header-h, 86px) - 140px));
  align-content: start;
  align-items: stretch;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  transform-origin: top center;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lk-view.lk-view-transition {
  will-change: opacity, transform, filter;
}

.lk-view.lk-view-transition.is-leaving {
  pointer-events: none;
}

.lk-view.lk-view-transition.is-leaving.is-leaving-active {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  filter: blur(5px);
}

.lk-view.lk-view-transition.is-entering {
  opacity: 0;
  transform: translateY(22px) scale(0.992);
  filter: blur(6px);
}

.lk-view.lk-view-transition.is-entering.is-entering-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.lk-view.lk-view-transition > * {
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lk-view.lk-view-transition.is-entering > * {
  opacity: 0;
  transform: translateY(10px);
}

.lk-view.lk-view-transition.is-entering.is-entering-active > * {
  opacity: 1;
  transform: none;
}

.lk-view.lk-view-transition.is-entering > *:nth-child(2) {
  transition-delay: 0.04s;
}

.lk-view.lk-view-transition.is-entering > *:nth-child(3) {
  transition-delay: 0.08s;
}

.lk-view.is-payment {
  grid-template-columns: 1fr;
}

.lk-view.is-subscriptions {
  grid-template-columns: 1fr;
}

.lk-view.is-subscriptions,
.lk-view.is-activity {
  gap: 16px;
}

.lk-view.is-subscriptions > .lk-view-head,
.lk-view.is-activity > .lk-view-head,
.lk-view.is-referrals > .lk-view-head {
  width: 100%;
  min-height: 0;
}

.lk-card.lk-view-head {
  min-height: 0;
}

.lk-view.is-payment > .lk-card {
  width: 100%;
  min-height: min(420px, 52vh);
}

@media (min-width: 1180px) {
  .lk-view.is-payment {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
  }
}

.lk-card--fill {
  min-height: min(520px, 58vh);
}

.lk-card {
  border-radius: 20px;
  border: 1px solid var(--lk-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    var(--lk-card);
  padding: clamp(16px, 2vw, 24px);
  min-width: 0;
  min-height: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.28s ease,
    box-shadow 0.34s ease,
    transform 0.3s ease;
}

.lk-card--tall {
  min-height: min(360px, 48vh);
}

.lk-view.is-referrals .lk-ref-grid {
  align-items: stretch;
}

.lk-view.is-referrals {
  gap: 16px;
}

.lk-view.is-referrals > .lk-view-head .lk-card-head {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--lk-border);
}

.lk-view.is-referrals > .lk-view-head .lk-card-head h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.03em;
}

.lk-ref-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}

.lk-ref-card {
  border-radius: 16px;
  border: 1px solid var(--lk-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  min-height: 120px;
  transition:
    border-color 0.24s ease,
    box-shadow 0.3s ease,
    transform 0.26s ease,
    background 0.3s ease;
}

.lk-ref-card:hover {
  border-color: rgba(33, 243, 163, 0.2);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.lk-ref-card h4 {
  margin: 0;
  font-size: 1rem;
}

.lk-ref-stat-grid {
  display: grid;
  gap: 8px;
}

.lk-ref-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.lk-ref-stat-row span:first-child {
  color: var(--lk-muted);
}

.lk-ref-stat-row .primary {
  color: var(--lk-accent);
  font-weight: 600;
}

.lk-ref-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.lk-ref-link-row input.lk-input {
  min-width: 0;
  font-size: 12px;
}

.lk-ref-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.lk-ref-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--lk-accent);
}

.lk-ref-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lk-ref-claim {
  justify-self: start;
  margin-top: 4px;
}

.lk-ref-muted {
  font-size: 0.8rem;
  color: var(--lk-muted);
  margin: 0;
}

.lk-ref-mini {
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--lk-border);
}

.lk-ref-mini:last-child {
  border-bottom: 0;
}

.lk-ref-summary-hero {
  margin-bottom: 14px;
}

.lk-ref-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lk-ref-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lk-border);
  background: rgba(0, 0, 0, 0.15);
}

.lk-ref-metric span {
  font-size: 0.78rem;
  color: var(--lk-muted);
}

.lk-ref-metric strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lk-ref-summary-channels {
  margin-top: 14px;
}

.lk-ref-modes-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-bottom: 16px;
}

.lk-ref-mode-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.lk-ref-mode-card.is-disabled .lk-ref-icon {
  color: var(--lk-muted);
}

.lk-ref-secondary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.lk-card-head {
  margin-bottom: 12px;
}

.lk-card-head h2,
.lk-card-head h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.lk-card-head p {
  margin: 5px 0 0;
  color: var(--lk-muted);
}

.lk-form-grid {
  display: grid;
  gap: 12px;
}

.lk-field {
  display: grid;
  gap: 8px;
}

.lk-field label {
  font-size: 13px;
  color: var(--lk-muted);
}

.lk-chip-row,
.lk-plan-grid,
.lk-method-grid {
  display: grid;
  gap: 8px;
}

.lk-chip-row {
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.lk-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.lk-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.lk-chip,
.lk-plan,
.lk-method {
  border: 1px solid var(--lk-border);
  border-radius: 12px;
  background: var(--lk-card-2);
  color: var(--lk-text);
  cursor: pointer;
  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.28s ease,
    transform 0.2s ease;
}

.lk-chip {
  min-height: 40px;
  font-weight: 700;
}

.lk-plan,
.lk-method {
  min-height: 72px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.lk-plan.is-active,
.lk-method.is-active,
.lk-chip.is-active {
  border-color: rgba(33, 243, 163, 0.55);
  background: rgba(33, 243, 163, 0.14);
  box-shadow: 0 10px 24px rgba(33, 243, 163, 0.12);
}

.lk-chip:hover,
.lk-plan:hover,
.lk-method:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.lk-plan strong,
.lk-method strong {
  font-size: 14px;
}

.lk-plan span,
.lk-method span {
  font-size: 12px;
  color: var(--lk-muted);
}

.lk-input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--lk-border);
  background: #0a120e;
  color: var(--lk-text);
  padding: 0 12px;
  outline: none;
}

.lk-input:focus {
  border-color: rgba(33, 243, 163, 0.5);
}

.lk-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.lk-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lk-border);
  padding: 10px 12px;
}

.lk-summary span {
  color: var(--lk-muted);
  font-size: 13px;
}

.lk-invoice-box {
  margin-top: 12px;
}

.lk-invoice {
  border-radius: 14px;
  border: 1px solid var(--lk-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  display: grid;
  gap: 10px;
  transition:
    border-color 0.24s ease,
    box-shadow 0.3s ease,
    transform 0.24s ease;
}

.lk-invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--lk-muted);
  font-size: 12px;
}

.lk-invoice-amount {
  font-size: 26px;
  font-weight: 800;
}

.lk-invoice-actions {
  display: flex;
  gap: 8px;
}

.lk-invoice-receipt {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--lk-border);
}

.lk-receipt-file {
  font-size: 13px;
}

.lk-result-qr-caption {
  margin: 10px 0 4px;
  font-size: 13px;
}

.lk-promo-warn {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lk-danger);
  line-height: 1.35;
}

.lk-sub-meta {
  margin: 0;
  font-size: 12px;
  color: var(--lk-muted);
}

.lk-sub-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.lk-invoice-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--lk-muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lk-border);
  background: rgba(33, 243, 163, 0.06);
}

.lk-spinner--sm {
  width: 22px;
  height: 22px;
  border-width: 2px;
  flex-shrink: 0;
}

.lk-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 392px), 1fr));
  gap: 14px;
}

.lk-sub-grid--activity {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.lk-sub-card {
  border-radius: 14px;
  border: 1px solid var(--lk-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 14px 13px;
  display: grid;
  gap: 10px;
  transition:
    border-color 0.24s ease,
    box-shadow 0.3s ease,
    transform 0.26s ease,
    background 0.28s ease;
}

.lk-sub-card:hover {
  border-color: rgba(33, 243, 163, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.lk-sub-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.lk-sub-card header span {
  color: var(--lk-muted);
  font-size: 12px;
}

.lk-sub-link {
  font-size: 12px;
  color: var(--lk-muted);
  overflow-wrap: anywhere;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 9px;
}

.lk-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lk-btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lk-btn--with-icon .lk-btn-ico {
  flex-shrink: 0;
  opacity: 0.92;
}

.lk-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 14px;
}

@media (min-width: 1100px) {
  .lk-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lk-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

.lk-kv span {
  color: var(--lk-muted);
}

.lk-form-stack {
  display: grid;
  gap: 10px;
}

.lk-btn {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.26s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.lk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.lk-btn:active {
  transform: translateY(0) scale(0.992);
}

.lk-btn-primary {
  color: #062013;
  background: linear-gradient(180deg, var(--lk-accent), var(--lk-accent-2));
}

.lk-btn-ghost {
  color: var(--lk-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--lk-border);
}

.lk-btn-danger {
  color: #ffd6d6;
  background: rgba(255, 102, 102, 0.18);
  border-color: rgba(255, 102, 102, 0.4);
}

.lk-btn.wide {
  width: 100%;
}

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

.lk-good {
  color: #86ffd0;
  margin: 0;
}

.lk-bad {
  color: #ff9f9f;
  margin: 0;
}

.lk-mobile-nav {
  display: none;
}

.lk-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 6, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

.lk-loader-overlay.hidden {
  display: none !important;
}

.lk-loader-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0s;
}

.lk-loader-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px solid var(--lk-border);
  background: var(--lk-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.985);
  opacity: 0.88;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.lk-loader-overlay.is-visible .lk-loader-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lk-loader-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--lk-muted);
}

.lk-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(33, 243, 163, 0.2);
  border-top-color: var(--lk-accent);
  animation: lk-spin 0.75s linear infinite;
}

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

.lk-result-modal-card .lk-result-message {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.lk-result-extra {
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lk-border);
  background: rgba(0, 0, 0, 0.2);
  word-break: break-word;
}

.lk-result-extra.hidden {
  display: none;
}

.lk-result-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lk-result-title {
  margin: 0 28px 0 0;
  font-size: 1.15rem;
}

.lk-result-title.is-error {
  color: var(--lk-danger);
}

.lk-result-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--lk-border);
  font-size: 0.9rem;
}

.lk-result-kv:last-child {
  border-bottom: 0;
}

.lk-result-kv span {
  color: var(--lk-muted);
}

.lk-result-kv strong {
  font-weight: 600;
  text-align: right;
}

.lk-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.lk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.78);
}

.lk-modal-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100vw - 22px));
  border-radius: 16px;
  border: 1px solid var(--lk-border);
  background: #09140f;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.lk-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--lk-border);
  color: var(--lk-text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.lk-modal-qr {
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--lk-border);
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  padding: 8px;
}

.lk-support-chat-card {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.lk-support-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lk-support-list {
  min-height: 280px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--lk-border);
  border-radius: 22px;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(8, 18, 14, 0.92), rgba(5, 10, 8, 0.75));
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 243, 163, 0.35) rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .lk-support-list {
    max-height: min(
      calc(100dvh - var(--cab-header-h, 86px) - 220px),
      720px
    );
    min-height: min(400px, 42vh);
  }
}

.lk-support-list::-webkit-scrollbar {
  width: 8px;
}

.lk-support-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.lk-support-list::-webkit-scrollbar-thumb {
  background: rgba(33, 243, 163, 0.35);
  border-radius: 8px;
}

.lk-support-list::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 243, 163, 0.5);
}

.lk-support-msg {
  display: flex;
}

.lk-support-msg.is-new .lk-support-bubble {
  animation: lk-support-bubble-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lk-support-bubble-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-support-msg.is-new .lk-support-bubble {
    animation: none;
  }
}

.lk-support-msg.is-user {
  justify-content: flex-end;
}

.lk-support-msg.is-admin {
  justify-content: flex-start;
}

.lk-support-bubble {
  max-width: min(92%, 720px);
  border: 1px solid var(--lk-border);
  border-radius: 20px;
  padding: 10px 14px 8px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.24s ease,
    box-shadow 0.28s ease,
    transform 0.24s ease;
}

@media (min-width: 1024px) {
  .lk-support-bubble {
    max-width: min(92%, 820px);
  }
}

.lk-support-msg.is-user .lk-support-bubble {
  background: linear-gradient(165deg, rgba(33, 243, 163, 0.22), rgba(33, 243, 163, 0.08));
  border-color: rgba(33, 243, 163, 0.45);
  border-bottom-right-radius: 6px;
}

.lk-support-msg.is-admin .lk-support-bubble {
  border-bottom-left-radius: 6px;
}

.lk-support-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.95rem;
}

.lk-support-bubble small {
  color: var(--lk-muted);
  font-size: 11px;
}

.lk-support-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.lk-support-bubble-meta small {
  flex: 1;
  min-width: 0;
}

.lk-support-read {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: -0.06em;
  color: var(--lk-muted);
  opacity: 0.85;
}

.lk-support-msg.is-user .lk-support-read.is-done {
  color: var(--lk-accent);
  opacity: 1;
}

.lk-support-read-note {
  font-size: 10px;
  color: var(--lk-muted);
}

.lk-support-last {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.lk-support-typing {
  font-size: 0.82rem;
  color: var(--lk-accent);
  font-style: italic;
  padding: 2px 0 0;
  min-height: 1.2em;
}

.lk-support-typing.hidden {
  display: none;
}

.lk-support-media a {
  color: #a7ffd8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lk-support-form {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.lk-support-composer {
  margin-top: 6px;
}

.lk-support-textarea.lk-input {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lk-support-composer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lk-support-file-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.lk-support-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lk-support-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid var(--lk-border);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lk-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease;
}

.lk-support-file-label:hover {
  border-color: rgba(33, 243, 163, 0.45);
  background: rgba(33, 243, 163, 0.1);
}

.lk-support-file-label:active {
  transform: scale(0.98);
}

.lk-support-file-icon {
  display: flex;
  color: var(--lk-accent);
}

.lk-support-file-name {
  font-size: 0.8rem;
  color: var(--lk-muted);
  max-width: min(280px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk-support-send.lk-btn {
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 700;
  margin-left: auto;
}

.lk-support-send.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.lk-ref-tg-callout {
  border-color: rgba(34, 158, 230, 0.35);
  background: linear-gradient(180deg, rgba(34, 158, 230, 0.1), rgba(0, 0, 0, 0.12));
}

.lk-ref-icon--tg {
  color: #5eb8ff;
}

@media (min-width: 1025px) {
  .lk-view.is-subscriptions .lk-sub-grid {
    grid-template-columns: 1fr;
  }

  .lk-view.is-activity .lk-sub-grid--activity {
    grid-template-columns: 1fr;
  }

  .lk-view.is-subscriptions .lk-sub-card,
  .lk-view.is-activity .lk-sub-card {
    padding: 16px 18px 15px;
  }

  .lk-view.is-referrals .lk-ref-grid {
    grid-template-columns: 1fr;
  }

  .lk-view.is-referrals .lk-ref-secondary {
    grid-template-columns: 1fr;
  }

  .lk-view.is-referrals .lk-ref-modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lk-view.is-support {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .lk-view.is-support > .lk-support-chat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .lk-view.is-support .lk-support-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .lk-view.is-support .lk-support-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .lk-view.is-support .lk-support-chat > .lk-card-head,
  .lk-view.is-support .lk-support-typing,
  .lk-view.is-support .lk-support-chat > .lk-notice,
  .lk-view.is-support .lk-support-form {
    flex-shrink: 0;
  }

  .lk-view.is-subscriptions > .lk-view-head > .lk-card-head,
  .lk-view.is-activity > .lk-view-head > .lk-card-head {
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--lk-border);
  }

  .lk-view.is-subscriptions > .lk-view-head > .lk-card-head h2,
  .lk-view.is-activity > .lk-view-head > .lk-card-head h2 {
    font-size: clamp(24px, 2vw, 30px);
    letter-spacing: -0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  #account-view-root > .lk-view {
    animation: none !important;
  }

  .lk-view,
  .lk-view > *,
  .lk-nav-item,
  .lk-nav-item:hover,
  .lk-nav-item:active,
  .lk-lang-toggle,
  .lk-lang-btn,
  .lk-chip,
  .lk-plan,
  .lk-method,
  .lk-btn,
  .lk-loader-overlay,
  .lk-loader-card,
  .lk-sub-card,
  .lk-ref-card,
  .lk-card,
  .lk-invoice,
  .lk-support-bubble {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .lk-view.lk-view-transition.is-leaving,
  .lk-view.lk-view-transition.is-entering,
  .lk-view.lk-view-transition.is-entering > * {
    opacity: 1 !important;
  }
}

@media (max-width: 1024px) {
  .lk-shell {
    grid-template-columns: 1fr;
    padding-bottom: 128px;
  }

  .lk-sidebar {
    display: none;
  }

  .lk-mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid var(--lk-border);
    background: rgba(10, 20, 16, 0.88);
    padding: 10px 12px;
    position: sticky;
    top: calc(var(--cab-header-h, 86px) + 8px);
    z-index: 10;
  }

  .lk-view.is-payment {
    grid-template-columns: 1fr;
  }

  .lk-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    row-gap: 6px;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 60;
    border: 1px solid var(--lk-border);
    border-radius: 14px;
    background: rgba(7, 14, 11, 0.95);
    backdrop-filter: blur(14px);
    padding: 6px;
  }

  .lk-mobile-nav-item {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--lk-text);
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lk-mobile-nav-item.is-active {
    border-color: rgba(33, 243, 163, 0.4);
    background: rgba(33, 243, 163, 0.15);
  }
}

@media (max-width: 640px) {
  .lk-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lk-card {
    padding: 14px;
  }

  .lk-plan-grid,
  .lk-method-grid {
    grid-template-columns: 1fr;
  }

  .lk-sub-grid,
  .lk-sub-grid--activity,
  .lk-profile-grid {
    grid-template-columns: 1fr;
  }

  .lk-kv {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .lk-kv span,
  .lk-kv strong,
  .lk-card-head p,
  .lk-sub-card header span,
  .lk-sub-link,
  .lk-support-bubble,
  .lk-support-bubble p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lk-support-list {
    min-height: 280px;
    max-height: 54vh;
  }
}

.lk-free-trial-slots {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lk-text);
  background: linear-gradient(135deg, rgba(33, 243, 163, 0.16), rgba(12, 192, 126, 0.1));
  border: 1px solid rgba(33, 243, 163, 0.28);
  max-width: 100%;
  box-sizing: border-box;
}
