/* ========================================================
   MINDHEAL - PREMIUM DESIGN SYSTEM (UI/UX OVERHAUL)
   ======================================================== */

:root {
  /* Strict Core Colors */
  --color-coral: #E06A4E;       /* Refined, softer coral for primary actions */
  --color-coral-hover: #C55338;
  --color-charcoal: #161616;    /* Deep, premium black */
  --color-cream: #FDFBF7;       /* Extremely subtle off-white */
  --color-white: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-text-main: #161616;
  --color-text-muted: #737373;
  --color-text-light: rgba(255, 255, 255, 0.7);

  /* Typography Scale (Editorial) */
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif-weight-display: 700;
  --font-serif-weight-title: 600;
  --font-serif-weight-body: 400;
  
  /* Negative Space variables */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 120px;
  --space-3xl: 160px;
  
  --max-page: 1440px;
}

/* ========================================================
   GLOBAL RESETS & BASICS
   ======================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 12px 24px;
  z-index: 99999;
}

/* ========================================================
   TYPOGRAPHY — Playfair Display as global H1/heading font
   ======================================================== */

/* ── Global heading reset: Playfair Display for ALL h1–h6 ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.12;
}

h3 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

h4 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
}

h5, h6 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-hero {
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
}

.text-h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
}

.text-body-large {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.text-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-coral);
  margin-bottom: var(--space-md);
}

/* ========================================================
   LAYOUT & NEGATIVE SPACING
   ======================================================== */
.container {
  width: 100%;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.py-160 { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-120 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.pt-160 { padding-top: var(--space-3xl); }
.pb-160 { padding-bottom: var(--space-3xl); }

.page {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: var(--max-page);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  box-sizing: border-box;
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 900px) {
  .grid-asymmetric {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .grid-asymmetric.right-heavy { grid-template-columns: 4fr 6fr; }
  .grid-asymmetric.left-heavy { grid-template-columns: 6fr 4fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ========================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.08);
}

.hover-zoom-img {
  overflow: hidden;
}
.hover-zoom-img img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-zoom-img:hover img {
  transform: scale(1.05);
}

/* ========================================================
   COMPONENTS
   ======================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 32px;
  height: 52px;
  border-radius: 999px;
}
.btn.primary {
  background: var(--color-coral);
  color: var(--color-white);
}
.btn.primary:hover {
  background: var(--color-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(224, 106, 78, 0.3);
}
.btn.secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.btn.ghost {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}
.btn.ghost:hover {
  border-color: var(--color-charcoal);
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(224, 106, 78, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-charcoal);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border-dark);
}
.btn-outline-white:hover {
  border-color: var(--color-white);
  transform: translateY(-2px);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-coral);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.3s ease;
}
.btn-link:hover {
  gap: 12px;
}

/* Header & Navigation Layouts */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 24px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.dark-theme {
  --header-text-color: white;
}
.site-header:not(.dark-theme) {
  --header-text-color: var(--color-charcoal);
}
.site-header.glass {
  padding: 16px 0;
  background: rgba(253, 251, 247, 0.85); /* cream glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 32px rgba(0,0,0,0.05);
  --header-text-color: var(--color-charcoal) !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-white);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links, .auth-buttons {
    display: none !important;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-actions > .nav-item,
  .nav-actions > .btn {
    display: none !important;
  }

  .mobile-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Header & Glassmorphism (Legacy classes if needed) */
.header-glass {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 24px 0;
}
.header-glass.scrolled {
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.header-glass .brand {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.header-glass .nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.header-glass .nav-links a:hover {
  color: var(--color-white);
}

/* Orbs (Background Elements) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
  animation: float 10s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.1); }
}

/* Footer Layout */
.site-footer {
  background: #111111;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}

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

.footer-link {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
}
@media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-card.col-span-2 { grid-column: span 2; }
.bento-card.row-span-2 { grid-row: span 2; }
.bento-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s ease;
}
.bento-card:hover .bento-bg {
  transform: scale(1.05);
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,22,22,0.95) 0%, rgba(22,22,22,0.4) 50%, transparent 100%);
  z-index: 1;
}
.bento-content {
  position: relative;
  z-index: 2;
}

/* Cards */
.card-problem {
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.03);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.card-problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-problem:hover {
  transform: translateY(-16px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card-problem:hover::before {
  transform: scaleX(1);
}

.card-problem i {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-problem:hover i {
  transform: scale(1.15) translateY(-4px);
}

/* Horizontal Scroll */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding-bottom: 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

/* Test Section Styles */
.test-list-item {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.test-list-item:hover, .test-list-item.active {
  color: var(--color-coral);
  background: rgba(255,255,255,0.05);
  transform: translateX(8px);
}

.test-list-item i {
  transition: transform 0.3s ease;
}

.test-list-item:hover i {
  transform: translateX(4px);
}

.test-preview-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.test-option-btn {
  text-align: left;
  background: var(--color-cream);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--color-charcoal);
  justify-content: flex-start;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: flex;
  width: 100%;
}

.test-option-btn:hover {
  background: var(--color-white);
  border-color: var(--color-coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.test-option-btn:active {
  transform: translateY(0);
}
.horizontal-scroll::-webkit-scrollbar { display: none; }
.scroll-item {
  min-width: 400px;
  scroll-snap-align: start;
}

/* CBT Tabs */
.cbt-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 24px;
  border: 1px solid transparent;
}
.cbt-tab:hover {
  background: var(--color-cream);
}
.cbt-tab.active {
  background: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: 0 24px 48px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border);
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: var(--color-charcoal);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  padding: 24px 0;
}
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Custom Infographic */
.stat-bar-container {
  height: 8px;
  background: var(--color-cream);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.stat-bar-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--color-coral);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .nav-links, .auth-buttons {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .mobile-menu-button {
    display: block;
  }
}

/* Backgrounds */
.bg-charcoal { background-color: var(--color-charcoal); color: var(--color-white); }
.bg-cream { background-color: var(--color-cream); color: var(--color-charcoal); }
.bg-coral { background-color: var(--color-coral); color: var(--color-white); }
.bg-white { background-color: var(--color-white); color: var(--color-charcoal); }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-64 { margin-top: 64px; }
.color-coral { color: var(--color-coral); }
.color-muted { color: var(--color-text-muted); }
.color-white { color: var(--color-white); }

/* Glass Navigation Transition */
.nav.glass {
  background: rgba(26, 26, 24, 0.85); /* #1A1A18 at 85% */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
}

/* Animations */
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.orb-breathe { animation: orb-breathe 8s ease-in-out infinite; }
.orb-breathe.delay-1 { animation-duration: 9s; animation-delay: 1s; }
.orb-breathe.delay-2 { animation-duration: 10s; animation-delay: 2s; }

@keyframes float-vertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.anim-float { animation: float-vertical 6s ease-in-out infinite; }

@keyframes svg-fade {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* Mega Dropdown */
.nav-item { position: relative; }

/* Desktop Hero Background */
@media (min-width: 1024px) {
  .hero-banner-section {
    background: url("../../assets/images/backgrounds/hero-background.png") center/cover no-repeat !important;
  }
}
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.1);
  width: 700px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  z-index: 100;
  pointer-events: none;
  text-align: left;
}
.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.language-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.1);
  width: 220px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  transform: translateX(-50%) translateY(10px);
  z-index: 100;
  pointer-events: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item:hover .language-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-dropdown.resources {
  width: 300px;
  grid-template-columns: 1fr;
}

/* Layouts */
.split-55-45 { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; }
.split-30-70 { display: grid; grid-template-columns: 30fr 70fr; gap: 48px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }

/* Healing Pathway */
.healing-pathway {
  padding: 112px 0;
  background: #f6f2ec;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.healing-pathway-header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: end;
  gap: 96px;
  margin-bottom: 56px;
}

.healing-pathway-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-coral);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.healing-pathway-kicker i {
  font-size: 17px;
}

.healing-pathway-heading h2 {
  max-width: 680px;
  margin-top: 20px;
  color: var(--color-charcoal);
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.healing-pathway-intro {
  max-width: 560px;
  padding-bottom: 4px;
}

.healing-pathway-intro > p {
  color: #585751;
  font-size: 18px;
  line-height: 1.7;
}

.healing-pathway-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
}

.healing-pathway-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-charcoal);
  font-size: 13px;
  font-weight: 750;
}

.healing-pathway-trust i {
  color: var(--color-coral);
  font-size: 17px;
}

.healing-pathway-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--color-white);
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(42, 34, 27, 0.08);
  list-style: none;
}

.healing-pathway-step {
  min-width: 0;
}

.healing-pathway-step + .healing-pathway-step {
  border-left: 1px solid rgba(22, 22, 22, 0.09);
}

.healing-pathway-step-link {
  display: flex;
  min-height: 390px;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: inherit;
  text-decoration: none;
  transition: background-color 220ms ease;
}

.healing-pathway-step-link:hover,
.healing-pathway-step-link:focus-visible {
  background: #fff9f6;
  outline: none;
}

.healing-pathway-step-link:focus-visible {
  box-shadow: inset 0 0 0 3px var(--color-coral);
}

.healing-pathway-step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.healing-pathway-step-number {
  color: #9c9992;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.healing-pathway-step-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 25px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.healing-pathway-step-icon--coral {
  background: var(--color-coral);
  color: var(--color-white);
}

.healing-pathway-step-icon--ink {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.healing-pathway-step-icon--sage {
  background: #dce9df;
  color: #28583a;
}

.healing-pathway-step-link:hover .healing-pathway-step-icon,
.healing-pathway-step-link:focus-visible .healing-pathway-step-icon {
  transform: translateY(-5px) rotate(-3deg);
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.16);
}

.healing-pathway-step-copy {
  margin-top: 56px;
}

.healing-pathway-step-meta {
  display: block;
  margin-bottom: 14px;
  color: var(--color-coral);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.healing-pathway-step-copy h3 {
  max-width: 360px;
  color: var(--color-charcoal);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
}

.healing-pathway-step-copy p {
  max-width: 380px;
  margin-top: 18px;
  color: #66645f;
  font-size: 15px;
  line-height: 1.7;
}

.healing-pathway-step-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 800;
}

.healing-pathway-step-action i {
  color: var(--color-coral);
  font-size: 16px;
  transition: transform 200ms ease;
}

.healing-pathway-step-link:hover .healing-pathway-step-action i,
.healing-pathway-step-link:focus-visible .healing-pathway-step-action i {
  transform: translate(3px, -3px);
}

.healing-pathway-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 42px;
  flex-wrap: wrap;
  padding-top: 30px;
  color: #65635d;
  font-size: 13px;
  font-weight: 650;
}

.healing-pathway-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.healing-pathway-proof i {
  color: var(--color-coral);
  font-size: 17px;
}

