:root {
  --ink: #f5f8ff;
  --muted: #a8b5ca;
  --surface: rgba(6, 16, 32, .78);
  --surface-strong: rgba(5, 13, 27, .94);
  --line: rgba(151, 184, 226, .18);
  --cyan: #22d3ee;
  --cyan-bright: #58e9ff;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --radius-lg: 24px;
  --radius-md: 17px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #030a16;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #f8d14a;
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.text-cyan { color: var(--cyan-bright); }
.text-muted { color: var(--muted); }

.entrance-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #01040a;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), visibility .8s, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.entrance-loader.is-done { visibility: hidden; opacity: 0; pointer-events: none; transform: scale(1.035); }
.loader-bg-fullscreen-video { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.loader-fullscreen-scrim {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(1, 4, 10, .04), rgba(1, 4, 10, .46) 73%, rgba(1, 4, 10, .82)), linear-gradient(180deg, rgba(1, 4, 10, .28), transparent 30%, transparent 64%, rgba(1, 4, 10, .75));
}
.loader-top-controls { position: absolute; z-index: 4; top: max(20px, env(safe-area-inset-top)); right: max(22px, env(safe-area-inset-right)); display: flex; gap: 10px; }
.loader-control, .loader-enter-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: rgba(1, 7, 16, .62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
}
.loader-control { padding: 0 16px; font-size: 12px; font-weight: 800; }
.loader-control:hover { color: var(--cyan-bright); border-color: rgba(88, 233, 255, .72); background: rgba(7, 64, 80, .48); transform: translateY(-2px); }
.loader-center-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(440px, calc(100% - 36px)); text-align: center; }
.loader-tribute-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 17px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 999px; color: #ffd65c; background: rgba(1, 7, 16, .65); box-shadow: 0 10px 28px rgba(0, 0, 0, .36); backdrop-filter: blur(16px); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.loader-tribute-badge i { color: var(--amber); }
.loader-brand-title { margin: 0; color: #fff; font: 800 clamp(32px, 4vw, 48px)/1 Space Grotesk, sans-serif; letter-spacing: -.04em; text-shadow: 0 6px 30px rgba(0, 0, 0, .85), 0 0 32px rgba(34, 211, 238, .35); }
.loader-brand-title span { color: var(--cyan-bright); }
.loader-progress-assembly { display: flex; align-items: center; gap: 12px; width: min(330px, 100%); }
.loader-bar-track { flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.loader-bar-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); box-shadow: 0 0 14px rgba(34, 211, 238, .8); transition: width .08s linear; }
.loader-count { min-width: 48px; color: var(--cyan-bright); font: 800 12px/1 Space Grotesk, sans-serif; letter-spacing: .04em; text-align: right; }
.loader-enter-cta { min-height: 46px; padding: 0 22px; color: var(--cyan-bright); border-color: rgba(88, 233, 255, .55); font: 800 13px/1 Space Grotesk, sans-serif; }
.loader-enter-cta:hover { color: #00131d; background: var(--cyan-bright); border-color: var(--cyan-bright); box-shadow: 0 0 30px rgba(34, 211, 238, .35); transform: translateY(-2px); }

.ambient-orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .16; pointer-events: none; }
.ambient-orb.orb-one { width: 420px; height: 420px; left: -160px; top: -120px; background: var(--cyan); }
.ambient-orb.orb-two { width: 360px; height: 360px; right: -100px; bottom: -80px; background: #6949ff; }

.app-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 142px;
  gap: 12px;
  width: min(1660px, 100%);
  margin: 0 auto;
  padding: 14px 18px calc(10px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 0;
}

.topbar {
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 14, 29, .74);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
}
.brand { display: flex; align-items: center; gap: 11px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: #ffffff; box-shadow: 0 4px 16px rgba(34, 211, 238, .22);
  flex-shrink: 0;
}
.brand-logo-img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font: 700 18px/1 Space Grotesk, sans-serif; letter-spacing: -.03em; }
.brand-copy em { color: var(--cyan); font-style: normal; }
.brand-copy small { color: var(--muted); font: 700 10px/1.2 Space Grotesk, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.status-pill { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 16px; border: 1px solid rgba(52, 211, 153, .25); border-radius: 999px; color: #76e6ba; background: rgba(5, 68, 55, .3); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.status-dot, .online-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.status-pill.thinking { color: #f5d77b; border-color: rgba(251, 191, 36, .35); background: rgba(91, 58, 5, .33); }
.status-pill.speaking, .status-pill.listening { color: #73eaff; border-color: rgba(34, 211, 238, .38); background: rgba(7, 74, 91, .35); }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.language-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); }
.lang-btn { min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.lang-btn.is-active { color: #04111d; background: var(--cyan-bright); box-shadow: 0 5px 16px rgba(34, 211, 238, .24); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .035); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: rgba(88, 233, 255, .5); background: rgba(34, 211, 238, .09); }
.parent-zone-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 17px; border: 1px solid rgba(251, 191, 36, .35); border-radius: 14px; color: #ffd55c; background: rgba(120, 75, 6, .18); font-size: 13px; font-weight: 800; cursor: pointer; }
.auth-pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px; color: #fff; background: rgba(8, 30, 54, .7); font: 700 12.5px/1.2 Space Grotesk, sans-serif; letter-spacing: .02em; white-space: nowrap; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.auth-pill-btn:hover { transform: translateY(-1px); border-color: var(--cyan-bright); background: rgba(14, 45, 78, .85); color: var(--cyan-bright); box-shadow: 0 6px 20px rgba(0, 0, 0, .3), 0 0 16px rgba(34, 211, 238, .2); }
.auth-pill-btn:active { transform: translateY(0); }
.auth-pill-btn:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
.auth-pill-btn i { color: var(--cyan-bright); font-size: 12px; }
.parent-session-badge { display: none; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .35); background: rgba(8, 30, 54, .7); color: var(--cyan-bright); font: 700 12px/1.2 Space Grotesk, sans-serif; letter-spacing: .02em; white-space: nowrap; backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.parent-session-badge strong { color: #fff; font-weight: 800; }
.badge-logout-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 4px; padding: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 11px; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.badge-logout-btn:hover { background: rgba(239, 68, 68, .25); border-color: rgba(239, 68, 68, .6); color: #fca5a5; transform: scale(1.1); }

.mission-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 163, 216, .2);
  border-radius: var(--radius-lg);
  background: #071426;
  box-shadow: var(--shadow);
}
.stage-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 9, 20, .48), rgba(3, 10, 21, .05) 44%, rgba(3, 9, 20, .44)), linear-gradient(180deg, rgba(4, 11, 24, .06), rgba(4, 10, 22, .4)), url('assets/keynote-stage.jpg') center 38%/cover; opacity: 1; filter: brightness(1.16) saturate(1.08); }
.stage-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(68, 215, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(68, 215, 255, .16) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, transparent 0, black 35%, black); transform: perspective(450px) rotateX(58deg) scale(1.6) translateY(29%); transform-origin: bottom; }
.mission-intro { position: absolute; z-index: 6; top: 24px; left: 50%; width: min(700px, 70%); text-align: center; transform: translateX(-50%); }
.mission-intro .eyebrow { margin: 0 0 7px; color: #7cecff; font: 700 11px/1.2 Space Grotesk, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.mission-intro h1 { margin: 0; font: 700 clamp(30px, 3vw, 48px)/1.02 Space Grotesk, sans-serif; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 5px 24px #000; }
.mission-intro h1 span { color: var(--cyan-bright); }
.mission-intro #mission-subtitle, .mission-intro > p:last-child { margin: 8px 0 0; color: #b6c4d9; font-size: 13px; }

.avatar-stage { position: absolute; z-index: 5; left: 50%; bottom: -3%; width: min(560px, 41vw); height: 90%; transform: translateX(-50%); }
.avatar-interactive-figure { position: absolute; z-index: 3; inset: 4% 8% 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.avatar-interactive-figure img { display: block; width: auto; height: 96%; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .52)); transform: none; animation: none; }
.avatar-glow { position: absolute; z-index: -1; left: 50%; bottom: 2%; width: 78%; height: 57%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 68%); transform: translateX(-50%); filter: blur(12px); }
.stage-halo { position: absolute; left: 50%; bottom: 1%; width: 92%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%) perspective(500px) rotateX(69deg); border: 1px solid rgba(67, 222, 255, .45); box-shadow: 0 0 30px rgba(34, 211, 238, .13), inset 0 0 28px rgba(34, 211, 238, .13); }
.stage-halo::before, .stage-halo::after { content: ''; position: absolute; border-radius: inherit; border: 1px solid rgba(55, 224, 255, .28); }
.stage-halo::before { inset: 12%; }.stage-halo::after { inset: 28%; box-shadow: 0 0 28px rgba(34, 211, 238, .15); }
.orbit { position: absolute; inset: 5%; border-radius: 50%; border-top: 2px solid var(--cyan); animation: orbit-spin 8s linear infinite; }.orbit-two { inset: 20%; border-top-color: var(--violet); animation-direction: reverse; animation-duration: 6s; }
.appu-nameplate { position: absolute; z-index: 8; left: 50%; bottom: 7%; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(82, 224, 255, .32); border-radius: 999px; background: rgba(4, 15, 30, .78); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(12px); transform: translateX(-50%); white-space: nowrap; }
.appu-nameplate strong { font: 800 12px/1 Space Grotesk, sans-serif; letter-spacing: .08em; }.appu-nameplate small { color: var(--muted); font-size: 10px; }
.state-thinking .avatar-interactive-figure img, .state-speaking .avatar-interactive-figure img, .state-listening .avatar-interactive-figure img, .state-success .avatar-interactive-figure img { transform: none; animation: none; }.stage-halo.state-speaking, .stage-halo.state-listening { border-color: var(--cyan-bright); animation: halo-pulse 1.15s ease-in-out infinite; }

