* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    /* scrollbar simple style */
    scrollbar-width: thin;
    scrollbar-color: #009cd5 rgba(0, 0, 0, 0);
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 30% 20%, #0f2027, #203a43, #2c5364);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    color: white;
    overflow: auto;
    padding: 40px 0;
}

.invoice-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    width: 95%; max-width: 600px;
    padding: 40px 30px;
    animation: fadeIn 0.8s ease forwards;
}

h1 {
    font-size: 28px; text-align: center; margin-bottom: 10px;
    background: linear-gradient(90deg, #00ffe0, #00a2ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

p.desc {
    text-align: center;
    color: #ccc;
    margin-bottom: 30px;
}

.amount {
    display: flex; justify-content: space-between;
    align-items: center; margin: 25px 0;
    padding: 20px; border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
}

.amount strong {
    font-size: 22px;
    color: #00ffd0;
}

.details p {
    margin: 6px 0;
    color: #ddd;
    font-size: 14px;
}

.btn-connect {
    width: 100%; background: linear-gradient(90deg,#00ffd0,#00a2ff);
    border: none; border-radius: 12px;
    color: #000; font-weight: 600; font-size: 17px;
    padding: 14px 0; cursor: pointer;
    transition: all 0.25s ease; margin-top: 25px;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px #00ffd0;
}

.log {
    margin-top: 20px; font-size: 13px;
    background: rgba(255,255,255,0.05); border-radius: 10px;
    padding: 12px; color: #8de7ff; height: 120px;
    overflow-y: auto; white-space: pre-wrap;
}

footer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #999;
}


/* ===== QR-CODE ===== */
/* --- overlay --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;                      /* invisible by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInModal 0.8s ease forwards;
}

/* --- modal window style --- */
.modal-content {
    position: relative;
    background: rgba(30, 50, 60, 0.8);
    padding: 40px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ffe0, #00a2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #fff;
}

#qrcode-container {
    width: 280px;
    height: 280px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;

    display: flex;
    justify-content: center;
    align-items: center;
}



/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