@media (max-width: 980px) {
  .healing-pathway {
    padding: 96px 0;
  }

  .healing-pathway-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .healing-pathway-heading h2 {
    font-size: 54px;
  }

  .healing-pathway-steps {
    grid-template-columns: 1fr;
  }

  .healing-pathway-step + .healing-pathway-step {
    border-top: 1px solid rgba(22, 22, 22, 0.09);
    border-left: 0;
  }

  .healing-pathway-step-link {
    min-height: 0;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding: 32px;
  }

  .healing-pathway-step-top {
    flex-direction: column;
  }

  .healing-pathway-step-copy {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .healing-pathway {
    padding: 76px 0;
  }

  .healing-pathway-header {
    margin-bottom: 38px;
  }

  .healing-pathway-heading h2 {
    font-size: 44px;
    line-height: 1.06;
  }

  .healing-pathway-intro > p {
    font-size: 16px;
  }

  .healing-pathway-trust {
    flex-direction: column;
  }

  .healing-pathway-step-link {
    display: flex;
    padding: 26px 24px 28px;
  }

  .healing-pathway-step-top {
    flex-direction: row;
  }

  .healing-pathway-step-copy {
    margin-top: 38px;
    padding-right: 44px;
  }

  .healing-pathway-step-copy h3 {
    font-size: 27px;
  }

  .healing-pathway-proof {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 4px;
  }

  .chat-widget {
    width: 46px !important;
    height: 46px !important;
    right: 10px !important;
    bottom: 12px !important;
    font-size: 21px !important;
  }
}

@media (max-width: 900px) {
  .split-55-45, .split-30-70, .grid-5 { grid-template-columns: 1fr; }
}

/* Testimonial Carousel */
.carousel-container { display: flex; overflow-x: hidden; scroll-snap-type: x mandatory; }
.carousel-slide { min-width: 100%; flex: 0 0 100%; scroll-snap-align: start; }

/* Filter Bar */
.filter-bar { display: inline-flex; gap: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; margin-bottom: 48px; }
.filter-tab {
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.filter-tab:hover {
  color: var(--color-coral);
  border-color: var(--color-coral);
  background: var(--color-cream);
}
.filter-tab.active {
  color: var(--color-coral) !important;
  background: var(--color-white) !important;
  border: 1.5px solid var(--color-coral) !important;
  box-shadow: 0 4px 12px rgba(224, 106, 78, 0.15) !important;
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

/* Map Overlay */
.map-panel {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  width: 320px;
}

/* Floating Elements */
.floating-ai {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 100px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.floating-cta.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================================
   AUTH FORM & SPLIT LAYOUT
   ======================================================== */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-split-left {
  display: none;
  width: 40%;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  background: var(--color-charcoal);
  overflow: hidden;
}

.auth-split-left .auth-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.auth-split-left .auth-hero-text {
  position: absolute;
  bottom: 64px;
  left: 48px;
  right: 48px;
  color: var(--color-white);
  z-index: 2;
}

.auth-split-left .auth-hero-text h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.auth-split-left .auth-hero-text p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.auth-split-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-close-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.auth-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(224, 106, 78, 0.25);
}

.auth-close-btn:active {
  transform: scale(0.9) rotate(90deg);
}

.auth-card .page-subtitle {
  text-align: left;
  margin-top: 0;
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .auth-split-left {
    display: block;
  }
  .auth-split-right {
    width: 60%;
    margin-left: 40%;
  }
}

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px var(--space-lg) var(--space-xl);
  background-color: var(--color-cream);
  flex: 1;
}

.auth-card {
  background: var(--color-white);
  padding: 80px 100px;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.06);
  max-width: 640px;
  width: 100%;
}

.auth-card[data-mode="signup"] {
  max-width: 980px;
}

.auth-card .eyebrow {
  color: var(--color-coral);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
}

.auth-card h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--color-charcoal);
  margin-bottom: 12px;
  line-height: 1.2;
}

.auth-card .page-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.auth-card[data-mode="login"] .form-grid {
  grid-template-columns: 1fr;
}

.full-width {
  grid-column: span 1;
}

.auth-card[data-mode="login"] .full-width {
  grid-column: span 1;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #475569; /* Slate 600 */
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.field input, .field select, input.form-control, select.form-control {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
  padding: 0 20px;
  border: 1px solid #e2e8f0; /* Slate 200 */
  border-radius: 14px;
  font-size: 16px;
  font-family: var(--font-sans);
  background: #f8fafc; /* Slate 50 */
  color: #0f172a; /* Slate 900 */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.field textarea, textarea.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px solid #e2e8f0; /* Slate 200 */
  border-radius: 14px;
  font-size: 16px;
  font-family: var(--font-sans);
  background: #f8fafc; /* Slate 50 */
  color: #0f172a; /* Slate 900 */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  resize: vertical;
  min-height: 120px;
}

/* Custom premium arrow for select fields */
.field select, select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  padding-right: 48px !important;
  cursor: pointer;
}

.field input:focus, .field select:focus, .field textarea:focus,
input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-coral);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 0 0 4px rgba(224, 106, 78, 0.15);
}

/* Premium Unified Phone Number Field */
.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  height: 56px;
  box-sizing: border-box;
}

.phone-input-group:focus-within {
  background: #ffffff;
  border-color: var(--color-coral);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 0 0 4px rgba(224, 106, 78, 0.15);
}

.country-dropdown-container {
  position: relative;
  flex-shrink: 0;
  height: 100%;
}

.country-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  cursor: pointer;
  outline: none;
  font-weight: 500;
  border-radius: 14px 0 0 14px;
  transition: background-color 0.2s ease;
}

.country-dropdown-trigger:hover,
.country-dropdown-trigger.active {
  background-color: var(--color-bg-light);
}

.country-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 100;
  min-width: 200px;
  padding: 6px;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  transition: all 0.2s ease;
}

.country-option:hover {
  background-color: var(--color-bg-light);
}

.country-option .flag {
  font-size: 18px;
}

.country-option .name {
  flex: 1;
  font-weight: 500;
}

.country-option .code {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Custom Premium Checkbox Styling */
.field input[type="checkbox"], input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.field input[type="checkbox"]:hover, input[type="checkbox"]:hover {
  border-color: var(--color-coral);
}

.field input[type="checkbox"]:checked, input[type="checkbox"]:checked {
  background-color: var(--color-coral);
  border-color: var(--color-coral);
}

.field input[type="checkbox"]::before, input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg) translate(0px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.field input[type="checkbox"]:checked::before, input[type="checkbox"]:checked::before {
  opacity: 1;
}

.field input[type="checkbox"]:focus-visible, input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(224, 106, 78, 0.2);
}

.field input[type="checkbox"]:disabled, input[type="checkbox"]:disabled {
  background-color: var(--color-bg-light);
  border-color: var(--color-border);
  cursor: not-allowed;
  opacity: 0.7;
}

.field input[type="checkbox"]:disabled:checked, input[type="checkbox"]:disabled:checked {
  background-color: var(--color-text-muted);
  border-color: var(--color-text-muted);
}

