﻿/* ============================================================
   Parwaz – Custom Styles  (layered on DaisyUI v5 / Tailwind)
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(14,165,233,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(20,184,166,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #f0f7ff 0%, #f8faff 60%, #f0f4ff 100%);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.35); }
  50%       { box-shadow: 0 0 0 12px rgba(14,165,233,0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes navbarSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Reveal on scroll helper */
.reveal        { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left        { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right        { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale        { opacity: 0; transform: scale(0.92); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* Page content entry */
.page-content { animation: fadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both; }

/* Flash alerts */
.flash-alert { animation: slideIn 0.3s ease both; }

/* Float animation utility */
.anim-float { animation: float 4s ease-in-out infinite; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #14b8a6);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   NAVBAR  – full redesign
   ============================================================ */

/* Outer wrapper – handles animation + sticky */
.parwaz-navbar {
  position: sticky; top: 0; z-index: 40;
  animation: navbarSlideDown 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* Glass pill inner bar */
.nav-inner {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14,165,233,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 2px 12px rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.parwaz-navbar.scrolled .nav-inner {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 4px 24px rgba(0,0,0,0.09);
  border-bottom-color: rgba(14,165,233,0.18);
}

/* Logo wordmark */
.nav-wordmark {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo badge */
.parwaz-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(14,165,233,0.38);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.nav-logo:hover .parwaz-logo-badge { transform: rotate(-10deg) scale(1.12); box-shadow: 0 6px 20px rgba(14,165,233,0.5); }

/* Desktop links container */
.nav-links-bar {
  display: flex; align-items: center; gap: 2px;
  background: rgba(14,165,233,0.04);
  border: 1px solid rgba(14,165,233,0.10);
  border-radius: 14px; padding: 4px;
}

/* Individual nav link */
.nav-link {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.85rem; border-radius: 10px;
  font-size: 0.83rem; font-weight: 500;
  color: inherit; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap; position: relative;
}
.nav-link i { font-size: 1rem; opacity: 0.7; transition: opacity 0.18s ease, transform 0.2s ease; }
.nav-link:hover { background: rgba(14,165,233,0.09); color: #0ea5e9; }
.nav-link:hover i { opacity: 1; transform: translateY(-1px); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.12));
  color: #0ea5e9; font-weight: 650;
  box-shadow: 0 1px 4px rgba(14,165,233,0.18);
}
.nav-link.active i { opacity: 1; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

/* Icon-only buttons (bell, hamburger) */
.nav-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: inherit;
  text-decoration: none; font-size: 1.15rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-icon-btn:hover { background: rgba(14,165,233,0.09); transform: scale(1.08); }
.nav-icon-btn.has-badge::before {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; border: 2px solid #fff;
  animation: pulseGlow 2s ease-in-out infinite;
}
.nav-badge {
  position: absolute; top: 2px; right: 0px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; padding: 0 3px;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

/* Role chip */
.nav-role-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.22rem 0.7rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: capitalize;
  letter-spacing: 0.03em;
}
.nav-role-parent     { background: rgba(14,165,233,0.12); color: #0ea5e9; border: 1px solid rgba(14,165,233,0.25); }
.nav-role-therapist  { background: rgba(20,184,166,0.12);  color: #14b8a6; border: 1px solid rgba(20,184,166,0.25); }
.nav-role-admin      { background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.25); }
.nav-role-super_admin{ background: rgba(249,115,22,0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }

/* Avatar button */
.nav-avatar-btn {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: none; cursor: pointer;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  border: 1.5px solid rgba(14,165,233,0.20);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.nav-avatar-btn:hover { background: rgba(14,165,233,0.07); border-color: rgba(14,165,233,0.4); transform: scale(1.03); }

.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(14,165,233,0.35);
}
.nav-avatar-caret { font-size: 0.9rem; opacity: 0.45; transition: transform 0.2s ease; }
.nav-avatar-btn:hover .nav-avatar-caret { transform: rotate(180deg); opacity: 0.7; }

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14,165,233,0.14);
  border-radius: 18px; min-width: 220px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.05);
  padding: 0.5rem;
  animation: scaleIn 0.18s cubic-bezier(0.22,1,0.36,1) both;
  transform-origin: top right;
  display: none;
}
/* DaisyUI dropdown-end manages visibility via tabindex focus; keep display flex for open state */
.dropdown:focus-within .nav-dropdown,
.dropdown:hover .nav-dropdown { display: block; }

.nav-dd-profile {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.5rem;
}
.nav-dd-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(14,165,233,0.35);
}
.nav-dd-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 0.4rem 0; }
.nav-dd-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.8rem; border-radius: 12px;
  font-size: 0.85rem; font-weight: 500;
  color: inherit; text-decoration: none;
  transition: background 0.15s ease;
}
.nav-dd-item:hover { background: rgba(14,165,233,0.07); }
.nav-dd-item.text-error:hover { background: rgba(239,68,68,0.07); }
.nav-dd-lang {
  display: flex; gap: 0.4rem; padding: 0.3rem 0.5rem;
}
.nav-dd-lang-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(14,165,233,0.2);
  color: inherit; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background: transparent;
}
.nav-dd-lang-btn:hover { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.35); color: #0ea5e9; }
.nav-dd-lang-btn.active { background: rgba(14,165,233,0.14); border-color: #0ea5e9; color: #0ea5e9; font-weight: 700; }

/* Ghost / primary nav buttons (guest) */
.nav-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 1rem; border-radius: 10px;
  font-size: 0.83rem; font-weight: 600;
  background: transparent; border: 1px solid rgba(14,165,233,0.25);
  color: inherit; text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-btn-ghost:hover { background: rgba(14,165,233,0.07); border-color: rgba(14,165,233,0.45); }
.nav-btn-primary {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 1.1rem; border-radius: 10px;
  font-size: 0.83rem; font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; text-decoration: none; border: none;
  box-shadow: 0 3px 12px rgba(14,165,233,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }

/* ---- Mobile drawer ---- */
.mobile-drawer {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(14,165,233,0.10);
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
  box-shadow: none;
  /* Ensure drawer doesn't exceed viewport */
  width: 100%; box-sizing: border-box;
}
.mobile-drawer.open {
  max-height: calc(100dvh - 64px); overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  /* Smooth scrollbar for iOS */
  -webkit-overflow-scrolling: touch;
}
.mobile-user-strip {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(14,165,233,0.05);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 16px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}
/* Guest hero strip in drawer */
.mobile-guest-strip {
  border-radius: 16px; padding: 0.9rem 1rem; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(14,165,233,0.07), rgba(99,102,241,0.07));
  border: 1px solid rgba(14,165,233,0.15);
}
.mobile-guest-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.mobile-nav-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 1rem; border-radius: 12px;
  font-size: 0.875rem; font-weight: 500; color: inherit;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}
.mobile-nav-item:hover { background: rgba(14,165,233,0.08); color: #0ea5e9; }
.mobile-nav-item.active { background: rgba(14,165,233,0.12); color: #0ea5e9; font-weight: 650; }
/* Sign Up prominent button in drawer */
.mobile-nav-item-primary {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1rem; border-radius: 12px;
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  margin-bottom: 2px;
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(99,102,241,0.12));
  color: #0ea5e9; border: 1px solid rgba(14,165,233,0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.mobile-nav-item-primary:hover {
  background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(99,102,241,0.18));
  box-shadow: 0 2px 10px rgba(14,165,233,0.2);
}
.mobile-drawer-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 0.5rem 0; }

/* Prevent navbar container from overflowing on small screens */
.parwaz-navbar .nav-inner .container {
  flex-wrap: nowrap; min-width: 0;
}
.nav-logo { min-width: 0; }
.nav-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Right cluster should never wrap / shrink logo */
.parwaz-navbar .nav-inner .container > div:last-child {
  flex-shrink: 0;
}

/* User avatar (legacy compat) */
.user-avatar-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.user-avatar-badge:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(14,165,233,0.45); }

/* ============================================================
   HERO LANDING SECTION
   ============================================================ */
.hero-section {
  position: relative; overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(145deg, #ffffff 0%, #eef8ff 35%, #f0eeff 70%, #e8fdf8 100%);
  border: 1.5px solid rgba(14,165,233,0.18);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.07),
    0 12px 64px rgba(99,102,241,0.10),
    0 2px 4px rgba(0,0,0,0.04);
  padding-top: 3rem; padding-bottom: 3rem;
}

/* Animated mesh grid */
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,165,233,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  animation: meshDrift 20s linear infinite;
}
@keyframes meshDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}

/* Background glow blobs */
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(72px); opacity: 0.55;
}
.hero-glow-blue   { width:380px; height:380px; top:-120px; right:-80px;  background:rgba(14,165,233,0.18);  animation: glowPulse 6s ease-in-out infinite; }
.hero-glow-purple { width:300px; height:300px; bottom:-80px; left:-60px; background:rgba(99,102,241,0.14);   animation: glowPulse 8s ease-in-out infinite 2s; }
.hero-glow-teal   { width:220px; height:220px; top:40%; left:35%;        background:rgba(20,184,166,0.10);   animation: glowPulse 7s ease-in-out infinite 4s; }
@keyframes glowPulse {
  0%,100% { transform: scale(1);    opacity:0.55; }
  50%     { transform: scale(1.15); opacity:0.38; }
}

/* Particle dots */
.hero-dot {
  position: absolute; width:6px; height:6px; border-radius:50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  pointer-events: none;
  animation: dotFloat 5s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes dotFloat {
  0%,100% { transform: translateY(0) scale(1);   opacity:0.5; }
  50%     { transform: translateY(-14px) scale(1.4); opacity:0.85; }
}

/* Floating orbs */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-orb-1 {
  width:64px; height:64px; top:16%; right:10%;
  background: linear-gradient(135deg,#0ea5e9,#6366f1);
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 6px 24px rgba(14,165,233,0.45);
  opacity: 0.75;
}
.hero-orb-2 {
  width:38px; height:38px; top:62%; right:5%;
  background: linear-gradient(135deg,#14b8a6,#22c55e);
  animation: float 7s ease-in-out infinite 1s;
  box-shadow: 0 4px 16px rgba(20,184,166,0.45);
  opacity: 0.65;
}
.hero-orb-3 {
  width:22px; height:22px; top:28%; right:22%;
  background: linear-gradient(135deg,#f97316,#ec4899);
  animation: float 6s ease-in-out infinite 2s;
  opacity: 0.5;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #14b8a6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(135deg, rgba(14,165,233,0.10), rgba(99,102,241,0.10));
  color: #5b63d3;
  border: 1.5px solid rgba(99,102,241,0.26);
  border-radius: 999px; padding: 0.38rem 1.1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  position: relative; overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}
.hero-badge::after {
  content: ''; position: absolute; top:0; left:-100%; width:60%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 3.5s ease infinite;
}

/* Hero trust chips */
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.07);
  border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.09); }

/* Hero CTA buttons */
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.72rem 1.75rem; border-radius: 14px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.45);
  filter: brightness(1.06);
}
.hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.65); color: #374151;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.72rem 1.5rem; border-radius: 14px;
  border: 1.5px solid rgba(99,102,241,0.20);
  text-decoration: none; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hero-cta-ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  border-color: rgba(99,102,241,0.45);
}

