@import url('./v2-system.css');
/* ============================================
   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;
}

.merchant-payment-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; margin: 0 auto 12px; display: block; background: #fff; border: 1px solid rgba(11,61,46,.1); padding: 6px; }

/* Merchant-selectable checkout themes */
.theme-retro { background: #f5cb24; color: #111; }
.theme-retro .payment-card { border: 4px solid #111; border-radius: 4px; box-shadow: 12px 12px 0 #397fe7; }
.theme-retro .merchant-badge,.theme-retro .status-footer { border: 2px solid #111; border-radius: 2px; }
.theme-retro .intent-btn { background: #397fe7; border: 2px solid #111; border-radius: 2px; box-shadow: 4px 4px 0 #111; }
.theme-retro .merchant-name,.theme-retro .amount-section h2 { color: #111; }

.theme-neon { background: radial-gradient(circle at top, #123b46, #071319 70%); }
.theme-neon .payment-card { background: #0b171d; color: #e9ffff; border: 1px solid #19e6e6; box-shadow: 0 0 32px rgba(25,230,230,.28); }
.theme-neon .merchant-name,.theme-neon .amount-section h2 { color: #43ffca; text-shadow: 0 0 12px rgba(67,255,202,.4); }
.theme-neon .order-id,.theme-neon .amount-section span,.theme-neon .desktop-instruction { color: #9bb7bd; }
.theme-neon .upi-id-display,.theme-neon .manual-utr-card,.theme-neon .success-details { background:#10232b;color:#43ffca;border-color:#1b7880; }
.theme-neon .intent-btn { background: linear-gradient(135deg,#00a9c7,#12c98c); box-shadow:0 0 20px rgba(18,201,140,.25); }

.theme-minimal { background: #f1f4f7; }
.theme-minimal .payment-card { border-radius: 12px; box-shadow: 0 12px 38px rgba(15,23,42,.09); border: 1px solid #e4e9ee; }
.theme-minimal .merchant-name,.theme-minimal .amount-section h2 { color:#172033; }
.theme-minimal .intent-btn { background:#172033; border-radius:8px; box-shadow:none; }

.theme-ocean { background: linear-gradient(135deg,#e8f4ff,#d8e7ff); }
.theme-ocean .payment-card { border-color:#d5e3fb; box-shadow:0 22px 55px rgba(26,72,145,.18); }
.theme-ocean .merchant-name,.theme-ocean .amount-section h2 { color:#173f7a; }
.theme-ocean .merchant-badge { background:#eaf3ff;color:#2864bd; }
.theme-ocean .intent-btn { background:linear-gradient(135deg,#2563eb,#173f7a); }
.theme-ocean .qr-border-corner { border-color:#397fe7; }

/* 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;
}

.upi-id-display {
    width: 100%;
    border: 1px dashed rgba(11, 61, 46, 0.25);
    background: #F8FAF7;
    color: #0B3D2E;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 12px;
    display: grid;
    gap: 2px;
    text-align: center;
    overflow-wrap: anywhere;
}

.upi-id-display span,
.upi-id-display small { font-size: 10px; color: #8B9B92; }
.upi-id-display strong { font-size: 14px; }

/* 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;
}

.manual-utr-card {
    border: 1px solid #DDE8E1;
    background: #F8FAF7;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}
.manual-utr-heading { font-weight: 800; color: #0B3D2E; font-size: 14px; }
.manual-utr-card p { color: #708078; font-size: 11px; margin: 3px 0 10px; }
.manual-utr-form { display: flex; gap: 8px; }
.manual-utr-form input { min-width: 0; flex: 1; border: 1px solid #CAD8CF; border-radius: 10px; padding: 10px; font: 600 13px monospace; text-transform: uppercase; }
.manual-utr-form button { border: 0; border-radius: 10px; background: #0B3D2E; color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.manual-utr-form button:disabled { opacity: .55; }
.manual-utr-card small { display: block; color: #708078; font-size: 10px; margin-top: 8px; }

.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-body { padding: 10px; align-items: flex-start; }
    .payment-wrapper { margin: 8px auto; }
    .payment-card {
        padding: 18px 16px;
        border-radius: 18px;
    }
    .payment-card .header { padding-bottom: 14px; margin-bottom: 14px; }
    .amount-section { margin-bottom: 16px; }
    .amount-section h2 { font-size: 32px; }
    .qr-frame { padding: 12px; margin-bottom: 12px; }
    .qr-frame img { width: min(190px, 58vw); height: min(190px, 58vw); }
    .intent-btn { min-height: 48px; padding: 12px; }
    .manual-utr-form { flex-direction: column; }
    .manual-utr-form button { min-height: 44px; }
}