/* Enhanced Input Icons */
.input-wrapper,
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.field-icon {
  position: absolute;
  left: 16px;
  font-size: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animate icon on focus of sibling input/select */
.input-wrapper input:focus ~ .field-icon,
.input-wrapper select:focus ~ .field-icon,
.password-input-wrapper input:focus ~ .field-icon {
  color: var(--color-coral);
  transform: scale(1.1);
}

.auth-card button[type="submit"] {
  margin-top: 12px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  justify-content: center;
}

.auth-card > p {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
}

.auth-card .ghost-link {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}

.auth-card .ghost-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .auth-wrap {
    padding: 120px 16px 40px;
  }
  
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
  
  .auth-card .page-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }
}

/* ========================================================
   SERVICE & COUNSELLOR CARDS
   ======================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(224, 106, 78, 0.3);
}

.service-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-cream);
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 0;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.2;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag, .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag {
  background: var(--color-cream);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.status-pill {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-charcoal);
}

.status-pill.success {
  background: rgba(52, 199, 89, 0.1);
  color: #248A3D;
}

.status-pill.warning {
  background: rgba(255, 149, 0, 0.1);
  color: #CC7A00;
}

.service-card form {
  margin-top: auto;
  padding-top: 16px;
}

.service-card button {
  width: 100%;
}

.counsellor-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.counsellor-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.counsellor-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  color: #3182ce;
  font-size: 16px;
  display: inline-flex;
}

.counsellor-title {
  font-size: 13px;
  color: var(--color-text-muted) !important;
  margin: 0;
}

.counsellor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.spec-tag {
  background: rgba(224, 106, 78, 0.05);
  color: var(--color-coral);
  border: 1px solid rgba(224, 106, 78, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.counsellor-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.counsellor-languages i {
  font-size: 14px;
  color: #718096;
}

.lang-text {
  font-weight: 500;
  color: var(--color-charcoal);
}

.lang-separator {
  color: #cbd5e0;
  font-size: 8px;
  margin: 0 2px;
}

.status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 6px;
}

.counsellor-profile {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.counsellor-profile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  border-color: var(--color-coral) !important;
}
.counsellor-profile img {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.counsellor-profile:hover img {
  transform: scale(1.05);
  border-color: var(--color-coral) !important;
}
.counsellor-profile .btn {
  transition: all 0.3s ease;
}
.counsellor-prof.ai-safety-card .btn {
  margin-top: 20px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.ai-safety-card .btn:hover {
  background: rgba(235, 94, 40, 0.1);
  border-color: rgba(235, 94, 40, 0.5);
  color: var(--color-coral);
}

.ai-chat-layout {
  display: flex;
  height: 100vh;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transform: translateZ(0);
}

.ai-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-cream);
  min-width: 0;
  container-type: inline-size;
}

.ai-chat-header {
  padding: 16px 28px 16px 44px;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.ai-chat-header-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--color-coral), #ff8a65);
  box-shadow: 0 4px 14px rgba(224, 106, 78, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1;
}

.ai-chat-header-info {
  flex-shrink: 0;
}

.ai-chat-header-info h2 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 3px 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ai-chat-header-info p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-header-info p::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

/* =========================================
   AI CHAT HEADER ACTIONS
   ========================================= */
.ai-chat-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(235, 94, 40, 0.05);
  border: 1px solid rgba(235, 94, 40, 0.12);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.wallet-badge i {
  color: var(--color-coral);
  font-size: 16px;
}

.wallet-amount {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-coral);
}

.btn.ai-btn-action {
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 20px !important;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn.ai-btn-action.secondary {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-charcoal);
}

.btn.ai-btn-action.secondary:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn.ai-btn-action.dark-btn {
  background: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  color: white;
}

.btn.ai-btn-action.dark-btn:hover {
  background: #2b2b2b;
  border-color: #2b2b2b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Container Queries for squeezed layouts inside the dashboard main panel */
@container (max-width: 960px) {
  .btn.ai-btn-action .btn-label,
  .btn.ai-btn-action .btn-text {
    display: none;
  }
  .btn.ai-btn-action {
    padding: 8px;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
  }
  .ai-btn-action i {
    font-size: 16px;
    margin: 0 !important;
  }
}

@container (max-width: 480px) {
  .ai-chat-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .ai-chat-header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .btn.ai-btn-action .btn-label,
  .btn.ai-btn-action .btn-text {
    display: none;
  }
  .btn.ai-btn-action {
    padding: 8px;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
  }
  .ai-btn-action i {
    font-size: 16px;
    margin: 0 !important;
  }
}

@media (max-width: 540px) {
  .ai-chat-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .ai-chat-header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}


.ai-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f9f9fb;
}

.chat-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble-wrapper.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-wrapper.ai {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.chat-bubble-wrapper.user .chat-bubble {
  background: linear-gradient(135deg, var(--color-coral), #f77f00);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 24px rgba(235, 94, 40, 0.2);
}

.chat-bubble-wrapper.ai .chat-bubble {
  background: white;
  color: var(--color-charcoal);
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.chat-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
  padding: 0 4px;
}

.ai-chat-input-area {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.ai-chat-input-wrapper:focus-within {
  border-color: var(--color-coral);
  box-shadow: 0 8px 24px rgba(235, 94, 40, 0.1);
}

.ai-chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--color-charcoal);
}

.ai-chat-send-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-coral);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(235, 94, 40, 0.3);
}

.ai-chat-sidebar {
  width: 360px;
  background: linear-gradient(180deg, var(--color-charcoal) 0%, #11111a 100%);
  color: white;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  position: relative;
}

/* Dark scrollbar for the sidebar */
.ai-chat-sidebar::-webkit-scrollbar {
  width: 8px;
}
.ai-chat-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.ai-chat-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-chat-sidebar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 200px;
  background: radial-gradient(circle at top right, rgba(235, 94, 40, 0.15), transparent 70%);
  pointer-events: none;
}

.ai-safety-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.ai-safety-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(235, 94, 40, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ai-safety-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-coral);
}

.ai-safety-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

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

/* =========================================
   PANEL LAYOUT (User / Counsellor / Admin)
   ========================================= */
.panel-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--color-background);
}

.panel-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--color-border);
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
}

