/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #07070f;
  --bg2:     #0d0d1a;
  --bg3:     #12121e;
  --bg4:     #181828;
  --glass:   rgba(255,255,255,0.04);
  --glass2:  rgba(255,255,255,0.07);
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.13);
  --text:    #f0f0fc;
  --text2:   #8888a8;
  --text3:   #55556a;
  --purple:  #7c3aed;
  --pink:    #ec4899;
  --grad:    linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --glow:    rgba(124,58,237,0.25);
  --green:   #10b981;
  --red:     #ef4444;
  --yellow:  #f59e0b;
  --radius:  10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow:  0 8px 40px rgba(0,0,0,0.5);
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* ── SVG Icons ─────────────────────────────────────────── */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { display: block; }

/* ── Announcement Bar ──────────────────────────────────── */
.announce-bar {
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 20px;
  letter-spacing: 0.01em;
}
.announce-bar a { text-decoration: underline; opacity: 0.9; }
.announce-bar a:hover { opacity: 1; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7,7,15,0.82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  margin-right: 12px;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { color: #fff; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 7px;
  transition: all 0.18s;
  display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--glass2); }
.nav-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-signin {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
}
.btn-signin:hover { color: var(--text); background: var(--glass2); }
.btn-signup {
  background: var(--grad);
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  box-shadow: 0 0 20px var(--glow);
}
.btn-signup:hover { transform: translateY(-1px); box-shadow: 0 4px 28px var(--glow); }

/* ── General Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 32px var(--glow); }
.btn-outline {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--glass2); border-color: rgba(255,255,255,0.2); }
.btn-ghost {
  background: none; border: none;
  color: var(--text2);
  font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { background: var(--glass2); color: var(--text); }
.btn-full { width: 100%; justify-content: center; }
.btn-danger-sm {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--red);
  padding: 7px 14px; border-radius: 7px;
  font-size: 13px; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.15); }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
/* mesh grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-mail-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  background: var(--glass2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
  color: #a78bfa;
}
.hero-title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative; z-index: 1;
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee-wrapper {
  position: relative; z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 48px;
  background: var(--glass);
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
}
.marquee-item .m-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Main Hero Card ────────────────────────────────────── */
.hero-card-wrap {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 80px;
}
.hero-card {
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  display: flex;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px var(--glow);
  backdrop-filter: blur(12px);
}

