[hidden] { display: none !important; }

body[data-page="pricing"],
.auth-page,
.account-page {
  min-height: 100vh;
  background: var(--night);
}

.compact-header { color: var(--ivory); }
.compact-header .header-action {
  color: var(--ink);
  border-color: var(--ivory);
  background: var(--ivory);
}
.compact-header .brand small { color: var(--ash-soft); }
.page-intro > span,
.pricing-note > span,
.auth-context > span,
.auth-card > span,
.closed-access section > span,
.account-nav > span,
.account-heading > span,
.account-panel header > span {
  color: var(--ash-soft);
  font: 620 9px/1.2 var(--data);
  letter-spacing: 0.14em;
}

/* Pricing */
.page-shell { min-height: calc(100vh - 88px); }
.page-intro {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: end;
  gap: 16px;
  padding: 120px max(32px, calc((100vw - 1560px) / 2)) 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(244, 241, 232, 0.055), transparent 25%),
    radial-gradient(circle at 68% 42%, rgba(255, 98, 56, 0.04), transparent 17%),
    linear-gradient(145deg, #10151a, #080a0d 66%);
}
.page-intro::before {
  content: "";
  position: absolute;
  inset: 88px 0 auto;
  height: 460px;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.035) 1px, transparent 1px);
  background-size: 100% 104px, calc((100vw - 64px) / 12) 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}
