:root {
  --brand: #0b72e7;
  --brand-dark: #0857b8;
  --accent: #00c9a7;
  --ink: #0d1b2e;
  --ink-2: #3d4d66;
  --ink-3: #6b7c95;
  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --line: #e3eaf4;
  --card: #ffffff;
  --dark: #061428;
  --dark-2: #0a2444;
  --ok: #10b981;
  --off: #c3cede;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 46, .06);
  --shadow-md: 0 14px 40px rgba(13, 27, 46, .10);
  --shadow-lg: 0 30px 70px rgba(6, 20, 40, .22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container-narrow { width: min(860px, 92%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 27, 46, .07); }

.nav-wrap { display: flex; align-items: center; gap: 26px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-text em { font-style: normal; color: var(--brand); }
.brand-mark { display: grid; place-items: center; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--brand); }
.nav-mobile-login { display: none; }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 12px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(11, 114, 231, .30); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(11, 114, 231, .36); }

.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); }

.btn-light { background: #fff; color: var(--brand); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.btn-light:hover { background: #f2f7ff; }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(0, 201, 167, .22), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 58%, #08305c 100%);
  color: #fff;
  padding: 84px 0 64px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 50% 30%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-glow-a { width: 380px; height: 380px; background: #0b72e7; top: -120px; left: -80px; }
.hero-glow-b { width: 340px; height: 340px; background: #00c9a7; bottom: -140px; right: -60px; opacity: .38; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 15px;
  border-radius: 999px;
  color: #cfe3ff;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 201, 167, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 201, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0); } }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.hero h1 span { background: linear-gradient(90deg, #59a5ff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-copy > p { color: #b9c9de; font-size: 1.07rem; max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: #c6d6ea; font-size: .92rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--accent); }

/* Hero dashboard mock */
.hero-art { position: relative; }
.dash-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .6);
}
.dash-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-dots { display: inline-flex; gap: 5px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e3eaf4; }
.dash-dots i:first-child { background: #ff6058; }
.dash-dots i:nth-child(2) { background: #ffbd2e; }
.dash-dots i:nth-child(3) { background: #28ca42; }
.dash-title { font-weight: 700; font-size: .9rem; }
.dash-live { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--ok); background: rgba(16, 185, 129, .12); padding: 4px 10px; border-radius: 999px; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.dash-stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dash-stat span { display: block; font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.dash-stat strong { font-size: 1.12rem; letter-spacing: -.02em; }

.dash-routers { display: grid; gap: 8px; }
.dash-router { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; font-size: .86rem; font-weight: 500; }
.r-badge { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.r-badge.on { color: #0a7d55; background: rgba(16, 185, 129, .14); }
.r-badge.off { color: #8a97ab; background: #eef2f8; }

.dash-bar { height: 7px; background: #e9eff7; border-radius: 999px; margin: 16px 0 10px; overflow: hidden; }
.dash-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.dash-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .76rem; color: var(--ink-3); }
.dash-foot strong { color: var(--ink-2); font-weight: 600; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  animation: floaty 4s ease-in-out infinite;
}
.float-chip svg { color: var(--brand); }
.chip-a { top: -18px; right: 6px; }
.chip-b { bottom: 44px; left: -30px; animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 58px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(90deg, #7cbcff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .82rem; color: #a9bcd6; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(11, 114, 231, .10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--ink-3); margin-top: 14px; font-size: 1.03rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfe0f6; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(11, 114, 231, .12), rgba(0, 201, 167, .14));
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 8px; }
.feature-card p { color: var(--ink-3); font-size: .94rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--ink-3); font-size: .94rem; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  background: #eaf0f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-top: 26px;
}
.bt-btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.bt-btn span { font-size: .72rem; color: var(--accent); font-weight: 700; margin-left: 5px; }
.bt-btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform .22s, box-shadow .22s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.is-popular {
  border-color: var(--brand);
  box-shadow: 0 24px 60px rgba(11, 114, 231, .18);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(11, 114, 231, .35);
  white-space: nowrap;
}
.price-head h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.price-head p { color: var(--ink-3); font-size: .9rem; margin-top: 6px; min-height: 42px; }

.price-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.price-amount .amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; }
.price-amount .period { color: var(--ink-3); font-weight: 600; font-size: .95rem; }
.price-note { font-size: .8rem; color: var(--ink-3); margin: 4px 0 20px; }

.price-features { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-features li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-2);
}
.price-features li svg { color: var(--ok); }
.price-features li.is-off { color: var(--off); }
.price-features li.is-off svg { color: var(--off); }
.price-features li strong { font-size: .84rem; font-weight: 700; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); padding: 2px 9px; border-radius: 7px; }
.price-features li.is-off strong { color: var(--off); background: #f6f8fb; }

.price-foot { text-align: center; color: var(--ink-3); font-size: .88rem; margin-top: 34px; }
.price-foot a { color: var(--brand); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: #cfe0f6; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .25s;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { padding: 0 22px 20px; color: var(--ink-3); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, #0a5bc4 45%, var(--accent) 130%);
  color: #fff;
  padding: 66px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.03em; line-height: 1.2; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin-top: 10px; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9fb2cc; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-login { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.footer-login:hover { text-decoration: underline; }

.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .01em; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { font-size: .92rem; color: #9fb2cc; transition: color .2s; }
.site-footer ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0;
  font-size: .85rem;
  color: #7f94b1;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.is-popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0 14px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 6%; border-bottom: 1px solid var(--bg-alt); }
  .nav-mobile-login { display: block; color: var(--brand) !important; font-weight: 700; }
  .hero { padding: 58px 0 52px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .section { padding: 66px 0; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .chip-b { left: -8px; }
  .float-chip { font-size: .76rem; padding: 8px 12px; }
}

/* ---------- Subscribe ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.subscribe-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(0, 201, 167, .28), transparent 60%),
    linear-gradient(130deg, var(--dark) 0%, var(--dark-2) 70%, #08407c 100%);
  border-radius: 24px;
  padding: 48px 52px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.subscribe-copy .eyebrow { background: rgba(255, 255, 255, .12); color: #7fd7ff; }
.subscribe-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.2; }
.subscribe-copy p { color: #b9c9de; margin-top: 12px; font-size: .98rem; }

.subscribe-row { display: flex; gap: 10px; position: relative; }
.subscribe-row input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: .97rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.subscribe-row input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 114, 231, .18);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-msg { font-size: .88rem; font-weight: 600; margin-top: 10px; min-height: 1.2em; }
.form-msg.is-ok { color: #34d399; }
.form-msg.is-err { color: #fca5a5; }

/* ---------- Exit popup modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.is-open { display: grid; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 40, .66);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 40px 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn .32s cubic-bezier(.2, .9, .3, 1.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--brand); }

.modal-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(11, 114, 231, .14), rgba(0, 201, 167, .18));
}

.modal-card h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.modal-card > p { color: var(--ink-3); font-size: .95rem; margin: 10px 0 20px; }

.modal-form { text-align: left; }
.modal-form .subscribe-row { margin-bottom: 12px; }
.modal-form .btn { margin-top: 2px; }
.modal .form-msg.is-ok { color: #0a7d55; }
.modal .form-msg.is-err { color: #dc2626; }

.modal-decline {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  font-family: var(--font);
  font-size: .88rem;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.modal-decline:hover { color: var(--ink); }

.modal-card small { display: block; margin-top: 12px; color: var(--ink-3); font-size: .78rem; }

.modal-success { padding-top: 36px; }
.success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #10b981, #059669);
  box-shadow: 0 14px 30px rgba(16, 185, 129, .38);
  animation: popIn .4s cubic-bezier(.2, .9, .3, 1.35);
}
.modal-success h3 { font-size: 1.55rem; }
.modal-success .success-text { color: var(--ink-3); font-size: .97rem; margin: 10px 0 24px; }

.modal-icon.warn { color: #b45309; background: linear-gradient(140deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .24)); }
.modal-actions { display: grid; gap: 10px; margin-top: 22px; }
.modal-card > .exists-text { margin-bottom: 0; }

/* ---------- Manage subscription ---------- */
.manage-sec { padding: 72px 0 90px; background: var(--bg-alt); min-height: 62vh; }
.manage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 38px 40px;
}
.manage-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(11, 114, 231, .12), rgba(0, 201, 167, .14));
  margin-bottom: 18px;
}
.manage-card h1 { font-size: 1.7rem; letter-spacing: -.03em; }
.manage-card .lead { color: var(--ink-3); margin-top: 8px; font-size: .98rem; }
.manage-h2 { font-size: 1.05rem; margin: 26px 0 14px; letter-spacing: -.01em; }

.flash { font-size: .92rem; font-weight: 600; border-radius: 12px; padding: 13px 16px; margin-top: 20px; border: 1px solid; }
.flash-ok { color: #0a7d55; background: rgba(16, 185, 129, .1); border-color: #a7e8d2; }
.flash-err { color: #b91c1c; background: rgba(239, 68, 68, .1); border-color: #f3b4b4; }

.manage-form { display: grid; gap: 10px; margin-top: 22px; }
.manage-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.manage-form input[type="email"] {
  font-family: var(--font);
  font-size: .97rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.manage-form input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 114, 231, .18); }

.sub-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 24px; }
.sub-email { font-weight: 700; color: var(--ink); font-size: 1.05rem; word-break: break-all; }
.sub-since { font-size: .84rem; color: var(--ink-3); margin-top: 2px; }

.unsub-form { margin-top: 14px; }
.btn-danger-ghost {
  background: #fff;
  border-color: #f3b4b4;
  color: #dc2626;
}
.btn-danger-ghost:hover { background: rgba(220, 38, 38, .06); border-color: #dc2626; color: #b91c1c; }

.manage-back { display: inline-block; margin-top: 28px; font-size: .9rem; color: var(--brand); font-weight: 600; }
.manage-back:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .manage-sec { padding: 44px 0 56px; }
  .manage-card { padding: 28px 22px; border-radius: 18px; }
}

body.modal-open { overflow: hidden; }

.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .subscribe-wrap { grid-template-columns: 1fr; gap: 26px; padding: 34px 24px; border-radius: 20px; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row input[type="email"] { width: 100%; }
  .modal-card { padding: 34px 22px 24px; }
}
