:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --surface: #141417;
  --surface-raised: #1b1b1f;
  --border: #29292e;
  --muted: #a1a1aa;
  --text: #f7f7f8;
  --orange: #ff7a1a;
  --orange-hover: #ff9347;
  --green: #9cddb5;
  --radius: 24px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 650;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
input {
  width: 100%;
  background: #101013;
  border: 1px solid #34343c;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color 0.18s;
}
input:focus {
  border-color: var(--orange);
  outline: 2px solid #ff7a1a20;
  outline-offset: 0;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  margin: 22px 0 8px;
}
.button {
  border: 1px solid #38383e;
  background: #232328;
  border-radius: 13px;
  padding: 13px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
  text-align: center;
}
.button:hover {
  background: #303036;
  border-color: #50505a;
}
.button:active {
  transform: scale(0.985);
}
.button.primary {
  color: #16100b;
  background: var(--orange);
  border-color: var(--orange);
}
.button.primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.button.subtle {
  background: transparent;
}
.button.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: var(--orange);
  padding: 7px 0;
  font-size: 0.875rem;
  font-weight: 550;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.icon-button:hover {
  background: #222227;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.brand img {
  object-fit: contain;
}
.brand-light {
  font-weight: 450;
  color: #d4d4d8;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--orange);
}
.boot {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
}
.boot img {
  animation: fade 1.2s ease-in-out infinite alternate;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 42% 88%, #6e2c0729, transparent 60%), #101013;
  padding: 44px 64px;
  border-right: 1px solid var(--border);
}
.story-content {
  position: relative;
  margin: 65px 0 0;
  flex: 1;
}
.story-content h1 {
  white-space: pre-line;
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: 1.04;
  max-width: 640px;
  letter-spacing: -0.06em;
  margin: 24px 0;
}
.story-description {
  max-width: 420px;
  color: #aaaab3;
  font-size: 1.125rem;
  line-height: 1.65;
}
.story-footer {
  color: #777780;
  font-size: 0.8125rem;
  margin-top: 24px;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-card {
  width: 100%;
  max-width: 388px;
}
.auth-card > h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.auth-card > .muted {
  margin-bottom: 30px;
}
.telegram-button {
  width: 100%;
  background: #1a1a20;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #777780;
  font-size: 0.8125rem;
  margin: 26px 0 2px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.form-error {
  font-size: 0.875rem;
  color: #ffaaa4;
  min-height: 22px;
  margin: 12px 0;
}
.field-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.switch-auth {
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.legal {
  font-size: 0.75rem;
  color: #777780;
  line-height: 1.7;
  text-align: center;
  margin-top: 26px;
}
.legal a {
  color: #aaaab3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.orbital-art {
  position: relative;
  width: min(400px, 100%);
  height: 280px;
  margin: 0 auto;
  perspective: 600px;
}
.orbit {
  position: absolute;
  inset: 44px 3%;
  border: 1px solid #ff7a1a42;
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-25deg);
  box-shadow: 0 0 40px #ff7a1a08;
}
.orbit-two {
  inset: 15px 16%;
  transform: rotateX(45deg) rotateY(40deg) rotateZ(48deg);
  border-color: #ff7a1a65;
}
.orbit-three {
  inset: 50px 16%;
  transform: rotateX(20deg) rotateY(60deg);
  border-color: #ff7a1a30;
}
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ff8b251a, #1b1512);
  border: 1px solid #ff7a1a45;
  border-radius: 32px;
  box-shadow:
    0 0 100px #ff7a1a17,
    0 14px 40px #0005;
}
.orbit-core img {
  object-fit: contain;
}
.orbit-spark {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 22px var(--orange);
}
.mobile-brand {
  display: none;
}
.sidebar {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 20px;
  border-right: 1px solid var(--border);
  background: #101013;
  z-index: 10;
}
.sidebar > .brand {
  margin: 0 8px 46px;
}
.nav-caption {
  font-size: 0.75rem;
  color: #777780;
  letter-spacing: 0.12em;
  margin: 0 16px 15px;
}
.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #aaaab3;
  background: none;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 13px 15px;
  min-height: 48px;
  width: 100%;
  text-align: left;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-link:hover {
  color: var(--text);
  background: #1b1b20;
}
.nav-link.active {
  background: #ff7a1a12;
  color: var(--orange);
  border-color: #ff7a1a19;
}
.nav-link svg {
  width: 20px;
  height: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-profile {
  border-top: 1px solid var(--border);
  margin: 20px 8px 0;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.sidebar-profile > div:last-child {
  min-width: 0;
}
.sidebar-profile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 550;
  font-size: 0.875rem;
}
.sidebar-profile span {
  display: block;
  color: #777780;
  font-size: 0.75rem;
}
.avatar {
  width: 40px;
  height: 40px;
  background: #ff7a1a15;
  color: #ffad70;
  border: 1px solid #ff7a1a28;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  flex-shrink: 0;
}
.avatar.small {
  height: 34px;
  width: 34px;
  font-size: 0.8125rem;
}
.workspace {
  margin-left: 248px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 83px;
  padding: 0 40px;
  border-bottom: 1px solid #202024;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-caption {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: #777780;
}
.profile-button {
  border: 0;
  background: transparent;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 0.8125rem;
  color: #bfbfc7;
}
.content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 40px 50px;
  flex: 1;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading .muted {
  margin-top: 10px;
  font-size: 0.9375rem;
}
.notice {
  background: #ff7a1a0c;
  border: 1px solid #ff7a1a2d;
  color: #e6b797;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}
.subscription-card {
  position: relative;
  min-height: 312px;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(ellipse at 110% 10%, #ff7a1a17, transparent 65%),
    var(--surface);
}
.subscription-card .card-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: #bebec6;
  margin-bottom: 22px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--green);
  background: #73ba8d12;
  border: 1px solid #73ba8d20;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 550;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.inactive {
  color: #e8b58b;
  background: #ff7a1a0d;
  border-color: #ff7a1a26;
}
.subscription-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  max-width: 68%;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.subscription-card > .muted {
  font-size: 0.875rem;
  max-width: 65%;
  position: relative;
  z-index: 1;
}
.subscription-card .orbital-art {
  position: absolute;
  right: -55px;
  top: 18px;
  width: 300px;
  height: 240px;
  margin: 0;
  pointer-events: none;
  opacity: 0.7;
}
.subscription-card .orbit-core {
  width: 75px;
  height: 75px;
  border-radius: 22px;
}
.subscription-card .orbit-core svg {
  height: 36px;
  width: 36px;
  color: var(--orange);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}
.quick-metrics {
  display: grid;
  gap: 20px;
}
.metric {
  padding: 22px;
}
.metric-heading {
  display: flex;
  justify-content: space-between;
  color: #a9a9b3;
  font-size: 0.8125rem;
  align-items: center;
}
.metric-heading svg {
  width: 19px;
  height: 19px;
  color: #73737e;
}
.metric-value {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 9px 0 3px;
}
.metric-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  color: #81818c;
}
.metric-foot .text-button {
  font-size: 0.75rem;
  padding: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 19px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 1.35rem;
}
.section-heading p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.plan {
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan.featured {
  border-color: #ff7a1a70;
  background:
    linear-gradient(160deg, #ff7a1a0d, transparent 60%), var(--surface);
}
.plan-badge {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 22px;
}
.plan h3 {
  font-size: 1.125rem;
  margin: 6px 0 22px;
}
.plan-price {
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.plan-monthly {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 5px 0 21px;
}
.plan-features {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  color: #b2b2bd;
  margin-bottom: 24px;
  flex: 1;
}
.plan-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.plan-features svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}
.plan .button {
  padding: 10px;
  min-height: 42px;
  font-size: 0.8125rem;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.feature-icon {
  height: 42px;
  width: 42px;
  border: 1px solid var(--border);
  background: #1e1e23;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--orange);
  margin-bottom: 20px;
}
.feature-panel h3 {
  margin-bottom: 11px;
  font-size: 1.15rem;
}
.feature-panel p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}
.feature-panel .button {
  margin-top: 23px;
}
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state .feature-icon {
  margin: 0 auto 20px;
}
.empty-state h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.empty-state p {
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}
.payment-row:first-child {
  padding-top: 0;
}
.payment-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.payment-row .feature-icon {
  margin: 0;
  flex-shrink: 0;
}
.payment-detail {
  flex: 1;
  min-width: 0;
}
.payment-detail strong {
  font-size: 0.875rem;
  font-weight: 550;
}
.payment-detail p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.payment-amount {
  text-align: right;
  font-weight: 600;
  font-size: 0.9375rem;
}
.payment-amount span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 4px;
}
.payment-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.payment-actions .button {
  font-size: 0.75rem;
  padding: 8px 12px;
  min-height: 38px;
}
.referral-hero {
  background:
    radial-gradient(ellipse at right, #ff7a1a13, transparent 65%),
    var(--surface);
  padding: 36px;
}
.referral-hero h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 650px;
}
.referral-hero p {
  max-width: 650px;
  color: var(--muted);
  margin-top: 18px;
}
.referral-reward {
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--orange);
  margin: 20px 0 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.copy-field {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.copy-field input {
  font-size: 0.875rem;
  min-width: 0;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.account-grid h2 {
  font-size: 1.3rem;
}
.account-grid > .panel > .muted {
  font-size: 0.875rem;
  margin: 12px 0;
}
.account-grid .button {
  margin-top: 22px;
}
.account-grid form .form-error {
  margin-bottom: 0;
}
.details-list {
  display: grid;
  gap: 0;
  margin-top: 25px;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 0.875rem;
}
.detail-line:last-child {
  border: 0;
}
.detail-line span {
  color: var(--muted);
}
.detail-line strong {
  font-weight: 550;
  text-align: right;
}
.stack {
  display: grid;
  gap: 22px;
}
.connection-link {
  margin-top: 20px;
  word-break: break-all;
  font-size: 0.875rem;
  padding: 14px;
  background: #0e0e11;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.footer {
  border-top: 1px solid #202024;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  font-size: 0.75rem;
  color: #777780;
  gap: 20px;
}
.footer > div {
  display: flex;
  gap: 20px;
}
.footer a:hover {
  color: var(--muted);
}
.bottom-nav {
  display: none;
}
.modal {
  width: min(480px, calc(100% - 32px));
  border: 1px solid #3c3c43;
  background: #17171b;
  color: var(--text);
  padding: 0;
  border-radius: 24px;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 25px 100px #0009;
}
.modal::backdrop {
  background: #000b;
  backdrop-filter: blur(7px);
}
.modal-inner {
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
}
.modal h2 {
  font-size: 1.6rem;
  margin: 10px 30px 14px 0;
}
.modal p.muted {
  font-size: 0.875rem;
  line-height: 1.6;
}
.checkout-summary {
  background: #101013;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
  margin: 24px 0;
}
.checkout-summary strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 8px;
}
.method-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.method-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  font-size: 0.875rem;
}
.method-option:has(input:checked) {
  border-color: var(--orange);
  background: #ff7a1a07;
}
.method-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--orange);
}
.method-option label {
  margin: 0;
  flex: 1;
}
.recovery-code {
  background: #0c0c10;
  border: 1px dashed #ff7a1a70;
  border-radius: 12px;
  padding: 20px;
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  margin: 24px 0;
  user-select: all;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #2a2a30;
  border: 1px solid #44444e;
  color: #fff;
  padding: 13px 22px;
  border-radius: 13px;
  box-shadow: 0 8px 32px #0005;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 0.875rem;
  z-index: 100;
  animation: appear 0.18s ease-out;
}
.view-enter {
  animation: appear 0.22s ease-out;
}
@keyframes appear {
  from {
    opacity: 0;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes fade {
  to {
    opacity: 0.5;
  }
}
@media (min-width: 1550px) {
  .content {
    padding-top: 55px;
  }
  .auth-story {
    padding: 48px 80px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 218px;
    padding: 30px 14px;
  }
  .workspace {
    margin-left: 218px;
  }
  .topbar {
    padding: 0 28px;
  }
  .content {
    padding: 32px 28px 40px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .plans-grid {
    gap: 10px;
  }
  .plan {
    padding: 20px 15px;
  }
  .plan-price {
    font-size: 1.55rem;
  }
  .auth-story {
    padding: 38px;
  }
  .footer {
    padding: 22px 28px;
  }
  .subscription-card {
    padding: 26px;
  }
  .card-actions {
    gap: 8px;
  }
  .card-actions .button {
    padding: 12px 15px;
  }
}
@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .quick-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .subscription-card {
    min-height: 290px;
  }
  .subscription-card h2 {
    max-width: 65%;
  }
  .subscription-card .orbital-art {
    right: 0;
    width: 340px;
    top: 5px;
    height: 260px;
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .lower-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 35px;
  }
  .story-content h1 {
    font-size: 3rem;
  }
  .auth-main {
    padding: 35px;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 76px;
    padding: 0 22px;
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
  }
  .topbar-caption {
    display: none;
  }
  .topbar .mobile-brand {
    display: inline-flex;
    font-size: 1.25rem;
  }
  .profile-button [data-profile-name] {
    display: none;
  }
  .content {
    padding: 28px 20px 36px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading .eyebrow {
    font-size: 0.75rem;
  }
  .page-heading h1 {
    font-size: 1.75rem;
  }
  .page-heading .muted {
    font-size: 0.875rem;
    max-width: 280px;
  }
  .subscription-card {
    min-height: 290px;
    padding: 26px 24px;
  }
  .subscription-card .orbital-art {
    width: 220px;
    right: -50px;
    top: 30px;
    opacity: 0.55;
  }
  .subscription-card h2 {
    max-width: 80%;
    font-size: 2.1rem;
  }
  .subscription-card > .muted {
    max-width: 78%;
  }
  .subscription-card .card-kicker {
    margin-bottom: 26px;
  }
  .subscription-card .card-actions {
    margin-top: 28px;
  }
  .card-actions .button {
    font-size: 0.8125rem;
    padding: 12px 16px;
  }
  .panel {
    border-radius: 20px;
  }
  .quick-metrics {
    gap: 12px;
  }
  .metric {
    padding: 20px 18px;
  }
  .metric-value {
    font-size: 1.65rem;
  }
  .metric-foot {
    display: block;
  }
  .metric-foot .text-button {
    display: block;
    margin-top: 6px;
  }
  .section-heading {
    margin-top: 30px;
  }
  .section-heading h2 {
    font-size: 1.25rem;
  }
  .section-heading > .text-button {
    white-space: nowrap;
  }
  .plan {
    padding: 20px 18px;
  }
  .plan-price {
    font-size: 1.8rem;
  }
  .lower-grid {
    gap: 16px;
  }
  .footer {
    padding: 22px 20px 110px;
  }
  .footer > div {
    gap: 12px;
    flex-wrap: wrap;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111114f5;
    border-top: 1px solid #2b2b31;
    backdrop-filter: blur(20px);
    z-index: 20;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    background: none;
    border: 0;
    color: #81818d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    min-height: 48px;
    justify-content: center;
  }
  .bottom-nav button.active {
    color: var(--orange);
  }
  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    min-height: 100dvh;
    padding: 36px 24px;
  }
  .auth-card > .mobile-brand {
    display: flex;
    margin-bottom: 42px;
    width: max-content;
  }
  .auth-card > h2 {
    font-size: 1.9rem;
  }
  .stats-grid {
    gap: 10px;
  }
  .stats-grid .panel {
    padding: 17px 12px;
  }
  .stats-grid .metric-heading {
    font-size: 0.75rem;
  }
  .stats-grid .metric-value {
    font-size: 1.4rem;
  }
  .referral-hero {
    padding: 26px;
  }
  .copy-field {
    flex-direction: column;
  }
  .payment-row {
    gap: 12px;
    align-items: flex-start;
  }
  .payment-row > .feature-icon {
    display: none;
  }
  .payment-amount {
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .modal-inner {
    padding: 28px 24px;
  }
  .notice {
    font-size: 0.8125rem;
    padding: 16px;
  }
  .feature-panel {
    padding: 24px;
  }
  .profile-button {
    padding: 0;
  }
}
@media (max-width: 380px) {
  .content {
    padding-inline: 15px;
  }
  .subscription-card {
    padding: 23px 20px;
  }
  .plans-grid {
    gap: 10px;
  }
  .plan {
    padding: 18px 14px;
  }
  .plan-price {
    font-size: 1.6rem;
  }
  .plan h3 {
    font-size: 1rem;
  }
  .plan-features {
    font-size: 0.75rem;
  }
  .metric {
    padding: 18px 15px;
  }
  .card-actions {
    flex-direction: column;
  }
  .card-actions .button {
    width: 100%;
  }
  .subscription-card h2 {
    font-size: 1.9rem;
  }
  .subscription-card .orbital-art {
    right: -80px;
  }
  .quick-metrics {
    gap: 10px;
  }
  .metric-heading {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.section-note {
  font-size: 0.875rem;
}
.recovery-confirm {
  margin-top: 12px;
}
.share-link {
  display: inline-block;
  margin-top: 18px;
}
.telegram-modal-link {
  margin-top: 22px;
}
.telegram-handle {
  margin-top: 10px;
}
.plan-monthly,
.plan-features,
.metric-heading,
.metric-foot,
.metric-foot .text-button,
.payment-detail p,
.payment-amount span,
.field-hint {
  font-size: 0.875rem;
}
@media (max-width: 760px) {
  .bottom-nav button {
    font-size: 0.875rem;
  }
}

.page-heading > div {
  min-width: 0;
}
.page-heading h1 {
  overflow-wrap: anywhere;
}
.page-heading > .icon-button {
  flex-shrink: 0;
}
.eyebrow {
  text-transform: uppercase;
}
