/* ════════════════════════════════════════════════════════════
   SYSTEM RESET — Twilight Bloom palette
   ════════════════════════════════════════════════════════════ */

:root {
  /* Twilight Bloom palette */
  --tb-orchid:      #8C4192;
  --tb-cyan:        #19B6BE;
  --tb-petrol:      #0E5C7C;
  --tb-jade:        #2D6658;
  --tb-spring:      #8BC281;
  --tb-gold:        #E8D15D;

  /* Atmospheres */
  --tb-night:       #0a1a2e;
  --tb-twilight:    #14304a;
  --tb-deep:        #081628;
  --tb-mist:        #f4f0e8;
  --tb-mist-soft:   rgba(244, 240, 232, 0.78);
  --tb-mist-faint:  rgba(244, 240, 232, 0.55);
  --tb-bloom-glow:  rgba(232, 209, 93, 0.4);

  /* Type */
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--tb-night);
  color: var(--tb-mist);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top, var(--tb-twilight) 0%, var(--tb-night) 45%, var(--tb-deep) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-gold);
  font-weight: 400;
}

a { color: var(--tb-cyan); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--tb-gold); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══════════ NAV ═══════════ */
.tb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.4rem;
  background: rgba(10, 26, 46, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 209, 93, 0.12);
}
.tb-nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tb-mist);
  text-decoration: none;
}
.tb-nav-brand em {
  font-family: var(--font-serif);
  color: var(--tb-gold);
  font-style: italic;
  font-weight: 400;
}
.tb-nav-brand:hover { color: var(--tb-gold); }

.tb-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.tb-nav-toggle span {
  width: 24px; height: 2px;
  background: var(--tb-mist);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.tb-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tb-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.tb-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tb-nav-menu {
  position: absolute;
  top: 100%;
  right: 1rem;
  min-width: 240px;
  background: rgba(8, 22, 40, 0.97);
  border: 1px solid rgba(232, 209, 93, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0;
  margin-top: 0.4rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.tb-nav-menu a {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--tb-mist-soft);
  text-decoration: none;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.tb-nav-menu a:hover {
  color: var(--tb-gold);
  background: rgba(232, 209, 93, 0.08);
}
.tb-nav-exit {
  color: var(--tb-cyan) !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}
.tb-nav-divider {
  display: block;
  height: 1px;
  background: rgba(232, 209, 93, 0.15);
  margin: 0.5rem 0;
}

/* ═══════════ HERO ═══════════ */
.tb-hero {
  position: relative;
  padding: 6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Starry sky */
.tb-stars {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, var(--tb-gold), transparent 50%),
    radial-gradient(1px 1px at 28% 42%, rgba(244,240,232,0.6), transparent 50%),
    radial-gradient(2px 2px at 65% 12%, var(--tb-gold), transparent 50%),
    radial-gradient(1.5px 1.5px at 82% 38%, rgba(244,240,232,0.7), transparent 50%),
    radial-gradient(1px 1px at 48% 78%, var(--tb-gold), transparent 50%),
    radial-gradient(2px 2px at 92% 68%, rgba(244,240,232,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 18% 84%, var(--tb-gold), transparent 50%),
    radial-gradient(1px 1px at 55% 28%, rgba(244,240,232,0.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 38% 62%, rgba(244,240,232,0.6), transparent 50%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Swirl — soft painterly glow */
.tb-swirl {
  position: absolute;
  width: 140vmax; height: 140vmax;
  top: -40vmax; left: -20vmax;
  pointer-events: none;
  background:
    radial-gradient(circle at 60% 40%, rgba(140, 65, 146, 0.18), transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(25, 182, 190, 0.14), transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(139, 194, 129, 0.10), transparent 25%);
  animation: swirl 60s linear infinite;
}

@keyframes swirl {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.tb-hero-inner {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.tb-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 1.4rem;
}

.tb-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 0.7rem;
  color: var(--tb-mist);
}

.tb-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--tb-gold);
  margin-bottom: 1.1rem;
}

.tb-hero-body {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  color: var(--tb-mist-soft);
  font-size: 1rem;
}

/* Check-in */
.tb-checkin {
  margin-top: 1.4rem;
  padding: 1.4rem 1.4rem 1.2rem;
  background: rgba(20, 48, 74, 0.55);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-checkin-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tb-mist);
  margin-bottom: 1rem;
}
.tb-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.tb-mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 0.5rem;
  background: rgba(10, 26, 46, 0.4);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 10px;
  color: var(--tb-mist);
  min-width: 0;
  transition: all .3s var(--ease);
}
.tb-mood:hover {
  background: rgba(140, 65, 146, 0.25);
  border-color: var(--tb-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 209, 93, 0.2);
}
.tb-mood-icon {
  font-size: 1.4rem;
  display: block;
}
.tb-mood span:not(.tb-mood-icon) {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}
.tb-mood small {
  font-size: 0.68rem;
  color: var(--tb-mist-faint);
  line-height: 1.25;
}

/* ═══════════ SECTION SHARED ═══════════ */
.tb-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.8rem;
}
.tb-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.6rem;
}
.tb-section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 0.7rem;
}
.tb-section-intro {
  color: var(--tb-mist-soft);
  font-size: 0.98rem;
}

