/* =====================
   ROOT & RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #f3e8ff;
    --accent: #e879f9;
    --dark: #0f172a;
    --dark2: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --green: #16a34a;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.14);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #7c3aed, #e879f9);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 16px; color: var(--dark); }
.logo-tagline { font-size: 10px; color: var(--text-light); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links li a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
}
.nav-links li a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links li a.active { color: var(--primary); font-weight: 700; }

.btn-login {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.15s !important;
}
.btn-login:hover { background: var(--primary-dark) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 6px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* =====================
   HERO
   ===================== */
.hero {
    background: linear-gradient(135deg, #2e1065 0%, #4a1688 30%, #7c3aed 65%, #e879f9 100%);
    color: white;
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,121,249,0.2) 0%, rgba(124,58,237,0.15) 50%, transparent 80%);
    pointer-events: none;
}

.hero-content { max-width: 680px; margin: 0 auto; position: relative; }

.hero-badge {
    display: inline-block;
    background: rgba(124,58,237,0.25);
    border: 1px solid rgba(124,58,237,0.5);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 30%, #f0abfc 70%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: left;
}
.feature-icon { font-size: 22px; }
.hero-feature strong { display: block; font-size: 13px; font-weight: 700; color: white; }
.hero-feature span { font-size: 12px; color: #94a3b8; }

/* =====================
   MAIN
   ===================== */
.main-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* =====================
   PAYMENT SECTION
   ===================== */
.payment-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeUp 0.5s ease both;
}
.payment-section:nth-child(2) { animation-delay: 0.1s; }
.payment-section:nth-child(3) { animation-delay: 0.2s; }

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

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* QRIS */
.qris-wrapper { display: flex; justify-content: center; }
.qris-card { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.qris-frame {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 0 0 2px var(--border), var(--shadow);
    display: inline-flex;
}
.qris-img {
    width: 220px; height: 220px;
    border-radius: 8px;
    display: block;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s, transform 0.1s;
}
.btn-download:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* E-WALLET */
.ewallet-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.ewallet-logos img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}
.ewallet-logos img:hover { filter: none; }

.copy-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}
.copy-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 8px;
}
.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.copy-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.04em;
}

.btn-copy {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.btn-copy:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-copy.copied {
    background: #dcfce7; border-color: #16a34a; color: var(--green);
    transform: scale(0.97);
}

/* BANK LIST */
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.bank-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    gap: 12px;
    transition: box-shadow 0.15s;
}
.bank-card:hover { box-shadow: var(--shadow); }

.bank-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bank-logo-wrap { width: 60px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bank-logo-wrap img { max-width: 60px; max-height: 32px; object-fit: contain; }
.bank-logo-fallback {
    width: 52px; height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800; font-size: 12px;
    border-radius: 8px;
    align-items: center; justify-content: center;
}

.bank-info { display: flex; flex-direction: column; min-width: 0; }
.bank-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.bank-account { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0.03em; }

.account-name-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* =====================
   SHARE
   ===================== */
.share-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    animation: fadeUp 0.5s ease 0.3s both;
}
.share-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    transition: transform 0.1s, filter 0.15s;
}
.btn-share:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-wa { background: #25d366; }
.btn-tg { background: #2481cc; }

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 40px 24px;
    margin-top: 24px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand .logo-name { color: white; }
.footer-links {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 13px; }

/* =====================
   TOAST
   ===================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--dark);
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 700px) {
    .payment-section { padding: 24px 18px; }
    .share-section { padding: 24px 18px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 10px 16px; border-radius: 8px; }
    .nav-toggle { display: flex; }
    .navbar { position: relative; }
    .hero-features { flex-direction: column; align-items: center; }
    .copy-number { font-size: 16px; }
}

@media (max-width: 480px) {
    .bank-account { font-size: 13px; }
}

/* =====================
   QRIS TABS & NOMINAL
   ===================== */
.qris-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.qris-tab {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.qris-tab:hover { border-color: var(--primary); color: var(--primary); }
.qris-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Nominal input */
.nominal-input-wrap { margin-bottom: 24px; }
.nominal-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    margin-bottom: 10px;
}
.nominal-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1.5px var(--border);
    transition: box-shadow .2s;
}
.nominal-row:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.nominal-prefix {
    background: var(--bg);
    border-right: 1.5px solid var(--border);
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}
.nominal-field {
    flex: 1;
    background: #fff;
    border: none;
    border-right: 1.5px solid var(--border);
    padding: 12px 14px;
    font-size: 20px;
    font-weight: 700;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    min-width: 0;
}
.btn-gen-qr {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .15s;
    flex-shrink: 0;
}
.btn-gen-qr:hover { filter: brightness(1.1); }

.nominal-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nominal-presets button {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.nominal-presets button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* QR result */
.qr-nominal-badge {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124,58,237,.35);
}
.qr-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
}
.qr-info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
}
.qr-info-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 480px) {
    .nominal-row { flex-wrap: wrap; border-radius: 10px; overflow: visible; box-shadow: none; }
    .nominal-prefix { border-radius: 10px; border: 1.5px solid var(--border); margin-bottom: 6px; width: 100%; }
    .nominal-field  { border-radius: 10px; border: 1.5px solid var(--border); margin-bottom: 6px; width: 100%; }
    .btn-gen-qr     { border-radius: 10px; width: 100%; text-align: center; padding: 12px; }
    .nominal-row:focus-within { box-shadow: none; }
    .nominal-field:focus { box-shadow: 0 0 0 2px var(--primary); }
}
