/* style.css
   gAIa Web Simulator Styling Engine — 2026 Full-Screen Glassmorphism UI
   Full-screen goddess avatar viewport, floating side dock, luxury glass cards, and cinematic subtitles.
*/

:root {
  --deep-canopy: #061C13;
  --bioluminescence: #00FFD1;
  --botanical-moss: #2E4C38;
  --earth-root: #4A3018;
  --text-light: #E0F2E9;
  --text-dim: #8CA696;
  --error-red: #FF6B6B;
  --glass-bg: rgba(4, 20, 14, 0.78);
  --glass-border: rgba(0, 255, 209, 0.22);
  --font-primary: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html, body {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #030d09;
  color: var(--text-light);
  font-family: var(--font-primary);
}

/* Forest Background Spore Animation Layer */
.forest-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at center, #0b3021 0%, #030c08 100%);
  z-index: 0;
  overflow: hidden;
}

.spore-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bioluminescence);
  box-shadow: 0 0 15px var(--bioluminescence);
  opacity: 0.3;
  animation: floatSpore 8s ease-in-out infinite;
}

@keyframes floatSpore {
  0% { transform: translateY(100px) translateX(0) scale(0.8); opacity: 0.1; }
  50% { opacity: 0.6; }
  100% { transform: translateY(-500px) translateX(50px) scale(1.2); opacity: 0; }
}

/* FULL-SCREEN GODDESS AVATAR VIEWPORT (100dvw x 100dvh) */
.avatar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  background-color: #03100b;
  overflow: hidden;
  z-index: 1;
}

#avatar-canvas, #avatar-3d-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  object-fit: cover !important;
  display: none !important;
  z-index: 0 !important;
}

.gaia-bg-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  object-fit: cover !important;
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}

/* gAIa ACTION ANIMATION & MYSTICAL SUMMONING OVERLAY */
.gaia-summoning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gaia-summoning-overlay.active {
  opacity: 1;
}

.gaia-eye-flash-beam {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 280px;
  height: 4px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, #ffffff 0%, #00ffd1 50%, rgba(0, 255, 209, 0) 80%);
  box-shadow: 0 0 35px 8px #00ffd1, 0 0 80px 20px rgba(52, 211, 153, 0.7);
  border-radius: 50%;
  animation: gaiaEyeFlashAnim 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gaia-eye-flash-beam::before,
.gaia-eye-flash-beam::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 10%, #00ffd1 60%, transparent 80%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px #00ffd1;
}
.gaia-eye-flash-beam::before { left: 42%; }
.gaia-eye-flash-beam::after { left: 58%; }

@keyframes gaiaEyeFlashAnim {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.1) scaleY(0.5); filter: brightness(1); }
  25% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.4) scaleY(1.8); filter: brightness(3); }
  55% { opacity: 0.85; transform: translate(-50%, -50%) scaleX(1.1) scaleY(1); filter: brightness(1.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.8) scaleY(0.4); filter: brightness(1); }
}

.gaia-tarot-sigil-particle {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 209, 0.45) 0%, transparent 70%);
  transform-origin: center center;
  animation: gaiaCardSummonAnim 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gaia-tarot-sigil-particle::after {
  content: '✦';
  color: #fbbf24;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px #00ffd1);
}

@keyframes gaiaCardSummonAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 20px) scale(0.3) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.05) rotate(var(--rot));
  }
  75% {
    opacity: 0.95;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 1.1), calc(var(--ty) * 1.1 - 10px)) scale(1) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 1.2), calc(var(--ty) * 1.2 - 30px)) scale(0.7) rotate(calc(var(--rot) * 1.2));
  }
}


.top-controls-bar {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* TOP AUTH / GOOGLE SIGN-IN BUTTON */
.top-auth-btn {
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 15px rgba(52, 211, 153, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.top-auth-btn:hover {
  background: rgba(52, 211, 153, 0.22);
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.45);
  color: #ffffff;
}

.top-auth-btn.logged-in {
  border-color: rgba(167, 243, 208, 0.7);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.75) 0%, rgba(4, 40, 28, 0.85) 100%);
  color: #ecfdf5;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.25);
}

.top-auth-btn .auth-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.top-auth-btn .top-auth-icon {
  font-size: 14px;
}

.avatar-mode-btn {
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid var(--bioluminescence);
  color: var(--bioluminescence);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 15px rgba(0, 255, 209, 0.1);
  white-space: nowrap;
}

.avatar-mode-btn:hover {
  background: rgba(0, 255, 209, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0, 255, 209, 0.45);
}

.avatar-fps {
  position: fixed;
  top: 20px;
  left: 24px;
  background-color: rgba(4, 20, 14, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--bioluminescence);
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 105;
  pointer-events: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* FLOATING VERTICAL SIDE DOCK BESIDE gAIa */
.floating-side-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1080 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(3, 16, 11, 0.65);
  padding: 8px 6px;
  border-radius: 30px;
  border: 1px solid rgba(0, 255, 209, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  max-height: 88vh;
  overflow-y: auto;
}

.floating-side-dock::-webkit-scrollbar {
  display: none;
}

.dock-mobile-toggle, .dock-btn-label {
  display: none;
}

.mobile-text {
  display: none;
}
.desktop-text {
  display: inline;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 24, 16, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--bioluminescence);
  font-size: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 951 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.dock-btn * {
  pointer-events: none;
}

.dock-btn-tooltip {
  pointer-events: none !important;
}

.dock-btn:hover, .dock-btn.active {
  background: rgba(0, 255, 209, 0.25);
  border-color: var(--bioluminescence);
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(0, 255, 209, 0.45);
}

.dock-btn-tooltip {
  position: absolute;
  right: 64px;
  background: rgba(4, 20, 14, 0.95);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 11px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.dock-btn:hover .dock-btn-tooltip {
  opacity: 1;
}

/* FLOATING GLASS FEATURE CONTENT DRAWER (Beside gAIa on Left) */
.floating-content-drawer {
  position: fixed;
  left: 28px;
  top: 72px;
  bottom: 32px;
  width: calc(100vw - 110px);
  max-width: 600px;
  z-index: 400;
  overflow-y: auto;
  pointer-events: none; /* Allows clicks to pass through when closed or empty */
  border-radius: 28px;
  padding-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-content-drawer > * {
  pointer-events: auto; /* Active cards remain completely interactive */
}

@media (min-width: 1180px) {
  .floating-content-drawer {
    max-width: 660px;
    left: 36px;
  }
}

@media (min-width: 1440px) {
  .floating-content-drawer {
    max-width: 720px;
    left: 48px;
  }
}

.floating-content-drawer::-webkit-scrollbar {
  width: 5px;
}
.floating-content-drawer::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 209, 0.3);
  border-radius: 4px;
}

.voice-portal-card:has(#portal-unconnected-state.hidden):has(#portal-connected-state.hidden) {
  display: none !important;
}

.voice-portal-card.hidden {
  display: none !important;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header-row h3 {
  margin: 0;
  font-size: 1.1rem;
}

.module-close-btn {
  background: rgba(4, 28, 20, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.module-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fee2e2;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Glassmorphism Panel styles */
.glass-card {
  background: linear-gradient(150deg, rgba(6, 28, 20, 0.88) 0%, rgba(2, 14, 10, 0.94) 100%);
  border: 1px solid rgba(0, 255, 209, 0.3);
  border-radius: 26px;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 0 24px rgba(0, 255, 209, 0.08);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FLOATING CINEMATIC SUBTITLE BAR (Hidden per user preference) */
.gaia-subtitle {
  display: none !important;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 320px;
  max-width: 620px;
  z-index: 110;
  text-align: center;
  padding: 12px 24px;
  background: rgba(4, 24, 16, 0.88);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gaia-subtitle p {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #ecfdf5;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.speaking-dot {
  display: inline-block;
  color: #00ffd1;
  font-size: 12px;
  margin-right: 8px;
  animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Guided Meditation Breathing Ring Overlay */
.breathing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 20, 14, 0.85);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.breathing-ring {
  width: 120px;
  height: 120px;
  border: 4px solid var(--bioluminescence);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--bioluminescence), inset 0 0 30px var(--bioluminescence);
  animation: breathingCycle 12s ease-in-out infinite;
}

.breathing-text {
  color: var(--bioluminescence);
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes breathingCycle {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  33% { transform: scale(1.7); opacity: 1; }
  66% { transform: scale(1.7); opacity: 0.9; }
}

/* Disclaimer Consent Modal Overlay */
.overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 13, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10500 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.consent-card {
  max-width: 440px;
  text-align: center;
}

.consent-card h2 {
  color: var(--bioluminescence);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.consent-card .accent-line {
  height: 2px;
  width: 60px;
  background: var(--bioluminescence);
  margin: 0 auto 16px auto;
  border-radius: 2px;
}

.consent-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 24px;
}

.accept-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 255, 209, 0.3);
  transition: all 0.25s ease;
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 255, 209, 0.5);
}

/* AUTH & ACCOUNT MODALS */
.auth-modal-card,
.account-modal-card {
  position: relative;
  max-width: 440px;
  width: 90%;
  background: rgba(4, 20, 14, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(52, 211, 153, 0.15);
  border-radius: 24px;
  padding: 32px 28px;
  animation: modalFadeScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeScale {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a7f3d0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: scale(1.1);
}

.auth-google-btn {
  background: #ffffff !important;
  color: #1f2937 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-family: var(--font-primary) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
}

.auth-google-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25) !important;
}

.auth-guest-btn {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
  padding: 11px;
  font-size: 0.88rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.auth-guest-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: #34d399;
  color: #ffffff;
}

.account-avatar-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: rgba(6, 78, 59, 0.5);
  border: 2px solid #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.account-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-stats-box {
  background: rgba(2, 14, 10, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  text-align: left;
}

.account-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-stat-row:last-child {
  border-bottom: none;
}

.account-stat-label {
  color: #94a3b8;
  font-size: 0.85rem;
}

.account-stat-value {
  font-size: 0.85rem;
  font-weight: 500;
}

.account-signout-btn {
  flex: 1;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.account-signout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* Feature Panels & Forms */
.panel h3 {
  color: var(--bioluminescence);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.panel .description {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.portal-title {
  color: var(--bioluminescence);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Language Flag Grid */
.lang-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
  padding: 4px;
}

.lang-flag-btn {
  width: 40px;
  height: 34px;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.lang-flag-btn:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  transform: scale(1.12);
}

.lang-flag-btn.selected {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4), inset 0 0 8px rgba(52, 211, 153, 0.1);
  transform: scale(1.1);
}

.camera-viewport-box {
  width: 100%;
  height: 220px;
  border: 1px dashed var(--bioluminescence);
  border-radius: 14px;
  background-color: rgba(0, 255, 209, 0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#camera-stream, #explore-camera-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#camera-overlay-canvas, #explore-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wireframe-anchor {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.anchor-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--bioluminescence);
  background: rgba(6, 28, 19, 0.85);
  padding: 3px 8px;
  border-radius: 6px;
}

.camera-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* WebSocket Connection Buttons */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--bioluminescence);
  background-color: rgba(0, 255, 209, 0.06);
  color: var(--bioluminescence);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn:hover {
  background-color: var(--bioluminescence);
  color: var(--deep-canopy);
  box-shadow: 0 0 16px rgba(0, 255, 209, 0.4);
}

.btn.active-btn, .activate-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 255, 209, 0.25);
}

.btn.disconnect-btn {
  background: rgba(225, 29, 72, 0.15);
  border-color: #f43f5e;
  color: #fb7185;
}

.btn.disconnect-btn:hover {
  background: #f43f5e;
  color: #ffffff;
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px !important;
}

#chat-text-input {
  flex: 1;
  background: rgba(3, 16, 11, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 13px;
  outline: none;
}

.send-btn {
  background: rgba(0, 255, 209, 0.15);
  border: 1px solid var(--bioluminescence);
  color: var(--bioluminescence);
  border-radius: 20px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

.send-btn:hover {
  background: var(--bioluminescence);
  color: var(--deep-canopy);
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .input-grid-2 { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  color: rgba(52, 211, 153, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mystic-input, .mystic-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: #ecfdf5;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.mystic-input:focus, .mystic-select:focus {
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

.results-box {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  text-align: left;
}

.results-box h4 {
  margin: 0 0 8px 0;
  color: #34d399;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

.numero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .numero-grid { grid-template-columns: 1fr; }
}

.numero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  text-align: center;
}

.numero-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #00ffd1;
  text-shadow: 0 0 10px rgba(0, 255, 209, 0.4);
}

.numero-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ecfdf5;
}

.numero-desc {
  font-size: 0.7rem;
  color: rgba(236, 253, 245, 0.7);
}

/* Collapsible Developer Diagnostics Drawer (Clean Modal Style) */
.developer-panel {
  margin-top: 14px;
}

.developer-panel.hidden,
.developer-panel.collapsed {
  display: none !important;
}

.dev-card {
  margin-top: 10px;
}

.log-terminal {
  max-height: 140px;
  overflow-y: auto;
  font-size: 10px;
  color: #a7f3d0;
  text-align: left;
}

.watermark {
  display: none !important;
}

.avatar-fps {
  display: none !important;
}

/* Live Tarot Card Styles */
.tarot-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tarot-cards-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 6px 0 10px 0;
  perspective: 1200px;
  flex-wrap: wrap;
  position: relative;
}

.tarot-results-banner {
  max-width: min(92vw, 480px);
  max-height: 88px;
  overflow-y: auto;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(4, 22, 15, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  line-height: 1.42;
  color: #ecfdf5;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  margin-top: 8px;
}

.tarot-card-wrapper {
  width: 140px;
  height: 222px;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  position: relative;
  margin: 6px 4px 28px 4px;
  transition: transform 0.3s ease;
}

.tarot-card-wrapper:hover {
  transform: translateY(-6px) scale(1.03);
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 14px;
}

.tarot-card-front, .tarot-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.tarot-card-back {
  background: radial-gradient(circle at center, #0a4434 0%, #03150d 100%);
  border: 2px solid #00ffd1;
  z-index: 2;
  opacity: 1;
  transform: scaleX(1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #00ffd1;
  font-size: 32px;
}

.tarot-card-back::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(0, 255, 209, 0.4);
  border-radius: 10px;
  pointer-events: none;
}

.tarot-card-back::after {
  content: '✨ TAROT ✨';
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 8px;
  font-family: var(--font-mono);
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.tarot-card-front {
  background: #061812;
  border: 2px solid #ffd700;
  z-index: 1;
  opacity: 0;
  transform: scaleX(0.08);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarot-card-wrapper.flipped .tarot-card-back {
  opacity: 0;
  transform: scaleX(0.08);
  pointer-events: none;
  z-index: 1;
}

.tarot-card-wrapper.flipped .tarot-card-front {
  opacity: 1;
  transform: scaleX(1);
  pointer-events: auto;
  z-index: 3;
}

.tarot-card-art-box {
  width: 100%;
  height: 165px;
}

.tarot-card-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

#tab-tarot {
  position: fixed !important;
  left: 50% !important;
  top: calc(74px + env(safe-area-inset-top, 0px)) !important;
  transform: translateX(-50%) !important;
  z-index: 955 !important;
  width: auto !important;
  max-width: 95vw !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: none;
}

#tab-tarot > * {
  pointer-events: auto;
}

.tarot-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tarot-floating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  max-width: min(96vw, 680px);
  background: rgba(4, 24, 16, 0.88);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.tarot-pills-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tarot-pills-scroller::-webkit-scrollbar {
  display: none;
}

.tarot-pill-btn {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.tarot-pill-btn:hover, .tarot-pill-btn.active {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.tarot-pill-btn.active::after {
  content: "";
  position: absolute;
  inset: auto 10px 2px 10px;
  border-block-end: 2px solid #34d399;
}

.tarot-close-btn {
  flex: 0 0 auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.tarot-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

.tarot-card-title {
  font-size: 11px;
  font-family: var(--font-primary);
  font-weight: 700;
  color: #ffd700;
  padding: 6px 4px;
  text-align: center;
  background: rgba(4, 20, 14, 0.95);
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 0.5px;
}

/* Magical Sparkle Animations */
.tarot-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  animation: floatSparkle 1.4s forwards ease-out;
  z-index: 100;
}

@keyframes floatSparkle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.5), calc(var(--dy) * 1.5 - 20px)) scale(0.2) rotate(360deg);
  }
}

.soundscape-btn {
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid var(--bioluminescence);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.soundscape-btn:hover {
  background: rgba(0, 255, 209, 0.2);
  color: #00ffd1;
  transform: translateY(-2px);
}

.soundscape-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 95, 70, 0.6));
  border-color: #00ffd1;
  color: #00ffd1;
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.4);
}