.tb-bloom-divider {
  text-align: center;
  color: var(--tb-gold);
  letter-spacing: 1rem;
  font-size: 1rem;
  padding: 1.2rem 0;
  opacity: 0.55;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ HUB (front page button grid) ═══════════ */
.tb-hub {
  padding: 2.4rem 1.5rem 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tb-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tb-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.4rem 1.4rem 1.2rem;
  background: linear-gradient(140deg, rgba(45, 102, 88, 0.4), rgba(14, 92, 124, 0.4));
  border: 1px solid rgba(232, 209, 93, 0.18);
  border-left: 4px solid var(--tb-gold);
  border-radius: 8px;
  color: var(--tb-mist);
  text-decoration: none;
  transition: all .25s var(--ease);
}
.tb-hub-card:hover {
  border-color: var(--tb-gold);
  background: linear-gradient(140deg, rgba(140, 65, 146, 0.35), rgba(14, 92, 124, 0.45));
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(232, 209, 93, 0.2);
  color: var(--tb-mist);
}
.tb-hub-icon {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  display: block;
}
.tb-hub-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--tb-mist);
  font-weight: 500;
  font-family: var(--font-display);
}
.tb-hub-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--tb-mist-soft);
}

/* ═══════════ BACK BUTTON (on tool pages) ═══════════ */
.tb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  background: transparent;
  border: 1px solid rgba(25, 182, 190, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tb-back:hover {
  color: var(--tb-gold);
  border-color: var(--tb-gold);
  background: rgba(232, 209, 93, 0.08);
}

/* ═══════════ QUICK RESETS ═══════════ */
.tb-quick {
  padding: 2.4rem 1.5rem 1.4rem;
  position: relative;
}
.tb-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tb-quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(140deg, rgba(45, 102, 88, 0.4), rgba(14, 92, 124, 0.35));
  border: 1px solid rgba(232, 209, 93, 0.18);
  border-left: 3px solid var(--tb-gold);
  border-radius: 6px;
  color: var(--tb-mist);
  transition: all .25s var(--ease);
}
.tb-quick-card:hover {
  border-color: var(--tb-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 209, 93, 0.18);
}
.tb-quick-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.tb-quick-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
  color: var(--tb-mist);
  font-weight: 500;
}
.tb-quick-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--tb-mist-soft);
}

/* ═══════════ TOOL SECTIONS ═══════════ */
.tb-tool {
  padding: 2.4rem 1.5rem;
  scroll-margin-top: 80px;
  max-width: 900px;
  margin: 0 auto;
}
.tb-page {
  padding-top: 5.5rem;
}

/* ═══════════ QUIZ ═══════════ */
.tb-quiz-wrap {
  margin: 0 auto;
  padding: 1.6rem 1.6rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-quiz-intro p {
  margin-bottom: 0.9rem;
  color: var(--tb-mist-soft);
  font-size: 0.98rem;
}
.tb-quiz-intro strong { color: var(--tb-gold); font-weight: 500; }

.tb-quiz-progress {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.5rem;
}
.tb-quiz-progress-bar {
  height: 2px;
  background: rgba(244, 240, 232, 0.12);
  border-radius: 2px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.tb-quiz-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--tb-cyan), var(--tb-gold));
  border-radius: 2px;
  transition: width .4s var(--ease);
  width: 10%;
}
#quizQuestionText {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin-bottom: 1.2rem;
  color: var(--tb-mist);
}
.tb-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tb-quiz-option {
  text-align: left;
  padding: 0.7rem 1rem;
  background: rgba(10, 26, 46, 0.45);
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-left: 3px solid var(--tb-cyan);
  border-radius: 4px;
  color: var(--tb-mist);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all .2s var(--ease);
}
.tb-quiz-option:hover {
  border-color: var(--tb-gold);
  border-left-color: var(--tb-gold);
  background: rgba(140, 65, 146, 0.22);
  transform: translateX(3px);
}

