﻿/* ===== PAGE ===== */
.page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f6f8, #eef1f4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== CARD ===== */
.card {
    width: 380px;
    padding: 30px 25px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: #00a86b;
    border-radius: 50%;
}

/* ===== QR ===== */
.qr-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-image {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    background: white;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* ===== AMOUNT ===== */
.amount {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== INFO ===== */
.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

    .row a {
        color: #00a86b;
        text-decoration: none;
        font-weight: 500;
    }

/* ===== BUTTON ===== */
.primary-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #00a86b;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .primary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,168,107,0.3);
    }

/* ===== LOADER ===== */
.loader {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top: 3px solid #00a86b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.loading-text {
    margin-top: 10px;
    color: #777;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-in {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR pulse */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,168,107,0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0,168,107,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0,168,107,0);
    }
}

.error {
    text-align: center;
    color: red;
}
/* ===== PRINT ===== */
@media print {
    body * {
        visibility: hidden;
    }

    #print-area, #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        text-align: center;
    }

    .primary-btn {
        display: none;
    }
}