:root {
    --brand: #2563eb;
    --brand-2: #7c3aed;
    --ink: #0f172a;
    --soft: #f4f6fb;
}
body { color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.bg-soft { background: var(--soft); }
.bg-dark-soft { background: radial-gradient(circle at 20% 10%, #1e293b, #0f172a 60%); }
.narrow { max-width: 560px; }
.narrow-sm { max-width: 420px; }
.mid { max-width: 1080px; }
.max-w-200 { max-width: 200px; }
.letter-wide { letter-spacing: .3em; }

.brand-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-size: .85rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.text-gradient { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navbar-glass { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(15,23,42,.06); }
.icon-circle { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.75rem; color: var(--brand);
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12)); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 90% -10%, rgba(124,58,237,.12), transparent), radial-gradient(800px 400px at -10% 30%, rgba(37,99,235,.10), transparent); }
.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.standee { width: 230px; padding: 24px 20px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 60px -20px rgba(15,23,42,.35); border: 1px solid #e5e7eb; transform: rotate(-4deg); }
.standee-top { font-weight: 700; }
.standee-stars { color: #f59e0b; font-size: 1.5rem; letter-spacing: 4px; }
.standee-qr { font-size: 5.5rem; line-height: 1; margin: 8px 0; }
.standee-nfc { font-size: .85rem; padding: 6px 10px; border-radius: 999px; background: var(--soft); }
.standee-nfc .bi { display: inline-block; transform: rotate(90deg); }
.floating-card { position: absolute; background: #fff; padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(15,23,42,.3); animation: float 4s ease-in-out infinite; }
.fc-1 { top: 12%; left: 4%; }
.fc-2 { bottom: 12%; right: 2%; animation-delay: 1.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.feature-card { background: #fff; border: 1px solid #eef0f5; border-radius: 18px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(15,23,42,.35); }
.cta-box { border-radius: 24px; padding: 36px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.divider-text { text-align: center; position: relative; color: #94a3b8; font-size: .85rem; }
.divider-text::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid #e5e7eb; }
.divider-text span { position: relative; background: #fff; padding: 0 12px; }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: #16a34a; flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }

/* Simulasi */
.phone { width: 260px; height: 520px; border-radius: 40px; background: #0f172a; padding: 14px; position: relative; box-shadow: 0 30px 60px -25px rgba(15,23,42,.6); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0f172a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 28px; background: #fff; overflow: hidden; position: relative; }
.sim-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; opacity: 0; transition: opacity .35s; }
.phone[data-state="idle"] .sim-idle, .phone[data-state="tap"] .sim-tap, .phone[data-state="review"] .sim-review { opacity: 1; }
.sim-review { justify-content: flex-start; padding-top: 50px; align-items: stretch; text-align: left; }
.review-head { font-weight: 700; margin-bottom: 4px; }
.review-stars { font-size: 1.8rem; color: #f59e0b; display: flex; gap: 4px; }
.review-box { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; min-height: 90px; font-size: .85rem; color: #64748b; margin-top: 10px; }
.pulse { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--brand); animation: pulse-blue 1.2s infinite; }
.pulse .bi { transform: rotate(90deg); }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 100% { box-shadow: 0 0 0 30px rgba(37,99,235,0); } }
.sim-log li { margin-bottom: 4px; }

/* Setup / edit */
.setup-head, .dash-head { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.slug-big { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 14px; border-radius: 12px; letter-spacing: .05em; }
.slug-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; background: #fff; border: 1px solid #e5e7eb; padding: 4px 10px; border-radius: 999px; font-size: .9rem; }
.pin-panel { background: var(--soft); border-radius: 16px; padding: 20px; }
.pin-group { display: flex; gap: 8px; justify-content: center; }
.pin-box { width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700; border-radius: 12px; padding: 0; }
.pin-box:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(37,99,235,.2); }
.pin-group.is-invalid .pin-box { border-color: #dc3545; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 380px) { .pin-box { width: 40px; height: 50px; font-size: 1.25rem; } .pin-group { gap: 5px; } }
.success-check { width: 84px; height: 84px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 2.5rem; animation: pop .4s ease-out; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.maps-hint.text-success { font-weight: 600; }

/* Statistik */
.stat-card { background: #fff; border-radius: 16px; padding: 18px; height: 100%; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.stat-card > .bi { font-size: 1.4rem; }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: 4px; }
.stat-value.small-val { font-size: .95rem; font-weight: 700; }
.stat-label { font-size: .8rem; color: #64748b; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }

/* Admin */
.admin-table td, .admin-table th { white-space: nowrap; }
.admin-table th { font-size: .78rem; text-transform: uppercase; color: #64748b; }
.secret-code { letter-spacing: .15em; }