/* Chakra Panel Styles */
.chakra-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chakra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chakra-item:hover {
  background: rgba(0, 255, 209, 0.12);
  transform: translateX(4px);
}

.chakra-icon {
  font-size: 22px;
}

.chakra-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chakra-name {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-primary);
}

.chakra-desc {
  font-size: 0.74rem;
  color: rgba(236, 253, 245, 0.7);
}

/* LUXURY FLOATING CALL PILL (Always sleek, non-stretching, dynamic bottom island) */
.floating-call-bar {
  position: fixed !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 11500 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  width: max-content !important;
  max-width: min(94vw, 720px) !important;
  padding: 6px 14px 6px 18px !important;
  background: rgba(4, 20, 15, 0.92) !important;
  border: 1px solid rgba(0, 255, 209, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 255, 209, 0.25) !important;
  border-radius: 40px !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  pointer-events: auto !important;
  cursor: default;
  box-sizing: border-box !important;
  animation: floatingCallBarPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes floatingCallBarPop {
  0% { transform: translateX(-50%) translateY(20px) scale(0.92); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.call-bar-status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #00ffd1;
  animation: pulseEmeraldDot 1.4s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes pulseEmeraldDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; filter: brightness(1.3); }
}

.call-status-text {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #ecfdf5 !important;
  letter-spacing: 0.3px;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.call-quota-timer {
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #34d399 !important;
  background: rgba(6, 78, 59, 0.35) !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  letter-spacing: 0.5px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.call-wave-canvas {
  border-radius: 4px;
  margin: 0 4px;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(0, 255, 209, 0.5));
  flex-shrink: 1;
}

.call-hangup-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(185, 28, 28, 0.95) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(254, 202, 202, 0.4) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4) !important;
  touch-action: manipulation !important;
  user-select: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.call-hangup-btn:hover {
  transform: scale(1.04) !important;
  filter: brightness(1.15) !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6) !important;
}

.call-hangup-btn:active {
  transform: scale(0.96) !important;
}


.call-hangup-btn:active {
  transform: scale(0.94) !important;
}

.mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MOBILE & RESPONSIVE POLISH SYSTEM (Max-width 768px & 480px)
   ========================================================================== */

@media (max-width: 768px) {
  /* 0. Responsive Text Toggles */
  .mobile-text {
    display: inline !important;
  }
  .desktop-text {
    display: none !important;
  }

  /* Prevent iOS Safari automatic zoom on form input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Apple HIG 44x44px minimum interactive touch targets on mobile */
  .module-close-btn,
  .auth-modal-close-btn,
  .tarot-close-btn,
  #dock-mobile-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Clean 2-column mobile satellite launchers */
  .nav-satellite-launchers {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* 1. Top Controls Bar: 100% visible, zero overspill across screen */
  .top-controls-bar {
    position: fixed !important;
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    left: 6px !important;
    right: 6px !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    z-index: 700 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .top-auth-btn {
    padding: 5px 8px !important;
    font-size: 10px !important;
    height: 30px !important;
    border-radius: 15px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }

  .prana-quota-badge {
    padding: 5px 8px !important;
    font-size: 10px !important;
    height: 30px !important;
    border-radius: 15px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }

  .soundscape-btn, .avatar-mode-btn {
    padding: 5px 8px !important;
    font-size: 10px !important;
    height: 30px !important;
    border-radius: 15px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Hide secondary atmosphere/guide buttons from top row on mobile — they live cleanly inside #mobile-sanctuary-popover */
  .top-controls-bar #soundscape-toggle,
  .top-controls-bar #avatar-mode-toggle,
  .top-controls-bar #btn-open-tutorial,
  .top-controls-bar .top-desktop-only-btn,
  .top-controls-bar #btn-report-problem,
  .voice-selector-container {
    display: none !important;
  }

  .mobile-sanctuary-menu-btn {
    padding: 5px 9px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    height: 32px !important;
    border-radius: 16px !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    background: rgba(6, 28, 19, 0.88) !important;
    border: 1px solid rgba(52, 211, 153, 0.38) !important;
    color: #d1fae5 !important;
    cursor: pointer !important;
  }

  /* 2. SINGLE-ROW BOTTOM NAVIGATION BAR ON MOBILE (< 10% viewport height; expands to 15-module grid on tap) */
  .floating-side-dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 5px 4px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
    background: rgba(2, 14, 9, 0.96) !important;
    border-top: 1px solid rgba(0, 255, 209, 0.32) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 255, 209, 0.1) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    z-index: 1000 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transition: max-height 0.25s ease !important;
  }

  .dock-mobile-toggle {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 32px !important;
    padding: 2px 0 4px 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    touch-action: manipulation !important;
  }

  /* When collapsed on mobile: hide the banner row completely so there is ONLY ONE compact bottom dock row! */
  .floating-side-dock.collapsed .dock-mobile-toggle {
    display: none !important;
  }

  .dock-toggle-line {
    width: 28px;
    height: 3px;
    background: rgba(0, 255, 209, 0.45);
    border-radius: 2px;
  }

  .dock-toggle-text {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }

  .dock-toggle-arrow {
    font-size: 9px !important;
    color: #00ffd1 !important;
  }

  .floating-side-dock.collapsed {
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)) 8px !important;
  }

  .floating-side-dock.collapsed .dock-btn {
    display: none !important;
  }

  /* When collapsed, show 4 core sanctuary shortcuts + the 5th "Moduly" tile (zero double bottom bar!) */
  .floating-side-dock.collapsed #dock-btn-portal,
  .floating-side-dock.collapsed #dock-btn-compass,
  .floating-side-dock.collapsed #dock-btn-habits,
  .floating-side-dock.collapsed #dock-btn-drum,
  .floating-side-dock.collapsed #dock-btn-more {
    display: flex !important;
  }

  /* When expanded to show all 15 modules, hide the redundant "Moduly" trigger tile */
  .floating-side-dock:not(.collapsed) #dock-btn-more {
    display: none !important;
  }

  .dock-btn {
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 3px 1px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
    background: rgba(4, 28, 18, 0.75) !important;
    border: 1px solid rgba(0, 255, 209, 0.18) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  .dock-btn-icon {
    font-size: 18px !important;
    line-height: 1.1 !important;
    pointer-events: none !important;
  }

  .dock-btn-label {
    display: block !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    color: #a7f3d0 !important;
    margin-top: 1px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    pointer-events: none !important;
  }

  .dock-btn.active, .dock-btn:hover {
    background: rgba(0, 255, 209, 0.22) !important;
    border-color: #00ffd1 !important;
    transform: scale(1.04) !important;
    box-shadow: 0 0 10px rgba(0, 255, 209, 0.45) !important;
  }

  .dock-btn.active .dock-btn-label {
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(0, 255, 209, 0.6) !important;
  }

  .dock-btn-tooltip {
    display: none !important;
  }

  /* 3. FLOATING CONTENT DRAWER (Sits cleanly above 15-module dock with ample scrolling) */
  .floating-content-drawer {
    left: 6px !important;
    right: 6px !important;
    top: calc(54px + env(safe-area-inset-top, 0px)) !important;
    bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 226px) !important;
    padding: 4px 4px 30px 4px !important;
    border-radius: 18px !important;
    z-index: 450 !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* When dock is collapsed, content drawer expands down to give maximum space above the single-row 58px dock */
  .floating-side-dock.collapsed ~ .floating-content-drawer,
  body:has(.floating-side-dock.collapsed) .floating-content-drawer {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 118px) !important;
  }

  .floating-content-drawer > * {
    pointer-events: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
  }

  .glass-card {
    padding: 12px 10px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. LUXURY LIVE VOICE CALL BAR (Anchored elegantly above 15-module bottom dock) */
  .floating-call-bar {
    position: fixed !important;
    bottom: calc(182px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 3px 6px 3px 10px !important;
    gap: 5px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    max-width: calc(100vw - 16px) !important;
    width: auto !important;
    border-radius: 19px !important;
    background: rgba(3, 20, 14, 0.96) !important;
    border: 1px solid rgba(0, 255, 209, 0.45) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 255, 209, 0.3) !important;
    z-index: 11500 !important;
    pointer-events: auto !important;
  }

  .floating-side-dock.collapsed ~ #floating-call-bar,
  body:has(.floating-side-dock.collapsed) #floating-call-bar {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* When ANY modal or interactive drawer/Tarot is open on mobile, dock #floating-call-bar as a slim top status strip so it NEVER blocks modal controls! */
  body:has(#shamanic-drum-modal:not(.hidden), #breathwork-modal:not(.hidden), #abundance-modal:not(.hidden), #herbarium-gallery-modal:not(.hidden), #in-app-frame-modal:not(.hidden), #account-modal:not(.hidden), #tab-tarot:not(.hidden), .floating-content-drawer > .tab-content:not(.hidden)) #floating-call-bar {
    top: calc(44px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 2px 5px 2px 9px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65) !important;
  }

  body:has(#floating-call-bar:not(.hidden)):has(#tab-tarot:not(.hidden)) #tab-tarot {
    top: calc(78px + env(safe-area-inset-top, 0px)) !important;
  }

  body:has(#floating-call-bar:not(.hidden)):has(.floating-content-drawer > .tab-content:not(.hidden)) .floating-content-drawer {
    top: calc(80px + env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - 146px) !important;
  }

  body:has(#floating-call-bar:not(.hidden)) .shamanic-drum-modal-overlay,
  body:has(#floating-call-bar:not(.hidden)) .breathwork-modal-overlay {
    padding-top: calc(78px + env(safe-area-inset-top, 0px)) !important;
    align-items: flex-start !important;
  }

  .call-bar-status-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .call-status-text {
    font-size: 9.5px !important;
    max-width: 95px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }

  .call-quota-timer {
    font-size: 9.5px !important;
    padding: 2px 4px !important;
    flex-shrink: 0 !important;
  }

  .call-wave-canvas {
    width: 38px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }

  .call-hangup-btn {
    padding: 4px 9px !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    height: 26px !important;
    border-radius: 13px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  /* 5. COMPASS & SACRED PLACES NAVIGATION REFINEMENTS */
  .compass-top-header {
    position: relative !important;
    padding-right: 38px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 8px !important;
    margin-bottom: 6px !important;
  }

  .compass-top-header .panel-title-with-gps {
    display: contents !important;
  }

  .compass-top-header .panel-title-with-gps h3 {
    width: 100% !important;
    font-size: 0.95rem !important;
    line-height: 1.22 !important;
    margin: 0 0 2px 0 !important;
  }

  .compass-top-header .compass-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .compass-top-header .module-close-btn {
    position: absolute !important;
    top: -2px !important;
    right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .compass-subtabs-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 0 0 6px 0 !important;
  }

  .compass-subtab-btn {
    width: 100% !important;
    padding: 6px 2px !important;
    font-size: 0.72rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  .sacred-map-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 6px 0 !important;
    border-radius: 14px !important;
  }

  .sacred-map-canvas {
    height: 165px !important;
    min-height: 165px !important;
  }

  .map-overlay-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 5px 8px !important;
    background: rgba(3, 20, 14, 0.96) !important;
    border-bottom: 1px solid rgba(52, 211, 153, 0.25) !important;
    pointer-events: auto !important;
  }

  .map-mode-tabs {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 3px !important;
    padding: 2px 3px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .map-mode-btn {
    flex: 1 1 0 !important;
    text-align: center !important;
    font-size: 0.68rem !important;
    padding: 4px 6px !important;
  }

  .map-overlay-badge {
    display: none !important;
  }

  .sacred-places-choice-section {
    padding: 8px !important;
    margin-bottom: 6px !important;
  }

  .sacred-choice-header h4 {
    font-size: 0.78rem !important;
    margin: 0 !important;
  }

  .sacred-choice-sub {
    display: none !important;
  }

  .sacred-choice-cards-row {
    display: flex !important;
    gap: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  .sacred-place-choice-card {
    flex: 0 0 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    padding: 7px 9px !important;
    border-radius: 10px !important;
  }

  .sacred-place-choice-card .choice-title {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sacred-place-choice-card .choice-submetrics {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    margin-top: 3px !important;
  }

  .sacred-place-choice-card.selected .choice-meta {
    padding-right: 55px !important;
  }

  .sacred-place-choice-card .choice-active-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
  }

  .sacred-place-name {
    font-size: 0.76rem !important;
  }

  .sacred-place-dist {
    font-size: 0.66rem !important;
  }

  /* 6. DRIVING MODE & TRAVEL MODE PILLS (Clean full-width selector) */
  .travel-mode-selector-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding-bottom: 5px !important;
  }

  .travel-mode-pills {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 2px !important;
  }

  .travel-mode-pill {
    flex: 1 1 0 !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .travel-speed-badge {
    font-size: 0.66rem !important;
    align-self: flex-start !important;
    padding-left: 4px !important;
  }

  .desktop-only-inline {
    display: none !important;
  }

  .nav-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .nav-target-indicator {
    gap: 6px !important;
  }

  .nav-target-title {
    font-size: 0.8rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  .nav-target-subtitle {
    font-size: 0.66rem !important;
  }

  .nav-voice-controls-group {
    width: 100% !important;
    display: flex !important;
    gap: 4px !important;
  }

  .nav-voice-btn {
    flex: 1 1 0 !important;
    font-size: 0.7rem !important;
    padding: 6px 8px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 7. WAZE MANEUVER HUD & TELEMETRY STRIP (Clean 4-column compact grid) */
  .nav-maneuver-container {
    padding: 6px 8px !important;
    gap: 5px !important;
  }

  .nav-maneuver-main {
    gap: 6px !important;
  }

  .nav-maneuver-icon-wrap {
    width: 32px !important;
    height: 32px !important;
  }

  .nav-maneuver-headline {
    font-size: 0.78rem !important;
  }

  .nav-maneuver-sub {
    font-size: 0.66rem !important;
  }

  .nav-maneuver-metric {
    font-size: 0.82rem !important;
  }

  .waze-telemetry-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 4px 4px !important;
  }

  .waze-tel-label {
    font-size: 0.54rem !important;
  }

  .waze-tel-val {
    font-size: 0.7rem !important;
  }

  .waze-tel-voice-btn {
    font-size: 0.58rem !important;
    padding: 2px 3px !important;
  }

  /* 8. HABITS MODULE REFINEMENTS */
  .habits-subnav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    width: 100% !important;
    padding: 0 0 6px 0 !important;
  }

  .habits-subnav-btn {
    width: 100% !important;
    padding: 6px 2px !important;
    font-size: 0.68rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
  }

  .habits-overview-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    margin: 6px 0 !important;
  }

  .habit-stat-card {
    padding: 5px 3px !important;
  }

  .habit-stat-val {
    font-size: 0.84rem !important;
  }

  .habit-stat-label {
    font-size: 0.6rem !important;
  }

  .habit-circadian-filter {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    margin: 6px 0 !important;
  }

  .habit-cat-pill {
    width: 100% !important;
    padding: 5px 2px !important;
    font-size: 0.66rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* 9. Clean Mobile Tarot Stage (Scrollable pill bar + generous readable summary + 1/3/10-card safe scroll) */
  #tab-tarot {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    top: calc(46px + env(safe-area-inset-top, 0px)) !important;
    transform: translateX(-50%) !important;
  }

  .tarot-floating-bar {
    padding: 4px 6px 4px 10px !important;
    gap: 6px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    justify-content: space-between !important;
  }

  .tarot-pill-btn {
    font-size: 0.74rem !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
  }

  .tarot-close-btn {
    min-width: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .tarot-cards-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: safe center !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 96vw !important;
    padding: 2px 8px !important;
    margin: 2px 0 8px 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: inline proximity !important;
  }

  /* Fallback for engines where safe center isn't active on 10-card Celtic Cross */
  .tarot-cards-grid:has(#tarot-card-4) {
    justify-content: flex-start !important;
  }

  .tarot-results-banner {
    max-width: 94vw !important;
    max-height: min(34vh, 235px) !important;
    max-height: min(34dvh, 235px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 9px 12px !important;
    font-size: 11.5px !important;
    line-height: 1.44 !important;
    margin-top: 2px !important;
    text-align: left !important;
  }

  .tarot-card-wrapper {
    width: 96px !important;
    height: 152px !important;
    flex-shrink: 0 !important;
    margin: 2px 2px 26px 2px !important;
  }

  .tarot-card-art-box,
  .tarot-card-img {
    height: 108px !important;
  }

  .tarot-card-title {
    font-size: 9px !important;
    padding: 2px 3px !important;
    line-height: 1.12 !important;
  }

  .tarot-card-back span {
    font-size: 22px !important;
  }

  .tarot-card-back div {
    font-size: 7.5px !important;
  }

  .subtitle-container {
    bottom: calc(182px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 92vw !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 480px) {
  .call-status-text {
    max-width: 80px !important;
    font-size: 8.5px !important;
  }

  .tarot-card-wrapper {
    width: 90px !important;
    height: 146px !important;
  }

  .tarot-card-art-box,
  .tarot-card-img {
    height: 102px !important;
  }
}

/* ==========================================================================
   🧭 COMPASS SANCTUARY & ENERGY-MAPPING ENGINE STYLES (2026)
   ========================================================================== */
.compass-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compass-top-header {
  position: relative;
  padding-right: 42px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.compass-top-header .module-close-btn {
  position: absolute;
  top: 0;
  right: 0;
}
.panel-title-with-gps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-title-with-gps h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #ecfdf5;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.gps-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  font-family: 'Share Tech Mono', monospace;
  transition: all 0.3s ease;
}
.gps-live-badge.searching {
  background: rgba(180, 83, 9, 0.3);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.gps-live-badge.searching .gps-status-dot {
  color: #fbbf24;
  animation: pulse-badge 1.2s infinite ease-in-out;
}
.gps-live-badge.live-active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #00ffd1;
  color: #6ee7b7;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}
.gps-live-badge.live-active .gps-status-dot {
  color: #00ffd1;
  animation: pulse-badge 1.8s infinite ease-in-out;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.compass-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-sm-glass {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-sm-glass:hover {
  background: rgba(0, 255, 209, 0.25);
  border-color: #00ffd1;
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-sm-glass.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(0, 255, 209, 0.3));
  border-color: #00ffd1;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

/* User Location Collapsible Drawer */
.user-location-collapsible {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  max-height: 400px;
  opacity: 1;
  overflow: hidden;
}
.user-location-collapsible.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
}

/* Compass Segmented Subtabs Navigation */
.compass-subtabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 20, 14, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px;
  border-radius: 14px;
  margin: 4px 0 10px 0;
}
.compass-subtab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  white-space: nowrap;
}
.compass-subtab-btn:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.15);
}
.compass-subtab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(0, 255, 209, 0.25));
  border: 1px solid rgba(0, 255, 209, 0.45);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.25);
}
.compass-subtab-pane {
  display: block;
}
.compass-subtab-pane.hidden {
  display: none !important;
}