.page-intro > * { position: relative; z-index: 1; }
.page-intro > span { grid-column: 1 / 4; align-self: start; color: #89908f; }
.page-intro h1 {
  grid-column: 1 / 10;
  margin: 22px 0 0;
  font: 570 clamp(70px, 8vw, 126px)/0.85 var(--display);
  letter-spacing: -0.074em;
}
.page-intro p {
  grid-column: 9 / 13;
  align-self: end;
  margin: 0;
  color: var(--ash);
  font-size: 15px;
  line-height: 1.68;
}
.price-grid {
  margin: 0 20px;
  padding: 72px max(24px, calc((100vw - 1520px) / 2)) 38px;
  color: var(--ink);
  border-radius: 40px 40px 0 0;
  background: var(--paper);
}
.plan-toolbar {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 14px;
  padding: 20px 24px;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: rgba(247, 244, 237, 0.7);
}
.plan-toolbar > div:first-child { display: grid; gap: 7px; }
.plan-toolbar span { color: var(--ink-muted); font: 620 9px var(--data); letter-spacing: 0.14em; }
.plan-toolbar b { font: 570 18px var(--display); letter-spacing: -0.025em; }
.plan-switch { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #dfdcd3; }
.plan-switch button {
  min-height: 44px;
  padding: 0 17px;
  color: var(--ink-muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 570 12px var(--text);
  cursor: pointer;
}
.plan-switch button[aria-pressed="true"] { color: var(--ivory); background: var(--ink); box-shadow: 0 9px 22px rgba(21, 25, 29, 0.16); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  background: var(--paper-raised);
}
.price-grid article.tone-balanced { color: var(--ivory); border-color: transparent; background: linear-gradient(145deg, #1a2127, #101419); box-shadow: 0 28px 62px rgba(21, 25, 29, 0.18); }
.price-grid article > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  font: 620 9px var(--data);
}
.price-grid article.tone-balanced > span:first-child { color: var(--ash); border-color: var(--line); }
.plan-period { display: grid; gap: 8px; margin-top: 54px; }
.price-grid h2 { margin: 0; font: 600 38px var(--display); letter-spacing: -0.048em; }
.plan-period p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.tone-balanced .plan-period p { color: var(--ash); }
.plan-card ul { display: grid; gap: 11px; margin: 28px 0 34px; padding: 0; color: #606563; font-size: 12px; list-style: none; }
.tone-balanced ul { color: #a7acab; }
.plan-card li::before { content: ""; width: 5px; height: 5px; display: inline-block; margin: 0 9px 2px 0; border-radius: 50%; background: var(--signal); }
.price-grid article > b { margin-top: auto; font: 600 44px var(--display); letter-spacing: -0.055em; }
.price-grid article > a,
.price-grid article > .plan-closed {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 0 17px;
  border-radius: var(--radius-control);
  font-size: 12px;
}
.price-grid article > a { color: var(--ivory); background: var(--ink); }
.tone-balanced > a { color: var(--ink) !important; background: var(--ivory) !important; }
.price-grid article > a::after { content: "↗"; }
.price-grid article > .plan-closed { color: var(--ink-muted); border: 1px solid var(--ink-line); }
.tone-balanced > .plan-closed { border-color: var(--line); }
.price-grid article > .plan-closed::after { content: "Закрыто"; font: 620 9px var(--data); letter-spacing: 0.12em; }
.pending-price { max-width: 260px; font-size: 30px !important; line-height: 1 !important; }
.skeleton-card { grid-column: 1 / -1; min-height: 250px !important; }
.skeleton-card b { margin-top: 70px !important; font: 580 30px var(--display) !important; }
.skeleton-card i { width: 42%; height: 2px; display: block; margin-top: 25px; background: linear-gradient(90deg, var(--signal), #a4a8a5); }
.plans-closed-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 20px 24px;
  color: #626765;
  border-radius: 18px;
  background: #dad7cf;
}
.plans-closed-note span { color: #6d5c4e; font: 620 9px var(--data); letter-spacing: 0.13em; }
.plans-closed-note b { font: 540 13px var(--text); }
.page-status { min-height: 22px; margin: 0 20px; padding: 14px max(24px, calc((100vw - 1520px) / 2)); color: #a34c36; background: var(--paper); font-size: 12px; }
.pricing-note {
  display: grid;
  grid-template-columns: 0.72fr repeat(3, 1fr);
  gap: 12px;
  margin: 0 20px;
  padding: 60px max(24px, calc((100vw - 1520px) / 2)) 120px;
  color: var(--ink);
  border-radius: 0 0 40px 40px;
  background: var(--paper);
}
.pricing-note > span { padding-top: 24px; }
.pricing-note > div { min-height: 260px; display: grid; align-content: end; padding: 26px; border: 1px solid var(--ink-line); border-radius: 22px; background: rgba(247, 244, 237, 0.62); }
.pricing-note > div:nth-child(3) { color: var(--ivory); border-color: transparent; background: var(--graphite); }
.pricing-note > div:nth-child(3) p { color: var(--ash); }
.pricing-note b { font: 580 23px/1.08 var(--display); letter-spacing: -0.035em; }
.pricing-note p { margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.58; }

/* Authentication and launch gate */
.auth-security, .account-state { color: var(--ash); font: 620 9px var(--data); letter-spacing: 0.14em; }
.auth-shell,
.closed-access {
  width: var(--content);
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  gap: 12px;
  margin: 24px auto;
}
.auth-context,
.closed-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(38px, 5vw, 78px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 241, 232, 0.055), transparent 25%),
    linear-gradient(145deg, #171e24, #0d1115 70%);
}
.auth-context::before, .closed-mark::after {
  content: "";
  position: absolute;
  top: 11%;
  right: 9%;
  width: min(32vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 241, 232, 0.09);
  border-radius: 50%;
}
.auth-context > * { position: relative; }
.auth-context h1 { margin: 20px 0 54px; font: 570 clamp(68px, 7vw, 112px)/0.84 var(--display); letter-spacing: -0.07em; }
.auth-route { position: relative; width: min(620px, 90%); height: 70px; }
.auth-route::before { content: ""; position: absolute; top: 20px; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, #707775 0 24%, var(--signal) 24% 42%, var(--ivory) 42%); }
.auth-route i { position: absolute; top: 15px; width: 11px; height: 11px; border: 1px solid #7d8482; border-radius: 50%; background: var(--graphite); }
.auth-route i:first-child { left: 0; }
.auth-route i:nth-child(2) { left: 23%; }
.auth-route b { position: absolute; top: 11px; left: 40%; width: 18px; height: 18px; border: 2px solid var(--signal); transform: rotate(45deg); }
.auth-route span { position: absolute; right: 0; bottom: 0; color: var(--ash); font: 620 9px var(--data); letter-spacing: 0.13em; }
.auth-card,
.closed-access section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 74px);
  color: var(--ink);
  border-radius: 30px;
  background: var(--paper-raised);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.24);
}
.auth-card h2 { margin: 14px 0 10px; font: 600 clamp(42px, 4vw, 62px) var(--display); letter-spacing: -0.055em; }
.auth-card > p { margin: 0 0 40px; color: var(--ink-muted); font-size: 14px; }
.auth-card form { display: grid; gap: 18px; }
.auth-card .field { display: grid; gap: 9px; }
.auth-card label { color: #5f6462; font-size: 12px; }
.auth-card input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: #e9e5dc;
}
.auth-card input:focus { outline: 3px solid rgba(255, 98, 56, 0.18); border-color: var(--signal-deep); }
.input-shell { position: relative; display: block; }
.input-shell input { padding-right: 96px; }
.auth-card form > button {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding: 0 18px;
  color: var(--ivory);
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  font-weight: 560;
  cursor: pointer;
}
.auth-card form > button:disabled { color: #505552; background: #d7d3ca; cursor: wait; }
.auth-card .password-toggle { position: absolute; top: 50%; right: 8px; min-height: 40px; padding: 0 11px; color: #505552; border: 0; border-radius: 9px; background: #ddd9d0; font: 620 10px var(--text); transform: translateY(-50%); cursor: pointer; }
.form-status { min-height: 18px !important; margin: 0 !important; color: #a34c36 !important; font-size: 11px !important; }
.quiet-link { margin-top: 24px; color: #666b68; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.auth-assurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; padding-top: 20px; color: #696e6b; border-top: 1px solid var(--ink-line); font-size: 11px; }
.auth-assurance span::before { content: ""; width: 6px; height: 6px; display: inline-block; margin: 0 8px 1px 0; border-radius: 50%; background: #4b9365; }
.closed-access { grid-template-columns: 0.65fr 1.35fr; }
.closed-mark { display: grid; align-content: center; }
.closed-mark > span { color: var(--ash); font: 620 9px var(--data); }
.closed-mark > i { width: min(280px, 76%); height: 2px; margin: 56px 0 28px; background: linear-gradient(90deg, var(--signal) 0 32%, var(--ivory) 32%); }
.closed-mark > b { font: 700 38px var(--display); letter-spacing: -0.05em; }
.closed-access h1 { max-width: 900px; margin: 18px 0 28px; font: 590 clamp(56px, 6vw, 94px)/0.88 var(--display); letter-spacing: -0.067em; }
.closed-access section > p { max-width: 670px; color: var(--ink-muted); font-size: 15px; line-height: 1.65; }
.closed-access section > a { align-self: flex-start; margin-top: 22px; padding: 14px 18px; color: var(--ivory); border-radius: 11px; background: var(--ink); font-size: 12px; }
.launch-checks { width: min(100%, 680px); display: grid; margin: 25px 0 4px; padding: 0; border-top: 1px solid var(--ink-line); list-style: none; }
.launch-checks li { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #5f6462; border-bottom: 1px solid var(--ink-line); font-size: 12px; }
.launch-checks b { color: #a14f39; font: 620 9px var(--data); letter-spacing: 0.12em; text-transform: uppercase; }

/* Account */
.text-button { cursor: pointer; }
.account-state { display: flex; align-items: center; gap: 7px; }
.account-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--safe); }
.account-shell {
  width: var(--content);
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 12px;
  margin: 24px auto 80px;
}
.account-nav {
  position: sticky;
  top: 18px;
  height: max-content;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--graphite);
}
.account-nav > span { margin: 5px 10px 28px; }
.account-nav a { padding: 12px 13px; color: var(--ash); border-radius: 10px; font-size: 12px; }
.account-nav a.active { color: var(--ivory); background: rgba(244, 241, 232, 0.07); }
.account-content { padding: 48px 0 30px; }
.account-heading { margin: 0 0 56px 4px; }
.account-heading h1 { margin: 14px 0; font: 570 clamp(58px, 6.4vw, 102px)/0.86 var(--display); letter-spacing: -0.07em; }
.account-heading p { margin: 0; color: var(--ash); font-size: 13px; }
.account-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.account-panel {
  min-height: 300px;
  grid-column: span 6;
  padding: 26px;
  color: var(--ink);
  border-radius: 24px;
  background: var(--paper);
}
.subscription-panel { background: var(--paper-raised); }
.route-panel { color: var(--ivory); background: linear-gradient(145deg, #1a2127, #101419); box-shadow: 0 26px 64px rgba(0, 0, 0, 0.23); }
.payments-panel { grid-column: span 12; min-height: 230px; }
.account-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-panel header > a, .account-panel header > b, .account-panel header > button { color: var(--ink-muted); font: 620 9px var(--data); letter-spacing: 0.12em; }
.route-panel header > span, .route-panel header > b { color: var(--ash); }
.account-panel header > button { padding: 0; border: 0; background: transparent; }
.panel-loading { margin-top: 82px; color: var(--ink-muted); font-size: 12px; }
.subscription-panel > div { display: grid; gap: 8px; margin-top: 64px; }
.subscription-panel strong { font: 590 20px var(--display); }
.subscription-panel b { font: 600 42px var(--display); letter-spacing: -0.05em; }
.subscription-panel p { margin: 0; color: var(--ink-muted); font-size: 11px; }
.state-good { color: #286740; }
.state-muted { color: var(--ink-muted); }
.calm-route { position: relative; height: 82px; display: flex; align-items: center; gap: 13px; margin-top: 50px; color: var(--ash); font: 620 9px var(--data); }
.calm-route::before { content: ""; position: absolute; top: 40px; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, #727977 0 31%, var(--signal) 31% 47%, var(--ivory) 47%); }
.calm-route > * { position: relative; background: var(--graphite); }
.calm-route i, .calm-route b, .calm-route em { width: 9px; height: 9px; border: 1px solid #727977; border-radius: 50%; }
.calm-route b { border: 2px solid var(--signal); border-radius: 0; transform: rotate(45deg); }
.calm-route em { border-color: var(--ivory); background: var(--ivory); }
.calm-route strong { margin-left: auto; color: var(--ivory); font: 620 9px var(--data); letter-spacing: 0.12em; }
.route-panel > p { margin: 0; color: var(--ash); font-size: 12px; line-height: 1.55; }
.data-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 12px; }
.data-row:first-child { margin-top: 30px; }
.data-row b { font-weight: 560; }
.data-row span { color: var(--ink-muted); }
.empty-state { margin-top: 68px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1040px) {
  .page-intro h1 { grid-column: 1 / 13; }
  .page-intro p { grid-column: 7 / 13; margin-top: 24px; }
  .plan-cards { grid-template-columns: 1fr 1fr; }
  .plan-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pricing-note { grid-template-columns: 1fr 1fr; }
  .pricing-note > span { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .auth-security, .account-state { display: none; }
  .page-intro { min-height: 560px; display: block; padding: 126px 18px 58px; }
  .page-intro h1 { margin-top: 38px; font-size: clamp(58px, 17vw, 86px); }
  .page-intro p { margin-top: 26px; font-size: 14px; }
  .price-grid { margin: 0 12px; padding: 48px 12px 24px; border-radius: 26px 26px 0 0; }
  .plan-toolbar { align-items: stretch; flex-direction: column; padding: 18px; }
  .plan-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
  .plan-switch button { padding: 0 9px; }
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card:last-child:nth-child(odd) { grid-column: auto; }
  .price-grid article { min-height: 420px; }
  .plans-closed-note { align-items: flex-start; flex-direction: column; }
  .page-status { margin: 0 12px; }
  .pricing-note { grid-template-columns: 1fr; margin: 0 12px; padding: 48px 12px 74px; border-radius: 0 0 26px 26px; }
  .pricing-note > span { grid-column: auto; }
  .auth-shell, .closed-access { width: calc(100% - 24px); min-height: auto; grid-template-columns: 1fr; margin: 12px auto 28px; }
  .auth-context, .closed-mark { display: none; }
  .auth-card, .closed-access section { min-height: calc(100vh - 112px); padding: 36px 22px; border-radius: 24px; }
  .closed-access h1 { font-size: clamp(50px, 14vw, 72px); }
  .account-shell { width: calc(100% - 24px); grid-template-columns: 1fr; margin-top: 12px; }
  .account-nav { position: static; min-height: auto; display: grid; grid-template-columns: repeat(4, auto); overflow-x: auto; padding: 12px; border-radius: 18px; }
  .account-nav > span { display: none; }
  .account-nav a { white-space: nowrap; }
  .account-content { padding: 36px 0 20px; }
  .account-heading { margin-left: 0; }
  .account-heading h1 { font-size: clamp(52px, 15vw, 76px); }
  .account-grid { grid-template-columns: 1fr; }
  .account-panel, .payments-panel { grid-column: 1; padding: 22px; border-radius: 20px; }
}

@media (forced-colors: active) {
  .plan-toolbar, .price-grid article, .auth-context, .auth-card, .closed-mark,
  .closed-access section, .account-nav, .account-panel { border: 1px solid CanvasText; }
}

.business-form { display: grid; gap: 12px; margin: 28px 0; }
.business-form label { font-size: 13px; }
.business-form input, .business-form select { width: 100%; padding: 14px; border: 1px solid var(--ink-line); border-radius: 12px; background: var(--paper-raised); color: var(--ink); font: inherit; }
.business-form button, .row-action, #logout-all, #payments-more, #refresh-account, #status-refresh { padding: 12px 18px; border: 1px solid currentColor; border-radius: 10px; cursor: pointer; background: var(--paper-raised); color: var(--ink); font: inherit; }
.business-form button:disabled { opacity: .65; cursor: wait; }
.data-row { flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; }
.data-row .row-action { font-size: 12px; }
.account-panel > p { font-size: 13px; line-height: 1.65; }
.route-panel > p { margin-top: 30px; }
.information-shell { width: min(920px, calc(100% - 48px)); margin: 80px auto; padding: clamp(24px, 5vw, 64px); border-radius: 30px; color: var(--ink); background: var(--paper); }
.information-shell h1 { font: 600 clamp(36px, 5vw, 64px)/1.1 var(--display); letter-spacing: -.04em; }
.information-shell p { line-height: 1.7; }
.information-shell nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.information-shell nav a { text-decoration: underline; }
.admin-payment { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.admin-payment h2 { overflow-wrap: anywhere; font-size: 24px; }
