:root {
  color-scheme: dark;
  --bg: #090c11;
  --bg-deep: #05070a;
  --surface: rgba(18, 23, 31, 0.88);
  --surface-solid: #11161e;
  --surface-raised: #151c25;
  --line: rgba(137, 161, 178, 0.18);
  --line-bright: rgba(76, 229, 247, 0.32);
  --text: #eef8fa;
  --muted: #8c9ca7;
  --cyan: #4ce5f7;
  --cyan-strong: #78f0ff;
  --cyan-soft: rgba(76, 229, 247, 0.12);
  --mint: #52e6ad;
  --mint-soft: rgba(82, 230, 173, 0.12);
  --danger: #ff6c7a;
  --danger-soft: rgba(255, 108, 122, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(76, 229, 247, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 229, 247, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 80% 4%, rgba(76, 229, 247, 0.09), transparent 29rem),
    radial-gradient(circle at 46% 104%, rgba(82, 230, 173, 0.055), transparent 32rem),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  color: var(--text);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(112deg, transparent 20%, rgba(76, 229, 247, 0.025) 48%, transparent 72%);
  content: "";
  pointer-events: none;
  animation: ambient-sweep 14s ease-in-out infinite alternate;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.ambient-orbit {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(76, 229, 247, 0.07);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(76, 229, 247, 0.025);
}

.orbit-one {
  top: -18rem;
  right: -10rem;
  animation: aurora-float 16s ease-in-out infinite alternate;
}

.orbit-two {
  bottom: -23rem;
  left: 18%;
  animation: aurora-float 19s ease-in-out -7s infinite alternate-reverse;
}

.shell {
  min-height: 100vh;
}

.auth-gate {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: min(100%, 470px);
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: rgba(10, 16, 21, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 70px rgba(76, 229, 247, 0.06);
  padding: 34px;
  backdrop-filter: blur(24px);
}

.payment-provider-shell {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.payment-provider-card {
  width: min(100%, 520px);
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: rgba(10, 16, 21, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 70px rgba(76, 229, 247, 0.06);
  padding: 34px;
  backdrop-filter: blur(24px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 780;
}

.auth-brand strong {
  color: var(--cyan);
}

.auth-copy h1 {
  margin: 22px 0 9px;
  font-size: 34px;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form .auth-copy {
  margin-bottom: 9px;
}

.auth-account-hint {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(75, 225, 235, 0.24);
  border-radius: 12px;
  background: rgba(75, 225, 235, 0.07);
  color: #b9f7f8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #b8c7ce;
  font-size: 11px;
  font-weight: 680;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 10, 14, 0.78);
  padding: 14px 15px;
  color: var(--text);
  font-size: 13px;
}

.password-input {
  position: relative;
  width: 100%;
}

.password-input input {
  padding-right: 54px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8fa2ab;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease;
}

.password-visibility-toggle:hover {
  background: rgba(76, 229, 247, 0.08);
  color: var(--cyan-strong);
}

.password-visibility-toggle[aria-pressed="true"] {
  color: var(--cyan);
}

.password-input input:disabled + .password-visibility-toggle {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.password-visibility-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-visibility-slash {
  opacity: 0;
  transition: opacity 160ms ease;
}

.password-visibility-toggle[aria-pressed="true"] .password-visibility-slash {
  opacity: 1;
}

.auth-form input[readonly] {
  cursor: default;
  color: #d9ffff;
  background: rgba(75, 225, 235, 0.08);
}

.turnstile-container {
  width: 100%;
  min-height: 65px;
  margin-top: 14px;
}

.turnstile-container > div,
.turnstile-container iframe {
  max-width: 100%;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.auth-recovery-link {
  justify-self: center;
  margin-top: 1px;
}

.auth-recovery-link:hover {
  color: var(--text);
}

.telegram-login-area {
  display: grid;
  gap: 11px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.telegram-auth-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 225, 235, 0.38);
  border-radius: 12px;
  background: rgba(75, 225, 235, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.telegram-auth-button:hover {
  border-color: rgba(75, 225, 235, 0.72);
  background: rgba(75, 225, 235, 0.13);
}

.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  color: #b8c7ce;
  font-size: 13px;
  line-height: 1.5;
}

.auth-switch-link {
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: var(--cyan-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
  text-underline-offset: 3px;
}

.auth-switch-link:hover {
  color: #b8f8ff;
  text-decoration: underline;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7, 10, 14, 0.9);
  padding: 24px 14px 18px;
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 8px 28px;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 780;
  text-align: left;
}

.brand-name strong,
.mobile-brand strong {
  color: var(--cyan);
}

.brand-mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 78%, rgba(76, 229, 247, 0.22), transparent 42%),
    linear-gradient(145deg, #17222a, #080c10 62%);
  box-shadow: 0 0 0 5px rgba(76, 229, 247, 0.04), 0 0 22px rgba(76, 229, 247, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand:hover .brand-mark {
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(76, 229, 247, 0.07), 0 0 30px rgba(76, 229, 247, 0.16);
  transform: rotate(-3deg) scale(1.04);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 4px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--cyan);
  content: "";
  opacity: 0.72;
}

.brand-mark::before {
  left: 6px;
  transform: rotate(42deg);
}

.brand-mark::after {
  right: 6px;
  transform: rotate(-42deg);
}

.cat-eye {
  position: absolute;
  top: 16px;
  width: 6px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan-strong);
  box-shadow: 0 0 7px var(--cyan);
  animation: cat-blink 6s ease-in-out infinite;
}

.cat-eye.left { left: 9px; transform: rotate(9deg); }
.cat-eye.right { right: 9px; transform: rotate(-9deg); }

.nav {
  display: grid;
  gap: 7px;
}

.nav-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  padding: 13px 14px;
  color: #9fadb7;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  text-align: left;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-link:first-child svg path {
  fill: none;
}

.nav-link:hover {
  color: #d8f9fc;
  transform: translateX(2px);
}

.nav-link.active {
  border-color: var(--line-bright);
  background: linear-gradient(105deg, var(--cyan-soft), rgba(76, 229, 247, 0.035));
  box-shadow: inset 3px 0 0 var(--cyan), 0 8px 30px rgba(0, 0, 0, 0.13);
  color: var(--cyan-strong);
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 22, 30, 0.65);
  padding: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 2px;
  color: #c7d4da;
  font-size: 11px;
}

.logout-button {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 11px 13px;
  color: #a9bac1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.logout-button:hover {
  border-color: var(--line-bright);
  color: var(--cyan);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--mint-soft), 0 0 16px rgba(82, 230, 173, 0.42);
  animation: breathe 2.8s ease-in-out infinite;
}

.content {
  width: min(1250px, calc(100% - 258px));
  min-height: 100vh;
  margin-left: 258px;
  padding: 48px clamp(28px, 4vw, 60px) 34px;
}

.mobile-topbar {
  display: none;
}

.page {
  width: min(100%, 1060px);
}

.page.active {
  animation: page-enter 320ms ease both;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow,
.field-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 7px 0 8px;
  font-size: clamp(31px, 4.4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

h3 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.page-header p,
.muted,
.field-hint,
.preview-hint {
  color: var(--muted);
}

.page-header p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

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

.document-link {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 19, 26, 0.78);
  padding: 17px 20px;
  color: #dbe9ed;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.document-link:hover {
  border-color: var(--line-bright);
  background: rgba(21, 32, 40, 0.88);
  color: var(--cyan-strong);
  transform: translateY(-1px);
}

.document-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.document-link-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan-strong);
}

.document-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.document-link strong {
  font-size: 15px;
  line-height: 1.35;
}

.document-link-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}

.document-link:hover .document-link-arrow {
  color: var(--cyan-strong);
  transform: translate(2px, -2px);
}

.test-badge,
.read-only-pill,
.opaque-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: var(--cyan-soft);
  padding: 8px 11px;
  color: var(--cyan-strong);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-card,
.panel,
.subscription-card,
.empty-card,
.skeleton-card,
.total-card,
.stat-card,
.info-panel,
.privacy-note,
.home-email-prompt {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 23, 31, 0.91), rgba(10, 14, 19, 0.93));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.home-email-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  border-radius: 18px;
  padding: 20px 22px;
}