/* Pulsing Real-Time User GPS Leaflet Marker */
.live-user-gps-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.user-gps-dot {
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9), 0 0 20px rgba(0, 255, 209, 0.6);
  z-index: 2;
  position: relative;
}
.user-gps-pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  animation: user-gps-radar 2s infinite ease-out;
  z-index: 1;
}
@keyframes user-gps-radar {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.holistic-mode-badge {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
}

/* Holistic Category Pills */
.holistic-categories-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 8px 2px 12px 2px !important;
  scrollbar-width: none;
  width: 100%;
}
.holistic-categories-scroll::-webkit-scrollbar {
  display: none;
}

.holistic-cat-pill {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 28, 19, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 16px;
  white-space: nowrap !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', sans-serif;
}
.holistic-cat-pill:hover {
  border-color: #00ffd1;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}
.holistic-cat-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(0, 255, 209, 0.3));
  border-color: #00ffd1;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.35);
}

/* Holistic Specific Practice Chips */
.holistic-practices-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 6px 0 14px 0 !important;
}

.holistic-practice-chip {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  background: rgba(2, 22, 15, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #a7f3d0;
  white-space: nowrap !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.holistic-practice-chip:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #00ffd1;
  color: #ffffff;
}
.holistic-practice-chip.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(0, 255, 209, 0.2));
  border-color: #00ffd1;
  color: #ffffff;
}

/* Location Customizer & Quick Region Switcher */
.user-location-bar {
  background: rgba(3, 20, 14, 0.88);
  border: 1px solid rgba(0, 255, 209, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.user-location-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-loc-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px rgba(0, 255, 209, 0.6));
}

.user-loc-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.user-loc-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-loc-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.btn-location-gps {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(0, 255, 209, 0.5);
  color: #ecfdf5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-location-gps:hover {
  background: rgba(0, 255, 209, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 209, 0.4);
  transform: translateY(-1px);
}

.user-location-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.loc-presets-label {
  font-size: 0.72rem;
  color: #64748b;
  margin-right: 4px;
}

.loc-preset-pill {
  background: rgba(2, 26, 17, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #94a3b8;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.loc-preset-pill:hover {
  border-color: #00ffd1;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.2);
}

.loc-preset-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(0, 255, 209, 0.25));
  border-color: #00ffd1;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

.user-location-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-search-input {
  flex: 1;
  background: rgba(0, 10, 6, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s ease;
}

.location-search-input:focus {
  border-color: #00ffd1;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.25);
}

.btn-search-location {
  background: #059669;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-search-location:hover {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Sacred Interactive Map (Leaflet) */
.sacred-map-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 255, 209, 0.15);
  background: #02110b;
  margin: 10px 0;
}

.sacred-map-canvas {
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  background: #02110b;
  display: block;
}

.map-overlay-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(3, 20, 14, 0.96);
  border-bottom: 1px solid rgba(52, 211, 153, 0.28);
  pointer-events: auto;
}

.map-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 20, 14, 0.92);
  border: 1px solid rgba(0, 255, 209, 0.35);
  padding: 3px 4px;
  border-radius: 12px;
  backdrop-filter: blur(14px);
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.map-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.map-mode-btn:hover {
  color: #00ffd1;
  background: rgba(0, 255, 209, 0.1);
}

.map-mode-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 78, 59, 0.7));
  color: #00ffd1;
  border: 1px solid rgba(0, 255, 209, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

.map-overlay-badge {
  background: rgba(3, 20, 14, 0.92);
  border: 1px solid rgba(0, 255, 209, 0.4);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.map-badge-dot {
  color: #00ffd1;
  font-size: 0.85rem;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.map-recenter-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 1000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 28, 19, 0.95);
  border: 1px solid rgba(0, 255, 209, 0.5);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.map-recenter-btn:hover {
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.4);
  border-color: #00ffd1;
}

/* Sacred Places Selection Strip */
.sacred-places-choice-section {
  margin: 6px 0 10px 0;
  padding: 8px 12px;
  background: rgba(3, 20, 14, 0.85);
  border: 1px solid rgba(0, 255, 209, 0.35);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.sacred-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sacred-choice-header h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00ffd1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sacred-choice-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.sacred-choice-cards-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 209, 0.4) transparent;
}

.sacred-choice-cards-row::-webkit-scrollbar {
  height: 4px;
}
.sacred-choice-cards-row::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 209, 0.35);
  border-radius: 4px;
}

.sacred-place-choice-card {
  flex: 0 0 190px;
  background: rgba(2, 18, 12, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sacred-place-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 209, 0.8);
  box-shadow: 0 4px 14px rgba(0, 255, 209, 0.3);
}

.sacred-place-choice-card.selected {
  border: 1.5px solid #00ffd1;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.8), rgba(2, 24, 16, 0.95));
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.4);
}

.choice-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
}

.choice-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.choice-meta {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.sacred-place-choice-card.selected .choice-meta {
  padding-right: 76px;
}

.choice-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.choice-submetrics {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  margin-top: 2px;
}

.choice-dist {
  color: #a7f3d0;
  font-weight: 600;
}

.choice-chakra {
  font-weight: 600;
}

.choice-active-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #00ffd1;
  background: rgba(0, 255, 209, 0.15);
  border: 1px solid rgba(0, 255, 209, 0.4);
  padding: 2px 6px;
  border-radius: 8px;
}

.choice-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-select-place {
  width: 100%;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 209, 0.4);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-select-place:hover {
  background: #059669;
  color: #ffffff;
}

.btn-select-place.selected-btn {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Top Bar Voice Picker */
.voice-picker-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 20px;
  padding: 4px 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 15px rgba(0, 255, 209, 0.1);
  transition: all 0.25s ease;
}
.voice-picker-pill:hover {
  border-color: #00ffd1;
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.35);
}
.voice-picker-icon {
  font-size: 14px;
}
.top-voice-select {
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.top-voice-select option {
  background: #03140c;
  color: #ecfdf5;
}
.preview-voice-btn {
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid #00ffd1;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.preview-voice-btn:hover {
  background: #00ffd1;
  color: #02180f;
  transform: scale(1.15);
}

/* Active Turn-by-Turn Live Navigation HUD Card */
.active-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(3, 24, 16, 0.95), rgba(6, 40, 28, 0.9));
  border: 1px solid #00ffd1;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 255, 209, 0.25), 0 0 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
  animation: glowPulseNav 3s infinite alternate;
  transition: all 0.3s ease;
}

.active-nav-card.driving-mode {
  background: linear-gradient(135deg, rgba(4, 20, 36, 0.95), rgba(8, 38, 62, 0.92));
  border-color: #38bdf8;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35), 0 0 25px rgba(0, 0, 0, 0.7);
  animation: glowPulseDriving 3s infinite alternate;
}

