/* ============================================
   Aditya Loot - Modern Public Payment CSS
   Version: 2.1
   ============================================ */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-glow: rgba(79, 70, 229, 0.35);
    --paytm-blue: #002E6E;
    --paytm-cyan: #00BAF2;
    --bg-dark: #090D16;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --success: #10B981;
}

* {
    box-sizing: border-box;
}

.payment-body {
    background: radial-gradient(120% 120% at 50% 0%, #1E1B4B 0%, #0F172A 50%, var(--bg-dark) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Card */
.payment-card {
    background: #FFFFFF;
    border-radius: 26px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 30px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

/* Header */
.payment-card .header {
    text-align: center;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.merchant-badge {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.merchant-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.order-id {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.order-id strong {
    font-family: 'Fira Code', monospace;
    color: #334155;
}

.btn-copy-mini {
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}

.btn-copy-mini:hover {
    color: var(--primary);
}

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

.amount-section span {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.amount-section h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0F172A;
    margin: 4px 0 0;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

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

.qr-frame {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #E2E8F0;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.qr-frame img {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: contain;
}

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

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

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

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

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

/* UPI Copy pill */
.upi-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    max-width: 100%;
}

.upi-copy-pill:hover {
    background: #EEF2FF;
    border-color: #818CF8;
    color: var(--primary);
    transform: translateY(-1px);
}

.upi-copy-pill .upi-label {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
}

.upi-copy-pill strong {
    font-size: 13px;
    word-break: break-all;
}

.upi-copy-pill .copy-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #EEF2FF;
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}

/* Fast Pay Buttons Container */
.intent-buttons-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

/* Intent Buttons */
.intent-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.intent-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.intent-btn:active {
    transform: translateY(0);
}

/* Universal UPI Intent */
.intent-btn-upi {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.intent-btn-upi:hover {
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45);
}

/* Paytm Intent */
.intent-btn-paytm {
    background: #002E6E;
    color: #FFFFFF !important;
    border: 1px solid rgba(0, 186, 242, 0.4);
    box-shadow: 0 6px 18px rgba(0, 46, 110, 0.2);
}

.intent-btn-paytm:hover {
    background: #002252;
    box-shadow: 0 10px 22px rgba(0, 46, 110, 0.35);
}

/* GPay / Share Intent */
.intent-btn-gpay {
    background: #FFFFFF;
    color: #1E293B !important;
    border: 1.5px solid #E2E8F0;
}

.intent-btn-gpay:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.desktop-instruction {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
    max-width: 320px;
    margin-top: 4px;
}

/* Powered By */
.powered-by {
    text-align: center;
    font-size: 11px;
    color: #94A3B8;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
    font-weight: 500;
}

.powered-by span {
    color: var(--primary);
    font-weight: 700;
}

/* Status Detection Footer */
.status-footer {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 10px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #15803D;
}

.live-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: pulse-ring 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Success Card */
.success-mode {
    border-top: 5px solid var(--success);
}

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

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

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.success-msg {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.success-details {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px dashed #E2E8F0;
}

.detail-row b {
    color: var(--text-dark);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .payment-body {
        padding: 16px 12px;
    }
    .payment-card {
        padding: 24px 18px;
        border-radius: 22px;
    }
    .amount-section h2 {
        font-size: 34px;
    }
    .qr-frame img {
        width: 180px;
        height: 180px;
    }
    .intent-btn {
        padding: 12px 14px;
        font-size: 13.5px;
    }
}