.mission-deck { position: absolute; z-index: 7; top: 50%; left: 0; right: 0; display: grid; grid-template-columns: minmax(220px, 294px) minmax(220px, 294px); justify-content: space-between; gap: 16px; padding: 0 clamp(30px, 5.3vw, 86px); transform: translateY(-37%); pointer-events: none; }
.mission-card { --accent: var(--cyan); pointer-events: auto; position: relative; display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 12px; min-height: 74px; padding: 10px 15px 10px 11px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius-md); color: var(--ink); text-align: left; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 10%, rgba(4, 14, 29, .9)), rgba(5, 14, 29, .86)); box-shadow: 0 16px 38px rgba(0, 0, 0, .26); backdrop-filter: blur(16px); cursor: pointer; transition: transform .23s ease, border-color .23s, box-shadow .23s; }
.mission-card::after { content: ''; position: absolute; inset: 0; opacity: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); transition: opacity .23s; }
.mission-card:hover, .mission-card.is-active { transform: none; border-color: color-mix(in srgb, var(--accent) 75%, transparent); box-shadow: 0 17px 44px color-mix(in srgb, var(--accent) 17%, rgba(0, 0, 0, .4)); }.mission-card:hover::after, .mission-card.is-active::after { opacity: 1; }
.mission-violet { --accent: var(--violet); }.mission-green { --accent: var(--green); }.mission-amber { --accent: var(--amber); }
.mission-icon { z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent); border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 18px; }.mission-copy { z-index: 1; display: grid; gap: 4px; }.mission-copy strong { font: 700 14px/1.2 Space Grotesk, sans-serif; }.mission-copy small { color: #aebbd0; font-size: 10px; line-height: 1.25; }.mission-arrow { z-index: 1; color: var(--accent); font-size: 11px; }

.response-dock { z-index: 15; justify-self: center; display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 0; width: min(1240px, 100%); min-height: 0; padding: 8px; border: 1px solid rgba(44, 211, 239, .24); border-radius: 22px; background: linear-gradient(110deg, rgba(5, 17, 34, .93), rgba(8, 18, 36, .82)); box-shadow: 0 18px 44px rgba(0, 0, 0, .27); backdrop-filter: blur(20px); }
.response-card { align-self: stretch; display: grid; align-content: center; gap: 8px; padding: 14px 18px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; }
.response-card-head { display: flex; align-items: center; gap: 8px; color: #eafaff; font: 800 11px/1 Space Grotesk, sans-serif; letter-spacing: .09em; text-transform: uppercase; }.response-card p { margin: 0; max-width: 1080px; color: #c5d0e1; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.45; }
.equalizer { display: flex; align-items: center; gap: 3px; height: 16px; margin-left: auto; }.equalizer i { display: block; width: 3px; height: 5px; border-radius: 9px; background: var(--cyan); }.equalizer.active i { animation: equalize .65s ease-in-out infinite alternate; }.equalizer.active i:nth-child(2) { animation-delay: -.15s; }.equalizer.active i:nth-child(3) { animation-delay: -.3s; }.equalizer.active i:nth-child(4) { animation-delay: -.1s; }.equalizer.active i:nth-child(5) { animation-delay: -.4s; }
.control-dock { position: relative; align-self: stretch; display: grid; grid-template-columns: 1fr 80px; grid-template-rows: 1fr 24px; align-items: center; gap: 0 14px; padding: 8px 8px 3px 18px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.dock-btn { min-height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 800; cursor: pointer; }.dock-btn i { margin-right: 6px; color: var(--cyan); }
.mic-button { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border: 2px solid #87f3ff; border-radius: 50%; color: #00131e; background: linear-gradient(145deg, #6cf1ff, #11bde0); box-shadow: 0 0 0 7px rgba(34, 211, 238, .09), 0 10px 30px rgba(34, 211, 238, .29); font-size: 23px; cursor: pointer; transition: transform .2s; }.mic-button:hover { transform: translateY(-3px) scale(1.03); }.mic-button.active { color: #fff; background: linear-gradient(145deg, #ef4e91, #ab34e9); border-color: #ffc4e7; animation: mic-pulse 1.2s infinite; }.mic-rings { position: absolute; inset: -11px; border: 1px solid rgba(65, 231, 255, .35); border-radius: inherit; opacity: 0; }.mic-rings.is-listening { opacity: 1; animation: ring-pulse 1.4s infinite; }.mic-label { grid-column: 2; color: var(--cyan-bright); font: 800 10px/1 Space Grotesk, sans-serif; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.drawer-scrim { position: fixed; z-index: 89; inset: 0; visibility: hidden; opacity: 0; background: rgba(1, 5, 12, .52); backdrop-filter: blur(2px); transition: opacity .25s, visibility .25s; }.drawer-scrim.is-visible { visibility: visible; opacity: 1; }
.chat-drawer { position: fixed; z-index: 90; top: 14px; right: 14px; bottom: 14px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: min(440px, calc(100% - 28px)); overflow: hidden; border: 1px solid rgba(71, 214, 240, .29); border-radius: 24px; background: rgba(4, 13, 27, .96); box-shadow: -20px 0 70px rgba(0, 0, 0, .5); transform: translateX(calc(100% + 30px)); transition: transform .32s cubic-bezier(.2, .9, .2, 1); }.chat-drawer.is-open { transform: none; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 17px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); }.drawer-header > div:first-child, .drawer-actions { display: flex; align-items: center; gap: 10px; }.drawer-header h2 { margin: 0; font: 700 17px/1.2 Space Grotesk, sans-serif; }.drawer-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.drawer-actions { gap: 6px; }
.chat-messages { display: flex; flex-direction: column; gap: 13px; min-height: 0; overflow-y: auto; padding: 18px; scrollbar-width: thin; scrollbar-color: rgba(65, 210, 238, .3) transparent; }.message-row { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }.message-row.user { align-self: flex-end; align-items: flex-end; }.message-row.appu { align-self: flex-start; align-items: flex-start; }.msg-bubble { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; color: #d9e4f3; background: rgba(255, 255, 255, .052); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }.message-row.user .msg-bubble { color: #03131d; background: linear-gradient(145deg, #65eaf8, #22c5df); border: 0; border-radius: 16px 16px 5px 16px; font-weight: 600; }.msg-time { color: #6f8097; font-size: 9px; }.chat-action-card { margin-top: 12px; padding: 11px; border: 1px solid rgba(251, 191, 36, .24); border-radius: 12px; background: rgba(91, 58, 5, .2); }.chat-action-card h5 { margin: 0 0 8px; color: #ffd766; }.chat-action-card-btn { width: 100%; min-height: 38px; border: 0; border-radius: 9px; color: #171001; background: var(--amber); font-size: 11px; font-weight: 800; cursor: pointer; }
.chat-typing { display: none; align-items: center; gap: 5px; padding: 6px 20px 12px; }.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: typing 1s infinite alternate; }.chat-typing span:nth-child(2) { animation-delay: .18s; }.chat-typing span:nth-child(3) { animation-delay: .36s; }
.chat-composer { display: grid; grid-template-columns: 1fr 40px 40px 42px; align-items: center; gap: 7px; margin: 0 14px 14px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .04); }.chat-composer input { min-width: 0; height: 42px; padding: 0 8px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }.chat-composer input::placeholder { color: #718098; }.composer-attach, .composer-mic, .composer-send { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer; }.composer-attach { color: var(--cyan); background: rgba(34, 211, 238, .09); }.composer-mic { color: var(--cyan); background: rgba(34, 211, 238, .09); }.composer-send { color: #00131c; background: var(--cyan-bright); }
.chat-image-preview { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }.chat-image-preview[hidden] { display: none; }.chat-image-preview img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }.chat-image-remove { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; color: var(--cyan); background: rgba(34, 211, 238, .12); cursor: pointer; }
.msg-bubble .msg-image-thumb { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-bottom: 6px; object-fit: cover; }
.msg-attachment-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--cyan-bright); background: rgba(34, 211, 238, .1); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.message-row.user .msg-attachment-label { color: #03131d; background: rgba(0, 0, 0, .15); }
.msg-actions-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .06); }
.btn-share-whatsapp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(37, 211, 102, .25); border-radius: 20px; background: rgba(37, 211, 102, .08); color: #a7f3d0; font: 600 11px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(8px); transition: all .2s cubic-bezier(.2, .9, .2, 1); }
.btn-share-whatsapp i { color: #25d366; font-size: 13px; }
.btn-share-whatsapp:hover { background: rgba(37, 211, 102, .18); border-color: #25d366; color: #ffffff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(37, 211, 102, .2); }
.btn-share-whatsapp:active { transform: translateY(0); }

.voice-reply-popup { position: relative; width: min(720px, calc(100% - 24px)); margin: 0 auto 10px; padding: 14px 18px 16px; border: 1px solid rgba(34, 211, 238, .35); border-radius: 18px; background: rgba(6, 20, 38, .92); box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(34, 211, 238, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 50; transition: opacity .25s ease, transform .25s ease; opacity: 0; transform: translateY(8px); pointer-events: none; }
.voice-reply-popup.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.voice-reply-popup[hidden] { display: none !important; }
.voice-popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.voice-popup-title { display: flex; align-items: center; gap: 8px; }
.voice-popup-title strong { color: var(--cyan-bright); font: 700 13px/1.2 Space Grotesk, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.voice-popup-close { width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 11px; transition: all .2s; }
.voice-popup-close:hover { border-color: var(--cyan); color: #fff; background: rgba(34, 211, 238, .15); }
.voice-popup-body { color: #e2e8f0; font-size: 14px; line-height: 1.6; max-height: 180px; overflow-y: auto; word-break: break-word; white-space: pre-wrap; scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, .3) transparent; }

.chat-history-panel { position: absolute; top: 68px; bottom: 68px; left: 0; width: min(320px, 80vw); z-index: 15; display: flex; flex-direction: column; background: rgba(6, 17, 34, .98); border-right: 1px solid var(--line); box-shadow: 10px 0 30px rgba(0, 0, 0, .45); backdrop-filter: blur(12px); padding: 14px; box-sizing: border-box; transition: transform .25s cubic-bezier(.2, .9, .2, 1), opacity .2s; }
.chat-history-panel[hidden] { display: none; }
.chat-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chat-history-header h3 { margin: 0; font: 700 15px/1.2 Space Grotesk, sans-serif; color: var(--ink); letter-spacing: -.01em; }
#btn-close-chat-history { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
#btn-close-chat-history:hover { color: var(--ink); border-color: rgba(88, 233, 255, .4); background: rgba(34, 211, 238, .08); }
.history-new-chat { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; margin-bottom: 12px; border: 1px solid rgba(88, 233, 255, .35); border-radius: 12px; background: rgba(34, 211, 238, .08); color: var(--cyan-bright); font: 700 13px/1.2 Space Grotesk, sans-serif; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.history-new-chat:hover { background: rgba(34, 211, 238, .15); border-color: var(--cyan); transform: translateY(-1px); }
#chat-history-empty, #chat-history-error { font-size: 12px; color: var(--muted); text-align: center; padding: 20px 10px; margin: 0; }
#chat-history-error { color: #ff6b81; }
#chat-history-empty[hidden], #chat-history-error[hidden] { display: none; }
.chat-history-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(65, 210, 238, .3) transparent; }
.chat-history-item { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .02); transition: background .15s, border-color .15s; }
.chat-history-item:hover { background: rgba(255, 255, 255, .05); border-color: rgba(88, 233, 255, .2); }
.chat-history-item.is-active { background: rgba(34, 211, 238, .1); border-color: rgba(88, 233, 255, .4); }
.chat-history-item-btn { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; padding: 0 10px; border: 0; background: transparent; color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; }
.chat-history-item-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }
.chat-history-item.is-active .chat-history-item-title { color: var(--cyan-bright); font-weight: 600; }
.chat-history-item-delete { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .15s, background .15s; }
.chat-history-item-delete:hover { color: #ff6b81; background: rgba(255, 107, 129, .1); }
.history-clear-all { width: 100%; min-height: 44px; border: 1px solid rgba(255, 107, 129, .25); border-radius: 10px; background: rgba(255, 107, 129, .05); color: #ff8598; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.history-clear-all:hover { background: rgba(255, 107, 129, .12); border-color: rgba(255, 107, 129, .5); color: #ffa4b2; }
.chat-history-item-btn:focus-visible, .chat-history-item-delete:focus-visible, .history-new-chat:focus-visible, .history-clear-all:focus-visible, #btn-close-chat-history:focus-visible, #btn-chat-history:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 640px) { .chat-history-panel { top: 64px; bottom: 0; left: 0; right: 0; width: 100%; border-right: 0; z-index: 25; } }
.is-native .chat-history-panel { top: 64px; bottom: 0; left: 0; right: 0; width: 100%; border-right: 0; z-index: 25; }

.modal-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; overflow-y: auto; background: rgba(1, 6, 15, .72); backdrop-filter: blur(14px); transition: opacity .22s, visibility .22s; }.modal-overlay.is-visible { visibility: visible; opacity: 1; }.modal-sheet { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 30px; border: 1px solid rgba(105, 216, 239, .27); border-radius: 25px; background: linear-gradient(145deg, rgba(8, 22, 42, .99), rgba(4, 13, 27, .99)); box-shadow: 0 30px 100px rgba(0, 0, 0, .55); }.settings-sheet { width: min(560px, 100%); }.modal-close { position: absolute; top: 16px; right: 16px; }.modal-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--cyan-bright); font: 800 10px/1.2 Space Grotesk, sans-serif; letter-spacing: .13em; text-transform: uppercase; }.modal-sheet h2 { max-width: calc(100% - 45px); margin: 0; font: 700 clamp(24px, 4vw, 34px)/1.08 Space Grotesk, sans-serif; letter-spacing: -.035em; }.modal-lead { margin: 10px 0 22px; max-width: 580px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.discovery-form { display: flex; flex-direction: column; gap: 15px; }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.discovery-form label { display: grid; gap: 7px; color: #c8d5e6; font-size: 11px; font-weight: 700; }
.discovery-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: rgba(255, 255, 255, .045); font-size: 13px; }
.discovery-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .1); }

/* Dark Luxury Glass Date Input */
input[type="date"]#pos-child-dob,
#pos-child-dob {
  color-scheme: dark;
  position: relative;
}
#pos-child-dob::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(150deg);
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#pos-child-dob::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark Glassmorphic Dropdown & Select System */
select, .discovery-form select {
  color-scheme: dark;
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(151, 184, 226, 0.28);
  border-radius: 12px;
  outline: 0;
  color: #f8fafc;
  background-color: #08162c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358e9ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
select:hover, .discovery-form select:hover {
  border-color: rgba(88, 233, 255, 0.45);
  background-color: #0a1c36;
}
select:focus, .discovery-form select:focus {
  border-color: var(--cyan);
  background-color: #0a1c36;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
select option, select optgroup,
.discovery-form select option, .discovery-form select optgroup {
  color-scheme: dark;
  background-color: #08162c;
  color: #f8fafc;
  padding: 10px 14px;
  font-size: 13px;
}
select option:checked, .discovery-form select option:checked {
  background-color: #0e3a5f;
  color: var(--cyan-bright);
  font-weight: 700;
}

.privacy-note { margin: -2px 0 0; color: #8393a9; font-size: 10px; }.privacy-note i { color: var(--green); margin-right: 5px; }.primary-modal-btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 13px; color: #00131d; background: linear-gradient(135deg, #68f0ff, #20bfdc); box-shadow: 0 11px 28px rgba(34, 211, 238, .2); font-size: 13px; font-weight: 800; cursor: pointer; }.success-view { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 25px 0 4px; text-align: center; }.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #052318; background: var(--green); font-size: 26px; }.success-view h3 { margin: 0; font: 700 25px Space Grotesk, sans-serif; }.success-view p { color: var(--muted); }.success-links { display: flex; gap: 9px; }.success-links a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan); text-decoration: none; font-size: 11px; font-weight: 800; }
.setting-row { display: grid; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); }.setting-row strong, .setting-row small { display: block; }.setting-row strong { font-size: 13px; }.setting-row small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }.setting-range { grid-template-columns: 1fr auto; gap: 10px; }.setting-range output { color: var(--cyan); font-size: 12px; font-weight: 800; }.setting-range input { grid-column: 1/-1; width: 100%; accent-color: var(--cyan); }.switch-row { grid-template-columns: 1fr auto; align-items: center; }.switch-row input { width: 38px; height: 22px; accent-color: var(--cyan); }.settings-sheet > .primary-modal-btn { width: 100%; margin-top: 18px; }

#cursor-dot, #cursor-aura { position: fixed; z-index: 999; top: 0; left: 0; pointer-events: none; border-radius: 50%; }
#cursor-dot { width: 5px; height: 5px; background: #fff; }#cursor-aura { width: 28px; height: 28px; border: 1px solid rgba(88, 233, 255, .55); transition: width .2s, height .2s, background .2s; }.cursor-hover #cursor-aura { width: 44px; height: 44px; background: rgba(34, 211, 238, .09); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }@keyframes halo-pulse { 50% { opacity: .7; box-shadow: 0 0 55px rgba(34, 211, 238, .36); } }
@keyframes equalize { to { height: 15px; } }@keyframes mic-pulse { 50% { box-shadow: 0 0 0 12px rgba(239, 78, 145, .08), 0 10px 35px rgba(239, 78, 145, .3); } }@keyframes ring-pulse { to { transform: scale(1.25); opacity: 0; } }@keyframes typing { to { transform: translateY(-5px); opacity: .45; } }

@media (min-width: 1001px) {
  .app-shell { grid-template-rows: 68px minmax(0, 1fr) 122px; gap: 10px; padding-top: 10px; padding-bottom: 8px; }
  .topbar { padding-block: 7px; border-radius: 19px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 50%; }
  .mission-intro { top: 16px; }
  .mission-intro h1 { font-size: clamp(30px, 2.55vw, 42px); }
  .mission-intro > p:last-child { margin-top: 6px; font-size: 12px; }
  .avatar-stage { bottom: -4%; width: min(620px, 43vw); height: 82%; }
  .avatar-interactive-figure { inset: 0 4% 0; }
  .avatar-interactive-figure img { height: 100%; }
  .appu-nameplate { bottom: 5%; }
  .mission-deck { top: 52%; grid-template-columns: minmax(220px, 270px) minmax(220px, 270px); gap: 13px; }
  .mission-card { min-height: 60px; grid-template-columns: 44px 1fr; gap: 11px; padding: 7px 18px 7px 8px; border-radius: 999px; }
  .mission-icon { width: 44px; height: 44px; border-radius: 50%; }
  .mission-copy strong { font-size: 14px; }
  .mission-copy small, .mission-arrow { display: none; }
  .response-dock { width: min(1120px, 100%); grid-template-columns: minmax(0, 1fr) 205px; padding: 7px; border-radius: 20px; }
  .response-card { padding: 12px 16px; }
  .control-dock { grid-template-columns: 1fr 72px; padding-left: 15px; }
  .mic-button { width: 62px; height: 62px; font-size: 21px; }
}

@media (max-width: 1000px) and (min-width: 769px) {
  .app-shell { grid-template-rows: 70px minmax(0, 1fr) 126px; padding: 10px 12px 12px; gap: 9px; }
  .brand-copy small, .status-pill { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 50%; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-actions { grid-column: 2; }
  .mission-intro { top: 18px; width: 90%; }
  .mission-intro h1 { font-size: clamp(28px, 5vw, 39px); }
  .avatar-stage { bottom: 1%; width: min(390px, 46vw); height: 72%; }
  .mission-deck { top: auto; bottom: 10px; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 12px; transform: none; }
  .mission-card { min-height: 62px; grid-template-columns: 39px 1fr 14px; padding: 8px 11px; }
  .mission-icon { width: 39px; height: 39px; border-radius: 12px; }
  .mission-copy strong { font-size: 12px; }
  .mission-copy small { font-size: 9px; }
  .appu-nameplate { bottom: 21%; }
  .response-dock { grid-template-columns: minmax(0, 1fr) 185px; }
  .response-card { padding: 13px 17px; }
  .control-dock { grid-template-columns: 1fr 67px; }
  .mic-button { width: 59px; height: 59px; }
}

@media (max-width: 768px) {
  .loader-top-controls { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); gap: 7px; }
  .loader-control { min-height: 38px; padding: 0 12px; font-size: 10px; }
  .loader-center-content { justify-content: flex-end; height: 100%; padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 30px)); }
  .loader-brand-title { font-size: 34px; }
  .loader-tribute-badge { font-size: 10px; }
  .loader-enter-cta { min-height: 44px; font-size: 12px; }

  #beta-banner { display: none; }

  .app-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 16px;
    gap: 6px;
    flex-shrink: 0;
    z-index: 20;
  }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 50%; }
  .brand-copy strong { font-size: 13.5px; }
  .brand-copy small, .status-pill { display: none; }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .topbar-actions::-webkit-scrollbar { display: none; }
  .parent-session-badge { max-width: 92px; font-size: 10.5px; padding: 0 8px; min-height: 32px; gap: 4px; flex-shrink: 0; }
  .parent-session-badge > i { flex-shrink: 0; }
  .parent-session-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; min-width: 0; }
  .badge-logout-btn { width: 20px; height: 20px; font-size: 9.5px; margin-left: 2px; flex-shrink: 0; }
  .auth-pill-btn { min-height: 32px; padding: 0 10px; font-size: 11px; gap: 5px; flex-shrink: 0; }
  .language-switch { padding: 2px; gap: 2px; flex-shrink: 0; }
  .lang-btn { min-height: 32px; padding: 0 8px; font-size: 10.5px; }
  .parent-zone-btn { width: 34px; height: 34px; min-height: 34px; padding: 0; justify-content: center; border-radius: 10px; flex-shrink: 0; }
  .parent-zone-btn span { display: none; }
  .icon-btn { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
  .topbar-actions #btn-sound-toggle, .topbar-actions #btn-quick-schedule { display: none; }

  .mission-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    background: #071426;
  }

  .mission-intro {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 6px 16px 0;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 6;
  }
  .mission-intro .eyebrow {
    display: none;
  }
  .mission-intro h1 {
    font-size: clamp(19px, 5.2vw, 25px);
    line-height: 1.1;
    margin: 0;
  }
  .mission-intro #mission-subtitle,
  .mission-intro > p:last-child {
    display: none;
  }
  .prompt-library-trigger-wrap {
    margin: 8px 0 0;
  }
  .explore-prompts-pill {
    padding: 6px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .avatar-stage {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(430px, 92vw);
    flex: 1 1 0;
    min-height: 200px;
    margin: 2px auto 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5;
    overflow: visible;
  }
  .avatar-interactive-figure {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform-origin: center bottom;
    transform: scale(1.08);
    padding: 0;
  }
  .avatar-interactive-figure img {
    display: block;
    width: auto;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
    transform: none;
    animation: none;
  }
  .avatar-glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 85%;
    height: 60%;
    transform: translateX(-50%);
  }
  .stage-halo {
    position: absolute;
    left: 50%;
    bottom: -2%;
    width: 90%;
    aspect-ratio: 1;
    transform: translateX(-50%) perspective(400px) rotateX(68deg);
  }
  .appu-nameplate {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    z-index: 8;
    padding: 5px 12px;
    font-size: 11px;
  }
  .appu-nameplate strong { font-size: 11px; }
  .appu-nameplate small { display: none; }

  .mission-deck {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 14px 6px;
    margin-top: 0;
    flex-shrink: 0;
    z-index: 7;
    pointer-events: auto;
  }
  .mission-card {
    min-height: 44px;
    grid-template-columns: 36px 1fr;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 13px;
  }
  .mission-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
  }
  .mission-copy strong {
    font-size: 11.5px;
    line-height: 1.2;
  }
  .mission-copy small, .mission-arrow {
    display: none;
  }

  .response-dock {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(44, 211, 239, 0.26);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(5, 17, 34, 0.93), rgba(8, 18, 36, 0.82));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.27);
    backdrop-filter: blur(20px);
    z-index: 15;
    flex-shrink: 0;
    margin-top: 0;
  }
  .response-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    gap: 6px;
  }
  .response-card-head {
    font-size: 10px;
    letter-spacing: 0.09em;
  }
  .response-card p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    color: #c5d0e1;
  }
  .control-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 2px;
    border: 0;
    border-top: 1px solid rgba(151, 184, 226, 0.15);
    background: transparent;
  }
  .dock-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 11.5px;
    border-radius: 12px;
  }
  .mic-button {
    width: 52px;
    height: 52px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .mic-label {
    display: none;
  }

  .landing-footer-strip {
    padding: 5px 14px;
    gap: 6px 10px;
    font-size: 10px;
  }

  .modal-overlay { align-items: end; padding: 0; }
  .modal-sheet { width: 100%; max-height: 91dvh; padding: 24px 17px; border-radius: 23px 23px 0 0; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-sheet h2 { font-size: 25px; }
  .success-links { flex-direction: column; }
  .chat-drawer { inset: 7px; width: auto; border-radius: 19px; }
  .chat-composer { grid-template-columns: 1fr 38px 38px 40px; margin: 0 9px 9px; }
  /* Larger, properly-centered input text on mobile — 16px also stops mobile browsers
     zooming in on focus, and prevents the value/placeholder from being clipped. */
  .chat-composer input { font-size: 16px; height: 44px; line-height: 44px; padding: 0 6px; }
  #cursor-dot, #cursor-aura { display: none; }
}

@media (max-width: 350px) {
  .mission-deck {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 10px 16px;
  }
  .mission-card {
    min-height: 50px;
    grid-template-columns: 34px 1fr;
    padding: 6px 10px;
  }
  .avatar-stage {
    width: min(320px, 88vw);
    height: 275px;
  }
  .avatar-interactive-figure img {
    max-height: 255px;
  }
}

@media (max-height: 720px) and (min-width: 769px) {
  .app-shell { grid-template-rows: 62px minmax(0, 1fr) 105px; }
  .mission-intro { top: 12px; }
  .mission-intro .eyebrow { display: none; }
  .mission-intro h1 { font-size: 30px; }
  .mission-intro > p:last-child { margin-top: 4px; }
  .mission-card { min-height: 58px; }
  .avatar-stage { height: 78%; }
  .response-card { padding: 10px 16px; }
}

@media (min-width: 1001px) and (min-height: 721px) and (max-height: 820px) {
  .mission-intro { top: 10px; }
  .mission-intro .eyebrow { display: none; }
  .mission-intro h1 { font-size: 36px; }
  .mission-intro > p:last-child { margin-top: 3px; font-size: 11px; }
  .avatar-stage { height: 78%; }
}

@media (min-width: 1001px) and (min-height: 721px) and (max-height: 820px) {
  .mission-intro { top: 10px; }
  .mission-intro .eyebrow { display: none; }
  .mission-intro h1 { font-size: 36px; }
  .mission-intro > p:last-child { margin-top: 3px; font-size: 11px; }
  .avatar-stage { height: 78%; }
}

/* ==========================================================================
   PARENT SETUP & ONBOARDING SHELL (PHASE 2)
   ========================================================================== */
.modal-overlay#parent-setup-modal {
  display: grid;
  place-items: center;
  padding: 24px;
}
@media (max-width: 699px) {
  .modal-overlay#parent-setup-modal {
    align-items: end;
    padding: 0;
  }
}