/* left panel */
.hcard-left {
  flex: 1;
  padding: 28px 28px 28px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.hcard-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 22px;
}
.hcard-head-icon {
  width: 36px; height: 36px;
  background: var(--glass2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa; flex-shrink: 0;
}
.hcard-head-text { display: flex; flex-direction: column; gap: 2px; }
.hcard-title { font-size: 14px; font-weight: 700; color: #fff; }
.hcard-sub { font-size: 12px; color: var(--text2); }

/* email builder input row */
.email-builder {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  margin-bottom: 14px;
}
.eb-user {
  flex: 1; min-width: 60px;
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; font-weight: 500;
  font-family: var(--font);
  padding: 6px 0;
}
.eb-user::placeholder { color: var(--text3); }
.eb-sep { color: var(--text3); font-size: 13px; padding: 0 2px; }
.eb-sub {
  width: 54px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 6px; outline: none;
  color: var(--text2); font-size: 12px; font-family: var(--font);
  padding: 5px 7px; text-align: center;
}
.eb-sub.hidden { display: none; }
.eb-domain {
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 7px; outline: none; cursor: pointer;
  color: var(--text); font-size: 13px; font-family: var(--font);
  padding: 7px 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238888a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  min-width: 110px;
}

/* current built address display */
.built-email-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.built-email-row .icon { color: #a78bfa; }
.built-email-text {
  flex: 1;
  font-size: 13.5px; font-weight: 600;
  color: #a78bfa;
  font-family: 'Fira Code', monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* plan bar */
.plan-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.plan-badge {
  font-size: 11px; font-weight: 700;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  padding: 2px 8px; border-radius: 100px;
  flex-shrink: 0;
}
.plan-bar-text {
  font-size: 12px; color: var(--text2); flex: 1;
}
.plan-bar-text a { color: #a78bfa; font-weight: 600; }
.btn-upgrade {
  background: var(--glass2); border: 1px solid var(--border2);
  color: var(--text); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-family: var(--font); transition: all 0.18s;
}
.btn-upgrade:hover { background: var(--grad); border-color: transparent; }

/* action row */
.hero-actions { display: flex; gap: 8px; }
.btn-generate {
  flex: 1;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  padding: 11px 16px; border-radius: 9px; cursor: pointer;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.2s;
}
.btn-generate:hover { background: var(--glass2); border-color: rgba(255,255,255,0.2); }
.btn-copy-addr {
  background: var(--glass2); border: 1px solid var(--border2);
  color: var(--text); font-size: 13.5px; font-weight: 600;
  padding: 11px 16px; border-radius: 9px; cursor: pointer;
  font-family: var(--font);
  display: flex; align-items: center; gap: 7px;
  transition: all 0.2s; flex-shrink: 0;
}
.btn-copy-addr:hover { background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.3); color: #a78bfa; }

/* right panel */
.hcard-right {
  width: 280px;
  flex-shrink: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.settings-section, .stats-section { }
.settings-section { margin-bottom: 24px; }
.section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.section-head-icon {
  width: 28px; height: 28px;
  background: var(--glass2);
  border: 1px solid var(--border2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); flex-shrink: 0;
}
.section-head-text { display: flex; flex-direction: column; gap: 1px; }
.section-head-title { font-size: 13px; font-weight: 700; color: #fff; }
.section-head-sub { font-size: 11px; color: var(--text2); }

.setting-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.setting-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.setting-hint { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* Toggle switch */
.toggle {
  position: relative; width: 38px; height: 22px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 100px; cursor: pointer; transition: all 0.25s;
}
.toggle input:checked + .toggle-track { background: var(--purple); border-color: var(--purple); }
.toggle-track::before {
  content: '';
  position: absolute; width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: #fff; border-radius: 50%;
  transition: transform 0.25s;
}
.toggle input:checked + .toggle-track::before { transform: translateX(16px); }

/* Range slider */
.setting-slider {
  width: 100%; margin-top: 8px;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--purple) var(--pct, 50%), var(--bg4) var(--pct, 50%));
  border-radius: 2px; outline: none; cursor: pointer;
}
.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.4);
  cursor: pointer;
}

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 12px;
}
.stat-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px;
}
.stat-box-val {
  font-size: 20px; font-weight: 800; color: #fff;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-box-label { font-size: 10.5px; color: var(--text2); margin-top: 4px; }
.stat-box-full { grid-column: 1 / -1; }

/* ── Recent Inboxes (homepage) ─────────────────────────── */
.recent-wrap {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 0 0 80px;
}
.recent-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.recent-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text2);
}
.recent-clear { font-size: 12px; color: var(--text3); cursor: pointer; }
.recent-clear:hover { color: var(--red); }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  transition: all 0.18s;
  max-width: 260px;
}
.recent-pill:hover { background: var(--glass2); border-color: rgba(167,139,250,0.4); }
.recent-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.recent-pill-email { font-size: 12.5px; font-weight: 500; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-pill-time { font-size: 11px; color: var(--text3); flex-shrink: 0; }

/* ── Stats Row ─────────────────────────────────────────── */
.stats-row {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-row-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: stretch;
}
.stat-cell {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px 20px; gap: 4px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell-num {
  font-size: 26px; font-weight: 900; color: #fff;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-cell-label { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; }

/* ── Feature Section ───────────────────────────────────── */
.section { padding: 90px 0; }
.section-dark { background: var(--bg2); }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #a78bfa;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900; color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.section-desc { font-size: 16px; color: var(--text2); max-width: 480px; margin-bottom: 52px; line-height: 1.7; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.22s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.22s;
}
.feature-card:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 40px; height: 40px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa; margin-bottom: 16px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.feature-card p { font-size: 13.5px; color: var(--text2); line-height: 1.6; }

/* ── Steps ─────────────────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 48px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative;
  transition: border-color 0.22s;
}
.step:hover { border-color: rgba(124,58,237,0.4); }
.step-num {
  position: absolute; top: 12px; right: 16px;
  font-size: 52px; font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.step-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text2); line-height: 1.6; }
.step-arrow { font-size: 20px; color: var(--border2); flex-shrink: 0; padding-top: 36px; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: flex; gap: 18px; flex-wrap: wrap;
  justify-content: center; margin-top: 48px;
}
.pricing-card {
  flex: 1; min-width: 280px; max-width: 360px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px; position: relative;
  transition: border-color 0.22s;
}
.pricing-card.featured {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 60px var(--glow);
}
.plan-badge-top {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }
.plan-price { font-size: 50px; font-weight: 900; color: #fff; margin-bottom: 4px; line-height: 1; }
.plan-price span { font-size: 16px; color: var(--text2); font-weight: 400; vertical-align: super; font-size: 14px; }
.plan-price-sub { font-size: 13px; color: var(--text2); margin-bottom: 28px; }
.plan-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 11px; }
.plan-features li {
  font-size: 13.5px; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.plan-features li .chk { color: var(--green); flex-shrink: 0; }
.plan-features li .xmk { color: var(--text3); flex-shrink: 0; }
.plan-features li.dim { color: var(--text3); }

/* ── API Section ────────────────────────────────────────── */
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 48px; }
.api-card { }
.api-card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #a78bfa; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.code-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  font-size: 12px; color: var(--text2);
  font-family: 'Fira Code', 'Consolas', monospace;
  overflow-x: auto; line-height: 1.8; white-space: pre;
}
.code-key { color: #a78bfa; }
.code-str { color: #86efac; }
.code-num { color: #f9a8d4; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 52px;
  align-items: flex-start;
}
.footer-brand { max-width: 240px; }
.footer-brand p { font-size: 13.5px; color: var(--text2); margin-top: 12px; line-height: 1.7; }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text2); margin-bottom: 2px;
}
.footer-col a { font-size: 13.5px; color: var(--text2); transition: color 0.18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12.5px; color: var(--text3);
  display: flex; justify-content: space-between; align-items: center;
}

