/* krevétka — shared site styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1521;
  --surface: rgba(20, 32, 46, 0.88);
  --surface-solid: #14202e;
  --surface-elevated: #17222e;
  --blue: #2aabee;
  --blue-hover: #40bafc;
  --blue-soft: rgba(42, 171, 238, 0.1);
  --blue-mid: rgba(42, 171, 238, 0.18);
  --blue-glow: rgba(42, 171, 238, 0.28);
  --blue-border: rgba(42, 171, 238, 0.22);
  --text: #eef4fb;
  --muted: #7a8fa6;
  --faint: rgba(238, 244, 251, 0.06);
  --faint-strong: rgba(238, 244, 251, 0.1);
  --danger: rgba(255, 100, 100, 0.85);
  --danger-soft: rgba(255, 90, 90, 0.12);
  --danger-border: rgba(255, 90, 90, 0.28);
  --success: #3dce8e;
  --success-soft: rgba(61, 206, 142, 0.12);
  --success-border: rgba(61, 206, 142, 0.28);
  --overlay: rgba(10, 16, 26, 0.72);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;
  --container: 1120px;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow-soft: 0 12px 40px rgba(8, 14, 24, 0.45);
  --shadow-modal: 0 24px 60px rgba(8, 14, 24, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --font: "Onest", sans-serif;
  --z-ambient: 0;
  --z-content: 1;
  --z-topbar: 40;
  --z-modal: 100;
  --z-grain: 120;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 10% 0%, rgba(42, 171, 238, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 90% 100%, rgba(42, 171, 238, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 70% 20%, rgba(42, 171, 238, 0.035) 0%, transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--blue-hover);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

h3 {
  font-size: 1.1rem;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: rgba(42, 171, 238, 0.35);
  color: var(--text);
}

/* ── Layout ─────────────────────────────────────────── */

.page {
  position: relative;
  z-index: var(--z-content);
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-sm {
  gap: 10px;
}

.stack-lg {
  gap: 28px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.center-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 40px;
}

/* ── Topbar / nav ───────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(13, 21, 33, 0.55);
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(8, 14, 24, 0.35);
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  padding: 12px 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.brand span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--faint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Surfaces ───────────────────────────────────────── */

.surface,
.card {
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow-soft);
}

.card {
  padding: 36px 32px;
}

.card-sm {
  padding: 24px 22px;
  border-radius: var(--radius-xl);
}

.panel {
  background: rgba(20, 32, 46, 0.65);
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: var(--radius-xl);
  padding: 22px;
}

.divider {
  height: 1px;
  background: var(--faint);
  border: 0;
  margin: 20px 0;
}

/* ── Badge / pill ───────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2.4s ease-in-out infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--faint);
  color: var(--muted);
}

.pill-success {
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.pill-danger {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.pill-blue {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 48px;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  color: #fff;
}

.btn:not(:disabled):hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
  opacity: 0.92;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.btn:not(:disabled):hover::after {
  transform: translateX(100%);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  box-shadow: none;
}

.btn-ghost::after {
  display: none;
}

.btn-ghost:hover {
  color: var(--blue);
}

.btn-ghost:not(:disabled):hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  box-shadow: none;
}

.btn-danger::after {
  display: none;
}

.btn-danger:hover {
  color: #ff8a8a;
}

.btn-danger:not(:disabled):hover {
  background: rgba(255, 90, 90, 0.18);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-lg {
  min-height: 54px;
  padding: 16px 28px;
  font-size: 16px;
}

/* ── Forms ──────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label,
label.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea,
input.form-input,
select.form-select,
textarea.form-textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  background: rgba(13, 21, 33, 0.55);
  border: 1px solid rgba(42, 171, 238, 0.18);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(122, 143, 166, 0.75);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(42, 171, 238, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.18);
}

.form-input.is-invalid,
.form-field.has-error .form-input {
  border-color: var(--danger-border);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.12);
}

.form-error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  line-height: 1.4;
}

.form-error.is-visible,
.form-field.has-error .form-error {
  display: block;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.85;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkbox-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1.5px solid rgba(42, 171, 238, 0.3);
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease),
    opacity 0.15s var(--ease);
}

.checkbox-row:hover .checkbox-box {
  border-color: rgba(42, 171, 238, 0.6);
}

.checkbox-row input:checked + .checkbox-box {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-box svg {
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}

.checkbox-row input:checked + .checkbox-box svg {
  opacity: 1;
}

.checkbox-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.checkbox-text a {
  color: rgba(42, 171, 238, 0.85);
}

.checkbox-text a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: #ff9b9b;
}

.alert-success {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: #7ee0b0;
}

.alert-info {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--blue);
}

.demo-link {
  display: none;
  text-align: center;
  font-size: 13.5px;
}

.demo-link.is-visible {
  display: block;
}

.demo-link a {
  font-weight: 600;
}

/* ── Modal ──────────────────────────────────────────── */

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease),
    visibility 0.22s var(--ease);
}

.modal-bg.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface-elevated);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-modal);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition:
    transform 0.32s var(--ease-spring),
    opacity 0.24s var(--ease);
}

.modal-bg.open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
}

.modal-icon.danger {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: var(--danger);
}

.modal-icon.success {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: var(--success);
}

.modal h2,
.modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
  color: var(--text);
}

.modal p,
.modal-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-actions.row {
  flex-direction: row;
}

.modal-actions .btn {
  flex: 1;
}