.pos-sheet {
  width: min(1180px, calc(100vw - 48px));
  max-width: 1180px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0 auto;
}
@media (max-width: 699px) {
  .pos-sheet {
    width: 100%;
    max-width: 100vw;
    max-height: 92dvh;
    padding: 20px 14px;
    border-radius: 20px 20px 0 0;
  }
  .pos-current-plan-dashboard {
    padding: 16px 14px;
    gap: 14px;
  }
  .pos-dashboard-title-row h3 {
    font-size: 20px;
    line-height: 1.2;
  }
  .pos-dashboard-price-pill {
    font-size: 18px;
  }
  .pos-dashboard-metric-box {
    padding: 12px 14px;
  }
  .pos-billing-btn {
    padding: 8px 14px;
    font-size: 11.5px;
  }
  .pos-plan-card {
    padding: 18px 14px;
  }
  .pos-plan-card h3 {
    font-size: 17px;
  }
  .pos-price {
    font-size: 22px;
  }
  .pos-genesis-upsell {
    padding: 12px 14px;
  }
}

.pos-tracker { display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; }
.pos-step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); transition: background .25s, transform .25s; }
.pos-step-dot.active { background: var(--cyan-bright); transform: scale(1.3); box-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.pos-step-dot.completed { background: var(--green); }

.pos-alert { display: none; margin-bottom: 15px; padding: 12px 15px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.pos-alert.error { border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; background: rgba(185, 28, 28, .15); }
.pos-alert.success { border: 1px solid rgba(34, 197, 94, .4); color: #86efac; background: rgba(21, 128, 61, .15); }
.pos-alert.info { border: 1px solid rgba(34, 211, 238, .4); color: #a5f3fc; background: rgba(4, 18, 38, .75); }

/* Email Verification State */
.pos-verify-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 22px;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(34, 211, 238, .08), rgba(4, 18, 38, .92));
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
}
.pos-verify-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(34, 211, 238, .2);
}
.pos-verify-title {
  font: 800 22px/1.2 Space Grotesk, sans-serif;
  color: #fff;
  margin: 0 0 8px;
}
.pos-verify-lead {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 6px;
  max-width: 440px;
}
.pos-verify-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 400px;
}
.pos-verify-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}
.pos-link-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  transition: color .2s;
  text-decoration: underline;
}
.pos-link-btn:hover {
  color: var(--cyan-bright);
}

/* Step-specific layout separation */
.pos-step-auth-content,
.auth-step-content {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  box-sizing: border-box;
}

.pos-step-plan-content,
.plan-step-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.pos-plans-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  gap: 18px;
}

.pos-step-child-content,
.pos-step-pers-content,
.pos-step-ready-content,
.learner-step-content {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* WhatsApp Parent Automation Section (Step 4 Personalisation) */
.pos-whatsapp-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 8px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), rgba(5, 8, 17, 0.85));
  backdrop-filter: blur(16px);
  text-align: left;
  box-sizing: border-box;
}

.pos-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #25d366;
  font-size: 18px;
  flex-shrink: 0;
}

.pos-whatsapp-header-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-whatsapp-header-text strong {
  font: 700 14px/1.3 Space Grotesk, sans-serif;
  color: #f1f5f9;
}

.pos-optional-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-whatsapp-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 2px;
}

.pos-whatsapp-consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  accent-color: #25d366;
  cursor: pointer;
  flex-shrink: 0;
}

.pos-whatsapp-consent-row span {
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.pos-whatsapp-rationale {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
}

.pos-whatsapp-rationale i {
  color: #25d366;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pos-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.pos-tab { flex: 1; min-height: 38px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.pos-google-btn { width: 100%; justify-content: center; margin: 0 0 14px; }
.pos-auth-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pos-auth-divider::before, .pos-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pos-tab.active { color: #00121d; background: var(--cyan-bright); box-shadow: 0 4px 12px rgba(34, 211, 238, .2); }

/* Full-width Current Plan Summary */
.pos-current-plan-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(34, 211, 238, .08), rgba(4, 18, 38, .92));
  text-align: left;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.pos-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pos-dashboard-plan-meta { display: flex; flex-direction: column; gap: 4px; }
.pos-dashboard-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pos-dashboard-title-row h3 { margin: 0; font: 800 24px/1.2 Space Grotesk, sans-serif; color: #fff; }
.pos-dashboard-price-pill { font: 800 20px/1 Space Grotesk, sans-serif; color: var(--cyan-bright); }
.pos-dashboard-price-pill span { font-size: 13px; font-weight: 500; color: var(--muted); }
.pos-dashboard-msg { margin: 0; font-size: 13px; color: #cbd5e1; }

.pos-dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
@media (max-width: 699px) {
  .pos-dashboard-metrics-grid { grid-template-columns: 1fr; gap: 12px; }
}

.pos-dashboard-metric-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  box-sizing: border-box;
}
.pos-metric-header { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; gap: 8px; }
.pos-metric-title { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.pos-metric-count { color: #fff; font: 700 13px Space Grotesk, sans-serif; white-space: nowrap; }
.pos-metric-sub { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 8px; }

.pos-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
@media (max-width: 699px) {
  .pos-dashboard-actions { flex-direction: column; align-items: stretch; }
  .pos-dashboard-actions .primary-modal-btn,
  .pos-dashboard-actions .pos-secondary-btn { width: 100%; }
}

/* Pricing Section Root & Toggle */
.pos-pricing-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.pos-billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 18px;
  width: 100%;
}
.pos-billing-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.pos-billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 12.5px/1.2 Space Grotesk, sans-serif;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.pos-billing-btn.active {
  background: var(--cyan-bright);
  color: #00121d;
  box-shadow: 0 2px 12px rgba(34, 211, 238, .4);
}
.pos-billing-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #22c55e;
  color: #042f1a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pos-billing-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #86efac;
  font-weight: 600;
  text-align: center;
}

/* 4-Card Responsive Grid */
.pos-plans-grid,
.pricing-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  box-sizing: border-box;
}
@media (max-width: 1099px) {
  .pos-plans-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 699px) {
  .pos-plans-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.pos-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  text-align: left;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
.pos-plan-card:hover { border-color: rgba(34, 211, 238, .35); }
.pos-plan-card.featured {
  border-color: rgba(34, 211, 238, .6);
  background: linear-gradient(155deg, rgba(34, 211, 238, .12), rgba(4, 18, 38, .9));
  box-shadow: 0 0 24px rgba(34, 211, 238, .14);
}
.pos-plan-card.current {
  border-color: rgba(34, 197, 94, .55);
  background: linear-gradient(155deg, rgba(34, 197, 94, .09), rgba(4, 18, 38, .9));
}
.pos-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #00121d;
  background: var(--cyan-bright);
  font: 800 9px/1.2 Space Grotesk, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.pos-badge.bespoke { background: #c084fc; color: #1e1136; }
.pos-badge.current { background: #22c55e; color: #042f1a; }
.pos-plan-card h3 {
  margin: 0 0 6px;
  font: 800 18px/1.25 Space Grotesk, sans-serif;
  color: #fff;
  white-space: normal;
}
.pos-price {
  font: 800 24px/1.1 Space Grotesk, sans-serif;
  color: var(--cyan-bright);
  margin-bottom: 2px;
  white-space: nowrap;
}
.pos-price span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  white-space: normal;
}
.pos-equiv-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  min-height: 20px;
  line-height: 1.35;
}
.pos-equiv-sub .pos-save-tag { color: #86efac; font-weight: 700; }
.pos-plan-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .2);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
  max-width: 100%;
}
.pos-plan-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  min-height: 34px;
}
.pos-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  flex: 1 1 auto;
}
.pos-features li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.35; }
.pos-features li i { margin-top: 2px; flex-shrink: 0; }
.pos-plan-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #00121d;
  background: var(--cyan-bright);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  margin-top: auto;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.pos-plan-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34, 211, 238, .3); }