/* ══════════════════════════════════════════════════════════
   INBOX PAGE
══════════════════════════════════════════════════════════ */
.inbox-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.inbox-page .announce-bar { flex-shrink: 0; }
.inbox-page .navbar { flex-shrink: 0; }

/* address bar */
.address-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 10px 20px; flex-shrink: 0;
}
.address-bar-inner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.addr-input, .addr-select {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 8px; color: var(--text);
  font-family: var(--font); font-size: 13.5px;
  padding: 8px 12px; outline: none; transition: border-color 0.2s;
}
.addr-input { flex: 1; min-width: 80px; }
.addr-input:focus, .addr-select:focus { border-color: var(--purple); }
.addr-at { color: var(--text3); font-weight: 600; font-size: 16px; }
.addr-select {
  flex: 1; min-width: 130px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238888a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.addr-actions { display: flex; align-items: center; gap: 6px; }

/* current address strip */
.current-strip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 7px; flex-wrap: wrap;
}
.current-label { font-size: 11.5px; color: var(--text3); }
.current-email {
  font-size: 13px; font-weight: 600; color: #a78bfa;
  font-family: 'Fira Code', monospace;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  padding: 3px 10px; border-radius: 6px;
  cursor: pointer;
}
.strip-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text2); padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 0.18s;
}
.strip-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.strip-btn.danger:hover { border-color: var(--red); color: var(--red); }
.copy-feedback { font-size: 11px; color: var(--green); }
.recent-trigger { cursor: pointer; }
.recent-trigger:hover { border-color: rgba(167,139,250,0.4); color: #a78bfa; }

/* layout */
.inbox-layout { display: flex; flex: 1; overflow: hidden; }

/* email list */
.email-list {
  width: 300px; min-width: 260px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
}
.list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.email-count {
  font-size: 11px; background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 100px; color: var(--text2);
  font-weight: 600; letter-spacing: 0; text-transform: none;
}
#emailListBody { flex: 1; overflow-y: auto; }

.email-item {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
  position: relative;
}
.email-item:hover { background: var(--glass); }
.email-item.selected { background: rgba(124,58,237,0.08); border-left: 2px solid var(--purple); padding-left: 14px; }
.email-item-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.email-sender { font-size: 12.5px; font-weight: 600; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.email-time { font-size: 10.5px; color: var(--text3); flex-shrink: 0; }
.email-subject-line { font-size: 13px; color: var(--text2); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-item.unread .email-sender { color: #fff; }
.email-item.unread .email-subject-line { color: var(--text); font-weight: 500; }
.email-preview-text { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-badge {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; background: #a78bfa; border-radius: 50%;
}

/* email viewer */
.email-viewer { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.viewer-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 10px; color: var(--text2);
}
.placeholder-icon { color: rgba(255,255,255,0.06); margin-bottom: 4px; }
.placeholder-title { font-size: 17px; font-weight: 600; color: var(--text); }
.placeholder-sub { font-size: 13.5px; }
.auto-refresh-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--glass); border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; color: var(--text2); margin-top: 8px;
}
.pulse-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.6); }
}