.home-email-prompt strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.home-email-prompt p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-color: rgba(76, 229, 247, 0.22);
  border-radius: 22px;
  padding: 30px;
}

.hero-card::after {
  position: absolute;
  top: -90px;
  right: -75px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(76, 229, 247, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 229, 247, 0.08), transparent 67%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  margin: 16px 0 8px;
  font-size: clamp(23px, 3.2vw, 31px);
}

.hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--mint-soft);
  padding: 7px 11px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 780;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-pill.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.loading {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.signal {
  position: relative;
  z-index: 1;
  display: flex;
  height: 58px;
  align-items: flex-end;
  gap: 6px;
  margin-right: 30px;
}

.signal span {
  display: block;
  width: 8px;
  border-radius: 8px;
  background: linear-gradient(to top, var(--cyan), var(--mint));
  box-shadow: 0 0 16px rgba(76, 229, 247, 0.22);
  animation: signal-rise 1.8s ease-in-out infinite alternate;
}

.signal span:nth-child(1) { height: 22px; }
.signal span:nth-child(2) { height: 40px; animation-delay: -0.5s; }
.signal span:nth-child(3) { height: 58px; animation-delay: -1s; }

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

.subscription-card,
.empty-card,
.skeleton-card {
  min-height: 190px;
  border-radius: 18px;
  padding: 23px;
}

.subscription-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.subscription-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.27), 0 0 35px rgba(76, 229, 247, 0.035);
  transform: translateY(-2px);
}

