/* ═══════════════════════════════════════════════════════════════
   FLOW SCHOOL — Global Design System
   global.css
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

/* ─── 0. FONTS ───────────────────────────────────────────────── */

@font-face {
  font-family: 'ABC Monument Grotesk';
  src: url('./fonts/ABCMonumentGroteskPlusVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Monument Grotesk Mono';
  src: url('./fonts/ABCMonumentGroteskMonoVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ─── 1. DESIGN TOKENS ───────────────────────────────────────── */

:root {
  /* Background */
  --bg: #080808;

  /* Surfaces */
  --surface:   rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.09);

  /* Borders */
  --border:       rgba(255,255,255,.10);
  --border-light: rgba(255,255,255,.06);

  /* Text */
  --text-1: #FFFFFF;
  --text-2: rgba(255,255,255,.62);
  --text-3: rgba(255,255,255,.35);

  /* Accent */
  --accent:        #DDE36A;
  --accent-dim:    rgba(221,227,106,.10);
  --accent-border: rgba(221,227,106,.20);

  /* Radius */
  --r:  16px;
  --rf: 100px;
  --rs: 10px;

  /* Button padding */
  --btn-pad-h: 24px;
  --btn-pad-v: 16px;

  /* Card padding */
  --card-pad:       36px 40px;
  --card-pad-light: 32px;

    /* Eyebrow Label Margin */
.eyebrow-label {
  margin-bottom: 12px;
}
  /* Shadows */
  --shadow: 0 8px 40px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);

  /* Effects */
  --glass: blur(24px);

  /* Typography — font families */
  --font:      'ABC Monument Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'ABC Monument Grotesk Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;

  /* Typography — weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Typography — scale (new) */
  --fs-h1:      80px;
  --fs-h2:      64px;
  --fs-h3:      48px;
  --fs-h4:      32px;
  --fs-h5:      24px;
  --fs-h6:      20px;
  --fs-h7:      16px;
  --fs-body:    16px;
  --fs-label-1: 12px;
  --fs-label-2: 12px;
  --fs-btn:     18px;
  --fs-chip:    14px;

  /* Typography — scale (legacy, still used in page-specific CSS) */
  --text-display:    clamp(2.2rem, 5vw, 3.4rem);
  --text-card-title: clamp(1.875rem, 5vw, 2.75rem);
  --text-section:    1.5rem;
  --text-body-lg:    1.125rem;
  --text-body:       1rem;
  --text-body-sm:    .9375rem;
  --text-ui:         .875rem;
  --text-small:      .8125rem;
  --text-label:      .6875rem;
  --text-micro:      .625rem;
  --text-nano:       .5625rem;

  /* Typography — line heights */
  --lh-display:  1.06;
  --lh-heading:  1.15;
  --lh-body:     1.4;
  --lh-tight:    1.25;

  /* Typography — letter spacing */
  --ls-tight:    -.04em;
  --ls-heading:  -.025em;
  --ls-body:     0em;
  --ls-label:    .10em;
  --ls-micro:    .12em;
}


/* ─── 2. BASE RESET ──────────────────────────────────────────── */

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

html {
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ─── 3. TYPOGRAPHY ──────────────────────────────────────────── */

h1 {
  font-family: var(--font);
  font-size: var(--fs-h1);
  font-weight: var(--weight-regular)!important;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-display);
  color: #ffffff;
}

h2 {
  font-family: var(--font);
  font-size: var(--fs-h2);
  font-weight: var(--weight-regular)!important;
  letter-spacing: -.03em;
  line-height: var(--lh-heading);
  color: #ffffff;
}

h3 {
  font-family: var(--font);
  font-size: var(--fs-h3);
  font-weight: var(--weight-regular)!important;
  letter-spacing: -.01em;
  line-height: var(--lh-heading);
  color: #ffffff;
}

h4 {
  font-family: var(--font);
  font-size: var(--fs-h4);
  font-weight: var(--weight-regular)!important;
  letter-spacing: -.01em;
  line-height: var(--lh-heading);
  color: #ffffff;
}

h5 {
  font-family: var(--font);
  font-size: var(--fs-h5);
  font-weight: var(--weight-regular)!important;
  line-height: var(--lh-heading);
  color: #ffffff;
}

h6 {
  font-family: var(--font);
  font-size: var(--fs-h6);
  font-weight: var(--weight-regular)!important;
  line-height: var(--lh-heading);
  color: #ffffff;
}

.h7 {
  font-family: var(--font);
  font-size: var(--fs-h7);
  font-weight: var(--weight-regular);
  line-height: var(--lh-heading);
  color: #ffffff;
}

p {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(255,255,255,.50);
}

/* ── Typography utilities ── */

.label-1 {
  font-family: var(--font);
  font-size: var(--fs-label-1);
  font-weight: var(--weight-regular);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label-2 {
  font-family: var(--font-mono);
  font-size: var(--fs-label-2);
  color: rgba(255,255,255,.50);
}

.button-text {
  font-family: var(--font);
  font-size: var(--fs-btn);
  font-weight: var(--weight-medium);
  color: #ffffff;
}

/* ── Material Symbols Sharp ── */
.material-symbols-sharp {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  user-select: none;
  pointer-events: none;
}

/* ─── 4. LAYOUT ──────────────────────────────────────────────── */

.inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px 140px;
}

/* Elevate page content above ambient orb layer */
header, section, .wrap, .inner, .content, .results-inner, footer {
  position: relative;
  z-index: 1;
}


/* ─── 4b. STICKY CTA BAR ─────────────────────────────────────── */

.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: rgba(8,8,8,.85);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 580px) {
  .cta-bar { padding: 12px 20px; }
  .cta-bar .btn-primary,
  .cta-bar .generate-btn,
  .cta-bar .shuffle-btn,
  .cta-bar .start-btn { width: 100%; justify-content: center; }
}