@keyframes glowPulseDriving {
  0% { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 8px 30px rgba(56, 189, 248, 0.2); }
  100% { border-color: #38bdf8; box-shadow: 0 8px 34px rgba(56, 189, 248, 0.45); }
}

/* Travel Mode Switcher */
.travel-mode-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.travel-mode-pills {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.travel-mode-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.travel-mode-pill:hover {
  color: #ffffff;
}

.travel-mode-pill.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.active-nav-card.driving-mode .travel-mode-pill.active {
  background: #0284c7;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.travel-speed-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: 'Share Tech Mono', monospace;
  color: #34d399;
}

.active-nav-card.driving-mode .travel-speed-badge {
  color: #38bdf8;
}

.pulse-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: dotPulse 1.8s infinite;
}

.active-nav-card.driving-mode .pulse-indicator-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes glowPulseNav {
  0% { border-color: rgba(0, 255, 209, 0.6); box-shadow: 0 8px 30px rgba(0, 255, 209, 0.2); }
  100% { border-color: #00ffd1; box-shadow: 0 8px 32px rgba(0, 255, 209, 0.45); }
}

.nav-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-target-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pulse-icon {
  font-size: 1.4rem;
  animation: walkerBounce 1.5s infinite;
}

@keyframes walkerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.nav-target-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.nav-target-subtitle {
  font-size: 0.74rem;
  color: #a7f3d0;
  font-family: 'Share Tech Mono', monospace;
  margin-top: 2px;
}

.active-nav-card.driving-mode .nav-target-subtitle {
  color: #bae6fd;
}

.nav-voice-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-voice-btn {
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid #00ffd1;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-voice-btn.limitless {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 95, 70, 0.6));
  border-color: #34d399;
}

.active-nav-card.driving-mode .nav-voice-btn.limitless {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.5), rgba(12, 74, 110, 0.7));
  border-color: #38bdf8;
}

.nav-voice-btn.limitless.speaking {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.6);
  animation: buttonPulse 1.8s infinite;
}

.active-nav-card.driving-mode .nav-voice-btn.limitless.speaking {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.nav-voice-btn.continue-lore {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #a7f3d0;
  font-size: 0.72rem;
  padding: 6px 10px;
}

.nav-voice-btn.continue-lore:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.nav-voice-btn:hover {
  background: #00ffd1;
  color: #021c12;
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.5);
}

/* Turn-by-Turn Road Maneuver HUD */
.nav-maneuver-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 24, 18, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.active-nav-card.driving-mode .nav-maneuver-container {
  background: rgba(7, 24, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.08);
}

.nav-maneuver-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-maneuver-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-nav-card.driving-mode .nav-maneuver-icon-wrap {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.nav-maneuver-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-maneuver-details {
  flex: 1;
  min-width: 0;
}

.nav-maneuver-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.active-nav-card.driving-mode .nav-maneuver-headline {
  color: #f0f9ff;
}

.nav-maneuver-sub {
  font-size: 0.72rem;
  color: #a7f3d0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-nav-card.driving-mode .nav-maneuver-sub {
  color: #7dd3fc;
}

.nav-maneuver-next-preview {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-nav-card.driving-mode .nav-maneuver-next-preview {
  color: #bae6fd;
}

.nav-maneuver-metric {
  font-size: 0.95rem;
  font-weight: 800;
  color: #34d399;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.active-nav-card.driving-mode .nav-maneuver-metric {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Waze Live Telemetry Dashboard Strip */
.waze-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 4px;
}

.waze-telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.waze-soothing-chip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 2px 4px;
}

.waze-soothing-chip .waze-tel-val {
  color: #34d399;
  font-size: 0.68rem;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.waze-tel-label {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.waze-tel-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.waze-tel-voice-btn {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #a7f3d0;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.waze-tel-voice-btn.active {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.waze-voice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: pulseDot 1.2s infinite;
}

.nav-sat-btn.waze {
  background: rgba(51, 204, 255, 0.18);
  border: 1px solid #33ccff;
  color: #33ccff;
}

.nav-sat-btn.waze:hover {
  background: #33ccff;
  color: #000000;
  box-shadow: 0 0 14px rgba(51, 204, 255, 0.6);
}

.nav-external-sync-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
}

.nav-itinerary-toggle-row {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 2px;
}

.nav-itinerary-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.nav-itinerary-toggle-btn:hover {
  color: #e2e8f0;
}

.nav-itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.nav-itinerary-list.hidden {
  display: none;
}

.nav-itinerary-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.73rem;
  color: #cbd5e1;
}

.nav-itinerary-step-item:first-child {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #ffffff;
  font-weight: 600;
}

.nav-step-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-step-instruction {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.nav-step-dist {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.nav-turn-instruction {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(2, 16, 10, 0.8);
  border-left: 3px solid #34d399;
  padding: 8px 12px;
  border-radius: 0 10px 10px 0;
}

/* Roadside Observation Alert Banner */
.nav-roadside-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(180, 83, 9, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  animation: slideInDown 0.3s ease;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.active-nav-card.driving-mode .nav-roadside-alert {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(3, 105, 161, 0.3));
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.nav-roadside-alert.hidden {
  display: none;
}

.roadside-alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}

.roadside-alert-content {
  flex: 1;
  min-width: 0;
}

.roadside-alert-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-nav-card.driving-mode .roadside-alert-title {
  color: #7dd3fc;
}

.roadside-alert-desc {
  font-size: 0.72rem;
  color: #f1f5f9;
  line-height: 1.3;
  margin-top: 2px;
}

.roadside-alert-listen-btn {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.active-nav-card.driving-mode .roadside-alert-listen-btn {
  background: rgba(2, 132, 199, 0.4);
  border-color: #38bdf8;
}

.roadside-alert-listen-btn:hover {
  background: #f59e0b;
  color: #000000;
}

.active-nav-card.driving-mode .roadside-alert-listen-btn:hover {
  background: #38bdf8;
  color: #000000;
}

/* Driver Interactive Input Box */
.nav-driver-interaction-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 20, 16, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  padding: 10px;
}

.active-nav-card.driving-mode .nav-driver-interaction-box {
  background: rgba(7, 24, 42, 0.75);
  border-color: rgba(56, 189, 248, 0.35);
}

.driver-interaction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.driver-interaction-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
}

.driver-mic-status {
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.active-nav-card.driving-mode .driver-mic-status {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.driver-quick-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.driver-quick-chips-row::-webkit-scrollbar {
  display: none;
}

.driver-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.driver-chip-btn:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: #34d399;
  color: #ffffff;
}

.active-nav-card.driving-mode .driver-chip-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.driver-chip-btn.demo {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef08a;
}

.driver-chip-btn.demo:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

.driver-query-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.driver-query-input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.74rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.driver-query-input:focus {
  border-color: #34d399;
}

.active-nav-card.driving-mode .driver-query-input:focus {
  border-color: #38bdf8;
}

.driver-query-send-btn,
.driver-query-mic-btn {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.active-nav-card.driving-mode .driver-query-send-btn,
.active-nav-card.driving-mode .driver-query-mic-btn {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.driver-query-send-btn:hover,
.driver-query-mic-btn:hover {
  background: #34d399;
  color: #000000;
}

.active-nav-card.driving-mode .driver-query-send-btn:hover,
.active-nav-card.driving-mode .driver-query-mic-btn:hover {
  background: #38bdf8;
  color: #000000;
}

.nav-inapp-companion-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  font-size: 0.73rem;
  color: #a7f3d0;
  font-weight: 500;
}

.companion-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffd1;
  box-shadow: 0 0 8px #00ffd1;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

.nav-satellite-launchers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.nav-sat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.nav-sat-btn.gaia-live {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 78, 59, 0.7));
  border: 1px solid #00ffd1;
  color: #ffffff;
}
.nav-sat-btn.gaia-live:hover, .nav-sat-btn.gaia-live.active {
  background: #00ffd1;
  color: #021c12;
  box-shadow: 0 0 16px rgba(0, 255, 209, 0.6);
}

.nav-sat-btn.mapycz {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}
.nav-sat-btn.mapycz:hover, .nav-sat-btn.mapycz.active {
  background: #dc2626;
  color: white;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.nav-sat-btn.gmaps {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #7dd3fc;
}
.nav-sat-btn.gmaps:hover, .nav-sat-btn.gmaps.active {
  background: #0284c7;
  color: white;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.embedded-frame {
  width: 100% !important;
  height: 300px !important;
  min-height: 300px !important;
  border-radius: 20px;
  background: #02110b;
}

/* Solfeggio Sound Bath Audio Bar */
.solfeggio-audio-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(3, 20, 14, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.solfeggio-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.solfeggio-icon {
  font-size: 1.2rem;
  animation: solfeggioPulse 3s infinite;
  flex-shrink: 0;
}

@keyframes solfeggioPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #34d399); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #34d399); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px #34d399); }
}

.solfeggio-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.solfeggio-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ecfdf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.solfeggio-sub {
  font-size: 0.68rem;
  color: #6ee7b7;
  font-family: 'Share Tech Mono', monospace;
}

.solfeggio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.solfeggio-select {
  flex: 1;
  min-width: 0;
  background: rgba(2, 18, 12, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  outline: none;
  font-family: 'Outfit', sans-serif;
}

.solfeggio-play-btn {
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.solfeggio-play-btn.playing {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Practice Focus HUD Card inside Compass */
.node-address-gps-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 10px 0;
  padding: 8px 10px;
  background: rgba(2, 18, 12, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
}

.node-address-box, .node-gps-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #a7f3d0;
}
.addr-icon, .gps-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.addr-text {
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.35;
}
.gps-text {
  color: #00ffd1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.74rem;
}

.node-full-description {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #ecfdf5;
  background: rgba(4, 28, 20, 0.5);
  border-left: 3px solid #00ffd1;
  padding: 8px 12px;
  border-radius: 0 10px 10px 0;
  margin: 8px 0 12px 0;
}

.practice-focus-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.practice-focus-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.practice-icon {
  font-size: 1.1rem;
}
.practice-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #34d399;
}
.practice-ritual-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* Node Lore 2-column Grid */
.node-lore-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
@media (max-width: 600px) {
  .node-lore-box {
    grid-template-columns: 1fr;
  }
}

.lore-item {
  background: rgba(2, 22, 15, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lore-item:hover {
  border-color: #00ffd1;
  background: rgba(4, 28, 20, 0.9);
  box-shadow: 0 4px 16px rgba(0, 255, 209, 0.15);
}

.lore-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #00ffd1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lore-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #ecfdf5;
}

/* External Links, Articles & Reviews Section */
.node-external-links-section {
  margin: 14px 0 10px 0;
  padding: 10px 12px;
  background: rgba(2, 18, 12, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 14px;
}

.external-links-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a7f3d0;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.external-links-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.external-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(4, 28, 20, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 10px;
  color: #ecfdf5;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.external-link-card:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #00ffd1;
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 2px 10px rgba(0, 255, 209, 0.2);
}

.external-link-card .link-arrow {
  color: #00ffd1;
  font-weight: 700;
  font-size: 0.9rem;
}

/* SATNAV Navigation Button */
.satnav-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669 0%, #00ffd1 100%) !important;
  color: #021b12 !important;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 255, 209, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}
.satnav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 255, 209, 0.6);
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%) !important;
}

/* Custom Leaflet Dark/Emerald Theme adjustments */
.leaflet-container {
  background: #05140d !important;
  font-family: var(--font-sans) !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(3, 24, 16, 0.95) !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
  border-radius: 14px !important;
  color: #ecfdf5 !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-tip {
  background: rgba(3, 24, 16, 0.95) !important;
}

.sacred-user-marker {
  width: 18px;
  height: 18px;
  background: #34d399;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 16px #34d399, 0 0 30px rgba(52, 211, 153, 0.6);
  animation: seekerPulse 2s infinite;
}

@keyframes seekerPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 10px #34d399; }
  50% { transform: scale(1.15); box-shadow: 0 0 22px #34d399, 0 0 40px rgba(52, 211, 153, 0.8); }
  100% { transform: scale(0.9); box-shadow: 0 0 10px #34d399; }
}

.sacred-pin-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 209, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.sacred-pin-marker:hover {
  transform: scale(1.25);
}

.compass-hud-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(3, 20, 14, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.compass-radar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.compass-radar-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.6);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(4, 24, 16, 0.8) 70%);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.3);
  overflow: hidden;
}

.compass-radar-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(52, 211, 153, 0.25);
}

.compass-radar-circle::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(52, 211, 153, 0.25);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52, 211, 153, 0.45) 0deg, rgba(52, 211, 153, 0) 60deg);
  animation: radarRotate 3.5s linear infinite;
}

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

.radar-pointer {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 4px;
  height: 35%;
  background: #34d399;
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(42deg);
  box-shadow: 0 0 10px #34d399;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radar-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #a7f3d0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #a7f3d0;
}

.radar-heading-text {
  font-size: 0.8rem;
  color: #6ee7b7;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.5px;
}

.node-details-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(6, 30, 20, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.node-resonance-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-family: 'Share Tech Mono', monospace;
}

.node-details-card h4 {
  margin: 2px 0 0 0;
  font-size: 0.95rem;
  color: #ecfdf5;
  font-weight: 600;
}

.node-vibe {
  font-size: 0.8rem;
  color: #a7f3d0;
  line-height: 1.35;
  margin: 0;
}

.node-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.metric-label {
  color: #6ee7b7;
}

.metric-val {
  color: #ecfdf5;
  font-weight: 600;
}

.compass-actions-row {
  display: flex;
  flex-direction: column;
}

.geofence-card {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(2, 18, 12, 0.7);
  border: 1px dashed rgba(52, 211, 153, 0.4);
  font-size: 0.75rem;
  color: #a7f3d0;
}