.sidebar-brand-container {
  margin-bottom: 16px;
}

.panel-sidebar .brand {
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.panel-sidebar .brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}

.panel-sidebar > p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.panel-sidebar .status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  margin: 0;
  white-space: nowrap;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.panel-link:hover {
  background: var(--color-surface);
}

.panel-link.active {
  background: var(--color-coral);
  color: white;
  box-shadow: 0 4px 12px rgba(235, 94, 40, 0.2);
}

.panel-link span {
  font-size: 18px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.panel-link.active span {
  opacity: 1;
  transform: translateX(4px);
}

.panel-sidebar .section-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.panel-sidebar .section-actions .btn {
  width: 100%;
  justify-content: center;
}

.panel-main {
  flex: 1;
  padding: 40px;
  background: var(--color-background);
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.panel-main:has(.ai-chat-layout) {
  padding: 0;
  max-width: none;
  overflow: hidden;
}

/* Dashboard UI */
.panel-hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2a2a35 100%);
  color: white;
  border-radius: 24px;
  padding: 40px 48px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.panel-hero h1.page-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 8px;
}

.panel-hero p.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.dashboard-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dashboard-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card p {
  color: #666;
  line-height: 1.5;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.metric strong {
  font-size: 40px;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-coral);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.metric span {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card .list-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dashboard-card .list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dashboard-card .list-item:first-child {
  padding-top: 0;
}

.mood-studio {
  position: relative;
  overflow: hidden;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82)),
    radial-gradient(circle at 12% 8%, rgba(224, 106, 78, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(96, 148, 131, 0.18), transparent 30%);
}

.mood-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/images/backgrounds/hero-wellness-1600x1000.svg") center/cover;
  opacity: 0.08;
  pointer-events: none;
}

.mood-studio > * {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.mood-studio-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.mood-studio-header h3 {
  margin-bottom: 8px;
}

.mood-studio-header p {
  margin: 0;
  max-width: 320px;
  color: #666;
}

.mood-orb {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(224, 106, 78, 0.22);
  transform: scale(calc(0.9 + var(--mood-level) * 0.015));
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.mood-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mood-orb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 36px;
  background: rgba(26, 26, 24, 0.36);
}

.mood-intensity-card {
  width: min(800px, 100%);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.54)),
    radial-gradient(circle at 15% 0%, rgba(49,151,149,0.12), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(224,106,78,0.14), transparent 36%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mood-spectrum {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mood-intensity-control {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

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

.mood-intensity-header label,
.mood-intensity-header output {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-charcoal);
}

.mood-intensity-header label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mood-intensity-header label i {
  color: var(--color-coral);
  font-size: 18px;
}

.mood-intensity-header output {
  min-width: 56px;
  text-align: right;
  font-size: 18px;
  color: var(--color-coral);
}

.mood-intensity-control input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.mood-intensity-control input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a5568 0%, #319795 28%, #48bb78 52%, #dd6b20 74%, var(--color-coral) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.52);
}

.mood-intensity-control input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a5568 0%, #319795 28%, #48bb78 52%, #dd6b20 74%, var(--color-coral) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.52);
}

.mood-intensity-control input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -9px;
  border: 3px solid white;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-coral);
  box-shadow: 0 8px 18px rgba(224, 106, 78, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mood-intensity-control input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 8px 18px rgba(224, 106, 78, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mood-intensity-control input[type="range"]:hover::-webkit-slider-thumb,
.mood-intensity-control input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(224, 106, 78, 0.34);
}

.mood-intensity-control input[type="range"]:hover::-moz-range-thumb,
.mood-intensity-control input[type="range"]:focus::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(224, 106, 78, 0.34);
}

.mood-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  color: rgba(26, 26, 24, 0.48);
  text-align: center;
}

.mood-chip {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-charcoal);
  cursor: pointer;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mood-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mood-chip:focus {
  outline: none;
}

.mood-chip:hover {
  transform: translateY(-6px);
  background: var(--color-white);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.mood-chip:hover::before {
  opacity: 1;
}

.mood-chip:active {
  transform: translateY(-2px) scale(0.97);
  transition: all 0.1s ease;
}

/* Custom themed active colors and shadows */
.mood-chip[data-score="1"] i { color: #4a5568; }
.mood-chip[data-score="1"].active {
  border-color: #4a5568;
  background: rgba(74, 85, 104, 0.03);
  box-shadow: 0 12px 28px rgba(74, 85, 104, 0.12), inset 0 0 12px rgba(74, 85, 104, 0.03);
}

.mood-chip[data-score="3"] i { color: #319795; }
.mood-chip[data-score="3"].active {
  border-color: #319795;
  background: rgba(49, 151, 149, 0.03);
  box-shadow: 0 12px 28px rgba(49, 151, 149, 0.12), inset 0 0 12px rgba(49, 151, 149, 0.03);
}

.mood-chip[data-score="5"] i { color: #48bb78; }
.mood-chip[data-score="5"].active {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.03);
  box-shadow: 0 12px 28px rgba(72, 187, 120, 0.12), inset 0 0 12px rgba(72, 187, 120, 0.03);
}

.mood-chip[data-score="7"] i { color: #dd6b20; }
.mood-chip[data-score="7"].active {
  border-color: #dd6b20;
  background: rgba(221, 107, 32, 0.03);
  box-shadow: 0 12px 28px rgba(221, 107, 32, 0.12), inset 0 0 12px rgba(221, 107, 32, 0.03);
}

.mood-chip[data-score="10"] i { color: var(--color-coral); }
.mood-chip[data-score="10"].active {
  border-color: var(--color-coral);
  background: rgba(224, 106, 78, 0.03);
  box-shadow: 0 12px 28px rgba(224, 106, 78, 0.12), inset 0 0 12px rgba(224, 106, 78, 0.03);
}

.mood-chip i {
  font-size: 24px;
  margin-bottom: 2px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Micro-interactions: specific animations on hover */
.mood-chip[data-score="1"]:hover i {
  animation: sway-rain 1.5s ease-in-out infinite;
}
.mood-chip[data-score="3"]:hover i {
  animation: float-waves 1.8s ease-in-out infinite;
}
.mood-chip[data-score="5"]:hover i {
  animation: rustle-leaf 1.2s ease-in-out infinite;
}
.mood-chip[data-score="7"]:hover i {
  animation: glow-sun 2.5s linear infinite;
}
.mood-chip[data-score="10"]:hover i {
  animation: launch-rocket 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

@keyframes sway-rain {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-5deg) translateY(-1px); }
  75% { transform: rotate(5deg) translateY(1px); }
}

@keyframes float-waves {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.05); }
}

@keyframes rustle-leaf {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-10deg); }
  70% { transform: rotate(10deg); }
}

