    :root {
      --primary-rgb: 2, 132, 199;
      --secondary-rgb: 20, 184, 166;
    }

    /* Add any inline tweaks here temporarily */
    .hidden {
      display: none !important;
    }

    /* أنماط مرنة لشبكات الرئيسية */
    .top-stats-grid {
      display: grid !important;
      grid-template-columns: 1.5fr 1fr;
      gap: 15px;
      margin-bottom: 20px;
      transition: all 0.3s ease;
    }

    .top-stats-grid.no-appt {
      grid-template-columns: 1fr !important;
    }

    .clinical-summary-grid {
      display: grid !important;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-bottom: 25px;
      transition: all 0.3s ease;
    }

    /* تحسين الاستجابة للهواتف والأجهزة اللوحية */
    @media (max-width: 768px) {
      .app-container {
        padding: 15px 12px !important;
      }

      .glass-card {
        padding: 15px !important;
        margin-bottom: 12px !important;
        border-radius: 18px !important;
      }

      .top-bar {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 0 0 25px 25px !important;
      }

      .top-stats-grid {
        grid-template-columns: 1.3fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
      }

      #next-appt-date {
        font-size: 13px !important;
        white-space: nowrap;
      }

      #next-appt-time {
        font-size: 11px !important;
        white-space: nowrap;
      }

      .clinical-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
      }

      .top-stats-grid.no-appt .glass-card {
        min-height: auto !important;
        padding: 15px 20px !important;
      }

      .mood-check-card {
        padding: 20px !important;
        margin-bottom: 15px !important;
      }
    }

    html {
      overflow-x: hidden;
    }

    body {
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      -webkit-tap-highlight-color: transparent;
      overflow-x: hidden;
      /* prevent any rogue element causing horizontal scroll */
    }

    * {
      -webkit-tap-highlight-color: transparent;
      outline: none !important;
    }

    button,
    .glass-card,
    .journal-card,
    .nav-item,
    .mood-quadrant,
    .emotion-ball,
    .discover-card {
      -webkit-tap-highlight-color: transparent;
    }

    .mood-modal-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    /* Style for locked exercises in the Client Portal */
    .locked-exercise {
      position: relative !important;
      overflow: hidden !important;
      cursor: pointer !important;
      /* Prevent scaling and standard hover effects */
      transform: none !important;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .locked-exercise:hover {
      transform: none !important;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .locked-exercise:hover i {
      transform: none !important;
      color: rgba(255, 255, 255, 0.25) !important;
    }

    /* Grayscale/dimmed filter for all original card contents *except* the lock-overlay */
    .locked-exercise> :not(.lock-overlay) {
      filter: grayscale(70%) brightness(0.75) contrast(0.9) !important;
      opacity: 0.7 !important;
      transition: all 0.3s ease;
    }

    /* Custom premium styling for the central lock icon overlay */
    .locked-exercise .lock-overlay {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      background: rgba(15, 23, 42, 0.15) !important;
      /* light semi-transparent slate tint */
      backdrop-filter: grayscale(70%) brightness(75%) contrast(90%) !important;
      -webkit-backdrop-filter: grayscale(70%) brightness(75%) contrast(90%) !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      color: #fff !important;
      z-index: 10 !important;
      text-align: center !important;
      padding: 12px !important;
      pointer-events: none !important;
      /* click events go through to the main card */
    }

    /* Large lock icon exactly in the center */
    .locked-exercise .lock-overlay .fa-lock {
      font-size: 32px !important;
      color: #cbd5e1 !important;
      /* light grey/silver lock */
      margin-bottom: 6px !important;
      filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)) !important;
      animation: lockPulse 2s infinite ease-in-out;
    }

    /* 'مغلق' text beneath the lock icon */
    .locked-exercise .lock-overlay span {
      font-size: 12px !important;
      font-weight: 800 !important;
      color: #cbd5e1 !important;
      /* slate grey/silver text */
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
      font-family: 'Cairo', sans-serif !important;
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
    }

    @keyframes lockPulse {

      0%,
      100% {
        transform: scale(1);
        opacity: 0.95;
      }

      50% {
        transform: scale(1.05);
        opacity: 1;
        color: #e2e8f0;
      }
    }

    .mood-close-btn {
      position: absolute;
      top: 25px;
      right: 25px;
      font-size: 24px;
      color: #1e293b;
      background: rgba(255, 255, 255, 0.8);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      z-index: 10001;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .mood-quadrants-container {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(2, 170px);
      grid-template-rows: repeat(2, 170px);
      gap: 10px;
      padding: 0;
      align-content: center;
      justify-content: center;
      position: relative;
    }

    @media (min-width: 600px) {
      .mood-quadrants-container {
        grid-template-columns: repeat(2, 220px);
        grid-template-rows: repeat(2, 220px);
        gap: 20px;
      }

      .mood-quadrant {
        width: 220px !important;
        height: 220px !important;
        font-size: 16px !important;
      }
    }

    .mood-quadrant {
      width: 170px;
      height: 170px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #ffffff;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      border: none;
      filter: blur(8px);
      /* Initial Blur */
      opacity: 0.7;
      transform: scale(0.9);
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
      box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2);
      animation: energyPulse 4s infinite ease-in-out;
    }

    @keyframes energyPulse {

      0%,
      100% {
        transform: scale(0.9) translate3d(0, 0, 0);
      }

      50% {
        transform: scale(0.96) translate3d(0, 0, 0);
      }
    }

    /* Individual Hover Effect: Smoothly clarify and expand */
    @media (min-width: 1025px) {
      .mood-quadrant:hover {
        filter: blur(0px) !important;
        opacity: 1 !important;
        transform: scale(1.15) !important;
        z-index: 10;
        animation: none !important;
      }
    }

    /* Active state for mobile first tap */
    .mood-quadrant.focused {
      filter: blur(0px) !important;
      opacity: 1 !important;
      transform: scale(1.1) !important;
      z-index: 10;
      border: 3px solid rgba(255, 255, 255, 0.8) !important;
      animation: none !important;
    }

    .mood-q-high-pleasant {
      background: radial-gradient(circle at 30% 30%, #FFE082, #FFC107);
    }

    .mood-q-high-unpleasant {
      background: radial-gradient(circle at 30% 30%, #FFAB91, #FF7043);
    }

    .mood-q-low-unpleasant {
      background: radial-gradient(circle at 30% 30%, #90CAF9, #42A5F5);
    }

    .mood-q-low-pleasant {
      background: radial-gradient(circle at 30% 30%, #A5D6A7, #66BB6A);
    }

    /* New Emotion Bubble Grid */
    .emotions-list {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      padding: 20px 10px 120px 10px;
      /* Space for desc box */
      max-height: 70vh;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .emotions-list::-webkit-scrollbar {
      display: none;
    }

    .emotion-bubble {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white;
      font-size: 11px;
      font-weight: 900;
      padding: 10px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: none;
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .emotion-bubble:hover,
    .emotion-bubble.active {
      transform: scale(1.2);
      z-index: 10;
      border-color: white;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    /* Emotion Description Box at Bottom */
    .emotion-desc-box {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      padding: 25px;
      border-radius: 30px 30px 0 0;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
      transform: translateY(100%);
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 10002;
      text-align: right;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .emotion-desc-box.show {
      transform: translateY(0);
    }

    .emotion-desc-name {
      font-size: 18px;
      font-weight: 950;
      color: #1e293b;
    }

    .emotion-desc-text {
      font-size: 13px;
      color: #64748b;
      font-weight: 600;
      line-height: 1.5;
    }

    /* Custom Toast Notification */
    #toast-container {
      position: fixed;
      top: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
      width: 90%;
      max-width: 350px;
    }

    .custom-toast {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(15px);
      padding: 12px 20px;
      border-radius: 15px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      gap: 12px;
      border-right: 4px solid var(--primary);
      animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      pointer-events: auto;
    }

    .custom-toast.success {
      border-right-color: #10b981;
    }

    .custom-toast.error {
      border-right-color: #ef4444;
    }

    .custom-toast.info {
      border-right-color: #3b82f6;
    }

    .custom-toast i {
      font-size: 18px;
    }

    @keyframes toastIn {
      from {
        transform: translateY(-20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes toastOut {
      to {
        transform: translateY(-20px);
        opacity: 0;
      }
    }

    /* ============================================================
       PREMIUM REDESIGNED CLIENT LOGIN STYLE — RE-MIND
       ============================================================ */

    #login-page {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 99999;
      background: #ffffff;
      overflow: hidden;
      direction: rtl;
      font-family: 'Cairo', sans-serif;
      padding: 0 !important;
      /* Fix the white frame issue */
    }

    .login-container {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      width: 100%;
      height: 100%;
    }

    /* ============================================================
       LEFT COLUMN — VISUAL BANNER & COLLAGE
       ============================================================ */
    .login-banner {
      background: radial-gradient(circle at 10% 20%, rgba(0, 168, 132, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(0, 80, 130, 0.06) 0%, transparent 60%),
        #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px;
      position: relative;
      overflow: hidden;
      border-left: 1px solid rgba(0, 0, 0, 0.04);
    }

    .banner-content {
      max-width: 620px;
      width: 100%;
      position: relative;
      z-index: 5;
    }

    .banner-logo {
      width: 160px;
      height: auto;
      margin-bottom: 30px;
      filter: drop-shadow(0 8px 16px rgba(0, 80, 130, 0.05));
      transition: transform 0.3s;
    }

    .banner-logo:hover {
      transform: scale(1.03);
    }

    .banner-title {
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 950;
      color: #005082;
      line-height: 1.35;
      margin-bottom: 16px;
      letter-spacing: -0.5px;
    }

    .banner-title span {
      background: linear-gradient(135deg, #005082 0%, #00a884 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }

    .banner-subtitle {
      font-size: 16px;
      font-weight: 600;
      color: #64748b;
      line-height: 1.7;
      margin-bottom: 45px;
    }

    /* Floating collage */
    .banner-illustration {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
    }

    .main-collage-img {
      width: 85%;
      max-width: 440px;
      height: auto;
      border-radius: 24px;
      filter: drop-shadow(0 25px 50px rgba(0, 80, 130, 0.12));
      animation: float-collage 6s ease-in-out infinite;
      z-index: 2;
    }

    @keyframes float-collage {

      0%,
      100% {
        transform: translateY(0) rotate(0deg);
      }

      50% {
        transform: translateY(-12px) rotate(1deg);
      }
    }

    /* Floating micro cards */
    .collage-card {
      position: absolute;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 18px;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
      z-index: 3;
      animation: float-card 8s ease-in-out infinite;
    }

    .collage-card i {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .icon-teal {
      background: rgba(0, 168, 132, 0.1);
      color: #00a884;
    }

    .icon-blue {
      background: rgba(0, 80, 130, 0.1);
      color: #005082;
    }

    .icon-gold {
      background: rgba(234, 179, 8, 0.1);
      color: #eab308;
    }

    .card-details {
      display: flex;
      flex-direction: column;
      text-align: right;
    }

    .card-details span {
      font-size: 11px;
      font-weight: 700;
      color: #94a3b8;
    }

    .card-details strong {
      font-size: 13px;
      font-weight: 900;
      color: #1e293b;
    }

    .card-1 {
      top: 15%;
      right: -5%;
      animation-delay: 0s;
    }

    .card-2 {
      bottom: 20%;
      left: -5%;
      animation-delay: 2s;
    }

    .card-3 {
      bottom: 5%;
      right: 5%;
      animation-delay: 4s;
    }

    @keyframes float-card {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-8px);
      }
    }

    /* ============================================================
       RIGHT COLUMN — FORM CARD AREA
       ============================================================ */
    .login-form-area {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      background: #ffffff;
      overflow-y: auto;
    }

    .login-card {
      width: 100%;
      max-width: 420px;
      animation: form-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes form-fade-in {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .form-logo-mobile {
      display: none;
    }

    .form-header {
      text-align: right;
      margin-bottom: 35px;
    }

    .form-header h3 {
      color: #005082;
      font-size: 26px;
      font-weight: 900;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }

    .form-header p {
      color: #64748b;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.6;
    }

    .form-body {
      text-align: right;
    }

    .input-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 22px;
      position: relative;
    }

    .input-group label {
      font-size: 13px;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .input-group label i {
      color: #00a884;
    }

    .input-group input {
      width: 100%;
      padding: 15px 18px;
      border: 1.5px solid #e2e8f0;
      border-radius: 16px;
      font-family: 'Cairo', sans-serif;
      font-size: 15px;
      font-weight: 700;
      background: #f8fafc;
      color: #1e293b;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-sizing: border-box;
    }

    .input-group input::placeholder {
      color: #94a3b8;
      font-weight: 600;
    }

    .input-group input:focus {
      border-color: #00a884;
      background: #ffffff;
      outline: none;
      box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.12);
      transform: translateY(-1px);
    }

    /* Specific styling for password inputs */
    .input-group input[type="password"] {
      letter-spacing: normal;
      text-align: right;
    }

    /* Submit Button */
    .btn-submit-premium {
      width: 100%;
      padding: 16px;
      border-radius: 16px;
      font-weight: 800;
      font-size: 16px;
      border: none;
      cursor: pointer;
      background: linear-gradient(135deg, #005082 0%, #00a884 100%);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 10px 20px rgba(0, 168, 132, 0.18);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: 'Cairo', sans-serif;
    }

    .btn-submit-premium:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(0, 168, 132, 0.25);
      filter: brightness(1.03);
    }

    .btn-submit-premium:active {
      transform: translateY(0);
    }

    /* Button Loading State */
    .btn-submit-premium:disabled {
      background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%) !important;
      box-shadow: none !important;
      cursor: not-allowed;
      transform: none !important;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 15px;
      margin: 28px 0;
      color: #94a3b8;
      font-weight: 700;
      font-size: 12px;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1.5px;
      background: #e2e8f0;
    }

    .register-hint {
      text-align: center;
      font-size: 14px;
      font-weight: 700;
      color: #64748b;
    }

    .register-link {
      color: #00a884;
      text-decoration: none;
      transition: 0.3s;
    }

    .register-link:hover {
      text-decoration: underline;
    }

    /* Secondary Action Button */
    .btn-secondary-premium {
      width: 100%;
      padding: 15px;
      border-radius: 16px;
      font-weight: 800;
      font-size: 14px;
      border: 2px solid #e2e8f0;
      background: transparent;
      color: #005082;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      text-decoration: none;
      box-sizing: border-box;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: 'Cairo', sans-serif;
    }

    .btn-secondary-premium:hover {
      border-color: #005082;
      background: rgba(0, 80, 130, 0.03);
      transform: translateY(-1px);
    }

    .form-footer {
      text-align: center;
      margin-top: 40px;
      font-size: 11px;
      font-weight: 700;
      color: #94a3b8;
    }

    /* ============================================================
       RESPONSIVENESS BREAKPOINTS
       ============================================================ */
    @media (max-width: 1024px) {
      .login-container {
        grid-template-columns: 1fr;
      }

      .login-banner {
        display: none;
        /* Hide visual collage column on smaller displays */
      }

      .login-form-area {
        background: radial-gradient(circle at 10% 20%, rgba(0, 168, 132, 0.05) 0%, transparent 50%),
          radial-gradient(circle at 90% 80%, rgba(0, 80, 130, 0.05) 0%, transparent 50%),
          #f8fafc;
        min-height: 100vh;
        padding: 30px 20px;
      }

      .login-card {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 25px 50px rgba(0, 80, 130, 0.06);
        padding: 40px 30px;
        border-radius: 30px;
      }

      .form-logo-mobile {
        display: block;
        width: 140px;
        height: auto;
        margin: 0 auto 25px auto;
        filter: drop-shadow(0 6px 12px rgba(0, 80, 130, 0.04));
      }

      .form-header {
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .login-form-area {
        padding: 15px;
      }

      .login-card {
        padding: 30px 20px;
        border-radius: 24px;
      }

      .form-header h3 {
        font-size: 22px;
      }

      .input-group input {
        padding: 13px 15px;
        border-radius: 12px;
      }

      .btn-submit-premium {
        padding: 14px;
        border-radius: 12px;
        font-size: 15px;
      }

      .btn-secondary-premium {
        padding: 13px;
        border-radius: 12px;
        font-size: 13px;
      }
    }

    /* Floating Bubbles - REMOVED (performance) */

    /* Global App Design - Light Futuristic */
    body {
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      min-height: 100dvh;
      color: #1e293b;
      position: relative;
    }

    .app-container {
      position: relative;
      z-index: 2;
      background: transparent !important;
      /* min-height: 100vh removed — was causing massive white space on mobile */
      padding-bottom: 100px;
      /* Space for bottom nav + safe zone */
    }

    .glass-card {
      background: rgba(255, 255, 255, 0.95) !important;
      border: none !important;
      border-radius: 25px !important;
      box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04) !important;
      transition: box-shadow 0.3s ease, background 0.3s ease;
    }

    .glass-card:hover {
      background: #ffffff !important;
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
    }

    .top-bar {
      background: rgba(255, 255, 255, 0.9) !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
      padding: 20px !important;
      border-radius: 0 0 35px 35px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    }

    .bottom-nav {
      position: fixed !important;
      bottom: 20px !important;
      left: 15px !important;
      right: 15px !important;
      width: auto !important;
      background: rgba(255, 255, 255, 0.96) !important;
      border: 1px solid rgba(255, 255, 255, 0.8) !important;
      border-radius: 24px !important;
      box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08) !important;
      display: flex !important;
      flex-direction: row !important;
      justify-content: space-around !important;
      align-items: center !important;
      padding: 10px 8px !important;
      z-index: 1000 !important;
      transition: all 0.3s ease !important;
      height: auto !important;
      box-sizing: border-box !important;
    }

    @media (min-width: 600px) {
      .bottom-nav {
        width: 100% !important;
        max-width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        bottom: 25px !important;
        border-radius: 28px !important;
        padding: 10px 20px !important;
      }
    }

    .nav-item {
      flex: 1 !important;
      width: 20% !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative !important;
      color: #94a3b8 !important;
      font-size: 10px !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      padding: 8px 2px 12px 2px !important;
      border-radius: 20px !important;
      gap: 4px !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }

    .nav-item i {
      font-size: 18px !important;
      color: #94a3b8 !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .nav-item.active {
      color: var(--primary) !important;
      background: rgba(var(--primary-rgb), 0.08) !important;
      transform: scale(1.03) !important;
    }

    .nav-item.active i {
      color: var(--primary) !important;
      transform: translateY(-2px);
    }

    /* Glowing Dot under active nav-item */
    .nav-item::after {
      content: '';
      position: absolute;
      bottom: 4px;
      width: 4px;
      height: 4px;
      background: var(--primary);
      border-radius: 50%;
      opacity: 0;
      transform: scale(0);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 8px var(--primary);
    }

    .nav-item.active::after {
      opacity: 1;
      transform: scale(1.5);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), #4f46e5) !important;
      border-radius: 18px !important;
      font-weight: 800 !important;
      box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25) !important;
      border: none !important;
    }

    .progress-bar-bg {
      background: rgba(255, 255, 255, 0.6) !important;
      border: none;
      height: 10px !important;
      border-radius: 5px !important;
    }

    /* Global Loader */
    #global-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #f1f5f9;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999999;
      transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
    }

    .loader-content {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .loader-visual {
      position: relative;
      width: 200px;
      height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
    }

    .loader-logo {
      width: 100px;
      height: auto;
      z-index: 10;
      animation: logoFloat 4s infinite ease-in-out;
    }

    @keyframes logoFloat {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-10px);
      }
    }

    .ripple {
      position: absolute;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.8);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
      animation: rippleEffect 4s infinite cubic-bezier(0, 0, 0.2, 1);
    }

    .ripple:nth-child(2) {
      animation-delay: 1.3s;
    }

    .ripple:nth-child(3) {
      animation-delay: 2.6s;
    }

    @keyframes rippleEffect {
      0% {
        transform: scale(1);
        opacity: 0.8;
      }

      100% {
        transform: scale(3.5);
        opacity: 0;
      }
    }

    .loader-text {
      font-family: 'Cairo', sans-serif;
      font-weight: 800;
      color: #475569;
      font-size: 15px;
      margin-top: 10px;
      letter-spacing: 0.5px;
      animation: textFade 2s infinite ease-in-out;
    }

    @keyframes textFade {

      0%,
      100% {
        opacity: 0.5;
      }

      50% {
        opacity: 1;
      }
    }

    /* --- EMOTION BUBBLES (HOW WE FEEL STYLE) --- */
    .mood-emotions-grid {
      display: none;
      flex-direction: column;
      height: 100%;
      padding: 20px;
      overflow-y: auto;
      background: #fff;
    }

    .emotions-grid-title {
      font-size: 28px;
      font-weight: 950;
      margin-top: 40px;
      margin-bottom: 5px;
      text-align: center;
      background: linear-gradient(135deg, #1e293b, #64748b);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -0.5px;
    }

    .emotions-grid-subtitle {
      font-size: 14px;
      color: #94a3b8;
      font-weight: 700;
      text-align: center;
      margin-bottom: 25px;
    }

    /* Back Button Style */
    .mood-back-btn {
      position: absolute;
      top: 25px;
      right: 25px;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(0, 0, 0, 0.05);
      color: #1e293b;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      cursor: pointer;
      z-index: 100;
      transition: all 0.3s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .mood-back-btn:hover {
      background: #fff;
      transform: scale(1.1);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .emotions-list {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
      align-items: center;
      padding: 20px 10px 150px 10px;
    }

    .emotion-bubble {
      flex-shrink: 0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 15px;
      font-weight: 800;
      color: #fff;
      cursor: pointer;
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
      border: none !important;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
      animation: bubbleFloat 4s infinite ease-in-out;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      position: relative;
    }

    /* Random Size Classes */
    .bubble-s {
      width: 75px;
      height: 75px;
      font-size: 11px;
    }

    .bubble-m {
      width: 100px;
      height: 100px;
      font-size: 13px;
    }

    .bubble-l {
      width: 125px;
      height: 125px;
      font-size: 15px;
    }

    .emotion-bubble:nth-child(even) {
      animation-delay: 0.5s;
      animation-duration: 4.5s;
    }

    .emotion-bubble:nth-child(3n) {
      animation-delay: 1s;
      animation-duration: 5s;
    }

    @keyframes bubbleFloat {

      0%,
      100% {
        transform: translateY(0) scale(1);
      }

      50% {
        transform: translateY(-5px) scale(1.02);
      }
    }

    .emotion-bubble:hover,
    .emotion-bubble.active {
      transform: scale(1.3) !important;
      z-index: 10;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
      animation-play-state: paused;
    }

    /* Futuristic Description Box */
    .emotion-desc-box {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.98);
      padding: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: 45px 45px 0 0;
      box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.12);
      transform: translateY(100%);
      transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 12px;
      text-align: center;
    }

    .emotion-desc-box::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 5px;
      background: rgba(0, 0, 0, 0.05);
      border-radius: 10px;
    }

    .emotion-desc-box.show {
      transform: translateY(0);
    }

    .emotion-desc-name {
      font-size: 24px;
      font-weight: 950;
      color: #1e293b;
      letter-spacing: -0.5px;
    }

    .emotion-desc-text {
      font-size: 15px;
      color: #64748b;
      line-height: 1.6;
      font-weight: 700;
      padding: 0 10px;
    }

    .emotion-confirm-btn {
      margin-top: 15px;
      padding: 16px;
      border-radius: 22px;
      background: linear-gradient(135deg, var(--primary), #4f46e5);
      color: #fff;
      border: none;
      font-weight: 950;
      font-size: 17px;
      cursor: pointer;
      transition: all 0.4s;
      box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    }

    .emotion-confirm-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    }

    .emotion-confirm-btn:active {
      transform: scale(0.95);
    }

    /* MODAL SYSTEM (Therapist Style) */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      z-index: 20000;
      justify-content: center;
      align-items: center;
    }

    .modal.show {
      display: flex !important;
      animation: modalFadeIn 0.3s ease;
    }

    .modal-content {
      background: #fff;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes modalFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes modalScaleUp {
      from {
        transform: scale(0.8);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* CHAT BUBBLES */
    .t-bubble {
      max-width: 85%;
      padding: 12px 16px;
      border-radius: 18px;
      font-size: 13px;
      line-height: 1.6;
      position: relative;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
      font-weight: 600;
    }

    .t-bubble.me {
      align-self: flex-start;
      background: linear-gradient(135deg, var(--primary), #4f46e5);
      color: white;
      border-bottom-right-radius: 4px;
      text-align: right;
    }

    .t-bubble.other {
      align-self: flex-end;
      background: #f1f5f9;
      color: #1e293b;
      border-bottom-left-radius: 4px;
      text-align: right;
    }

    .t-bubble.system {
      align-self: center;
      background: #f1f5f9;
      color: #94a3b8;
      font-size: 10px;
      padding: 5px 12px;
      border-radius: 12px;
      font-weight: 800;
    }

    /* GPU-ACCELERATED COMPACT WIZARD SLIDER */
    .booking-slider-container {
      position: relative;
      width: 100%;
      overflow: hidden;
      min-height: 280px;
      transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .booking-slide {
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      pointer-events: none;
      transform: translateX(100%);
      transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    }

    .booking-slide.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
      position: relative;
      /* Let container scale to this slide's height */
    }

    .booking-slide.exit-left {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-100%);
    }

    .booking-slide.exit-right {
      opacity: 0;
      pointer-events: none;
      transform: translateX(100%);
    }

    .booking-card {
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: 24px;
      padding: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
      margin-bottom: 20px;
      transition: all 0.3s ease;
    }

    .booking-card:hover {
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    }

    .therapist-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }

    .therapist-card-btn {
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(0, 0, 0, 0.04);
      border-radius: 14px;
      padding: 10px 15px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      justify-content: flex-start;
    }

    .therapist-card-btn:hover {
      background: rgba(var(--primary-rgb), 0.05);
      border-color: rgba(var(--primary-rgb), 0.15);
    }

    .therapist-card-btn.selected {
      background: var(--primary) !important;
      color: white !important;
      border-color: var(--primary) !important;
      box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
    }

    .therapist-card-btn .th-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(var(--primary-rgb), 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--primary);
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .therapist-card-btn.selected .th-avatar {
      background: rgba(255, 255, 255, 0.2) !important;
      color: white !important;
    }

    .therapist-card-btn .th-name {
      font-size: 13px;
      font-weight: 800;
      text-align: right;
      flex: 1;
    }

    .therapist-card-btn .check-icon {
      opacity: 0;
      transition: all 0.2s;
      font-size: 16px;
      color: white;
    }

    .therapist-card-btn.selected .check-icon {
      opacity: 1 !important;
    }

    /* Time slots */
    .client-appt-slots-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .client-appt-slot {
      padding: 10px 8px;
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 12px;
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      color: #1e293b;
      cursor: pointer;
      transition: all 0.2s;
    }

    .client-appt-slot:hover {
      background: rgba(var(--primary-rgb), 0.08);
      border-color: rgba(var(--primary-rgb), 0.2);
    }

    .client-appt-slot.selected {
      background: var(--primary) !important;
      color: white !important;
      border-color: var(--primary) !important;
      box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    }

    .client-appt-slot.booked {
      background: rgba(0, 0, 0, 0.05) !important;
      border-color: rgba(0, 0, 0, 0.02) !important;
      color: #94a3b8 !important;
      cursor: not-allowed;
      opacity: 0.55;
    }

    /* Calendar styles */
    .booking-calendar-wrapper {
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.6);
      border-radius: 20px;
      padding: 15px;
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.01);
    }

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

    .calendar-ctrl button {
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 10px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #1e293b;
      cursor: pointer;
      transition: all 0.2s;
    }

    .calendar-ctrl button:hover {
      background: var(--primary);
      color: white;
    }

    .calendar-month-name {
      font-size: 14px;
      font-weight: 900;
      color: #1e293b;
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
      margin-bottom: 8px;
      text-align: center;
    }

    .calendar-wd-item {
      font-size: 10px;
      font-weight: 800;
      color: #64748b;
    }

    .calendar-days-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }

    .calendar-day-cell {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 800;
      border-radius: 50%;
      cursor: pointer;
      color: #1e293b;
      transition: all 0.2s;
    }

    .calendar-day-cell:hover:not(.disabled) {
      background: rgba(var(--primary-rgb), 0.1);
      color: var(--primary);
    }

    .calendar-day-cell.selected {
      background: var(--primary) !important;
      color: white !important;
    }

    .calendar-day-cell.today {
      border: 2px solid var(--primary);
    }

    .calendar-day-cell.disabled {
      color: #cbd5e1;
      cursor: not-allowed;
      pointer-events: none;
      opacity: 0.4;
    }

    .booking-status-badge {
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 800;
      margin-top: 10px;
      line-height: 1.4;
    }

    /* Bubbles Background */
    .bubbles-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      /* Keep behind cards but above background gradient */
      pointer-events: none;
      overflow: hidden;
    }

    .bubble {
      position: absolute;
      bottom: -150px;
      background: rgba(255, 255, 255, 0.6);
      border-radius: 50%;
      animation: floatUp 20s infinite ease-in-out;
      will-change: transform, opacity;
      transform: translate3d(0, 0, 0);
      box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    @keyframes floatUp {
      0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
      }

      20% {
        opacity: 0.8;
      }

      100% {
        transform: translate3d(80px, -120vh, 0);
        opacity: 0;
      }
    }

    .bubble:nth-child(1) {
      width: 120px;
      height: 120px;
      left: 5%;
      animation-duration: 22s;
      background: rgba(20, 184, 166, 0.08);
      /* Teal */
    }

    .bubble:nth-child(2) {
      width: 200px;
      height: 200px;
      left: 75%;
      animation-duration: 28s;
      animation-delay: 2s;
      background: rgba(2, 132, 199, 0.08);
      /* Blue */
    }

    .bubble:nth-child(3) {
      width: 80px;
      height: 80px;
      left: 45%;
      animation-duration: 18s;
      animation-delay: 4s;
      background: rgba(20, 184, 166, 0.05);
    }

/* Lighten and refine the Bold weight of numbers and headings in all cards */
.stat-value,
.stat-value-simple,
.team-stat-value,
.summary-value,
.info-val,
.collage-card strong,
.card-details strong {
  font-weight: 600 !important; /* Clean semi-bold (instead of thick bold) */
}

/* Enforce bold weight for primary card headings as requested by the user */
.card h3,
.card-title {
  font-weight: 800 !important; /* Premium thick bold for main titles */
}

.stat-label,
.summary-label,
.stat-label-simple,
.stat-tag-simple,
.info-label,
.collage-card span,
.card-details span {
  font-weight: 500 !important; /* Elegant medium weight (instead of semi-bold/heavy bold) */
}

.stat-subtitle {
  font-weight: 400 !important; /* Soft regular weight (instead of medium) */
}
