/* ============================================
   PayIndia - Public Payment CSS
   ============================================ */

.payment-body {
    background: linear-gradient(135deg, #0B3D2E 0%, #14644D 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #0F1A14;
    overflow-x: hidden;
}

.payment-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.payment-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.payment-card.hidden {
    display: none !important;
}

/* Header */
.payment-card .header {
    text-align: center;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.merchant-badge {
    background: #ECFDF5;
    color: #10B981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.merchant-name {
    font-size: 20px;
    font-weight: 800;
    color: #0B3D2E;
    margin: 0;
}

.order-id {
    font-size: 12px;
    color: #8B9B92;
    font-family: monospace;
    margin-top: 4px;
}

/* Amount Section */
.amount-section {
    text-align: center;
    margin-bottom: 24px;
}

.amount-section span {
    font-size: 12px;
    color: #8B9B92;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.amount-section h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0B3D2E;
    margin: 4px 0 0;
    letter-spacing: -1px;
}

/* QR Code Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.qr-frame {
    background: #ffffff;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.qr-frame img {
    display: block;
    width: 200px;
    height: 200px;
}

/* QR corner highlights */
.qr-border-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #C6E547;
    pointer-events: none;
}

.qr-border-corner.top-left {
    top: 8px; left: 8px;
    border-right: none; border-bottom: none;
    border-radius: 8px 0 0 0;
}

.qr-border-corner.top-right {
    top: 8px; right: 8px;
    border-left: none; border-bottom: none;
    border-radius: 0 8px 0 0;
}

.qr-border-corner.bottom-left {
    bottom: 8px; left: 8px;
    border-right: none; border-top: none;
    border-radius: 0 0 0 8px;
}

.qr-border-corner.bottom-right {
    bottom: 8px; right: 8px;
    border-left: none; border-top: none;
    border-radius: 0 0 8px 0;
}

/* Intent button (Mobile) */
.intent-btn {
    background: linear-gradient(135deg, #0B3D2E, #14644D);
    color: #ffffff;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(11,61,46,0.15);
    margin-bottom: 10px;
}

.intent-btn:hover {
    background: linear-gradient(135deg, #C6E547, #A8C42A);
    color: #0B3D2E;
    box-shadow: 0 8px 24px rgba(198,229,71,0.2);
    transform: translateY(-1px);
}

.desktop-instruction {
    font-size: 12px;
    color: #8B9B92;
    text-align: center;
    line-height: 1.4;
    max-width: 280px;
}

/* Footer status info */
.status-footer {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #D97706;
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #FEF08A;
    border-top: 2px solid #D97706;
    border-radius: 50%;
    animation: spin-anim 1s linear infinite;
}

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

.powered-by {
    text-align: center;
    font-size: 10px;
    color: #B5C4BB;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.powered-by span {
    color: #C6E547;
}

/* Success Card details */
.success-mode {
    border-top: 5px solid #10B981;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(16,185,129,0.15);
}

.success-icon svg {
    width: 36px;
    height: 36px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: #0B3D2E;
    margin-bottom: 8px;
}

.success-msg {
    font-size: 14px;
    color: #8B9B92;
    margin-bottom: 24px;
    line-height: 1.5;
}

.success-details {
    background: #F8FAF7;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4A5D52;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-row b {
    color: #0F1A14;
}

@media(max-width: 480px) {
    .payment-card {
        padding: 20px;
        border-radius: 20px;
    }
}