.subscription-top,
.subscription-meta,
.section-title-row,
.panel-heading {
  display: flex;
  align-items: center;
}

.subscription-top,
.section-title-row {
  justify-content: space-between;
  gap: 18px;
}

.subscription-meta {
  gap: 36px;
  margin-top: 30px;
}

.subscription-meta > div {
  display: grid;
  gap: 5px;
}

.subscription-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subscription-meta strong {
  font-size: 13px;
}

.connection-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.connection-link {
  display: inline-flex;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cyan);
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}

.connection-link:hover {
  color: var(--cyan-strong);
}

.connection-link:disabled,
.connection-open-button[aria-disabled="true"] {
  opacity: 0.42;
  cursor: default;
}

.connection-open-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: linear-gradient(110deg, var(--cyan-soft), rgba(76, 229, 247, 0.04));
  padding: 0 17px;
  color: var(--cyan-strong);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.connection-open-button::after {
  margin-left: 10px;
  content: "↗";
  font-size: 14px;
}

.connection-open-button:hover {
  border-color: var(--cyan);
  background: linear-gradient(110deg, rgba(76, 229, 247, 0.18), rgba(76, 229, 247, 0.07));
  box-shadow: 0 10px 28px rgba(76, 229, 247, 0.09);
  transform: translateY(-1px);
}

.empty-card {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.65;
}

.skeleton-card {
  background: linear-gradient(100deg, #0d1218 20%, #17212a 46%, #0d1218 72%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.primary-button,
.secondary-button,
.method-button,
.period-button,
.copy-field button,
.stepper button {
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-button {
  display: inline-flex;
  min-width: 215px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  border-color: var(--line-bright);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(76, 229, 247, 0.17), rgba(82, 230, 173, 0.1));
  padding: 14px 19px;
  color: var(--cyan-strong);
  font-size: 13px;
  font-weight: 780;
}

.primary-button:hover:not(:disabled) {
  border-color: var(--cyan);
  box-shadow: 0 10px 36px rgba(76, 229, 247, 0.13), inset 0 0 30px rgba(76, 229, 247, 0.05);
  transform: translateY(-1px);
}

.primary-button.wide {
  width: 100%;
  margin-top: 18px;
}

.primary-button.disabled-preview,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 28px;
  border-radius: 16px;
  padding: 17px 19px;
}

.privacy-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.privacy-icon,
.panel-icon {
  color: var(--cyan);
}

.panel {
  border-radius: 19px;
  padding: 26px;
}

.field-group + .field-group {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.period-button {
  display: grid;
  min-height: 88px;
  align-content: center;
  gap: 7px;
  border-radius: 13px;
  background: rgba(7, 11, 15, 0.72);
  color: #c8d2d7;
}

.period-button strong {
  font-size: 13px;
}

.period-button span {
  color: var(--muted);
  font-size: 11px;
}

.period-button:hover,
.period-button.selected,
.method-button:hover,
.method-button.selected {
  border-color: var(--line-bright);
  background: var(--cyan-soft);
  color: var(--cyan-strong);
  box-shadow: inset 0 0 26px rgba(76, 229, 247, 0.025);
}

.period-button.selected span {
  color: var(--cyan);
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 11, 15, 0.72);
  padding: 5px;
}

.stepper button {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--cyan);
  font-size: 20px;
}

