.mobile-postpaid-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== MODULE CONTAINER - WHITE BACKGROUND ===== */
.module-container {
    background: #ffffff !important;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.step-content.active {
    display: block;
}

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

.operator-dropdown-container {
    margin-bottom: 2rem;
}

.operator-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.operator-dropdown:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.operator-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

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

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

.form-required::after {
    content: ' *';
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.bill-details-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bill-amount {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.bill-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.bill-details-list {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

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

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

.detail-label {
    font-weight: 500;
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
    color: #1f2937;
}

.payment-summary {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    border-top: 2px solid #d1d5db;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.25rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .mobile-postpaid-container {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .bill-amount {
        font-size: 2rem;
    }
    
    .operator-dropdown {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-postpaid-container {
        padding: 1.5rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Improved Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 20px;
}

.step-label {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 5px;
}

.step.active .step-label {
    color: white;
    font-weight: 600;
}

.step.completed .step-label {
    color: white;
}

/* Ensure step content is visible when active */
.step-content.active {
    display: block !important;
}

.step-content.hidden {
    display: none !important;
}

/* Override any inline styles that might be hiding the content */
#step-operator.active,
#step-details.active,
#step-bill.active,
#step-payment.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Readonly input styles */
.form-control[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.form-control[readonly]:focus {
    border-color: #d1d5db;
    box-shadow: none;
}

/* Information box styles */
.info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-weight: 600;
}

.info-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.info-box .icon {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Success box */
.success-box {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.success-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #065f46;
    font-weight: 600;
}

.success-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.success-box .icon {
    color: #10b981;
    margin-right: 0.5rem;
}

/* No bill due card */
.no-bill-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.no-bill-card .bill-amount {
    color: #333;
}

/* Direct payment card */
.direct-payment-card {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ===== AMOUNT INPUT CONTAINER - BEAUTIFUL DESIGN ===== */
.amount-input-container {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8faff, #eef2ff);
    border-radius: 1rem;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
}

.amount-input-container label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-input-container label i {
    color: #3b82f6;
}

.amount-input {
    font-size: 2rem;
    height: 70px;
    text-align: center;
    font-weight: 700;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    background: white;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.amount-input:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: scale(1.01);
}

.amount-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 1.2rem;
}

.amount-input::-webkit-inner-spin-button,
.amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input[type="number"] {
    -moz-appearance: textfield;
}

.amount-limits {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
    color: #64748b;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.amount-limits i {
    color: #3b82f6;
    margin-right: 4px;
}

.amount-limits span {
    font-weight: 600;
    color: #1e293b;
}

/* ===== BILL DETAILS - BEAUTIFUL DESIGN ===== */
.bill-details-wrapper {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.bill-header-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1.25rem 1.75rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bill-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bill-header-left .bill-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #60a5fa;
}

.bill-header-left h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.bill-header-left .bill-sub {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

.bill-status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bill-amount-display {
    background: linear-gradient(145deg, #f8faff, #f1f5f9);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}

.bill-amount-display .amount-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.bill-amount-display .amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.bill-amount-display .amount-value .currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-right: 4px;
}

/* ===== PAYMENT OPTIONS SECTION ===== */
.payment-options-section {
    padding: 1.25rem 1.75rem;
    background: #fafbfc;
    border-bottom: 1px solid #eef2f6;
}

.payment-options-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-options-title i {
    color: #3b82f6;
}

.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.payment-option-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.payment-option-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.payment-option-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-option-card.selected .payment-option-check {
    display: flex;
}

.payment-option-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.payment-option-card.selected .payment-option-radio {
    border-color: #3b82f6;
}

.radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s ease;
}

.payment-option-card.selected .radio-dot {
    background: #3b82f6;
}

.payment-option-content {
    flex: 1;
    min-width: 0;
}

.payment-option-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.payment-option-card.selected .payment-option-label {
    color: #1e293b;
}

.payment-option-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
}

.payment-option-card.selected .payment-option-amount {
    color: #1e40af;
}

.custom-amount-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: white;
    outline: none;
    transition: all 0.2s ease;
    max-width: 140px;
}

.custom-amount-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-placeholder {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
}

.payment-option-check {
    display: none;
    color: #3b82f6;
    font-size: 1.1rem;
}

.payment-option-card.selected .payment-option-check {
    display: flex;
}

.payment-limits-info {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.payment-limits-info i {
    color: #3b82f6;
}

.payment-limits-info .due-date {
    color: #ef4444;
    font-weight: 600;
}

/* Proceed Payment Button */
.proceed-payment-btn {
    display: block;
    width: calc(100% - 3.5rem);
    margin: 1.25rem 1.75rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.proceed-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.proceed-payment-btn:active {
    transform: scale(0.98);
}

.proceed-payment-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.proceed-payment-btn i {
    margin-right: 8px;
}

.bill-footer-modern {
    padding: 0.75rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bill-footer-modern .info-text {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bill-footer-modern .info-text i {
    color: #3b82f6;
}

/* Responsive for payment options and bill details */
@media (max-width: 640px) {
    .payment-options-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-option-card {
        padding: 0.6rem 0.8rem;
    }
    
    .proceed-payment-btn {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .payment-options-section {
        padding: 1rem;
    }
    
    .bill-amount-display .amount-value {
        font-size: 1.5rem;
    }
    
    .bill-header-modern {
        padding: 1rem;
    }
    
    .bill-amount-display {
        padding: 1rem;
    }
    
    .bill-footer-modern {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .payment-options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Payment info box */
.payment-info-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.payment-info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #166534;
    font-weight: 600;
}

.payment-info-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.payment-info-box .icon {
    color: #22c55e;
    margin-right: 0.5rem;
}

/* Amount locked info */
.amount-locked {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-left: 4px solid #6b7280;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.amount-locked h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.amount-locked p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.amount-locked .icon {
    color: #6b7280;
    margin-right: 0.5rem;
}

/* Responsive adjustments for step indicator */
@media (max-width: 768px) {
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step-indicator::before {
        top: 20px;
    }
}

@media (max-width: 767px) {
    .page-content-wrapper {
        padding-bottom: 0 !important;
    }
}

/* ===== RECEIPT MODAL STYLES ===== */

/* Container center */
.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Card */
.receipt-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 10px;
}
.logo img {
    margin: auto;
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Animated Success */
.success-animation {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke: #22c55e;
    stroke-width: 3;
    fill: none;
    animation: scalePop 0.4s ease-in-out 0.3s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 0.6s ease forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s ease 0.6s forwards;
}

/* Refund/Failed animation colors */
.receipt-refunded .checkmark-circle,
.receipt-failed .checkmark-circle {
    stroke: #dc2626;
}

.receipt-refunded .checkmark-check,
.receipt-failed .checkmark-check {
    stroke: #dc2626;
}

.receipt-pending .checkmark-circle,
.receipt-pending .checkmark-check {
    stroke: #f59e0b;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes scalePop {
    0% { transform: scale(0.7); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Text */
.title {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.amount {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Section */
.section {
    background: #f9fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.section h6 {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.row-item span:first-child {
    color: #6b7280;
}

.row-item span:last-child {
    color: #1f2937;
    font-weight: 500;
}

.status {
    color: #22c55e;
    font-weight: 600;
}

/* Buttons */
.btn-action {
    margin-left: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Gradients */
.download-btn {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.share-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

/* Hover */
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Click */
.btn-action:active {
    transform: scale(0.96);
}

/* Ripple effect */
.btn-action::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-action:active::after {
    width: 200px;
    height: 200px;
}

/* Main Button */
.btn-main {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 30px;
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Hide buttons during capture */
.hidden-for-capture {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 480px) {
    .receipt-card {
        margin: 10px;
        padding: 18px;
        border-radius: 16px;
    }

    .amount {
        font-size: 24px;
    }

    .title {
        font-size: 16px;
    }

    .row-item {
        font-size: 13px;
    }

    .checkmark {
        width: 65px;
        height: 65px;
    }

    .section {
        padding: 12px;
    }

    .action-group {
        flex-direction: column;
    }

    .btn-action {
        width: 100% !important;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #receipt-modal,
    #receipt-modal * {
        visibility: visible;
    }
    
    #receipt-modal {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
        margin: 0;
        padding: 10px;
    }
    
    .receipt-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-action,
    .btn-main,
    .action-group {
        display: none !important;
    }
}

/* Ensure logo visibility */
.logo-image {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Improve form validation appearance */
.form-control:invalid {
    border-color: #ef4444 !important;
}

.form-control:valid {
    border-color: #10b981 !important;
}

.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.form-control:invalid + .invalid-feedback {
    display: block;
}

#back-to-operators {
    border: 1px solid white !important;
    color: white !important;
}

/* Add cursor pointer to wallet options for better UX */
.wallet-option {
    cursor: pointer;
}

.wallet-option .wallet-card {
    cursor: pointer;
}

.wallet-option input[type="radio"]:disabled + .wallet-card {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Selected wallet option styling */
.wallet-option .wallet-card.selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    padding:10px;
}

.wallet-option .wallet-card.selected::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 12px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 14px;
}

.wallet-option .wallet-card.selected .wallet-icon i {
    color: #3b82f6;
}

.wallet-option .wallet-card.selected .wallet-name {
    color: #1e40af;
    font-weight: 600;
}

/* Mobile Number Selection Container */
.mobile-number-selection-container {
    max-height: 300px;
    overflow-y: auto;
}

.mobile-number-option {
    transition: all 0.2s ease;
}

.mobile-number-option:hover {
    background-color: #f3f4f6;
}

.mobile-number-option.selected {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

/* Customer Details Card - Mobile Postpaid Style */
.customer-details-card {
    animation: fadeIn 0.3s ease-out;
}

/* No Records Container */
.no-records-container {
    animation: fadeIn 0.3s ease-out;
}

/* Action Buttons Container */
.action-buttons-container {
    animation: fadeIn 0.3s ease-out;
}

/* Select2 overrides */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    background-color: white;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding-left: 0.5rem;
    color: #374151;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 20 !important;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    min-height: 30px !important;
    min-width: 44px;
}

/* Mobile Search Container */
.mobile-search-container .pl-12 {
    padding-left: 48px;
}

/* ============================================ */
/* PIN TOGGLE BUTTON - FIXED */
/* ============================================ */

#toggle-pin-visibility {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 18px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

#toggle-pin-visibility:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1) !important;
}

#toggle-pin-visibility:active,
#toggle-pin-visibility.pin-toggle-holding {
    color: #059669 !important;
    background: rgba(5, 150, 105, 0.15) !important;
    transform: scale(0.92);
}

#toggle-pin-visibility i {
    font-size: 18px;
    pointer-events: none;
    transition: all 0.2s ease;
}

#toggle-pin-visibility:focus {
    outline: none;
    box-shadow: none;
}

/* Transaction PIN input - ensure proper padding */
#transaction-pin {
    padding-right: 55px !important;
    padding-left: 16px !important;
    height: 50px;
    font-size: 16px;
    letter-spacing: 2px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

#transaction-pin:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#transaction-pin::placeholder {
    letter-spacing: 0;
    color: #9ca3af;
}

/* PIN input group container */
.transaction-pin-group {
    position: relative;
    width: 100%;
}