.geofence-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse-dot {
  font-size: 0.85rem;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* --- SEEK HERBALISM & FLORA SCANNING HUD --- */
.exploration-mode-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  background: rgba(2, 18, 12, 0.7);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.explore-mode-pill {
  flex: 1;
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.explore-mode-pill:hover, .explore-mode-pill.active {
  background: rgba(16, 185, 129, 0.35);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
  font-weight: 600;
}

.seek-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.seek-reticle {
  width: 72%;
  height: 65%;
  position: relative;
  border: 1px dashed rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seek-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #34d399;
  border-style: solid;
}

.seek-corner.top-left { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.seek-corner.top-right { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.seek-corner.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.seek-corner.bottom-right { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

.seek-reticle-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 1.5s infinite;
}

.seek-reticle-text {
  position: absolute;
  bottom: 8px;
  font-size: 8px;
  font-family: 'Share Tech Mono', monospace;
  color: #34d399;
  letter-spacing: 0.5px;
  background: rgba(2, 18, 12, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Herbarium Card */
.herbarium-card {
  margin-top: 10px;
  padding: 12px;
  background: rgba(4, 28, 18, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.herbarium-header {
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.herbarium-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 4px;
}

.herbarium-card h4 {
  margin: 2px 0;
  font-size: 1.05rem;
  color: #a7f3d0;
  font-style: italic;
  font-family: 'Cinzel', serif;
}

.herb-subtitle {
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 500;
}

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

.herb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  background: rgba(2, 18, 12, 0.5);
  padding: 6px 8px;
  border-radius: 6px;
}

.herb-item-label {
  font-weight: 600;
  color: #34d399;
}

.herb-item-val {
  color: #ecfdf5;
  line-height: 1.3;
}

.herb-warn {
  border-left: 3px solid #f59e0b;
}

.herb-warn .herb-item-label {
  color: #fde047;
}

/* ==========================================================================
   IN-APP RESOURCE & SACRED GUIDE FRAME MODAL
   ========================================================================== */

.in-app-frame-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-app-frame-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.in-app-frame-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 10, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.in-app-frame-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: calc(100% - 32px);
  max-height: 880px;
  background: rgba(4, 20, 16, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 255, 209, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  animation: inAppModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes inAppModalPop {
  0% { transform: scale(0.96) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.in-app-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(6, 28, 22, 0.9);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  gap: 12px;
  flex-shrink: 0;
}

.in-app-frame-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.in-app-frame-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.in-app-frame-text {
  min-width: 0;
}

.in-app-frame-text h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0fdf4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-app-frame-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.in-app-frame-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.in-app-frame-url {
  font-size: 0.72rem;
  color: rgba(209, 250, 229, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-app-frame-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.in-app-action-btn {
  background: rgba(6, 44, 34, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #ecfdf5;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.in-app-action-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #00ffd1;
  color: #ffffff;
}

.in-app-action-btn.active {
  background: rgba(0, 255, 209, 0.25);
  border-color: #00ffd1;
  color: #00ffd1;
}

.in-app-frame-close {
  margin-left: 4px;
}

.in-app-frame-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  background: rgba(2, 14, 11, 0.9);
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 0.72rem;
  color: #a7f3d0;
  flex-shrink: 0;
}

.in-app-frame-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #02120d;
}

.in-app-frame-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  display: block;
}

.in-app-reader-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 28px 60px 28px;
  box-sizing: border-box;
  background: rgba(3, 18, 14, 0.97);
  color: #e2e8f0;
  z-index: 10;
}

.in-app-reader-view.hidden {
  display: none !important;
}

.reader-hero-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.reader-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reader-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.reader-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.reader-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reader-extract {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1fae5;
  background: rgba(4, 28, 20, 0.6);
  padding: 18px 20px;
  border-radius: 12px;
  border-left: 3px solid #00ffd1;
}

.reader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.reader-card {
  background: rgba(6, 28, 22, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
}

.reader-card h4 {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reader-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #ecfdf5;
}

.reader-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .in-app-frame-modal {
    padding: 0;
  }
  .in-app-frame-container {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .in-app-frame-header {
    padding: 10px 14px;
  }
  .in-app-frame-actions .in-app-action-btn span {
    display: none;
  }
  .reader-title {
    font-size: 1.3rem;
  }
  .in-app-reader-view {
    padding: 16px 14px 60px 14px;
  }
}

/* --- 2026 VOICE PERSONA SELECTOR & CALL WAVE CANVAS --- */
.voice-selector-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 30, 22, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.voice-select-label {
  font-size: 0.72rem;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.voice-select {
  background: transparent !important;
  border: none !important;
  color: #ecfdf5 !important;
  font-size: 0.76rem !important;
  padding: 2px 4px !important;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

.voice-select option {
  background: #062016;
  color: #ecfdf5;
}

.call-wave-canvas {
  border-radius: 4px;
  margin: 0 8px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
}

/* --- iNATURALIST SEEK ENRICHMENT HUD --- */
.inat-verif-badge {
  font-size: 0.68rem;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.4px;
}

.inat-status-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.inat-status-chip, .inat-rank-chip {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.herbarium-footer-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* --- SACRED HABITS & ATOMIC ROUTINES PANEL (2026 GLASSMORPHISM) --- */
.habits-panel {
  background: rgba(8, 26, 19, 0.88) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
}

.habits-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.habit-stat-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.habit-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.5);
}

.habit-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.habit-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.habit-category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

/* ==========================================================================
   ATOMIC HABITS & SACRED RITUALS SANCTUARY (UNIVERSAL CIRCADIAN ENGINE)
   ========================================================================== */

/* Sub-navigation Bar */
.habits-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  border-bottom: 1px solid rgba(0, 255, 209, 0.15);
  margin-bottom: 16px;
  scrollbar-width: none;
}
.habits-subnav::-webkit-scrollbar {
  display: none;
}

.habits-subnav-btn {
  white-space: nowrap;
  padding: 6px 11px;
  font-size: 0.77rem;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.habits-subnav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(0, 255, 209, 0.3);
}

.habits-subnav-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #34d399;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
}

/* Sub-view switcher */
.habits-subview {
  display: none;
}
.habits-subview.active {
  display: block;
  animation: fadeInHabits 0.25s ease-out;
}

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

/* Circadian Filter */
.habit-circadian-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.habit-circadian-filter::-webkit-scrollbar {
  display: none;
}

.habit-cat-pill {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.habit-cat-pill.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #34d399;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

/* Habits List Container & Cards */
.habits-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.habit-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(15, 40, 30, 0.65);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.habit-card:hover {
  background: rgba(15, 40, 30, 0.85);
  border-color: rgba(52, 211, 153, 0.4);
}

.habit-card.completed {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.habit-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.habit-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.habit-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 8px;
  border: 2px solid rgba(52, 211, 153, 0.5);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  color: transparent;
}

.habit-checkbox.checked {
  background: #10b981;
  border-color: #10b981;
  color: #022c22;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.habit-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.3;
}

.habit-card.completed .habit-name {
  color: #94a3b8;
  text-decoration: line-through;
}

.habit-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Habit Stack Anchor & 2-min rule badges */
.habit-stack-anchor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 8px;
  line-height: 1.2;
}

.habit-anchor-cue {
  color: #34d399;
  font-weight: 600;
}

.habit-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.habit-period-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.habit-2min-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 500;
}

.habit-streak-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 600;
}

.habit-cal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.habit-cal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.habit-delete-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.habit-delete-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* Habit Add Form */
.habit-add-section {
  padding: 14px;
  background: rgba(10, 35, 25, 0.7);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  border-radius: 14px;
}

.habit-add-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.habit-add-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a7f3d0;
}

.habit-add-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  font-style: italic;
}

/* Curated Rituals Chips */
.curated-rituals-label {
  font-size: 0.74rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.curated-rituals-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.curated-rituals-row::-webkit-scrollbar {
  display: none;
}
.curated-ritual-chip {
  white-space: nowrap;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.curated-ritual-chip:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.habit-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.habit-add-input {
  flex: 2;
  min-width: 180px;
  font-size: 0.84rem;
}

.habit-cat-select, .habit-period-select {
  flex: 1;
  min-width: 110px;
  font-size: 0.8rem;
}

/* Habit Add Meta Row (Time & Minutes Duration) */
.habit-add-meta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.habit-time-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.habit-time-group label {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.habit-duration-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.habit-duration-group label {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.duration-pills-row {
  display: flex;
  gap: 4px;
}
.duration-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}
.duration-pill.active, .duration-pill:hover {
  background: rgba(0, 255, 209, 0.2);
  border-color: #00ffd1;
  color: #00ffd1;
  font-weight: 600;
}
.habit-duration-num {
  width: 58px;
  font-size: 0.82rem;
  padding: 4px 6px;
  text-align: center;
}
.duration-unit {
  font-size: 0.74rem;
  color: #94a3b8;
}

.habit-add-stack-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.habit-stack-input {
  flex: 1;
  min-width: 170px;
  font-size: 0.82rem;
}

.habit-2min-input {
  flex: 1;
  min-width: 170px;
  font-size: 0.82rem;
}

.habit-time-input {
  width: 95px;
  font-size: 0.82rem;
}

/* Habit Calendar Sync Option Checkbox */
.habit-add-calendar-option {
  margin: 6px 0 12px 0;
  padding: 8px 12px;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: 10px;
}
.habit-cal-sync-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #93c5fd;
}
.habit-cal-sync-hint {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 3px;
  padding-left: 24px;
  opacity: 0.85;
}

.btn-add-habit {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #34d399;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.btn-add-habit:hover {
  background: #10b981;
  color: #022c22;
}

.habit-actions-footer {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.habit-voice-checkin-btn {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  font-size: 0.84rem;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

/* SUBTAB 2: IDENTITY & MILESTONES STYLES */
.identity-card {
  padding: 16px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(10, 30, 22, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.12);
  margin-bottom: 18px;
}

.identity-archetypes-row {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.archetype-hint {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 600;
  white-space: nowrap;
}
.archetype-chip {
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
  cursor: pointer;
  transition: all 0.2s ease;
}
.archetype-chip:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.identity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.identity-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.identity-save-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.identity-save-btn:hover {
  background: #f59e0b;
  color: #1a1a1a;
}

.identity-quote-label {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.identity-statement-area {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fef08a;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.2s ease;
}

.identity-statement-area:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

.identity-subtext {
  font-size: 0.74rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 8px;
  text-align: right;
}

.milestones-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.milestones-header-row h4 {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0;
}

.milestones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 680px) {
  .milestones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.milestone-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(12, 35, 26, 0.65);
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.milestone-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.milestone-horizon-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(0, 255, 209, 0.12);
  color: #00ffd1;
  border: 1px solid rgba(0, 255, 209, 0.25);
  white-space: nowrap;
}

.milestone-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.milestone-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00ffd1);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.milestone-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
}

.identity-voice-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(10, 30, 25, 0.8);
  border: 1px solid rgba(0, 255, 209, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.identity-voice-info h5 {
  font-size: 0.92rem;
  color: #34d399;
  margin: 0 0 4px 0;
}

.identity-voice-info p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* SUBTAB 3: CALENDAR EXPORT STYLES */
.calendar-intro-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(10, 30, 25, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: 18px;
}

.calendar-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.calendar-icon {
  font-size: 2rem;
  line-height: 1;
}

.calendar-card-header h4 {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin: 0 0 4px 0;
}

.calendar-card-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.calendar-sync-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-habits-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-habits-list-title h4 {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin: 0;
}

.calendar-badge {
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.calendar-habits-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.calendar-habit-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 40, 30, 0.65);
  border: 1px solid rgba(52, 211, 153, 0.2);
  gap: 10px;
}

.calendar-habit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-habit-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e2e8f0;
}

.calendar-habit-schedule {
  font-size: 0.74rem;
  color: #34d399;
}

.calendar-action-btns {
  display: flex;
  gap: 6px;
}

.btn-gcal {
  background: rgba(66, 133, 244, 0.2);
  border: 1px solid #4285f4;
  color: #93c5fd;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gcal:hover {
  background: #4285f4;
  color: #ffffff;
}

.btn-ics {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ics:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* SUBTAB 4: SLEEP & SWEET AWAKENING ALARM STYLES */
.alarm-sanctuary-card {
  padding: 18px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 209, 0.1) 0%, rgba(8, 28, 20, 0.85) 100%);
  border: 1px solid rgba(0, 255, 209, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 209, 0.12);
}

.alarm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.alarm-title-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alarm-icon {
  font-size: 2rem;
  line-height: 1;
}

.alarm-title-group h4 {
  font-size: 0.98rem;
  color: #a7f3d0;
  margin: 0 0 4px 0;
}

.alarm-title-group p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Switch Toggle (iOS style) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  min-width: 48px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
  background-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  border-color: #10b981;
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(22px);
}

/* Sanctuary Digital Clock */
.sanctuary-clock-container {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 209, 0.2);
  border-radius: 14px;
  margin-bottom: 18px;
}

.clock-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sanctuary-digital-clock {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: #00ffd1;
  text-shadow: 0 0 20px rgba(0, 255, 209, 0.6);
  letter-spacing: 2px;
}

.clock-circadian-info {
  font-size: 0.8rem;
  color: #34d399;
  margin-top: 4px;
}

.alarm-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .alarm-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.alarm-setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alarm-setting-item label {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.alarm-time-input {
  font-size: 1rem;
  padding: 8px 12px;
}

/* Habit Duration Pill in Card */
.habit-duration-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(0, 255, 209, 0.1);
  border: 1px solid rgba(0, 255, 209, 0.3);
  color: #00ffd1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Battery-Safe Alarm Card */
.battery-safe-box {
  padding: 14px 16px;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.battery-safe-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

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

.battery-safe-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 3px;
}

.battery-safe-desc {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.battery-safe-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 40px;
}

/* WakeLock Row */
.wakelock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.wakelock-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wakelock-icon {
  font-size: 1.4rem;
}

.wakelock-title {
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 500;
  display: block;
}

.wakelock-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.alarm-preview-footer {
  display: flex;
  gap: 10px;
}

.alarm-preview-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.88rem;
}

/* Awakening Modal Overlay */
.awakening-modal-card {
  max-width: 420px;
  width: 90%;
  text-align: center;
  padding: 32px 24px;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.2) 0%, rgba(10, 30, 20, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  animation: pulseModal 3s infinite alternate ease-in-out;
}

@keyframes pulseModal {
  0% { box-shadow: 0 0 35px rgba(245, 158, 11, 0.25); }
  100% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.5); }
}

.awakening-sun-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #f59e0b 60%, rgba(245, 158, 11, 0) 100%);
  margin: 0 auto 16px auto;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.8);
  animation: sunGlow 4s infinite alternate;
}

@keyframes sunGlow {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; }
}