.stepper button:hover:not(:disabled) {
  border-color: var(--line-bright);
  background: var(--cyan-soft);
}

.stepper strong {
  min-width: 24px;
  font-size: 18px;
  text-align: center;
}

.total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  border-radius: 16px;
  padding: 19px 22px;
}

.total-card div {
  display: grid;
  gap: 5px;
}

.total-card div span {
  color: var(--muted);
  font-size: 11px;
}

.total-card > strong {
  color: var(--cyan-strong);
  font-size: 24px;
}

.payment-section {
  margin-top: 27px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.method-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  background: rgba(10, 14, 19, 0.86);
  padding: 11px 14px;
  color: #abb9c1;
  font-size: 12px;
  font-weight: 720;
}

.method-button span {
  color: var(--cyan);
}

.preview-hint {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.info-panel {
  margin-top: 18px;
  border-radius: 17px;
  padding: 20px 22px;
}

.info-panel summary {
  color: #dce7eb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.info-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.info-panel li::marker {
  color: var(--cyan);
}

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

.stat-card {
  min-height: 130px;
  border-radius: 17px;
  padding: 22px;
}

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

.stat-card strong {
  display: block;
  margin-top: 14px;
  color: var(--cyan-strong);
  font-size: 30px;
}

.referral-how {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.referral-how .panel-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  background: var(--cyan-soft);
}

.referral-how p {
  margin-bottom: 9px;
  color: #becad0;
  font-size: 13px;
  line-height: 1.72;
}

.referral-how .muted,
.muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.referral-how + .panel {
  margin-top: 14px;
}

.section-title-row h2 {
  margin: 6px 0 0;
}

.link-list {
  display: grid;
  gap: 11px;
  margin-top: 21px;
}

.copy-field {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 11, 15, 0.74);
}

.copy-field > span {
  padding: 0 15px;
  color: var(--muted);
  font-size: 11px;
}

.copy-field input {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 13px 14px;
  color: #c8d7dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  outline: 0;
}

.copy-field button {
  align-self: stretch;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: var(--cyan-soft);
  padding: 0 15px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 760;
}

.copy-field button:hover {
  background: rgba(76, 229, 247, 0.19);
  color: var(--cyan-strong);
}

.account-panel,
.setting-card,
.account-panel + .panel,
.setting-card + .panel,
.settings-form + .preview-hint {
  margin-top: 14px;
}

.panel-heading {
  gap: 11px;
}

.panel-heading h2 {
  margin: 0;
}

.account-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 23px 0 16px;
}

.account-data div {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 11, 15, 0.58);
  padding: 14px;
}

.account-data dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-data dd {
  overflow: hidden;
  margin: 8px 0 0;
  color: #d7e2e6;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.setting-card-confirmation,
.setting-card-message {
  flex: 1 0 100%;
  width: 100%;
}

.setting-card-message:empty {
  display: none;
}

.setting-card p {
  margin: 10px 0 0;
}

.success-text {
  color: var(--mint);
  font-size: 12px;
}

.telegram-link-state {
  color: var(--muted);
  font-size: 12px;
}

.telegram-link-state.is-linked {
  color: var(--mint);
}

.setting-status {
  color: var(--muted);
  font-size: 11px;
}

.setting-status strong {
  color: #becbd1;
}

.secondary-button {
  flex: 0 0 auto;
  border-color: var(--line-bright);
  border-radius: 11px;
  background: var(--cyan-soft);
  padding: 11px 16px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
}

.telegram-link-button {
  text-decoration: none;
}

.settings-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

[hidden] {
  display: none !important;
}

.settings-form label {
  display: grid;
  gap: 6px;
}

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

.settings-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 11, 15, 0.74);
  padding: 13px 14px;
  color: var(--text);
  font-size: 12px;
}

.settings-form .secondary-button {
  width: fit-content;
  margin-top: 3px;
}

