/* ============================================================
   Sound Money Academy — Stylesheet
   ============================================================ */

:root {
  --orange:       #C9971C;
  --orange-dark:  #A87C16;
  --orange-light: #FBF5E6;
  --orange-bg:    #FDF9F0;
  --cream:        #FFFDF7;
  --card:         #FFFFFF;
  --green:        #27AE60;
  --green-light:  #E8F8EF;
  --blue:         #2980B9;
  --blue-light:   #EAF4FB;
  --purple:       #8E44AD;
  --purple-light: #F5EEF8;
  --red:          #E74C3C;
  --dark:         #1A1A2E;
  --gray:         #6C757D;
  --border:       #EDE8E0;
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.06);
  --radius:       20px;
  --radius-sm:    12px;
  --radius-xs:    8px;
  /* Bitcoin accent for stack card */
  --bitcoin:      #F7931A;
  --bitcoin-light:#FFF3E0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Layout ── */
#app { min-height: 100vh; }

.view { max-width: 860px; margin: 0 auto; padding: 20px 16px 80px; }
.view-wide { max-width: 1060px; margin: 0 auto; padding: 20px 16px 80px; }

/* ── Typography ── */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { color: #444; }
small { font-size: 0.82rem; color: var(--gray); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: all 0.18s ease; text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--orange); color: white; }
.btn-primary:hover  { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,151,28,0.4); }
.btn-secondary { background: white; color: var(--dark); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-green  { background: var(--green); color: white; }
.btn-green:hover  { background: #219a52; transform: translateY(-1px); }
.btn-ghost  { background: transparent; color: var(--gray); padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost:hover { color: var(--orange); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px;
  border: 1px solid var(--border);
}
.card + .card { margin-top: 16px; }

/* ── Header ── */
.site-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 60px; display: flex;
  align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.logo { font-size: 1.1rem; font-weight: 800; color: var(--orange); display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 12px; }

/* ── Login / Welcome Screen ── */
.login-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, var(--orange-bg) 0%, #FFF9F0 100%);
}
.login-hero { text-align: center; margin-bottom: 48px; }
.login-hero .logo-big { font-size: 3.5rem; margin-bottom: 16px; }
.login-hero h1 { font-size: 2.2rem; color: var(--dark); }
.login-hero .book-tagline {
  font-size: 0.95rem; color: var(--gray); margin-top: 6px; font-style: italic;
}
.login-hero p  { font-size: 1rem; color: var(--gray); margin-top: 8px; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; width: 100%; max-width: 700px; }

.profile-card {
  background: white; border-radius: var(--radius); padding: 32px 24px;
  text-align: center; cursor: pointer; border: 2px solid var(--border);
  transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.profile-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.profile-card .avatar { font-size: 3rem; margin-bottom: 12px; }
.profile-card h3 { font-size: 1.3rem; color: var(--dark); }
.profile-card small { color: var(--gray); font-size: 0.9rem; }
.profile-card.parent { border-color: var(--border); }
.profile-card.parent:hover { border-color: var(--purple); }

/* ── Setup Wizard ── */
.setup-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.setup-box { background: white; border-radius: var(--radius); padding: 40px; max-width: 520px; width: 100%; box-shadow: var(--shadow); }
.setup-box h2 { margin-bottom: 8px; }
.setup-box p  { color: var(--gray); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.step-indicator { display: flex; gap: 8px; margin-bottom: 32px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.step-dot.active { background: var(--orange); }

/* ── Child Dashboard ── */
.dash-header {
  background: linear-gradient(135deg, var(--orange) 0%, #D4A017 100%);
  border-radius: var(--radius); padding: 28px; color: white;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.dash-header::before {
  content: '🏅'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 5rem; opacity: 0.18;
}
.dash-header h2 { font-size: 1.7rem; }
.dash-header p  { opacity: 0.85; margin-top: 4px; }
.dash-header .week-badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  border-radius: 50px; padding: 4px 14px; font-size: 0.85rem;
  margin-bottom: 12px; backdrop-filter: blur(10px);
}

/* ── Book Companion Section ── */
.book-companion-banner {
  background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 100%);
  border-radius: var(--radius); padding: 20px 24px; color: white;
  margin-bottom: 16px; display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.book-companion-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.book-companion-banner .bazza { font-size: 2.8rem; flex-shrink: 0; }
.book-companion-banner h3 { font-size: 1.1rem; color: white; margin-bottom: 4px; }
.book-companion-banner p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.book-companion-banner .chapter-progress {
  margin-left: auto; text-align: center; flex-shrink: 0;
}
.book-companion-banner .chapter-progress strong { font-size: 1.6rem; color: var(--orange); display: block; }
.book-companion-banner .chapter-progress span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

.chapter-mini-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin-top: 12px;
}
.chapter-mini-card {
  background: white; border-radius: var(--radius-sm); padding: 14px;
  border: 2px solid var(--border); cursor: pointer;
  transition: all 0.2s ease; position: relative;
}
.chapter-mini-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chapter-mini-card.done { border-color: var(--green); background: var(--green-light); }
.chapter-mini-card .ch-emoji { font-size: 1.5rem; margin-bottom: 6px; }
.chapter-mini-card .ch-num { font-size: 0.72rem; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.chapter-mini-card h4 { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.chapter-mini-card .done-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--green); color: white; border-radius: 50%;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}

/* ── Chapter View Header ── */
.chapter-header {
  background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 100%);
  border-radius: var(--radius); padding: 24px; color: white; margin-bottom: 20px;
}
.chapter-header .ch-breadcrumb { opacity: 0.6; font-size: 0.85rem; margin-bottom: 8px; }
.chapter-header h1 { font-size: 1.6rem; color: white; }
.chapter-header .bazza-note {
  margin-top: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1); border-radius: 10px; padding: 8px 12px;
}
.chapter-header .lesson-meta { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.chapter-header .meta-chip {
  background: rgba(255,255,255,0.15); border-radius: 50px;
  padding: 4px 12px; font-size: 0.82rem;
}

/* ── Lesson Card ── */
.lesson-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 2px solid var(--border); cursor: pointer;
  transition: all 0.2s ease; position: relative;
}
.lesson-card:hover:not(.locked) { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.lesson-card.locked { opacity: 0.6; cursor: not-allowed; }
.lesson-card.completed { border-color: var(--green); }
.lesson-card.current  { border-color: var(--orange); }

.lesson-card .lesson-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.lesson-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.lesson-card .unit-tag {
  display: inline-block; background: var(--orange-light); color: var(--orange);
  border-radius: 50px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 10px;
}
.lesson-card .book-tag,
.book-tag {
  display: inline-block; background: #F5EFE6; color: #5C3D2E;
  border-radius: 50px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 10px;
}
.lesson-card .lock-overlay {
  position: absolute; top: 16px; right: 16px; font-size: 1.3rem; opacity: 0.5;
}
.lesson-card .completed-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--green); color: white; border-radius: 50px;
  padding: 2px 10px; font-size: 0.8rem; font-weight: 700;
}

.lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }

/* ── Jars Section ── */
.jars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.jar-card {
  background: white; border-radius: var(--radius); padding: 20px;
  text-align: center; border: 2px solid var(--border);
  transition: transform 0.2s ease;
}
.jar-card:hover { transform: translateY(-2px); }
.jar-card.savings { border-color: var(--green); background: var(--green-light); }
.jar-card.spending { border-color: var(--blue); background: var(--blue-light); }
.jar-card.gift    { border-color: var(--purple); background: var(--purple-light); }

.jar-card .jar-emoji { font-size: 2.4rem; margin-bottom: 8px; }
.jar-card .jar-label { font-size: 0.85rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.jar-card .jar-amount { font-size: 1.8rem; font-weight: 800; margin: 6px 0; }
.jar-card.savings .jar-amount  { color: var(--green); }
.jar-card.spending .jar-amount { color: var(--blue); }
.jar-card.gift    .jar-amount  { color: var(--purple); }
.jar-card .jar-note { font-size: 0.8rem; color: var(--gray); }

/* ── Chores Section ── */
.chore-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: var(--radius-sm); background: white;
  border: 1.5px solid var(--border); margin-bottom: 8px;
  transition: all 0.15s ease;
}
.chore-item.done { background: var(--green-light); border-color: var(--green); }
.chore-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }
.chore-item .chore-emoji { font-size: 1.3rem; flex-shrink: 0; }
.chore-item label { flex: 1; cursor: pointer; font-weight: 500; }
.chore-item .chore-points { font-size: 0.8rem; color: var(--gray); margin-left: auto; }