.awakening-title {
  font-size: 1.8rem;
  color: #fef08a;
  margin: 0 0 8px 0;
  text-shadow: 0 0 15px rgba(254, 240, 138, 0.5);
}

.awakening-subtitle {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.awakening-sound-pulse {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 30px;
  margin-bottom: 24px;
}

.sound-wave-bar {
  width: 4px;
  height: 12px;
  background: #34d399;
  border-radius: 2px;
  animation: waveMotion 1.2s infinite ease-in-out;
}
.sound-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-wave-bar:nth-child(4) { animation-delay: 0.1s; }
.sound-wave-bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes waveMotion {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.awakening-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awakening-btn {
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
}

.awakening-snooze-btn {
  padding: 10px;
  font-size: 0.85rem;
  border-radius: 12px;
}

/* ==========================================================================
   2026 LUXURY GLASSMORPHISM SUBSCRIPTIONS, PRANA METER & COMPONENT EVOLUTION
   ========================================================================== */

/* 1. Top Bar Prana Quota Badge */
.prana-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(4, 28, 20, 0.75);
  border: 1px solid rgba(0, 255, 209, 0.35);
  border-radius: 20px;
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(0, 255, 209, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.prana-quota-badge:hover {
  background: rgba(6, 42, 30, 0.9);
  border-color: #00ffd1;
  box-shadow: 0 0 25px rgba(0, 255, 209, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.prana-battery-icon {
  font-size: 0.95rem;
  animation: pranaPulse 2.5s infinite ease-in-out;
}

@keyframes pranaPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px #00ffd1); }
}

.prana-separator {
  opacity: 0.4;
}

/* 2. Floating Call Bar Quota Timer */
.call-quota-timer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(6, 78, 59, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  letter-spacing: 0.5px;
}

.call-quota-timer.warning {
  color: #fbbf24;
  border-color: #f59e0b;
  background: rgba(180, 83, 9, 0.3);
  animation: timerBlink 1s infinite alternate;
}

.call-quota-timer.danger {
  color: #f87171;
  border-color: #ef4444;
  background: rgba(153, 27, 27, 0.35);
  animation: timerBlink 0.5s infinite alternate;
}

@keyframes timerBlink {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* 3. Chrám Hojnosti (Temple of Abundance) Full-Screen Modal */
.abundance-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.abundance-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 8, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.abundance-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  background: radial-gradient(circle at 50% 0%, rgba(11, 55, 38, 0.85) 0%, rgba(3, 16, 11, 0.95) 100%);
  border: 1px solid rgba(0, 255, 209, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 209, 0.15);
  border-radius: 24px;
  padding: 28px 32px;
}

.abundance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.abundance-title-box {
  display: flex;
  gap: 14px;
  align-items: center;
}

.abundance-icon {
  font-size: 2.2rem;
  background: rgba(0, 255, 209, 0.1);
  border: 1px solid rgba(0, 255, 209, 0.3);
  padding: 10px;
  border-radius: 16px;
}

.abundance-header h3 {
  font-size: 1.45rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.abundance-sub {
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* User Prana Status Card */
.user-prana-status-card {
  background: rgba(6, 32, 22, 0.6);
  border: 1px solid rgba(0, 255, 209, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.prana-status-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.prana-tier-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.prana-cycle-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.prana-time-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prana-time-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.prana-time-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #00ffd1;
}

.prana-meter-track {
  width: 100%;
  height: 8px;
  background: rgba(2, 20, 14, 0.8);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 209, 0.15);
  margin-bottom: 10px;
}

.prana-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #00ffd1 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.6);
  transition: width 0.4s ease;
}

.prana-extra-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #a7f3d0;
}

/* Switchers: Currency & Billing Cycle */
.abundance-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.billing-cycle-switch, .currency-switch {
  display: flex;
  background: rgba(2, 20, 14, 0.6);
  border: 1px solid rgba(0, 255, 209, 0.2);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.cycle-pill, .currency-pill {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cycle-pill.active, .currency-pill.active {
  background: rgba(0, 255, 209, 0.2);
  color: #ffffff;
  border: 1px solid rgba(0, 255, 209, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 209, 0.25);
}

.save-badge {
  background: #f59e0b;
  color: #1a0f02;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

/* 3-Tier Comparative Grid */
.tiers-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.tier-card {
  position: relative;
  background: rgba(4, 24, 16, 0.65);
  border: 1px solid rgba(0, 255, 209, 0.2);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 209, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tier-card.featured {
  background: radial-gradient(circle at 50% 0%, rgba(16, 75, 52, 0.85) 0%, rgba(4, 24, 16, 0.9) 100%);
  border: 1px solid #00ffd1;
  box-shadow: 0 0 35px rgba(0, 255, 209, 0.25), 0 0 15px rgba(234, 179, 8, 0.15);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #042014;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.tier-card-header {
  margin-bottom: 14px;
}

.tier-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 6px;
}

.tier-card-header h4 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}

.tier-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.tier-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00ffd1;
  font-family: var(--font-primary);
}

.tier-price-period {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.tier-annual-savings {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 12px;
  min-height: 18px;
}

.tier-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 18px;
  min-height: 48px;
}

.tier-features-list {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8rem;
}

.tier-features-list li {
  line-height: 1.35;
}

.tier-features-list li.dimmed {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.tier-action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.tier-action-btn.current {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
}

.tier-action-btn.upgrade-pro {
  background: linear-gradient(135deg, #10b981 0%, #00ffd1 100%);
  color: #022c22;
  box-shadow: 0 4px 20px rgba(0, 255, 209, 0.4);
}

.tier-action-btn.upgrade-pro:hover {
  box-shadow: 0 6px 30px rgba(0, 255, 209, 0.65);
  transform: translateY(-2px);
}

.tier-action-btn.upgrade-ultra {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.tier-action-btn.upgrade-ultra:hover {
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.65);
  transform: translateY(-2px);
}

/* Sacred Prana Top-Up Packs */
.prana-packs-section {
  background: rgba(4, 28, 18, 0.6);
  border: 1px solid rgba(0, 255, 209, 0.25);
  border-radius: 18px;
  padding: 22px 24px;
}

.prana-packs-header {
  margin-bottom: 16px;
}

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

.prana-sparkle {
  font-size: 1.6rem;
  color: #00ffd1;
}

.prana-packs-title-group h4 {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2px;
}

.prana-packs-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.prana-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prana-pack-card {
  position: relative;
  background: rgba(2, 20, 14, 0.7);
  border: 1px solid rgba(0, 255, 209, 0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.prana-pack-card:hover {
  border-color: #00ffd1;
  transform: translateY(-2px);
}

.prana-pack-card.popular {
  border-color: #00ffd1;
  background: rgba(6, 36, 26, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.15);
}

.pack-badge {
  position: absolute;
  top: -10px;
  background: #10b981;
  color: #022c22;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
}

.pack-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pack-icon {
  font-size: 1.2rem;
}

.pack-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.pack-minutes {
  font-size: 1.35rem;
  font-weight: 800;
  color: #00ffd1;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.pack-price {
  font-size: 0.86rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 12px;
}

.prana-buy-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(0, 255, 209, 0.15);
  border: 1px solid rgba(0, 255, 209, 0.35);
  color: #a7f3d0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prana-buy-btn:hover {
  background: #00ffd1;
  color: #022c22;
  box-shadow: 0 0 15px rgba(0, 255, 209, 0.4);
}

.prana-buy-btn.featured-btn {
  background: #10b981;
  color: #022c22;
  border-color: #34d399;
}

/* 4. Můj Posvátný Herbář Modal */
.herbarium-gallery-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.herbarium-gallery-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 8, 0.85);
  backdrop-filter: blur(16px);
}

.herbarium-gallery-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border-radius: 24px;
  padding: 26px 30px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.herbarium-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.herbarium-gallery-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.herb-gal-icon {
  font-size: 2rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 8px;
  border-radius: 14px;
}

.herb-gal-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.herb-count-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 15px;
  margin-right: 10px;
}

.herbarium-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.herbarium-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-herb-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-herb-hint {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.herb-collection-card {
  background: rgba(4, 24, 16, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
}

.herb-collection-card:hover {
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.herb-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.herb-card-latin {
  font-size: 1.05rem;
  font-style: italic;
  color: #a7f3d0;
  font-weight: 700;
  margin-bottom: 2px;
}

.herb-card-czech {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 8px;
}

.herb-card-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 8px;
}

/* 5. Somatic Pranayama Studio Modal */
.breathwork-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.breathwork-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 8, 0.88);
  backdrop-filter: blur(18px);
}

.breathwork-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(0, 255, 209, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  text-align: center;
}

.breathwork-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  text-align: left;
}

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

.breath-icon {
  font-size: 2.2rem;
}

.breathwork-modal-header h3 {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 700;
}

.breath-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breath-patterns-scroll {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.breath-pattern-pill {
  background: rgba(4, 24, 16, 0.6);
  border: 1px solid rgba(0, 255, 209, 0.2);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.breath-pattern-pill.active {
  background: rgba(0, 255, 209, 0.2);
  border-color: #00ffd1;
  color: #00ffd1;
  box-shadow: 0 0 15px rgba(0, 255, 209, 0.25);
}

.breathwork-visualizer-stage {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breath-ring-outer {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 209, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 35px rgba(0, 255, 209, 0.2);
  transition: transform 1s ease-in-out, border-color 0.5s ease;
}

.breath-ring-outer.inhale {
  transform: scale(1.35);
  border-color: #00ffd1;
  box-shadow: 0 0 60px rgba(0, 255, 209, 0.45);
}

.breath-ring-outer.hold {
  transform: scale(1.35);
  border-color: #f59e0b;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.4);
}

.breath-ring-outer.exhale {
  transform: scale(0.85);
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.breath-ring-inner {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 209, 0.15) 0%, transparent 70%);
}

.breath-instruction-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breath-phase-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.breath-counter-text {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #00ffd1;
}

.breathwork-metrics-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(2, 20, 14, 0.5);
  border: 1px solid rgba(0, 255, 209, 0.15);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 22px;
}

.breath-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b-met-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.b-met-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #34d399;
}

.breath-sound-btn {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.breath-sound-btn.active {
  background: rgba(16, 185, 129, 0.3);
  color: #ffffff;
  border-color: #10b981;
}

.breathwork-controls-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.breath-start-btn {
  background: linear-gradient(135deg, #10b981 0%, #00ffd1 100%);
  color: #022c22;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 255, 209, 0.4);
}

.breath-stop-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 32px;
  border-radius: 14px;
  cursor: pointer;
}

/* 6. Hand Meridian SVG Overlay (Palmistry) */
.hand-meridian-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* 7. Solfeggio Sound Bath Upgraded Studio Controls */
.solfeggio-nature-strip, .solfeggio-timer-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.nature-strip-label, .timer-strip-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.nature-pill-group, .timer-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nature-pill-btn, .timer-pill-btn {
  background: rgba(4, 28, 18, 0.6);
  border: 1px solid rgba(0, 255, 209, 0.15);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nature-pill-btn:hover, .timer-pill-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 255, 209, 0.35);
}

.nature-pill-btn.active, .timer-pill-btn.active {
  background: rgba(0, 255, 209, 0.2);
  border-color: #00ffd1;
  color: #00ffd1;
  font-weight: 700;
}

.timer-countdown-display {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 700;
  margin-left: 6px;
}

.solfeggio-wave-canvas {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  background: rgba(2, 16, 11, 0.5);
  border: 1px solid rgba(0, 255, 209, 0.15);
  border-radius: 8px;
}

/* 8. Mobile Responsiveness & Safe Area Insets (iOS/Android PWA) */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (min-width: 769px) {
    .top-controls-bar {
      top: calc(14px + env(safe-area-inset-top));
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    .floating-call-bar {
      bottom: calc(20px + env(safe-area-inset-bottom)) !important;
      top: auto !important;
    }
  }
}

@media (max-width: 900px) {
  .tiers-comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .prana-packs-grid {
    grid-template-columns: 1fr;
  }
  .abundance-modal-card {
    padding: 20px 16px;
  }
  .abundance-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .billing-cycle-switch, .currency-switch {
    justify-content: center;
  }
}

/* ==========================================================================
   SACRED SHAMANIC DRUM MODAL & AUDITORY ENTRAINMENT VISUALIZER
   ========================================================================== */
.shamanic-drum-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeInModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.shamanic-drum-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 18, 15, 0.72) 0%, rgba(4, 7, 5, 0.92) 100%);
}

.shamanic-drum-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  background: linear-gradient(160deg, rgba(22, 28, 24, 0.92) 0%, rgba(10, 15, 12, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shamanic-drum-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.drum-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drum-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.drum-title-group h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f6e05e;
  letter-spacing: 0.3px;
}

.drum-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #a0aec0;
  line-height: 1.4;
}

/* Preset selector scroll */
.shamanic-drum-modal-header,
.drum-presets-scroll,
.drum-visualizer-stage,
.drum-metrics-bar,
.drum-controls-row {
  flex-shrink: 0;
}

.drum-presets-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.drum-presets-scroll::-webkit-scrollbar {
  display: none;
}

.drum-preset-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e0;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drum-preset-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fefcbf;
}

.drum-preset-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(180, 140, 30, 0.35));
  border-color: #ecc94b;
  color: #fff;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

/* Drum Visualizer Stage */
.drum-visualizer-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
}

.drum-membrane-container {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease-out;
}

.drum-rim-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #5a3e1b;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4), inset 0 0 16px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #3d2817 0%, #20140b 100%);
}

.drum-rune-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
}

.rune-glyph {
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.65);
  transform: rotate(calc(var(--i, 0) * 45deg));
  user-select: none;
}

.drum-skin-center {
  position: relative;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #e9d8a6 0%, #b89868 65%, #664d28 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: filter 0.1s ease;
}

.drum-mallet-strike-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 150, 0.8) 0%, rgba(212, 175, 55, 0) 70%);
  opacity: 0;
  transition: opacity 0.05s ease-out;
  pointer-events: none;
}

.drum-membrane-container.striking .drum-mallet-strike-glow {
  opacity: 1;
}

.drum-membrane-container.striking {
  transform: scale(0.975);
}

