/* Global baseline with Poppins */
    body {
      font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-weight: 300;
      font-variation-settings: 'wght' 300;
      letter-spacing: -0.01em;
      font-size: 13px;
      text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.3);
      background: #f5f6f9;
    }

    html, body, button, input, select, textarea, label, span, p, a, div, h1, h2, h3, h4, h5, h6 {
      font-weight: 300 !important;
    }

    .font-semibold, .font-bold, .font-extrabold, .font-black, strong, b {
      font-weight: 300 !important;
    }
    /* Smooth material icons alignment */
    .material-symbols-outlined {
      font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
      line-height: 1;
      font-size: 18px;
      text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.25);
    }
    /* custom scroll for side nav */
    ::-webkit-scrollbar {
      width: 5px;
    }
    ::-webkit-scrollbar-track {
      background: #e6e8ec;
      border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb {
      background: #b0b3b8;
      border-radius: 10px;
    }
    /* extra card styles */
    .trend-bar {
      transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }
    .nav-item-active {
      background: #25D366;
      color: white;
    }
    .nav-item-inactive {
      color: black;
      transition: all 0.2s;
    }
    .nav-item-inactive:hover {
      background: #e0e3e6;
      color: #2c2f31;
    }
    .dark .nav-item-inactive:hover {
      background: #1e293b;
      color: #ffffff;
    }
    /* custom gradient for upgrade card */
    .upgrade-glow {
      background: linear-gradient(135deg, #4546d7 0%, #5f60e9 100%);
    }
    
    /* ===== ENHANCED RESPONSIVE SIDEBAR WITH HAMBURGER THAT CHANGES TO CLOSE ICON ===== */
    
    /* DESKTOP (≥1025px): Sidebar always visible, no mobile header */
    @media (min-width: 1025px) {
      aside {
        display: flex !important;
        transform: translateX(0) !important;
        position: fixed;
        left: 0;
        top: 0;
      }
      .mobile-header {
        display: none !important;
      }
      .mobile-sidebar-close {
        display: none !important;
      }
      main {
        margin-left: 256px !important;
      }
      
      /* Desktop bottom navigation */
      body {
        padding-bottom: 80px;
      }
      .desktop-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 256px;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        padding: 0.6rem 1.5rem;
        z-index: 45;
      }
      .desktop-bottom-nav .nav-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        max-width: 1200px;
        margin: 0 auto;
      }
      .desktop-bottom-nav .bottom-nav-item {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1.25rem;
        border-radius: 0.75rem;
        font-size: 0.75rem;
        font-weight: 500;
        font-family: 'Montserrat', sans-serif;
        transition: all 0.2s ease;
        color: #2c2f31;
        background: transparent;
        cursor: pointer;
      }
      .desktop-bottom-nav .bottom-nav-item:hover {
        background: #e8eaed;
        transform: translateY(-2px);
      }
      .desktop-bottom-nav .bottom-nav-item.active {
        background: #25D366;
        color: white;
      }
      .desktop-bottom-nav .bottom-nav-item img {
        width: 1rem;
        height: 1rem;
        object-fit: contain;
      }
      main {
        padding-bottom: 2rem;
      }
      footer {
        margin-bottom: 0.5rem;
      }
    }
    
    /* MOBILE & TABLET (≤1024px): Sidebar becomes slide-out drawer */
    @media (max-width: 1024px) {
      /* Hide desktop bottom nav */
      .desktop-bottom-nav {
        display: none !important;
      }
      body {
        padding-bottom: 0;
      }
      
      /* Sidebar styling - sliding drawer */
      aside {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1001;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
        display: flex !important;
      }
      
      aside.mobile-open {
        transform: translateX(0) !important;
      }
      
      /* Main content full width */
      main {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 0.5rem !important;
      }
      
      /* Mobile header with hamburger/close button */
      .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 999;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
      }
      
      .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      
      .mobile-logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #25D366;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 18px;
      }
      
      /* Close button inside sidebar */
      .mobile-sidebar-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
      }
      
      /* Adjust calendar grid for mobile */
      .grid-cols-7 {
        gap: 0.25rem;
      }
      .text-xs {
        font-size: 0.7rem;
      }
      .text-2xl {
        font-size: 1.3rem;
      }
      .rounded-xl {
        border-radius: 0.6rem;
      }
      .upgrade-glow h3 {
        font-size: 1.1rem;
      }
    }
    
    /* Tablet specific adjustments */
    @media (min-width: 769px) and (max-width: 1024px) {
      aside {
        width: 260px;
      }
      .px-10 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
      .grid-cols-12 {
        gap: 1rem;
      }
    }
    
    /* Small desktop fine-tuning */
    @media (min-width: 1025px) and (max-width: 1280px) {
      .max-w-7xl {
        max-width: 90%;
      }
    }
    
    @media (min-width: 1025px) and (max-width: 1200px) {
      .desktop-bottom-nav .bottom-nav-item {
        padding: 0.4rem 0.9rem;
        font-size: 0.7rem;
      }
      .desktop-bottom-nav .bottom-nav-item img {
        width: 0.9rem;
        height: 0.9rem;
      }
    }
    
    /* Hide any stray elements */
    .mobile-menu-btn {
      display: none !important;
    }

    /* B4Bbundle custom logo style */
    .b4b-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }
    .b4b-logo .logo-icon {
      width: 42px;
      height: 42px;
      background: linear-gradient(145deg, #4546d7, #7b7cff);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 14px -4px rgba(69, 70, 215, 0.3);
      flex-shrink: 0;
    }
    .b4b-logo .logo-icon .material-symbols-outlined {
      font-size: 26px;
      color: white;
      font-variation-settings: 'FILL' 1, 'wght' 500;
    }
    .b4b-logo .logo-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }
    .b4b-logo .logo-text .brand {
      font-weight: 700;
      font-size: 1.4rem;
      letter-spacing: -0.02em;
    }
    .b4b-logo .logo-text .brand .green-four {
      color: #25D366;
      -webkit-text-fill-color: #25D366;
      background: none;
    }
    .b4b-logo .logo-text .brand .rest {
      background: linear-gradient(135deg, #0f009c, #4546d7);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .b4b-logo .logo-text .tagline {
      font-weight: 300;
      font-size: 0.55rem;
      letter-spacing: 0.08em;
      color: #75777a;
      text-transform: uppercase;
      -webkit-text-fill-color: #75777a;
      margin-top: -2px;
    }
    .b4b-logo .bundle-badge {
      background: #25D366;
      color: white;
      font-size: 0.5rem;
      font-weight: 600;
      padding: 0.15rem 0.7rem;
      border-radius: 30px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: linear-gradient(135deg, #2b9e4f, #25D366);
      box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
      -webkit-text-fill-color: white;
    }

    /* mobile logo adjustment */
    .mobile-logo .b4b-logo .logo-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
    }
    .mobile-logo .b4b-logo .logo-icon .material-symbols-outlined {
      font-size: 20px;
    }
    .mobile-logo .b4b-logo .logo-text .brand {
      font-size: 1.1rem;
    }
    .mobile-logo .b4b-logo .logo-text .tagline {
      font-size: 0.45rem;
    }
    .mobile-logo .b4b-logo .bundle-badge {
      font-size: 0.4rem;
      padding: 0.1rem 0.5rem;
    }

    /* Error styles - matching signup page exactly */
    .input-error {
      border-color: #b41340 !important;
    }
    .error-text {
      color: #b41340;
      font-size: 11px;
      margin-top: 4px;
    }
    .alert-error {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fecaca;
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 13px;
      margin-bottom: 16px;
      font-family: 'Poppins', system-ui, sans-serif;
      font-weight: 300;
    }
    
    /* Success alert style - matching signup page */
    .alert-success {
      background: #d1fae5;
      color: #065f46;
      border: 1px solid #a7f3d0;
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 13px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: fadeInUp 0.5s ease;
      font-family: 'Poppins', system-ui, sans-serif;
      font-weight: 300;
    }
    
    .alert-success .icon {
      font-size: 18px;
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }