:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f2f2f7;
  --accent: #007aff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --text-primary: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #d1d1d6;
  --shadow: 0 20px 50px rgba(15, 15, 25, 0.15);
}

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

body {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(0, 122, 255, 0.05), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  scroll-behavior: smooth;
  opacity: 1;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.page-enter {
  animation: page-in 0.28s ease;
}

body.page-exit {
  opacity: 0;
  transform: translateY(8px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}

body::before {
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.35), transparent 65%);
}

body::after {
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.2), transparent 70%);
  animation-delay: 6s;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 36px 6vw 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18), transparent 60%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -80px;
}

.hero::after {
  bottom: -140px;
  left: -120px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}

.nav-actions .btn {
  min-height: 40px;
}

.logo {
  font-weight: 700;
  letter-spacing: 1.6px;
  font-size: 16px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(79, 139, 255, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.moving-gradient {
  background: linear-gradient(120deg, #7bb2ff, #4f8bff, #a6ccff, #4f8bff);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: moving-gradient 6.5s ease-in-out infinite;
}

@keyframes moving-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-copy,
.hero-mock {
  animation: rise-in 0.6s ease both;
}

.hero-mock {
  animation-delay: 0.1s;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 14px;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  animation: wp-spin 0.8s linear infinite;
  transition: opacity 0.15s ease;
}

.mini-spinner.active {
  opacity: 1;
  visibility: visible;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.btn.is-loading {
  opacity: 0.95;
}

.pulse {
  animation: pulse-btn 0.22s ease;
}

@keyframes pulse-btn {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-mock {
  position: relative;
  min-height: 260px;
}

.mock-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.mock-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.mock-body {
  display: grid;
  gap: 12px;
}

.mock-title {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--muted);
}

.mock-row {
  height: 14px;
  background: var(--surface-alt);
  border-radius: 10px;
}

.mock-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
}

.glow {
  position: absolute;
  right: 8%;
  bottom: -30px;
  width: 120px;
  height: 120px;
  background: rgba(0, 122, 255, 0.18);
  filter: blur(30px);
  border-radius: 999px;
  animation: pulse 6s ease-in-out infinite;
}

.section {
  padding: 72px 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.hero-grid.hero-grid-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-stats.hero-stats-large {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-stats.hero-stats-large .stat {
  padding: 16px 18px;
}

.hero-stats.hero-stats-large .stat-num {
  font-size: 24px;
}

.hero-stats.hero-stats-large .stat-label {
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 15, 25, 0.18);
  border-color: color-mix(in srgb, var(--border) 70%, var(--accent));
}

.card h3 {
  font-size: 14px;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pricing-card {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 15, 25, 0.18);
}

.pricing-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.buy.is-selected,
.pricing-pick.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.25) inset;
}

.price {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text);
}

.price-sub {
  font-size: 16px;
  margin: 8px 0;
  color: var(--muted);
}

.price-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  color: #081019;
  background: linear-gradient(90deg, rgba(79,139,255,0.9), rgba(160,197,255,0.9));
  box-shadow: 0 8px 20px rgba(59,130,246,0.25);
  z-index: 2;
}

.pricing-badge.badge-best {
  background: linear-gradient(90deg, rgba(80,200,120,0.9), rgba(199,255,122,0.9));
}

.pricing-notes ul {
  list-style: none;
  margin-top: 10px;
}

.pricing-notes li {
  margin-bottom: 8px;
  color: var(--muted);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-copy h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.feature-list li {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.demo-frame.mini {
  transform: scale(0.96);
  transform-origin: top left;
}

.mock-upload {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.upload-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-alt);
}

.download-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.download-card p {
  color: var(--muted);
  margin: 12px 0 20px;
}

.small {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  padding: 30px 6vw 50px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.span-2 {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.referral-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.referral-code {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--text);
}

.pass-timer {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  margin: 8px 0 6px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.account-grid .pricing-grid {
  grid-template-columns: 1fr;
}

.account-grid-single {
  grid-template-columns: minmax(320px, 560px);
  justify-content: center;
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 12px 0 4px;
}

.auth-tabs .btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
}

.auth-tabs .btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.account-pricing-grid {
  grid-template-columns: 1fr;
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 15px;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.input span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.input select {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  min-height: 44px;
  outline: none;
  appearance: none;
}

.input select option {
  color: #0b0f17;
}

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

.input:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  background: var(--surface);
}

.input.muted {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-alt) 85%, transparent);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.notice {
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.credit-balance {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.4px;
  margin: 10px 0 14px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.4);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 9999;
}

.offerwall-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 22, 0.6);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 10000;
}

.offerwall-modal.hidden {
  display: none;
}

.offerwall-frame {
  width: min(1100px, 96vw);
  height: min(720px, 88vh);
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.offerwall-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.offerwall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: card-in 0.25s ease;
}

