/* Instant Pay Styles - Matched with Add Money UI (Exact Clone) */

/* Screen Transitions */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body, #0a0a0a);
    /* Fallback to dark if var missing */
    z-index: 2000;
    overflow-y: auto;
    padding: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Payment Details Container */
.payment-details {
    padding-bottom: 80px;
    max-width: 380px;
    margin: 0 auto;
}

/* Header */
.verification-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    padding-top: 16px;
}

.back-btn-absolute {
    position: absolute;
    left: 0;
    top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.back-btn-absolute:hover {
    background: var(--bg-card-hover);
}

.gateway-logo-large {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Limit Box */
.limit-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.limit-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Amount Box */
/* Amount Box */
.amount-box-full {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    /* More breathing room */
    border-radius: 20px;
    font-size: 26px;
    /* Slightly larger */
    font-weight: 600;
    /* Lighter weight */
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Lighter border */
    color: white;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    /* Premium spacing */
}

/* --- Specific Components from add-money.html --- */

/* Instruction Box Container (The Gradient Card) */
.instruction-box {
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.instruction-box.bkash {
    background: linear-gradient(135deg, #e2136e 0%, #b0004c 100%);
    box-shadow: 0 12px 32px rgba(226, 19, 110, 0.3);
}

.instruction-box.nagad {
    background: linear-gradient(135deg, #ec1c24 0%, #c4161c 100%);
    box-shadow: 0 12px 32px rgba(236, 28, 36, 0.3);
}

/* Input Styles */
/* Input Styles */
.input-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    /* Lighter weight */
    font-size: 12px;
    /* Smaller, cleaner */
    color: rgba(255, 255, 255, 0.8);
    /* Softer white */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Premium spacing */
}

.input-group-smart {
    margin-bottom: 24px;
}

.transaction-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    /* Sharper corners like reference */
    border: none;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transaction-input::placeholder {
    color: #888;
    font-weight: 400;
}

.transaction-input:focus {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Warning Box */
.warning-box {
    display: none;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    /* Thinner weight as requested */
    line-height: 1.5;
    border: 1px solid transparent;
}

.instruction-box.bkash .warning-box {
    background: #fce4ec;
    border-color: #f8bbd0;
    color: #c2185b;
    /* Slightly softer pink-red */
}

.instruction-box.nagad .warning-box {
    background: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.warning-box.active {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Link */
.toggle-link {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Hind Siliguri', sans-serif;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toggle-link:hover {
    opacity: 1;
}

/* Instructions List */
.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    position: relative;
    padding-left: 20px;
    /* Tighter padding */
    margin-bottom: 8px;
    /* Compact spacing */
    font-size: 13px;
    /* Standard size */
    line-height: 1.5;
    /* Proper readable height */
    color: white;
    /* High contrast */
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 500;
}

.instructions-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    /* Tighter bullet position */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

/* Phone Number Display */
.phone-number {
    background: rgba(255, 255, 255, 0.15);
    /* Slightly lighter background */
    padding: 12px 18px;
    border-radius: 12px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    /* Lighter weight */
    font-size: 18px;
    /* Slightly smaller for elegance */
    letter-spacing: 2px;
    /* More spacing */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.copy-btn {
    background: white;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.instruction-box.bkash .copy-btn {
    color: #e2136e;
}

.instruction-box.nagad .copy-btn {
    color: #ec1c24;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Verify Button */
/* Verify Button */
.verify-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    /* Restore standout size */
    font-weight: 700;
    /* Bolder for impact */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    /* Premium wide spacing */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    /* Cleaner look without border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Lighter border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

.verify-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.verify-btn.bkash {
    background: white;
    color: #e2136e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.verify-btn.nagad {
    background: white;
    color: #ec1c24;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Modal Overlay & Content for Step 1 (Restored) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 24px;
    animation: scaleIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #333;
}

body[data-theme='dark'] .modal-content {
    background: #1a1a1a;
    color: #eee;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.payment-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

body[data-theme='dark'] .payment-info {
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.payment-method {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-theme='dark'] .payment-method {
    background: #2a2a2a;
    border-color: #444;
}

.payment-method:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.payment-method img {
    max-width: 100%;
    height: 40px;
    object-fit: contain;
}

.amount-display {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

body[data-theme='dark'] .amount-display {
    background: #2a2a2a;
    border-color: #444;
    color: white;
}

/* Custom Modals (Success/Error) */
.modal-overlay-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay-custom.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-glass {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.modal-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-msg {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
}

.modal-btn.success {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.modal-btn.error {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}