.drum-ripple-wave {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.6);
  opacity: 0;
  pointer-events: none;
}

@keyframes drumRipplePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
    border-color: rgba(255, 230, 120, 0.9);
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
    border-color: rgba(212, 175, 55, 0);
  }
}

.drum-center-symbol {
  font-size: 1.8rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.drum-theta-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2b1810;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.drum-state-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4a331c;
  font-weight: 600;
}

/* Metrics & Tuning Row */
.drum-metrics-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}

.drum-metric-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drum-met-label {
  font-size: 0.75rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bpm-control-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drum-range-slider {
  flex: 1;
  accent-color: #ecc94b;
  cursor: pointer;
}

.drum-bpm-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #fefcbf;
  min-width: 62px;
}

.drum-tone-buttons, .drum-ambient-buttons {
  display: flex;
  gap: 4px;
}

.drum-tone-btn, .drum-amb-btn {
  flex: 1;
  padding: 5px 6px;
  font-size: 0.72rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.drum-tone-btn.active, .drum-amb-btn.active {
  background: rgba(212, 175, 55, 0.22);
  border-color: #ecc94b;
  color: #fff;
  font-weight: 600;
}

/* Controls Row */
.drum-controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.drum-start-btn {
  flex: 1.4;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #1a1505;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.drum-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e5c158 0%, #c9971c 100%);
}

.drum-stop-btn {
  flex: 1.4;
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35);
}

.drum-callback-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fefcbf;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drum-callback-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: #ecc94b;
}

/* Mobile Responsiveness for Shamanic Drum (Balanced on 400x678 & 390x844 with zero clipping) */
@media (max-width: 640px) {
  .shamanic-drum-modal-overlay {
    padding: 10px !important;
  }
  .shamanic-drum-modal-card {
    padding: 14px 14px 16px 14px;
    max-height: 92vh;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px) !important;
    gap: 10px;
  }
  body:has(#floating-call-bar:not(.hidden)) .shamanic-drum-modal-card {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 88px) !important;
  }
  .shamanic-drum-modal-header {
    padding-bottom: 8px;
    gap: 10px;
  }
  .drum-title-group h3 {
    font-size: 1.05rem;
  }
  .drum-sub {
    font-size: 0.76rem;
    line-height: 1.32;
  }
  .drum-visualizer-stage {
    padding: 4px 0;
  }
  .drum-membrane-container {
    width: 138px;
    height: 138px;
  }
  .drum-skin-center {
    width: 108px;
    height: 108px;
  }
  .drum-center-symbol {
    font-size: 1.1rem;
  }
  .drum-theta-display {
    font-size: 0.86rem;
  }
  .drum-state-label {
    font-size: 0.56rem;
    letter-spacing: 0.3px;
  }
  .drum-metrics-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }
  .drum-controls-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .drum-start-btn, .drum-stop-btn {
    flex: 1 1 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .drum-callback-btn {
    flex: 1 1 100%;
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   ✨ MODERN WEB POLISH: POPOVER MENU, DESKTOP VISIBILITY & SCROLL-AFFORDANCE FADES
   ========================================================================== */
@property --fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@keyframes gaia-reveal-fade-start {
  to { --fade-start: var(--fade-size); }
}

@keyframes gaia-hide-fade-end {
  from { --fade-end: var(--fade-size); }
}

.gaia-hscroll {
  overflow-x: auto;
  --fade-size: 1.75rem;
  --fade-dir: right;
  --fade-start-pos: 0;
  --fade-end-pos: 100%;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: var(--fade-size);
  mask:
    linear-gradient(black, black) no-clip subtract,
    linear-gradient(to var(--fade-dir), black, transparent) var(--fade-start-pos) 0 / var(--fade-start) 100% no-repeat no-clip,
    linear-gradient(to var(--fade-dir), transparent, black) var(--fade-end-pos) 0 / var(--fade-end) 100% no-repeat no-clip;
  animation: gaia-reveal-fade-start linear both, gaia-hide-fade-end linear both;
  animation-timeline: scroll(self inline);
  animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  transition: --fade-start 0.2s, --fade-end 0.2s;
}

.gaia-hscroll:dir(rtl) {
  --fade-dir: left;
  --fade-start-pos: 100%;
  --fade-end-pos: 0;
}

.gaia-hscroll.more-start {
  --fade-start: var(--fade-size);
}

.gaia-hscroll.more-end {
  --fade-end: var(--fade-size);
}

.gaia-hscroll > * {
  scroll-snap-align: start;
}

/* Unified Sanctuary Popover Trigger & Progressive Dock on Desktop (> 768px) */
@media (min-width: 769px) {
  .mobile-sanctuary-menu-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-block-size: 36px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(4, 22, 15, 0.82);
    border: 1px solid rgba(52, 211, 153, 0.34);
    color: #d1fae5;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

/* Top-Layer Mobile Sanctuary Popover (supports both native :popover-open and @oddbird/popover-polyfill) */
.mobile-sanctuary-popover {
  display: none;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: linear-gradient(165deg, rgba(4, 24, 16, 0.96), rgba(2, 12, 9, 0.98));
  color: #ecfdf5;
  border-radius: 18px;
  padding: 12px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 255, 209, 0.18);
  width: min(340px, calc(100vw - 16px)) !important;
  margin: 0;
}

.mobile-sanctuary-popover:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  inset: auto;
  top: calc(48px + env(safe-area-inset-top, 0px));
  right: 8px;
}

.mobile-popover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-popover-item {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 32, 21, 0.78);
  color: #d1fae5;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mobile-popover-item:hover,
.mobile-popover-item:active,
.mobile-popover-item.active {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.22);
}

.mobile-popover-voice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(52, 211, 153, 0.18);
}

.mobile-popover-voice-row label {
  font-size: 0.78rem;
  color: #a7f3d0;
  white-space: nowrap;
  font-weight: 600;
}

.mobile-popover-voice-row select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
}

/* ==========================================================================
   🌳 TREE OF LIFE BRAND LOGO & BESPOKE SACRED GEOMETRY SVG DOCK ICONS
   ========================================================================== */
.gaia-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: rgba(6, 28, 19, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.22), inset 0 0 8px rgba(251, 191, 36, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.gaia-brand-badge:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.45), 0 0 14px rgba(0, 255, 209, 0.35);
  transform: translateY(-1px);
}

.gaia-top-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.5);
}

.gaia-brand-text {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, #6ee7b7 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gaia-logo-medallion {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00ffd1, #fbbf24, #10b981);
  box-shadow: 0 0 28px rgba(0, 255, 209, 0.4), 0 0 16px rgba(251, 191, 36, 0.35);
}

.gaia-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.portal-inline-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 10px rgba(0, 255, 209, 0.45);
}

.abundance-logo-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45), 0 0 12px rgba(0, 255, 209, 0.3);
  flex-shrink: 0;
}

.dock-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.gaia-custom-svg {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.dock-btn:hover .dock-btn-icon,
.dock-btn.active .dock-btn-icon {
  color: #00ffd1;
}

.dock-btn:hover .gaia-custom-svg,
.dock-btn.active .gaia-custom-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 9px rgba(0, 255, 209, 0.75)) drop-shadow(0 0 4px rgba(251, 191, 36, 0.45));
}

@media (max-width: 640px) {
  .gaia-brand-text {
    display: none;
  }
  .gaia-brand-badge {
    padding: 3px;
  }
}

/* Ensure header pills & report buttons never wrap awkwardly on narrow mobile viewports */
#seek-badge,
#habit-streak-badge,
.btn-report-ai-output {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Hide floating call bar while full-screen onboarding, login, or confirmation dialog is open */
body:has(#gaia-onboarding-modal:not(.hidden)) #floating-call-bar,
body:has(#login-overlay:not(.hidden)) #floating-call-bar,
body:has(#gaia-glass-dialog-overlay:not(.hidden)) #floating-call-bar {
  display: none !important;
}

@media (max-width: 768px) {
  body:has(#floating-side-dock:not(.collapsed)) #gaia-text-frame-hud {
    bottom: calc(208px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ==========================================================================
   UNIVERSAL APP INSTALL BANNER & MODAL DIALOG (Android 1-Tap & iOS Guide)
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.gaia-install-top-btn[hidden],
.gaia-mob-install-item[hidden],
.portal-quiet-link[hidden],
.portal-utility-pill[hidden],
.gaia-install-banner[hidden],
.gaia-install-panel[hidden],
.gaia-android-native-box[hidden],
.gaia-install-steps[hidden],
.gaia-install-hint[hidden],
.gaia-install-primary-btn[hidden] {
  display: none !important;
}

.gaia-mob-install-item {
  border-color: rgba(52, 211, 153, 0.42) !important;
  background: rgba(16, 185, 129, 0.16) !important;
  color: #d1fae5 !important;
  font-weight: 600;
}

.gaia-install-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(54px + env(safe-area-inset-top, 0px));
  z-index: 9400;
  width: min(94vw, 440px);
  max-height: 62px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: rgba(4, 22, 15, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 9px;
}

.gaia-install-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.gaia-install-banner-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gaia-install-banner-copy strong {
  font-size: 0.8rem;
  color: #ecfdf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gaia-install-banner-copy span {
  font-size: 0.7rem;
  color: #a7f3d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gaia-install-banner-cta {
  padding: 7px 12px !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.gaia-install-banner-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 6px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.gaia-install-dialog {
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 22px;
  padding: 0;
  max-width: min(460px, 92vw);
  width: 100%;
  background: rgba(5, 24, 17, 0.97);
  color: #ecfdf5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78);
}

.gaia-install-dialog::backdrop {
  background: rgba(2, 10, 7, 0.74);
  backdrop-filter: blur(6px);
}

.gaia-install-dialog-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gaia-install-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.gaia-install-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gaia-install-modal-icon {
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  flex-shrink: 0;
}

.gaia-install-title-row h2 {
  margin: 0 0 4px 0;
  font-size: 1.12rem;
  color: #6ee7b7;
}

.gaia-install-title-row p {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.gaia-install-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gaia-install-tab {
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 11px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 32, 22, 0.7);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.gaia-install-tab.active,
.gaia-install-tab[aria-pressed="true"] {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.24);
  color: #ecfdf5;
}

.gaia-install-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaia-install-hint {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.gaia-install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaia-install-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(8, 36, 25, 0.82);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.gaia-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.gaia-install-ready-note {
  margin: 0 0 8px 0;
  font-size: 0.84rem;
  color: #a7f3d0;
}

.gaia-install-primary-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gaia-install-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #6ee7b7;
  text-align: center;
}

.gaia-install-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.gaia-install-secondary-btn {
  flex: 1;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  font-size: 0.82rem;
  cursor: pointer;
}

.gaia-install-done-btn {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ecfdf5;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.gaia-install-panel[hidden] {
  display: none !important;
}

/* ==========================================================================
   UNIVERSAL ACCESSIBILITY (WCAG 2.2 AA), DIALOG CONTAINMENT & RTL (v242)
   ========================================================================== */

/* Visually Hidden utility — keeps labels in the accessibility tree while allowing skip links to reveal on focus */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:is(:focus, :focus-visible, :active) {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top, 10px)) !important;
  inset-inline-start: 12px !important;
  z-index: 20000 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: #064e3b !important;
  color: #ecfdf5 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  border: 2px solid #34d399 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
}

/* Native <dialog> modal scroll containment (prevents background scroll chaining without mutating body overflow) */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Multi-step onboarding progress tracker list reset & active language pill highlight */
.onboard-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboard-lang-btn.active,
.onboard-lang-btn[aria-pressed="true"] {
  border: 1.5px solid #34d399 !important;
  background: rgba(16, 185, 129, 0.26) !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

/* Universal high-contrast keyboard focus ring (>= 3:1 contrast against dark emerald sanctuary surfaces) */
:where(
  a[href],
  button,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [tabindex="0"]
):focus-visible {
  outline: 3px solid #34d399 !important;
  outline-offset: 2px !important;
}

@media (forced-colors: active) {
  :where(a[href], button, input, select, textarea, [role="button"], [tabindex="0"]):focus-visible {
    outline: 3px solid Highlight !important;
  }
}

/* Right-to-Left (RTL) International Layout Support (Arabic, Hebrew, Persian, Urdu) */
[dir="rtl"] #email-auth-section,
[dir="rtl"] .report-problem-card,
[dir="rtl"] .account-stats-box,
[dir="rtl"] .herbarium-grid,
[dir="rtl"] .node-lore-box {
  text-align: right;
}

[dir="rtl"] .auth-modal-close-btn {
  right: auto;
  left: 14px;
}

@media (min-width: 769px) {
  [dir="rtl"] .floating-side-dock {
    left: auto;
    right: 16px;
  }

  [dir="rtl"] .dock-btn-tooltip {
    left: auto;
    right: calc(100% + 10px);
  }
}

/* Respect user vestibular / reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .spore-particle,
  .breathing-ring,
  .live-pulse-dot,
  .radar-sweep,
  .drum-ripple-wave,
  .awakening-sun-orb {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   v243 — VISITOR-FIRST PORTAL, GLOBAL MUTE CONTROLS & LIVE CONTEXT CALL BAR
   ========================================================================== */

/* Hide developer-only dock tile for regular visitors (reveal via ?dev=1) */
html:not([data-gaia-dev="1"]) .dock-btn-dev-only {
  display: none !important;
}

/* Global Mute & Call Audio Toggle Buttons — styled directly from [aria-pressed="true"] */
.global-mute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-inline-size: 36px;
  min-block-size: 36px;
  cursor: pointer;
}

.global-mute-btn[aria-pressed="true"],
#mob-pop-mute[aria-pressed="true"],
.call-icon-toggle-btn[aria-pressed="true"] {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.55), 0 0 14px rgba(239, 68, 68, 0.28) !important;
}

@media (forced-colors: active) {
  .global-mute-btn[aria-pressed="true"],
  #mob-pop-mute[aria-pressed="true"],
  .call-icon-toggle-btn[aria-pressed="true"] {
    background: Highlight !important;
    color: HighlightText !important;
    border-color: ButtonText !important;
  }
}

.lang-flag-btn[aria-pressed="true"] {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4), inset 0 0 8px rgba(52, 211, 153, 0.12);
}

/* Compact Native <details> Language Disclosure inside Visitor Portal */
.portal-lang-details {
  margin: 0 0 14px 0;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(4, 22, 15, 0.62);
  overflow: hidden;
}

.portal-lang-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-block-size: 40px;
  padding: 7px 13px;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
}

.portal-lang-summary::-webkit-details-marker {
  display: none;
}

.portal-active-lang-pill {
  font-weight: 600;
  color: #ecfdf5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-change-lang-hint {
  font-size: 0.76rem;
  color: #6ee7b7;
  font-weight: 500;
  white-space: nowrap;
}

.portal-lang-details[open] .portal-lang-summary {
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(16, 185, 129, 0.1);
}

.portal-lang-drawer-body {
  padding: 10px 12px 12px 12px;
}

.portal-lang-drawer-body .lang-flag-grid {
  margin-bottom: 6px;
}

/* Dual Primary + Secondary Visitor CTAs (Talk Live + Chat by Text) */
.portal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.portal-cta-row > #activate-live-btn {
  flex: 1.35 1 190px;
  min-block-size: 46px;
  margin: 0 !important;
}

.portal-secondary-cta-btn {
  flex: 1 1 145px;
  min-inline-size: 120px;
  min-block-size: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: rgba(6, 30, 21, 0.78);
  color: #d1fae5;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Guided 1-Tap Starter Cards for First-Time Visitors */
.portal-quick-starters {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(52, 211, 153, 0.18);
  text-align: start;
}

.portal-starters-heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a7f3d0;
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}

.portal-starters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.portal-starter-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-inline-size: 0;
  min-block-size: 54px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(4, 22, 15, 0.68);
  color: #ecfdf5;
  text-align: start;
  cursor: pointer;
  font-family: var(--font-primary);
}

.portal-starter-icon {
  font-size: 1.2rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.portal-starter-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
}

.portal-starter-copy strong {
  font-size: 0.81rem;
  font-weight: 600;
  color: #ecfdf5;
  line-height: 1.25;
}

.portal-starter-copy small {
  font-size: 0.71rem;
  color: #94a3b8;
  line-height: 1.28;
}

/* Floating Call Bar — Active Screen Sync Pill, Barge-In Hint & Audio Toggles */
.call-active-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  max-inline-size: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-bargein-hint {
  font-size: 0.71rem;
  color: #94a3b8;
  white-space: nowrap;
  opacity: 0.9;
}

.call-bar-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.call-icon-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 32px;
  min-block-size: 32px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 30, 21, 0.85);
  color: #ecfdf5;
  font-size: 0.88rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .portal-secondary-cta-btn,
  .portal-starter-card,
  .portal-lang-summary,
  .call-icon-toggle-btn,
  .global-mute-btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  }
}

