@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #09090b;
  --bg-2: #111113;
  --ink: #f4f4f5;
  --mute: #a1a1aa;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #fafafa;
  --accent-ink: #fafafa;
  --good: #4ade80;
  --soft: rgba(255, 255, 255, 0.06);
  --danger: #f87171;
  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 3.75rem;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }

.hidden { display: none !important; }

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 0.95rem;
}

.brand-mark { font-size: 0.95rem; }
.brand-text { font-weight: 500; opacity: 0.9; font-size: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a.quiet {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
}
.nav-links a.quiet:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 550;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: #fafafa; color: #09090b; }
.btn-primary:hover { background: #fff; color: #09090b; }

.btn-dark { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-dark:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding:
    calc(var(--nav-h) + 2.4rem)
    clamp(1.25rem, 4vw, 2.5rem)
    3.5rem;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: -8%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-parallax {
  position: absolute;
  inset: -6%;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: #111827 center / cover no-repeat;
  opacity: 0;
  z-index: 0;
  transform: scale(1.04);
  will-change: transform, opacity;
  --zoom-x: -2.2%;
  --zoom-y: 1.4%;
}

.hero-slide.ken-a { --zoom-x: -2.6%; --zoom-y: 1.6%; }
.hero-slide.ken-b { --zoom-x: 2.8%; --zoom-y: -1.4%; }
.hero-slide.ken-c { --zoom-x: -1.8%; --zoom-y: -2.2%; }
.hero-slide.ken-d { --zoom-x: 2.2%; --zoom-y: 1.8%; }

.hero-slide.ken-a.is-active { animation: camLow 8s linear forwards; }
.hero-slide.ken-b.is-active { animation: camEye 8s linear forwards; }
.hero-slide.ken-c.is-active { animation: camHigh 8s linear forwards; }
.hero-slide.ken-d.is-active { animation: camOrbit 8s linear forwards; }

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
}

.hero-slide.is-leaving {
  z-index: 1;
  animation: heroFadeOut 1.8s ease-out forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.42) 48%, rgba(9, 9, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.35) 0%, rgba(9, 9, 11, 0.12) 40%, rgba(9, 9, 11, 0.82) 100%);
  pointer-events: none;
}

.hero-grain { display: none; }

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 36rem;
}

.hero-mock {
  position: relative;
  z-index: 4;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.product {
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.product-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.hero .mock-scanner {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.hero .mock-table-wrap {
  max-height: 12rem;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: start center;
  pointer-events: none;
  padding: calc(var(--nav-h) + 0.35rem) 1.25rem 0;
  perspective: 1400px;
}

.hero-motion-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  max-width: 90vw;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-shadow: 0 16px 40px rgba(10, 10, 11, 0.45);
  transform: none;
}

.hero-ch {
  display: inline-block;
  opacity: 0;
  min-width: 0.28em;
  transform: none;
}

.hero-motion-word .hero-ch { animation: chType 0.2s ease forwards; }
.hero-motion-word.is-out .hero-ch { animation: chOutType 0.18s ease-in forwards; }

.hero-motion-word::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  background: #fff;
  transform: translateY(0.08em);
  animation: caretBlink 0.9s steps(1) infinite;
}
.hero-motion-word.is-out::after { opacity: 0; }

.hero-dots {
  position: absolute;
  right: clamp(1.1rem, 4vw, 2.75rem);
  bottom: 1.6rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dots button.is-active {
  width: 1.35rem;
  background: #fff;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-brand { display: none; }

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 4.6vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
  max-width: 11ch;
}

.hero-copy .support {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.smtp-strip {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.smtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.1rem, 4vw, 2.75rem);
}

.smtp-grid h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.smtp-grid .lede {
  margin: 0;
  color: var(--mute);
  line-height: 1.55;
  font-size: 1.05rem;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.promise-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.promise-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.promise-list span {
  color: var(--mute);
  line-height: 1.45;
  font-size: 0.98rem;
}

.block {
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.1rem, 4vw, 2.75rem);
  max-width: var(--max);
  margin: 0 auto;
}

.block h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.block .lede {
  margin: 0 0 2rem;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34rem;
}

.mock-block { max-width: 1100px; }

.mock-scanner {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
}

.mock-progress { margin-bottom: 0.9rem; }

.mock-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(232, 234, 242, 0.08);
  border: 1px solid var(--line);
}

#mockFill {
  height: 100%;
  width: 8%;
  background: var(--accent);
  transition: width 0.45s ease;
}

