/* ============================================================
    Frigo Chef — Global Styles
    Dark theme · Purple accents · Glassmorphism · Mobile-first
    ============================================================ */

:root {
  --bg: #0f0f1a;
  --bg-2: #14142b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(168, 85, 247, 0.35);

  --text: #ecebff;
  --text-dim: #a7a5c6;
  --text-faint: #6f6d8f;

  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --purple-soft: rgba(139, 92, 246, 0.16);

  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 40px -6px rgba(139, 92, 246, 0.55);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-head: "Sora", system-ui, sans-serif;
}

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

html {
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(700px 480px at 0% 10%, rgba(139, 92, 246, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.grad-text {
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main#app {
  flex: 1;
  width: 100%;
}

/* ============================================================
    Buttons
    ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
    Cards / Glass
    ============================================================ */
.account-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.account-actions__btn {
  flex: 0 1 auto;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  min-height: 100%;
}

.plan--featured {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.05);
}

.plan__pop {
  align-self: flex-start;
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan__name {
  font-size: 1.35rem;
  font-weight: 800;
}

.plan__price {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}

.plan__price small {
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1.2;
}

.plan__feats {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan__feats li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-dim);
}

.plan__feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.plan__feats li.no::before {
  content: "✕";
  color: var(--text-faint);
}

/* ============================================================
    Navbar
    ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
}
.nav__logo { font-size: 1.4rem; }
.nav__links {
  display: none;
  gap: 1.6rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__link {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__actions { display: none; align-items: center; gap: 0.6rem; }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__burger:hover {
  background: var(--surface-strong);
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
  display: block;
}

/* mobile dropdown */
.nav.open .nav__links {
  display: flex;
  flex-direction: column;
  position: static;
  flex-basis: 100%;
  order: 10;
  padding: 0.75rem 0;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  animation: mobileMenuIn 0.18s ease;
}
.nav.open .nav__actions {
  display: flex;
  flex-direction: column;
  position: static;
  flex-basis: 100%;
  order: 11;
  padding: 0.5rem 0 0.75rem;
  gap: 0.5rem;
  background: none;
  border: none;
  top: auto;
  left: auto;
  right: auto;
  animation: mobileMenuIn 0.22s ease;
}
.nav.open .nav__links .btn,
.nav.open .nav__actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 0.97rem;
  border-radius: var(--radius-sm);
}
.nav.open .nav__links button,
.nav.open .nav__links a {
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hamburger → X animation */
.nav.open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav.open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 880px) {
  .nav { flex-wrap: nowrap; }
  .nav__links { display: flex; transform: translateX(-50%); }
  .nav__actions { display: flex; position: static; background: none; border: none; padding: 0; top: auto; left: auto; right: auto; }
  .nav__burger { display: none; }
}

/* ============================================================
    Layout helpers
    ============================================================ */
.section { padding: 4rem 1.25rem; max-width: 1140px; margin: 0 auto; }
.section--tight { padding-top: 2rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-2);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--purple-soft);
  margin-bottom: 1.1rem;
}

