:root {
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --text-tertiary: #6b7280;
            --bg-primary: #ffffff;
            --bg-secondary: #f9fafb;
            --bg-tertiary: #f3f4f6;
            --text-blue: #3b82f6;
            --text-blue-dark: #60a5fa;
            --stat-text: #1f2937;
            --nav-text: #4b5563;
            --commission-text: #1f2937;
        }

        .dark {
            --text-primary: #f9fafb;
            --text-secondary: #e5e7eb;
            --text-tertiary: #9ca3af;
            --bg-primary: #1f2937;
            --bg-secondary: #111827;
            --bg-tertiary: #374151;
            --text-blue: #60a5fa;
            --text-blue-dark: #3b82f6;
            --stat-text: #f9fafb;
            --nav-text: #d1d5db;
            --commission-text: #f9fafb;
        }

        body {
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
            background-color: var(--bg-primary);
            color: var(--text-primary);
        }
        .container {
            width: 100%;
            padding-right: 1rem;
            padding-left: 1rem;
            margin-right: auto;
            margin-left: auto;
        }
        @media (min-width: 640px) {
            .container {
                max-width: 640px;
            }
        }
        @media (min-width: 768px) {
            .container {
                max-width: 768px;
            }
        }
        @media (min-width: 1024px) {
            .container {
                max-width: 1024px;
            }
        }
        @media (min-width: 1280px) {
            .container {
                max-width: 1280px;
            }
        }
        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border-left-color: #09f;
            animation: spin 1s linear infinite;
        }
        
        .dark .spinner {
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-left-color: #09f;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .bottom-nav {
            position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(24px) saturate(200%);
            -webkit-backdrop-filter: blur(24px) saturate(200%);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                        0 2px 8px rgba(0, 0, 0, 0.03),
                        inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
            z-index: 50;
            height: 72px;
            width: calc(100% - 32px);
            max-width: 380px;
            border-radius: 28px;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
        }
        
        .dark .bottom-nav {
            background: rgba(17, 24, 39, 0.98);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                        0 2px 8px rgba(0, 0, 0, 0.1),
                        inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
        }

        .bottom-nav-container {
            display: flex;
            align-items: center;
            justify-content: space-around;
            height: 100%;
            padding: 0 12px;
            position: relative;
        }

        .bottom-nav-item {
            position: relative;
            height: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            padding: 8px 0;
        }

        .bottom-nav-icon {
            position: relative;
            width: 24px;
            height: 24px;
            color: #94a3b8;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            margin-bottom: 4px;
            z-index: 2;
        }
        
        .dark .bottom-nav-icon {
            color: #9ca3af;
        }
        
        .dark .bottom-nav-item.active .bottom-nav-icon {
            color: #60a5fa;
        }

        .bottom-nav-text {
            font-size: 11px;
            font-weight: 500;
            color: #94a3b8;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0.8;
            transform: translateY(0);
            z-index: 2;
        }
        
        .dark .bottom-nav-text {
            color: #9ca3af;
        }

        .bottom-nav-item::before {
            content: '';
            position: absolute;
            bottom: 4px; /* Move dot closer to bottom */
            left: 50%;
            width: 4px;
            height: 4px;
            background-color: #3b82f6;
            border-radius: 50%;
            opacity: 0;
            transform: translate(-50%, 20px);
            transition: all 0.4s cubic-bezier(0.3, 0, 0.2, 1);
        }

        .bottom-nav-item.active::before {
            opacity: 1;
            transform: translate(-50%, 0); /* Remove negative transform */
        }

        .bottom-nav-item.active {
            transform: translateY(-2px);
        }

        .bottom-nav-item.active .bottom-nav-icon {
            color: #3b82f6;
            transform: scale(1.15);
            filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
        }

        .bottom-nav-item.active .bottom-nav-text {
            color: #3b82f6;
            opacity: 1;
            font-weight: 600;
            transform: scale(1.05);
        }

        @media (max-width: 380px) {
            .bottom-nav {
                bottom: 12px;
                height: 68px;
                width: calc(100% - 24px);
            }
            
            .bottom-nav-icon {
                width: 22px;
                height: 22px;
            }
            
            .bottom-nav-text {
                font-size: 10px;
            }
        }

        @media (hover: hover) {
            .bottom-nav-item:hover:not(.active) {
                transform: translateY(-1px);
            }
            
            .bottom-nav-item:hover:not(.active) .bottom-nav-icon {
                transform: scale(1.1);
            }
        }

        main {
            padding-bottom: 96px;
        }

        .app-header {
            padding: 0.75rem 0;
            background-color: white;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 30;
            height: 55px;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .dark .app-header {
            background-color: #1f2937;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .content-section {
            max-width: 600px;
            margin: 0 auto;
            padding: 1.5rem 0;
        }

        @media (max-width: 640px) {
            .bottom-nav-text {
                font-size: 11px;
            }
            
            .bottom-nav-icon {
                width: 18px;
                height: 18px;
            }
        }

        @media (min-width: 768px) {
            .bottom-nav {
                border-radius: 0;
            }
        }

        @media (min-width: 1024px) {
            .bottom-nav-container {
                max-width: 800px;
            }
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: #3b82f6;
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }
        
        .dark {
            color-scheme: dark;
        }
        
        .dark body {
            background-color: #111827;
            color: #f3f4f6;
        }
        
        .dark .bg-white {
            background-color: #1f2937;
        }
        
        .dark .bg-gray-100 {
            background-color: #111827;
        }
        
        .dark .bg-gray-50 {
            background-color: #374151;
        }
        
        .dark .text-gray-600, 
        .dark .text-gray-800 {
            color: #d1d5db;
        }
        
        .dark .text-gray-500 {
            color: #9ca3af;
        }
        
        .dark .border-gray-300 {
            border-color: #4b5563;
        }
        
        .dark .bg-blue-50 {
            background-color: rgba(59, 130, 246, 0.1);
        }
        
        .dark .border-blue-300 {
            border-color: #60a5fa;
        }
        
        .dark .bg-yellow-50 {
            background-color: rgba(245, 158, 11, 0.1);
        }
        
        .dark .border-yellow-200 {
            border-color: #fcd34d;
        }
        
        .dark .text-yellow-700 {
            color: #fbbf24;
        }
        
        .dark input, 
        .dark select {
            background-color: #374151;
            color: #f3f4f6;
            border-color: #4b5563;
        }
        
        .dark input::placeholder {
            color: #9ca3af;
        }
        
        .dark .bundle-btn:hover {
            background-color: rgba(59, 130, 246, 0.2);
        }
        
        .dark .text-blue-600 {
            color: #60a5fa;
        }
        
        .dark .swal2-popup {
            background-color: #1f2937;
            color: #f3f4f6;
        }
        
        .dark .swal2-title,
        .dark .swal2-content {
            color: #f3f4f6;
        }
        
        .dark .swal2-input,
        .dark .swal2-textarea {
            background-color: #374151;
            color: #f3f4f6;
            border-color: #4b5563;
        }
        
        .theme-icon {
            position: absolute;
            top: 3px;
            transition: opacity 0.3s ease;
        }
        
        .sun-icon {
            left: 4px;
            opacity: 1;
        }
        
        .moon-icon {
            right: 4px;
            opacity: 0;
        }
        
        input:checked + .toggle-slider .sun-icon {
            opacity: 0;
        }
        
        input:checked + .toggle-slider .moon-icon {
            opacity: 1;
        }

        .wallet-card {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 12px;
            padding: 1.5rem;
            color: white;
            box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .wallet-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            z-index: 0;
        }
        
        .wallet-card * {
            position: relative;
            z-index: 1;
        }
        
        .wallet-balance {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .wallet-label {
            font-size: 0.875rem;
            opacity: 0.9;
            font-weight: 500;
        }
        
        .wallet-actions {
            margin-top: 1rem;
            display: flex;
            gap: 0.5rem;
        }
        
        .wallet-action-btn {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
        }
        
        .wallet-action-btn:hover {
            background-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .wallet-action-btn i {
            margin-right: 0.5rem;
        }
        
        .transaction-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--bg-tertiary);
            margin-bottom: 8px;
            border-radius: 8px;
            background-color: var(--bg-secondary);
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }
        
        .transaction-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
            flex-shrink: 0;
            background-color: #e5e7eb;
        }
        
        .dark .transaction-icon {
            background-color: #374151;
        }
        
        .transaction-details {
            flex-grow: 1;
        }
        
        .transaction-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
            color: #1f2937;
        }
        
        .dark .transaction-title {
            color: #f3f4f6;
        }
        
        .transaction-date {
            font-size: 0.75rem;
            color: #6b7280;
        }
        
        .dark .transaction-date {
            color: #9ca3af;
        }
        
        .transaction-amount {
            font-weight: 600;
            text-align: right;
        }
        
        .transaction-amount.credit {
            color: #10b981;
        }
        
        .transaction-amount.debit {
            color: #ef4444;
        }
        
        .dark .transaction-amount.credit {
            color: #34d399;
        }
        
        .dark .transaction-amount.debit {
            color: #f87171;
        }
        
        .success-popup {
            text-align: center;
            padding: 2rem;
        }
        
        .success-popup .icon-container {
            margin: 0 auto 1.5rem;
            width: 80px;
            height: 80px;
            background-color: #ecfdf5;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .dark .success-popup .icon-container {
            background-color: rgba(16, 185, 129, 0.2);
        }
        
        .success-popup .icon-container svg {
            color: #10b981;
            width: 40px;
            height: 40px;
        }
        
        .success-popup h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #111827;
        }
        
        .dark .success-popup h2 {
            color: #f9fafb;
        }
        
        .success-popup p {
            margin-bottom: 0.5rem;
            color: #4b5563;
        }
        
        .dark .success-popup p {
            color: #d1d5db;
        }
        
        .success-popup .done-btn {
            margin-top: 1.5rem;
            background-color: #3b82f6;
            color: white;
            font-weight: 500;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            transition: all 0.2s;
            display: inline-block;
        }
        
        .success-popup .done-btn:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
        }

        .orders-scroll-container {
            max-height: 300px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .orders-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .order-card {
            background-color: #fff;
            border-radius: 0.5rem;
            padding: 1rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
        }
        
        .order-card:hover {
            transform: translateY(-2px);
        }
        
        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .order-title {
            font-weight: 500;
            color: #111827;
        }
        
        .order-date {
            font-size: 0.875rem;
            color: #6b7280;
        }
        
        .dark .order-date {
            color: #9ca3af;
        }
        
        .order-details {
            font-size: 0.875rem;
            color: #374151;
        }
        
        .dark .order-details {
            color: #d1d5db;
        }
        
        .order-amount {
            font-weight: 600;
            margin-top: 0.5rem;
            text-align: right;
        }
        
        .order-amount.credit {
            color: #10b981;
        }
        
        .order-amount.debit {
            color: #ef4444;
        }
        
        .dark .order-amount.credit {
            color: #34d399;
        }
        
        .dark .order-amount.debit {
            color: #f87171;
        }
        
        /* Add or update these styles */
    .side-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: white;
        z-index: 1000; /* Increased z-index */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
        visibility: visible; /* Ensure visibility */
    }

    .side-menu.active {
        transform: translateX(0);
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999; /* Just below side-menu */
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .dark .side-menu {
        background: #1f2937;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-menu-item {
        display: flex;
        align-items: center;
        padding: 1rem;
        transition: all 0.2s;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }

    .nav-menu-item:hover {
        background-color: rgba(59, 130, 246, 0.1);
    }

    .dark .nav-menu-item:hover {
        background-color: rgba(96, 165, 250, 0.1);
    }

    .nav-menu-icon {
        margin-right: 0.75rem;
        color: #3b82f6;
    }

    /* Add these styles for the hamburger button */
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        transition: all 0.2s ease;
    }

    .menu-btn svg {
        width: 24px;
        height: 24px;
        fill: #3b82f6;
        transition: fill 0.3s ease;
    }

    .dark .menu-btn svg {
        fill: #60a5fa;
    }

    .menu-btn:hover {
        transform: scale(1.05);
    }

    .menu-btn:active {
        transform: scale(0.95);
    }

    /* Update bundle button styles */
    .bundle-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0.25rem;
}

