* {
  box-sizing: border-box;
}

:root {
  --bg: #070b15;
  --panel: rgba(13, 21, 39, 0.72);
  --border: rgba(132, 162, 227, 0.22);
  --text: #eef3ff;
  --muted: #9bacd4;
  --accent: #4f9cff;
  --accent2: #8d6dff;
}

[data-theme="light"] {
  --bg: #eef3ff;
  --panel: rgba(255, 255, 255, 0.78);
  --border: rgba(78, 116, 197, 0.3);
  --text: #10172a;
  --muted: #4c5c7f;
  --accent: #356dff;
  --accent2: #7a42ff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 8% 12%, #132344 0%, transparent 34%),
              radial-gradient(circle at 90% 10%, #3a145a 0%, transparent 34%),
              var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 18, 0.92);
  z-index: 99;
  transition: opacity 0.45s ease;
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #6cb6ff;
  border-right-color: #b070ff;
  animation: spin 0.9s linear infinite;
}

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

.top-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: sticky;
  top: 8px;
  z-index: 20;
  background: rgba(8, 14, 27, 0.62);
  border: 1px solid rgba(123, 154, 216, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  backdrop-filter: blur(8px);
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.95;
  padding: 7px 10px;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover {
  background: rgba(112, 146, 230, 0.2);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  cursor: pointer;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 70%, transparent 98%);
  pointer-events: none;
  z-index: -2;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  transition: transform 0.3s ease;
}

.orb-1 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 72% 72%, rgba(10, 20, 45, 0.26) 0%, rgba(10, 20, 45, 0) 50%),
    conic-gradient(from 145deg at 52% 48%, #60a5fa 0deg, #3b82f6 120deg, #2563eb 245deg, #60a5fa 360deg);
  top: -80px;
  left: -120px;
  animation: floatSlow 12s ease-in-out infinite;
}

.orb-2 {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 72% 70%, rgba(28, 8, 46, 0.28) 0%, rgba(28, 8, 46, 0) 52%),
    conic-gradient(from 165deg at 50% 50%, #c084fc 0deg, #a855f7 128deg, #7e22ce 250deg, #c084fc 360deg);
  right: -120px;
  top: 90px;
  animation: floatSlow 16s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 20px, 0); }
}

.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 26px 42px;
}

.site-footer {
  max-width: 1680px;
  margin: 0 auto;
  padding: 8px 26px 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  /* Явный цвет: не зависит от наследования body/--muted (иначе в части окружений текст «пропадает») */
  color: #d1d5db;
  position: relative;
  z-index: 2;
}

.site-footer p {
  margin: 0;
  color: inherit;
}

.site-footer-support {
  margin-bottom: 6px !important;
  font-size: 13px;
  color: #b9c7e4;
}

.site-footer-support a {
  color: #7fb6ff;
  text-decoration: none;
}

.site-footer-support a:hover {
  text-decoration: underline;
}

.site-footer-copy {
  color: inherit;
}

.site-footer-terms {
  margin-left: 0.65em;
  white-space: nowrap;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-terms:hover {
  opacity: 0.92;
}

body.landing-page .site-footer {
  color: #d1d5db !important;
  opacity: 1;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(96, 165, 250, 0.18);
}

body.landing-page .site-footer p {
  color: inherit !important;
}

body.landing-page .site-footer-terms {
  color: var(--lp-accent-bright, #60a5fa);
  text-decoration: none;
}

body.landing-page .site-footer-terms:hover {
  color: var(--lp-accent-top, #3b82f6);
  text-decoration: underline;
}

.hero {
  margin-bottom: 16px;
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(122deg, rgba(24, 45, 84, 0.7), rgba(51, 25, 82, 0.58));
  border: 1px solid rgba(129, 165, 236, 0.28);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 111, 255, 0.35), transparent 70%);
  right: -70px;
  top: -70px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #b9c9ff;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.hero-text {
  max-width: 860px;
  color: #ced8ee;
  margin: 0 0 18px;
  font-size: 16px;
}

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

.auth-panel {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.user-badge {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(131, 159, 224, 0.35);
  background: rgba(9, 18, 34, 0.62);
  color: #c4d4f8;
  font-size: 14px;
}

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

.grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 175, 255, 0.5);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.3);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 14, 28, 0.75);
  color: var(--text);
  border: 1px solid rgba(116, 149, 228, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(13, 21, 39, 0.96), rgba(10, 17, 32, 0.96));
  color: var(--text);
  border: 1px solid rgba(116, 149, 228, 0.35);
  border-radius: 12px;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, #9cb6ea 50%),
    linear-gradient(135deg, #9cb6ea 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus {
  outline: none;
  border-color: #74afff;
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Контрастные цвета пунктов select в выпадающем списке */
select option {
  background: #0f172a;
  color: #f8fafc;
}

select option:checked {
  background: #2563eb;
  color: #ffffff;
}

select option:disabled {
  background: #111827;
  color: #93a4c3;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
  /* Иначе после подгрузки тарифов справа строка грида становится очень высокой и в некоторых движках
     левая колонка визуально «растягивается», flex:1 в панелях раздувает тело «Оплаты» — блок настроек уезжает вниз. */
  overflow-anchor: none;
}

.cabinet-layout > .cabinet-left,
.cabinet-layout > aside.cabinet-right {
  align-self: start;
  min-height: 0;
  width: 100%;
  height: fit-content;
}

.cabinet-left .card,
.cabinet-right .card {
  margin-bottom: 16px;
}

.cabinet-right {
  position: sticky;
  top: 84px;
}

/* Боковая карточка «Продлить подписку» */
.cabinet-renew-card {
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(115, 115, 115, 0.45) !important;
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.96), rgba(28, 28, 28, 0.92)) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cabinet-renew-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cabinet-renew-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.24), rgba(34, 197, 94, 0.16));
  border: 1px solid rgba(74, 222, 128, 0.38);
}

.cabinet-renew-titles h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.cabinet-renew-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.renew-flow {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.9), rgba(28, 28, 28, 0.86));
  border: 1px solid rgba(115, 115, 115, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.renew-flow__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: #c5d2ef;
}

.renew-flow__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #e8f0ff;
  background: rgba(79, 156, 255, 0.2);
  border: 1px solid rgba(124, 163, 255, 0.35);
}

.renew-flow__text {
  padding-top: 1px;
}

.renew-target-block {
  margin-bottom: 14px;
}

.renew-target-block--disabled .renew-target-label {
  opacity: 0.7;
}

.renew-target-block--disabled .renew-select-wide {
  opacity: 0.8;
}

.renew-tariffs-empty {
  padding: 20px 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(124, 153, 223, 0.25);
  background: rgba(6, 10, 22, 0.4);
}

.renew-target-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b4c5e8;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.renew-select-wide {
  width: 100%;
  max-width: none;
}

.renew-tariffs-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9eb6e0;
}

