/* ============================================
   VERTICAL SIDEBAR NAVIGATION - WHITE THEME
   WITH ICON-ONLY MODE FOR TABLET/MOBILE
   ============================================ */

   :root {
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: #1a1a1a;
    --sidebar-hover: #2a2a2a;
    --sidebar-active: #3a3a3a;
    --text-primary: #667eea;
    --text-secondary: #6d6d6d;
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    --border-color: #6d6d6d;
    --main-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  /* ============================================
     HIDE OLD NAVBAR COMPLETELY
     ============================================ */
  
  .navbar,
  .mobile-menu,
  .hamburger-menu,
  .mobile-nav-right,
  .desktop-nav,
  .nav-buttons {
    display: none !important;
  }
  
  /* ============================================
     SIDEBAR STRUCTURE
     ============================================ */
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(42, 42, 42, 0.27);
    transition: width 0.3s ease, transform 0.3s ease;
    box-shadow: 6px 0 0.625rem rgb(0 0 0 / 21%);
  }
  
  .sidebar-header {
    padding: 0.625rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    transition: padding 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
  }
  
  .sidebar-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
  }
  
  /* ============================================
     LOGO SWAP SYSTEM
     ============================================ */
  
  .sidebar-logo.full-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
  }
  
  .sidebar-logo.icon-logo {
    display: none;
    height: 35px;
    width: 35px;
    transition: all 0.3s ease;
    object-fit: contain;
  }
  
  .sidebar.collapsed .sidebar-logo.full-logo {
    display: none;
  }
  
  .sidebar.collapsed .sidebar-logo.icon-logo {
    display: block;
  }
  
  /* ============================================
     NAVIGATION ITEMS
     ============================================ */
  
  .sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
  }
  
  .sidebar-nav::-webkit-scrollbar {
    width: 6px;
  }
  
  .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
  }
  
  .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
  }
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav-item:hover {
    background: var(--gradient-primary);
    color: white;
    -webkit-text-fill-color: white;
  }
  
  .nav-item.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    -webkit-text-fill-color: white;
  }
  
  .nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
  }
  
  .nav-item span {
    transition: opacity 0.3s ease;
  }
  
  /* ============================================
     SIDEBAR FOOTER (USER PROFILE)
     ============================================ */
  
  .sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border-color);
    background: white;
  }
  
  .user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: var(--radius-md, 0.5rem);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
  }
  
  .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
  }
  
  .user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.3s ease;
  }
  
  .user-name {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .user-email {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 0.5rem);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .logout-btn:hover {
    background: var(--gradient-primary);
    color: white;
    -webkit-text-fill-color: white;
  }
  
  .logout-btn span {
    transition: opacity 0.3s ease;
  }
  
  /* ============================================
     MAIN CONTENT AREA
     ============================================ */
  
  .main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--main-bg);
    transition: margin-left 0.3s ease;
    /* overflow-x: hidden; */
  }
  
  .main-content .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  
  .main-content > .container {
    background: transparent !important;
  }
  
  .main-content .container > .page {
    min-height: 100vh;
  }
  
  /* ============================================
     MOBILE MENU TOGGLE
     ============================================ */

  
  .mobile-menu-toggle i{
    font-size: 18px;

  }   
  .mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: 1px solid;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    bottom: 9rem;
    left: 15px;
    position: absolute;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
  }
  
  /* ============================================
     TOOLTIP FOR COLLAPSED STATE
     ============================================ */
  
  .nav-item-tooltip {
    position: absolute;
    left: 100%;
    margin-left: 0.625rem;
    background: var(--sidebar-bg);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm, 0.375rem);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  }
  
  .nav-item-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--sidebar-bg);
  }
  
  /* ============================================
     COLLAPSED SIDEBAR (ICON-ONLY MODE)
     ============================================ */
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
  
  .sidebar.collapsed .sidebar-header {
    padding: 1.25rem 0.625rem;
  }
  
  .sidebar.collapsed .sidebar-logo {
    height: 30px;
  }
  
  .sidebar.collapsed .nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
  
  .sidebar.collapsed .nav-item {
    padding: 0.75rem;
    justify-content: center;
  }
  
  .sidebar.collapsed .nav-item:hover .nav-item-tooltip {
    opacity: 1;
  }
  
  .sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
  
  .sidebar.collapsed .user-profile {
    padding: 0.75rem;
    justify-content: center;
  }
  
  .sidebar.collapsed .logout-btn span {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
  
  .sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  /* ============================================
     COMPONENT OVERRIDES
     ============================================ */
  
  .hero {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin: 0;
  }
  
  /* .how-it-works-section {
    padding: 4rem 1rem;
    margin: 1rem 0;
    border: 1px solid;
    border-radius: var(--radius-lg, 0.625rem);
  } */
  
  .auth-container {
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0;
  }
  
  .wallet-container {
    padding: 2rem;
  }
  
  .faq-section {
    color: white;
    padding: 3rem 0.75rem;
  }
  
  #usecasePage {
    padding: 3rem 2rem;
    border-radius: 1.25rem;
  }
  
  /* .features {
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  } */
  
  .feature {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  }
  
  .footer {
    border-top: 1px solid;
    color: white;
    padding: 2.5rem 0 1.25rem;
    margin-top: 3.125rem;
    background: transparent;
  }
  
  .wallet-cards-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
  }
  
  .usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    background: transparent;
  }
  
  /* ============================================
     BUTTONS
     ============================================ */
  
  .action-btn {
    cursor: pointer;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .action-btn.primary {
    background: white;
    color: var(--accent-color);
  }
  
  .action-btn.secondary {
    background: var(--accent-color);
    color: white;
  }
  
  .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  }
  
  .cta-button {
    background: white;
    color: var(--accent-color);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
  }
  
  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
  }
  
  /* ============================================
     UTILITY CLASSES
     ============================================ */
  
  .hidden {
    display: none !important;
  }
  
  .page {
    display: none;
  }
  
  .page.active {
    display: block;
  }
  
  /* ============================================
     RESPONSIVE - TABLET/MOBILE (max-width: 768px)
     Icon-only sidebar, expands on hamburger click
     ============================================ */
  
  @media (max-width: 768px) {
    /* Show icon logo, hide full logo */
    .sidebar-logo.full-logo {
      display: none;
    }
  
    .sidebar-logo.icon-logo {
      display: block;
    }
  
    /* Show full logo when expanded */
    .sidebar.mobile-open .sidebar-logo.full-logo {
      display: block;
    }
  
    .sidebar.mobile-open .sidebar-logo.icon-logo {
      display: none;
    }
  
    .action-btn.secondary {
      background: var(--accent-color);
      color: white;
      font-size: 1rem !important;
      padding: 0.625rem !important;
    }
  
    .sidebar {
      width: var(--sidebar-collapsed-width);
      box-shadow: 2px 0 0.625rem rgba(0, 0, 0, 0.2);
    }
  
    .sidebar-header {
      padding: 1.25rem 0.625rem;
    }
  
    .sidebar-logo {
      height: 30px;
    }
  
    .nav-item span {
      opacity: 0;
      width: 0;
      overflow: hidden;
      display: none;
    }
  
    .nav-item {
      padding: 0.75rem;
      justify-content: center;
    }
  
    .user-info {
      opacity: 0;
      width: 0;
      overflow: hidden;
      display: none;
    }
  
    .user-profile {
      padding: 0.75rem;
      justify-content: center;
      gap: 0;
    }
  
    .logout-btn span {
      opacity: 0;
      width: 0;
      overflow: hidden;
      display: none;
    }
  
    /* Show tooltips on hover */
    .nav-item:hover .nav-item-tooltip {
      opacity: 1;
    }
  
    /* Adjust main content */
    .main-content {
      margin-left: var(--sidebar-collapsed-width);
    }
  
    /* Show mobile toggle */
    .mobile-menu-toggle {
      display: flex;
    }
  
    /* Expanded state when hamburger is clicked */
    .sidebar.mobile-open {
      width: 280px;
      z-index: 999999;
      box-shadow: 2px 0 1.25rem rgba(0, 0, 0, 0.3);
    }
  
    .sidebar.mobile-open .sidebar-header {
      padding: 1.25rem;
    }
  
    .sidebar.mobile-open .sidebar-logo {
      height: 40px;
    }
  
    .sidebar.mobile-open .nav-item span {
      opacity: 1;
      width: auto;
      display: block;
    }
  
    .sidebar.mobile-open .nav-item {
      padding: 0.75rem 1rem;
      justify-content: flex-start;
    }
  
    .sidebar.mobile-open .user-info {
      opacity: 1;
      width: auto;
      display: block;
      padding-left: 10px;
    }
  
    .sidebar.mobile-open .user-profile {
      padding: 0.75rem;
      justify-content: flex-start;
    }
  
    .sidebar.mobile-open .logout-btn span {
      opacity: 1;
      width: auto;
      display: block;
    }
  
    /* Hide tooltips when expanded */
    .sidebar.mobile-open .nav-item:hover .nav-item-tooltip {
      opacity: 0;
    }
  
    /* Overlay when expanded */
    .sidebar.mobile-open::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      z-index: -1;
    }
  
    /* Adjust hero for mobile */
    .hero {
      padding: 2rem 1rem !important;
    }
  
    .hero h1 {
      font-size: 1rem !important;
    }
  
    .hero h2 {
      font-size: 0.7rem !important;
    }
  }
  
  /* ============================================
     RESPONSIVE - SMALL MOBILE (max-width: 480px)
     ============================================ */
  
  @media (max-width: 480px) {
  /* .mobile-menu-toggle   {
      width: 35px;
      height: 35px;
      font-size: 1rem;
      top: 5px;
      right: 5px;
    } */
  
    .sidebar.mobile-open {
      width: 260px;
    }
  }
  
  /* ============================================
     RESPONSIVE - DESKTOP (min-width: 769px)
     ============================================ */
  
  @media (min-width: 769px) {
    .step-content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* ============================================
     PRINT STYLES
     ============================================ */
  
  @media print {
    .sidebar,
    .mobile-menu-toggle {
      display: none !important;
    }
  
    .main-content {
      margin-left: 0 !important;
    }
  }
  
  /* ============================================
     Z-INDEX FIX
     ============================================ */
  
  .modal {
    z-index: 2000;
  }