@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --primary: #1F2937;
    --secondary: #F97316;
    --secondary-hover: #EA580C;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --text-muted: #6B7280;
    --shadow-soft: 0 4px 20px -2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0;
    width: 100%; min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    background-color: var(--bg-color);
    overflow-y: auto !important;
    overflow-x: hidden;
    user-select: none; -webkit-user-select: none;
}

.selectable { user-select: text !important; -webkit-user-select: text !important; cursor: text; }

#body-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    z-index: -20;
    transform: translateZ(0);
    will-change: transform; 
}

.blur-layer {
    position: fixed; inset: 0; z-index: -10;
    background: rgba(249, 250, 251, 0.4); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.nav-glass {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.main-wrapper {
    position: relative; z-index: 10;
    width: 100%; max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 140px 20px;
    display: flex; flex-direction: column; align-items: center;
}

.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 20px;
    width: 100%; max-width: 550px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.profile-container {
    padding: 4px; background: #FFF;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    width: 100px; height: 100px;
    margin-bottom: 8px;
}

.profile-container img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.greeting-badge {
    font-size: 11px; font-weight: 700; color: var(--secondary);
    background: #FFF7ED; padding: 6px 14px; border-radius: 50px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 24px; font-weight: 800; color: var(--primary);
    margin: 0; line-height: 1.2;
}

.hero-desc {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
    max-width: 400px; margin: 0 auto;
    min-height: 42px;
}

.content-grid {
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; width: 100%;
}

@media (min-width: 768px) {
    .content-grid { 
        display: grid; 
        grid-template-columns: 340px 1fr;
        align-items: start; justify-content: center;
    }
}

.glass-card { 
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.qris-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color);
}

.badge-scan {
    font-size: 11px; font-weight: 800; color: #fff;
    background: var(--primary);
    padding: 6px 14px; border-radius: 8px;
}

.badge-verified {
    font-size: 11px; font-weight: 700; color: #059669;
    background: #D1FAE5; padding: 6px 12px; border-radius: 8px;
    display: flex; align-items: center; gap: 4px;
}

.qris-frame {
    background: #FFF; border: 1px solid var(--border-color);
    padding: 12px; border-radius: 16px;
}

.qris-img { width: 100%; border-radius: 12px; }

.tutorial-title {
    font-size: 13px; font-weight: 700; color: var(--primary);
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}

.tutorial-list { list-style: none; padding: 0; margin: 0; }

.tutorial-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #F3F4F6;
    font-size: 13px; color: var(--text-muted);
}

.tutorial-item:last-child { border-bottom: none; }

.step-dot {
    width: 6px; height: 6px; background: var(--secondary);
    border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}

.manual-card {
    padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
    background: var(--card-bg); border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft); border-radius: 20px;
}

.payment-icon {
    width: 44px; height: 44px; background: #FFF7ED;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 18px;
}

.form-header {
    background: #FAFAFA; padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 10px;
    color: var(--primary); font-weight: 700; font-size: 14px;
}

.form-body { padding: 24px; }

.input-container { position: relative; margin-bottom: 14px; }

.input-modern {
    width: 100%; background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 14px 14px 14px 44px;
    border-radius: 12px;
    font-size: 14px; font-weight: 500; color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
    user-select: text !important; -webkit-user-select: text !important;
}

.input-modern:focus {
    background: #FFF; border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); outline: none;
}

.input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #9CA3AF; font-size: 14px; pointer-events: none; transition: 0.2s;
}

.input-modern:focus + .input-icon { color: var(--secondary); }

.upload-box {
    width: 100%; padding: 14px;
    border: 1px dashed #D1D5DB; border-radius: 12px;
    background: var(--bg-color); text-align: center;
    cursor: pointer; transition: 0.2s; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.upload-box:hover { background: #FFF; border-color: var(--secondary); }

.upload-text { font-size: 13px; color: var(--text-muted); font-weight: 500; }

#file-input { display: none; }

.chip-btn {
    background: #FFF; border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 10px; border-radius: 10px;
    font-size: 12px; font-weight: 600; transition: 0.2s;
    cursor: pointer;
}

.chip-btn:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-send {
    width: 100%; padding: 14px;
    background: var(--secondary); color: white;
    border: none; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: 0.2s;
    margin-top: 10px;
}

.btn-send:hover { background: var(--secondary-hover); transform: translateY(-1px); }

.btn-send:disabled { background: #9CA3AF; cursor: not-allowed; }

.ticker-wrap {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 40px;
    background: #FFF; border-top: 1px solid var(--border-color);
    z-index: 50; display: flex; align-items: center; overflow: hidden;
}

.ticker { display: flex; animation: ticker 40s linear infinite; }

.ticker-item { flex-shrink: 0; padding: 0 2rem; font-size: 12px; color: var(--text-muted); font-weight: 600; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

#preloader {
    position: fixed; inset: 0; background: var(--bg-color); z-index: 99999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.5s;
}

.spinner {
    width: 40px; height: 40px; border: 3px solid #FFF7ED;
    border-top: 3px solid var(--secondary); border-radius: 50%; animation: spin 0.8s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

#toast-box { position: fixed; top: 20px; right: 20px; z-index: 1000; }

.toast {
    background: #FFF; padding: 14px 20px; margin-bottom: 10px; border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-left: 4px solid var(--secondary);
    transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}

.toast.show { transform: translateX(0); }

.fade-up { opacity: 0; transform: translateY(15px); animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.d-1 { animation-delay: 0.1s; } .d-2 { animation-delay: 0.2s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.typing-cursor::after { content: '|'; animation: blink 1s infinite; color: var(--secondary); }
@keyframes blink { 50% { opacity: 0; } }