/* ─── 5. AMBIENT BACKGROUND ──────────────────────────────────── */

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 640px; height: 640px;
  background: #2D0A5C;
  top: -180px; left: -180px;
  opacity: .75;
  animation: drift1 28s ease-in-out infinite alternate;
}

.orb-2 {
  width: 720px; height: 720px;
  background: #0A1F5C;
  top: -120px; right: -220px;
  opacity: .65;
  animation: drift2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 520px; height: 520px;
  background: #0A3D2D;
  bottom: -80px; left: 30%;
  opacity: .55;
  animation: drift3 34s ease-in-out infinite alternate;
}


/* ─── 6. HEADER / NAVIGATION ─────────────────────────────────── */

.hdr {
  background: rgba(8,8,8,.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hdr-i {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.hdr-i .btn-ghost { justify-self: start; }

.hdr-logo {
  font-size: var(--text-ui);
  font-weight: var(--weight-bold);
  letter-spacing: -.01em;
  color: var(--text-1);
  text-decoration: none;
}

.hdr-tool {
  font-size: var(--text-ui);
  color: var(--text-3);
  text-align: right;
  justify-self: end;
}

.hdr-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }


/* ─── 7. HERO ────────────────────────────────────────────────── */

.hero { padding: 64px 0 16px; }

.hero p {
  margin-top: 6px;
  color: rgba(255,255,255,.50);
}

.page-eyebrow {
  font-family: var(--font-mono)!important;
  display: block;
  font-size: var(--text-label)!important;
  font-weight: var(--weight-regular);
  letter-spacing: none!important;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
}


/* ─── 8. BUTTONS ─────────────────────────────────────────────── */

/* Ghost — text-only, low emphasis */
.btn-ghost {
  background: none;
  border: none;
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: var(--rs);
  font-size: var(--text-ui);
  cursor: pointer;
  transition: color .15s, background .15s;
  font-family: var(--font);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover {
  color: var(--text-1);
  background: rgba(255,255,255,.06);
}

/* Primary — main CTA, white */
.btn-primary,
.generate-btn,
.shuffle-btn,
.start-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #1b1b1b;
  border: none;
  padding: var(--btn-pad-v) var(--btn-pad-h);
  border-radius: var(--rf);
  font-size: var(--fs-btn);
  font-weight: var(--weight-medium);
  font-family: var(--font);
  cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 0 28px rgba(221,227,106,.15);
  white-space: nowrap;
}
.btn-primary:hover,
.generate-btn:hover,
.shuffle-btn:hover,
.start-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(221,227,106,.25);
}
.btn-primary:active,
.generate-btn:active,
.shuffle-btn:active,
.start-btn:active  { transform: translateY(0); }
.btn-primary:disabled,
.generate-btn:disabled,
.shuffle-btn:disabled,
.start-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Secondary — bordered, low-key */
.btn-secondary,
.btn-regen,
.btn-outline {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: var(--rf);
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover,
.btn-regen:hover,
.btn-outline:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: rgba(255,255,255,.22);
}
.btn-secondary:disabled { opacity: .3; cursor: not-allowed; }

/* Icon — square icon-only button */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-icon:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.28);
  color: var(--text-1);
}
.btn-icon.saved {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}