.bundle-btn .data-amount {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-blue);
  line-height: 1;
}

.app-header {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.wallet-card * {
  color: #ffffff;
}

.text-gray-600 {
  color: var(--text-secondary);
}

.text-gray-700 {
  color: var(--text-primary);
}

.text-gray-500 {
  color: var(--text-tertiary);
}

.text-blue-600 {
  color: var(--text-blue);
}

.bundle-btn .price {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 1px;
  line-height: 1;
}

@media (max-width: 360px) {
  .bundle-btn {
    min-height: 40px;
    padding: 0.2rem;
  }
  
  .bundle-btn .data-amount {
    font-size: 0.75rem;
  }
  
  .bundle-btn .price {
    font-size: 0.6rem;
  }
}

/* Premium Animated Spinner Styles */
  .premium-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
  }

  .spinner-ring:nth-child(1) {
    border-top: 3px solid #3b82f6;
    animation-delay: 0s;
  }

  .spinner-ring:nth-child(2) {
    border-right: 3px solid #10b981;
    animation-delay: 0.3s;
    animation-duration: 1.5s;
  }

  .spinner-ring:nth-child(3) {
    border-bottom: 3px solid #f59e0b;
    animation-delay: 0.6s;
    animation-duration: 1.8s;
  }

  .spinner-core {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #3b82f6, #10b981);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 10;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
  }

  /* Business Loading Spinner */
  .business-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    position: relative;
  }

  .business-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #e5e7eb;
    border-radius: 50%;
  }

  .business-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #3b82f6;
    border-right: 4px solid #10b981;
    border-radius: 50%;
    animation: businessSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  }

  @keyframes businessSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }

  /* Optimized Sweet Alert Styling */
  .swal2-popup {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
    max-width: 380px !important;
    min-height: 0 !important;
    width: 92% !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  }
  
  .swal2-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  
  .swal2-html-container {
    font-family: 'Poppins', sans-serif !important;
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .swal2-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.025em !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .swal2-confirm::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
  }

  .swal2-confirm:hover::before {
    left: 100% !important;
  }
  
  .swal2-confirm:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4) !important;
  }
  
  .swal2-cancel {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #374151 !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.025em !important;
  }
  
  .swal2-cancel:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  }

  /* Premium Receipt Styling */
  .premium-receipt {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
  }

  .premium-receipt::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
  }

  .premium-receipt * {
    position: relative;
    z-index: 1;
  }

  .receipt-header {
    margin-bottom: 1.5rem;
  }

  .receipt-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  }

  .receipt-icon svg {
    color: white;
    width: 40px;
    height: 40px;
    stroke-width: 3;
  }

  .receipt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .receipt-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .receipt-details {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
  }

  .receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .receipt-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 600;
    color: #1f2937;
  }

  .receipt-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
  }

  .receipt-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .receipt-phone {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }

  .receipt-amount {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
  }

  .receipt-footer {
    padding-top: 1rem;
    border-top: 2px dashed #e5e7eb;
  }

  .receipt-timestamp {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .receipt-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  }

  .receipt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
  }

  @keyframes successBounce {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
  }

  /* Animated Icons - Removed Bounce Animations */
  .animated-icon {
    animation: iconFloat 3s ease-in-out infinite;
  }

  .animated-icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
  }

  @keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
  }

  @keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
  }

  /* Enhanced Loading Overlay */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
  }

  .loading-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 90%;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .loading-text {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .loading-subtext {
    color: #6b7280;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
  }

  /* Cool Business Messages */
  .business-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
  }

  .business-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    animation: shimmer 2s infinite;
  }

  .business-message-content {
    position: relative;
    z-index: 1;
  }

  .business-message-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }

  .business-message-text {
    color: #3730a3;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  /* Enhanced Card Layouts */
  .order-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .order-card:hover::before {
    opacity: 1;
  }

  .order-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6 !important;
  }

  /* Scrollable Transaction History Container */
  .transactions-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
  }

  .transactions-scroll-container::-webkit-scrollbar {
    width: 6px;
  }

  .transactions-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }

  .transactions-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 3px;
  }

  .transactions-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
  }

  /* Firefox scrollbar */
  .transactions-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f5f9;
  }

  /* Transaction Item Styling */
  .transaction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
  }

  .transaction-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }

  .transaction-item:last-child {
    margin-bottom: 0;
  }

  .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .transaction-details {
    flex: 1;
    min-width: 0;
  }

  .transaction-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
  }

  .transaction-date {
    color: #6b7280;
    font-size: 0.75rem;
  }

  .transaction-amount {
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .transaction-amount.credit {
    color: #059669;
  }

  .transaction-amount.debit {
    color: #dc2626;
  }

  /* Mobile Optimizations */
  @media (max-width: 480px) {
    .premium-spinner {
      width: 60px;
      height: 60px;
      margin: 0 auto 1.5rem;
    }

    .business-spinner {
      width: 50px;
      height: 50px;
      margin: 0 auto 1rem;
    }

    .swal2-popup {
      max-width: 320px !important;
      padding: 1.25rem !important;
    }

    .premium-receipt {
      padding: 1.5rem;
      border-radius: 16px;
    }

    .receipt-icon {
      width: 60px;
      height: 60px;
    }

    .receipt-icon svg {
      width: 30px;
      height: 30px;
    }

    .receipt-title {
      font-size: 1.25rem;
    }

    .loading-container {
      padding: 2rem 1.5rem;
      max-width: 300px;
    }

    .order-card {
      padding: 0.875rem !important;
      margin-bottom: 0.5rem !important;
      border-radius: 12px !important;
    }

    .transactions-scroll-container {
      max-height: 300px;
    }

    .transaction-item {
      padding: 0.75rem;
    }

    .transaction-icon {
      width: 36px;
      height: 36px;
    }
  }

  /* Dark Mode Enhancements */
  .dark .swal2-popup {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #f3f4f6 !important;
    border: 1px solid #374151 !important;
  }
  
  .dark .swal2-title {
    color: #f9fafb !important;
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  
  .dark .swal2-html-container {
    color: #d1d5db !important;
  }

  .dark .swal2-input {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
  }

  .dark .swal2-input:focus {
    border-color: #60a5fa !important;
    background: #4b5563 !important;
  }

  .dark .premium-receipt {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }

  .dark .premium-receipt::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  }

  .dark .receipt-title {
    color: #f9fafb;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .dark .receipt-subtitle {
    color: #d1d5db;
  }

  .dark .receipt-details {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
  }

  .dark .receipt-label {
    color: #d1d5db;
  }

  .dark .receipt-value {
    color: #f3f4f6;
  }

  .dark .receipt-phone {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .dark .receipt-amount {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .dark .receipt-timestamp {
    color: #9ca3af;
  }

  .dark .loading-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
  }

  .dark .loading-text {
    color: #f9fafb;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .dark .loading-subtext {
    color: #d1d5db;
  }

  .dark .order-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-color: #374151 !important;
  }

  .dark .order-card::before {
    background: linear-gradient(135deg, transparent 0%, rgba(96, 165, 250, 0.05) 50%, transparent 100%);
  }

  .dark .business-message {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left-color: #60a5fa;
  }

  .dark .business-message-title {
    color: #60a5fa;
  }

  .dark .business-message-text {
    color: #93c5fd;
  }

  .dark .toast-notification {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-color: #374151 !important;
    color: #f3f4f6 !important;
  }

  .dark .toast-title {
    color: #f9fafb !important;
  }

  .dark .toast-message {
    color: #d1d5db !important;
  }

  .dark .transaction-item {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-color: #374151 !important;
  }

  .dark .transaction-title {
    color: #f3f4f6 !important;
  }

  .dark .transaction-date {
    color: #d1d5db !important;
  }

  .dark .transactions-scroll-container::-webkit-scrollbar-track {
    background: #374151;
  }

  .dark .transactions-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
  }

  .dark .transactions-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
  }

  .dark .transactions-scroll-container {
    scrollbar-color: #60a5fa #374151;
  }

  .dark .verification-progress {
    background: rgba(96, 165, 250, 0.05) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
  }

  .dark .phone-highlight {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
  }

  /* Connection Status */
  .connection-status {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .connection-status.online {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
  }

  .connection-status.offline {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
  }

  /* Toast Notifications */
  .toast-notification {
    position: fixed;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #3b82f6;
    max-width: 350px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e5e7eb;
  }

  .toast-notification.show {
    transform: translateX(0);
  }

  .toast-notification.success {
    border-left-color: #10b981;
  }

  .toast-notification.error {
    border-left-color: #ef4444;
  }

  .toast-notification.warning {
    border-left-color: #f59e0b;
  }

  .toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #111827;
    font-size: 0.9rem;
  }

  .toast-message {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Add this to your existing styles */
  .truncate-email {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
  }

  @media (max-width: 768px) {
    .connection-status {
      top: 10px;
      right: 10px;
      padding: 6px 12px;
      font-size: 11px;
    }

    .toast-notification {
      top: 10px;
      right: 10px;
      left: 10px;
      max-width: none;
      transform: translateY(-100px);
      padding: 0.875rem 1rem;
    }

    .toast-notification.show {
      transform: translateY(0);
    }

    .truncate-email {
      max-width: 140px;  /* Reduced width for mobile */
    }
  }