:root {
  --bg: #07080f;
  --bg-2: #0c0e1b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --surface-3: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --text-2: #c4c8e6;
  --muted: #8d92b8;
  --violet: #8b7bff;
  --purple: #b16cff;
  --pink: #ff79c0;
  --blue: #3fb4f2;
  --success: #3ddc97;
  --warning: #ffc861;
  --danger: #ff7a8a;
  --gradient: linear-gradient(135deg, #7a8bff 0%, #b16cff 52%, #ff79c0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(122, 139, 255, 0.16), rgba(177, 108, 255, 0.14) 52%, rgba(255, 121, 192, 0.14));
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 20px 60px -20px rgba(160, 110, 255, 0.55);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.site {
  background:
    radial-gradient(900px 620px at 85% -120px, rgba(177, 108, 255, 0.22), transparent 70%),
    radial-gradient(700px 560px at -10% 260px, rgba(63, 180, 242, 0.13), transparent 70%),
    radial-gradient(900px 600px at 50% 100%, rgba(255, 121, 192, 0.09), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(177, 108, 255, 0.45); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-lg { width: 26px; height: 26px; flex: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--gradient); filter: brightness(1.08); box-shadow: 0 24px 60px -18px rgba(177, 108, 255, 0.75); }
.btn-outline { background: transparent; border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-telegram { background: #2aabee; color: #fff; }
.btn-telegram:hover { background: #229ed9; }
.btn-success { background: rgba(61, 220, 151, 0.16); color: var(--success); border-color: rgba(61, 220, 151, 0.3); }
.btn-success:hover { background: rgba(61, 220, 151, 0.24); }
.btn-danger { background: rgba(255, 122, 138, 0.12); color: var(--danger); border-color: rgba(255, 122, 138, 0.28); }
.btn-danger:hover { background: rgba(255, 122, 138, 0.2); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-tight { padding: 20px; }
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-new { color: var(--warning); background: rgba(255, 200, 97, 0.1); border-color: rgba(255, 200, 97, 0.25); }
.pill-check_sent { color: var(--blue); background: rgba(63, 180, 242, 0.1); border-color: rgba(63, 180, 242, 0.25); }
.pill-paid { color: var(--purple); background: rgba(177, 108, 255, 0.12); border-color: rgba(177, 108, 255, 0.3); }
.pill-done { color: var(--success); background: rgba(61, 220, 151, 0.1); border-color: rgba(61, 220, 151, 0.25); }
.pill-rejected { color: var(--danger); background: rgba(255, 122, 138, 0.1); border-color: rgba(255, 122, 138, 0.25); }
.pill-cancelled { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-cheapest { background: rgba(255, 200, 97, 0.14); color: var(--warning); }
.badge-best { background: var(--gradient); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}
.eyebrow .premium-star { width: 20px; height: 20px; }

.premium-star { width: 24px; height: 24px; display: block; }

.flashes { display: grid; gap: 10px; margin-bottom: 24px; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 15px;
}
.flash .icon { margin-top: 2px; }
.flash-success { border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.flash-success .icon { color: var(--success); }
.flash-error { border-color: rgba(255, 122, 138, 0.3); background: rgba(255, 122, 138, 0.08); }
.flash-error .icon { color: var(--danger); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(7, 8, 15, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo .premium-star { width: 30px; height: 30px; filter: drop-shadow(0 6px 16px rgba(177, 108, 255, 0.55)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-login { display: flex; align-items: center; min-height: 40px; }

main.site-main { padding-bottom: 40px; }

.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin: 22px 0 20px; }
.hero-sub { font-size: clamp(17px, 2vw, 19px); color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--success); width: 18px; height: 18px; }

.orb { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orb::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 108, 255, 0.55), rgba(122, 139, 255, 0.15) 55%, transparent 70%);
  filter: blur(30px);
  animation: pulse 6s ease-in-out infinite;
}
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09); }
.orb-ring.r1 { inset: 6%; animation: spin 40s linear infinite; }
.orb-ring.r2 { inset: 20%; border-style: dashed; border-color: rgba(177, 108, 255, 0.28); animation: spin 28s linear infinite reverse; }
.orb-ring.r1::after { content: ""; position: absolute; top: 12%; left: 12%; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.orb-star { position: relative; width: 52%; height: 52%; filter: drop-shadow(0 30px 60px rgba(177, 108, 255, 0.6)); animation: float 6s ease-in-out infinite; }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(16, 18, 34, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.float-chip .icon { color: var(--purple); width: 18px; height: 18px; }
.float-chip.c1 { top: 10%; left: -4%; }
.float-chip.c2 { top: 46%; right: -6%; animation-delay: -2s; }
.float-chip.c3 { bottom: 8%; left: 6%; animation-delay: -4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--purple); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--text-2); font-size: 17px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan-card.is-featured { background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--gradient) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.plan-card.is-featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gradient-soft); pointer-events: none; }
.plan-card > * { position: relative; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.plan-price strong { font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 700; font-size: 18px; }
.plan-meta { color: var(--muted); font-weight: 600; font-size: 15px; min-height: 24px; }
.plan-save { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: rgba(61, 220, 151, 0.12); color: var(--success); font-weight: 800; font-size: 14px; }
.plan-list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.plan-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.plan-list .icon { width: 18px; height: 18px; color: var(--success); }
.plan-card .btn { margin-top: auto; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient-soft); border: 1px solid rgba(177, 108, 255, 0.25); color: #d9c8ff; margin-bottom: 18px; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--gradient); color: #fff; margin-bottom: 18px; box-shadow: var(--glow); }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

.cta-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 44px; border-radius: 28px; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--gradient) border-box; border: 1.5px solid transparent; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: var(--gradient-soft); pointer-events: none; }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.cta-banner p { color: var(--text-2); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.faq details[open] { background: var(--surface-2); border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--purple); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 10px; font-size: 13px; max-width: 520px; }

.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.page-head p { color: var(--text-2); margin-top: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14.5px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.label { font-weight: 700; font-size: 14.5px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label small { color: var(--muted); font-weight: 600; }
.input, .textarea, .select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(141, 146, 184, 0.7); font-weight: 500; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(177, 108, 255, 0.18); background: rgba(0, 0, 0, 0.35); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix { position: absolute; left: 16px; color: var(--muted); font-weight: 700; pointer-events: none; }
.input-group .input { padding-left: 34px; }
.hint { color: var(--muted); font-size: 13.5px; }
.error { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.has-error .input, .has-error .textarea { border-color: rgba(255, 122, 138, 0.6); }
.checkbox { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--purple); }

.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-steps { display: grid; gap: 20px; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.step-title .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-size: 14px; }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .rc-body { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: rgba(0, 0, 0, 0.2); transition: border-color .2s, background .2s, box-shadow .2s; }
.radio-card:hover .rc-body { border-color: rgba(255, 255, 255, 0.3); }
.radio-card input:checked + .rc-body { border-color: var(--purple); background: rgba(177, 108, 255, 0.1); box-shadow: 0 0 0 4px rgba(177, 108, 255, 0.14); }
.radio-card input:focus-visible + .rc-body { outline: 2px solid var(--purple); outline-offset: 2px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-title { font-weight: 800; font-size: 17px; }
.rc-price { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.rc-meta { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.rc-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; transition: all .2s; }
.rc-check .icon { width: 13px; height: 13px; opacity: 0; color: #fff; stroke-width: 3; }
.radio-card input:checked + .rc-body .rc-check { background: var(--gradient); border-color: transparent; }
.radio-card input:checked + .rc-body .rc-check .icon { opacity: 1; }
.radio-card .badge { padding: 3px 9px; font-size: 11px; }

.segmented { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); margin-bottom: 16px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: all .2s; }
.segmented input:checked + span { background: var(--surface-3); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--purple); }

.login-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 22px; border-radius: var(--radius-md); background: rgba(42, 171, 238, 0.08); border: 1px solid rgba(42, 171, 238, 0.25); }
.login-box strong { display: block; font-size: 16px; margin-bottom: 2px; }
.login-box p { color: var(--text-2); font-size: 14px; }

.summary { position: sticky; top: 92px; display: grid; gap: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text-2); }
.summary-row strong { color: var(--text); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.summary-total span { font-weight: 700; color: var(--text-2); }
.summary-total strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.summary .plan-save { margin-top: 0; }
.summary-note { display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; }
.summary-note .icon { width: 18px; height: 18px; color: var(--purple); margin-top: 1px; }

.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.order-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.stepper-item { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.stepper-item::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--border-strong); border-radius: 2px; }
.stepper-item:first-child::before { display: none; }
.stepper-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--border-strong); }
.stepper-dot .icon { width: 16px; height: 16px; }
.stepper-item.is-done { color: var(--text-2); }
.stepper-item.is-done::before { background: var(--gradient); }
.stepper-item.is-done .stepper-dot { background: var(--gradient); border-color: transparent; color: #fff; }
.stepper-item.is-current { color: var(--text); }
.stepper-item.is-current::before { background: var(--gradient); }
.stepper-item.is-current .stepper-dot { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(177, 108, 255, 0.18); color: var(--purple); }

.pay-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2b2f6b 0%, #5a37a8 48%, #a2407f 100%);
  box-shadow: 0 30px 60px -28px rgba(122, 80, 255, 0.8);
  color: #fff;
}
.pay-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.pay-card::after { content: ""; position: absolute; width: 200px; height: 200px; left: -60px; bottom: -120px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.pay-card > * { position: relative; z-index: 1; }
.pay-card-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; opacity: .9; }
.pay-card-chip { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f3d488, #c9a24c); }
.pay-card-number { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-size: clamp(20px, 3.4vw, 27px); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; word-break: break-word; }
.pay-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; opacity: .92; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: 0; text-transform: none; transition: background .2s; flex: none; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }
.copy-btn.is-copied { background: rgba(61, 220, 151, 0.3); border-color: rgba(61, 220, 151, 0.6); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn-dark { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.copy-btn-dark:hover { background: var(--surface-3); }

.amount-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-top: 16px; border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }
.amount-row span { color: var(--text-2); font-weight: 600; }
.amount-row strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.dropzone { position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 20px; border-radius: var(--radius-md); border: 2px dashed var(--border-strong); background: rgba(0, 0, 0, 0.18); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--purple); background: rgba(177, 108, 255, 0.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gradient-soft); color: #d9c8ff; }
.dropzone strong { font-size: 16px; }
.dropzone .hint { font-size: 13px; }
.dropzone-file { display: none; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-3); font-weight: 700; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone.has-file .dropzone-file { display: inline-flex; }
.dropzone-preview { display: none; max-height: 180px; border-radius: 12px; border: 1px solid var(--border); }
.dropzone.has-preview .dropzone-preview { display: block; }

.status-box { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 44px 24px; }
.status-box h2 { font-size: 24px; font-weight: 800; }
.status-box p { color: var(--text-2); max-width: 440px; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.status-icon .icon { width: 34px; height: 34px; }
.status-icon.is-waiting { background: rgba(63, 180, 242, 0.12); color: var(--blue); position: relative; }
.status-icon.is-waiting::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--blue); animation: spin 1.1s linear infinite; }
.status-icon.is-paid { background: rgba(177, 108, 255, 0.14); color: var(--purple); }
.status-icon.is-success { background: transparent; width: 110px; height: 110px; }
.status-icon.is-success .premium-star { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(177, 108, 255, 0.6)); animation: float 5s ease-in-out infinite; }
.status-icon.is-danger { background: rgba(255, 122, 138, 0.12); color: var(--danger); }
.status-icon.is-muted { background: var(--surface-2); color: var(--muted); }
.reason { padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 122, 138, 0.08); border: 1px solid rgba(255, 122, 138, 0.25); color: var(--text); font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }

.details { display: grid; gap: 0; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }

.side-stack { display: grid; gap: 18px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 14.5px; }
.notice .icon { color: var(--purple); margin-top: 2px; }
.notice-warning { background: rgba(255, 200, 97, 0.08); border-color: rgba(255, 200, 97, 0.25); }
.notice-warning .icon { color: var(--warning); }
.link-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }
.link-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 14px; font-weight: 600; }

