:root {
      --bg:        #f5f7fb;
      --white:     #ffffff;
      --navy:      #0f2a4a;
      --navy-mid:  #1e3f6a;
      --teal:      #17a589;
      --teal-light:#d4efea;
      --teal-soft: #e8f8f5;
      --sky:       #2980b9;
      --sky-light: #ddeef8;
      --accent:    #1abc9c;
      --muted:     #64748b;
      --border:    #e2e8f0;
      --shadow:    0 4px 24px rgba(15,42,74,.08);
      --shadow-lg: 0 12px 48px rgba(15,42,74,.13);
      --radius:    14px;
      --radius-sm: 9px;
      --font-display: 'Fraunces', serif;
      --font-body:    'Plus Jakarta Sans', sans-serif;
    }

    /* ═══════ GLOBAL ═══════ */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--navy);
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-family: var(--font-display);
      color: var(--navy);
    }

    .page { display: none; }
    .page.active { display: block; }

    /* ═══════ NAVBAR ═══════ */
    #mainNavbar {
      background: rgba(245,247,251,.95) !important;
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      padding: 0 !important;
      transition: box-shadow .3s;
    }

    #mainNavbar.scrolled {
      box-shadow: 0 2px 20px rgba(15,42,74,.1);
    }

    .navbar-brand {
      font-family: var(--font-display);
      font-size: 1.2rem;
      color: var(--navy) !important;
      padding: 16px 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .brand-icon {
      width: 38px; height: 38px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--teal), #0e8a72);
      display: flex; align-items: center; justify-content: center;
      color: white; font-size: .95rem;
      flex-shrink: 0;
    }

    .nav-link {
      font-size: .875rem !important;
      font-weight: 500 !important;
      color: var(--muted) !important;
      padding: 8px 14px !important;
      border-radius: 8px;
      transition: all .2s !important;
    }

    .nav-link:hover, .nav-link.active-link {
      color: var(--navy) !important;
      background: var(--white);
    }

    .btn-nav-cta {
      background: var(--teal) !important;
      color: white !important;
      border-radius: 8px !important;
      font-weight: 600 !important;
      font-size: .875rem !important;
    }

    .btn-nav-cta:hover {
      background: #0e8a72 !important;
    }

    /* ═══════ BUTTONS ═══════ */
    .btn-primary-custom {
      background: linear-gradient(135deg, var(--teal), #0e8a72);
      color: white;
      border: none;
      border-radius: var(--radius-sm);
      padding: 12px 28px;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: .92rem;
      transition: all .25s;
      box-shadow: 0 4px 16px rgba(23,165,137,.3);
    }

    .btn-primary-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(23,165,137,.4);
      color: white;
    }

    .btn-outline-custom {
      background: transparent;
      color: var(--navy);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 28px;
      font-family: var(--font-body);
      font-weight: 600;
      font-size: .92rem;
      transition: all .25s;
    }

    .btn-outline-custom:hover {
      background: var(--white);
      border-color: var(--teal);
      color: var(--teal);
    }

    /* ═══════ SECTION LABELS ═══════ */
    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--teal-soft);
      color: var(--teal);
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .6px;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 20px;
      margin-bottom: 14px;
    }

    .section-title {
      font-size: clamp(1.75rem, 3.5vw, 2.6rem);
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .section-sub {
      color: var(--muted);
      font-size: .97rem;
      line-height: 1.75;
    }

    .divider-teal {
      width: 44px; height: 3px;
      background: var(--teal);
      border-radius: 3px;
      margin: 14px 0 22px;
    }

    /* ═══════════════════════════════════════════
       PAGE 1 – HOME / HERO
    ═══════════════════════════════════════════ */
    #heroSection {
      min-height: 100vh;
      background: linear-gradient(145deg, #e8f4fb 0%, var(--bg) 45%, #e8f8f5 100%);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      padding: 100px 0 60px;
    }

    .hero-decor {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: .25;
      pointer-events: none;
    }

    .hero-decor-1 { width: 580px; height: 580px; background: var(--teal); top: -180px; right: -100px; }
    .hero-decor-2 { width: 380px; height: 380px; background: var(--sky); bottom: -100px; left: 5%; }

    .hero-headline {
      font-size: clamp(2.1rem, 5vw, 3.6rem);
      line-height: 1.13;
      margin-bottom: 22px;
    }

    .hero-headline em {
      font-style: normal;
      color: var(--teal);
      position: relative;
    }

    .hero-sub {
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.78;
      max-width: 500px;
      margin-bottom: 36px;
    }

    .hero-stat-box {
      background: var(--white);
      border-radius: var(--radius);
      padding: 20px 24px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .hero-stat-num {
      font-family: var(--font-display);
      font-size: 1.9rem;
      color: var(--navy);
    }

    .hero-stat-label {
      font-size: .78rem;
      color: var(--muted);
      font-weight: 500;
    }

    .hero-visual-card {
      background: var(--white);
      border-radius: 24px;
      padding: 36px;
      box-shadow: var(--shadow-lg);
      position: relative;
    }

    .hero-pill {
      position: absolute;
      background: var(--white);
      border-radius: 50px;
      padding: 9px 18px;
      box-shadow: var(--shadow);
      font-size: .8rem;
      font-weight: 600;
      color: var(--navy);
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .hero-pill-1 { top: -18px; right: 24px; }
    .hero-pill-2 { bottom: -16px; left: 16px; }

    .pill-dot { width: 8px; height: 8px; border-radius: 50%; }
    .dot-green { background: #22c55e; }
    .dot-blue  { background: var(--sky); }

    .feature-mini {
      border-radius: 12px;
      padding: 14px;
      text-align: center;
      flex: 1;
    }

    .feature-mini-icon { font-size: 1.5rem; margin-bottom: 6px; }
    .feature-mini-label { font-size: .72rem; font-weight: 600; }

    /* ═══════ SERVICES HIGHLIGHT CARDS ═══════ */
    .svc-highlight-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 28px 24px;
      border: 1px solid var(--border);
      transition: all .28s;
      height: 100%;
      cursor: pointer;
    }

    .svc-highlight-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--teal);
    }

    .svc-icon-wrap {
      width: 54px; height: 54px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.45rem;
      margin-bottom: 18px;
    }

    .svc-card-name {
      font-family: var(--font-display);
      font-size: 1.05rem;
      margin-bottom: 8px;
    }

    .svc-card-desc {
      font-size: .84rem;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 14px;
    }

    .svc-price-tag {
      font-size: .95rem;
      font-weight: 700;
      color: var(--teal);
    }

    .svc-duration {
      font-size: .76rem;
      color: var(--muted);
      margin-top: 2px;
    }

    /* ═══════ TESTIMONIALS CAROUSEL ═══════ */
    #testiSection { background: var(--navy); position: relative; overflow: hidden; }

    .testi-decor {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      opacity: .12;
      pointer-events: none;
    }

    .testi-decor-1 { width: 400px; height: 400px; background: var(--teal); top: -100px; right: -80px; }
    .testi-decor-2 { width: 300px; height: 300px; background: var(--sky); bottom: -80px; left: 5%; }

    .testi-card {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 20px;
      padding: 36px;
      transition: background .3s;
    }

    .testi-card:hover { background: rgba(255,255,255,.1); }

    .testi-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; }

    .testi-text {
      color: rgba(255,255,255,.82);
      font-size: .93rem;
      line-height: 1.78;
      font-style: italic;
      margin-bottom: 22px;
    }

    .testi-avatar-wrap {
      width: 46px; height: 46px;
      border-radius: 50%;
      background: rgba(255,255,255,.1);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      border: 2px solid rgba(255,255,255,.2);
    }

    .testi-name { font-weight: 700; color: white; font-size: .9rem; }
    .testi-role { font-size: .78rem; color: rgba(255,255,255,.55); }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      filter: none !important;
      width: 40px; height: 40px;
    }

    .testi-carousel-controls {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 32px;
    }

    .testi-btn {
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.2);
      background: rgba(255,255,255,.06);
      color: white;
      font-size: .9rem;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all .2s;
    }

    .testi-btn:hover { background: var(--teal); border-color: var(--teal); }

    /* ═══════ WHY US ═══════ */
    .why-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 28px;
      border: 1px solid var(--border);
      height: 100%;
      transition: all .25s;
    }

    .why-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

    .why-icon {
      width: 50px; height: 50px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      margin-bottom: 16px;
    }

    /* ═══════════════════════════════════════════
       PAGE 2 – BOOKING
    ═══════════════════════════════════════════ */
    .booking-wrapper {
      background: var(--white);
      border-radius: 22px;
      padding: 44px;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
    }

    .booking-sidebar {
      background: linear-gradient(145deg, var(--navy), var(--navy-mid));
      border-radius: 18px;
      padding: 36px;
      color: white;
      height: 100%;
    }

    .booking-sidebar h4 { color: white; font-size: 1.25rem; margin-bottom: 10px; }
    .booking-sidebar p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.7; }

    .bs-feature {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 16px;
      background: rgba(255,255,255,.07);
      border-radius: 12px;
      margin-bottom: 10px;
    }

    .bs-feature-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      background: rgba(23,165,137,.25);
      color: var(--teal);
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .bs-feature-title { font-size: .88rem; font-weight: 600; color: white; margin-bottom: 2px; }
    .bs-feature-sub   { font-size: .78rem; color: rgba(255,255,255,.55); }

    /* Form Styling */
    .form-label {
      font-size: .82rem;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 6px;
    }

    .form-control, .form-select {
      border: 1.5px solid var(--border) !important;
      border-radius: var(--radius-sm) !important;
      font-family: var(--font-body) !important;
      font-size: .9rem !important;
      background: var(--bg) !important;
      color: var(--navy) !important;
      padding: 10px 14px !important;
      transition: border-color .2s, box-shadow .2s !important;
    }

    .form-control:focus, .form-select:focus {
      border-color: var(--teal) !important;
      box-shadow: 0 0 0 3px rgba(23,165,137,.12) !important;
      background: var(--white) !important;
    }

    .form-control.is-invalid, .form-select.is-invalid {
      border-color: #e74c3c !important;
    }

    /* ═══════════════════════════════════════════
       PAGE 3 – SERVICES FULL
    ═══════════════════════════════════════════ */
    .svc-full-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 30px 26px;
      border: 1px solid var(--border);
      height: 100%;
      transition: all .28s;
      position: relative;
      overflow: hidden;
    }

    .svc-full-card::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--teal), var(--sky));
      transform: scaleX(0);
      transition: transform .3s;
      transform-origin: left;
    }

    .svc-full-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
    .svc-full-card:hover::after { transform: scaleX(1); }

    .svc-badge-popular {
      position: absolute;
      top: 16px; right: 16px;
      background: var(--teal);
      color: white;
      font-size: .68rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      letter-spacing: .4px;
      text-transform: uppercase;
    }

    /* ═══════════════════════════════════════════
       PAGE 4 – THERAPISTS
    ═══════════════════════════════════════════ */
    .therapist-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 30px 24px;
      text-align: center;
      border: 1px solid var(--border);
      transition: all .28s;
      height: 100%;
    }

    .therapist-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    .therapist-avatar {
      width: 88px; height: 88px;
      border-radius: 50%;
      margin: 0 auto 18px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.6rem;
      border: 3px solid var(--teal-light);
      background: var(--teal-soft);
    }

    .therapist-name {
      font-family: var(--font-display);
      font-size: 1.05rem;
      margin-bottom: 5px;
    }

    .therapist-spec {
      font-size: .8rem;
      font-weight: 600;
      color: var(--teal);
      margin-bottom: 8px;
    }

    .therapist-exp { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }

    .tag-pill {
      display: inline-block;
      background: var(--teal-soft);
      color: var(--teal);
      font-size: .7rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 20px;
      margin: 2px;
    }

    .btn-portfolio {
      margin-top: 16px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 8px 18px;
      font-size: .82rem;
      font-weight: 600;
      color: var(--navy);
      background: transparent;
      cursor: pointer;
      transition: all .2s;
      font-family: var(--font-body);
    }

    .btn-portfolio:hover {
      background: var(--teal);
      border-color: var(--teal);
      color: white;
    }

    /* ═══════════════════════════════════════════
       PAGE 5 – ADMIN / PATIENTS
    ═══════════════════════════════════════════ */
    .admin-header {
      background: linear-gradient(135deg, var(--navy), var(--navy-mid));
      border-radius: 18px;
      padding: 32px;
      color: white;
      margin-bottom: 28px;
    }

    .admin-stat-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 24px;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .admin-stat-icon {
      width: 52px; height: 52px;
      border-radius: 13px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      flex-shrink: 0;
    }

    .admin-stat-num {
      font-family: var(--font-display);
      font-size: 1.6rem;
    }

    .admin-stat-label {
      font-size: .78rem;
      color: var(--muted);
    }

    .patients-table-wrap {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .patients-table-wrap .table { margin-bottom: 0; font-size: .875rem; }
    .patients-table-wrap .table thead { background: var(--navy); }
    .patients-table-wrap .table thead th {
      color: rgba(255,255,255,.85);
      font-weight: 600;
      font-size: .78rem;
      text-transform: uppercase;
      letter-spacing: .5px;
      padding: 14px 18px;
      border: none;
    }

    .patients-table-wrap .table tbody td {
      padding: 13px 18px;
      vertical-align: middle;
      border-color: var(--border);
      color: var(--navy);
    }

    .patients-table-wrap .table tbody tr:hover td {
      background: var(--bg);
    }

    .status-pill {
      display: inline-block;
      padding: 3px 12px;
      border-radius: 20px;
      font-size: .73rem;
      font-weight: 700;
    }

    .status-confirmed { background: var(--teal-soft); color: var(--teal); }
    .status-pending   { background: #fef3c7; color: #d97706; }
    .status-cancelled { background: #fee2e2; color: #dc2626; }

    /* ═══════════════════════════════════════════
       PAGE 6 – LOGIN
    ═══════════════════════════════════════════ */
    .login-page {
      min-height: 100vh;
      background: linear-gradient(135deg, #e8f4fb 0%, var(--bg) 50%, #e8f8f5 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 80px 20px 40px;
    }

    .login-card {
      background: var(--white);
      border-radius: 24px;
      padding: 50px 44px;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border);
      width: 100%;
      max-width: 460px;
    }

    .login-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
      justify-content: center;
    }

    .login-tabs {
      display: flex;
      gap: 6px;
      background: var(--bg);
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 28px;
    }

    .login-tab-btn {
      flex: 1;
      padding: 9px;
      border: none;
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: .88rem;
      font-weight: 500;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: all .2s;
    }

    .login-tab-btn.active {
      background: var(--white);
      color: var(--navy);
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(0,0,0,.07);
    }

    .input-icon-wrap { position: relative; }

    .input-icon-wrap .form-control { padding-left: 42px !important; }

    .input-icon {
      position: absolute;
      left: 14px; top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: .9rem;
      pointer-events: none;
    }

    .pass-toggle {
      position: absolute;
      right: 14px; top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      cursor: pointer;
      font-size: .9rem;
    }

    .pass-toggle:hover { color: var(--navy); }

    .divider-text {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: .8rem;
      margin: 20px 0;
    }

    .divider-text::before,
    .divider-text::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ═══════ FOOTER ═══════ */
    #mainFooter {
      background: var(--navy);
      color: rgba(255,255,255,.7);
    }

    #mainFooter .footer-brand {
      font-family: var(--font-display);
      color: white;
      font-size: 1.15rem;
    }

    #mainFooter p {
      font-size: .87rem;
      line-height: 1.7;
    }

    #mainFooter h6 {
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: .6px;
      text-transform: uppercase;
      color: rgba(255,255,255,.45);
      margin-bottom: 16px;
    }

    #mainFooter a {
      display: block;
      text-decoration: none;
      color: rgba(255,255,255,.65);
      font-size: .87rem;
      margin-bottom: 8px;
      transition: color .2s;
    }

    #mainFooter a:hover { color: var(--teal); }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.1);
      padding: 20px 0;
      font-size: .8rem;
      color: rgba(255,255,255,.35);
    }

    .social-icon {
      width: 38px; height: 38px;
      border-radius: 9px;
      background: rgba(255,255,255,.07);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,.65);
      font-size: .95rem;
      transition: all .2s;
      cursor: pointer;
      text-decoration: none;
    }

    .social-icon:hover {
      background: var(--teal);
      color: white;
    }

    /* ═══════ SCROLL ANIMATIONS ═══════ */
    .fade-up {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .6s ease, transform .6s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .fade-up-delay-1 { transition-delay: .1s; }
    .fade-up-delay-2 { transition-delay: .2s; }
    .fade-up-delay-3 { transition-delay: .3s; }
    .fade-up-delay-4 { transition-delay: .4s; }

    /* ═══════ MODAL ═══════ */
    .modal-content {
      border-radius: 20px !important;
      border: none !important;
      box-shadow: var(--shadow-lg) !important;
    }

    .modal-header {
      border-bottom: 1px solid var(--border) !important;
      padding: 20px 28px !important;
    }

    .modal-body { padding: 28px !important; }
    .modal-footer { padding: 16px 28px !important; border-top: 1px solid var(--border) !important; }

    .confirm-icon-circle {
      width: 80px; height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--teal), #0e8a72);
      color: white;
      font-size: 2.4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      animation: popIn .4s cubic-bezier(.175,.885,.32,1.275);
    }

    @keyframes popIn {
      from { transform: scale(0); opacity: 0; }
      to   { transform: scale(1); opacity: 1; }
    }

    .confirm-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--border);
      font-size: .87rem;
    }

    .confirm-row:last-child { border-bottom: none; }
    .confirm-row .c-label { color: var(--muted); }
    .confirm-row .c-value { font-weight: 600; color: var(--navy); }

    /* Admin toggle FAB */
    .admin-fab {
      position: fixed;
      bottom: 24px; right: 24px;
      background: var(--navy);
      color: white;
      border: none;
      border-radius: 12px;
      padding: 10px 18px;
      font-family: var(--font-body);
      font-size: .8rem;
      font-weight: 600;
      cursor: pointer;
      z-index: 1000;
      box-shadow: var(--shadow-lg);
      display: flex;
      align-items: center;
      gap: 7px;
      transition: background .2s;
    }

    .admin-fab:hover { background: var(--teal); }

    /* ═══════ RESPONSIVE ═══════ */
    @media (max-width: 991px) {
      .booking-sidebar { margin-bottom: 24px; }
      .booking-wrapper { padding: 28px; }
      #heroSection { padding: 90px 0 60px; }
    }

    @media (max-width: 767px) {
      .hero-visual-card { margin-top: 36px; }
      .login-card { padding: 36px 24px; }
      .booking-wrapper { padding: 20px; }
      .admin-header { padding: 22px; }
    }
  