/* ─── 9. CHIPS / TOGGLE SELECTORS ────────────────────────────── */

.filter-chip, .chip,
.count-btn,
.time-btn {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-3);
  border-radius: 8px;
  font-family: var(--font);
  font-size: var(--fs-chip);
  font-weight: var(--weight-regular);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover,
.filter-chip:hover,
.count-btn:hover,
.time-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--text-2);
  background: rgba(255,255,255,.07);
}
.chip.on,
.filter-chip.active,
.count-btn.active,
.time-btn.active {
  background: #fff;
  border-color: #fff;
  color: #080808;
}

/* Standard chip padding */
.chip,
.filter-chip { padding: 4px 8px; }

/* Sized chip variants */
.count-btn { width: 48px; height: 40px; font-size: var(--text-body-sm); }
.time-btn  { height: 40px; padding: 0 14px; white-space: nowrap; font-weight: var(--weight-semibold); }
.count-btn:disabled,
.time-btn:disabled { opacity: .35; cursor: not-allowed; }


/* ─── 10. CARDS / PANELS ─────────────────────────────────────── */

/* Glass card — primary surface */
.card,
.challenge-card,
.experiment-card,
.controls-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--card-pad);
  background: rgba(255,255,255,.018);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Light card — less prominent border */
.card-light,
.practice-card,
.why-card {
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: var(--card-pad-light);
  background: rgba(255,255,255,.018);
}

/* Eyebrow — small uppercase label */
.card-eyebrow {
  font-size: var(--text-nano);
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

/* Accent tag — category/type label */
.tag,
.rule-cat-tag,
.exp-tag {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rf);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: inline-block;
}


/* ─── 11. RANGE SLIDERS ──────────────────────────────────────── */

.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.range-val {
  font-size: 1.75rem;
  font-weight: var(--weight-semibold);
  color: var(--text-1);
  font-family: var(--font);
  line-height: 1;
  margin-bottom: 6px;
}

input[type=range].range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 6px 0;
  background: rgba(255,255,255,.15);
}
input[type=range].range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
  transition: transform .1s, box-shadow .1s;
}
input[type=range].range-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 2px 16px rgba(0,0,0,.7);
}
input[type=range].range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
}
input[type=range].range-slider:disabled { opacity: .35; cursor: not-allowed; }

.range-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 9px;
}
.range-ticks span {
  display: block;
  width: 1px;
  height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 1px;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}


/* ─── 12. SAVED / FAVORITES SECTION ──────────────────────────── */

.saved-section,
.favorites-section {
  border-top: 1px solid var(--border-light);
  padding-top: 44px;
  margin-top: 8px;
}

.saved-header,
.favs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.saved-toggle,
.favs-toggle {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: var(--text-body-sm);
  font-family: var(--font);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  transition: color .15s;
}
.saved-toggle:hover,
.favs-toggle:hover { color: var(--text-1); }

.saved-badge,
.fav-badge {
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  background: var(--accent);
  color: #080808;
  padding: 2px 8px;
  border-radius: var(--rf);
  line-height: 1.5;
}
.saved-badge.empty,
.fav-badge.empty {
  background: var(--surface-2);
  color: var(--text-3);
}

.saved-arrow,
.favs-arrow {
  color: var(--text-3);
  font-size: var(--text-small);
  transition: transform .2s;
  display: inline-block;
}
.saved-toggle.open .saved-arrow,
.favs-toggle.open .favs-arrow { transform: rotate(180deg); }

.clear-btn,
.clear-all-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: var(--text-small);
  font-family: var(--font);
  cursor: pointer;
  transition: color .15s;
  padding: 0;
}
.clear-btn:hover,
.clear-all-btn:hover { color: var(--text-2); }

.saved-body,
.favs-body { padding-top: 8px; }

.saved-empty,
.favs-empty {
  color: var(--text-3);
  font-size: var(--text-body-sm);
  padding: 16px 0;
}

.saved-item,
.fav-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 10px;
  transition: background .15s;
  gap: 12px;
}
.saved-item:hover,
.fav-item:hover { background: var(--surface); }

.saved-btns,
.fav-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.saved-view-btn,
.saved-rm-btn,
.fav-view-btn,
.fav-rm-btn {
  background: none;
  border: none;
  font-size: var(--text-small);
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--rf);
  transition: all .15s;
}
.saved-view-btn,
.fav-view-btn { color: var(--text-3); }
.saved-view-btn:hover,
.fav-view-btn:hover { color: var(--text-1); background: var(--surface-2); }
.saved-rm-btn,
.fav-rm-btn { color: var(--text-3); }
.saved-rm-btn:hover,
.fav-rm-btn:hover { color: rgba(255,100,100,.8); }


