/* =========================================
   HONEY UPI
   Global stylesheet
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #070a10;
    --bg-card: #111722;
    --bg-card-light: #171e2b;

    --text-main: #ffffff;
    --text-muted: #98a2b3;

    --accent: #19d3c5;
    --accent-dark: #0ea69b;

    --danger: #ff5c70;
    --success: #34d399;

    --border: rgba(255, 255, 255, 0.10);

    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(25, 211, 197, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(64, 89, 255, 0.08),
            transparent 30%
        ),
        var(--bg-main);
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   LAYOUT
========================================= */

.page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.container {
    width: 100%;
    max-width: 560px;
}

/* =========================================
   BRAND
========================================= */

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-name {
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -1px;
}

.brand-name span {
    color: var(--accent);
}

.brand-subtitle {
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================
   CARD
========================================= */

.card {
    width: 100%;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.075),
            rgba(255,255,255,0.035)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    backdrop-filter: blur(20px);
}

/* =========================================
   HEADINGS
========================================= */

.card-title {
    font-size: 24px;
    font-weight: 800;

    margin-bottom: 8px;
}

.card-description {
    color: var(--text-muted);
    line-height: 1.6;

    margin-bottom: 24px;
}

/* =========================================
   FORM
========================================= */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: #d9dee8;
}

.input,
.textarea {
    width: 100%;

    padding: 14px 15px;

    color: var(--text-main);
    background: rgba(0,0,0,0.25);

    border: 1px solid var(--border);
    border-radius: 13px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.input:focus,
.textarea:focus {
    border-color: rgba(25,211,197,0.65);

    box-shadow:
        0 0 0 4px rgba(25,211,197,0.08);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

/* =========================================
   BUTTON
========================================= */

.btn {
    width: 100%;

    border: 0;
    border-radius: 14px;

    padding: 15px 18px;

    font-weight: 800;

    transition:
        transform 0.15s,
        opacity 0.15s,
        box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    color: #03100e;

    background: var(--accent);

    box-shadow:
        0 10px 30px rgba(25,211,197,0.20);
}

.btn-secondary {
    color: white;

    background: rgba(255,255,255,0.07);

    border: 1px solid var(--border);
}

/* =========================================
   SAVED INFORMATION
========================================= */

.saved-box {
    margin-bottom: 24px;

    padding: 16px;

    border-radius: 15px;

    background: rgba(25,211,197,0.06);

    border: 1px solid rgba(25,211,197,0.16);
}

.saved-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 8px;
}

.saved-row:last-child {
    margin-bottom: 0;
}

.saved-label {
    color: var(--text-muted);
    font-size: 12px;
}

.saved-value {
    font-size: 13px;
    font-weight: 700;

    text-align: right;

    word-break: break-word;
}

/* =========================================
   PAYMENT
========================================= */

.amount {
    text-align: center;

    margin: 24px 0;
}

.amount-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.amount-value {
    margin-top: 6px;

    font-size: 48px;
    line-height: 1;

    font-weight: 900;
    letter-spacing: -2px;
}

.info-list {
    margin: 26px 0;
}

.info-item {
    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: 0;
}

.info-label {
    color: var(--text-muted);

    font-size: 12px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    font-weight: 700;

    word-break: break-word;
}

/* =========================================
   FIXED BADGE
========================================= */

.fixed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 14px;

    margin: 20px 0;

    border-radius: 50px;

    color: var(--accent);

    background: rgba(25,211,197,0.07);

    border: 1px solid rgba(25,211,197,0.18);

    font-size: 13px;
    font-weight: 800;
}

/* =========================================
   QR
========================================= */

.qr-section {
    margin-top: 25px;

    text-align: center;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.qr-title {
    font-weight: 800;
    margin-bottom: 14px;
}

.qr-box {
    display: inline-flex;

    padding: 15px;

    background: white;

    border-radius: 16px;
}

#qrcode img,
#qrcode canvas {
    display: block;
}

/* =========================================
   MESSAGES
========================================= */

.message {
    display: none;

    margin-bottom: 18px;

    padding: 13px 15px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.5;
}

.message.show {
    display: block;
}

.message.error {
    color: #ff9baa;

    background: rgba(255,92,112,0.08);

    border: 1px solid rgba(255,92,112,0.18);
}

.message.success {
    color: #75e9b9;

    background: rgba(52,211,153,0.08);

    border: 1px solid rgba(52,211,153,0.18);
}

/* =========================================
   LOCK SCREEN
========================================= */

.lock-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 20px;

    font-size: 28px;

    background: rgba(25,211,197,0.08);

    border: 1px solid rgba(25,211,197,0.15);
}

/* =========================================
   FOOTER
========================================= */

.footer {
    margin-top: 20px;

    text-align: center;

    color: #667085;

    font-size: 11px;
}

/* =========================================
   LOADING
========================================= */

.loading {
    text-align: center;

    padding: 30px;

    color: var(--text-muted);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 520px) {

    .page {
        padding: 14px;
    }

    .card {
        padding: 22px 18px;

        border-radius: 18px;
    }

    .brand-name {
        font-size: 28px;
    }

    .amount-value {
        font-size: 42px;
    }
}