@keyframes glow-sun {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0px rgba(221,107,32,0)); }
  50% { transform: scale(1.1) rotate(15deg); filter: drop-shadow(0 0 6px rgba(221,107,32,0.4)); }
  100% { transform: scale(1) rotate(30deg); filter: drop-shadow(0 0 0px rgba(221,107,32,0)); }
}

@keyframes launch-rocket {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(2px, -3px) scale(1.05); }
  80% { transform: translate(-1px, 1px) scale(0.98); }
}

.mood-chip strong {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.mood-chip span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mood-infographic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 800px;
  width: 100%;
  margin-bottom: 24px;
}

.mood-infographic-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.mood-art-panel {
  min-height: 118px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(224, 106, 78, 0.08);
}

.mood-art-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms ease;
}

.mood-art-panel:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.mood-wave-container,
.mood-compass {
  min-height: 124px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.mood-wave-container {
  padding: 12px 16px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.mood-wave-svg {
  width: 100%;
  height: 100%;
  min-height: 130px;
  overflow: visible;
}

.chart-bar-group {
  cursor: pointer;
}

.chart-bar {
  transform-origin: bottom;
  transform: scaleY(0);
  animation: grow-bar-scale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

@keyframes grow-bar-scale {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.chart-bar-group:hover .chart-bar {
  transform: scaleY(1.05) scaleX(1.05);
  filter: brightness(1.08);
}

.chart-bar-tooltip {
  opacity: 0;
  transform: translateY(6px);
  transform-origin: bottom center;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chart-bar-group:hover .chart-bar-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chart-bar-tooltip .tooltip-bg {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mood-compass {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px 24px;
}

.compass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compass-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal);
  width: 68px;
  flex-shrink: 0;
}

.compass-row:nth-child(1) .compass-label i { color: var(--color-coral); }
.compass-row:nth-child(2) .compass-label i { color: #2b6cb0; }
.compass-row:nth-child(3) .compass-label i { color: #805ad5; }

.compass-label i {
  font-size: 15px;
}

.compass-bar-wrapper {
  flex: 1;
  height: 5px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  overflow: hidden;
}

.compass-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compass-percent {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.mood-prompt-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-sub-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mood-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.prompt-chip:focus {
  outline: none;
}

.prompt-chip:hover {
  background: var(--color-cream);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.prompt-chip.active {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: white;
  box-shadow: 0 4px 10px rgba(224, 106, 78, 0.2);
  transform: translateY(-1px);
}

.mood-note-field textarea {
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 92px;
  resize: vertical;
}

.mood-save-btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.mood-studio.is-pulsing .mood-orb {
  animation: moodPulse 520ms ease;
}

.mood-studio.is-saved .mood-save-btn {
  animation: moodSaved 720ms ease;
}

@keyframes moodPulse {
  0% { transform: scale(calc(0.9 + var(--mood-level) * 0.015)); }
  45% { transform: scale(calc(1 + var(--mood-level) * 0.018)); }
  100% { transform: scale(calc(0.9 + var(--mood-level) * 0.015)); }
}

@keyframes moodSaved {
  0% { box-shadow: 0 0 0 0 rgba(96, 148, 131, 0.38); }
  100% { box-shadow: 0 0 0 18px rgba(96, 148, 131, 0); }
}

/* =========================================
   ANALYSIS CARDS REDESIGN
   ========================================= */
.analysis-card-redesign {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  padding: 32px 28px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analysis-card-redesign:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.analysis-card-redesign h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-charcoal);
  margin-top: 12px;
  margin-bottom: 4px;
}

.analysis-card-redesign .card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.card-header-accent {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.analysis-thumbnail {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  background: var(--color-background);
}

.analysis-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.analysis-card-redesign:hover .analysis-thumbnail img {
  transform: scale(1.05);
}

.card-header-accent.dream {
  background: rgba(235, 94, 40, 0.1);
  color: var(--color-coral);
}

.card-header-accent.handwriting {
  background: rgba(43, 108, 176, 0.1);
  color: #2b6cb0;
}

.card-header-accent.signature {
  background: rgba(128, 90, 213, 0.1);
  color: #805ad5;
}

.analysis-card-redesign textarea {
  width: 100%;
  background: rgba(26, 26, 24, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-charcoal);
  min-height: 80px;
  resize: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.analysis-card-redesign textarea:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(26, 26, 24, 0.035);
}

.analysis-card-redesign textarea:focus {
  outline: none;
  border-color: var(--color-coral);
  background: white;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01), 0 4px 16px rgba(235, 94, 40, 0.06), 0 0 0 3px rgba(235, 94, 40, 0.12);
}

.file-upload-dropzone-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(26, 26, 24, 0.02);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.file-upload-dropzone-compact i {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.file-upload-dropzone-compact:hover {
  border-color: var(--color-coral);
  border-style: dashed;
  background: rgba(224, 106, 78, 0.03);
  color: var(--color-coral);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(224, 106, 78, 0.04);
}

.file-upload-dropzone-compact:hover i {
  transform: translateY(-2px);
}

.file-upload-dropzone-compact.has-file {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.03);
  color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.analysis-card-redesign .submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
  gap: 8px;
}

/* =========================================
   UPCOMING SESSIONS REDESIGN
   ========================================= */
.dashboard-card .list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.session-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.session-list-item:last-child {
  border-bottom: none;
}

.session-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.session-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-title {
  font-size: 15px;
  color: var(--color-charcoal);
}

.session-title strong {
  font-weight: 600;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-time {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-pill.mini {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 6px;
  text-transform: capitalize;
}

.session-price {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .span-4 { grid-column: span 6; }
  .mood-spectrum {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mood-infographic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .panel-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .panel-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .panel-main {
    padding: 24px 16px;
  }
  .mood-studio-header {
    align-items: center;
  }
  .mood-spectrum {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mood-chip {
    min-height: 92px;
  }
  .mood-intensity-card {
    padding: 16px;
    gap: 16px;
  }
  .mood-intensity-control {
    padding: 0;
  }
  .mood-intensity-header {
    align-items: flex-start;
    gap: 8px;
  }
  .mood-scale {
    font-size: 9px;
  }
  /* Hide toggle button on mobile since layout is stacked vertical */
  .sidebar-toggle {
    display: none !important;
  }
}

/* Collapsible navigation helpers */
.panel-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panel-sidebar.collapsed .panel-link-left {
  justify-content: center;
  width: 100%;
  gap: 0;
}

.panel-sidebar {
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.panel-sidebar.collapsed {
  width: 80px !important;
  padding: 20px 14px 16px !important;
  align-items: center;
}

/* Hide labels and non-essential text elements when left sidebar is collapsed */
.panel-sidebar.collapsed > p,
.panel-sidebar.collapsed .brand-meta,
.panel-sidebar.collapsed .panel-link .link-label,
.panel-sidebar.collapsed .panel-link .chevron,
.panel-sidebar.collapsed .section-actions a span,
.panel-sidebar.collapsed .section-actions button span {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  display: none !important;
  overflow: hidden;
}

.panel-sidebar.collapsed .brand {
  justify-content: center;
  margin-bottom: 32px;
}

.panel-sidebar.collapsed .brand img {
  margin: 0;
  height: 36px;
  width: 36px;
}

.panel-sidebar.collapsed .panel-nav {
  gap: 12px;
  width: 100%;
  align-items: center;
}

.panel-sidebar.collapsed .panel-link {
  justify-content: center;
  padding: 14px 0 !important;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.panel-sidebar.collapsed .panel-link i {
  font-size: 20px;
  margin: 0;
}

/* Section Actions Collapsed state */
.panel-sidebar.collapsed .section-actions {
  width: 100%;
  align-items: center;
  gap: 8px;
}

.panel-sidebar.collapsed .section-actions .btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.panel-sidebar.collapsed .section-actions .btn i {
  font-size: 18px;
  margin: 0;
}

/* Sidebar Toggle button styling */
.sidebar-toggle {
  position: absolute;
  top: 40px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: var(--color-charcoal);
  transform: translateY(-50%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle:hover {
  background: var(--color-background);
  transform: translateY(-50%) scale(1.08);
  color: var(--color-coral);
}

/* Adjust toggle position */
.sidebar-toggle i {
  font-size: 14px;
}

/* AI Chat Safety Sidebar Collapsed State */
.ai-chat-sidebar {
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ai-chat-sidebar.collapsed {
  width: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
}

/* Collapsible toggle active state styling */
.btn.ai-btn-action.active {
  background: var(--color-coral) !important;
  color: white !important;
  border-color: var(--color-coral) !important;
}

/* =========================================
   BENTO GRID GRAPHICS & MICROINTERACTIONS
   ========================================= */
.bento-card-custom {
  cursor: pointer;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.08);
}

.bento-card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: rgba(235, 94, 40, 0.3);
}

/* Card 1 Animations */
.bento-card-custom:hover .bento-chat-bubble {
  transform: rotate(-1deg) translateY(10px) translateX(5px) scale(1.02);
}
.bento-card-custom:hover .bento-glass-badge {
  transform: rotate(8deg) translateY(0px) scale(1.05);
}

/* Card 2 Animations */
.bento-card-custom:hover .bento-mini-card.left {
  transform: translateY(0px) rotate(-1deg) scale(1.03);
}
.bento-card-custom:hover .bento-mini-card.right {
  transform: translateY(10px) rotate(1deg) scale(1.03);
}

/* Progress bar transitions on Card 2 hover */
.bento-mini-card .progress-fill-energy {
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card-custom:hover .progress-fill-energy {
  width: 80%;
}

.bento-mini-card .progress-fill-sleep {
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.bento-card-custom:hover .progress-fill-sleep {
  width: 65%;
}

/* SVG Overlapping Bubble transitions on Card 2 hover */
.bento-mini-card .diag-circle-1 {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), fill-opacity 0.3s;
  transform-origin: 35px 30px;
}
.bento-card-custom:hover .diag-circle-1 {
  transform: scale(1.08) translate(-1px, -1px);
}

.bento-mini-card .diag-circle-2 {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, fill-opacity 0.3s;
  transform-origin: 65px 30px;
}
.bento-card-custom:hover .diag-circle-2 {
  transform: scale(1.08) translate(1px, 1px);
}

.bento-mini-card .diag-circle-3 {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  transform-origin: 50px 22px;
}
.bento-card-custom:hover .diag-circle-3 {
  transform: scale(1.12) translateY(-2px);
}

/* Card 3 Animations */
.bento-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-sidebar-item:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: translateX(6px);
}

/* Card 4 Animations */
.bento-card-wide:hover .bento-counsellor-img {
  transform: scale(1.04) rotate(0.5deg);
}
.bento-counsellor-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-sidebar-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.bento-sidebar-item-card:hover {
  background: #fdfdfd;
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(235, 94, 40, 0.15);
}

/* Bento Cutout Images styling */
.bento-card-custom .bento-cutout-img {
  position: absolute;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.bento-card-custom:hover .bento-cutout-img {
  transform: scale(1.06) translateY(-8px);
}

/* =========================================
   CBT TOOLKIT REDESIGN CARDS
   ========================================= */
.cbt-tool-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  border-top: 4px solid var(--cbt-card-theme) !important;
  background: var(--color-white);
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbt-card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  align-self: flex-start;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbt-tool-card:hover .cbt-card-icon-wrapper {
  transform: scale(1.1);
  background: var(--cbt-card-theme) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cbt-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.cbt-card-content h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0;
}

.cbt-card-content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cbt-card-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  border-radius: 12px !important;
  font-weight: 600;
  padding: 10px 16px !important;
}

.cbt-card-btn i {
  transition: transform 0.2s ease;
}

.cbt-tool-card:hover .cbt-card-btn i {
  transform: translateX(4px);
}

/* =========================================
   TABLE & TRANSACTION STYLING
   ========================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  background: var(--color-white);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

th {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-charcoal-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-border);
  background: rgba(0, 0, 0, 0.01);
}

td {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-charcoal);
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

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

tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

/* Premium Auth Styles */
.auth-toggle-switch {
  display: flex;
  background: #f7f6f4;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}
.toggle-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}
.toggle-tab.active {
  color: var(--color-charcoal) !important;
  background: var(--color-white) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-charcoal);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.social-btn:active {
  transform: translateY(0);
}
.social-logo-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.auth-divider {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.auth-divider::before {
  margin-right: 16px;
}
.auth-divider::after {
  margin-left: 16px;
}

/* ========================================================
   RESPONSIVE OVERRIDES (MOBILE & TABLET FRIENDLY)
   Note: Desktop design & layout (> 768px) remains strictly unchanged.
   ======================================================== */

@media (max-width: 768px) {
  /* Container & Typography adjustments */
  .container {
    padding: 0 16px !important;
  }
  
  .text-hero {
    font-size: 42px !important;
    line-height: 1.15 !important;
  }
  
  .text-h2, .page-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .text-h3 {
    font-size: 24px !important;
  }

  .py-160, .py-120, .pt-160, .pb-160 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .page {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }

  /* Grid Layouts Stacked on Mobile */
  .grid-2, .grid-3, .grid-4, .card-grid, .service-grid, .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Panel & Sidebar Responsiveness */
  .panel-layout {
    flex-direction: column !important;
  }

  .panel-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    position: relative !important;
    border-right: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding: 16px !important;
  }

  .panel-sidebar.collapsed {
    width: 100% !important;
  }

  .panel-main {
    padding: 16px !important;
    width: 100% !important;
  }

  .panel-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Navigation Header */
  .header-actions {
    gap: 8px !important;
  }

  /* Auth Screens Split Layout */
  .auth-split-layout {
    flex-direction: column !important;
  }

  .auth-split-left {
    display: none !important; /* Hide decorative image on mobile */
  }

  .auth-split-right {
    width: 100% !important;
    padding: 24px 16px !important;
  }

  .auth-card {
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tables & Horizontal Scroll Container */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px !important;
  }

  /* Floating CTA & Mobile Floating Action Fixes */
  .floating-cta {
    font-size: 15px !important;
    padding: 12px 24px !important;
    bottom: 20px !important;
    white-space: nowrap !important;
  }

  .chat-widget {
    width: 52px !important;
    height: 52px !important;
    bottom: 20px !important;
    right: 16px !important;
    font-size: 24px !important;
  }

  /* AI Chat Area */
  .ai-chat-layout {
    flex-direction: column !important;
  }

  .ai-chat-sidebar {
    display: none !important; /* Collapsed by default on small screens */
  }

  .ai-chat-sidebar.active {
    display: flex !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .text-hero {
    font-size: 34px !important;
  }

  .btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Modals, Popups & Overlays Mobile Overrides */
  .modal-overlay, .dialog-overlay {
    padding: 12px !important;
    align-items: flex-end !important; /* Slide up sheet on mobile */
  }

  .modal-content, .dialog-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 16px !important;
    overflow-y: auto !important;
  }

  /* CBT Thought Record & Tool Sub-tabs */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Toast Notifications Mobile Positioning */
  #toast-root {
    left: 16px !important;
    right: 16px !important;
    bottom: 80px !important;
    transform: none !important;
    width: auto !important;
  }

  .toast {
    width: 100% !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
  }
}

/* Sub-Tab Navigation Pills High-Contrast Fix */
.sub-tab-pill,
[data-action="switch-cbt-tab"] {
  color: var(--color-charcoal) !important;
  background: var(--color-white) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.sub-tab-pill:hover,
[data-action="switch-cbt-tab"]:hover {
  background: var(--color-cream) !important;
  border-color: var(--color-coral) !important;
  color: var(--color-coral) !important;
}

.sub-tab-pill.active,
[data-action="switch-cbt-tab"].active {
  background: var(--color-charcoal) !important;
  color: var(--color-white) !important;
  border-color: var(--color-charcoal) !important;
}

/* Header User Profile Dropdown Styling */
.profile-dropdown-container:hover .profile-dropdown-menu,
.profile-dropdown-container:focus-within .profile-dropdown-menu {
  display: flex !important;
}

.profile-dropdown-menu .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.profile-dropdown-menu .dropdown-item.danger:hover {
  background: rgba(229, 62, 62, 0.08) !important;
}

/* ═══════════════════════════════════════════════
   VoiceMirror — Pulse Ring Recording Animation
═══════════════════════════════════════════════ */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  60%  { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   Reflective Tools — Distortion Card Hover
═══════════════════════════════════════════════ */
.distortion-label:hover {
  background: rgba(224, 106, 78, 0.04) !important;
  border-color: rgba(224, 106, 78, 0.4) !important;
}

/* ═══════════════════════════════════════════════
   Reflective Tools — Modal Textarea & Input Base
═══════════════════════════════════════════════ */
.field textarea,
.field input,
.field select {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.field textarea:focus,
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(224, 106, 78, 0.12);
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════
   CBT Sub-Tab Buttons — Hover & Active States
   (overflow-x:auto on parent caused clipping;
    padding + min-width:max-content fixes it)
═══════════════════════════════════════════════ */
.cbt-sub-tab:hover:not(.active) {
  border-color: var(--color-coral) !important;
  color: var(--color-coral) !important;
  background: rgba(224, 106, 78, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(224, 106, 78, 0.12) !important;
}