.pos-plan-btn:disabled { opacity: .85; cursor: default; }
.pos-plan-btn.current { background: rgba(34, 197, 94, .25); color: #86efac; border: 1px solid rgba(34, 197, 94, .4); }
.pos-plan-btn.bespoke { background: #c084fc; color: #1e1136; }
.pos-plan-status { margin-top: 10px; text-align: center; color: var(--cyan-bright); font-size: 12px; font-weight: 600; min-height: 18px; }

/* Genesis Contextual Strip */
.pos-genesis-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
  color: var(--muted);
  width: 100%;
  box-sizing: border-box;
}
.pos-genesis-upsell .pos-link-btn {
  color: var(--cyan-bright);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  white-space: nowrap;
}
.pos-genesis-detail-box {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(192, 132, 252, .35);
  border-radius: 16px;
  background: rgba(30, 17, 54, .65);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.pos-child-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.pos-subtitle { margin: 0 0 6px; font-size: 12px; color: var(--cyan-bright); text-transform: uppercase; letter-spacing: .08em; }
.pos-child-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.pos-child-info { display: flex; align-items: center; gap: 10px; }
.pos-child-info strong { display: block; font-size: 14px; }
.pos-child-info span { font-size: 11px; color: var(--muted); }
.pos-child-select-btn { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 8px; color: #00121d; background: var(--cyan-bright); font-size: 11px; font-weight: 800; cursor: pointer; }

.pos-kicker { font: 800 10px/1.2 Space Grotesk, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-bright); }
.pos-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 800 10px/1.2 Space Grotesk, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pos-status-pill.active { border: 1px solid rgba(34, 197, 94, .4); color: #86efac; background: rgba(21, 128, 61, .2); }
.pos-status-pill.pending { border: 1px solid rgba(251, 191, 36, .4); color: #fde047; background: rgba(180, 83, 9, .2); }
.pos-status-pill.warning { border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; background: rgba(185, 28, 28, .2); }
.pos-status-pill.paused, .pos-status-pill.none { border: 1px solid rgba(148, 163, 184, .4); color: #cbd5e1; background: rgba(71, 85, 105, .2); }

.pos-meter-track { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pos-meter-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); transition: width .3s ease; }

.pos-secondary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .03); font-size: 12.5px; font-weight: 800; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.pos-secondary-btn:hover { color: #fff; border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .06); }
.pos-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--cyan-bright); font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: underline; }

.pos-compact-plan-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); font-size: 12px; color: #cbd5e1; }
.pos-compact-plan-bar strong { color: #fff; }
.pos-pill-sm { display: inline-block; padding: 2px 7px; margin-right: 6px; border-radius: 999px; font: 800 9px/1 Space Grotesk, sans-serif; text-transform: uppercase; }
.pos-pill-sm.active { color: #86efac; background: rgba(21, 128, 61, .3); }
.pos-pill-sm.pending { color: #fde047; background: rgba(180, 83, 9, .3); }

.pos-quota-box { display: flex; gap: 12px; padding: 14px; border: 1px solid rgba(251, 191, 36, .35); border-radius: 14px; background: rgba(180, 83, 9, .12); color: #cbd5e1; font-size: 12px; }
.pos-quota-box i { font-size: 18px; margin-top: 2px; }
.pos-quota-box strong { display: block; color: #fde047; font-size: 13px; margin-bottom: 4px; }
.pos-quota-box p { margin: 0 0 8px; color: #e2e8f0; line-height: 1.4; }

/* ==========================================================================
   GUEST ACCESS CONTROL & LIMIT GATE STYLING
   ========================================================================== */
.guest-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  margin: 0 16px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .28);
  background: rgba(14, 165, 233, .08);
  color: var(--cyan-bright);
  font: 700 11px/1.2 'Space Grotesk', sans-serif;
  letter-spacing: .03em;
  transition: opacity .25s ease, transform .25s ease;
}
.guest-access-badge.is-hidden {
  display: none !important;
}
.guest-access-badge.is-warning {
  border-color: rgba(251, 191, 36, .4);
  background: rgba(245, 158, 11, .12);
  color: #fde047;
}
.guest-access-badge.is-exhausted {
  border-color: rgba(239, 68, 68, .4);
  background: rgba(220, 38, 38, .12);
  color: #fca5a5;
}

.guest-limit-sheet {
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
}

.guest-gate-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  text-align: left;
}
.guest-gate-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}
.guest-gate-feature i {
  font-size: 15px;
  flex-shrink: 0;
}

.guest-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.guest-gate-actions .primary-modal-btn,
.guest-gate-actions .secondary-modal-btn,
.guest-gate-actions .tertiary-modal-btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  width: 100%;
}

.secondary-modal-btn {
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(14, 165, 233, .12);
  color: #38bdf8;
  transition: background .2s, border-color .2s, color .2s;
}
.secondary-modal-btn:hover {
  background: rgba(14, 165, 233, .22);
  border-color: var(--cyan-bright);
  color: #fff;
}

.tertiary-modal-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  transition: background .2s, border-color .2s, color .2s;
}
.tertiary-modal-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

@media (max-width: 480px) {
  .guest-access-badge {
    margin: 0 12px 8px;
    font-size: 10.5px;
    padding: 5px 12px;
  }
  .guest-limit-sheet {
    padding: 24px 18px;
    width: calc(100vw - 24px);
  }
  .guest-gate-features {
    padding: 12px 14px;
    gap: 8px;
  }
  .guest-gate-feature {
    font-size: 12px;
  }
}

/* ==========================================================================
   PUBLIC LEGAL & POLICY PAGES STYLING (RAZORPAY COMPLIANT)
   ========================================================================== */

body.policy-page {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
  background: #020712;
  color: var(--ink);
}

.policy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(2, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.policy-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.policy-header .brand-copy strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.policy-header .brand-copy small {
  display: block;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
}

.policy-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-bright);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.policy-back-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--cyan-bright);
  transform: translateY(-1px);
}