/* ============================================================
    Hero
    ============================================================ */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero p {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero__mock {
  margin: 3rem auto 0;
  max-width: 760px;
  padding: 1.25rem;
  text-align: left;
}
.hero__mockbar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.hero__mockbar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.hero__mockbar span:first-child { background: #f87171; }
.hero__mockbar span:nth-child(2) { background: #fbbf24; }
.hero__mockbar span:nth-child(3) { background: #34d399; }

/* ============================================================
    Auth pages
    ============================================================ */
.auth {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}
.auth__card { width: 100%; max-width: 420px; padding: 2.2rem; }
.auth__card h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.auth__sub { color: var(--text-dim); margin-bottom: 1.6rem; font-size: 0.95rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.field__control {
  position: relative;
}
.field input,
.field__control input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field--password .field__control {
  position: relative;
}
.field__control .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}
.field__control .password-toggle:hover {
  color: var(--purple-2);
}
.field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.auth__alt { text-align: center; margin-top: 1.3rem; color: var(--text-dim); font-size: 0.9rem; }
.auth__alt a { color: var(--purple-2); font-weight: 600; }
.form-err { color: var(--red); font-size: 0.85rem; min-height: 1.1rem; margin-bottom: 0.4rem; }

/* Responsive for mobile auth forms */
@media (max-width: 480px) {
  .auth {
    padding: 2rem 1rem;
  }
  .auth__card {
    padding: 1.5rem;
  }
  .field input,
  .field__control input {
    padding: 0.7rem 0.8rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  .btn--block {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

/* ============================================================
    Dashboard
    ============================================================ */
.dash { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.dash__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.dash__hello h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.dash__hello p { color: var(--text-dim); margin-top: 0.25rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.badge--free { background: var(--surface); color: var(--text-dim); }
.badge--pro {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  border-color: transparent;
}
.badge--premium {
  background: linear-gradient(135deg, #f59e0b, #a855f7);
  color: #fff;
  border-color: transparent;
}

.dash__grid { display: grid; gap: 1.25rem; }
@media (min-width: 980px) { .dash__grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.panel { padding: 1.6rem; }
.panel__title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.panel__hint { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.1rem; }

/* generator */
.assistant-switch {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.assistant-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.assistant-switch__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}
.assistant-pane + .assistant-pane {
  margin-top: 0.35rem;
}
.gen__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gen__input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}
.gen__input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.gen__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }

.usage {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.usage__bar { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.usage__fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-2)); transition: width 0.4s ease; }

.account-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.account-info__row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.account-info__row:last-child {
  border-bottom: 0;
}
.account-info dt {
  font-weight: 700;
  color: var(--text);
}
.account-info dd {
  margin: 0;
  color: var(--text-dim);
}
.account-info__value {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.account-info__value code {
  overflow-wrap: anywhere;
  word-break: break-all;
  color: var(--text);
}

@media (max-width: 560px) {
  .account-info__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .account-info__value {
    align-items: flex-start;
  }
}

/* recipe card */
.recipe { padding: 1.6rem; animation: pop 0.35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.recipe__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.recipe__title { font-size: 1.4rem; }
.recipe__meta { display: flex; gap: 1.2rem; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.recipe__meta div { font-size: 0.85rem; color: var(--text-dim); }
.recipe__meta strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }
.recipe__sub { font-family: var(--font-head); font-weight: 600; margin: 1.2rem 0 0.6rem; font-size: 1rem; }
.recipe__ings { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.recipe__ings .chip {
  font-size: 0.83rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--purple-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.recipe__steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 0.7rem; }
.recipe__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.recipe__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid var(--border-strong);
  color: var(--purple-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
}
.recipe__actions { display: flex; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; }

.diff { font-weight: 700; }
.diff--easy { color: var(--green); }
.diff--medium { color: var(--amber); }
.diff--hard { color: var(--red); }

/* lists of saved/history */
.mini { display: flex; flex-direction: column; gap: 0.7rem; }
.mini__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.18s;
}
.mini__item:hover { border-color: var(--border-strong); }
.mini__item h4 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; }
.mini__item small { color: var(--text-faint); font-size: 0.78rem; }
.mini__btns { display: flex; gap: 0.4rem; }
.icon-btn {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px; height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  display: grid; place-items: center;
  transition: 0.18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

.empty { color: var(--text-faint); font-size: 0.9rem; text-align: center; padding: 1.5rem 0.5rem; }

.locked {
  text-align: center;
  padding: 1.8rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
}
.locked p { color: var(--text-dim); font-size: 0.9rem; margin: 0.5rem 0 1rem; }

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.support-form__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .support-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.support-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  resize: vertical;
  min-height: 140px;
}
.support-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.support-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.support-form__status {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============================================================
    Upgrade banner inside dashboard
    ============================================================ */
.upsell {
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-strong);
  margin-bottom: 1.25rem;
}
.upsell h3 { font-size: 1.05rem; }
.upsell p { color: var(--text-dim); font-size: 0.88rem; }

/* ============================================================
    Footer
    ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; margin-top: auto; }
.footer__inner { max-width: 1140px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.footer__tag { color: var(--text-dim); font-size: 0.9rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.4rem;
}
.footer__links a {
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--purple-2); }
.footer__copyright {
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer__credit {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--purple-2);
  font-size: 0.9rem;
}

/* ============================================================
    Legal pages
    ============================================================ */
.legal-page { max-width: 780px; }
.legal-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 2rem;
}
.legal-page__content h2 {
  font-size: 1.1rem;
  color: var(--purple-2);
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.legal-page__content p,
.legal-page__content ul {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.legal-page__content ul {
  padding-left: 1.4rem;
}
.legal-page__content a {
  color: var(--purple-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
    Support form status variants
    ============================================================ */
.support-form__status--warn {
  color: var(--amber) !important;
  font-weight: 500;
}

/* ============================================================
    Cookie consent banner
    ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.cookie-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
}
.cookie-banner__content p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1 1 320px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .cookie-banner {
    padding: 1rem;
  }
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/* ============================================================
    Toast
    ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* spinner */
.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Stripe Result Pages (Success / Cancel)
   ============================================================ */

.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.result-card {
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  text-align: center;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.result-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.result-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* SUCCESS */
.result-success .result-icon {
  color: var(--green);
}

/* CANCEL */
.result-cancel .result-icon {
  color: var(--red);
}

/* ============================================================
    Features grid (landing page)
    ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-head);
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============================================================
    Onboarding Modal
    ============================================================ */
.onboard-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.onboard-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.onboard-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  padding: 2rem;
  border-radius: var(--radius);
  overflow-y: auto;
  animation: slideUp 0.35s ease;
  z-index: 1;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* Responsive onboarding modal */
@media (max-width: 600px) {
  .onboard-modal {
    padding: 1rem;
  }
  .onboard-modal__panel {
    padding: 1.5rem;
    max-height: 85vh;
  }
}

/* ============================================================
    Global responsive — small screens
    ============================================================ */
@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .hero { padding: 3rem 1rem 1.5rem; }
  .dash { padding: 1.5rem 1rem 3rem; }
  .panel { padding: 1.1rem; }
  .footer { padding: 2rem 1rem; }
  .footer__links { gap: 0.4rem 1rem; }
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-actions__btn {
    width: 100%;
  }
  .onboard-modal__panel {
    padding: 1.25rem;
    max-height: 80vh;
  }
}
