:root {
  --bg: #000000;
  --bg-card: #0d0d0d;
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-soft: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 24px;
  --maxw: 980px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }
ul { list-style: none; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 85%);
}

.app { position: relative; z-index: 1; min-height: 100vh; }

.wrap {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
}

.header-bar,
.header-pill {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  pointer-events: auto;
}

.brand { display: inline-flex; align-items: center; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-size: 0.95rem; font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.42rem 0.85rem;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav-link:hover { color: #fff; }

.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.btn-login,
.btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-login svg,
.btn-profile svg { width: 15px; height: 15px; }
.btn-login:hover,
.btn-profile:hover { opacity: 0.92; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.burger span {
  display: block;
  width: 16px; height: 1.6px;
  background: #fff;
}

/* shared buttons (auth/cabinet) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn--white { color: #111; background: #fff; }
.btn--accent { color: #fff; background: var(--accent); }
.btn--ghost { color: var(--text); background: var(--glass); border: 1px solid var(--border); }
.btn--primary { color: #fff; background: var(--accent); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.82rem; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 6.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 55%, #000 100%),
    url("assets/hero-main-bg.png") center top / cover no-repeat;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.hero-title span { font-weight: 700; }

.hero-lead {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #000;
  background: #fff;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-hero svg { width: 18px; height: 18px; }
.btn-hero:hover { opacity: 0.92; transform: translateY(-2px); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  width: min(920px, 100%);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stat-pill svg { width: 15px; height: 15px; opacity: 0.85; }

/* ── Sections ── */
.section {
  position: relative;
  padding: 5rem 0 5.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.section-badge svg { width: 14px; height: 14px; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.advantages {
  background:
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04) 40%, transparent),
    url("assets/bg-leaves.png") center / cover no-repeat;
  background-blend-mode: normal, soft-light;
}

.advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.advantages .wrap,
.goods .wrap,
.reviews .wrap {
  text-align: center;
}

/* ── Bento advantages ── */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  text-align: left;
}

.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.bento-card--hero {
  grid-row: span 3;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bento-card__text {
  position: relative;
  z-index: 2;
  max-width: 28ch;
}

.bento-card__text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.bento-card__text p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.bento-card__art {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(240px, 62%);
  height: 140px;
  opacity: 0.5;
  pointer-events: none;
  background: url("assets/bg-orb.png") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
  filter: grayscale(1) brightness(1.15);
}

.bento-card__art--purple {
  opacity: 0.9;
  filter: none;
  right: -5%;
  bottom: -10%;
  width: min(380px, 92%);
  height: 220px;
  background-position: center 40%;
}

/* ── Pricing ── */
.pricing { text-align: left; }

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.plan-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  padding: 1.35rem 1.5rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  transition: background 0.25s var(--ease);
}

.plan-item:last-child { border-bottom: none; }
.plan-item:hover { background: rgba(255, 255, 255, 0.03); }
.plan-item.is-selected { background: rgba(255, 255, 255, 0.05); }

.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #000;
  background: #fff;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.plan-price {
  font-size: 1.05rem;
  font-weight: 700;
}

.plan-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 48ch;
}

.pricing-checkout {
  margin-top: 1.25rem;
}

.checkout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.checkout-price {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.btn-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #000;
  background: #fff;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-purchase svg { width: 18px; height: 18px; }
.btn-purchase:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.testimonial-card { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 0; }
.testimonial-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.75rem; }
.testimonial-card footer { font-size: 0.8rem; color: var(--text-3, rgba(255,255,255,0.4)); }
.testimonial-card cite { font-style: normal; color: var(--accent); font-weight: 600; }

/* ── Pricing compare table ── */
.pricing-compare { margin-top: 2rem; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th, .compare-table td { padding: 0.625rem 1rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--text-2); }
.compare-table thead th { color: var(--text-1); font-weight: 600; background: rgba(139,92,246,0.1); }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ── Reviews / video ── */
.reviews { overflow: hidden; padding-bottom: 2rem; }

.review-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 520px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}

.video-frame.is-playing video { opacity: 1; z-index: 3; }
.video-frame.is-playing .video-frame__poster { opacity: 0; }

.video-frame__trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.video-frame.is-playing .video-frame__trigger { opacity: 0; pointer-events: none; }

.video-frame__play {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.video-frame__play svg { width: 22px; height: 22px; margin-left: 3px; }

/* ── FAQ Section ── */
.faq {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02) 50%, transparent);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s var(--ease);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-2);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  animation: fadeIn 0.3s var(--ease);
}

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

.faq-answer p {
  margin: 0;
}