.policy-container {
  width: min(960px, calc(100% - 36px));
  margin: 40px auto 80px;
}

.policy-card {
  background: rgba(6, 16, 32, 0.75);
  border: 1px solid rgba(151, 184, 226, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--cyan-bright);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.policy-title {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.policy-title span {
  color: var(--cyan-bright);
}

.policy-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

.policy-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 36px;
}

.policy-meta-bar strong {
  color: var(--ink);
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.policy-content {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
}

.policy-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(151, 184, 226, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-content h2 i {
  color: var(--cyan);
  font-size: 18px;
}

.policy-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--cyan-bright);
  margin: 22px 0 10px;
}

.policy-content p {
  margin: 0 0 16px;
}

.policy-content ul, .policy-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content strong {
  color: #fff;
}

.policy-highlight-box {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-left: 4px solid var(--cyan-bright);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #e2e8f0;
}

.policy-highlight-box.amber {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
  border-left-color: var(--amber);
}

.policy-highlight-box.green {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.25);
  border-left-color: var(--green);
}

.policy-highlight-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.policy-table th {
  background: rgba(14, 165, 233, 0.15);
  color: var(--cyan-bright);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.policy-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(151, 184, 226, 0.08);
  color: #cbd5e1;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(151, 184, 226, 0.14);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.contact-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-card .contact-val {
  color: var(--cyan-bright);
  font-weight: 600;
  word-break: break-all;
}

