:root {
    --bg: #070b18;
    --card: rgba(18, 26, 48, 0.82);
    --border: rgba(255, 255, 255, 0.10);
    --text: #eef2ff;
    --muted: #9aa7c7;
    --accent: #4f8cff;
    --accent-2: #22d3ee;
    --success: #34d399;
    --danger: #fb7185;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(79, 140, 255, 0.22), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.16), transparent 35%),
        var(--bg);
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 80%, rgba(79, 140, 255, 0.10), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.08), transparent 40%);
    z-index: -1;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* Header */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 30px;
    font-weight: 800;
    color: #04122b;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 18px 40px rgba(79, 140, 255, 0.35);
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
}

.hero p {
    margin: 5px 0 0;
    color: var(--muted);
}

.hero-actions,
.support-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-6px) rotateX(1.5deg) rotateY(-1.5deg);
    border-color: rgba(79, 140, 255, 0.45);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.card-shine {
    position: absolute;
    inset: -60% -20%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.card:hover .card-shine {
    transform: translateX(100%);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.card-head h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.pill {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.live-pill {
    color: #04122b;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Notice */
.notice-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(79, 140, 255, 0.35);
    background: linear-gradient(120deg, rgba(79, 140, 255, 0.16), rgba(34, 211, 238, 0.07));
    box-shadow: var(--shadow);
}

.notice-icon {
    font-size: 2rem;
}

.notice-card h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.notice-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

/* QR */
.how-to-pay {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.how-to-pay h3 {
    margin: 0 0 14px;
}

.how-to-pay ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.93rem;
}

.mini-note {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 13px;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.30);
    color: #c7d8ff;
    font-size: 0.88rem;
}

.qr-stage {
    text-align: center;
}

.qr-frame {
    width: min(280px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    position: relative;
}

.qr-frame::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    border: 1px dashed rgba(79, 140, 255, 0.55);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.qr-generated {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.qr-caption {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.qr-meta {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.detail-row span {
    color: var(--muted);
    font-size: 0.85rem;
}

.detail-row strong {
    font-size: 0.95rem;
    word-break: break-word;
    text-align: right;
}

/* Buttons */
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
    width: 100%;
    padding: 15px 22px;
    border-radius: 15px;
    color: #04122b;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 14px 35px rgba(79, 140, 255, 0.30);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(79, 140, 255, 0.42);
}

.primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ghost-btn {
    padding: 11px 18px;
    border-radius: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.ghost-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, 0.55);
}

/* Form */
.field {
    display: block;
    margin-bottom: 16px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: rgba(154, 167, 199, 0.65);
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.amount-wrap {
    position: relative;
}

.currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 700;
}

.amount-wrap input {
    padding-left: 38px;
}

.form-note {
    margin: 18px 0;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.30);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 0.88rem;
    line-height: 1.55;
}

.success-box {
    margin-top: 15px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.10);
    color: var(--success);
    font-size: 0.9rem;
    text-align: center;
}

.error-box {
    margin-top: 15px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.10);
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
}

/* Info and bank details */
.info-box {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.info-box .label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-box strong {
    word-break: break-all;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.bank-item {
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.bank-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bank-item strong {
    font-size: 0.93rem;
    word-break: break-word;
}

/* Instructions */
.instruction-list h3,
.caution-box h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.instruction-list ol,
.caution-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.caution-box {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(251, 113, 133, 0.28);
    background: rgba(251, 113, 133, 0.08);
}

.caution-box ul {
    color: #fecdd3;
}

/* Support */
.support-card {
    margin-bottom: 24px;
}

.support-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.support-inner h2 {
    margin: 0 0 8px;
}

.support-inner p {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer .small {
    margin-top: 10px;
    font-size: 0.78rem;
    opacity: 0.75;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 30px);
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--success);
    color: #04122b;
    font-weight: 700;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hidden {
    display: none !important;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .hero,
    .support-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .bank-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page {
        width: calc(100% - 20px);
        padding-top: 24px;
    }

    .card {
        padding: 22px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }
}