.confirmation-form {
  grid-template-columns: minmax(0, 260px) auto;
  align-items: end;
}

.email-current-line {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.email-current-line strong {
  color: var(--text);
}

.provider-loading {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.provider-order {
  margin-top: 24px;
}

.provider-order dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.provider-order dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.provider-order dt {
  color: var(--muted);
  font-size: 12px;
}

.provider-order dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
}

.provider-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.provider-total span {
  color: var(--muted);
  font-size: 12px;
}

.provider-total strong {
  color: var(--cyan-strong);
  font-size: 28px;
}

.provider-order .text-button {
  width: 100%;
  margin-top: 12px;
}

.form-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.form-status-error {
  color: #ff9aa4;
}

.form-status-success {
  color: var(--mint);
}

.error-banner {
  position: relative;
  z-index: 30;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 108, 122, 0.36);
  border-radius: 13px;
  background: var(--danger-soft);
  padding: 14px 16px;
  color: #ff9aa4;
  font-size: 12px;
}

.clipboard-fallback {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

footer {
  width: min(100%, 1060px);
  padding: 32px 3px 0;
  color: #53636d;
  font-size: 10px;
}

.reveal {
  animation: reveal 480ms cubic-bezier(.22, .75, .25, 1) both;
}

.delay-one { animation-delay: 55ms; }
.delay-two { animation-delay: 100ms; }
.delay-three { animation-delay: 145ms; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes cat-blink {
  0%, 44%, 48%, 100% { height: 3px; }
  46% { height: 1px; }
}

@keyframes signal-rise {
  from { opacity: 0.55; transform: scaleY(0.84); transform-origin: bottom; }
  to { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

@keyframes ambient-sweep {
  from { transform: translateX(-12%); }
  to { transform: translateX(12%); }
}

@keyframes aurora-float {
  from { opacity: 0.45; transform: translate3d(-3%, 2%, 0) scale(0.94); }
  to { opacity: 0.9; transform: translate3d(4%, -3%, 0) scale(1.08); }
}

@media (max-width: 1000px) {
  .period-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 70px;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .sidebar .brand,
  .sidebar-note {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-link {
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    border-radius: 11px;
    padding: 7px 4px;
    font-size: 9px;
  }

  .nav-link svg {
    width: 17px;
    height: 17px;
  }

  .nav-link:hover {
    transform: none;
  }

  .nav-link.active {
    box-shadow: inset 0 2px 0 var(--cyan);
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding: 0 20px 105px;
  }

  .mobile-topbar {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -20px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 14, 0.76);
    padding: 0 20px;
    backdrop-filter: blur(18px);
  }

  .mobile-brand {
    font-size: 14px;
    font-weight: 780;
  }

  .desktop-badge {
    display: none;
  }
}

@media (max-width: 650px) {
  body {
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
  }

  .content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .auth-card {
    padding: 26px 21px;
  }

  .auth-form input,
  .settings-form input,
  .copy-field input {
    font-size: 16px;
  }

  .mobile-topbar {
    margin-right: -15px;
    margin-left: -15px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-header {
    margin-bottom: 22px;
  }

  .document-link {
    min-height: 66px;
    gap: 12px;
    padding: 14px 15px;
  }

  .document-link-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .document-link strong {
    font-size: 14px;
  }

  h1 {
    font-size: 33px;
  }

  .hero-card {
    min-height: 210px;
    padding: 24px;
  }

  .signal {
    display: none;
  }

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

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

  .period-button:last-child {
    grid-column: 1 / -1;
  }

  .device-row,
  .setting-card,
  .section-title-row,
  .home-email-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-email-prompt .secondary-button {
    width: 100%;
  }

  .stepper {
    width: 100%;
    justify-content: space-between;
  }

  .total-card {
    align-items: flex-end;
  }

  .payment-methods {
    display: grid;
    grid-template-columns: 1fr;
  }

  .method-button {
    justify-content: center;
  }

  .copy-field {
    grid-template-columns: 1fr auto;
  }

  .copy-field > span {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    padding: 10px 13px;
  }

  .copy-field input {
    border-left: 0;
  }

  .setting-card .secondary-button,
  .settings-form .secondary-button {
    width: 100%;
  }

  .confirmation-form {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 21px;
  }
}

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