.internet-bar-wrap { background: var(--border); border-radius: 50px; height: 12px; overflow: hidden; margin-top: 8px; }
.internet-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--orange), #D4A017); transition: width 0.4s ease; }

/* ── Lesson View / Chat ── */
.lesson-header {
  background: linear-gradient(135deg, var(--dark) 0%, #2C3E50 100%);
  border-radius: var(--radius); padding: 24px; color: white; margin-bottom: 20px;
}
.lesson-header .unit-breadcrumb { opacity: 0.6; font-size: 0.85rem; margin-bottom: 8px; }
.lesson-header h1 { font-size: 1.6rem; }
.lesson-header .lesson-meta { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.lesson-header .meta-chip {
  background: rgba(255,255,255,0.15); border-radius: 50px;
  padding: 4px 12px; font-size: 0.82rem;
}

.chat-container {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column; height: 480px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px; display: flex;
  flex-direction: column; gap: 16px; scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.message { display: flex; gap: 12px; max-width: 85%; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.msg-avatar.sats { background: var(--orange-light); border: 2px solid var(--orange); }
.msg-avatar.child { background: var(--blue-light); border: 2px solid var(--blue); }

.msg-bubble {
  padding: 12px 16px; border-radius: 18px; font-size: 0.97rem;
  line-height: 1.55; max-width: 100%;
}
.message.sats  .msg-bubble { background: var(--orange-bg); border-radius: 4px 18px 18px 18px; }
.message.user  .msg-bubble { background: var(--blue-light); border-radius: 18px 4px 18px 18px; color: var(--dark); }
.message.system .msg-bubble { background: var(--green-light); border-radius: 12px; font-size: 0.88rem; color: #1A6035; border: 1px solid #A9DFC1; }
.message.system { max-width: 100%; align-self: center; }

.typing-indicator { display: flex; gap: 5px; align-items: center; padding: 10px 14px; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); animation: blink 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100%{opacity:0.3} 40%{opacity:1} }

.chat-input-row {
  display: flex; gap: 10px; padding: 14px 16px;
  border-top: 1px solid var(--border); background: #FAFAFA;
}
.chat-input {
  flex: 1; padding: 10px 16px; border: 2px solid var(--border);
  border-radius: 50px; font-size: 0.97rem; outline: none;
  transition: border-color 0.2s; background: white;
}
.chat-input:focus { border-color: var(--orange); }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange);
  border: none; cursor: pointer; font-size: 1.1rem; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.18s;
}
.chat-send-btn:hover { background: var(--orange-dark); transform: scale(1.05); }

.mic-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange-light); border: 2px solid var(--border);
  cursor: pointer; font-size: 1.1rem; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.18s;
}
.mic-btn:hover { background: var(--orange); border-color: var(--orange); }
.mic-btn.recording {
  background: var(--red); border-color: var(--red);
  animation: mic-pulse 1.1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
}