.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.order-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.order-row-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient-soft); }
.order-row-icon .premium-star { width: 24px; height: 24px; }
.order-row-main strong { display: block; font-size: 16px; }
.order-row-main span { color: var(--muted); font-size: 14px; }
.order-row-price { font-weight: 800; font-size: 17px; }

.empty { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; text-align: center; }
.empty .premium-star { width: 64px; height: 64px; opacity: .9; }
.empty h2 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--muted); max-width: 420px; }

.error-page { display: grid; justify-items: center; gap: 16px; padding: 96px 0; text-align: center; }
.error-page .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; }

body.admin { background: #090a13; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px; padding: 22px 16px; border-right: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.sidebar .logo { padding: 4px 10px 22px; font-size: 17px; }
.sidebar .logo small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: var(--gradient-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(177, 108, 255, 0.3); }
.side-nav .count { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 12.5px; font-weight: 800; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.admin-content { min-width: 0; }
.admin-main { min-width: 0; padding: 28px 36px 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.admin-top h1 { font-size: 28px; font-weight: 800; }
.admin-top p { color: var(--muted); margin-top: 4px; }
.admin-mobile-bar { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 20px 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.stat-card .stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.stat-card .stat-label .icon { width: 18px; height: 18px; color: var(--purple); }
.stat-card .stat-value { margin-top: 10px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.stat-card .stat-sub { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.stat-card.is-accent { background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--gradient) border-box; border: 1.5px solid transparent; }

.panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 17px; font-weight: 800; }
.panel-body { padding: 22px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { padding: 12px 16px; text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table .cell-main { font-weight: 700; }
.table .cell-sub { color: var(--muted); font-size: 13px; }
.table .row-link { position: relative; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table-empty { padding: 40px 16px; text-align: center; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-weight: 700; font-size: 14px; transition: all .2s; }
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a.is-active { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.tabs a span { color: var(--muted); font-weight: 800; font-size: 12.5px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.search { position: relative; flex: 1; max-width: 420px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; min-height: 44px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 18px 22px; margin: 0; border-top: 1px solid var(--border); }
.pagination li a, .pagination li span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--text-2); }
.pagination li a:hover { background: var(--surface-2); color: var(--text); }
.pagination li.active a, .pagination li.active span { background: var(--gradient); border-color: transparent; color: #fff; }
.pagination li.disabled span { opacity: .4; }

.admin-order { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.receipt-view { display: grid; place-items: center; min-height: 320px; padding: 16px; background: rgba(0, 0, 0, 0.3); }
.receipt-view img { max-height: 70vh; border-radius: 12px; }
.receipt-view iframe { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #fff; }
.receipt-empty { display: grid; justify-items: center; gap: 10px; color: var(--muted); text-align: center; padding: 40px 20px; }
.receipt-empty .icon { width: 40px; height: 40px; }
.action-stack { display: grid; gap: 12px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .span-2 { grid-column: span 2; }
.kv { display: grid; gap: 10px; font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted); }
.kv code, code.inline { padding: 2px 8px; border-radius: 8px; background: var(--surface-3); font-size: 13px; word-break: break-all; }
.dot-ok, .dot-bad { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dot-ok { color: var(--success); }
.dot-bad { color: var(--danger); }
.dot-ok::before, .dot-bad::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { justify-content: center; margin-bottom: 26px; font-size: 20px; width: 100%; }

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .admin-order { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; }
  .orb { width: min(320px, 82%); }
  .float-chip { font-size: 12.5px; padding: 8px 12px; }
  .float-chip.c1 { left: -8%; }
  .float-chip.c2 { right: -10%; }
  .checkout, .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px 28px; }

  .nav, .header-actions .hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .nav {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 20px;
    gap: 4px;
    background: rgba(7, 8, 15, 0.96);
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .nav a { padding: 12px 14px; font-size: 16px; }

  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; background: #0b0c18; }
  .admin-shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; background: rgba(9, 10, 19, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .admin-main { padding: 22px 20px 48px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .card { padding: 22px; }
  .plan-card { padding: 26px 22px; }
  .features, .steps { grid-template-columns: 1fr; gap: 12px; }
  .feature, .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .feature-icon, .step-num { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .feature h3, .step h3 { font-size: 16px; margin-bottom: 4px; align-self: end; }
  .section-head { margin-bottom: 32px; }
  .header-inner { gap: 12px; }
  .logo span.logo-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-cta .btn { width: 100%; }
  .float-chip.c2 { display: none; }
  .stepper-item { font-size: 11.5px; }
  .order-row { grid-template-columns: auto 1fr; }
  .order-row-price, .order-row .pill { grid-column: 2; justify-self: start; }
  .pay-card { padding: 22px 20px; }
  .amount-row { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .details div { flex-direction: column; gap: 2px; }
  .details dd { text-align: left; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 19px; white-space: normal; }
  .admin-top h1 { font-size: 24px; }
  .user-chip .user-name { display: none; }
  .user-chip { padding: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.flash-wrap { padding-top: 20px; }
.flash-wrap .flashes { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.stack { display: grid; gap: 20px; }
.row-gap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.summary-card { display: grid; gap: 16px; }
.summary-card .card-title { margin: 0; }
.auth-card h1 { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 22px; }
.auth-card form .btn { margin-top: 22px; }
.login-box-widget { min-height: 40px; display: flex; align-items: center; }
.panel-narrow { max-width: 720px; }
.hero-grid > *, .checkout > *, .order-layout > *, .admin-order > *, .stack > *, .side-stack > * { min-width: 0; }