@media (max-width: 768px) {
  .faq-item summary {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
  }
  
  .faq-answer {
    padding: 0 1.2rem 1rem;
    font-size: 0.88rem;
  }
}

/* ── Footer ── */
.footer {
  padding: 0 1.5rem 2.5rem;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 2.2rem 2.2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.footer-brand img { width: 24px; height: 24px; margin-bottom: 0.65rem; }
.footer-brand > span { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.footer-brand p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s var(--ease);
}

.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.14); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .header-bar,
  .header-pill { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .btn-login { display: none; }
  .burger { display: flex; }

  .header-bar.nav-open,
  .header-pill.nav-open {
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .header-bar.nav-open .nav,
  .header-pill.nav-open .nav {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .nav-link.is-active::after { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento-card--hero { grid-row: auto; min-height: 320px; }

  .hero-copy { margin-bottom: 1rem; }
  .stat-pill { width: 100%; justify-content: center; }
  .footer-bar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header { padding: 1rem; }
  .hero { padding-bottom: 3rem; }
}

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

/* ══ Auth pages ══ */
.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  isolation: isolate;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.7), rgba(7, 7, 11, 0.92)),
    url("https://catlavanclient.ru/assets/%D1%84%D0%BE%D0%BD%D1%8B/cta-bg.png");
  background-size: cover;
  background-position: center;
  filter: saturate(110%);
}

.auth-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.auth-back svg { width: 16px; height: 16px; }
.auth-back:hover { color: var(--text); }

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.6rem 2.4rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
}
.auth-head { text-align: center; margin-bottom: 2rem; }
.auth-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  margin: 0 auto 1.1rem;
}
.auth-title { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 0.4rem; }
.auth-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.auth-form { display: flex; flex-direction: column; gap: 1.05rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.45rem; }
.auth-label { font-size: 0.8rem; font-weight: 500; color: var(--text-soft); }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap > svg {
  position: absolute;
  left: 0.95rem;
  width: 17px; height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: 0.85rem 0.95rem 0.85rem 2.7rem;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-input::placeholder { color: rgba(244, 243, 248, 0.34); }
.auth-input:focus {
  outline: none;
  border-color: rgba(139, 108, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.15);
}
.auth-toggle {
  position: absolute;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.auth-toggle svg { width: 17px; height: 17px; }
.auth-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.auth-error {
  min-height: 0;
  font-size: 0.78rem;
  color: #ff8087;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.auth-field.has-error .auth-input { border-color: rgba(255, 128, 135, 0.55); }
.auth-field.has-error .auth-error { opacity: 1; }

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-terms input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth-checkbox {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.auth-checkbox svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.auth-terms input:checked + .auth-checkbox {
  background: linear-gradient(180deg, var(--accent), #6a4bd8);
  border-color: transparent;
}
.auth-terms input:checked + .auth-checkbox svg { opacity: 1; transform: scale(1); }
.auth-terms input:focus-visible + .auth-checkbox { box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.2); }
.auth-terms a { color: var(--accent-2); }
.auth-terms a:hover { text-decoration: underline; }

.auth-submit { width: 100%; margin-top: 0.3rem; padding: 0.95rem; border-radius: 13px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint, rgba(244, 243, 248, 0.34));
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem;
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.auth-oauth svg { width: 19px; height: 19px; }
.auth-oauth:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.auth-alt { margin-top: 1.6rem; text-align: center; font-size: 0.87rem; color: var(--text-muted); }
.auth-alt a { color: var(--accent-2); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

.auth-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  font-size: 0.86rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.1);
  color: #a7f3c0;
}
.auth-note svg { width: 17px; height: 17px; flex-shrink: 0; }
.auth-note[hidden] { display: none; }

@media (max-width: 480px) {
  .auth-card { padding: 2.2rem 1.5rem; }
}

/* ══ Auth split layout ══ */
.auth-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.6rem;
  isolation: isolate;
  overflow: hidden;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/bg-orb.png") center / cover no-repeat;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.5) 0%, rgba(9, 9, 9, 0.75) 55%, rgba(9, 9, 9, 0.95) 100%);
}
.auth-visual__brand { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; }
.auth-visual__copy { max-width: 30ch; }
.auth-visual__title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 0.85rem;
}
.auth-visual__title span { color: var(--text-soft); }
.auth-visual__text { font-size: 0.98rem; line-height: 1.6; color: var(--text-soft); margin-bottom: 1.8rem; }
.auth-points { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.auth-points svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), #6a4bd8);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg);
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-wrap .auth-back { margin-bottom: 2rem; }
.auth-form-wrap .auth-title { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 0.4rem; }
.auth-form-wrap .auth-subtitle { margin-bottom: 2rem; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
}

/* ══ Cabinet (profile) — Catlavan style ══ */
.cabinet-page { min-height: 100vh; }

.cabinet-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 3rem;
  overflow: hidden;
}