.renew-tariffs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.renew-tariff-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 153, 223, 0.22);
  background: linear-gradient(160deg, rgba(16, 16, 16, 0.92), rgba(8, 8, 8, 0.9));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.renew-tariff-card:hover {
  border-color: rgba(124, 163, 255, 0.38);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.renew-tariff-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.renew-tariff-name {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0;
  line-height: 1.3;
}

.renew-tariff-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.renew-tariff-price {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.renew-tariff-price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}

.renew-tariff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.renew-tariff-actions .renew-btn {
  flex: 1 1 auto;
  min-width: 120px;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 12px;
}

.renew-btn--primary {
  background: linear-gradient(180deg, #3f6ea9, #2a4a73) !important;
  border: 1px solid rgba(174, 200, 238, 0.42);
  color: #f8fbff !important;
  box-shadow: 0 7px 18px rgba(33, 64, 106, 0.34);
}

.renew-btn--primary:hover {
  background: linear-gradient(180deg, #4d7fb9, #345a86) !important;
  border-color: rgba(198, 218, 246, 0.54);
  box-shadow: 0 9px 20px rgba(40, 76, 122, 0.38);
}

.renew-btn--ghost {
  background: rgba(42, 56, 89, 0.65) !important;
  border: 1px solid rgba(124, 163, 255, 0.28) !important;
  color: #dce6ff !important;
}

.renew-btn--ghost:hover {
  background: rgba(52, 68, 108, 0.85) !important;
  border-color: rgba(124, 163, 255, 0.45) !important;
}

.renew-result {
  margin-top: 12px;
  min-height: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 10px;
  background: rgba(6, 11, 24, 0.75);
  border: 1px solid rgba(124, 153, 223, 0.22);
  color: #d3dcf4;
}

.renew-result:empty {
  display: none;
  margin-top: 0;
  padding: 0;
  border: none;
}

@media (max-width: 980px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }
  .cabinet-right {
    position: static;
    top: auto;
  }
}

input:focus {
  outline: none;
  border-color: #74afff;
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.25);
}

.btn,
button {
  background: linear-gradient(135deg, var(--accent), #61c6ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61, 136, 255, 0.38);
}

.btn.secondary {
  background: linear-gradient(135deg, #2a3859, #394f7a);
}

.btn-mini {
  padding: 6px 10px;
  font-size: 12px;
  width: auto !important;
}

.btn.ghost-link {
  background: rgba(31, 50, 85, 0.55);
  border: 1px solid rgba(130, 170, 255, 0.35);
}

.result {
  background: rgba(6, 11, 24, 0.84);
  border: 1px solid rgba(124, 153, 223, 0.28);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  min-height: 120px;
  white-space: pre-wrap;
  line-height: 1.45;
  color: #d3dcf4;
}

.result a {
  color: #8ec4ff;
  text-decoration: none;
  font-weight: 600;
}

.result a:hover {
  text-decoration: underline;
}

.receipt-upload-panel {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(124, 153, 223, 0.32);
  border-radius: 14px;
  background: rgba(9, 16, 31, 0.8);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.receipt-upload-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.receipt-upload-label {
  display: block;
  margin-top: 2px;
}

.receipt-upload-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.receipt-upload-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(118, 125, 141, 0.46);
  background: rgba(8, 10, 14, 0.92);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.receipt-file-btn:hover {
  border-color: rgba(173, 198, 236, 0.66);
  background: rgba(12, 16, 24, 0.95);
}

.receipt-file-name {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.receipt-preview-wrap {
  border: 1px solid rgba(124, 153, 223, 0.28);
  border-radius: 12px;
  padding: 8px;
  background: rgba(7, 10, 16, 0.9);
}

.receipt-preview-img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

.receipt-upload-btn {
  width: 100%;
  min-height: 44px;
}

.receipt-upload-status {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

#receiptUploadModal .receipt-modal {
  width: min(760px, 94vw);
  max-height: 86vh;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(165deg, rgba(8, 8, 8, 0.98), rgba(14, 14, 14, 0.96)) !important;
  border-color: rgba(115, 115, 115, 0.45) !important;
}

#receiptUploadModal .receipt-upload-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  letter-spacing: -0.01em;
  margin: 0 52px 2px 0;
  word-break: break-word;
}

.receipt-payment-block {
  border: 1px solid rgba(124, 153, 223, 0.28);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 20, 26, 0.92), rgba(10, 12, 16, 0.88));
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#receiptUploadModal .receipt-upload-input {
  min-height: 0;
}

.receipt-card-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.receipt-card-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(118, 125, 141, 0.46);
  background: rgba(8, 10, 14, 0.92);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.receipt-card-copy-btn:hover {
  border-color: rgba(173, 198, 236, 0.66);
  background: rgba(12, 16, 24, 0.95);
  transform: translateY(-1px);
}

.receipt-card-copy-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(22, 101, 52, 0.22);
}

@media (max-width: 560px) {
  #receiptUploadModal .receipt-modal {
    width: min(96vw, 620px);
    max-height: 88vh;
    padding: 14px 12px 10px;
    gap: 8px;
  }

  #receiptUploadModal .receipt-upload-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 40px 2px 0;
  }
}

.receipt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 8, 16, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.receipt-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(124, 153, 223, 0.42);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(10, 18, 34, 0.98), rgba(18, 16, 32, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 18px;
  position: relative;
}

.receipt-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(124, 153, 223, 0.35);
  background: rgba(24, 35, 59, 0.95);
  color: #dbe7ff;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