/* ============================================================
   HERO VISUAL PANEL (right side)
   ============================================================ */
.hero-visual {
  position: relative;
  width: 100%; max-width: 320px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}

/* Dashboard mock card */
.hero-dash-card {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 24px;
  padding: 1.35rem 1.5rem;
  width: 280px;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.07),
    0 8px 40px rgba(99,102,241,0.12),
    0 2px 6px rgba(0,0,0,0.06);
  animation: float 6s ease-in-out infinite;
}
.hero-dash-header {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 1rem;
}
.hero-dash-avatar {
  width:36px; height:36px; border-radius:50%;
  background: linear-gradient(135deg,#0ea5e9,#6366f1);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; flex-shrink:0;
  box-shadow: 0 2px 10px rgba(14,165,233,0.4);
}
.hero-dash-name { font-size:0.82rem; font-weight:700; line-height:1.2; }
.hero-dash-sub  { font-size:0.7rem;  opacity:0.5; }
.hero-dash-live {
  margin-left: auto; font-size: 0.65rem; font-weight: 700;
  color: #22c55e; background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25); border-radius: 999px;
  padding: 0.15rem 0.55rem; white-space: nowrap;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity:1; } 50% { opacity:0.55; }
}

/* Progress bars inside dash card */
.hero-dash-bars { display:flex; flex-direction:column; gap:0.55rem; margin-bottom:0.85rem; }
.hero-dash-bar-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 600; opacity: 0.7;
}
.hero-dash-bar-row span:last-child { min-width:28px; text-align:right; opacity:0.6; }
.hero-dash-track {
  flex:1; height:6px; background:rgba(0,0,0,0.06); border-radius:99px; overflow:hidden;
}
.hero-dash-fill {
  height:100%; border-radius:99px;
  animation: fillGrow 1.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes fillGrow {
  from { width:0 !important; }
}

/* AI tip row */
.hero-dash-tip {
  display:flex; align-items:center; gap:0.5rem;
  background: linear-gradient(135deg,rgba(139,92,246,0.08),rgba(99,102,241,0.06));
  border:1px solid rgba(139,92,246,0.18);
  border-radius:12px; padding:0.5rem 0.7rem;
  font-size:0.69rem; font-weight:600; opacity:0.85;
  line-height: 1.35;
}

/* Orbiting icon badges */
.hero-badge-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(calc(-50% + var(--orb-x,0px)), calc(-50% + var(--orb-y,0px)));
  animation: orbitFloat 5s ease-in-out infinite;
}
@keyframes orbitFloat {
  0%,100% { translate: 0 0; }
  33%  { translate: 4px -8px; }
  66%  { translate: -5px 6px; }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: #fff; border-radius: 22px;
  padding: 1.85rem;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: default;
  position: relative; overflow: hidden;
}
/* Coloured top bar on hover */
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #14b8a6);
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  border-radius: 22px 22px 0 0;
  animation: gradientShift 3s ease infinite paused;
}
/* Subtle inner glow on hover */
.feature-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  border-radius: inherit;
}
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 48px rgba(99,102,241,0.12), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(14,165,233,0.28);
}
.feature-card:hover::before { transform: scaleX(1); animation-play-state: running; }
.feature-card:hover::after  { opacity: 1; }
.feature-card:hover .stat-icon { transform: scale(1.12) rotate(-6deg); }

/* ============================================================
   STAT CARDS  (dashboard + hero stats)
   ============================================================ */
.stat-card {
  background: #fff; border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
  border-top: 4px solid transparent;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.55) 100%);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }
.stat-card-blue   { border-top-color: #0ea5e9; }
.stat-card-green  { border-top-color: #22c55e; }
.stat-card-purple { border-top-color: #8b5cf6; }
.stat-card-orange { border-top-color: #f97316; }
.stat-card-teal   { border-top-color: #14b8a6; }
.stat-card-pink   { border-top-color: #ec4899; }
.stat-card-yellow { border-top-color: #eab308; }
.stat-card-red    { border-top-color: #ef4444; }

.stat-card-value { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -1px; animation: countUp 0.5s ease both; }
.stat-card-label { font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.5; }
.stat-card-desc  { font-size: 0.8rem; opacity: 0.6; margin-top: 0.2rem; }

/* Stat icon boxes */
.stat-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }
.stat-icon-blue   { background: #e0f2fe; color: #0ea5e9; }
.stat-icon-green  { background: #dcfce7; color: #22c55e; }
.stat-icon-purple { background: #ede9fe; color: #8b5cf6; }
.stat-icon-orange { background: #ffedd5; color: #f97316; }
.stat-icon-teal   { background: #ccfbf1; color: #14b8a6; }
.stat-icon-pink   { background: #fce7f3; color: #ec4899; }
.stat-icon-yellow { background: #fef9c3; color: #eab308; }
.stat-icon-red    { background: #fee2e2; color: #ef4444; }

/* ============================================================
   QUICK-LINK CARDS
   ============================================================ */
.quick-link-card {
  background: #fff; border-radius: 16px; padding: 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1.5px solid #e8eef6;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.65rem; text-align: center; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.quick-link-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(99,102,241,0.05) 100%);
  opacity: 0; transition: opacity 0.2s ease;
}
.quick-link-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 32px rgba(0,0,0,0.11); border-color: #0ea5e9; }
.quick-link-card:hover::before { opacity: 1; }
.quick-link-icon { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: transform 0.2s ease; }
.quick-link-card:hover .quick-link-icon { transform: scale(1.15) rotate(-6deg); }
.quick-link-label { font-size: 0.85rem; font-weight: 600; }

/* ============================================================
   AUTH CARD
   ============================================================ */
.auth-card {
  background: #fff; border-radius: 24px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden; width: 100%; max-width: 420px; margin: 0 auto;
}
.auth-card-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  padding: 2.25rem 1.75rem 1.75rem; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.auth-card-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,0.1); pointer-events: none;
}
.auth-card-header::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.auth-card-header h1 { font-weight: 800; font-size: 1.55rem; margin: 0.5rem 0 0.3rem; position: relative; }
.auth-card-header p  { font-size: 0.85rem; opacity: 0.82; margin: 0; position: relative; }
.auth-card-body { padding: 1.75rem 1.75rem 2rem; }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; opacity: 0.4; pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.input-icon-wrap:focus-within .input-icon { opacity: 0.75; color: #0ea5e9; }
.input-icon-wrap input, .input-icon-wrap select { padding-left: 2.6rem; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.75rem; }
.page-header-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.page-header h1, .page-header h2 { font-weight: 800; font-size: 1.4rem; margin: 0; line-height: 1.2; }
.page-header p { font-size: 0.82rem; opacity: 0.5; margin: 0; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(14,165,233,0.06),
    0 4px 32px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1.5rem; text-align: center; gap: 0.75rem; }
.empty-state-icon { font-size: 3.5rem; opacity: 0.18; line-height: 1; }
.empty-state-title { font-size: 1.05rem; font-weight: 600; opacity: 0.65; }
.empty-state-desc { font-size: 0.83rem; opacity: 0.4; }

/* ============================================================
   TABLE
   ============================================================ */
.table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.5; font-weight: 700; background: transparent; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(14,165,233,0.04); }

/* Parent dashboard - children profile cards */
.pdb-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.pdb-child-card {
  position: relative;
  border: 1.5px solid #e7edf8;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 2px 12px rgba(2, 6, 23, 0.05);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pdb-child-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.14);
}

.pdb-child-top {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.pdb-child-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.22);
}

.pdb-child-info {
  min-width: 0;
}

.pdb-child-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdb-child-meta {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  opacity: 0.58;
}

.pdb-child-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.pdb-tag-disorder {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.pdb-tag-track {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.pdb-child-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdb-btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.36rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pdb-btn:hover {
  transform: translateY(-1px);
}

.pdb-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}

.pdb-btn-soft {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

@media (max-width: 640px) {
  .pdb-child-grid {
    grid-template-columns: 1fr;
  }

  .pdb-child-card {
    padding: 0.85rem;
  }
}

/* ============================================================
   CHAT
   ============================================================ */
.chat-scroll { max-height: min(60vh,600px); overflow-y: auto; scroll-behavior: smooth; padding: 0.75rem; }
.chat-scroll::-webkit-scrollbar { width: 4px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 4px; }

.message-bubble { max-width: min(72%,720px); padding: 0.7rem 1.1rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.55; word-break: break-word; }
.message-own   { margin-inline-start: auto; background: linear-gradient(135deg, #0ea5e9,#6366f1); color:#fff; border-bottom-right-radius:4px; }
.message-other { margin-inline-end: auto; background:#f1f5f9; color:#1e293b; border:1px solid #e2e8f0; border-bottom-left-radius:4px; }

/* ============================================================
   BUTTONS – extra polish
   ============================================================ */
.btn { transition: transform 0.15s ease, box-shadow 0.15s ease !important; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-info { box-shadow: 0 4px 14px rgba(14,165,233,0.30); }
.btn-info:hover { box-shadow: 0 6px 20px rgba(14,165,233,0.45); }

/* ============================================================
   SECTIONS – landing page
   ============================================================ */
.section-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(99,102,241,0.09); color: #6366f1;
  border: 1.5px solid rgba(99,102,241,0.22);
  border-radius: 999px; padding: 0.32rem 1rem;
  font-size: 0.71rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  /* shimmer sweep */
  position: relative; overflow: hidden;
}
.section-pill::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 3s ease infinite;
}

/* Section heading helpers */
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.2;
}
.section-subhead {
  font-size: 0.9rem; opacity: 0.52; max-width: 540px; margin: 0 auto;
  line-height: 1.65;
}

/* How-step number badge */
.how-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(14,165,233,0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-step-num:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(14,165,233,0.5); }

/* Testimonial cards */
.testimonial-card {
  background: #fff; border-radius: 22px; padding: 1.85rem;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}
/* Big quote mark decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 5rem; line-height: 1; opacity: 0.05;
  font-family: Georgia, serif; pointer-events: none;
  color: #6366f1;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.22);
}

/* ============================================================
   FOOTER
   ============================================================ */
.parwaz-footer {
  background: linear-gradient(to bottom, transparent, rgba(14,165,233,0.04));
  border-top: 1px solid rgba(14,165,233,0.10);
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.13); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.24); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.menu li a i { font-size: 1rem; margin-right: 0.35rem; opacity: 0.75; vertical-align: middle; }

/* Signup form */
.signup-section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff; font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}
.signup-label { font-size: 0.78rem; font-weight: 600; opacity: 0.62; margin-bottom: 0.25rem; display: block; }

/* Card hover lift */
.hover-lift { transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease !important; }
.hover-lift:hover { transform: translateY(-4px) !important; box-shadow: 0 10px 32px rgba(0,0,0,0.10) !important; }

/* ============================================================
   LANDING PAGE — SECTION PILL COLOR VARIANTS
   ============================================================ */
.section-pill-blue   { background:rgba(14,165,233,0.09); color:#0ea5e9; border-color:rgba(14,165,233,0.22); }
.section-pill-purple { background:rgba(99,102,241,0.09); color:#6366f1; border-color:rgba(99,102,241,0.22); }
.section-pill-teal   { background:rgba(20,184,166,0.09); color:#14b8a6; border-color:rgba(20,184,166,0.22); }
.section-pill-orange { background:rgba(249,115,22,0.09); color:#f97316; border-color:rgba(249,115,22,0.22); }
.section-pill-pink   { background:rgba(236,72,153,0.09); color:#ec4899; border-color:rgba(236,72,153,0.22); }
.section-pill-green  { background:rgba(34,197,94,0.09);  color:#22c55e; border-color:rgba(34,197,94,0.22);  }

/* ============================================================
   HOW-IT-WORKS — step connector line (desktop)
   ============================================================ */
.how-steps-grid { position: relative; }
@media (min-width: 1024px) {
  .how-step-connector {
    position: absolute; top: 24px; left: 24px; right: 24px; height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #14b8a6);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
    pointer-events: none; border-radius: 2px;
    z-index: 0;
  }
}

/* ============================================================
   COMING SOON CARDS — shimmer "in progress" overlay
   ============================================================ */
.coming-soon-card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 1.85rem;
  background: #fff; border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease;
}
.coming-soon-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
  animation: shimmer 3s ease infinite;
  pointer-events: none;
}
.coming-soon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 38px rgba(99,102,241,0.10);
}

/* ============================================================
   SECTION ALT BACKGROUND (alternating sections)
   ============================================================ */
.section-alt {
  background: linear-gradient(135deg, rgba(240,248,255,0.7) 0%, rgba(237,233,254,0.4) 100%);
  border-radius: 24px; padding: 2.5rem;
  border: 1px solid rgba(99,102,241,0.07);
}

/* ============================================================
   ANIMATED COUNTER
   ============================================================ */
@keyframes countSlide {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0);   }
}
[data-counter] { animation: countSlide 0.5s ease both; }

/* Stat icon hover on any card (not only stat-card) */
.feature-card:hover .stat-icon,
.coming-soon-card:hover .stat-icon,
.testimonial-card:hover .stat-icon { transform: scale(1.12) rotate(-6deg); }


/* ============================================================
   SIGNUP PAGE â€” .signup-* and .sf-* design system
   ============================================================ */

/* Page wrapper */
.signup-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
}
.signup-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}
.signup-glow-1 { top: -100px; right: -80px; width: 400px; height: 400px; background: rgba(14,165,233,0.08); }
.signup-glow-2 { bottom: -80px; left: -60px; width: 300px; height: 300px; background: rgba(99,102,241,0.07); }

.signup-wrapper {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Page header */
.signup-page-header {
  text-align: center;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.signup-logo-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.25);
  background: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.signup-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}
.signup-page-sub {
  font-size: 0.82rem;
  opacity: 0.55;
  margin: 0;
}

/* Step bar */
.signup-steps-bar {
  display: flex;
  align-items: center;
  margin: 0 0 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.signup-steps-bar::-webkit-scrollbar { display: none; }
.signup-step-pill {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  color: #6b7280;
  cursor: default;
}
.signup-step-pill.active {
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.25);
  color: #6366f1;
}
.signup-step-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.signup-step-pill.active .signup-step-num {
  background: #6366f1;
  color: #fff;
}
.signup-step-line {
  flex: 1; min-width: 14px; height: 1.5px;
  background: rgba(0,0,0,0.08);
}

/* Section cards */
.signup-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.signup-card-consent {
  border-color: rgba(239,68,68,0.18);
  background: rgba(255,250,250,1);
}
.signup-card-label {
  display: flex; align-items: flex-start; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.signup-section-title { font-size: 0.95rem; font-weight: 700; margin: 0; }
.signup-section-sub   { font-size: 0.75rem; opacity: 0.5; margin: 0.1rem 0 0; }

.signup-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.signup-num-blue   { background: linear-gradient(135deg,#0ea5e9,#6366f1); box-shadow: 0 3px 10px rgba(14,165,233,0.4); }
.signup-num-teal   { background: linear-gradient(135deg,#14b8a6,#22c55e); box-shadow: 0 3px 10px rgba(20,184,166,0.4); }
.signup-num-purple { background: linear-gradient(135deg,#8b5cf6,#6366f1); box-shadow: 0 3px 10px rgba(139,92,246,0.4); }
.signup-num-orange { background: linear-gradient(135deg,#f97316,#eab308); box-shadow: 0 3px 10px rgba(249,115,22,0.4); }
.signup-num-green  { background: linear-gradient(135deg,#22c55e,#14b8a6); box-shadow: 0 3px 10px rgba(34,197,94,0.4); }
.signup-num-red    { background: linear-gradient(135deg,#ef4444,#f97316); box-shadow: 0 3px 10px rgba(239,68,68,0.4); }

.signup-required-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.65rem; font-weight: 700; color: #ef4444;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap;
}
.signup-optional-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.65rem; font-weight: 700; color: #6b7280;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .signup-grid { grid-template-columns: 1fr; } }

/* Form field groups */
.sf-full  { grid-column: 1 / -1; }
.sf-group { display: flex; flex-direction: column; gap: 0.35rem; }

.sf-label {
  font-size: 0.77rem; font-weight: 600; opacity: 0.65;
  display: flex; align-items: center; gap: 0.3rem;
}
.sf-req  { color: #ef4444; font-weight: 800; }
.sf-hint { font-size: 0.72rem; margin-top: 0.2rem; min-height: 1rem; }

.sf-input-wrap {
  position: relative; display: flex; align-items: center;
}
.sf-icon {
  position: absolute; left: 0.85rem; font-size: 1rem;
  opacity: 0.38; pointer-events: none;
  transition: opacity 0.2s, color 0.2s;
}
.sf-input-wrap.focused .sf-icon { opacity: 0.75; color: #6366f1; }

.sf-input {
  width: 100%; height: 44px;
  padding: 0 0.9rem 0 2.55rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.88rem;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  color: inherit;
}
.sf-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: #fff;
}
.sf-textarea {
  height: auto !important;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  resize: vertical;
  padding-left: 0.9rem;
}
.sf-select { cursor: pointer; }

.sf-eye-btn {
  position: absolute; right: 0.7rem;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; opacity: 0.45; padding: 0.25rem;
  transition: opacity 0.2s;
}
.sf-eye-btn:hover { opacity: 0.8; }

/* Password strength */
.pw-strength-bar {
  height: 4px; background: #f1f5f9;
  border-radius: 99px; margin-top: 0.4rem; overflow: hidden;
}
.pw-strength-fill {
  height: 100%; width: 0; border-radius: 99px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* Child section toggle */
.child-collapsed {
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  margin-top: 0 !important;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.child-open {
  max-height: 1000px !important;
  opacity: 1;
  pointer-events: all;
  margin-top: 1rem !important;
}

.sf-toggle-btn {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  border: 1.5px solid rgba(99,102,241,0.3); color: #6366f1;
  background: rgba(99,102,241,0.06); cursor: pointer;
  transition: all 0.2s;
}
.sf-toggle-btn:hover { background: rgba(99,102,241,0.12); }

/* Toggle cards (notifications) */
.sf-toggle-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #eef2f9;
  border-radius: 14px; background: #fafbff;
  transition: border-color 0.2s;
  grid-column: 1 / -1;
}
.sf-toggle-card:hover { border-color: rgba(99,102,241,0.2); }
.sf-toggle-card-icon { font-size: 1.3rem; opacity: 0.6; flex-shrink: 0; }
.sf-toggle-card-body { flex: 1; }
.sf-toggle-title { font-size: 0.85rem; font-weight: 600; margin: 0; }
.sf-toggle-sub   { font-size: 0.72rem; opacity: 0.5; margin: 0; }

/* Custom toggle switch */
.sf-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.sf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sf-switch-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #d1d5db; cursor: pointer; transition: background 0.25s;
}
.sf-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform 0.25s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.sf-switch input:checked + .sf-switch-track { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.sf-switch input:checked + .sf-switch-track::after { transform: translateX(18px); }

/* Consent rows */
.sf-consent-row {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.9rem 1rem; margin-bottom: 0.75rem;
  border: 1.5px solid #eef2f9; border-radius: 14px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.sf-consent-row:last-child { margin-bottom: 0; }
.sf-consent-row:hover { border-color: rgba(99,102,241,0.25); }
.sf-consent-required { border-color: rgba(239,68,68,0.15); }
.sf-consent-checked  { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.04); }

.sf-consent-check-wrap {
  position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
}
.sf-consent-cb {
  position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer;
}
.sf-consent-checkmark {
  width: 22px; height: 22px;
  border: 2px solid #d1d5db; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; transition: all 0.2s;
  font-size: 0.75rem; color: transparent;
}
.sf-consent-cb:checked ~ .sf-consent-checkmark {
  background: linear-gradient(135deg,#22c55e,#14b8a6);
  border-color: transparent; color: #fff;
}
.sf-consent-text { font-size: 0.83rem; line-height: 1.55; }
.sf-consent-link { color: #0ea5e9; text-decoration: underline; text-underline-offset: 2px; }

/* Submit area */
.signup-submit-area { text-align: center; padding-top: 0.5rem; }
.signup-submit-btn {
  width: 100%; padding: 0.9rem;
  border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #14b8a6);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #fff; font-size: 1rem; font-weight: 700;
  box-shadow: 0 6px 28px rgba(99,102,241,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.signup-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(99,102,241,0.42);
}
.signup-submit-btn:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.signup-submit-inner {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
}
.signup-login-hint { font-size: 0.83rem; opacity: 0.6; margin-top: 1rem; }
.signup-login-link { color: #6366f1; font-weight: 700; text-decoration: none; }
.signup-login-link:hover { text-decoration: underline; }

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════════
   PARENT PAGES — shared layout utilities
═══════════════════════════════════════════════════ */
.ppage-wrap { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

.ppage-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem;
}
.ppage-title {
  font-size: 1.45rem; font-weight: 800; display: flex; align-items: center;
  gap: 0.5rem; color: #1e293b;
}
.ppage-title i { color: #6366f1; }
.ppage-sub { font-size: 0.82rem; opacity: 0.52; margin-top: 0.2rem; }
.ppage-stat-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.76rem;
  font-weight: 700; background: rgba(99,102,241,0.08);
  border: 1.5px solid rgba(99,102,241,0.18); color: #6366f1;
  white-space: nowrap;
}
.ppage-flash {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.85rem;
  font-weight: 500; margin-bottom: 1rem;
}
.ppage-flash-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #15803d; }
.ppage-flash-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: #b91c1c; }
.ppage-flash-info    { background: rgba(14,165,233,0.08);  border: 1px solid rgba(14,165,233,0.25);  color: #0369a1; }
.ppage-flash-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #92400e; }

/* ═══════════════════════════════════════════════════
   CHILDREN PAGE  (.pch-*)
═══════════════════════════════════════════════════ */
.pch-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .pch-layout { grid-template-columns: 1fr; } }

.pch-form-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  padding: 1.5rem;
}
.pch-form-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.pch-form-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.pch-form-title { font-size: 0.95rem; font-weight: 700; }
.pch-form-sub   { font-size: 0.75rem; opacity: 0.5; }
.pch-form       { display: flex; flex-direction: column; gap: 0.9rem; }
.pch-row2       { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pch-submit-btn {
  width: 100%; padding: 0.75rem; border-radius: 14px; border: none;
  cursor: pointer; font-size: 0.9rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  background-size: 200% 200%; animation: gradientShift 4s ease infinite;
  box-shadow: 0 5px 20px rgba(99,102,241,0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pch-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.38); }

.pch-list-panel { min-height: 200px; }
.pch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.pch-card {
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pch-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 8px 28px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.pch-card-top { display: flex; align-items: center; gap: 0.75rem; }
.pch-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.pch-card-info  { flex: 1; min-width: 0; }
.pch-card-name  { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pch-card-meta  { font-size: 0.74rem; opacity: 0.52; margin-top: 0.1rem; }
.pch-disorder-badge {
  font-size: 0.65rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(99,102,241,0.08); color: #6366f1;
  border: 1px solid rgba(99,102,241,0.2);
}
.pch-card-notes {
  font-size: 0.78rem; opacity: 0.55; line-height: 1.45;
  border-top: 1px solid #f1f5f9; padding-top: 0.65rem;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pch-card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; border-top: 1px solid #f1f5f9; padding-top: 0.75rem; }

.pch-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem; border-radius: 10px;
  font-size: 0.73rem; font-weight: 600; text-decoration: none;
  transition: all 0.18s; cursor: pointer; border: 1.5px solid transparent;
}
.pch-btn-primary {
  background: linear-gradient(135deg, #6366f1, #0ea5e9); color: #fff;
  box-shadow: 0 3px 10px rgba(99,102,241,0.28);
}
.pch-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(99,102,241,0.35); }
.pch-btn-outline { background: transparent; border-color: rgba(99,102,241,0.25); color: #6366f1; }
.pch-btn-outline:hover { background: rgba(99,102,241,0.06); }
.pch-btn-soft { background: rgba(20,184,166,0.08); border-color: rgba(20,184,166,0.25); color: #0f766e; }
.pch-btn-soft:hover { background: rgba(20,184,166,0.14); }

.pch-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem; padding: 4rem 2rem;
  background: #fff; border-radius: 20px;
  border: 1.5px dashed #d1d5db; text-align: center;
}
.pch-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #6366f1;
}
.pch-empty-title { font-size: 1rem; font-weight: 700; }
.pch-empty-sub   { font-size: 0.82rem; opacity: 0.5; max-width: 280px; }

/* ═══════════════════════════════════════════════════
   CHAT LIST  (.pchat-*)
═══════════════════════════════════════════════════ */
.pchat-list { display: flex; flex-direction: column; gap: 0.75rem; }

.pchat-thread {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 18px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pchat-thread:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 6px 22px rgba(99,102,241,0.1);
  transform: translateY(-1px);
}
.pchat-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.16);
}
.pchat-main { flex: 1; min-width: 0; }
.pchat-top-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.pchat-child-name { font-size: 0.95rem; font-weight: 700; }
.pchat-disorder-tag {
  font-size: 0.65rem; font-weight: 700; margin-left: 0.4rem;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  background: rgba(99,102,241,0.08); color: #6366f1;
  border: 1px solid rgba(99,102,241,0.2);
}
.pchat-therapist { font-size: 0.78rem; opacity: 0.5; margin-top: 0.2rem; display: flex; align-items: center; gap: 0.3rem; }
.pchat-time { font-size: 0.72rem; opacity: 0.45; white-space: nowrap; display: flex; align-items: center; gap: 0.25rem; }
.pchat-arrow { font-size: 1.25rem; opacity: 0.3; flex-shrink: 0; transition: opacity 0.2s, transform 0.2s; }
.pchat-thread:hover .pchat-arrow { opacity: 0.7; transform: translateX(3px); }

.pchat-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem; padding: 5rem 2rem;
  background: #fff; border-radius: 20px;
  border: 1.5px dashed #d1d5db; text-align: center;
}
.pchat-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #6366f1;
}
.pchat-empty-title { font-size: 1rem; font-weight: 700; }
.pchat-empty-sub   { font-size: 0.82rem; opacity: 0.5; max-width: 320px; line-height: 1.6; }

/* pchat mobile tweaks */
@media (max-width:480px) {
  .pchat-thread { padding: 0.8rem 0.9rem; gap: 0.7rem; }
  .pchat-avatar { width: 40px; height: 40px; font-size: 1rem; }
  .pchat-child-name { font-size: 0.88rem; }
  .pchat-disorder-tag { display: none; } /* too crowded on tiny screens */
  .pchat-arrow { display: none; }
}

/* ═══════════════════════════════════════════════════
   DISORDERS PAGE  (.pds-*)
═══════════════════════════════════════════════════ */
.pds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.pds-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pds-card:hover {
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.pds-icon-ring {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.pds-body { display: flex; flex-direction: column; gap: 0.5rem; }
.pds-title { font-size: 1rem; font-weight: 800; }
.pds-desc { font-size: 0.82rem; opacity: 0.6; line-height: 1.6; }
.pds-tips { margin-top: 0.25rem; padding-top: 0.85rem; border-top: 1px solid #f1f5f9; }
.pds-tips-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; color: #6366f1; margin-bottom: 0.55rem;
}
.pds-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pds-list li { font-size: 0.8rem; opacity: 0.65; line-height: 1.5; padding-left: 1rem; position: relative; }
.pds-list li::before { content: '▸'; position: absolute; left: 0; color: #6366f1; font-size: 0.7rem; }

/* ═══════════════════════════════════════════════════
   VOICE GUIDANCE  (.pvg-*)
═══════════════════════════════════════════════════ */
.pvg-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .pvg-layout { grid-template-columns: 1fr; } }

.pvg-player-card {
  background: #fff; border-radius: 24px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.pvg-wave-area {
  height: 80px; border-radius: 16px;
  background: linear-gradient(135deg, #fafbff, #f0f4ff);
  border: 1.5px solid #eef2f9;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 1.25rem; position: relative; overflow: hidden;
}
.pvg-wave-idle { position: absolute; font-size: 2rem; color: #c7d2fe; pointer-events: none; transition: opacity 0.3s; }
.pvg-wave-active .pvg-wave-idle { opacity: 0; }
.pvg-bar {
  width: 4px; border-radius: 99px; background: #c7d2fe; height: 18px; flex-shrink: 0;
  transform-origin: center; transition: background 0.3s;
}
.pvg-wave-active .pvg-bar {
  background: linear-gradient(to top, #6366f1, #0ea5e9);
  animation: waveBar 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--bar-i) * 0.045s);
}
@keyframes waveBar {
  from { height: 6px; opacity: 0.5; }
  to   { height: 48px; opacity: 1; }
}
.pvg-status {
  text-align: center; font-size: 0.82rem; font-weight: 600;
  opacity: 0.45; letter-spacing: 0.04em; text-transform: uppercase;
}
.pvg-status-speaking { opacity: 1; color: #6366f1; }
.pvg-lang-row { display: flex; gap: 0.5rem; }
.pvg-lang-btn {
  flex: 1; padding: 0.5rem; border-radius: 12px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; border: 1.5px solid #e2e8f0;
  background: #fafbff; transition: all 0.2s; text-align: center;
}
.pvg-lang-btn.active { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.07); color: #6366f1; }
.pvg-lang-btn:hover:not(.active) { border-color: rgba(99,102,241,0.2); }
.pvg-controls { display: flex; gap: 0.75rem; }
.pvg-btn-play {
  flex: 2; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem; border-radius: 14px; border: none; cursor: pointer;
  font-size: 0.92rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  background-size: 200% 200%; animation: gradientShift 4s ease infinite;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pvg-btn-play:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(99,102,241,0.38); }
.pvg-btn-stop {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem; border-radius: 14px; cursor: pointer;
  font-size: 0.88rem; font-weight: 600;
  background: transparent; border: 1.5px solid #e2e8f0; color: #64748b; transition: all 0.2s;
}
.pvg-btn-stop:hover { border-color: rgba(239,68,68,0.3); color: #ef4444; background: rgba(239,68,68,0.05); }

.pvg-scripts-panel {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  padding: 1.25rem; position: sticky; top: 5rem;
}
.pvg-scripts-title { font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; gap: 0.4rem; }
.pvg-scripts-title i { color: #6366f1; }
.pvg-scripts-sub { font-size: 0.75rem; opacity: 0.48; margin-top: 0.2rem; margin-bottom: 1rem; }
.pvg-scripts-list { display: flex; flex-direction: column; gap: 0.6rem; }
.pvg-script-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 0.9rem; border-radius: 14px;
  border: 1.5px solid #eef2f9; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pvg-script-item:hover { border-color: rgba(99,102,241,0.25); background: rgba(99,102,241,0.03); }
.pvg-script-active { border-color: rgba(99,102,241,0.35) !important; background: rgba(99,102,241,0.06) !important; }
.pvg-script-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.pvg-script-name    { font-size: 0.83rem; font-weight: 700; }
.pvg-script-preview {
  font-size: 0.73rem; opacity: 0.5; margin-top: 0.1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}

/* ═══════════════════════════════════════════════════
   CHILD DETAIL  (.pcd-*)
═══════════════════════════════════════════════════ */
.pcd-hero {
  display: flex; align-items: center; gap: 1.25rem;
  background: #fff; border-radius: 24px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.pcd-hero-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.pcd-hero-name { font-size: 1.35rem; font-weight: 800; }
.pcd-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.65; }
.pcd-hero-meta span { display: flex; align-items: center; gap: 0.25rem; }
.pcd-disorder-badge {
  padding: 0.2rem 0.65rem; border-radius: 999px; font-weight: 700; font-size: 0.72rem;
  background: rgba(99,102,241,0.08); color: #6366f1;
  border: 1px solid rgba(99,102,241,0.22); opacity: 1 !important;
}
.pcd-score-badge {
  padding: 0.2rem 0.65rem; border-radius: 999px; font-weight: 700; font-size: 0.72rem;
  background: rgba(34,197,94,0.1); color: #15803d;
  border: 1px solid rgba(34,197,94,0.3); opacity: 1 !important;
}

/* Nav pills */
.pcd-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.pcd-nav-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: #fff; border: 1.5px solid #e2e8f0; color: #475569;
  text-decoration: none; transition: all 0.2s;
}
.pcd-nav-pill:hover, .pcd-nav-pill.active {
  background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.3); color: #6366f1;
}
.pcd-nav-back {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.38rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: transparent; border: 1.5px solid transparent; color: #94a3b8;
  text-decoration: none; margin-left: auto; transition: color 0.2s;
}
.pcd-nav-back:hover { color: #475569; }
.pcd-nav-inline { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Notes bar */
.pcd-notes-bar {
  background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px; padding: 0.65rem 1rem; font-size: 0.82rem; color: #92400e;
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 1.25rem;
}

/* 3-col grid */
.pcd-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
@media (max-width:1024px) { .pcd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px)  { .pcd-grid { grid-template-columns: 1fr; } }

.pcd-panel {
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.pcd-panel-header { display: flex; align-items: center; gap: 0.7rem; }
.pcd-panel-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.pcd-panel-title { font-size: 0.88rem; font-weight: 700; }
.pcd-panel-link {
  font-size: 0.75rem; font-weight: 700; color: #6366f1; text-decoration: none;
  margin-top: auto; padding-top: 0.5rem; border-top: 1px solid #f1f5f9;
}
.pcd-panel-link:hover { text-decoration: underline; }

.pcd-log-list { display: flex; flex-direction: column; gap: 0.55rem; }
.pcd-log-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.6rem 0.7rem; border-radius: 12px; background: #fafbff;
  border: 1px solid #f1f5f9;
}
.pcd-log-date {
  font-size: 0.68rem; font-weight: 800; color: #6366f1;
  background: rgba(99,102,241,0.08); border-radius: 6px;
  padding: 0.2rem 0.4rem; white-space: nowrap; flex-shrink: 0; line-height: 1.6;
}
.pcd-log-activity { font-size: 0.8rem; font-weight: 600; }
.pcd-log-meta { display: flex; gap: 0.55rem; margin-top: 0.25rem; font-size: 0.72rem; opacity: 0.55; }
.pcd-log-meta span { display: flex; align-items: center; gap: 0.2rem; }

.pcd-ai-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pcd-ai-item {
  font-size: 0.8rem; opacity: 0.7; line-height: 1.55; padding: 0.5rem 0.65rem;
  border-radius: 10px; background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.1);
  display: flex; align-items: flex-start; gap: 0.35rem;
}
.pcd-ai-item i { color: #6366f1; flex-shrink: 0; margin-top: 0.1rem; }
.pcd-empty-mini {
  text-align: center; padding: 1.5rem 1rem; font-size: 0.8rem; opacity: 0.45;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}

/* ═══════════════════════════════════════════════════
   TRACKING PAGE  (.ptrack-*)
═══════════════════════════════════════════════════ */
.ptrack-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width:860px) { .ptrack-layout { grid-template-columns: 1fr; } }

.ptrack-form-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  padding: 1.5rem; position: sticky; top: 5rem;
}
.ptrack-history { min-height: 200px; }
.ptrack-history-title {
  font-size: 0.88rem; font-weight: 700; display: flex; align-items: center;
  gap: 0.45rem; margin-bottom: 1rem; color: #1e293b;
}
.ptrack-history-title i { color: #6366f1; }
.ptrack-log-list { display: flex; flex-direction: column; gap: 0.75rem; }

.ptrack-log-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border-radius: 16px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ptrack-log-card:hover { border-color: rgba(99,102,241,0.2); box-shadow: 0 4px 16px rgba(99,102,241,0.08); }

.ptrack-log-date-col {
  display: flex; flex-direction: column; align-items: center;
  min-width: 38px; flex-shrink: 0;
  background: rgba(99,102,241,0.07); border-radius: 10px;
  padding: 0.4rem 0.5rem;
}
.ptrack-log-day { font-size: 1.1rem; font-weight: 800; color: #6366f1; line-height: 1; }
.ptrack-log-mon { font-size: 0.65rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }

.ptrack-log-body { flex: 1; }
.ptrack-log-activity { font-size: 0.88rem; font-weight: 600; }
.ptrack-log-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.ptrack-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid;
}
.ptrack-log-notes { font-size: 0.76rem; opacity: 0.52; margin-top: 0.4rem; line-height: 1.45; }

/* ═══════════════════════════════════════════════════
   AI SUGGESTIONS  (.pai-*)
═══════════════════════════════════════════════════ */
.pai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; }

.pai-card {
  background: #fff; border-radius: 18px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pai-card:hover {
  border-color: rgba(20,184,166,0.25);
  box-shadow: 0 6px 22px rgba(20,184,166,0.1);
  transform: translateY(-2px);
}
.pai-card-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pai-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #fff; box-shadow: 0 3px 10px rgba(20,184,166,0.3);
}
.pai-timestamp { font-size: 0.7rem; opacity: 0.45; display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
/* AI suggestion source badges */
.pai-source-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.68rem; font-weight: 600; border-radius: 20px;
  padding: 0.15rem 0.6rem; letter-spacing: 0.02em;
}
.pai-source-therapist { background: rgba(99,102,241,0.1); color: #6366f1; border: 1px solid rgba(99,102,241,0.2); }
.pai-source-auto      { background: rgba(20,184,166,0.1); color: #14b8a6; border: 1px solid rgba(20,184,166,0.2); }
.pai-text { font-size: 0.84rem; line-height: 1.65; opacity: 0.75; }

.pai-outcome-form { display: flex; flex-direction: column; gap: 0.5rem; }
.pai-outcome-input {
  width: 100%; min-height: 82px; resize: vertical;
  border: 1.5px solid #dbe7f5; border-radius: 10px;
  padding: 0.55rem 0.7rem; font-size: 0.8rem; line-height: 1.45;
  background: #f8fbff;
}
.pai-outcome-input:focus {
  outline: none;
  border-color: rgba(20,184,166,0.55);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
  background: #fff;
}
.pai-follow-btn {
  align-self: flex-start;
  border: 1px solid rgba(20,184,166,0.35);
  background: rgba(20,184,166,0.09);
  color: #0f766e;
  border-radius: 9px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.pai-follow-btn:hover { background: rgba(20,184,166,0.16); }

.pai-outcome-view {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}
.pai-outcome-done {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; color: #166534;
  margin-bottom: 0.35rem;
}
.pai-outcome-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #14532d;
}

/* AI loading spinner */
.pai-spinner-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; padding: 5rem 2rem;
}
.pai-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(20,184,166,0.15);
  border-top-color: #14b8a6;
  animation: pai-spin 0.8s linear infinite;
}
@keyframes pai-spin { to { transform: rotate(360deg); } }
.pai-spinner-label { font-size: 0.88rem; opacity: 0.55; }

/* TTS speak button — suggestions full page */
.pai-speak-btn {
  align-self: flex-end; margin-left: auto; flex-shrink: 0;
  background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.2);
  color: #14b8a6; border-radius: 8px; padding: 0.3rem 0.55rem;
  font-size: 0.85rem; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center;
}
.pai-speak-btn:hover { background: rgba(20,184,166,0.18); transform: scale(1.08); }
.pai-speak-btn.pai-speak-active { background: #14b8a6; color: #fff; animation: pai-pulse 0.8s infinite; }
@keyframes pai-pulse { 0%,100%{opacity:1} 50%{opacity:0.55} }

/* TTS speak button — child detail overview panel */
.pcd-ai-text { flex: 1; }
.pcd-speak-btn {
  flex-shrink: 0; margin-left: auto;
  background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.15);
  color: #6366f1; border-radius: 7px; padding: 0.2rem 0.45rem;
  font-size: 0.78rem; cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center;
}
.pcd-speak-btn:hover { background: rgba(99,102,241,0.15); transform: scale(1.08); }
.pcd-speak-btn.pcd-speak-active { background: #6366f1; color: #fff; animation: pai-pulse 0.8s infinite; }

/* ═══════════════════════════════════════════════════
   REPORTS PAGE  (.prep-*)
═══════════════════════════════════════════════════ */

/* ── Stats bar ───────────────────────────────────── */
.prep-stats-bar {
  display: flex; align-items: center;
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem; padding: 1rem 1.5rem;
  gap: 0;
}
.prep-stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
}
.prep-stat-num { font-size: 1.45rem; font-weight: 900; color: #1e293b; line-height: 1; }
.prep-stat-label { font-size: 0.68rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.prep-stat-divider { width: 1px; height: 38px; background: #eef2f9; flex-shrink: 0; margin: 0 0.5rem; }
.prep-trend-up   { color: #22c55e !important; }
.prep-trend-down { color: #ef4444 !important; }

/* ── Hero grid ───────────────────────────────────── */
.prep-hero { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; margin-bottom: 1.25rem; align-items: stretch; }
@media (max-width:640px) { .prep-hero { grid-template-columns: 1fr; } }

/* ── Score card with gauge ───────────────────────── */
.prep-score-card {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  border-radius: 22px; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: 0 8px 28px rgba(99,102,241,0.35); color: #fff;
}
.prep-score-label { font-size: 0.72rem; font-weight: 700; opacity: 0.85; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.prep-score-label-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.22rem 0.8rem; border-radius: 999px;
  background: rgba(255,255,255,0.22); color: #fff; letter-spacing: 0.03em;
}

/* SVG arc gauge */
.prep-gauge-wrap {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.prep-gauge-svg { width: 120px; height: 120px; transform: rotate(-225deg); }
.prep-gauge-track {
  fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 10;
  stroke-dasharray: 226.19 301.59; stroke-linecap: round;
}
.prep-gauge-progress {
  fill: none; stroke: #22c55e; stroke-width: 10;
  stroke-dasharray: 0 301.59; stroke-linecap: round;
}
.prep-gauge-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 0.05rem; color: #fff;
}
.prep-gauge-num { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.prep-gauge-pct { font-size: 0.9rem; font-weight: 700; opacity: 0.8; }

/* ── Summary card ────────────────────────────────── */
.prep-summary-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.prep-summary-title { font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; color: #6366f1; }
.prep-summary-text { font-size: 0.85rem; line-height: 1.7; opacity: 0.68; flex: 1; }
.prep-days-row {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: #6366f1; font-weight: 600;
  background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.14);
  border-radius: 10px; padding: 0.35rem 0.7rem; width: fit-content;
}

.prep-chart-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.prep-chart-title { font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem; margin-bottom: 1rem; }
.prep-chart-title i { color: #6366f1; }
.prep-chart-img { width: 100%; border-radius: 14px; border: 1.5px solid #eef2f9; }

.prep-table-card {
  background: #fff; border-radius: 22px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  padding: 1.5rem;
}
.prep-table-title {
  font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 1rem;
}
.prep-table-title i { color: #6366f1; }
.prep-table-wrap { overflow-x: auto; }
.prep-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.prep-table th {
  text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; opacity: 0.45; padding: 0.6rem 0.85rem;
  border-bottom: 1.5px solid #f1f5f9;
}
.prep-row { transition: background 0.15s; }
.prep-row:hover { background: #fafbff; }
.prep-row td { padding: 0.75rem 0.85rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.prep-td-date { white-space: nowrap; font-weight: 600; opacity: 0.65; font-size: 0.78rem; }
.prep-td-summary { max-width: 320px; line-height: 1.5; opacity: 0.65; }
.prep-period-badge {
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: rgba(99,102,241,0.08); color: #6366f1; border: 1px solid rgba(99,102,241,0.2);
}
.prep-score-inline {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; border: 1px solid;
}
/* ========================================================
   SIGNIN / LOGIN PAGE  (.sli-*)
   ======================================================== */
.sli-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1rem;
  position: relative; z-index: 1;
  margin: 0 auto;
  width: 100%;
}
.sli-card { margin-bottom: 0; }
.sli-card-top {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid #eef2f9;
}
.sli-form { display: flex; flex-direction: column; gap: 1rem; }

/* Demo accounts section */
.sli-demo-card {
  width: 100%; max-width: 440px;
  margin-top: 1rem;
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
}
.sli-demo-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #94a3b8;
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.sli-demo-grid { display: flex; flex-direction: column; gap: 0.45rem; }
.sli-demo-row {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  padding: 0.6rem 0.85rem; border-radius: 12px; cursor: pointer;
  border: 1.5px solid #eef2f9; background: #fafbff;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.sli-demo-row:hover {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.03);
  transform: translateX(3px);
}
.sli-demo-row:active { transform: scale(0.98); }
.sli-demo-badge {
  font-size: 0.67rem; font-weight: 800; padding: 0.18rem 0.55rem;
  border-radius: 999px; border: 1px solid; white-space: nowrap; flex-shrink: 0;
}
.sli-demo-email {
  font-size: 0.79rem; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #334155;
}
.sli-demo-hint {
  font-size: 0.68rem; opacity: 0.38; font-style: italic; flex-shrink: 0;
}

/* focused glow on sf-input-wrap */
.sf-input-wrap.focused {
  border-color: rgba(99,102,241,0.4) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}

/* spin keyframe for loading state (reused) */
@keyframes spin { to { transform: rotate(360deg); } }
/* ========================================================
   NOTIFICATIONS PAGE  (.ntf-*)
   ======================================================== */
.ntf-page {
  min-height: 100vh;
  background: linear-gradient(145deg,#f8f9ff 0%,#f1f5ff 100%);
  position: relative; overflow: hidden;
  padding: 2.5rem 1rem 4rem;
}
.ntf-bg-glow {
  position: fixed; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.ntf-glow-1 {
  width: 520px; height: 520px; top: -160px; right: -140px;
  background: radial-gradient(circle,rgba(99,102,241,0.10) 0%,transparent 70%);
}
.ntf-glow-2 {
  width: 420px; height: 420px; bottom: -120px; left: -100px;
  background: radial-gradient(circle,rgba(14,165,233,0.08) 0%,transparent 70%);
}

.ntf-wrap {
  max-width: 720px; margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem;
}

/* Header */
.ntf-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
}
.ntf-header-left { display: flex; align-items: center; gap: 1rem; }
.ntf-header-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(99,102,241,0.12),rgba(14,165,233,0.10));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #6366f1;
}
.ntf-title {
  font-size: 1.15rem; font-weight: 800; color: #1e293b;
  margin: 0 0 0.1rem;
}
.ntf-sub {
  font-size: 0.82rem; color: #64748b; display: flex; align-items: center; gap: 0.4rem;
}
.ntf-unread-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: linear-gradient(135deg,#6366f1,#0ea5e9);
  color: #fff; font-size: 0.68rem; font-weight: 800;
  border-radius: 999px;
}

.ntf-read-all-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 11px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.06); color: #6366f1;
  transition: background 0.18s, border-color 0.18s;
}
.ntf-read-all-btn:hover {
  background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.45);
}

/* List */
.ntf-list { display: flex; flex-direction: column; gap: 0.55rem; }

.ntf-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: #fff; border-radius: 16px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  position: relative;
}
.ntf-item:hover {
  border-color: rgba(99,102,241,0.28);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  transform: translateY(-1px);
}
.ntf-item-unread {
  background: linear-gradient(135deg,#fafaff,#f5f8ff);
  border-color: rgba(99,102,241,0.22);
}

/* unread dot */
.ntf-dot {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent; flex-shrink: 0;
}
.ntf-dot-active {
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

/* icon */
.ntf-item-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: #f1f5f9; color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-top: 0.05rem;
  transition: background 0.18s;
}
.ntf-item-icon-unread {
  background: linear-gradient(135deg,rgba(99,102,241,0.14),rgba(14,165,233,0.10));
  color: #6366f1;
}

/* body */
.ntf-item-body { flex: 1; min-width: 0; }
.ntf-item-title {
  font-size: 0.9rem; font-weight: 700; color: #1e293b;
  margin: 0 0 0.25rem; line-height: 1.35;
}
.ntf-item-text {
  font-size: 0.82rem; color: #64748b; line-height: 1.55;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta */
.ntf-item-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.2rem; flex-shrink: 0; padding-right: 0.75rem;
}
.ntf-item-date {
  font-size: 0.72rem; color: #94a3b8; font-weight: 600;
  display: flex; align-items: center; gap: 0.25rem; white-space: nowrap;
}
.ntf-item-time {
  font-size: 0.7rem; color: #b0bec5; white-space: nowrap;
}
.ntf-item-link-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; margin-top: 0.25rem;
  background: rgba(99,102,241,0.08); color: #6366f1; font-size: 0.7rem;
}

/* Empty state */
.ntf-empty {
  text-align: center; padding: 3.5rem 2rem;
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ntf-empty-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg,rgba(99,102,241,0.1),rgba(14,165,233,0.07));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #6366f1;
}
.ntf-empty-title {
  font-size: 1rem; font-weight: 800; color: #1e293b; margin-bottom: 0.5rem;
}
.ntf-empty-sub {
  font-size: 0.84rem; color: #94a3b8; max-width: 340px; margin: 0 auto; line-height: 1.6;
}

/* ========================================================
   PARENT CHAT THREAD PAGE  (.pct-*)
   ======================================================== */

/* Full-height shell */
.pct-page {
  display: flex; flex-direction: column;
  height: calc(100vh - 64px);   /* subtract navbar height */
  max-width: 820px; margin: 0 auto;
  padding: 0;
  overflow: hidden;
  /* Ensure drawer is never clipped by this element */
  position: relative; z-index: 1;
}

/* Use dynamic viewport height for proper mobile browser chrome handling */
@supports (height: 1dvh) {
  .pct-page { height: calc(100dvh - 64px); }
}

/* On mobile, break out of the main container's horizontal padding so the chat
   page is truly full-width edge-to-edge */
@media (max-width: 767px) {
  .pct-page {
    margin-left:  -0.75rem; /* cancel px-3 from main */
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
    max-width: none;
    border-radius: 0;
  }
}
.pct-header {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-bottom: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.pct-back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f1f5f9; color: #475569;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; text-decoration: none; flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.pct-back-btn:hover { background: rgba(99,102,241,0.1); color: #6366f1; }

.pct-header-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(99,102,241,0.15),rgba(14,165,233,0.12));
  color: #6366f1; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.pct-header-info { flex: 1; min-width: 0; }
.pct-header-name {
  font-size: 0.97rem; font-weight: 800; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}
.pct-header-sub {
  font-size: 0.76rem; color: #64748b; display: flex; align-items: center;
  gap: 0.3rem; margin: 0;
}
.pct-header-sub i { color: #6366f1; }
.pct-header-badge {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; color: #15803d;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  padding: 0.22rem 0.65rem; border-radius: 999px; flex-shrink: 0;
}
.pct-online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

/* ── Messages scroll area ─────────────────────────── */
.pct-messages {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 1.25rem 1.1rem;
  background: linear-gradient(160deg,#f8f9ff 0%,#f1f5ff 100%);
  display: flex; flex-direction: column; gap: 0.2rem;
  scroll-behavior: smooth;
}
.pct-messages::-webkit-scrollbar { width: 5px; }
.pct-messages::-webkit-scrollbar-track { background: transparent; }
.pct-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }

/* date separator */
.pct-date-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.75rem 0;
  color: #94a3b8; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pct-date-divider::before,
.pct-date-divider::after { content:''; flex:1; height:1px; background:#e2e8f0; }

/* message row */
.pct-msg-row {
  display: flex; align-items: flex-end; gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.pct-msg-own  { flex-direction: row-reverse; }
.pct-msg-other { flex-direction: row; }

/* small avatar */
.pct-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center;
}
.pct-avatar-own {
  background: linear-gradient(135deg,rgba(99,102,241,0.18),rgba(14,165,233,0.13));
  color: #6366f1;
}

/* bubble wrap */
.pct-bubble-wrap {
  display: flex; flex-direction: column; max-width: 68%;
}
.pct-msg-own  .pct-bubble-wrap { align-items: flex-end; }
.pct-msg-other .pct-bubble-wrap { align-items: flex-start; }

.pct-sender-name {
  font-size: 0.7rem; font-weight: 700; color: #64748b;
  margin: 0 0 0.2rem 0.35rem;
}

/* bubble */
.pct-bubble {
  padding: 0.65rem 0.95rem;
  border-radius: 18px; position: relative;
  word-break: break-word;
}
.pct-bubble-own {
  background: linear-gradient(135deg,#6366f1,#0ea5e9);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.28);
}
.pct-bubble-other {
  background: #fff;
  color: #1e293b;
  border-bottom-left-radius: 5px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.pct-bubble-text {
  font-size: 0.88rem; line-height: 1.55; margin: 0;
  white-space: pre-wrap;
}
.pct-bubble-time {
  font-size: 0.67rem; color: #94a3b8; margin: 0.2rem 0.25rem 0;
}
.pct-msg-own .pct-bubble-time { color: rgba(255,255,255,0.65); }

/* empty state */
.pct-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem; text-align: center;
  margin: auto;
}
.pct-empty-icon {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg,rgba(99,102,241,0.1),rgba(14,165,233,0.07));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: #6366f1;
}
.pct-empty-title { font-size: 0.97rem; font-weight: 800; color: #1e293b; margin-bottom: 0.4rem; }
.pct-empty-sub   { font-size: 0.82rem; color: #94a3b8; max-width: 300px; line-height: 1.6; }

/* ── Compose bar ──────────────────────────────────── */
.pct-compose {
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1.5px solid #eef2f9;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.pct-compose-form {
  display: flex; align-items: flex-end; gap: 0.65rem;
}
.pct-textarea-wrap {
  flex: 1; background: #f8faff;
  border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: 0.55rem 0.85rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pct-textarea-wrap:focus-within {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.09);
}
.pct-textarea {
  width: 100%; background: transparent; border: none; outline: none; resize: none;
  font-size: 0.9rem; color: #1e293b; line-height: 1.5;
  min-height: 36px; max-height: 140px; overflow-y: auto;
}
.pct-textarea::placeholder { color: #b0bec5; }
.pct-send-btn {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg,#6366f1,#0ea5e9);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(99,102,241,0.32);
  transition: opacity 0.18s, transform 0.15s;
}
.pct-send-btn:hover  { opacity: 0.9; transform: scale(1.04); }
.pct-send-btn:active { transform: scale(0.96); }
.pct-send-btn:disabled { opacity: 0.6; }


/* ========================================================
   THERAPIST PAGES  (.tth-*)
   ======================================================== */

/* stat cards */
.tth-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.tth-stat-card { background:#fff; border-radius:18px; border:1.5px solid #eef2f9; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.1rem 1.25rem; display:flex; align-items:center; gap:1rem; transition:box-shadow 0.18s,transform 0.15s; }
.tth-stat-card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.07); transform:translateY(-2px); }
.tth-stat-icon { width:48px; height:48px; border-radius:14px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.tth-stat-body { flex:1; min-width:0; }
.tth-stat-value { font-size:1.8rem; font-weight:900; line-height:1; margin:0 0 0.15rem; }
.tth-stat-label { font-size:0.78rem; font-weight:700; color:#64748b; margin:0; }
.tth-stat-sub { font-size:0.74rem; color:#94a3b8; margin:0; }
.tth-stat-cta { width:32px; height:32px; border-radius:9px; flex-shrink:0; background:#f1f5f9; color:#6366f1; display:flex; align-items:center; justify-content:center; font-size:1.1rem; text-decoration:none; transition:background 0.18s; }
.tth-stat-cta:hover { background:rgba(99,102,241,0.12); }

/* section card */
.tth-section { background:#fff; border-radius:20px; border:1.5px solid #eef2f9; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.35rem 1.5rem; display:flex; flex-direction:column; gap:1rem; }
.tth-section-header { display:flex; align-items:center; gap:0.85rem; }
.tth-section-icon { width:40px; height:40px; border-radius:12px; flex-shrink:0; background:linear-gradient(135deg,rgba(245,158,11,0.14),rgba(249,115,22,0.10)); color:#f59e0b; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.tth-section-title { font-size:0.92rem; font-weight:800; color:#1e293b; margin:0 0 0.1rem; }
.tth-section-sub { font-size:0.76rem; color:#94a3b8; margin:0; }

/* notes grid */
.tth-notes-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:0.75rem; }
.tth-note-card { background:#fafbff; border-radius:14px; border:1.5px solid #eef2f9; padding:0.9rem 1rem; transition:border-color 0.18s; }
.tth-note-card:hover { border-color:rgba(245,158,11,0.3); }
.tth-note-top { display:flex; align-items:center; gap:0.65rem; margin-bottom:0.55rem; }
.tth-note-avatar { width:32px; height:32px; border-radius:50%; flex-shrink:0; background:linear-gradient(135deg,rgba(245,158,11,0.2),rgba(249,115,22,0.15)); color:#f59e0b; font-size:0.8rem; font-weight:800; display:flex; align-items:center; justify-content:center; }
.tth-note-child { font-size:0.82rem; font-weight:700; color:#1e293b; margin:0; }
.tth-note-time { font-size:0.7rem; color:#94a3b8; display:flex; align-items:center; gap:0.2rem; margin:0; }
.tth-note-body { font-size:0.8rem; color:#475569; line-height:1.5; margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* empty */
.tth-empty { text-align:center; padding:2.5rem 1.5rem; display:flex; flex-direction:column; align-items:center; gap:0.5rem; }
.tth-empty-icon { width:56px; height:56px; border-radius:16px; margin-bottom:0.5rem; background:linear-gradient(135deg,rgba(99,102,241,0.1),rgba(14,165,233,0.07)); color:#6366f1; font-size:1.55rem; display:flex; align-items:center; justify-content:center; }
.tth-empty-title { font-size:0.93rem; font-weight:800; color:#1e293b; margin:0; }
.tth-empty-sub { font-size:0.8rem; color:#94a3b8; max-width:300px; line-height:1.6; margin:0; }

/* children grid */
.tth-child-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem; }
.tth-child-card { background:#fff; border-radius:18px; border:1.5px solid #eef2f9; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.15rem 1.25rem; display:flex; flex-direction:column; gap:0.75rem; transition:box-shadow 0.18s,transform 0.15s; }
.tth-child-card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.07); transform:translateY(-2px); }
.tth-child-top { display:flex; align-items:center; gap:0.85rem; }
.tth-child-avatar { width:46px; height:46px; border-radius:14px; flex-shrink:0; font-size:1.15rem; font-weight:800; display:flex; align-items:center; justify-content:center; }
.tth-child-info { flex:1; min-width:0; }
.tth-child-name { font-size:0.95rem; font-weight:800; color:#1e293b; margin:0 0 0.3rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tth-child-disorder { display:inline-block; font-size:0.68rem; font-weight:800; padding:0.18rem 0.55rem; border-radius:999px; border:1px solid; }
.tth-child-meta { display:flex; flex-direction:column; gap:0.2rem; }
.tth-child-meta-item { font-size:0.77rem; color:#64748b; display:flex; align-items:center; gap:0.3rem; }
.tth-child-meta-item i { color:#94a3b8; }
.tth-open-btn { display:flex; align-items:center; justify-content:center; gap:0.4rem; padding:0.55rem; border-radius:11px; background:linear-gradient(135deg,rgba(99,102,241,0.08),rgba(14,165,233,0.06)); color:#6366f1; font-size:0.82rem; font-weight:700; text-decoration:none; border:1.5px solid rgba(99,102,241,0.2); transition:background 0.18s,border-color 0.18s; }
.tth-open-btn:hover { background:linear-gradient(135deg,rgba(99,102,241,0.14),rgba(14,165,233,0.10)); border-color:rgba(99,102,241,0.35); }

/* child detail hero */
.tth-cd-hero { background:#fff; border-radius:20px; border:1.5px solid #eef2f9; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.15rem 1.35rem; display:flex; align-items:center; gap:0.85rem; flex-wrap:wrap; }
.tth-cd-back { width:36px; height:36px; border-radius:10px; flex-shrink:0; background:#f1f5f9; color:#475569; display:flex; align-items:center; justify-content:center; font-size:1.25rem; text-decoration:none; transition:background 0.18s,color 0.18s; }
.tth-cd-back:hover { background:rgba(99,102,241,0.1); color:#6366f1; }
.tth-cd-avatar { width:48px; height:48px; border-radius:14px; flex-shrink:0; font-size:1.25rem; font-weight:900; display:flex; align-items:center; justify-content:center; }
.tth-cd-info { flex:1; min-width:0; }
.tth-cd-name { font-size:1.05rem; font-weight:800; color:#1e293b; margin:0 0 0.35rem; }
.tth-cd-tags { display:flex; flex-wrap:wrap; gap:0.35rem; }
.tth-cd-tag { font-size:0.7rem; font-weight:700; padding:0.18rem 0.6rem; border-radius:999px; border:1px solid; display:flex; align-items:center; gap:0.25rem; }
.tth-chat-btn { display:flex; align-items:center; gap:0.4rem; padding:0.55rem 1rem; border-radius:11px; background:linear-gradient(135deg,#6366f1,#0ea5e9); color:#fff; font-size:0.82rem; font-weight:700; text-decoration:none; flex-shrink:0; box-shadow:0 3px 12px rgba(99,102,241,0.28); transition:opacity 0.18s,transform 0.15s; }
.tth-chat-btn:hover { opacity:0.9; transform:translateY(-1px); }

/* child detail 2-col */
.tth-cd-cols { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:768px) { .tth-cd-cols { grid-template-columns:1fr; } }

/* activity logs */
.tth-log-list { display:flex; flex-direction:column; gap:0.6rem; max-height:480px; overflow-y:auto; }
.tth-log-list::-webkit-scrollbar { width:4px; }
.tth-log-list::-webkit-scrollbar-thumb { background:#e2e8f0; border-radius:99px; }
.tth-log-row { background:#fafbff; border-radius:12px; border:1.5px solid #eef2f9; padding:0.75rem 0.9rem; }
.tth-log-date { font-size:0.72rem; font-weight:700; color:#94a3b8; display:flex; align-items:center; gap:0.25rem; margin-bottom:0.3rem; }
.tth-log-activity { font-size:0.85rem; font-weight:600; color:#1e293b; margin:0 0 0.35rem; }
.tth-log-chips { display:flex; gap:0.4rem; flex-wrap:wrap; }
.tth-log-chip { font-size:0.69rem; font-weight:700; padding:0.15rem 0.5rem; border-radius:999px; background:rgba(99,102,241,0.08); color:#6366f1; border:1px solid rgba(99,102,241,0.18); display:flex; align-items:center; gap:0.2rem; }
.tth-log-notes { font-size:0.77rem; color:#64748b; margin:0.35rem 0 0; line-height:1.5; }

/* notes form */
.tth-note-form { display:flex; flex-direction:column; gap:0.85rem; }
.tth-share-toggle { display:flex; align-items:center; gap:0.65rem; cursor:pointer; }
.tth-checkbox { display:none; }
.tth-toggle-track { width:38px; height:22px; border-radius:999px; flex-shrink:0; background:#e2e8f0; position:relative; transition:background 0.2s; }
.tth-checkbox:checked + .tth-toggle-track { background:#6366f1; }
.tth-toggle-thumb { width:16px; height:16px; border-radius:50%; background:#fff; position:absolute; top:3px; left:3px; box-shadow:0 1px 4px rgba(0,0,0,0.18); transition:transform 0.2s; }
.tth-checkbox:checked + .tth-toggle-track .tth-toggle-thumb { transform:translateX(16px); }
.tth-toggle-label { font-size:0.8rem; font-weight:600; color:#475569; }
.tth-save-btn { display:inline-flex; align-items:center; gap:0.4rem; padding:0.6rem 1.2rem; border-radius:12px; background:linear-gradient(135deg,#6366f1,#0ea5e9); color:#fff; font-size:0.85rem; font-weight:700; border:none; cursor:pointer; box-shadow:0 3px 12px rgba(99,102,241,0.28); transition:opacity 0.18s,transform 0.15s; width:fit-content; }
.tth-save-btn:hover { opacity:0.9; transform:translateY(-1px); }
.tth-saved-notes { display:flex; flex-direction:column; gap:0.55rem; }
.tth-saved-note { background:#fafbff; border-radius:12px; border:1.5px solid #eef2f9; padding:0.75rem 0.9rem; }
.tth-saved-text { font-size:0.83rem; color:#334155; line-height:1.55; margin:0 0 0.3rem; }
.tth-saved-time { font-size:0.7rem; color:#94a3b8; display:flex; align-items:center; gap:0.2rem; margin:0; }

/* settings */
.tth-settings-top { display:flex; align-items:center; gap:0.85rem; margin-bottom:1.5rem; padding-bottom:1.25rem; border-bottom:1.5px solid #eef2f9; }
.tth-settings-form { display:flex; flex-direction:column; gap:1rem; }
.tth-settings-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:560px) { .tth-settings-row { grid-template-columns:1fr; } }

/* ========================================================
   THERAPIST / SHARED — MOBILE RESPONSIVE TWEAKS
   ======================================================== */
@media (max-width:640px) {
  .ppage-wrap { padding: 1rem 0.75rem 3rem; }
  .ppage-header { margin-bottom: 1.25rem; gap: 0.5rem; }
  .ppage-title { font-size: 1.15rem; gap: 0.35rem; }
  .ppage-title i { font-size: 1.1rem; }
}

/* --- Stat cards: tighter padding & smaller value on phones --- */
@media (max-width:480px) {
  .tth-stats { grid-template-columns: 1fr; }
  .tth-stat-card { padding: 0.9rem 1rem; gap: 0.75rem; }
  .tth-stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .tth-stat-value { font-size: 1.5rem; }
}

/* --- Section cards: reduce padding on phones --- */
@media (max-width:480px) {
  .tth-section { padding: 1rem 1rem; }
  .tth-section-header { gap: 0.6rem; }
}

/* --- Children grid: single-col below 400px just in case --- */
@media (max-width:400px) {
  .tth-child-grid { grid-template-columns: 1fr; }
}

/* --- Child detail hero: stack cleanly on phones --- */
@media (max-width:520px) {
  .tth-cd-hero {
    padding: 0.85rem 1rem;
    gap: 0.6rem;
  }
  .tth-cd-info { width: 100%; }
  .tth-chat-btn {
    width: 100%; justify-content: center;
    order: 10; /* push to last row when wrapped */
  }
}

/* --- Notes grid: single col on phones --- */
@media (max-width:480px) {
  .tth-notes-grid { grid-template-columns: 1fr; }
}

/* --- Settings card: smaller padding --- */
@media (max-width:480px) {
  .signup-card { padding: 1.25rem 1rem; border-radius: 18px; }
  .tth-settings-top { margin-bottom: 1rem; padding-bottom: 1rem; }
}

/* ========================================================
   CHAT THREAD (.pct-*) — MOBILE
   ======================================================== */

@media (max-width:640px) {
  .pct-header { padding: 0.75rem 0.9rem; gap: 0.6rem; }
  .pct-header-avatar { width: 36px; height: 36px; font-size: 1rem; }
  .pct-header-name { font-size: 0.9rem; }
  .pct-header-sub { font-size: 0.7rem; }
  /* Hide active badge on very small screens to save space */
  .pct-header-badge { display: none; }

  .pct-messages { padding: 1rem 0.75rem; }

  /* Wider bubbles on small screens */
  .pct-bubble-wrap { max-width: 82%; }

  /* Slightly smaller bubble font */
  .pct-bubble-text { font-size: 0.84rem; }
  .pct-bubble { padding: 0.55rem 0.8rem; }

  /* Compose bar */
  .pct-compose { padding: 0.6rem 0.75rem; }
  .pct-send-btn { width: 40px; height: 40px; }

  /* Hide small side avatars on phones */
  .pct-avatar-sm { display: none; }
}

/* Show active badge back on larger phones */
@media (min-width:400px) {
  .pct-header-badge { display: flex; }
}

/* ============================================================
   ADMIN PAGES  (.adm-*)
   ============================================================ */

.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

/* Role chip */
.adm-role-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.76rem;
  font-weight: 700; background: rgba(139,92,246,0.09);
  border: 1.5px solid rgba(139,92,246,0.20); color: #8b5cf6;
  white-space: nowrap;
}

/* ── Stat cards ─────────────────────────────────────── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.adm-stat-card {
  background: #fff; border-radius: 18px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.1rem 1.15rem;
  display: flex; align-items: center; gap: 0.9rem;
  transition: box-shadow 0.18s, transform 0.15s;
}
.adm-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.adm-stat-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.adm-stat-body { flex: 1; min-width: 0; }
.adm-stat-value { font-size: 1.75rem; font-weight: 900; line-height: 1; margin: 0 0 0.15rem; }
.adm-stat-label { font-size: 0.75rem; font-weight: 700; color: #64748b; margin: 0; }
.adm-stat-cta {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: #f1f5f9; color: #6366f1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; text-decoration: none;
  transition: background 0.18s;
}
.adm-stat-cta:hover { background: rgba(99,102,241,0.12); }

/* ── Section label ──────────────────────────────────── */
.adm-section-label {
  font-size: 0.73rem; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin: 0 0 0.75rem;
}

/* ── Quick action grid ──────────────────────────────── */
.adm-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.adm-quick-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 18px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.adm-quick-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 6px 22px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.adm-quick-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.adm-quick-body { flex: 1; min-width: 0; }
.adm-quick-title { font-size: 0.9rem; font-weight: 800; color: #1e293b; margin: 0 0 0.2rem; }
.adm-quick-sub   { font-size: 0.74rem; color: #94a3b8; margin: 0; }
.adm-quick-arrow {
  font-size: 1.1rem; color: #cbd5e1; flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}
.adm-quick-card:hover .adm-quick-arrow { color: #6366f1; transform: translateX(3px); }

/* ── Generic card ───────────────────────────────────── */
.adm-card {
  background: #fff; border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 1.4rem 1.5rem;
}
.adm-card-header {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.adm-card-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.adm-card-title { font-size: 0.95rem; font-weight: 800; color: #1e293b; margin: 0 0 0.1rem; }
.adm-card-sub   { font-size: 0.76rem; color: #94a3b8; margin: 0; }

/* ── Top grid (create + assign) ─────────────────────── */
.adm-top-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem; align-items: start;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .adm-top-grid { grid-template-columns: 1fr; } }

/* ── Form ───────────────────────────────────────────── */
.adm-form { display: flex; flex-direction: column; gap: 0.9rem; }

/* ── Divider ────────────────────────────────────────── */
.adm-divider {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.73rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 1rem 0 0.75rem;
}
.adm-divider::before,
.adm-divider::after { content: ''; flex: 1; height: 1px; background: #eef2f9; }

/* ── Table ──────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.84rem;
}
.adm-table thead th {
  padding: 0.6rem 0.9rem; text-align: left;
  font-size: 0.71rem; font-weight: 800;
  color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1.5px solid #eef2f9;
  white-space: nowrap;
}
.adm-table tbody tr { transition: background 0.12s; }
.adm-table tbody tr:hover { background: rgba(99,102,241,0.03); }
.adm-table tbody td {
  padding: 0.7rem 0.9rem; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }

/* Table cell helpers */
.adm-td-user  { display: flex; align-items: center; gap: 0.6rem; }
.adm-td-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(14,165,233,0.12));
  color: #6366f1; font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.adm-td-name  { font-size: 0.84rem; font-weight: 700; color: #1e293b; }
.adm-td-muted { color: #64748b; font-size: 0.8rem; }
.adm-td-truncate {
  max-width: 220px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  color: #475569; font-size: 0.8rem;
}

/* Role badge */
.adm-role-badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; border: 1px solid;
}
.adm-role-badge.adm-role-parent     { background: rgba(14,165,233,0.1);  color: #0ea5e9; border-color: rgba(14,165,233,0.25); }
.adm-role-badge.adm-role-therapist  { background: rgba(20,184,166,0.1);  color: #14b8a6; border-color: rgba(20,184,166,0.25); }
.adm-role-badge.adm-role-admin      { background: rgba(139,92,246,0.1); color: #8b5cf6; border-color: rgba(139,92,246,0.25); }
.adm-role-badge.adm-role-super_admin{ background: rgba(249,115,22,0.1); color: #f97316; border-color: rgba(249,115,22,0.25); }

/* Lang badge */
.adm-lang-badge {
  display: inline-flex; align-items: center;
  padding: 0.18rem 0.52rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; border: 1px solid;
}
.adm-lang-en { background: rgba(14,165,233,0.1); color: #0ea5e9; border-color: rgba(14,165,233,0.25); }
.adm-lang-ur { background: rgba(249,115,22,0.1); color: #f97316; border-color: rgba(249,115,22,0.25); }

/* Score badge */
.adm-score-badge {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; border: 1px solid;
}
.adm-score-high { background: rgba(34,197,94,0.1);  color: #16a34a; border-color: rgba(34,197,94,0.25); }
.adm-score-mid  { background: rgba(245,158,11,0.1); color: #d97706; border-color: rgba(245,158,11,0.25); }
.adm-score-low  { background: rgba(239,68,68,0.1);  color: #dc2626; border-color: rgba(239,68,68,0.25); }

/* Inline role update form */
.adm-inline-form { display: flex; align-items: center; gap: 0.4rem; }
.adm-btn-xs {
  width: 34px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.08));
  color: #6366f1; border: 1.5px solid rgba(99,102,241,0.22);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: background 0.18s;
}
.adm-btn-xs:hover { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(14,165,233,0.14)); }

/* Locked label */
.adm-locked { font-size: 0.75rem; color: #94a3b8; display: flex; align-items: center; gap: 0.3rem; }

/* Download button */
.adm-dl-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border-radius: 9px; font-size: 0.77rem; font-weight: 700;
  background: rgba(20,184,166,0.08); color: #14b8a6;
  border: 1.5px solid rgba(20,184,166,0.22); text-decoration: none;
  transition: background 0.18s;
}
.adm-dl-btn:hover { background: rgba(20,184,166,0.15); }

/* Primary / teal action buttons */
.adm-btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.3rem; border-radius: 13px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff; font-size: 0.87rem; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 3px 14px rgba(99,102,241,0.30);
  transition: opacity 0.18s, transform 0.15s;
}
.adm-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.adm-btn-teal {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.3rem; border-radius: 13px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff; font-size: 0.87rem; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 3px 14px rgba(20,184,166,0.28);
  transition: opacity 0.18s, transform 0.15s;
}
.adm-btn-teal:hover { opacity: 0.9; transform: translateY(-1px); }

/* Code snippet */
.adm-code {
  background: rgba(99,102,241,0.07); color: #6366f1;
  padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.76rem;
  font-family: 'Fira Code', monospace; border: 1px solid rgba(99,102,241,0.15);
  white-space: nowrap;
}

/* Small empty state */
.adm-empty-sm {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center; padding: 1.5rem;
  color: #94a3b8; font-size: 0.84rem; font-weight: 600;
  background: rgba(99,102,241,0.03); border-radius: 12px;
  border: 1.5px dashed #e2e8f0; margin-top: 0.5rem;
}

/* ── Admin mobile tweaks ─────────────────────────────── */
@media (max-width: 640px) {
  .adm-wrap { padding: 1rem 0.75rem 3rem; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .adm-stat-card { padding: 0.85rem 0.9rem; gap: 0.65rem; }
  .adm-stat-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .adm-stat-value { font-size: 1.45rem; }
  .adm-card { padding: 1rem 1rem; }
  .adm-table thead th { font-size: 0.67rem; padding: 0.5rem 0.65rem; }
  .adm-table tbody td { padding: 0.6rem 0.65rem; font-size: 0.8rem; }
  .adm-td-truncate { max-width: 130px; }
}
@media (max-width: 400px) {
  .adm-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   SUPER ADMIN — .sadm-* component styles
   ============================================================ */

/* ── action badge (audit tables) ── */
.adm-action-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.2);
}

/* ── system health hero bar ── */
.sadm-health-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.sadm-health-status-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sadm-status-ok  { background: rgba(34,197,94,0.12); color: #22c55e; }
.sadm-status-warn{ background: rgba(239,68,68,0.12);  color: #ef4444; }
.sadm-status-ok-text  { color: #16a34a; font-weight: 700; font-size: 1.3rem; }
.sadm-status-warn-text{ color: #dc2626; font-weight: 700; font-size: 1.3rem; }
.sadm-health-label {
  font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem;
}
.sadm-health-value { font-size: 1.3rem; font-weight: 700; }

/* ── health metric grid ── */
.sadm-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sadm-metric-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border-radius: 18px;
  border: 1.5px solid #eef2f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.1rem 1.25rem;
}
.sadm-metric-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.sadm-metric-label {
  font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.sadm-metric-value {
  font-size: 0.98rem; font-weight: 600; color: #1e293b;
  word-break: break-all;
}
.sadm-metric-mono { font-family: 'Courier New', monospace; font-size: 0.85rem; }
.sadm-metric-unit { font-size: 0.78rem; color: #94a3b8; font-weight: 500; }

/* ── super admin view-all btn ── */
.adm-view-all-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 600;
  color: #6366f1; text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  background: rgba(99,102,241,0.06);
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.adm-view-all-btn:hover { background: rgba(99,102,241,0.13); border-color: rgba(99,102,241,0.35); }

/* ── truncated cell ── */
.adm-td-truncate {
  max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.82rem; color: #64748b;
}

/* ── responsive ── */
@media (max-width: 640px) {
  .sadm-health-hero { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.1rem; }
  .sadm-health-grid { grid-template-columns: 1fr; }
  .sadm-metric-card { padding: 0.9rem 1rem; }
}