@media (hover: hover) {
  .portal-secondary-cta-btn:hover,
  .portal-starter-card:hover,
  .portal-lang-summary:hover,
  .call-icon-toggle-btn:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.62);
  }
  .portal-starter-card:hover {
    transform: translateY(-1px);
  }
}

@media (pointer: coarse) {
  .portal-lang-summary {
    min-block-size: 44px;
  }
  .portal-cta-row > #activate-live-btn,
  .portal-secondary-cta-btn {
    min-block-size: 46px;
  }
  .portal-starter-card {
    min-block-size: 56px;
  }
}

@media (max-width: 960px) {
  .call-bargein-hint {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-controls-bar #btn-global-mute {
    flex: 0 0 auto !important;
    min-inline-size: 32px !important;
    min-block-size: 30px !important;
    padding: 0 7px !important;
  }

  .call-active-module-pill {
    font-size: 9.5px !important;
    padding: 1px 6px !important;
    max-inline-size: 86px !important;
  }

  .call-bar-actions-group {
    gap: 4px !important;
  }

  .call-icon-toggle-btn {
    min-inline-size: 28px !important;
    min-block-size: 26px !important;
    padding: 0 5px !important;
    font-size: 12px !important;
  }

  .portal-cta-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .portal-starters-grid {
    gap: 6px;
  }

  .portal-starter-card {
    padding: 8px 9px;
    gap: 7px;
  }

  .portal-starter-copy strong {
    font-size: 0.77rem;
  }

  .portal-starter-copy small {
    font-size: 0.67rem;
  }
}

@media (max-width: 400px) {
  .portal-starters-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   v247 — CALM, UNCLUTTERED SANCTUARY ARCHITECTURE (HEADER, PORTAL & DOCK)
   ========================================================================== */

/* 1. Calm 5-Item Top Bar (Brand anchored inline-start; secondary atmosphere settings tucked inside Sanctuary popover) */
.top-controls-bar .top-collapsed-into-menu,
#header-tier-badge,
.prana-separator,
#lbl-global-mute {
  display: none !important;
}

@media (min-width: 769px) {
  .top-controls-bar {
    inset-inline: 22px;
    top: calc(14px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #gaia-brand-home-btn {
    margin-inline-end: auto;
  }

  .top-controls-bar #btn-global-mute {
    min-inline-size: 36px;
    min-block-size: 36px;
    padding: 0 10px;
    border-radius: 999px;
  }

  .mobile-sanctuary-popover:is(:popover-open, .\:popover-open) {
    top: calc(58px + env(safe-area-inset-top, 0px));
    inset-inline-end: 22px;
  }
}

@media (max-width: 768px) {
  .top-controls-bar #btn-top-install-app {
    display: none !important;
  }
}

.gaia-install-top-btn {
  min-block-size: 36px;
  padding: 6px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(52, 211, 153, 0.36) !important;
  background: rgba(4, 22, 15, 0.82) !important;
  color: #d1fae5 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-popover-voice-top {
  padding-top: 0 !important;
  padding-bottom: 10px !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(52, 211, 153, 0.16) !important;
}

.mob-pop-subtle-report {
  grid-column: span 2;
  min-block-size: 34px !important;
  padding: 6px 10px !important;
  background: transparent !important;
  border: 1px dashed rgba(148, 163, 184, 0.25) !important;
  color: #94a3b8 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

/* 2. Progressive, Labeled Desktop Sanctuary Dock (6 Clear Pillars + Expandable 14-Module Palette) */
@media (min-width: 769px) {
  .floating-side-dock {
    inset-inline-end: 20px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(3, 16, 11, 0.74);
    border: 1px solid rgba(52, 211, 153, 0.24);
    gap: 6px;
  }

  .floating-side-dock.collapsed .dock-btn {
    display: none !important;
  }

  .floating-side-dock.collapsed #dock-btn-portal,
  .floating-side-dock.collapsed #dock-btn-dialogue,
  .floating-side-dock.collapsed #dock-btn-tarot,
  .floating-side-dock.collapsed #dock-btn-habits,
  .floating-side-dock.collapsed #dock-btn-compass,
  .floating-side-dock.collapsed #dock-btn-more {
    display: flex !important;
  }

  .floating-side-dock:not(.collapsed) {
    display: grid;
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    gap: 6px;
    padding: 10px;
    max-block-size: min(82dvh, 620px);
  }

  .floating-side-dock:not(.collapsed) #dock-btn-more {
    display: none !important;
  }

  .floating-side-dock:not(.collapsed) .dock-mobile-toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 6px 4px 6px;
    font-size: 0.68rem;
    color: #6ee7b7;
    cursor: pointer;
  }

  .floating-side-dock:not(.collapsed) .dock-toggle-line {
    display: none;
  }

  .floating-side-dock .dock-btn {
    width: 66px;
    height: auto;
    min-block-size: 54px;
    padding: 6px 4px;
    border-radius: 14px;
    flex-direction: column;
    gap: 3px;
  }

  .floating-side-dock .dock-btn-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #a7f3d0;
    line-height: 1.1;
    max-inline-size: 60px;
    overflow: clip;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  .floating-side-dock .dock-btn.active .dock-btn-label {
    color: #ffffff;
  }

  .floating-side-dock .dock-btn-tooltip {
    display: none !important;
  }
}

/* 3. Serene, Bottom-Anchored Visitor Portal (Reveals gAIa Face-to-Face on Desktop & Mobile!) */
.gaia-bg-video {
  object-position: center 20% !important;
}

.portal-chip-row {
  display: none !important;
}
@media (min-width: 769px) {
  .floating-content-drawer:not(:has(.tab-content:not(.hidden))) {
    top: auto;
    bottom: 28px;
    inset-inline-start: 28px;
    max-inline-size: 416px;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .floating-content-drawer:not(:has(.tab-content:not(.hidden))) {
    top: auto !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: min(56dvh, 420px) !important;
    padding: 0 2px 4px 2px !important;
  }
}

#live-voice-portal.voice-portal-card {
  padding: 16px 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(5, 24, 17, 0.84) 0%, rgba(2, 12, 9, 0.91) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.28) !important;
}

#live-voice-portal .panel-header-row {
  margin-bottom: 6px;
}

#live-voice-portal .portal-title {
  font-size: 1.04rem !important;
  line-height: 1.25;
}

#live-voice-portal .portal-desc {
  margin: 0 0 10px 0 !important;
  font-size: 0.81rem !important;
  line-height: 1.42 !important;
  color: #cbd5e1 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
}

#live-voice-portal .portal-lang-details {
  margin: 0 0 10px 0;
  border-radius: 11px;
}

#live-voice-portal .portal-lang-summary {
  min-block-size: 36px;
  padding: 5px 11px;
  font-size: 0.8rem;
}

#live-voice-portal .portal-cta-row {
  gap: 8px;
  margin-bottom: 10px;
}

#live-voice-portal .portal-cta-row > #activate-live-btn,
#live-voice-portal .portal-secondary-cta-btn {
  min-block-size: 42px;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  border-radius: 12px !important;
}

.portal-quick-starters {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(52, 211, 153, 0.14);
}

.portal-utility-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 0;
  padding-top: 0;
}

.portal-quiet-link {
  background: transparent;
  border: none;
  padding: 4px 6px;
  min-block-size: 30px;
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-primary);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#portal-tutorial-btn.portal-quiet-link {
  color: #a7f3d0;
}

.portal-utility-dot {
  color: rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
  user-select: none;
}

.gaia-android-native-box {
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(6, 36, 25, 0.86);
  border: 1px solid rgba(52, 211, 153, 0.34);
}

@media (hover: hover) {
  .portal-quick-chip:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.55);
    color: #ffffff;
  }
  .portal-quiet-link:hover {
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.05);
  }
  .gaia-install-top-btn:hover,
  .mobile-sanctuary-menu-btn:hover {
    border-color: #34d399 !important;
    background: rgba(16, 185, 129, 0.2) !important;
  }
}

@media (pointer: coarse) {
  .portal-quick-chip {
    min-block-size: 36px;
  }
  .portal-quiet-link {
    min-block-size: 36px;
  }
  .gaia-install-tab {
    min-block-size: 44px;
  }
}

@media (max-width: 440px) {
  .gaia-install-tabs {
    gap: 5px;
  }
  .gaia-install-tab {
    font-size: 0.74rem;
    padding: 6px 4px;
  }
}

@keyframes pranaRewardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75), 0 0 18px rgba(251, 191, 36, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0), 0 0 26px rgba(251, 191, 36, 0.75);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0), 0 0 0 rgba(251, 191, 36, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prana-reward-pulse {
    animation: pranaRewardPulse 1.1s ease-out 2;
  }
}

/* ==========================================================================
   v249 — MOBILE & DESKTOP GPU COMPOSITOR & FILL-RATE OPTIMIZATION
   ========================================================================== */

/* 1. Stop invisible 60 Hz box-shadow particle animations hidden behind opaque .avatar-container */
.forest-bg .spore-particle {
  animation: none !important;
  display: none !important;
}

/* 2. Only promote dual full-screen <video> layers to separate VRAM surfaces while actively dissolving */
.gaia-bg-video {
  will-change: auto !important;
}

.gaia-bg-video.is-crossfading {
  will-change: opacity !important;
}

/* 3. Isolate persistent HUD landmarks so internal updates never trigger viewport-wide layout/paint */
.top-controls-bar,
.floating-side-dock,
#live-voice-portal {
  contain: layout style;
}

/* 4. Remove redundant nested backdrop-filter on .dock-btn (already inside .floating-side-dock)
      and remove resting offscreen SVG drop-shadow rasterization passes on all 15 dock icons */
.dock-btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.gaia-custom-svg {
  filter: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .dock-btn:hover .gaia-custom-svg,
  .dock-btn.active .gaia-custom-svg {
    filter: drop-shadow(0 0 6px rgba(0, 255, 209, 0.55)) !important;
  }
}

/* 5. Desktop fine-pointer GPU budget: trim extreme blur(28px) saturate(180%) (~78px kernel)
      down to crisp hardware-friendly blur(10px) and eliminate redundant per-pill readbacks */
@media (min-width: 769px) and (pointer: fine) {
  .glass-card,
  #live-voice-portal.voice-portal-card {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .floating-side-dock {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .top-controls-bar > button,
  .top-controls-bar .gaia-brand-badge {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
}

/* 6. Smartphone / Touch GPU fast-path: eliminate live-video framebuffer readbacks (22 blur passes/frame -> 0)
      using rich high-contrast obsidian-emerald surfaces so mid-range mobile GPUs run locked at full framerate */
@media (max-width: 768px), (pointer: coarse) {
  .glass-card,
  #live-voice-portal.voice-portal-card,
  .floating-side-dock,
  .top-auth-btn,
  .prana-quota-badge,
  .soundscape-btn,
  .avatar-mode-btn,
  .gaia-install-top-btn,
  .mobile-sanctuary-menu-btn,
  .mobile-sanctuary-popover,
  .floating-call-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #live-voice-portal.voice-portal-card,
  .glass-card.panel {
    background: linear-gradient(160deg, rgba(5, 25, 18, 0.94) 0%, rgba(2, 13, 9, 0.97) 100%) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .floating-side-dock {
    background: rgba(2, 14, 9, 0.96) !important;
  }

  .top-auth-btn,
  .prana-quota-badge,
  .soundscape-btn,
  .mobile-sanctuary-menu-btn {
    background: rgba(4, 22, 15, 0.92) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  }
}