/* Встроенные подтверждения (вместо window.confirm) */
.site-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.site-confirm-modal {
  width: min(440px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(100, 100, 110, 0.5);
  background: linear-gradient(168deg, #323236 0%, #1e1e22 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  padding: 22px 22px 18px;
}

.site-confirm-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: #fafafa;
  text-transform: uppercase;
}

.site-confirm-message {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #e8e8e8;
}

.site-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-confirm-btn {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-confirm-btn--cancel {
  background: #3d3d42;
  color: #c8c8c8;
  border-color: #5c5c64;
}

.site-confirm-btn--cancel:hover {
  background: #4a4a50;
  color: #f0f0f0;
}

.site-confirm-btn--ok {
  background: #c41e3a;
  color: #fff;
  border-color: #e85d73;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-confirm-btn--ok:hover {
  background: #d92544;
}

.site-confirm-btn--ok-safe {
  background: linear-gradient(180deg, #1f8ea3, #0f5f73);
  border-color: rgba(127, 182, 194, 0.4);
  box-shadow: 0 4px 14px rgba(15, 95, 115, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-confirm-btn--ok-safe:hover {
  background: linear-gradient(180deg, #2a9ab0, #12677c);
}

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

.list-item {
  background: linear-gradient(130deg, rgba(14, 29, 56, 0.84), rgba(29, 19, 50, 0.76));
  border: 1px solid rgba(112, 145, 222, 0.25);
  border-radius: 12px;
  padding: 12px;
  transform: translateY(10px);
  opacity: 0;
  animation: riseIn 0.45s ease forwards;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.draggable-item {
  cursor: grab;
}

.draggable-item:active {
  cursor: grabbing;
}

.drag-over {
  outline: 2px dashed rgba(120, 170, 255, 0.8);
  outline-offset: 2px;
}

.list-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 22px rgba(34, 63, 130, 0.35);
}

.list-item:nth-child(2) { animation-delay: 0.05s; }
.list-item:nth-child(3) { animation-delay: 0.1s; }
.list-item:nth-child(4) { animation-delay: 0.15s; }
.list-item:nth-child(5) { animation-delay: 0.2s; }
.list-item:nth-child(6) { animation-delay: 0.25s; }

@keyframes riseIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.stat-box {
  background: linear-gradient(160deg, rgba(12, 26, 52, 0.84), rgba(19, 23, 49, 0.72));
  border: 1px solid rgba(110, 149, 227, 0.3);
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-label {
  color: #a8badf;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(124, 153, 223, 0.2);
  background: rgba(25, 41, 73, 0.35);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: shimmer 1.3s infinite;
}

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

@media (min-width: 1300px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .container { padding: 18px 14px 28px; }
  .hero { padding: 22px 16px; }
  .row { flex-direction: column; }
  .btn, button { width: 100%; text-align: center; }
  .auth-panel { align-items: stretch; }
  .top-nav { gap: 8px; }
  .bg-grid { display: block; opacity: 0.38; }
  .bg-orb { opacity: 0.2; filter: blur(56px); }
  .receipt-modal-close {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
  }
}

/* ===== 2026 premium redesign override ===== */
:root {
  --bg: #070b16;
  --panel: rgba(12, 18, 34, 0.82);
  --panel-soft: rgba(16, 25, 44, 0.76);
  --border: rgba(130, 165, 233, 0.26);
  --text: #f3f7ff;
  --muted: #a6b7dd;
  --accent: #5ca6ff;
  --accent2: #8e6dff;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(61, 117, 255, 0.25) 0%, transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(148, 87, 255, 0.24) 0%, transparent 34%),
    linear-gradient(180deg, #060913 0%, #090f1c 38%, #060913 100%);
  color: var(--text);
}

.bg-grid {
  opacity: 0.56;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 38px 38px;
}

.top-nav {
  background: rgba(12, 18, 34, 0.72);
  border: 1px solid rgba(137, 171, 236, 0.26);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.top-nav a {
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}

.top-nav a:hover {
  background: rgba(95, 143, 255, 0.24);
}

.hero {
  border-radius: 28px;
  border: 1px solid rgba(150, 182, 247, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(129, 88, 255, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(80, 146, 255, 0.2) 0%, transparent 45%),
    linear-gradient(130deg, rgba(15, 28, 52, 0.9), rgba(16, 21, 39, 0.86));
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.32);
  padding: 42px;
}

.kicker {
  color: #c6d4ff;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 18px;
  line-height: 1.55;
  color: #d9e5ff;
  max-width: 900px;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(14, 24, 45, 0.88), rgba(16, 21, 38, 0.84));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.card h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

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

.stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stat-box {
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(20, 33, 60, 0.9), rgba(18, 22, 43, 0.84));
  border: 1px solid rgba(132, 171, 242, 0.24);
}

.stat-label {
  color: #abc0ea;
  font-weight: 600;
}

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

.list-item {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 161, 233, 0.25);
  background:
    linear-gradient(145deg, rgba(17, 30, 56, 0.9), rgba(18, 24, 44, 0.86));
}

input {
  border-radius: 12px;
  background: rgba(8, 15, 30, 0.9);
}

.btn,
button {
  border-radius: 12px;
  background: linear-gradient(135deg, #4f9cff, #8f6fff);
  box-shadow: 0 12px 28px rgba(86, 143, 255, 0.33);
}

.btn.secondary {
  background: linear-gradient(135deg, #253a68, #2f4b7e);
}

.btn.ghost-link {
  background: rgba(35, 53, 90, 0.48);
  border: 1px solid rgba(132, 171, 242, 0.3);
}

.result {
  border-radius: 14px;
  border: 1px solid rgba(129, 165, 236, 0.26);
  background: linear-gradient(160deg, rgba(10, 17, 33, 0.9), rgba(13, 18, 34, 0.85));
}

.receipt-modal {
  border-radius: 18px;
  border: 1px solid rgba(129, 165, 236, 0.38);
  background: linear-gradient(160deg, rgba(10, 19, 36, 0.98), rgba(15, 19, 35, 0.95));
}

@media (max-width: 980px) {
  .hero {
    padding: 28px 20px;
    border-radius: 22px;
  }
  .hero h1 {
    font-size: clamp(32px, 7.4vw, 46px);
  }
  .card h2 {
    font-size: 24px;
  }
}

/* ===== final full redesign pass ===== */
body {
  background:
    radial-gradient(circle at 0% 0%, rgba(32, 94, 255, 0.32) 0%, transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(154, 68, 255, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(34, 167, 255, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #04070f 0%, #070d1a 42%, #050915 100%);
}

.container {
  max-width: 1760px;
  padding: 28px 30px 46px;
}

.top-nav {
  border-radius: 18px;
  background: rgba(12, 18, 34, 0.66);
  border: 1px solid rgba(151, 186, 255, 0.22);
  backdrop-filter: blur(12px);
}

.top-nav a {
  color: #e8efff;
  font-size: 14px;
}

.hero {
  border-radius: 30px;
  padding: 50px 46px;
  border: 1px solid rgba(158, 190, 255, 0.26);
  background:
    radial-gradient(circle at 85% 20%, rgba(158, 90, 255, 0.26), transparent 38%),
    radial-gradient(circle at 15% 85%, rgba(90, 158, 255, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(13, 24, 48, 0.95), rgba(12, 19, 36, 0.92));
}

.hero h1 {
  font-size: clamp(40px, 5.3vw, 68px);
  font-weight: 800;
  line-height: 1.02;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 920px;
  color: #d5e3ff;
}

.card {
  border-radius: 22px;
  border: 1px solid rgba(145, 178, 246, 0.2);
  background:
    linear-gradient(155deg, rgba(14, 24, 44, 0.9), rgba(12, 18, 34, 0.86));
}

.card h2 {
  font-size: 30px;
  font-weight: 700;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.stat-box {
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(20, 36, 66, 0.88), rgba(16, 22, 40, 0.82));
}

.btn,
button {
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #4b98ff, #7f6bff);
}

.btn.secondary {
  background: linear-gradient(135deg, #1f345f, #2a4475);
}

.support-btn {
  background: linear-gradient(135deg, #00a96d, #00c18f) !important;
  color: #f2fff9 !important;
  box-shadow: 0 12px 26px rgba(0, 177, 122, 0.35) !important;
}

.support-btn:hover {
  box-shadow: 0 16px 30px rgba(0, 177, 122, 0.45) !important;
}

.list-item {
  border-radius: 16px;
  border: 1px solid rgba(133, 166, 236, 0.24);
  background: linear-gradient(145deg, rgba(18, 31, 59, 0.9), rgba(14, 21, 39, 0.88));
}

.result {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(9, 16, 30, 0.94), rgba(10, 15, 28, 0.9));
}

@media (max-width: 860px) {
  .container {
    padding: 18px 14px 28px;
  }
  .hero {
    padding: 30px 18px;
    border-radius: 22px;
  }
  .hero h1 {
    font-size: clamp(30px, 8.8vw, 44px);
  }
  .card h2 {
    font-size: 24px;
  }
}

/* layout/button stabilization fixes */
.grid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-box {
  padding: 16px;
}

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

.connect-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.connect-btn {
  min-width: 220px;
  text-align: center;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .connect-btn {
    width: 100%;
    min-width: 0;
  }
}

/* happ-like landing sections */
.landing-page .brand-chip {
  margin-right: auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  background: rgba(20, 20, 20, 0.92);
  font-weight: 700;
  font-size: 13px;
}

.landing-page .hero-mini {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(163, 163, 163, 0.35);
  background: rgba(23, 23, 23, 0.92);
  color: #d4d4d4;
  font-size: 12px;
  margin: 0 0 14px;
}

.landing-page .hero h1 span {
  background: linear-gradient(90deg, #fafafa, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-page .fixed-btn {
  min-width: 220px;
  text-align: center;
  white-space: nowrap;
}

.landing-page .trust-grid {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.landing-page .section-kicker {
  color: var(--lp-muted, #a3a3a3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  margin: 0 0 10px;
}

.landing-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.landing-page .feature-card {
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  border-radius: 14px;
  background: linear-gradient(160deg, var(--lp-card), var(--lp-card-2)) !important;
  padding: 16px;
}

.landing-page .feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.landing-page .feature-card p {
  margin: 0;
  color: var(--lp-muted, #a3a3a3);
  line-height: 1.5;
}

.landing-page .lp-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 10px;
}

.landing-page .lp-quick-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lp-text, #fafafa);
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.landing-page .lp-quick-pill:hover {
  border-color: var(--lp-accent-border, rgba(127, 182, 194, 0.48));
  background: var(--lp-accent-hint-bg, rgba(8, 47, 73, 0.28));
  transform: translateY(-1px);
}

html[data-theme="light"] .landing-page .lp-quick-pill {
  background: rgba(255, 255, 255, 0.65);
  color: var(--lp-text, #0f172a);
}

html[data-theme="light"] .landing-page .lp-quick-pill:hover {
  background: rgba(224, 242, 254, 0.95);
}

.landing-page .lp-feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 18px;
  background: var(--lp-accent-hint-bg, rgba(8, 47, 73, 0.28));
  border: 1px solid var(--lp-accent-hint-border, rgba(34, 211, 238, 0.28));
}

.landing-page .lp-feature.feature-card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.landing-page .lp-feature.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--lp-accent-border-soft, rgba(76, 145, 160, 0.38));
}

.landing-page .lp-admin-stats.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.landing-page .lp-admin-stats .stat-box {
  margin: 0;
}

.landing-page .lp-user-badge {
  margin-top: 10px;
}

.landing-page .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.landing-page .tag-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  background: rgba(24, 24, 24, 0.9);
  color: var(--lp-muted, #a3a3a3);
  font-size: 12px;
}

.landing-page .server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.landing-page .server-card {
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  border-radius: 14px;
  background: linear-gradient(160deg, var(--lp-card), var(--lp-card-2)) !important;
  padding: 14px;
}

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

.landing-page .server-head span.server-status-pill {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
}

.landing-page .server-head span.server-status-pill--online {
  color: #86efac;
  background: rgba(22, 101, 52, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.48);
  animation: none !important;
}

.landing-page .server-head span.server-status-pill--offline {
  color: #e5e5e5;
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(163, 163, 163, 0.35);
}

.landing-page .server-card p {
  margin: 6px 0;
  color: var(--lp-muted, #a3a3a3);
}

.landing-page .server-card .server-name {
  color: var(--lp-text, #fafafa);
  font-weight: 600;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Inter, "Segoe UI", Arial, sans-serif;
  font-variant-emoji: emoji;
}

.landing-page .faq-list details {
  border: 1px solid var(--lp-border, rgba(115, 115, 115, 0.45));
  border-radius: 12px;
  background: linear-gradient(160deg, var(--lp-card), var(--lp-card-2)) !important;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.landing-page .faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.landing-page .faq-list p {
  margin: 10px 0 0;
  color: var(--lp-muted, #a3a3a3);
  line-height: 1.5;
}

.landing-page .cta-block {
  text-align: center;
}

.landing-page .cta-actions-row {
  justify-content: center;
}

.landing-page .start-btn {
  background: linear-gradient(180deg, var(--lp-accent-top, #3b82f6), var(--lp-accent, #2563eb)) !important;
  border: 1px solid var(--lp-accent-border, rgba(147, 197, 253, 0.52)) !important;
  box-shadow: 0 12px 36px var(--lp-accent-glow, rgba(37, 99, 235, 0.38)) !important;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing-page .start-btn:hover {
  background: linear-gradient(180deg, #60a5fa, var(--lp-accent-hover, #1d4ed8)) !important;
  border-color: rgba(191, 219, 254, 0.75) !important;
  transform: translateY(-1px) scale(1.01);
}

#renewResult.renew-result:empty {
  display: none;
}

#signupResult:empty,
#signupCredentials:empty {
  display: none;
}

#webAuthResult:empty {
  display: none;
}

@media (max-width: 860px) {
  .landing-page .fixed-btn {
    width: 100%;
    min-width: 0;
  }
  .landing-page .trust-grid {
    grid-template-columns: 1fr;
  }
  .landing-page .trust-grid .stat-box {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .landing-page .trust-grid .stat-label,
  .landing-page .trust-grid .stat-value {
    width: 100%;
    text-align: center;
  }
  .landing-page .trust-grid .stat-value {
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 560px) {
  .landing-page .hero {
    padding: 22px 14px;
  }
  .landing-page .hero h1 {
    font-size: clamp(24px, 8.2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .landing-page .trust-grid {
    margin-top: 14px;
    gap: 8px;
  }
  .landing-page .trust-grid .stat-box {
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 4px;
  }
  .landing-page .trust-grid .stat-label {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .landing-page .trust-grid .stat-value {
    font-size: 30px;
    line-height: 0.95;
  }
}

.tariffs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tariff-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.tariff-title {
  font-size: 20px;
  font-weight: 700;
  color: #f3f4f6;
}

.tariff-price {
  font-size: 22px;
  font-weight: 800;
  color: #f3f4f6;
}

.tariff-days {
  font-size: 14px;
  color: #9ca3af;
}

body.landing-page .tariff-days {
  color: var(--lp-muted, #a3a3a3);
}

.tariff-action-btn {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* subscription-theme: монохром + анимированный фон (сетка / блики, как на странице подписки) */
@keyframes lp-orbit-glow {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(1);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.04);
  }
}

@keyframes lp-grid-slide {
  0% {
    opacity: 0.28;
    transform: scale(1);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.28;
    transform: scale(1);
  }
}

.landing-page {
  --lp-bg-0: #000000;
  --lp-bg-1: #0f0f0f;
  --lp-card: rgba(18, 18, 18, 0.96);
  --lp-card-2: rgba(28, 28, 28, 0.92);
  --lp-border: rgba(115, 115, 115, 0.45);
  --lp-border-strong: rgba(212, 212, 212, 0.55);
  --lp-text: #fafafa;
  --lp-muted: #a3a3a3;
  --lp-accent: #0f5f73;
  --lp-accent-hover: #0b4f61;
  --lp-accent-top: #1f8ea3;
  --lp-accent-bright: #7fb6c2;
  --lp-accent-glow: rgba(15, 95, 115, 0.26);
  --lp-accent-border: rgba(127, 182, 194, 0.34);
  --lp-accent-border-soft: rgba(76, 145, 160, 0.28);
  --lp-accent-hint-bg: rgba(8, 47, 73, 0.28);
  --lp-accent-hint-border: rgba(34, 211, 238, 0.38);
}

html[data-theme="light"] .landing-page {
  --lp-card: rgba(255, 255, 255, 0.95);
  --lp-card-2: rgba(246, 248, 252, 0.92);
  --lp-border: rgba(148, 163, 184, 0.35);
  --lp-border-strong: rgba(100, 116, 139, 0.45);
  --lp-text: #0f172a;
  --lp-muted: #475569;
}

body.landing-page {
  position: relative;
  background-color: #000000;
  background-image: linear-gradient(165deg, #000000 0%, #0a0a0a 42%, #141414 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.landing-page > main.container,
body.landing-page .sn-page > main.container {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

body.landing-page > footer.site-footer,
body.landing-page .sn-page > footer.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 55% at 50% -18%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 65% 45% at 108% 92%, rgba(255, 255, 255, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 40% at -8% 78%, rgba(255, 255, 255, 0.06), transparent 48%);
  animation: lp-orbit-glow 20s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body.landing-page::before,
  .landing-page .bg-grid {
    animation: none !important;
  }

  body.landing-page main.container > header.hero::before,
  body.landing-page main.container > section.card.reveal::before,
  body.landing-page .feature-card::before,
  body.landing-page .server-card::before,
  body.landing-page .tariff-card::before {
    animation: none !important;
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .bg-orb {
    filter: blur(34px);
    opacity: 0.24;
  }

  .top-nav,
  .card {
    backdrop-filter: none;
  }

  .card,
  .top-nav a,
  .btn,
  button {
    transition: none;
  }
}

.landing-page .bg-grid {
  opacity: 0.62;
  animation: lp-grid-slide 16s ease-in-out infinite;
  transform-origin: 50% 50%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
}

.landing-page .orb-1 {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 70% 72%, rgba(10, 12, 20, 0.28) 0%, rgba(10, 12, 20, 0) 54%),
    conic-gradient(from 140deg at 50% 50%, #a3a3a3 0deg, #737373 130deg, #404040 250deg, #a3a3a3 360deg) !important;
}

.landing-page .orb-2 {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 72% 72%, rgba(30, 30, 30, 0.26) 0%, rgba(30, 30, 30, 0) 56%),
    conic-gradient(from 165deg at 50% 50%, #e5e7eb 0deg, #d1d5db 126deg, #9ca3af 248deg, #e5e7eb 360deg) !important;
}

.landing-page .hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 72%) !important;
}

/* Мягкий световой «круг» внутри карточки (вместо бегущей полоски по рамке) */
@keyframes lp-soft-orb {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  40% {
    opacity: 0.68;
    transform: scale(1.07);
  }
  72% {
    opacity: 0.48;
    transform: scale(0.96);
  }
}

body.landing-page main.container > header.hero,
body.landing-page main.container > section.card.reveal,
body.landing-page .feature-card,
body.landing-page .server-card,
body.landing-page .tariff-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.landing-page main.container > header.hero::before,
body.landing-page main.container > section.card.reveal::before,
body.landing-page .feature-card::before,
body.landing-page .server-card::before,
body.landing-page .tariff-card::before {
  content: none;
  position: absolute;
  left: -14%;
  right: -14%;
  top: -20%;
  bottom: -20%;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 52% at 72% 36%,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.1) 42%,
    transparent 72%
  );
  filter: blur(32px);
  opacity: 0.52;
  transform-origin: 72% 36%;
  animation: lp-soft-orb 14s ease-in-out infinite;
  will-change: transform, opacity;
}

body.landing-page .feature-card::before,
body.landing-page .server-card::before,
body.landing-page .tariff-card::before {
  animation-duration: 19s;
  filter: blur(26px);
  opacity: 0.44;
  background: radial-gradient(
    ellipse 62% 56% at 70% 34%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    transparent 74%
  );
}

body.landing-page .loader-ring {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #e5e5e5;
  border-right-color: #737373;
}

.landing-page .top-nav,
.landing-page .card,
.landing-page .hero,
.landing-page .feature-card,
.landing-page .server-card,
.landing-page .faq-list details,
.landing-page .brand-chip,
.landing-page .hero-mini,
.landing-page .tag-pill,
.landing-page .stat-box {
  background: linear-gradient(160deg, var(--lp-card), var(--lp-card-2)) !important;
  border-color: var(--lp-border) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

body.landing-page .card:hover,
body.landing-page .hero:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6) !important;
}

body.landing-page .list-item:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5) !important;
}

.landing-page .hero h1,
.landing-page .card h2,
.landing-page .feature-card h3,
.landing-page .server-head strong,
.landing-page .faq-list summary {
  color: var(--lp-text);
}

.landing-page .hero-text,
.landing-page .muted,
.landing-page .feature-card p,
.landing-page .server-card p,
.landing-page .faq-list p,
.landing-page .section-kicker,
.landing-page .stat-label,
.landing-page .tag-pill {
  color: var(--lp-muted);
}

.landing-page .stat-value {
  color: var(--lp-text);
}

.landing-page .top-nav a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.landing-page .btn,
.landing-page button {
  background: linear-gradient(135deg, #111827, #020617) !important;
  border: 1px solid var(--lp-border) !important;
  color: #f9fafb !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65) !important;
}

.landing-page .btn:hover,
.landing-page button:hover {
  border-color: var(--lp-border-strong) !important;
  transform: translateY(-1px);
}

.landing-page .support-btn {
  background: linear-gradient(135deg, #111827, #020617) !important;
  border-color: var(--lp-border-strong) !important;
}

body.landing-page .result a {
  color: #d4d4d4 !important;
}

body.landing-page input:focus,
body.landing-page select:focus {
  border-color: rgba(147, 197, 253, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22) !important;
}

/* cabinet/admin flatten dark style */
body.landing-page .card,
body.landing-page .stat-box,
body.landing-page .list-item,
body.landing-page .result,
body.landing-page input,
body.landing-page .receipt-payment-block {
  background: linear-gradient(165deg, #101010, #0a0a0a) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.landing-page .btn,
body.landing-page button {
  background: linear-gradient(180deg, #1c1c1c, #0f0f0f) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f5f5f5 !important;
}

body.landing-page .btn:hover,
body.landing-page button:hover {
  background: linear-gradient(180deg, #2a2a2a, #171717) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Акцентные кнопки на лендинге */
body.landing-page a.btn.primary,
body.landing-page .btn.primary,
body.landing-page .start-btn,
body.landing-page button.tariff-action-btn,
body.landing-page .tariff-action-btn {
  background: linear-gradient(180deg, var(--lp-accent-top, #3b82f6), var(--lp-accent, #2563eb)) !important;
  border: 1px solid var(--lp-accent-border, rgba(147, 197, 253, 0.52)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px var(--lp-accent-glow, rgba(37, 99, 235, 0.38)) !important;
}

body.landing-page a.btn.primary:hover,
body.landing-page .btn.primary:hover,
body.landing-page .start-btn:hover,
body.landing-page button.tariff-action-btn:hover,
body.landing-page .tariff-action-btn:hover {
  background: linear-gradient(180deg, #60a5fa, var(--lp-accent-hover, #1d4ed8)) !important;
  border-color: rgba(191, 219, 254, 0.65) !important;
}

/* Тарифные кнопки: спокойный контраст к основному акценту */
body.landing-page button.tariff-action-btn,
body.landing-page .tariff-action-btn {
  background: linear-gradient(180deg, #4674af, #2d4e79) !important;
  border-color: rgba(179, 203, 239, 0.42) !important;
  box-shadow: 0 7px 18px rgba(35, 67, 111, 0.34) !important;
}

body.landing-page button.tariff-action-btn:hover,
body.landing-page .tariff-action-btn:hover {
  background: linear-gradient(180deg, #5987c2, #396292) !important;
  border-color: rgba(206, 222, 246, 0.54) !important;
}

/* Отдельный стиль для кнопки "Открыть профиль" в hero */
body.landing-page .hero-actions .profile-open-btn,
body.landing-page a.btn.primary.profile-open-btn {
  background: linear-gradient(180deg, #4a78b3, #2f507a) !important;
  border: 1px solid rgba(182, 206, 241, 0.46) !important;
  color: #f8fbff !important;
  box-shadow: 0 10px 22px rgba(35, 67, 110, 0.36) !important;
}

body.landing-page .hero-actions .profile-open-btn:hover,
body.landing-page a.btn.primary.profile-open-btn:hover {
  background: linear-gradient(180deg, #5b8bc6, #3b6393) !important;
  border-color: rgba(207, 223, 246, 0.6) !important;
}

/* Продление подписки: не затирать оформление глобальными flat-стилями кабинета */
body.landing-page .cabinet-renew-card {
  background: linear-gradient(160deg, var(--lp-card, rgba(18, 18, 18, 0.96)), var(--lp-card-2, rgba(28, 28, 28, 0.92))) !important;
  border-color: var(--lp-border, rgba(115, 115, 115, 0.45)) !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.landing-page .cabinet-renew-titles h2 {
  color: var(--lp-text, #fafafa) !important;
}

body.landing-page .renew-flow {
  background: linear-gradient(160deg, var(--lp-card, rgba(18, 18, 18, 0.9)), var(--lp-card-2, rgba(28, 28, 28, 0.86))) !important;
  border-color: var(--lp-border, rgba(115, 115, 115, 0.35)) !important;
}

body.landing-page .renew-tariff-card {
  background: linear-gradient(160deg, rgba(16, 16, 16, 0.94), rgba(8, 8, 8, 0.92)) !important;
  border-color: rgba(118, 125, 141, 0.35) !important;
}

body.landing-page .renew-tariff-card:hover {
  border-color: rgba(150, 160, 185, 0.5) !important;
}

body.landing-page .renew-result {
  background: rgba(12, 14, 18, 0.9) !important;
  border-color: rgba(118, 125, 141, 0.32) !important;
}

/* Несколько подписок: подсказка вместо «нет активной» + подсветка строк, синхронных со селектом продления */
body.landing-page .result.result--cabinet-multi-sub {
  background: var(--lp-accent-hint-bg, rgba(30, 58, 138, 0.22)) !important;
  border-color: var(--lp-accent-hint-border, rgba(96, 165, 250, 0.38)) !important;
  color: #d1fae5 !important;
  line-height: 1.55;
}

body.landing-page .cabinet-subscription-wrap--has-picker .cabinet-sub-grid--details .stat-box {
  border-color: var(--lp-accent-border-soft, rgba(96, 165, 250, 0.35)) !important;
}

body.landing-page .cabinet-subscription-wrap .cabinet-sub-panel {
  text-align: left;
}

body.landing-page .cabinet-sub-picker {
  margin-bottom: 14px;
}

body.landing-page .cabinet-sub-picker-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted, #a3a3a3);
  margin-bottom: 8px;
}

body.landing-page .cabinet-display-sub-select {
  width: 100%;
  max-width: 420px;
  min-height: 42px;
  border-radius: 12px;
}

body.landing-page .cabinet-sub-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

body.landing-page .cabinet-sub-empty {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

body.landing-page .cabinet-sub-grid--details {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 4px;
}

body.landing-page .cabinet-sub-connect {
  margin-top: 12px;
}

body.landing-page .cabinet-sub-connect-lead {
  margin: 0 0 8px;
  font-size: 12px;
}

@media (max-width: 640px) {
  body.landing-page .cabinet-sub-grid--details {
    grid-template-columns: 1fr !important;
  }
}

body.landing-page button.renew-btn--primary,
body.landing-page .renew-btn--primary {
  background: linear-gradient(180deg, #3f6ea9, #2a4a73) !important;
  border: 1px solid rgba(174, 200, 238, 0.42) !important;
  color: #f8fbff !important;
  box-shadow: 0 7px 18px rgba(33, 64, 106, 0.34) !important;
}

body.landing-page button.renew-btn--primary:hover,
body.landing-page .renew-btn--primary:hover {
  background: linear-gradient(180deg, #4d7fb9, #345a86) !important;
  border-color: rgba(198, 218, 246, 0.54) !important;
}

body.landing-page button.renew-btn--ghost,
body.landing-page .renew-btn--ghost {
  background: rgba(22, 26, 36, 0.95) !important;
  border: 1px solid rgba(118, 125, 141, 0.45) !important;
  color: #e5e7eb !important;
}

body.landing-page button.renew-btn--ghost:hover,
body.landing-page .renew-btn--ghost:hover {
  background: rgba(30, 36, 48, 0.98) !important;
  border-color: rgba(170, 177, 191, 0.55) !important;
}

#guestAuthChoiceModal .receipt-modal {
  width: min(700px, 94vw);
  min-height: 0;
  height: auto;
  max-height: 88vh;
  padding: 20px 18px 16px;
  background: linear-gradient(165deg, rgba(8, 8, 8, 0.98), rgba(14, 14, 14, 0.96)) !important;
  border-color: rgba(115, 115, 115, 0.45) !important;
}

#guestAuthChoiceModal .receipt-upload-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin: 2px 36px 14px 6px;
}

#guestAuthChoiceModal .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

#guestAuthChoiceModal .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

#webAuthModal .receipt-modal {
  width: min(760px, 94vw);
  min-height: 0;
  height: auto;
  max-height: 88vh;
  padding: 22px 20px 18px;
  background: linear-gradient(165deg, rgba(8, 8, 8, 0.98), rgba(14, 14, 14, 0.96)) !important;
  border-color: rgba(115, 115, 115, 0.45) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#webAuthModal .receipt-upload-title {
  font-size: 44px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 8px 42px 8px 10px;
}

#webAuthModal .web-auth-subtitle {
  margin: 0 10px 12px;
  text-align: center;
  color: #9fb3d6;
  font-size: 13px;
  line-height: 1.4;
}

#webAuthModal .row {
  margin: 10px 0;
}

#webAuthModal #webAuthSwitchLogin,
#webAuthModal #webAuthSwitchRegister {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(156, 163, 175, 0.3) !important;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(12, 12, 12, 0.92)) !important;
  color: #d5dfef !important;
}

#webAuthModal #webAuthSwitchLogin.active,
#webAuthModal #webAuthSwitchRegister.active {
  background: linear-gradient(180deg, #3f6ea9, #2a4a73) !important;
  border-color: rgba(174, 200, 238, 0.54) !important;
  color: #fafafa !important;
  box-shadow: 0 8px 18px rgba(33, 64, 106, 0.34) !important;
}

#webAuthModal #webAuthLoginBox,
#webAuthModal #webAuthRegisterBox {
  border: 1px solid rgba(118, 125, 141, 0.34);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(18, 20, 26, 0.92), rgba(10, 12, 16, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.24);
}

#webAuthModal input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(118, 125, 141, 0.42);
  background: rgba(7, 10, 16, 0.95);
  color: #f8fafc;
  padding: 11px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#webAuthModal input::placeholder {
  color: #7f8ea8;
}

#webAuthModal input:focus {
  border-color: rgba(124, 163, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(11, 16, 27, 0.97);
}

#webAuthModal #webAuthForgotToggleBtn {
  color: #a8badb !important;
}

#webAuthModal #webAuthForgotToggleBtn:hover {
  color: #c4d5f1 !important;
}

#webAuthModal #webAuthLoginBtn,
#webAuthModal #webAuthRegisterBtn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(180deg, #3f6ea9, #2a4a73) !important;
  border: 1px solid rgba(174, 200, 238, 0.5) !important;
  color: #f8fbff !important;
  box-shadow: 0 9px 20px rgba(33, 64, 106, 0.32) !important;
}

/* Кнопка "Войти" в режиме логина: под полями и по своей ширине */
#webAuthModal #webAuthLoginBox .row:last-child {
  justify-content: stretch;
}

#webAuthModal #webAuthLoginBtn:hover,
#webAuthModal #webAuthRegisterBtn:hover {
  background: linear-gradient(180deg, #4d7fb9, #345a86) !important;
  border-color: rgba(198, 218, 246, 0.58) !important;
}

#webAuthModal #webAuthResult {
  margin-top: 12px;
  border-radius: 12px;
  min-height: 0;
  padding: 11px 13px;
  background: rgba(9, 12, 18, 0.86);
  border: 1px solid rgba(118, 125, 141, 0.36);
  color: #d9e4f7;
}

#webAuthModal #webAuthResult:empty {
  display: none;
}

@media (max-width: 560px) {
  #guestAuthChoiceModal .receipt-modal {
    height: auto;
    min-height: auto;
    padding: 16px 14px 12px;
  }

  #guestAuthChoiceModal .receipt-upload-title {
    font-size: 20px;
    margin: 0 30px 12px 2px;
  }

  #webAuthModal .receipt-modal {
    height: auto;
    min-height: auto;
    padding: 16px 14px 12px;
  }

  #webAuthModal .receipt-upload-title {
    font-size: 30px;
    margin: 0 30px 12px 2px;
  }

  #webAuthModal .web-auth-subtitle {
    font-size: 12px;
    margin: 0 4px 10px;
  }

  #webAuthModal .row {
    flex-direction: column !important;
  }
}

/* Кабинет: списки с «воздухом» и фиксированной нижней панелью кнопок */
.cabinet-panel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.cabinet-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.cabinet-panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-text, #fafafa);
}

.cabinet-panel-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-panel-subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.cabinet-panel-filters {
  display: flex;
  gap: 8px;
}

.cabinet-filter-btn {
  min-width: 96px;
}

.cabinet-filter-btn--active {
  border-color: rgba(212, 212, 212, 0.55) !important;
  background: rgba(55, 55, 55, 0.95) !important;
  color: #fafafa !important;
}

.cabinet-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  max-height: 400px;
  margin-top: 12px;
  padding: 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(115, 115, 115, 0.22);
  background: rgba(0, 0, 0, 0.28);
  overflow-y: auto;
}

.cabinet-panel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 140px;
}

.cabinet-panel-list:has(> .cabinet-empty) {
  justify-content: center;
  align-items: center;
}

.cabinet-empty {
  text-align: center;
  max-width: 280px;
  padding: 28px 16px;
}

.cabinet-empty-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text, #fafafa);
  opacity: 0.9;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cabinet-empty-hint {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--lp-muted, #a3a3a3);
  opacity: 0.88;
}

.cabinet-panel-foot {
  flex-shrink: 0;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(115, 115, 115, 0.22);
}

.cabinet-panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cabinet-panel-toolbar--pager .cabinet-fixed-btn {
  flex: 0 0 110px;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cabinet-page-label {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--lp-muted, #a3a3a3);
  white-space: nowrap;
}

.user-directory-row .user-directory-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.user-directory-line {
  font-size: 14px;
  line-height: 1.35;
}

.user-directory-sub {
  line-height: 1.45;
}

body.landing-page .cabinet-panel .cabinet-panel-list .list-item {
  border-radius: 12px;
  padding: 12px 14px;
}

@media (max-width: 520px) {
  .cabinet-panel-toolbar--pager {
    justify-content: center;
  }

  .cabinet-page-label {
    width: 100%;
    margin-left: 0;
    text-align: center;
    order: 3;
  }
}

/* Настройки аккаунта — та же сетка, что «Оплаты» / «Устройства», сразу под списком оплат */
.cabinet-account-panel {
  min-height: 0 !important;
  margin-top: 0;
}

.cabinet-account-panel .cabinet-panel-head {
  margin-bottom: 0;
}

.cabinet-account-panel-inner {
  margin-top: 12px;
  padding: 20px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(115, 115, 115, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

body.landing-page .cabinet-account-panel-inner {
  background: rgba(10, 12, 16, 0.55) !important;
  border-color: rgba(118, 125, 141, 0.28) !important;
}

.cabinet-account-panel .cabinet-account-pw-row {
  flex-direction: column;
  align-items: stretch;
  margin-top: 12px;
}

.cabinet-account-panel .cabinet-account-input {
  max-width: none;
  width: 100%;
}

.cabinet-account-panel .cabinet-account-pw-btn {
  width: 100%;
}

/* Старый класс на случай кэшированного HTML */
.cabinet-account-footer {
  margin-top: 14px;
  padding: 14px 16px !important;
  border-radius: 14px;
  border: 1px solid rgba(115, 115, 115, 0.35);
  background: linear-gradient(160deg, rgba(12, 12, 12, 0.95), rgba(20, 20, 20, 0.92));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 720px;
}

.cabinet-account-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--lp-text, #fafafa);
  letter-spacing: 0.02em;
}

.cabinet-account-telegram {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-muted, #a3a3a3);
  margin: 6px 0 10px;
}

.cabinet-account-telegram:empty {
  display: none;
}

.cabinet-account-telegram .telegram-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.cabinet-account-msg .telegram-link-help {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
}

.cabinet-account-msg .telegram-link-url-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.cabinet-account-login {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-muted, #a3a3a3);
  word-break: break-word;
  margin-bottom: 2px;
}

.cabinet-account-login:empty {
  display: none;
}

.cabinet-account-pw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.cabinet-account-field {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.cabinet-account-input {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: none;
  min-height: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
  padding: 5px 9px !important;
}

.cabinet-account-pw-btn {
  min-height: 34px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  width: 100%;
}

.cabinet-account-toggle-btn {
  flex: 0 0 auto;
  min-height: 32px !important;
  height: 32px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.cabinet-account-msg {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  min-height: 0 !important;
  white-space: normal;
}

.cabinet-account-msg:empty {
  display: none;
}

.cabinet-stats-inline {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 1100px) {
  .cabinet-stats-inline {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
}

/* Mobile performance pass: keep visuals but reduce heavy effects */
@media (max-width: 900px) {
  body.landing-page main.container > header.hero::before,
  body.landing-page main.container > section.card.reveal::before,
  body.landing-page .feature-card::before,
  body.landing-page .server-card::before,
  body.landing-page .tariff-card::before {
    content: none !important;
    animation: none !important;
    filter: none !important;
  }

  body.landing-page .top-nav,
  .receipt-modal-overlay,
  .site-confirm-overlay {
    backdrop-filter: none !important;
  }

  .landing-page .card,
  .landing-page .hero,
  .landing-page .feature-card,
  .landing-page .server-card,
  .landing-page .tariff-card,
  body.landing-page .list-item {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38) !important;
  }

  .reveal {
    transform: none !important;
    transition: opacity 0.25s ease !important;
  }
}

@media (max-width: 700px) {
  body.landing-page .container {
    padding: 12px 10px 20px !important;
  }

  body.landing-page .site-footer {
    padding: 6px 12px 22px !important;
    font-size: 12px !important;
  }

  body.landing-page .top-nav {
    gap: 6px !important;
    padding: 7px 8px !important;
    border-radius: 12px !important;
  }

  body.landing-page .top-nav a,
  body.landing-page .brand-chip {
    padding: 6px 9px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  body.landing-page .hero,
  body.landing-page .card {
    border-radius: 14px !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
  }

  body.landing-page .hero h1 {
    font-size: clamp(24px, 8vw, 32px) !important;
    line-height: 1.08 !important;
  }

  body.landing-page .hero-text,
  body.landing-page .muted {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body.landing-page .card h2 {
    font-size: 19px !important;
    margin-bottom: 6px !important;
  }

  body.landing-page .row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 8px 0 !important;
  }

  body.landing-page .btn,
  body.landing-page button {
    padding: 8px 11px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
  }

  body.landing-page .fixed-btn {
    width: auto !important;
    min-width: 0 !important;
  }

  body.landing-page .list-item {
    border-radius: 10px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    min-height: 42px !important;
  }

  body.landing-page input,
  body.landing-page select {
    height: 38px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.landing-page .stat-box {
    padding: 9px !important;
    border-radius: 10px !important;
  }

  body.landing-page .stat-label {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  body.landing-page .stat-value {
    font-size: 15px !important;
  }

  .cabinet-stats-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .landing-page .feature-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .landing-page .feature-grid .feature-card {
    flex: 0 0 86%;
    min-width: 86%;
    scroll-snap-align: start;
  }

  .landing-page .feature-grid::-webkit-scrollbar {
    height: 4px;
  }

  .landing-page .trust-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .landing-page .trust-grid .stat-box {
    min-width: 0 !important;
    padding: 8px 6px !important;
  }

  .landing-page .trust-grid .stat-label {
    font-size: 9px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
  }

  .landing-page .trust-grid .stat-value {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .landing-page .server-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .landing-page .server-grid .server-card {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: start;
  }

  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .tariff-card {
    min-height: 96px !important;
    padding: 8px !important;
    gap: 4px !important;
  }

  .tariff-title {
    font-size: 14px !important;
  }

  .tariff-price {
    font-size: 16px !important;
  }

  .tariff-days {
    font-size: 11px !important;
  }
}

/* ================= Light Theme Polish ================= */
html[data-theme="light"] body.landing-page {
  color: #0f172a;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.08) 0%, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(148, 163, 184, 0.1) 0%, transparent 44%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fc 52%, #eef4fb 100%);
}

html[data-theme="light"] body.landing-page::before {
  background:
    radial-gradient(ellipse 100% 55% at 50% -18%, rgba(59, 130, 246, 0.08), transparent 58%),
    radial-gradient(ellipse 65% 45% at 108% 92%, rgba(15, 118, 110, 0.06), transparent 52%),
    radial-gradient(ellipse 55% 40% at -8% 78%, rgba(148, 163, 184, 0.06), transparent 48%);
}

html[data-theme="light"] .landing-page .bg-grid {
  opacity: 0.56;
  background-image: linear-gradient(rgba(71, 85, 105, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 85, 105, 0.09) 1px, transparent 1px);
}

html[data-theme="light"] .bg-orb {
  opacity: 0.32;
  filter: blur(52px);
}

/* Светлая тема: мягкие тёмные «шарики» (в т.ч. страницы без .landing-page) */
html[data-theme="light"] .orb-1 {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 72% 72%, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0) 52%),
    conic-gradient(from 150deg at 50% 50%, #334155 0deg, #0f172a 132deg, #020617 252deg, #334155 360deg) !important;
}

html[data-theme="light"] .orb-2 {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 72% 70%, rgba(2, 6, 23, 0.28) 0%, rgba(2, 6, 23, 0) 52%),
    conic-gradient(from 170deg at 50% 50%, #1f2937 0deg, #111827 130deg, #020617 250deg, #1f2937 360deg) !important;
}

html[data-theme="light"] body.landing-page .top-nav,
html[data-theme="light"] body.landing-page .card,
html[data-theme="light"] body.landing-page .feature-card,
html[data-theme="light"] body.landing-page .server-card,
html[data-theme="light"] body.landing-page .tariff-card,
html[data-theme="light"] body.landing-page .stat-box,
html[data-theme="light"] body.landing-page .list-item,
html[data-theme="light"] body.landing-page .result {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.94)) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme="light"] body.landing-page .hero h1,
html[data-theme="light"] body.landing-page .card h2,
html[data-theme="light"] body.landing-page .feature-card h3,
html[data-theme="light"] body.landing-page .server-head strong,
html[data-theme="light"] body.landing-page .tariff-title,
html[data-theme="light"] body.landing-page .tariff-price,
html[data-theme="light"] body.landing-page .stat-value {
  color: #0b1220 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .landing-page .hero h1 span {
  background: linear-gradient(90deg, #0f172a, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

html[data-theme="light"] body.landing-page .hero-text,
html[data-theme="light"] body.landing-page .muted,
html[data-theme="light"] body.landing-page .feature-card p,
html[data-theme="light"] body.landing-page .server-card p,
html[data-theme="light"] body.landing-page .tariff-days,
html[data-theme="light"] body.landing-page .section-kicker,
html[data-theme="light"] body.landing-page .stat-label {
  color: #334155 !important;
  font-weight: 600 !important;
}

html[data-theme="light"] body.landing-page .server-head span.server-status-pill--online {
  color: #15803d !important;
  background: rgba(22, 163, 74, 0.12) !important;
  border-color: rgba(74, 222, 128, 0.38) !important;
}

html[data-theme="light"] body.landing-page .server-head span.server-status-pill--offline {
  color: #64748b !important;
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(148, 163, 184, 0.36) !important;
}

html[data-theme="light"] body.landing-page input,
html[data-theme="light"] body.landing-page select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

html[data-theme="light"] body.landing-page select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.landing-page select option:checked {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.landing-page select option:disabled {
  background: #eef2f7 !important;
  color: #4b5563 !important;
}

html[data-theme="light"] body.landing-page input::placeholder,
html[data-theme="light"] body.landing-page select::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] body.landing-page .btn,
html[data-theme="light"] body.landing-page button {
  background: linear-gradient(180deg, #f7fafc, #dce5f0) !important;
  color: #0b1220 !important;
  border-color: rgba(100, 116, 139, 0.58) !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.14) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] body.landing-page .btn:hover,
html[data-theme="light"] body.landing-page button:hover {
  background: linear-gradient(180deg, #ffffff, #d3dfec) !important;
  border-color: rgba(71, 85, 105, 0.62) !important;
}

html[data-theme="light"] body.landing-page .btn.primary,
html[data-theme="light"] body.landing-page .start-btn,
html[data-theme="light"] body.landing-page .tariff-action-btn,
html[data-theme="light"] body.landing-page .renew-btn--primary,
html[data-theme="light"] body.landing-page .profile-open-btn {
  background: linear-gradient(180deg, #2f63a7, #1f4777) !important;
  color: #f8fbff !important;
  border-color: rgba(122, 164, 220, 0.74) !important;
  box-shadow: 0 10px 20px rgba(31, 71, 119, 0.34) !important;
}

html[data-theme="light"] body.landing-page .btn.primary:hover,
html[data-theme="light"] body.landing-page .start-btn:hover,
html[data-theme="light"] body.landing-page .tariff-action-btn:hover,
html[data-theme="light"] body.landing-page .renew-btn--primary:hover,
html[data-theme="light"] body.landing-page .profile-open-btn:hover {
  background: linear-gradient(180deg, #3b72b9, #285485) !important;
  border-color: rgba(156, 190, 234, 0.82) !important;
}

html[data-theme="light"] body.landing-page .btn.secondary,
html[data-theme="light"] body.landing-page button.secondary {
  background: linear-gradient(180deg, #eef3f9, #d5e0ec) !important;
  color: #0f172a !important;
  border-color: rgba(100, 116, 139, 0.52) !important;
}

html[data-theme="light"] body.landing-page .tariff-action-btn.btn.secondary,
html[data-theme="light"] body.landing-page button.tariff-action-btn.secondary {
  background: linear-gradient(180deg, #2f63a7, #1f4777) !important;
  color: #f8fbff !important;
  border-color: rgba(122, 164, 220, 0.74) !important;
  box-shadow: 0 10px 20px rgba(31, 71, 119, 0.34) !important;
}

html[data-theme="light"] body.landing-page .tariff-action-btn.btn.secondary:hover,
html[data-theme="light"] body.landing-page button.tariff-action-btn.secondary:hover {
  background: linear-gradient(180deg, #3b72b9, #285485) !important;
  border-color: rgba(156, 190, 234, 0.82) !important;
}

/* Terms consent checkbox: exclude global input styles */
.terms-consent-row {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin: 12px 0 !important;
  padding: 10px 12px;
  border: 1px solid rgba(124, 153, 223, 0.35);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(12, 18, 30, 0.72), rgba(9, 13, 22, 0.66));
}

.terms-consent-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
  margin: 0;
}

.terms-consent-label input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 6px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(62, 105, 178, 0.45),
    0 6px 14px rgba(8, 16, 32, 0.45) !important;
  background: linear-gradient(180deg, #111a2d 0%, #0b1323 100%) !important;
  border: 1px solid rgba(108, 147, 214, 0.55) !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

.terms-consent-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(77, 163, 255, 0.65),
    0 0 0 3px rgba(77, 163, 255, 0.24),
    0 8px 18px rgba(14, 51, 105, 0.42) !important;
}

.terms-consent-label input[type="checkbox"]:hover {
  border-color: rgba(141, 182, 250, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(94, 139, 213, 0.62),
    0 8px 18px rgba(14, 51, 105, 0.4) !important;
}

.terms-consent-label input[type="checkbox"]:checked {
  border-color: rgba(143, 199, 255, 0.95) !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.1 3.1L15.5 6.2' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px 13px no-repeat,
    linear-gradient(180deg, #4da3ff 0%, #2d67d1 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 1px rgba(77, 163, 255, 0.7),
    0 0 12px rgba(77, 163, 255, 0.55),
    0 8px 18px rgba(19, 61, 124, 0.5) !important;
}

.terms-consent-text {
  font-size: 14px;
  line-height: 1.3;
}

.terms-consent-link {
  color: #4da3ff !important;
  text-decoration: none !important;
}

.terms-consent-link:hover {
  text-decoration: underline !important;
}

.terms-consent-hint {
  font-size: 12px;
  line-height: 1.35;
  color: #9fb2d3;
  padding-left: 28px;
}

/* Light theme: cabinet contrast fixes */
html[data-theme="light"] body.landing-page .top-nav a {
  color: #1e293b !important;
}

html[data-theme="light"] body.landing-page .cabinet-renew-card,
html[data-theme="light"] body.landing-page .cabinet-panel-body,
html[data-theme="light"] body.landing-page .cabinet-account-panel-inner {
  background: linear-gradient(165deg, #ffffff, #f3f7fc) !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.landing-page .cabinet-renew-lead,
html[data-theme="light"] body.landing-page .renew-flow__step,
html[data-theme="light"] body.landing-page .renew-target-label,
html[data-theme="light"] body.landing-page .renew-tariffs-heading,
html[data-theme="light"] body.landing-page .renew-tariff-meta,
html[data-theme="light"] body.landing-page .renew-tariff-price span,
html[data-theme="light"] body.landing-page .cabinet-page-label,
html[data-theme="light"] body.landing-page .cabinet-account-login,
html[data-theme="light"] body.landing-page .cabinet-account-telegram,
html[data-theme="light"] body.landing-page .cabinet-sub-picker-label,
html[data-theme="light"] body.landing-page .cabinet-sub-hint,
html[data-theme="light"] body.landing-page .cabinet-sub-connect-lead {
  color: #334155 !important;
}

html[data-theme="light"] body.landing-page .renew-flow {
  background: rgba(241, 245, 249, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
}

html[data-theme="light"] body.landing-page .renew-flow__num {
  color: #0f172a !important;
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
}

html[data-theme="light"] body.landing-page .cabinet-renew-badge {
  color: #15803d !important;
  background: rgba(134, 239, 172, 0.42) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
}

html[data-theme="light"] body.landing-page .cabinet-renew-titles h2 {
  color: #0f172a !important;
}

html[data-theme="light"] body.landing-page .renew-tariff-card {
  background: linear-gradient(165deg, #ffffff, #f3f7fc) !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.landing-page .renew-tariff-name,
html[data-theme="light"] body.landing-page .renew-tariff-price {
  color: #0f172a !important;
}

html[data-theme="light"] body.landing-page .renew-tariff-card .renew-tariff-meta,
html[data-theme="light"] body.landing-page .renew-tariff-card .renew-tariff-price span {
  color: #334155 !important;
}

html[data-theme="light"] body.landing-page .site-footer {
  color: #64748b !important;
  border-top: 1px solid rgba(148, 163, 184, 0.34) !important;
}

html[data-theme="light"] body.landing-page .site-footer-copy {
  color: #94a3b8 !important;
}

html[data-theme="light"] body.landing-page .site-footer-terms {
  color: #0f5f73 !important;
}

html[data-theme="light"] body.landing-page .site-footer-terms:hover {
  color: #0b4a5a !important;
}

/* ===== Performance pass (desktop + mobile) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.list-item {
  transform: none;
  opacity: 1;
  animation: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.list-item:hover,
.landing-page .list-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

body.landing-page .card:hover,
body.landing-page .hero:hover,
.btn:hover,
button:hover {
  transform: none !important;
}

.landing-page .top-nav,
.landing-page .card,
.landing-page .hero,
.landing-page .feature-card,
.landing-page .server-card,
.landing-page .faq-list details,
.landing-page .stat-box {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

body.landing-page main.container > header.hero::before,
body.landing-page main.container > section.card.reveal::before,
body.landing-page .feature-card::before,
body.landing-page .server-card::before,
body.landing-page .tariff-card::before {
  animation: none !important;
  filter: none !important;
  opacity: 0.16 !important;
  will-change: auto !important;
}

/* Extra hard performance mode (default) */
.bg-grid,
.landing-page .bg-grid {
  animation: none !important;
}

.orb-1,
.orb-2,
.landing-page .orb-1,
.landing-page .orb-2 {
  animation: none !important;
}

.bg-orb,
.landing-page .bg-orb {
  filter: blur(58px) saturate(1.15) !important;
  opacity: 0.34 !important;
  width: 360px !important;
  height: 360px !important;
}

.orb-1,
.landing-page .orb-1 {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 60% 62%, rgba(56, 189, 248, 0.42) 0%, rgba(37, 99, 235, 0.22) 44%, rgba(15, 23, 42, 0) 72%),
    radial-gradient(circle at 52% 50%, rgba(59, 130, 246, 0.7) 0%, rgba(37, 99, 235, 0.48) 45%, rgba(2, 6, 23, 0.12) 100%) !important;
}

.orb-2,
.landing-page .orb-2 {
  opacity: 0.22 !important;
}

.top-nav,
.card {
  backdrop-filter: none !important;
}

.top-nav {
  position: static !important;
  top: auto !important;
}

.skeleton::after {
  animation: none !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Lower paint cost while keeping visual style */
.card,
.feature-card,
.server-card,
.tariff-card,
.list-item,
.stat-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn,
button {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22) !important;
}

/* Browser-level rendering optimization for long pages */
main.container > section,
main.container > header.hero,
.feature-card,
.server-card,
.tariff-card,
.list-item {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

/* Steam top-up: currency + hint */
.cabinet-steam-currency,
select.cabinet-steam-currency {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}
.cabinet-steam-hint {
  margin: 8px 0 12px;
  line-height: 1.45;
}
.cabinet-steam-currency-label {
  align-self: center;
  margin-right: 6px;
}

/* Steam top-up: mockup layout (pay ↔ receive, presets, limits) */
.steam-topup-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, inherit);
  letter-spacing: -0.02em;
}
.steam-topup-currency-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 6px;
}
.steam-topup-limits {
  margin: 4px 0 14px;
  line-height: 1.45;
}
.steam-topup-exchange-wrap {
  margin-bottom: 14px;
}
.steam-topup-exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: end;
}
.steam-topup-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: 6px;
}
.steam-topup-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
}
.steam-topup-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.55;
  user-select: none;
}
.steam-topup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.steam-topup-presets .btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.steam-topup-login-block {
  margin-bottom: 10px;
}
.steam-topup-login-block label {
  display: block;
  margin-bottom: 6px;
}
.steam-topup-login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: 0.95rem;
}
.steam-topup-actions {
  margin-top: 4px;
}
@media (max-width: 560px) {
  .steam-topup-exchange {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .steam-topup-arrow {
    padding: 0;
    margin: -4px 0;
    transform: rotate(90deg);
    justify-self: center;
  }
}
