/* Zyryn website — components: nav, buttons, cards, forms, pricing, toasts. */

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 6, 0.66);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 1.18rem;
  color: var(--porcelain);
}
.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}
.site-footer .brand-logo {
  height: 100px;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: 14px;
}
.nav-links a {
  color: var(--ash);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--champagne);
}
.nav-spacer {
  flex: 1;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--champagne);
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}
/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 39;
  background: rgba(8, 8, 6, 0.97);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 12px 6px;
  color: var(--porcelain);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  --bg: var(--brushed-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
/* Inline icons carry a viewBox but no intrinsic size; constrain them so they
   don't render oversized and shove the label off-center. */
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn-sm svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #151005;
  box-shadow: var(--gold-glow);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px -10px rgba(255, 214, 109, 0.5);
  color: #151005;
}
.btn-ghost {
  background: rgba(244, 240, 229, 0.03);
  color: var(--champagne);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover {
  border-color: var(--brushed-gold);
  color: var(--molten-gold);
}
.btn-outline {
  background: transparent;
  color: var(--champagne);
  border-color: var(--brushed-gold);
}
.btn-outline:hover {
  background: rgba(216, 183, 90, 0.1);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 16px 30px;
  font-size: 1.02rem;
}
.btn-sm {
  padding: 9px 15px;
  font-size: 0.85rem;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Cards / panels ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.85),
    rgba(8, 8, 6, 0.85)
  );
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card-hover {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 18px 50px -24px rgba(216, 183, 90, 0.45);
}
.icon-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(216, 183, 90, 0.1);
  border: 1px solid var(--hairline-strong);
  color: var(--brushed-gold);
  margin-bottom: 16px;
}
.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(70px, 12vw, 150px) 0 clamp(56px, 8vw, 110px);
  text-align: center;
}
.hero .lead {
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(216, 183, 90, 0.07);
  color: var(--champagne);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--molten-gold);
  box-shadow: 0 0 10px var(--molten-gold);
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.plan-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(8, 8, 6, 0.6);
  margin: 0 auto 36px;
}
.plan-toggle button {
  border: 0;
  background: none;
  color: var(--ash);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}
.plan-toggle button.active {
  background: var(--brand-gradient);
  color: #151005;
}
.price-card {
  position: relative;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}
.price-card .amount {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--porcelain);
}
.price-card .period {
  color: var(--ash);
  font-weight: 600;
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #151005;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--porcelain);
  font-size: 0.96rem;
}
.feature-list li svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brushed-gold);
  margin-top: 1px;
}

/* ── Forms ────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 56px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: rgba(8, 8, 6, 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ash);
  font-family: inherit;
  font-weight: 800;
  padding: 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}
.tabs button.active {
  background: var(--brand-gradient);
  color: #151005;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ash);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--porcelain);
  background: var(--black-steel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.input::placeholder {
  color: #746d61;
}
.input:focus {
  outline: none;
  border-color: var(--brushed-gold);
  box-shadow: 0 0 0 3px rgba(216, 183, 90, 0.16);
}
.input-row {
  position: relative;
}
.input-row .toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--ash);
  cursor: pointer;
  padding: 8px;
}
.input-row .toggle-eye svg {
  width: 20px;
  height: 20px;
  display: block;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ash);
  font-size: 0.88rem;
  cursor: pointer;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ash);
  font-size: 0.8rem;
  margin: 22px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ── Account ──────────────────────────────────────────────────────── */
.account-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 880px) {
  .account-grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}
.side-nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.side-nav button {
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ash);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.side-nav button:hover {
  color: var(--champagne);
  background: rgba(244, 240, 229, 0.03);
}
.side-nav button.active {
  color: var(--molten-gold);
  background: rgba(216, 183, 90, 0.1);
  border-color: var(--hairline-strong);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline-strong);
}
.status-chip.active {
  color: #b9f6c3;
  background: rgba(60, 180, 90, 0.12);
  border-color: rgba(60, 180, 90, 0.35);
}
.status-chip.trial {
  color: var(--champagne);
  background: rgba(216, 183, 90, 0.12);
}
.status-chip.inactive {
  color: var(--ash);
}
.status-chip.danger {
  color: #ffb4a8;
  background: rgba(255, 114, 94, 0.12);
  border-color: rgba(255, 114, 94, 0.35);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.kv:last-child {
  border-bottom: 0;
}
.kv .k {
  color: var(--ash);
  font-size: 0.9rem;
}
.kv .v {
  color: var(--porcelain);
  font-weight: 600;
  text-align: right;
}

/* ── Toasts ───────────────────────────────────────────────────────── */
#toasts {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(92vw, 380px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--porcelain);
  color: var(--obsidian);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.22s ease;
}
.toast.error {
  background: #2a1512;
  color: #ffd0c7;
  border: 1px solid rgba(255, 114, 94, 0.4);
}
.toast.success {
  background: #0f1f13;
  color: #c6f6d0;
  border: 1px solid rgba(80, 200, 120, 0.35);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── Misc ─────────────────────────────────────────────────────────── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 16, 5, 0.35);
  border-top-color: #151005;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-ghost .spinner,
.btn-outline .spinner {
  border-color: rgba(247, 231, 166, 0.3);
  border-top-color: var(--champagne);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ash);
}

.soon-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--hairline-strong);
  color: var(--champagne);
  font-weight: 700;
  font-size: 0.85rem;
}