.cabinet-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 60%, #000 100%),
    url("assets/hero-main-bg.png") center top / cover no-repeat;
  pointer-events: none;
}

.cabinet-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cabinet-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1.75rem;
  text-align: left;
}

.cabinet-profile,
.cabinet-sub-panel {
  position: relative;
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  overflow: hidden;
}

.cabinet-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.cabinet-profile__avatar {
  position: relative;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

.cabinet-profile__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--purple), transparent 55%, rgba(139, 92, 246, 0.35));
  animation: ringSpin 8s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.cabinet-profile__avatar img {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #000;
  padding: 6px;
}

.cabinet-profile__info { min-width: 0; }

.cabinet-profile__name {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cabinet-profile__mail {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cabinet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.cabinet-tag {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), #6a4bd8);
}

.cabinet-tag--muted {
  color: var(--text-soft);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.cabinet-sub-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.cabinet-sub-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.status-dot.is-inactive { background: #f87171; }

.cabinet-sub-panel__status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cabinet-sub-panel__status.is-active { color: #8fd4a8; }
.cabinet-sub-panel__status.is-inactive { color: #f0aaaa; }

.cabinet-sub-panel__plan {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cabinet-sub-panel__meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.btn-purchase--compact {
  width: auto;
  align-self: flex-start;
  padding: 0.75rem 1.15rem;
  border-radius: 100px;
  font-size: 0.84rem;
}

.cabinet-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.cabinet-section .wrap { text-align: center; }

.cabinet-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  text-align: left;
}

.cabinet-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 1.5rem 1.55rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.cabinet-tile--wide {
  grid-column: 1 / -1;
}

.cabinet-tile__glow {
  position: absolute;
  right: -12%;
  bottom: -25%;
  width: min(220px, 55%);
  height: 130px;
  opacity: 0.45;
  pointer-events: none;
  background: url("assets/bg-orb.png") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
}

.cabinet-tile__body {
  position: relative;
  z-index: 1;
}

.cabinet-tile__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.cabinet-tile__hint {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-grid div {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.info-grid dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.info-grid dd {
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-all;
}

.code-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.code-row__value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text-soft);
  word-break: break-all;
}

.code-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-btn {
  padding: 0.25rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.text-btn--warn { color: #f0aaaa; }
.text-btn--warn:hover { color: #ffcaca; border-color: rgba(255, 170, 170, 0.35); }

.cabinet-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cabinet-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cabinet-label { font-size: 0.82rem; color: var(--text-muted); }
.cabinet-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cabinet-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.cabinet-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.cabinet-error {
  min-height: 0;
  font-size: 0.76rem;
  color: #f0aaaa;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.cabinet-field.has-error .cabinet-input { border-color: rgba(248, 113, 113, 0.55); }
.cabinet-field.has-error .cabinet-error { opacity: 1; }

.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translate(-50%, 120%);
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: 100px;
  font-size: 0.84rem;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .cabinet-hero__grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cabinet-bento { grid-template-columns: 1fr; }
  .cabinet-tile--wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .cabinet-profile { flex-direction: column; align-items: flex-start; }
  .btn-purchase--compact { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-profile__ring { animation: none; }
}

/* ── Anticheat badges ── */
.anticheats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.anticheats-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.anticheat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* ── Legal pages ── */
.legal-page {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-wrap .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s var(--ease);
}

.legal-wrap .auth-back svg { width: 16px; height: 16px; }
.legal-wrap .auth-back:hover { color: var(--text); }

.legal-wrap h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-wrap section {
  margin-bottom: 2rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.legal-wrap p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.legal-wrap ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.legal-wrap ul li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-wrap a {
  color: var(--accent-2);
}

.legal-wrap a:hover {
  text-decoration: underline;
}

/* ── Changelog ── */
.changelog-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.changelog-item {
  display: grid;
  grid-template-columns: 4rem 6rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-version {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
}

.changelog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.changelog-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

@media (max-width: 560px) {
  .changelog-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ── Instruction Modal ── */
.instruction-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.instruction-modal-content {
  background: var(--surface, #1a1a2e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.instruction-modal-content h3 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  color: #fff;
}

.instruction-modal-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-2, rgba(255, 255, 255, 0.7));
  line-height: 1.8;
}

.instruction-modal-content li {
  margin-bottom: 0.5rem;
}

.instruction-modal-ok {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.instruction-modal-ok:hover {
  background: var(--accent-hover, #7c3aed);
  transform: translateY(-1px);
}

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

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