/* Quiz result */
.tb-result-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.4rem;
}
.tb-result-name {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--tb-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.tb-result-desc {
  font-size: 0.98rem;
  color: var(--tb-mist-soft);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}
.tb-result-tools {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: rgba(10, 26, 46, 0.4);
  border-left: 3px solid var(--tb-gold);
  border-radius: 4px;
}
.tb-result-tools h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.tb-result-tools ul {
  list-style: none;
}
.tb-result-tools li {
  padding: 0.5rem 0;
  color: var(--tb-mist);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
}
.tb-result-tools li:last-child { border-bottom: none; }
.tb-result-tools li::before {
  content: '❋ ';
  color: var(--tb-gold);
  margin-right: 0.5rem;
}
.tb-result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════ BUTTONS ═══════════ */
.tb-btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.tb-btn-primary {
  background: var(--tb-orchid);
  color: var(--tb-mist);
  box-shadow: 0 6px 20px rgba(140, 65, 146, 0.4);
}
.tb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 209, 93, 0.35);
  background: var(--tb-gold);
  color: var(--tb-night);
}
.tb-btn-ghost {
  background: transparent;
  color: var(--tb-mist);
  border-color: rgba(244, 240, 232, 0.3);
}
.tb-btn-ghost:hover {
  border-color: var(--tb-gold);
  color: var(--tb-gold);
}

/* ═══════════ BREATHWORK ═══════════ */
.tb-breath-wrap {
  margin: 0 auto;
  text-align: center;
}
.tb-breath-techniques {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.tb-tech {
  padding: 0.45rem 1rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(244, 240, 232, 0.15);
  border-radius: 999px;
  color: var(--tb-mist-soft);
  font-size: 0.82rem;
  transition: all .2s var(--ease);
}
.tb-tech:hover { color: var(--tb-mist); border-color: var(--tb-cyan); }
.tb-tech.active {
  background: var(--tb-orchid);
  color: var(--tb-mist);
  border-color: var(--tb-gold);
}
.tb-tech-desc {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-gold);
  margin: 0 auto 1.4rem;
  max-width: 520px;
  font-size: 0.96rem;
  line-height: 1.5;
}
.tb-breath-orb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  margin-bottom: 1.2rem;
  position: relative;
}
.tb-breath-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--tb-gold) 0%, var(--tb-orchid) 50%, var(--tb-petrol) 100%);
  box-shadow:
    0 0 60px var(--tb-bloom-glow),
    inset 0 0 40px rgba(244, 240, 232, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transition: transform 4s var(--ease);
  position: relative;
}
.tb-breath-orb.inhale {
  transform: scale(1.6);
  box-shadow:
    0 0 120px rgba(232, 209, 93, 0.6),
    inset 0 0 60px rgba(244, 240, 232, 0.3);
}
.tb-breath-orb.exhale {
  transform: scale(0.85);
}
.tb-breath-orb.hold {
  transform: scale(1.6);
}
.tb-breath-phase {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--tb-night);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(244, 240, 232, 0.4);
}
.tb-breath-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--tb-mist-soft);
}
.tb-breath-meta strong { color: var(--tb-gold); font-size: 1.05rem; }
.tb-breath-controls {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════ AFFIRMATION DECK ═══════════ */
.tb-deck-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.tb-deck-today {
  background: linear-gradient(135deg, rgba(232, 209, 93, 0.15), rgba(140, 65, 146, 0.15));
  border: 1px solid rgba(232, 209, 93, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}
.tb-deck-today-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.4rem;
}
.tb-deck-today-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tb-gold);
  line-height: 1.45;
}
.tb-deck-card {
  background: linear-gradient(140deg, rgba(45, 102, 88, 0.55), rgba(14, 92, 124, 0.5));
  border: 1px solid rgba(232, 209, 93, 0.2);
  border-radius: 14px;
  padding: 2rem 1.8rem 1.4rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.tb-deck-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--tb-mist);
  margin-bottom: 1.2rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s var(--ease);
}
.tb-deck-text.flipping { opacity: 0; }
.tb-deck-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.tb-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 26, 46, 0.45);
  border: 1px solid rgba(244, 240, 232, 0.18);
  color: var(--tb-mist-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}