.modal-card h3 {
  font-size: 18px;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.modal-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.danger-zone {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.btn.danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: #f87171;
  background: transparent;
}

.btn.danger:hover {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fff;
  background: rgba(248, 113, 113, 0.2);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.smart-brief {
  display: grid;
  gap: 12px;
}

.smart-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.meta-row .subtle {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meta-row .pill {
  font-size: 14px;
  padding: 8px 14px;
  letter-spacing: 0.08em;
}

.progress-wrap {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(79,139,255,0.5));
  transition: width 180ms ease;
}

.smart-row strong {
  color: var(--text);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.demo-card {
  padding: 26px;
}

.demo-frame {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 32px;
  text-align: left;
}

.doc-toolbar {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.doc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.doc-titlebar {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc-actions {
  display: flex;
  gap: 6px;
}

.doc-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
}

.doc-page {
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(6, 11, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.demo-typing {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  min-height: 240px;
  white-space: pre-line;
  letter-spacing: 0.01em;
}

.legal-hero {
  padding-bottom: 60px;
}

.legal-hero-grid {
  align-items: center;
  gap: 28px;
}

.legal-hero-copy h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.legal-subtitle {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 15px;
}

.legal-summary {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 20px;
}

.legal-summary h3 {
  margin-bottom: 8px;
}

.legal-section {
  padding-top: 10px;
}

.legal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legal-card {
  background: var(--surface);
  border-radius: 16px;
}

.admin-card {
  max-width: 720px;
  margin: 0 auto;
}

.demo-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: demo-blink 0.9s steps(2, start) infinite;
  vertical-align: -2px;
}

@keyframes demo-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes card-in {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 10px);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding-top: 24px;
  }
  .account-grid,
  .billing-grid {
    grid-template-columns: 1fr;
  }
}

body.reduced-motion,
body.reduced-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-alt: #1d222b;
    --accent: #4c8dff;
    --text: #f5f7ff;
    --muted: #b8bfcb;
    --text-primary: #f5f7ff;
    --text-muted: #b8bfcb;
    --border: #2f3542;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  }
}

.admin-page .section {
  padding-top: 40px;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 18px;
}

.admin-sidebar {
  display: grid;
  gap: 16px;
}

.admin-locked .admin-grid {
  grid-template-columns: 1fr;
}

.admin-locked #admin-content,
.admin-locked #admin-content-wide,
.admin-locked #admin-content-logs {
  display: none;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.admin-access-panel {
  border: 1px solid rgba(79, 139, 255, 0.35);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.55));
}

.admin-access-panel .input {
  background: rgba(8, 12, 22, 0.85);
  border-color: rgba(79, 139, 255, 0.25);
}

.admin-panel-wide {
  padding: 24px;
}

.admin-help ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.admin-section-card {
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-panel h3 {
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.admin-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  font-size: 13px;
  color: var(--text-subtle);
}

.admin-kpis {
  margin: 18px 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-kpi {
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}

.admin-kpi strong {
  display: block;
  font-size: 18px;
  color: var(--text-primary);
}

.admin-kpi .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-cta {
  margin-top: 18px;
}

.admin-page .notice {
  margin-top: 10px;
}

.admin-page .input {
  background: rgba(15, 23, 42, 0.82);
}

.admin-section-title {
  margin-top: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-form-stack {
  gap: 12px;
}

.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.admin-toggle input {
  width: 46px;
  height: 26px;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.admin-toggle input:checked {
  background: rgba(79, 139, 255, 0.6);
  border-color: rgba(79, 139, 255, 0.8);
}

.admin-toggle input:checked::after {
  transform: translateX(20px);
}

.admin-json {
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}

.admin-json-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-json pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.btn-compact {
  padding: 6px 12px;
  font-size: 13px;
}

.input-compact {
  padding: 8px 12px;
  font-size: 13px;
}

.admin-referral {
  margin-top: 4px;
  margin-bottom: 12px;
}

.admin-referral-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.admin-referral-uses {
  margin-top: 16px;
  padding: 16px 18px;
}

.admin-referral-uses summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.admin-referral-uses summary::after {
  content: "›";
  float: right;
  opacity: 0.6;
  transform: rotate(90deg);
}

.admin-referral-uses[open] summary::after {
  transform: rotate(-90deg);
}

.admin-referral-uses summary::-webkit-details-marker {
  display: none;
}

.referral-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.referral-item {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  font-size: 13px;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.admin-account-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
}

.admin-account-meta {
  display: grid;
  gap: 4px;
}

.admin-account-meta strong {
  color: var(--text-primary);
  font-size: 14px;
}

.admin-account-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-account-pagination {
  margin-top: 12px;
  justify-content: flex-end;
}

.admin-onboarding {
  margin: 12px 0 18px;
}

.admin-onboarding-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-onboarding-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.admin-onboarding-item span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-onboarding-item strong {
  font-size: 14px;
  color: var(--text-primary);
}

.admin-log-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.admin-log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  font-size: 13px;
}

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

  .admin-account-row {
    grid-template-columns: 1fr;
  }

  .admin-account-actions {
    justify-content: flex-start;
  }
}

.admin-log strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.admin-log span {
  color: var(--text-subtle);
}

.admin-log time {
  color: var(--text-muted);
  font-size: 13px;
}

.step-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.step-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(79, 139, 255, 0.2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text-primary);
}

.step-body p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.step-media {
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(79, 139, 255, 0.14), transparent 56%),
    radial-gradient(120% 120% at 82% 100%, rgba(101, 255, 193, 0.12), transparent 54%),
    rgba(10, 14, 22, 0.55);
  color: var(--text-subtle);
  display: block;
  padding: 12px;
  overflow: hidden;
}