.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.modal-close-x:hover {
  background: var(--faint);
  color: var(--text);
}

.modal.relative {
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* ── Tabs (account) ─────────────────────────────────── */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(13, 21, 33, 0.55);
  border: 1px solid rgba(42, 171, 238, 0.14);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.tab-panels {
  margin-top: 22px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeUp 0.45s var(--ease) both;
}

/* ── Definition list / tariff rows ──────────────────── */

.dl,
.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dl-row,
.tariff-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--faint);
}

.dl-row:last-child,
.tariff-row:last-child {
  border-bottom: 0;
}

.dl-label,
.tariff-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.dl-value,
.tariff-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.tariff-row.is-highlight {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 8px;
}

.tariff-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.pricing-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.plan {
  position: relative;
  border: 1.5px solid rgba(42, 171, 238, 0.18);
  border-radius: 14px;
  padding: 15px 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.plan-radio {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(42, 171, 238, 0.35);
  background: transparent;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan.selected .plan-radio,
.plan.is-selected .plan-radio {
  border-color: var(--blue);
  background: var(--blue);
}

.plan-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d1521;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.plan.selected .plan-radio::after,
.plan.is-selected .plan-radio::after {
  opacity: 1;
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--blue);
  color: #0d1521;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 13px 0 8px 0;
  z-index: 1;
  pointer-events: none;
}

.plan:has(.plan-badge) {
  padding-top: 28px;
}

.plan .plan-label {
  padding-right: 22px;
}

.btn-wrap {
  margin-bottom: 14px;
}

.plan:hover {
  border-color: rgba(42, 171, 238, 0.45);
  background: var(--blue-soft);
}

.plan.selected,
.plan.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.13);
}

.plan-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.plan.selected .plan-label,
.plan.is-selected .plan-label {
  color: var(--blue);
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.plan-price sup {
  font-size: 13px;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
}

.plan-period {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Empty state ────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(42, 171, 238, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(20, 32, 46, 0.4);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 22px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  max-width: 320px;
  margin: 0 auto 20px;
  font-size: 14px;
}

/* ── Account / landing utilities ────────────────────── */

.account-shell {
  padding: 24px 0 64px;
}

.account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.account-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 6px;
}

.account-header p {
  font-size: 14px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.status-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--blue-border);
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-title {
  font-size: clamp(34px, 8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-title span {
  color: var(--blue);
}

.author {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
}

.desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.features {
  margin-bottom: 28px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  padding: 4px 0;
}

.features li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  opacity: 0.8;
}

.product-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.legal {
  text-align: center;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s var(--ease);
}

.legal a:hover {
  color: var(--blue);
}

.legal-sep {
  color: rgba(238, 244, 251, 0.18);
  margin: 0 7px;
}

.requisites {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  opacity: 0.7;
}

.tg-link {
  margin-top: 18px;
  text-align: center;
}

.tg-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s var(--ease);
}

.tg-link a:hover {
  color: var(--blue);
}

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

.text-blue {
  color: var(--blue);
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fs-sm {
  font-size: 13px;
}

.fs-xs {
  font-size: 12px;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.wrap { flex-wrap: wrap; }

/* ── Ambient rings (optional markup) ────────────────── */

.rings {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: var(--z-ambient);
}

.rings circle {
  fill: none;
  stroke: var(--blue);
  animation: ringPulse 6s ease-in-out infinite;
}

.rings circle:nth-child(1) {
  stroke-width: 0.8;
  opacity: 0.16;
  animation-delay: 0s;
}

.rings circle:nth-child(2) {
  stroke-width: 0.6;
  opacity: 0.1;
  animation-delay: 0.8s;
}

.rings circle:nth-child(3) {
  stroke-width: 0.5;
  opacity: 0.07;
  animation-delay: 1.6s;
}

.rings circle:nth-child(4) {
  stroke-width: 0.4;
  opacity: 0.04;
  animation-delay: 2.4s;
}

/* ── Animations ─────────────────────────────────────── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes ringPulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.fade-up,
.animate-fade-up {
  animation: fadeUp 0.6s var(--ease) both;
}

.fade-up-d1 { animation-delay: 0.06s; }
.fade-up-d2 { animation-delay: 0.12s; }
.fade-up-d3 { animation-delay: 0.18s; }
.fade-up-d4 { animation-delay: 0.24s; }
.fade-up-d5 { animation-delay: 0.3s; }
.fade-up-d6 { animation-delay: 0.36s; }
.fade-up-d7 { animation-delay: 0.42s; }
.fade-up-d8 { animation-delay: 0.48s; }

/* ── Responsive ─────────────────────────────────────── */

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

@media (max-width: 720px) {
  .topbar-inner {
    border-radius: 16px;
    padding: 10px 12px;
  }

  .nav {
    display: none;
  }

  .card {
    padding: 28px 20px 24px;
    border-radius: var(--radius-xl);
  }

  .modal-actions.row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .plan-price {
    font-size: 20px;
  }

  .btn {
    min-height: 46px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    text-align: center;
    padding-inline: 10px;
  }
}

@media (max-width: 340px) {
  .pricing,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:not(:disabled):hover,
  .btn-ghost:not(:disabled):hover,
  .btn-danger:not(:disabled):hover {
    transform: none;
  }

  .modal {
    transform: none;
  }

  .modal-bg.open .modal {
    transform: none;
  }

  body::after {
    opacity: 0;
  }
}