.tb-icon-btn:hover {
  border-color: var(--tb-gold);
  color: var(--tb-gold);
  transform: scale(1.08);
}
.tb-icon-btn svg { width: 17px; height: 17px; }
.tb-icon-btn.saved { color: var(--tb-orchid); background: rgba(140, 65, 146, 0.2); }
.tb-deck-fav-count {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.84rem;
  color: var(--tb-mist-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tb-deck-fav-count span { color: var(--tb-gold); font-weight: 600; }

/* ═══════════ ABOUT / FOOTER ═══════════ */
.tb-about {
  padding: 2.4rem 1.5rem;
  text-align: center;
}
.tb-about-inner {
  max-width: 640px;
  margin: 0 auto;
}
.tb-about-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.tb-about-inner p {
  color: var(--tb-mist-soft);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}
.tb-about-soft { margin-top: 1.4rem; font-size: 0.9rem; }

.tb-footer {
  background: var(--tb-deep);
  border-top: 1px solid rgba(232, 209, 93, 0.12);
  padding: 2.4rem 1.5rem 4rem;
}
.tb-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.tb-safety {
  padding: 1.1rem 1.3rem;
  background: rgba(140, 65, 146, 0.12);
  border-left: 3px solid var(--tb-orchid);
  border-radius: 6px;
}
.tb-safety h4 {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.tb-safety p { color: var(--tb-mist-soft); font-size: 0.9rem; }
.tb-safety strong { color: var(--tb-gold); }
.tb-footer-meta {
  text-align: center;
  font-size: 0.88rem;
  color: var(--tb-mist-faint);
}
.tb-footer-meta p { margin-bottom: 1rem; }
.tb-clear-data {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-mist-faint);
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.tb-clear-data:hover { color: var(--tb-orchid); border-color: var(--tb-orchid); }

/* ═══════════ PANIC BUTTON ═══════════ */
.tb-panic {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  background: var(--tb-gold);
  color: var(--tb-night);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(232, 209, 93, 0.35);
  transition: all .3s var(--ease);
  animation: panic-pulse 4s ease-in-out infinite;
}
.tb-panic:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(232, 209, 93, 0.55);
}
.tb-panic span:first-child { font-size: 1.2rem; }

@keyframes panic-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(232, 209, 93, 0.35); }
  50%      { box-shadow: 0 10px 40px rgba(232, 209, 93, 0.6); }
}

/* ═══════════ EFT TAP-ALONG ═══════════ */
.tb-tap-wrap {
  margin: 0 auto;
  padding: 1.6rem 1.4rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-tap-themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tb-tap-theme {
  padding: 0.45rem 0.95rem;
  background: rgba(10, 26, 46, 0.5);
  border: 1px solid rgba(244, 240, 232, 0.15);
  border-radius: 999px;
  color: var(--tb-mist-soft);
  font-size: 0.82rem;
  transition: all .2s var(--ease);
}
.tb-tap-theme:hover { color: var(--tb-mist); border-color: var(--tb-cyan); }
.tb-tap-theme.active {
  background: var(--tb-orchid);
  color: var(--tb-mist);
  border-color: var(--tb-gold);
}
.tb-tap-rate {
  margin: 0.8rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.86rem;
  color: var(--tb-mist-soft);
}
.tb-tap-rate input {
  width: 60px;
  padding: 0.35rem 0.5rem;
  margin-left: 0.4rem;
  background: rgba(10, 26, 46, 0.5);
  border: 1px solid var(--tb-cyan);
  border-radius: 4px;
  color: var(--tb-mist);
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
}
.tb-tap-setup {
  font-size: 0.82rem;
  color: var(--tb-mist-faint);
  margin-bottom: 0.4rem;
  text-align: center;
}
.tb-tap-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-gold);
  font-size: 1.05rem;
  text-align: center;
  padding: 0.7rem 1rem;
  background: rgba(10, 26, 46, 0.4);
  border-left: 3px solid var(--tb-gold);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.tb-tap-stage {
  text-align: center;
  padding: 1.4rem 1rem;
  background: rgba(10, 26, 46, 0.35);
  border-radius: 8px;
  margin-bottom: 1rem;
  min-height: 110px;
}
.tb-tap-point-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--tb-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.tb-tap-point-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-mist);
  font-size: 1.05rem;
  line-height: 1.4;
}
.tb-tap-controls {
  text-align: center;
  margin-bottom: 0.8rem;
}
.tb-tap-after {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  text-align: center;
  font-size: 0.88rem;
  color: var(--tb-mist-soft);
}
.tb-tap-encourage {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-cyan);
}