.dropzone {
  height: 100%;
  min-height: 160px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(8, 11, 18, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(233, 237, 245, 0.75);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dropzone.is-hover {
  border-color: rgba(82, 214, 255, 0.8);
  background: rgba(12, 16, 24, 0.85);
  transform: translateY(-2px);
}

.dropzone.has-image {
  border-style: solid;
  background-size: cover;
  background-position: center;
  color: transparent;
}

.dropzone.dropzone-illustration.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(6, 10, 20, 0.9);
}

.dropzone-placeholder {
  display: grid;
  gap: 6px;
}

.dropzone-title {
  font-weight: 700;
  color: var(--text-primary);
}

.dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.step-media .mock-window {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 18, 0.78);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.step-media .mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-media .mock-dots {
  display: inline-flex;
  gap: 6px;
}

.step-media .mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.step-media .mock-dot.red { background: rgba(255, 99, 99, 0.9); }
.step-media .mock-dot.yellow { background: rgba(255, 206, 71, 0.92); }
.step-media .mock-dot.green { background: rgba(76, 217, 100, 0.92); }

.step-media .mock-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-media .mock-content {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.step-media .mock-row {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.step-media .mock-row.sm { width: 58%; }
.step-media .mock-row.md { width: 78%; }
.step-media .mock-row.lg { width: 94%; }
.step-media .mock-row.xs { width: 42%; }

.step-media .mock-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 12px;
  align-items: stretch;
}

.step-media .mock-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.step-media .mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(233, 237, 245, 0.9);
  width: fit-content;
}

.step-media .mock-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}
.step-media .mock-pill.active {
  border-color: rgba(79, 139, 255, 0.55);
  background: rgba(79, 139, 255, 0.16);
}
.step-media .mock-pill.active .dot { background: rgba(79, 139, 255, 0.95); }

.step-media .mock-input {
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.step-media .mock-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-media .mock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(233, 237, 245, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-media .mock-button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.step-media .mock-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 12px;
  color: rgba(233, 237, 245, 0.92);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-media .mock-progress {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.step-media .mock-progress > span {
  display: block;
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, rgba(79, 139, 255, 0.95), rgba(101, 255, 193, 0.95));
}

.step-media .mock-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 237, 245, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .step-row {
    grid-template-columns: 1fr;
  }
  .step-index {
    width: 28px;
    height: 28px;
  }
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 22, 0.7);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
  padding: 24px;
}

.onboarding-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-card {
  width: min(900px, 100%);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  max-height: 90vh;
  overflow: auto;
}

.onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onboarding-head h3 {
  margin-bottom: 4px;
}

.onboarding-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.onboarding-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.onboarding-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(79, 139, 255, 0.6), rgba(79, 139, 255, 1));
  transition: width 0.25s ease;
}

.onboarding-step {
  display: grid;
  gap: 14px;
}

.onboarding-step.animate {
  animation: step-in 0.25s ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-step-count {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.onboarding-step h4 {
  font-size: 20px;
  color: var(--text-primary);
}

.onboarding-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.onboarding-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.onboarding-option:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 139, 255, 0.6);
}

.onboarding-option.active {
  background: rgba(79, 139, 255, 0.22);
  border-color: rgba(79, 139, 255, 0.9);
}

.option-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(79, 139, 255, 0.2);
  font-size: 16px;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-actions .btn-lg {
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.onboarding-option.select-all {
  border-style: dashed;
  background: rgba(79, 139, 255, 0.12);
}

.onboarding-input .input {
  width: 100%;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-primary);
  padding: 10px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip.active {
  background: rgba(79, 139, 255, 0.25);
  border-color: rgba(79, 139, 255, 0.8);
  color: #f8fbff;
}

.onboarding-referral {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .admin-panel-head {
    align-items: flex-start;
  }
}
