* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f6f8;
    color: #111;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px 20px;
}

.header { text-align: center; margin-bottom: 25px; }
.header h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.highlight { color: #00c853; }
.verified-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.cash-app-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(0, 214, 50, 0.25);
    overflow: hidden;
}
.cash-app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
}
.card h2 { font-size: 20px; margin-bottom: 5px; }
.card p { color: #777; font-size: 14px; }

.amount-section {
    background: #f0fdf4;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}
.section-label {
    color: #2e7d32;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.amount-btn {
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.2s;
}
.amount-btn:hover { border-color: #00c853; background: #f1f8e9; }

.hidden-more { display: none; }

.show-more-btn {
    width: 100%;
    background: #dcedc8;
    border: none;
    border-radius: 10px;
    padding: 0 15px;
    height: 40px;
    color: #33691e;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}
.show-more-btn:hover { background: #c5e1a5; }

.custom-amount-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 12px 15px;
}
.currency-symbol { font-size: 20px; font-weight: 600; color: #00c853; margin-right: 8px; }
.custom-amount-wrapper input {
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
    color: #111;
    font-weight: 500;
}
.custom-amount-wrapper input::placeholder { color: #aaa; font-weight: 400; }

.pay-now-btn {
    width: 100%;
    background: #00c853;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    transition: opacity 0.2s;
    margin-top: 5px;
}
.pay-now-btn:hover { opacity: 0.9; }

.footer { text-align: center; margin-top: 25px; }
.powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.footer p { font-size: 12px; color: #aaa; }

#page-payment { text-align: center; }

.timer-banner {
    background: #fff8e1;
    color: #e65100;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.timer-banner span { font-weight: 800; }

.amount-due { margin-bottom: 20px; }
.amount-due .label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.amount-due .amount-value {
    font-size: 48px;
    font-weight: 700;
    color: #00c853;
    letter-spacing: -1px;
}
.amount-due .subtext { color: #888; font-size: 14px; margin-top: 5px; }

.qr-box {
    background: #f9fafb;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.qr-wrapper {
    position: relative;
    display: inline-block;
}
.qr-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    overflow: hidden;
}
.qr-center-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#qrcode { display: flex; justify-content: center; }

.invoice-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.invoice-row + .invoice-row { border-top: 1px solid #eee; }
.info-label { font-size: 11px; color: #888; font-weight: 600; letter-spacing: 0.5px; }
.info-value { font-size: 13px; font-weight: 600; color: #111; }
.info-value.truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-badge {
    background: #fff8e1;
    color: #e65100;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-badge .dot {
    width: 8px; height: 8px;
    background: #e65100;
    border-radius: 50%;
    display: inline-block;
}
.status-badge.paid { background: #e8f5e9; color: #2e7d32; }
.status-badge.paid .dot { background: #2e7d32; }

.cash-app-btn { margin-top: 15px; }
.cash-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /*  */;
    border-radius: 6px;
    overflow: hidden;
}
.cash-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}
.copy-btn:hover { color: #111; }

.settle-text { font-size: 12px; color: #aaa; margin-top: 10px; }

.cancel-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 12px;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: underline;
}
