/* =========================================================
   GENIE PAYMENT MODAL
   PROFESSIONAL DARK NAVY + COOL BLUE + WHITE THEME
   ========================================================= */


/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.genie-modal-overlay {
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(37, 99, 235, 0.30),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 85%,
            rgba(14, 165, 233, 0.20),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 45%,
            #172554 100%
        );

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   MODAL CARD
   ========================================================= */

.genie-modal-card {
    position: relative;

    width: 100%;
    max-width: 480px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.98);

    color: #1e293b;

    border: 1px solid #dbeafe;
    border-radius: 22px;

    padding: 28px 26px 24px;

    box-shadow:
        0 25px 70px rgba(30, 64, 175, 0.18),
        0 8px 25px rgba(59, 130, 246, 0.10);

    overflow: hidden;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.genie-close-btn {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #f1f5f9;

    color: #64748b;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    cursor: pointer;

    transition: all 0.2s ease;
}

.genie-close-btn:hover {
    background: #eff6ff;

    color: #2563eb;

    border-color: #bfdbfe;

    transform: rotate(90deg);
}

.genie-close-btn:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.12);
}


/* =========================================================
   HEADER
   ========================================================= */

.genie-modal-header {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 8px 42px 24px 0;
}


/* Header Icon */

.genie-header-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #dbeafe,
        #eff6ff
    );

    color: #2563eb;

    border: 1px solid #bfdbfe;

    border-radius: 12px;

    font-size: 18px;

    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.08);
}


/* Header Text */

.genie-header-content {
    min-width: 0;
}

.genie-header-content h3 {
    margin: 0;

    color: #0f3b82;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.2;
}

.genie-header-content p {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.genie-error {
    display: none;

    margin-bottom: 14px;

    padding: 10px 12px;

    background: #fef2f2;

    color: #b91c1c;

    border: 1px solid #fecaca;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.genie-form-group {
    margin-top: 15px;
}

.genie-form-group label,
.genie-form-group-half label {
    display: block;

    margin-bottom: 7px;

    color: #1e3a8a;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;
}

.genie-form-group label i,
.genie-form-group-half label i {
    margin-right: 5px;

    color: #2563eb;
}

.genie-form-group label span {
    color: #ef4444;
}


/* =========================================================
   INPUTS
   ========================================================= */

.genie-form-group input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 14px;

    background: #f8fbff;

    color: #1e293b;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.genie-form-group input::placeholder {
    color: #94a3b8;
}

.genie-form-group input:hover {
    border-color: #93c5fd;
}

.genie-form-group input:focus {
    background: #ffffff;

    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.11);
}


/* =========================================================
   AMOUNT ROW
   ========================================================= */

.genie-form-row {
    display: flex;

    gap: 12px;

    margin-top: 17px;
}

.genie-form-group-half {
    flex: 1;

    min-width: 0;
}


/* =========================================================
   AMOUNT DISPLAY
   ========================================================= */

.genie-amount-display {
    min-height: 45px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    padding: 0 13px;

    background: linear-gradient(
        135deg,
        #eff6ff,
        #dbeafe
    );

    color: #1d4ed8;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* LKR Currency */

.amount-currency {
    margin-right: 5px;

    font-size: 12px;

    font-weight: 600;
}


/* USD Display */

.genie-amount-display.usd-display {
    gap: 6px;

    background: linear-gradient(
        135deg,
        #f8fbff,
        #eef6ff
    );

    color: #334155;

    border-color: #cbd5e1;
}

.genie-amount-display.usd-display i {
    color: #2563eb;
}


/* =========================================================
   INFORMATION BOXES
   ========================================================= */

.genie-rate-compact {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding: 9px 11px;

    border-radius: 9px;

    font-size: 11.5px;

    line-height: 1.4;
}

.genie-rate-compact > i {
    flex-shrink: 0;

    font-size: 12px;
}


/* Exchange Rate */

.exchange-rate {
    background: #eff6ff;

    color: #2563eb;

    border: 1px solid #dbeafe;
}

.exchange-rate > i {
    color: #2563eb;
}

.exchange-rate strong {
    color: #1d4ed8;

    font-weight: 700;
}


/* Local Price */

.local-price-info {
    background: #f8fbff;

    color: #64748b;

    border: 1px solid #e2e8f0;
}

.local-price-info > i {
    color: #3b82f6;
}

.local-price-info strong {
    color: #334155;

    font-weight: 700;
}

.local-price-info small {
    color: #94a3b8;

    font-size: 10.5px;
}


/* =========================================================
   PAYMENT BUTTON
   ========================================================= */

.genie-submit-btn {
    display: block;

    width: 300px;
    max-width: 100%;

    height: 48px;

    margin: 19px auto 0;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #1d4ed8,
        #2563eb,
        #3b82f6
    );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 9px 22px rgba(37, 99, 235, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.genie-submit-btn:hover {
    background: linear-gradient(
        135deg,
        #1e40af,
        #1d4ed8,
        #2563eb
    );

    transform: translateY(-2px);

    box-shadow:
        0 13px 28px rgba(37, 99, 235, 0.30);
}

.genie-submit-btn:active {
    transform: translateY(0);

    box-shadow:
        0 6px 14px rgba(37, 99, 235, 0.22);
}

.genie-submit-btn:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.15),
        0 9px 22px rgba(37, 99, 235, 0.24);
}

.genie-submit-btn i {
    margin-right: 6px;
}


/* =========================================================
   SECURITY FOOTER
   ========================================================= */

.genie-secure-text {
    margin-top: 14px;

    text-align: center;

    color: #64748b;

    font-size: 10.5px;

    line-height: 1.5;
}

.secure-badge {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    color: #475569;

    font-weight: 500;
}

.secure-badge i {
    color: #2563eb;
}

.secure-provider {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 4px;

    margin-top: 3px;
}

.secure-provider a {
    color: #2563eb !important;

    text-decoration: none;

    font-weight: 600;
}

.secure-provider a:hover {
    text-decoration: underline;
}

.secure-provider a i {
    margin-right: 2px;
}


/* =========================================================
   DISABLED PAYMENT BUTTON
   ========================================================= */

.genie-submit-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 5px 14px rgba(37, 99, 235, 0.15);
}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .genie-modal-card {
        max-width: calc(100% - 24px);

        padding: 26px 18px 20px;

        border-radius: 18px;
    }

    .genie-modal-header {
        margin-right: 38px;

        margin-bottom: 20px;
    }

    .genie-header-icon {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .genie-header-content h3 {
        font-size: 18px;
    }

    .genie-header-content p {
        font-size: 11px;
    }

    .genie-form-row {
        gap: 9px;
    }

    .genie-submit-btn {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .genie-modal-overlay {
        padding: 8px;
    }

    .genie-modal-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .genie-form-row {
        flex-direction: column;
    }

    .genie-header-content h3 {
        font-size: 17px;
    }

    .genie-header-content p {
        font-size: 10.5px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .genie-close-btn,
    .genie-submit-btn,
    .genie-form-group input {
        transition: none;
    }
}