/* ── Activities Section ── */
.activity-card {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 10px; transition: border-color 0.2s;
}
.activity-card:hover { border-color: var(--orange); }
.activity-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; background: white; user-select: none;
}
.activity-header .activity-emoji { font-size: 1.4rem; }
.activity-header h4 { flex: 1; font-size: 1rem; }
.activity-header .activity-duration { font-size: 0.8rem; color: var(--gray); background: var(--orange-light); border-radius: 50px; padding: 2px 10px; }
.activity-header .expand-arrow { color: var(--gray); transition: transform 0.2s; }
.activity-card.open .expand-arrow { transform: rotate(180deg); }
.activity-body { padding: 14px 16px; background: var(--orange-bg); border-top: 1px solid var(--border); display: none; }
.activity-card.open .activity-body { display: block; }
.activity-body p { font-size: 0.96rem; color: #333; }

/* ── Resources ── */
.resource-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: white; border-radius: var(--radius-sm); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.resource-item .resource-type { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.resource-item .resource-info h4 { font-size: 0.97rem; margin-bottom: 2px; }
.resource-item .resource-info p  { font-size: 0.84rem; color: var(--gray); }

/* ── Parent Dashboard ── */
.parent-tabs { display: flex; gap: 4px; background: var(--border); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.parent-tab {
  flex: 1; padding: 10px; text-align: center; border-radius: 9px;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  color: var(--gray); border: none; background: none; transition: all 0.18s;
}
.parent-tab.active { background: white; color: var(--dark); box-shadow: var(--shadow-sm); }

.child-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.child-overview-card {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: white;
}
.child-overview-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.progress-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.progress-item:last-child { border-bottom: none; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--orange-light); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-box .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.stat-box .stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

.jar-action-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
.modal-box {
  background: white; border-radius: var(--radius); padding: 32px;
  max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}
.modal-box h3 { margin-bottom: 8px; }
.modal-box p  { color: var(--gray); margin-bottom: 24px; font-size: 0.95rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

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

/* ── Section headings ── */
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 14px;
}
.section-heading h2 { font-size: 1.2rem; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(0);
  background: var(--dark); color: white; padding: 12px 24px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  z-index: 300; white-space: nowrap;
}
@keyframes toastIn  { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to   { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* ── Utility ── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-gray   { color: var(--gray); }
.text-center { text-align: center; }
.font-bold   { font-weight: 700; }
.pill { background: var(--orange-light); color: var(--orange); border-radius: 50px; padding: 3px 12px; font-size: 0.82rem; font-weight: 600; display: inline-block; }
.daily-badge { background: var(--blue-light); color: var(--blue); border-radius: 50px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pill-green { background: var(--green-light); color: var(--green); }
.pill-blue  { background: var(--blue-light); color: var(--blue); }

/* ── Sound Money Stack Card ── */
.sound-money-card {
  border-color: var(--bitcoin) !important;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%) !important;
  transition: box-shadow 0.18s;
}
.sound-money-card:hover {
  box-shadow: 0 8px 32px rgba(247,147,26,0.22);
}

/* ── Sound Money Facts Grid ── */
.sound-money-facts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px;
}
.sound-money-fact-card {
  background: var(--card); border-radius: var(--radius-sm);
  padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.sound-money-fact-card h3 { margin-top: 8px; font-size: 1rem; }
.sound-money-fact-card p  { font-size: .85rem; margin-top: 4px; }

/* ── Sound Money Calculator ── */
.calc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-btn {
  padding: 8px 20px; border-radius: 50px;
  border: 2px solid var(--border); background: white;
  font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.calc-btn.active, .calc-btn:hover {
  border-color: var(--bitcoin); color: var(--bitcoin); background: var(--bitcoin-light);
}

/* ── Growth Comparison Bars ── */
.growth-comparison { width: 100%; }
.growth-bar-wrap { width: 100%; }
.growth-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; margin-bottom: 6px;
}
.growth-bar-bg {
  height: 30px; background: var(--border); border-radius: 50px; overflow: hidden;
}
.growth-bar { height: 100%; border-radius: 50px; transition: width .7s ease; }
.growth-bar.btc  { background: linear-gradient(90deg, var(--bitcoin), #FFB347); }
.growth-bar.fiat { background: linear-gradient(90deg, var(--red), #ff9999); }

/* ── Quiz ── */
.quiz-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.quiz-question {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  text-align: left;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
.quiz-option:hover:not(:disabled) {
  background: var(--orange-light);
  border-color: var(--orange);
}
.quiz-option.correct {
  background: #d4edda;
  border-color: var(--green);
  color: #155724;
  font-weight: 600;
}
.quiz-option.wrong {
  background: #f8d7da;
  border-color: var(--red);
  color: #721c24;
}
.quiz-option.faded {
  opacity: 0.45;
}
.quiz-option:disabled { cursor: default; }
.quiz-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.5;
}
.quiz-feedback p { margin-top: 6px; }
.quiz-feedback-correct {
  background: #d4edda;
  border: 1px solid var(--green);
  color: #155724;
}
.quiz-feedback-wrong {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .jars-grid { grid-template-columns: 1fr; }
  .child-overview-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .chat-container { height: 400px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .sound-money-facts-grid { grid-template-columns: 1fr; }
  .chapter-mini-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