/* Public Pricing Grid */
.public-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.public-plan-card {
  background: rgba(8, 22, 45, 0.85);
  border: 1px solid rgba(151, 184, 226, 0.18);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.public-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.public-plan-card.featured {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(8, 22, 45, 0.9) 100%);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.15);
}

.public-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0284c7, #22d3ee);
  color: #041324;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.public-plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.public-plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  min-height: 38px;
  line-height: 1.45;
}

.public-plan-price {
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.public-plan-price .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.public-plan-price .period {
  font-size: 13px;
  color: var(--muted);
}

.public-plan-annual-sub {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 20px;
  min-height: 18px;
}

.public-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-plan-features li {
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.public-plan-features li i {
  color: var(--cyan-bright);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.public-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
}

.public-plan-btn.primary {
  background: linear-gradient(90deg, #0284c7, #22d3ee);
  color: #041324;
}

.public-plan-btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.public-plan-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(151, 184, 226, 0.25);
  color: #fff;
}

.public-plan-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
}

/* Public Footer for All Pages */
.public-footer {
  border-top: 1px solid rgba(151, 184, 226, 0.14);
  background: rgba(2, 6, 16, 0.95);
  padding: 40px 24px 30px;
  font-size: 13px;
  color: var(--muted);
}

.public-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.public-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.public-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.public-footer-brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #fff;
}

.public-footer-brand span {
  font-size: 12px;
  color: var(--cyan);
}

.public-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.public-footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 13px;
}

.public-footer-nav a:hover {
  color: var(--cyan-bright);
}

.public-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: #64748b;
}

/* Landing Page Footer (Document Level Footer) */
.landing-footer-strip {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  align-items: center;
  gap: 6px 14px;
  padding: 5px 16px;
  background: rgba(2, 6, 16, 0.95);
  border-top: 1px solid rgba(151, 184, 226, 0.12);
  font-size: 11px;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
}

.landing-footer-strip a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-footer-strip a:hover {
  color: var(--cyan-bright);
}

.landing-footer-strip .sep {
  opacity: 0.35;
}