#mockStatus {
  margin: 0.45rem 0 0;
  color: var(--mute);
  font-size: 0.85rem;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.mock-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.mock-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mute);
}

.mock-card .value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
}

.mock-card .value.is-tick {
  animation: mockTick 0.35s ease;
}

.mock-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mock-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mock-table-wrap tbody {
  display: table-row-group;
}

.mock-table-wrap th,
.mock-table-wrap td {
  padding: 0.62rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mock-table-wrap th {
  color: var(--mute);
  font-weight: 600;
  background: rgba(5, 6, 12, 0.45);
}

.mock-table-wrap tr:last-child td { border-bottom: 0; }

.mock-table-wrap tr {
  transition: background 0.2s ease;
}

.mock-table-wrap tr.is-in td {
  animation: mockRowIn 0.38s ease;
}

.mock-table-wrap tr.is-out td {
  animation: mockRowOut 0.3s ease forwards;
}

.mock-table-wrap tr.is-live td {
  background: rgba(255, 255, 255, 0.03);
}

.mock-table-wrap td {
  background-color: transparent;
  transition: background-color 0.45s ease, color 0.35s ease;
}

.mock-table-wrap td.tick-up,
.mock-table-wrap td.tick-up .mock-grade {
  background-color: rgba(74, 222, 128, 0.16);
  color: #86efac;
  transition: none;
}

.mock-table-wrap td.tick-down,
.mock-table-wrap td.tick-down .mock-grade {
  background-color: rgba(251, 113, 133, 0.32);
  color: #fb7185;
  transition: none;
}

.mock-hit { color: var(--good); font-weight: 600; }
.mock-wait { color: var(--mute); }

.mock-grade {
  display: inline-block;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
}
.mock-grade.high { background: rgba(74, 222, 128, 0.12); color: #86efac; }
.mock-grade.mid { color: #fbbf24; }
.mock-grade.low { color: var(--danger); }

@keyframes mockTick {
  from { transform: translateY(4px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
@keyframes mockRowIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes mockRowOut {
  to { opacity: 0; transform: translateY(10px); }
}
@keyframes tickUp {
  0% { background: rgba(94, 234, 212, 0.42); color: #5eead4; }
  100% { background: transparent; }
}
@keyframes tickDown {
  0% { background: rgba(251, 113, 133, 0.38); color: #fb7185; }
  100% { background: transparent; }
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 380px);
  justify-content: start;
  gap: 0.75rem;
}

.plan {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.plan.featured {
  background: #111113;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

.plan.featured .desc,
.plan.featured .price span { color: var(--mute); }

.plan.featured .btn-outline,
.plan.featured .btn-primary {
  background: #fafafa;
  border-color: #fafafa;
  color: #09090b;
}
.plan.featured .btn-primary:hover {
  background: #fff;
  color: #09090b;
}

.plan .name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.plan .price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan .price span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mute);
}

.plan .desc {
  margin: 0 0 0.35rem;
  color: var(--mute);
  font-size: 0.94rem;
  line-height: 1.4;
  min-height: 2.9em;
}

.plan .btn { width: 100%; margin-top: auto; }

.pay-note {
  margin: 1rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.6rem clamp(1.1rem, 4vw, 2.75rem) 2.4rem;
  color: var(--mute);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--mute); }
.site-footer a:hover { color: #fff; }

body.site.auth-page .site-nav {
  position: sticky;
  background: rgba(5, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body.site.auth-page .brand { color: #fff; }
body.site.auth-page .nav-links a.quiet { color: var(--mute); }
body.site.auth-page .nav-links a.quiet:hover { color: #fff; }
body.site.auth-page .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
body.site.auth-page .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
body.site.auth-page .btn-primary {
  background: #fafafa;
  color: #09090b;
}

.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-panel {
  width: min(400px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}

.auth-panel h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.auth-panel .sub {
  margin: 0 0 1.25rem;
  color: var(--mute);
  line-height: 1.45;
}

label.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--mute);
}

label.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0a0b;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
}
label.field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.license-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.dash-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 6.4rem clamp(1.1rem, 4vw, 2.75rem) 3rem;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.1rem 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.dash-hero h1 {
  margin: 0.2rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.045em;
}

.dash-sub {
  margin: 0;
  color: var(--mute);
}

.dash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.renew-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  border-radius: var(--radius);
}
.renew-banner p { margin: 0.25rem 0 0; color: var(--mute); font-size: 0.92rem; }
.renew-banner.is-expired {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}
@media (max-width: 720px) {
  .renew-banner { flex-direction: column; align-items: stretch; }
}

.dash-kicker.is-off { color: var(--danger); }
.dash-kicker.is-off .dash-dot {
  background: var(--danger);
  animation: none;
}

.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}

.dash-cards { margin-bottom: 1rem; }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.dash-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.05rem 1.15rem;
}

.dash-side { display: grid; gap: 1rem; }

.dash-label {
  margin: 0;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-plan {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.dash-seat {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.dash-meta {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
  line-height: 1.45;
}

.dash-time {
  margin: 0.25rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

@keyframes dashPulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.dash-invoices { margin-top: 1rem; }
.dash-invoice-head { margin-bottom: 0.75rem; }
.dash-invoice-table {
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}
.dash-invoice-table .admin-table {
  table-layout: auto;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 0;
}

.dash-invoice-table .admin-table th,
.dash-invoice-table .admin-table td {
  padding: 0.7rem 0.85rem 0.7rem 0;
  white-space: nowrap;
  vertical-align: middle;
}

.dash-invoice-table .admin-table th {
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.dash-invoice-table .admin-table th:last-child,
.dash-invoice-table .admin-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.admin-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 6.5rem 1.25rem 3rem;
}

.admin-shell h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}

.admin-shell .sub { color: var(--mute); margin: 0 0 1.25rem; }

.admin-shell h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.settings-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.3rem;
  margin: 0 0 1.25rem;
}

.settings-panel .btn { margin-top: 0.35rem; }

.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}

.admin-table tr:last-child td { border-bottom: 0; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-actions .btn {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(232, 234, 242, 0.08);
  color: var(--mute);
}

.pill.on {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.pill.off {
  background: rgba(251, 113, 133, 0.14);
  color: var(--danger);
}

.license-list code {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  word-break: break-all;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes camLow {
  0% { opacity: 1; transform: scale(1.08) translate3d(0, 4%, 0); }
  100% { opacity: 1; transform: scale(1.22) translate3d(0, -3%, 0); }
}
@keyframes camEye {
  0% { opacity: 0.2; transform: scale(1.06) translate3d(-3%, 0, 0); }
  14% { opacity: 1; }
  100% { opacity: 1; transform: scale(1.18) translate3d(3%, 0, 0); }
}
@keyframes camHigh {
  0% { opacity: 0.2; transform: scale(1.12) translate3d(0, -4%, 0); }
  14% { opacity: 1; }
  100% { opacity: 1; transform: scale(1.24) translate3d(0, 3%, 0); }
}
@keyframes camOrbit {
  0% { opacity: 0.2; transform: scale(1.1) translate3d(3%, 2%, 0); }
  14% { opacity: 1; }
  100% { opacity: 1; transform: scale(1.22) translate3d(-3%, -2%, 0); }
}
@keyframes heroFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes chType { from { opacity: 0; } to { opacity: 1; } }
@keyframes chOutType { from { opacity: 1; } to { opacity: 0; } }
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes grainShift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1%, 0); }
  66% { transform: translate3d(1.5%, -2%, 0); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 0;
  }
  .pricing { grid-template-columns: 1fr; }
  .smtp-grid { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-height: 760px) {
  .hero-copy .support { display: none; }
  .hero .mock-cards { display: none; }
  .hero .mock-table-wrap { max-height: 10.5rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .nav-links .btn-ghost { display: none; }
  .hero-copy .support { display: none; }
  .hero .mock-table-wrap th:nth-child(2),
  .hero .mock-table-wrap td:nth-child(2),
  .hero .mock-table-wrap th:nth-child(6),
  .hero .mock-table-wrap td:nth-child(6),
  .dash-page .mock-table-wrap th:nth-child(2),
  .dash-page .mock-table-wrap td:nth-child(2),
  .dash-page .mock-table-wrap th:nth-child(6),
  .dash-page .mock-table-wrap td:nth-child(6) { display: none; }
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  flex: 0 0 auto;
}
.avatar-sm { width: 1.45rem; height: 1.45rem; font-size: 0.68rem; }
.avatar-lg { width: 3.1rem; height: 3.1rem; font-size: 1.05rem; }
.avatar-fallback { border: 1px solid var(--line); }

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.62);
  overflow: auto;
}
.profile-dialog {
  width: min(28rem, 100%);
  margin: auto 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1.25rem;
}
.profile-avatar-edit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.85rem 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none !important; }
}