.email-content { display: flex; flex-direction: column; height: 100%; }
.email-header-bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  gap: 14px; flex-shrink: 0;
}
.email-subject-large { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.email-meta-row {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--text2); flex-wrap: wrap;
}
.meta-lbl { font-weight: 600; color: var(--text3); }
.meta-sep { color: var(--border2); }
.expiry-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  color: var(--yellow); font-size: 11.5px; padding: 3px 9px; border-radius: 100px;
  margin-top: 7px;
}
.view-toggle { display: flex; gap: 4px; flex-shrink: 0; }
.view-toggle button {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 6px 14px; border-radius: 7px;
  font-size: 12px; cursor: pointer; transition: all 0.18s; font-family: var(--font);
}
.view-toggle button.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.email-body { flex: 1; overflow: hidden; }
.email-iframe { width: 100%; height: 100%; border: none; background: #fff; }
.email-plain {
  padding: 22px; font-family: 'Fira Code','Consolas',monospace; font-size: 12.5px;
  color: var(--text2); white-space: pre-wrap; word-break: break-all;
  overflow-y: auto; height: 100%; line-height: 1.7;
}
.email-actions { padding: 12px 22px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* recent inboxes panel (overlay) */
.recent-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px;
  background: var(--bg2); border-left: 1px solid var(--border2);
  z-index: 300; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.recent-panel.open { transform: translateX(0); }
.recent-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.recent-panel-title { font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 7px; }
.close-panel-btn {
  background: none; border: none; color: var(--text2); cursor: pointer; padding: 4px;
  border-radius: 5px; transition: all 0.18s; display: flex; align-items: center;
}
.close-panel-btn:hover { background: var(--glass2); color: var(--text); }
.recent-panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.recent-panel-empty { font-size: 13px; color: var(--text3); text-align: center; padding: 40px 0; }
.recent-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 9px;
  cursor: pointer; transition: background 0.18s;
  border: 1px solid transparent;
  margin-bottom: 6px;
}
.recent-entry:hover { background: var(--glass2); border-color: var(--border2); }
.recent-entry-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.recent-entry-body { flex: 1; min-width: 0; }
.recent-entry-email { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-entry-time { font-size: 11px; color: var(--text3); margin-top: 1px; }
.recent-entry-rm {
  background: none; border: none; color: var(--text3); cursor: pointer;
  padding: 3px; border-radius: 4px; transition: color 0.18s; flex-shrink: 0;
  display: flex; align-items: center;
}
.recent-entry-rm:hover { color: var(--red); }
.recent-panel-footer { padding: 14px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 299; display: none; }
.panel-overlay.open { display: block; }

/* empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 56px 20px; gap: 8px; color: var(--text2);
}
.empty-icon { color: rgba(255,255,255,0.07); margin-bottom: 4px; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text); }
.empty-sub { font-size: 12.5px; text-align: center; }

/* toast */
.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 18px; border-radius: var(--radius);
  font-size: 13.5px; box-shadow: var(--shadow); z-index: 999;
  display: flex; align-items: center; gap: 8px;
  animation: slideUp 0.2s ease;
}
.toast.hidden { display: none; }
@keyframes slideUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════════════════
   DOMAINS PAGE
══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}
.page-title { font-size: 40px; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: -0.025em; }
.page-sub { font-size: 16px; color: var(--text2); max-width: 460px; }

.domains-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap;
}
.domain-search-input {
  flex: 1; max-width: 380px;
  background: var(--glass); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text); font-family: var(--font);
  font-size: 13.5px; padding: 10px 14px; outline: none;
}
.domain-search-input:focus { border-color: var(--purple); }
.domain-count-chip {
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text2); padding: 8px 14px; border-radius: 100px; font-size: 12.5px;
  font-weight: 500; white-space: nowrap;
}
.domains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.domain-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s; cursor: default;
}
.domain-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-1px); }
.d-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.d-dot.live { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.d-name {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text);
  font-family: 'Fira Code', monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-use {
  font-size: 11.5px; color: #a78bfa; text-decoration: none;
  padding: 3px 9px; border-radius: 5px; border: 1px solid rgba(124,58,237,0.25);
  transition: all 0.18s; flex-shrink: 0;
}
.d-use:hover { background: rgba(124,58,237,0.12); color: #c4b5fd; }
.loading-state { color: var(--text2); font-size: 14px; padding: 48px; text-align: center; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .hcard-right { display: none; }
  .hero-card { border-radius: var(--radius-lg); }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .email-list { width: 100%; height: 46vh; border-right: none; border-bottom: 1px solid var(--border); }
  .inbox-layout { flex-direction: column; }
  .email-header-bar { flex-direction: column; }
  .recent-panel { width: 100%; }
  .stat-cell { padding: 18px 12px; }
  .stat-cell-num { font-size: 20px; }
}