/* ─── 13. TOAST ──────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--rf);
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }


/* ─── 14. NAV AUTH ───────────────────────────────────────────── */

.hdr-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-signup {
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--rf);
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-nav-signup:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--text-1);
  background: rgba(255,255,255,.05);
}

.nav-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  color: var(--accent);
  transition: background .15s, border-color .15s;
}
.nav-avatar-btn:hover .nav-initial {
  background: rgba(221,227,106,.18);
  border-color: rgba(221,227,106,.4);
}


/* ─── 15. ANIMATIONS ─────────────────────────────────────────── */

@keyframes drift1 {
  0%   { transform: translate(0,0) }
  100% { transform: translate(80px,100px) }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) }
  100% { transform: translate(-90px,70px) }
}
@keyframes drift3 {
  0%   { transform: translate(0,0) }
  100% { transform: translate(60px,-80px) }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px) }
  to   { opacity: 1; transform: translateY(0) }
}

.fade-up { animation: fadeUp .42s ease both; }

.challenge-card.animate,
.experiment-card.animate {
  animation: slideUp .4s cubic-bezier(.22,.68,0,1.2);
}


/* ─── 16. UTILITIES ──────────────────────────────────────────── */

.hidden { display: none !important; }


/* ─── 17. RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 580px) {
  .inner { padding: 0 20px; }
  .wrap  { padding: 0 20px 72px; }
  .hero  { padding: 48px 0 32px; }
  h1     { font-size: clamp(2.4rem, 10vw, 4rem); }
  h2     { font-size: clamp(2rem, 8vw, 3.5rem); }
  h3     { font-size: clamp(1.75rem, 7vw, 2.75rem); }
  h4     { font-size: clamp(1.375rem, 5vw, 2rem); }
}

@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card  { min-height: auto; padding: 28px 24px; }
}


/* ─── 18. TOOL CARDS ─────────────────────────────────────────── */

.tools      { padding-bottom: 100px; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.018);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background .2s, transform .18s;
  min-height: 280px;
}
.tool-card:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); transform: translateY(-2px); }

.tool-num   { margin-bottom: 36px; }
.tool-name  { margin-bottom: 12px; }
.tool-desc  { font-size: var(--text-body-sm); color: var(--text-2); line-height: var(--lh-body); flex: 1; margin-bottom: 28px; }
.tool-cta   { display: flex; align-items: center; gap: 8px; font-size: var(--text-ui); font-weight: var(--weight-semibold); color: var(--accent); transition: gap .15s; }
.tool-card:hover .tool-cta { gap: 13px; }


/* ─── 19. AUTH PAGES ─────────────────────────────────────────── */

.auth-hdr {
  background: rgba(8,8,8,.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 80px;
  position: relative;
  z-index: 1;
}

.auth-card { width: 100%; max-width: 420px; padding: 40px 44px; }

.auth-eyebrow {
  display: block;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.auth-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: var(--weight-regular);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 32px;
}

.auth-subtitle { font-size: var(--text-body-sm); color: var(--text-3); margin-bottom: 28px; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
}

.field-input-wrap { position: relative; }

.field-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 13px 16px;
  color: var(--text-1);
  font-size: var(--text-body-sm);
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field-input:focus { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.field-input::placeholder { color: var(--text-3); }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.pw-toggle:hover { color: var(--text-2); }

.auth-error {
  font-size: var(--text-small);
  color: rgba(255,100,100,.85);
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(255,80,80,.06);
  border: 1px solid rgba(255,80,80,.15);
  border-radius: var(--rs);
  display: none;
}
.auth-error.show { display: block; }

.auth-success {
  font-size: var(--text-small);
  color: var(--accent);
  line-height: 1.65;
  padding: 14px 16px;
  background: rgba(221,227,106,.06);
  border: 1px solid rgba(221,227,106,.18);
  border-radius: var(--rs);
  display: none;
  text-align: center;
}
.auth-success.show { display: block; }

.auth-submit { width: 100%; justify-content: center; margin-top: 6px; padding: 14px; }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-3);
}
.auth-footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.auth-footer a:hover { color: var(--text-1); }

@media (max-width: 480px) { .auth-card { padding: 28px 24px; } }
