/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #667eea;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.card-header h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.75rem;
}

.card-header p {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    min-height: 150px;
    font-family: 'Monaco', 'Courier New', monospace;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Amount Buttons */
.amount-btn {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: #f9fafb;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-processing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.badge-rejected {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #7f1d1d;
}

/* Transaction Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.progress-modal-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.progress-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.progress-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-header h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.progress-header .network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
}

.progress-subtext {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.estimated-time {
    display: inline-block;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-bar-container {
    margin: 1.5rem 0;
    background: #f3f4f6;
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9375rem;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.progress-step.pending {
    background: #f9fafb;
    opacity: 0.6;
}

.progress-step.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.progress-step.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.progress-step.failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-step.pending .step-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.progress-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
}

.progress-step.completed .step-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: bounce 0.6s ease;
}

.progress-step.failed .step-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.progress-step.active .step-description {
    color: #667eea;
    font-weight: 500;
}

.progress-step.failed .step-description {
    color: #ef4444;
    font-weight: 500;
}

/* Transaction Receipt */
.transaction-receipt {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 2px dashed #d1d5db;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #d1d5db;
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.receipt-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
}

/* Action Buttons */
.progress-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn-secondary {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* Loading Spinner */
.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.toast.warning {
    border-left-color: #f59e0b;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* File Upload */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.file-upload:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload p {
    margin: 0.5rem 0;
    color: #4b5563;
}

/* Bulk Order Items */
.bulk-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.bulk-item {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bulk-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bulk-item.completed {
    border-left-color: #10b981;
}

.bulk-item.failed {
    border-left-color: #ef4444;
}

.bulk-item .phone {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.9375rem;
}

.bulk-item .amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem;
    }

    .progress-modal-content {
        padding: 2rem;
        width: 95%;
    }

    .bulk-items-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
    }

    .progress-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile Hero Section - Compact */
    .hero-section {
        padding: 1.5rem 0 1rem 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Animated Purchase Card */
.purchase-card-animated {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    animation: cardPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.purchase-card-animated:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.3);
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

/* Animated Input Fields */
.animated-input {
    transition: all 0.3s ease;
    position: relative;
}

.animated-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
}

/* Phone Input Special Animations */
#phoneNumber {
    animation: phoneInputAttention 2s ease-in-out 3, phoneInputGlow 3s ease-in-out infinite 6s;
    border: 2px solid #e5e7eb !important;
}

@keyframes phoneInputAttention {
    0%, 100% {
        transform: scale(1);
        border-color: #e5e7eb;
    }
    25% {
        transform: scale(1.02);
        border-color: #667eea;
    }
    50% {
        transform: scale(1);
        border-color: #764ba2;
    }
    75% {
        transform: scale(1.02);
        border-color: #667eea;
    }
}

@keyframes phoneInputGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
        border-color: #e5e7eb;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
        border-color: rgba(102, 126, 234, 0.5);
    }
}

#phoneNumber:focus {
    animation: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Phone Input Container */
.phone-input-container {
    position: relative;
}

.phone-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    animation: phoneIconPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

@keyframes phoneIconPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

/* Hide phone icon when success check is shown */
.phone-input-container:has(.input-success-check.show) .phone-input-icon {
    opacity: 0;
    pointer-events: none;
}

/* Success Checkmark */
.input-success-check {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 1.5rem;
    color: #10b981;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-success-check.show {
    transform: translateY(-50%) scale(1);
    animation: successCheckBounce 0.5s ease;
}

@keyframes successCheckBounce {
    0% {
        transform: translateY(-50%) scale(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50%) scale(1.2) rotate(180deg);
    }
    100% {
        transform: translateY(-50%) scale(1) rotate(360deg);
    }
}

/* Floating Label Effect */
.floating-label-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #9ca3af;
    font-size: 1rem;
    background: white;
    padding: 0 0.5rem;
}

.floating-label-container input:focus ~ .floating-label,
.floating-label-container input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: 2.5rem;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
}

/* Spotlight effect */
.phone-input-spotlight {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    animation: spotlightPulse 3s ease-in-out infinite 6s;
    z-index: -1;
    pointer-events: none;
}

@keyframes spotlightPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

/* Colorful Amount Buttons */
.amount-btn-gradient {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.amount-btn-gradient .checkmark {
    display: none;
    font-size: 1.25rem;
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.amount-btn-gradient.selected .checkmark {
    display: block;
}

.amount-btn-gradient.selected .amount-value {
    font-weight: 700;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Color variants for amount buttons */
.amount-btn-gradient[data-color="blue"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.amount-btn-gradient[data-color="green"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.amount-btn-gradient[data-color="purple"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.amount-btn-gradient[data-color="orange"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.amount-btn-gradient[data-color="red"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.amount-btn-gradient[data-color="darkblue"] {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.amount-btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.amount-btn-gradient:active {
    transform: translateY(-1px) scale(0.98);
}

.amount-btn-gradient.selected {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: buttonSelect 0.3s ease;
}

@keyframes buttonSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Popular Badge */
.amount-btn-gradient.popular-choice::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #fbbf24 transparent transparent;
    border-radius: 0 12px 0 0;
}

.popular-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.5rem;
    font-weight: 700;
    color: #92400e;
    transform: rotate(45deg);
    transform-origin: center;
}

/* Animated Submit Button */
.btn-submit-animated {
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit-animated .btn-text {
    position: relative;
    z-index: 2;
}

.btn-submit-animated .btn-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-submit-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit-animated:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Card Header Animation */
.card-header {
    animation: fadeInDown 0.6s ease;
}

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

/* Form Group Animation */
.form-group {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple Effect for Buttons */
.amount-btn-gradient::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.amount-btn-gradient:active::after {
    width: 300px;
    height: 300px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(3px);
}

.footer-section ul li i {
    font-style: normal;
    font-size: 1.125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li a {
        justify-content: center;
    }
}