/* ═══════════ GUIDED VIZ GRID ═══════════ */
.tb-viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tb-viz-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(140deg, rgba(140, 65, 146, 0.25), rgba(14, 92, 124, 0.3));
  border: 1px solid rgba(232, 209, 93, 0.18);
  border-left: 3px solid var(--tb-orchid);
  border-radius: 6px;
  color: var(--tb-mist);
  transition: all .25s var(--ease);
}
.tb-viz-card:hover {
  border-color: var(--tb-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 209, 93, 0.18);
}
.tb-viz-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.tb-viz-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
  color: var(--tb-mist);
  font-weight: 500;
}
.tb-viz-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--tb-mist-soft);
}

/* ═══════════ JOURNALS ═══════════ */
.tb-journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tb-journal-card {
  padding: 1.2rem 1.2rem 1.1rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-journal-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--tb-mist);
}
.tb-journal-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--tb-mist-faint);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}
.tb-journal-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.tb-journal-input input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  background: rgba(10, 26, 46, 0.5);
  border: 1px solid var(--tb-cyan);
  border-radius: 4px;
  color: var(--tb-mist);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  min-width: 0;
}
.tb-journal-input input:focus {
  outline: none;
  border-color: var(--tb-gold);
}
.tb-journal-input .tb-btn {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
}
.tb-journal-card textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.7rem 0.9rem;
  background: rgba(10, 26, 46, 0.5);
  border: 1px solid var(--tb-cyan);
  border-radius: 6px;
  color: var(--tb-mist);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 0.7rem;
}
.tb-journal-card textarea:focus {
  outline: none;
  border-color: var(--tb-gold);
}
.tb-journal-saved {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-gold);
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
.tb-journal-list {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.3rem;
}
.tb-journal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(10, 26, 46, 0.35);
  border-left: 2px solid var(--tb-gold);
  border-radius: 3px;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.tb-journal-list li span:first-child { flex: 1; }
.tb-journal-list li small {
  color: var(--tb-mist-faint);
  font-size: 0.74rem;
  white-space: nowrap;
}
.tb-journal-del {
  color: var(--tb-mist-faint);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.3rem;
  border: none;
  background: none;
  cursor: pointer;
}
.tb-journal-del:hover { color: var(--tb-orchid); }

/* ═══════════ REFRAME ═══════════ */
.tb-reframe-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-reframe-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.4rem;
  margin-top: 0.9rem;
}
.tb-reframe-label:first-of-type { margin-top: 0; }
.tb-reframe-select, .tb-reframe-wrap textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(10, 26, 46, 0.5);
  border: 1px solid var(--tb-cyan);
  border-radius: 4px;
  color: var(--tb-mist);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}
.tb-reframe-wrap textarea {
  min-height: 90px;
  line-height: 1.5;
  resize: vertical;
}
.tb-reframe-select option { background: var(--tb-night); color: var(--tb-mist); }
.tb-reframe-select:focus, .tb-reframe-wrap textarea:focus {
  outline: none;
  border-color: var(--tb-gold);
}
.tb-reframe-wrap .tb-btn { margin-top: 0.4rem; }
.tb-reframe-results {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(10, 26, 46, 0.4);
  border-left: 3px solid var(--tb-gold);
  border-radius: 4px;
}
.tb-reframe-results h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-cyan);
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.tb-reframe-results ul { list-style: none; }
.tb-reframe-results li {
  padding: 0.5rem 0;
  color: var(--tb-mist);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
}
.tb-reframe-results li:last-child { border-bottom: none; }
.tb-reframe-results li::before { content: '“ '; color: var(--tb-gold); }
.tb-reframe-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--tb-mist-faint);
  font-style: italic;
}

/* ═══════════ HEALTHY RELATIONSHIP CHECK ═══════════ */
.tb-check-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-check-list {
  list-style: none;
  margin-bottom: 1rem;
}
.tb-check-list li {
  margin-bottom: 0.5rem;
}
.tb-check-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: rgba(10, 26, 46, 0.4);
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-left: 2px solid var(--tb-cyan);
  border-radius: 4px;
  color: var(--tb-mist);
  font-size: 0.94rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tb-check-list label:hover { border-color: var(--tb-gold); border-left-color: var(--tb-gold); }
.tb-check-list input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--tb-gold);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.tb-check-result {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(10, 26, 46, 0.4);
  border-left: 3px solid var(--tb-gold);
  border-radius: 4px;
  color: var(--tb-mist);
  font-size: 0.96rem;
  line-height: 1.55;
}
.tb-check-result strong { color: var(--tb-gold); }

/* ═══════════ DAILY 5-MIN RESET ═══════════ */
.tb-daily-wrap {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.tb-daily-stage {
  padding: 1.6rem 1.4rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-daily-step {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--tb-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.tb-daily-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tb-mist);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  min-height: 3em;
}
.tb-daily-timer {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--tb-mist);
  font-variant-numeric: tabular-nums;
}
.tb-daily-controls {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tb-daily-streak {
  font-size: 0.86rem;
  color: var(--tb-mist-soft);
}
.tb-daily-streak strong {
  color: var(--tb-gold);
  font-size: 1.4rem;
  font-family: var(--font-display);
}
.tb-daily-streak small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--tb-mist-faint);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ═══════════ RESOURCES ═══════════ */
.tb-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}
.tb-resource-card {
  display: block;
  padding: 1rem 1.2rem 1rem;
  background: rgba(20, 48, 74, 0.5);
  border: 1px solid rgba(232, 209, 93, 0.18);
  border-left: 3px solid var(--tb-cyan);
  border-radius: 6px;
  color: var(--tb-mist);
  text-decoration: none;
  transition: all .25s var(--ease);
}
.tb-resource-card:hover {
  border-color: var(--tb-gold);
  border-left-color: var(--tb-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 209, 93, 0.18);
  color: var(--tb-mist);
}
.tb-resource-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}
.tb-resource-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
  color: var(--tb-mist);
  font-weight: 500;
  font-family: var(--font-display);
}
.tb-resource-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--tb-mist-soft);
}

/* ═══════════ MODAL ═══════════ */
.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tb-modal[hidden] { display: none; }
.tb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tb-modal-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: linear-gradient(140deg, var(--tb-twilight), var(--tb-deep));
  border: 1px solid rgba(232, 209, 93, 0.25);
  border-radius: 24px;
  padding: 3rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tb-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-size: 2rem;
  color: var(--tb-mist-faint);
  line-height: 1;
  transition: color .2s var(--ease);
}
.tb-modal-close:hover { color: var(--tb-gold); }
.tb-modal-card h3 {
  font-size: 1.8rem;
  color: var(--tb-mist);
  margin-bottom: 1.2rem;
}
.tb-modal-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--tb-gold);
  margin-bottom: 2rem;
  min-height: 3.5em;
  line-height: 1.55;
}
.tb-modal-timer {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--tb-mist);
  margin-bottom: 2rem;
  font-variant-numeric: tabular-nums;
}
.tb-modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .tb-nav { padding: 0.9rem 1rem; }
  .tb-nav-menu { right: 0.4rem; min-width: 220px; }
  .tb-hero { padding: 5rem 1rem 2rem; }
  .tb-mood-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-quick, .tb-tool, .tb-about { padding: 1.8rem 1rem; }
  .tb-bloom-divider { padding: 0.8rem 0; letter-spacing: 0.6rem; }
  .tb-quiz-wrap { padding: 1.3rem 1.1rem; }
  .tb-deck-card { padding: 1.6rem 1.2rem 1.1rem; min-height: 150px; }
  .tb-breath-orb { width: 120px; height: 120px; }
  .tb-breath-orb-wrap { height: 190px; }
  .tb-panic-label { display: none; }
  .tb-panic { padding: 0.8rem; }
  .tb-panic span:first-child { font-size: 1.3rem; }
}

@media (max-width: 420px) {
  .tb-hero h1 { font-size: 2.2rem; }
  .tb-hero-body { font-size: 0.92rem; }
  .tb-mood small { display: none; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tb-stars, .tb-swirl, .tb-panic { animation: none; }
  .tb-breath-orb { transition: none; }
}