@media (max-width: 768px) {
  .policy-header {
    padding: 12px 18px;
  }
  .policy-card {
    padding: 24px 18px;
  }
  .public-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .public-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* BETA banner (remove this whole block, plus the #beta-banner markup in index.html, once beta ends) */
.beta-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.beta-banner-track {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  display: flex;
}
.beta-banner-item {
  display: inline-block;
  padding-right: 60px;
  animation: beta-banner-scroll 16s linear infinite;
}
@keyframes beta-banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.beta-banner-cta {
  flex: 0 0 auto;
  background: #fff;
  color: #7c3aed;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.beta-banner-cta:hover { background: #f3e8ff; }
@media (prefers-reduced-motion: reduce) {
  .beta-banner-item { animation: none; }
}

/* ==========================================================
   NATIVE APP SHELL (Capacitor Android) — scoped under body.is-native,
   set only by the existing Capacitor.isNativePlatform() guard in
   app.js. The web/desktop site never gets this class, so it's
   unaffected by anything below.
   ========================================================== */
.topbar-hamburger { display: none; place-items: center; }
.is-native .topbar-hamburger { display: grid; }
.is-native .brand { display: none; }
.is-native .topbar { grid-template-columns: auto 1fr auto; }
.is-native #beta-banner { display: none; }
.is-native .landing-footer-strip { display: none; }

.nav-drawer {
  position: fixed;
  z-index: 92;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: min(320px, 84vw);
  overflow: hidden;
  background: rgba(4, 11, 22, .98);
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.2, .9, .2, 1);
  padding-top: env(safe-area-inset-top);
}
.nav-drawer.is-open { transform: none; }
#nav-drawer-scrim { z-index: 91; }

.nav-drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-drawer-header .brand-mark { width: 36px; height: 36px; }
.nav-drawer-brand-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.nav-drawer-brand-copy strong { font: 700 15px/1 "Space Grotesk", sans-serif; }
.nav-drawer-brand-copy em { color: var(--cyan); font-style: normal; }
.nav-drawer-brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.nav-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-drawer-slot { display: flex; flex-direction: column; gap: 8px; }
.nav-drawer-slot .language-switch { display: flex; width: 100%; }
.nav-drawer-slot .lang-btn { flex: 1; min-height: 44px; font-size: 12px; }
.nav-drawer-slot .icon-btn {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 46px;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 12px;
}
.icon-btn span { display: none; }
.nav-drawer-slot .icon-btn span { display: inline; font-size: 13px; font-weight: 700; }

.nav-drawer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.nav-drawer-legal a { color: var(--muted); font-size: 12px; text-decoration: none; }
.nav-drawer-legal a:hover { color: var(--cyan-bright); }

.nav-drawer-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.nav-drawer-footer .parent-session-badge { display: flex; width: 100%; max-width: none; }
.nav-drawer-footer .auth-pill-btn { width: 100%; height: 46px; min-height: 46px; justify-content: center; padding: 0 16px; }
.nav-drawer-footer .auth-pill-btn span { display: inline; }
.nav-drawer-footer .parent-zone-btn { width: 100%; height: 46px; min-height: 46px; justify-content: center; padding: 0 16px; }
.nav-drawer-footer .parent-zone-btn span { display: inline; }

.pos-skip-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.pos-skip-btn:hover { color: var(--cyan-bright); }

.welcome-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #030a16;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
}
.welcome-gate.is-open { display: flex; }
.welcome-gate-inner { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.welcome-gate-logo { width: 88px; height: 88px; margin-bottom: 12px; border-radius: 22px; }
.welcome-gate-inner h1 { font: 800 30px/1.15 "Space Grotesk", sans-serif; color: var(--ink); margin: 0 0 4px; }
.welcome-gate-inner h1 span { color: var(--cyan); }
.welcome-gate-subtitle { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 28px; }
.welcome-gate-btn { width: 100%; min-height: 50px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.welcome-gate-btn-google { background: #fff; color: #1f1f1f; border: none; }
.welcome-gate-btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.welcome-gate-btn-text { background: none; border: none; color: var(--muted); font-weight: 600; margin-top: 18px; }
.welcome-gate-btn-text:hover { color: var(--cyan-bright); }
.welcome-gate-fineprint { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 24px; }
.welcome-gate-fineprint a { color: var(--muted); text-decoration: underline; }

.legal-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 96;
  background: #030a16;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
.legal-viewer.is-open { display: flex; }
.legal-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.legal-viewer-header span { font: 700 15px/1 "Space Grotesk", sans-serif; color: var(--ink); }
.legal-viewer-frame { flex: 1 1 auto; width: 100%; border: 0; background: #030a16; }

.is-native .chat-drawer {
  inset: 0;
  width: 100%;
  border-radius: 0;
  border: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ==============================================================================
   PROMPT LIBRARY PANEL & BROWSABLE SHEET (Phase C)
   ============================================================================== */
.prompt-library-trigger-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.explore-prompts-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(14, 27, 48, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 15px rgba(34, 211, 238, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-prompts-pill:hover {
  background: rgba(18, 38, 68, 0.85);
  border-color: var(--cyan-bright);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 22px rgba(34, 211, 238, 0.3);
  transform: translateY(-1px);
}

.explore-prompts-pill:active {
  transform: translateY(1px);
}

.prompt-library-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: rgba(5, 13, 27, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6);
  visibility: hidden;
}

.prompt-library-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.prompt-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.prompt-library-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prompt-library-title-group h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.prompt-library-title-group p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.prompt-library-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-refresh-btn:hover {
  color: var(--cyan-bright);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.prompt-category-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(151, 184, 226, 0.1);
}

.prompt-category-tabs::-webkit-scrollbar {
  display: none;
}

.prompt-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(151, 184, 226, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-cat-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(151, 184, 226, 0.3);
}

.prompt-cat-tab.is-active {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

.prompt-cards-container {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(10, 22, 42, 0.65);
  border: 1px solid rgba(151, 184, 226, 0.14);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
}

.prompt-card:hover {
  background: rgba(15, 32, 60, 0.85);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(34, 211, 238, 0.12);
}

.prompt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-quick_concepts {
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan-bright);
}

.badge-homework_hints {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
}

.badge-curious_mind {
  background: rgba(167, 139, 250, 0.15);
  color: var(--violet);
}

.badge-exam_drills {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
}

.prompt-card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

.prompt-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.prompt-card-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan-bright);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-card-ask-btn:hover {
  background: var(--cyan-bright);
  color: #030a16;
  border-color: var(--cyan-bright);
}

.prompt-library-empty,
.prompt-library-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .prompt-library-panel {
    width: 100vw;
  }
}


/* ===== Parent Reports + Feedback gate ===== */
.reports-sheet { max-width: 480px; }
.report-view { display: flex; flex-direction: column; gap: 12px; }
.report-view[hidden] { display: none !important; }
.report-fb-block { margin-top: 4px; }
.report-fb-label { display: block; font-weight: 600; margin-bottom: 6px; }
.report-rating { display: flex; gap: 6px; }
.report-star { background: none; border: none; cursor: pointer; font-size: 26px; line-height: 1; color: #c3c2b7; padding: 2px; transition: color .12s ease, transform .12s ease; }
.report-star:hover { transform: scale(1.08); }
.report-star.is-on { color: #eda100; }
.report-fb-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.report-fb-field textarea { resize: vertical; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,0.18); background: rgba(255,255,255,0.04); color: inherit; }
.report-note { min-height: 18px; font-size: 13px; color: #0EA5C4; margin: 0; }

/* Reports entry points: drawer link + home card */
.nav-drawer-report-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; margin-top: 4px; border: 1px solid rgba(14,165,196,0.35); border-radius: 12px; background: rgba(14,165,196,0.08); color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.nav-drawer-report-link:hover { background: rgba(14,165,196,0.16); }
.nav-drawer-report-link i:first-child { color: #0EA5C4; }
.home-report-card { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(14,165,196,0.4); background: linear-gradient(180deg, rgba(14,165,196,0.14), rgba(14,165,196,0.05)); color: inherit; font: inherit; cursor: pointer; text-align: left; max-width: 100%; }
.home-report-card:hover { border-color: rgba(14,165,196,0.7); transform: translateY(-1px); }
.home-report-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(14,165,196,0.2); color: #0EA5C4; font-size: 18px; flex: 0 0 auto; }
.home-report-card-copy { display: flex; flex-direction: column; line-height: 1.25; }
.home-report-card-copy strong { font-size: 15px; }
.home-report-card-copy small { opacity: 0.75; font-size: 12px; }

/* Topbar Report button: visible on desktop, hidden on mobile (drawer entry covers mobile) */
.topbar-reports-btn i { color: #0EA5C4; }
@media (max-width: 768px) { .topbar-reports-btn { display: none !important; } }

/* Parent feedback: preset positive dropdowns (no free typing) */
.report-fb-select { font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(11,11,11,0.18); background: rgba(255,255,255,0.06); color: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230EA5C4' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.report-fb-select:focus-visible { outline: 2px solid #0EA5C4; outline-offset: 1px; }
.report-fb-select option { color: #eaf6ff; background: #0f1b2b; }
.report-fb-select option[disabled] { color: rgba(234,246,255,0.55); }
.report-fb-other { width: 100%; margin-top: 6px; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(14,165,196,0.45); background: rgba(255,255,255,0.06); color: inherit; }
.report-fb-other::placeholder { color: rgba(255,255,255,0.5); }
.report-fb-other:focus-visible { outline: 2px solid #0EA5C4; outline-offset: 1px; }
.report-later-btn { display: block; width: 100%; margin-top: 10px; background: none; border: none; color: rgba(255,255,255,0.6); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.report-later-btn:hover { color: rgba(255,255,255,0.9); }
