/* ==========================================================================
   LOGINPAGE 21 - NEO BRUTALISM (Pop-Art Folder Card Deck)
   Folder Tabs at Top -> Single Bold Card Deck (No 2-Column Split!)
   ========================================================================== */
:root {
  --bg-canvas: #fef9c3;
  --surface-white: #ffffff;
  --ink: #0f172a;
  --violet: #8b5cf6;
  --yellow: #facc15;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --rose: #fb7185;
  --border-w: 2.5px;
  --shadow-hard: 5px 5px 0 #0f172a;
  --shadow-sm: 3px 3px 0 #0f172a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-sans); background-color: var(--bg-canvas);
  background-image: radial-gradient(#0f172a 1px, transparent 1px); background-size: 20px 20px;
  color: var(--ink); min-height: 100vh; min-height: 100dvh; line-height: 1.45;
  display: flex; flex-direction: column; justify-content: center; padding: 18px 16px;
}
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 0.3s, visibility 0.3s; }
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.nb-spinner { width: 38px; height: 38px; border: 4px solid var(--ink); border-top-color: var(--violet); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.nb-shell { width: 100%; max-width: 440px; margin: 0 auto; }
.nb-shell.centered { min-height: calc(100vh - 36px); display: flex; flex-direction: column; justify-content: center; }

.nb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--surface-white);
  border: var(--border-w) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.nb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nb-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--cyan); border: var(--border-w) solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nb-logo img { width: 22px; height: 22px; object-fit: contain; }
.nb-title { font-size: 15px; font-weight: 900; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-sub { font-size: 10.5px; font-weight: 700; color: #475569; }
.nb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--lime); border: 2px solid var(--ink); border-radius: 9999px; font-size: 10.5px; font-weight: 900; flex-shrink: 0; }

/* Pop-Art Sticker Navigation Tabs */
.folder-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.folder-tab-btn {
  padding: 10px 8px; border: var(--border-w) solid var(--ink);
  border-radius: 12px; background: var(--surface-white);
  font-family: inherit; font-size: 11.5px; font-weight: 900; text-transform: uppercase;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.folder-tab-btn.active { background: var(--yellow); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.folder-tab-btn[data-pane="paket"].active { background: var(--cyan); }
.folder-tab-btn[data-pane="faq"].active { background: var(--lime); }

.nb-card {
  position: relative; z-index: 1; background: var(--surface-white); border: var(--border-w) solid var(--ink);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow-hard); margin-bottom: 16px;
}
.folder-pane { display: none; }
.folder-pane.active { display: block; }

.nb-hero-title { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.nb-hero-sub { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 14px; }

.nb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.nb-tab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; background: #f1f5f9; border: 2px solid var(--ink); border-radius: 10px;
  font-family: inherit; font-size: 11.5px; font-weight: 800; color: var(--ink); cursor: pointer;
}
.nb-tab-btn.active { background: var(--violet); color: #fff; box-shadow: 3px 3px 0 var(--ink); }

.nb-field { margin-bottom: 12px; }
.nb-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.nb-input-wrap { position: relative; display: flex; align-items: center; }
.nb-input-icon { position: absolute; left: 14px; font-size: 14px; color: var(--ink); pointer-events: none; }
.nb-input { width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 10px; background: #fff; border: var(--border-w) solid var(--ink); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 700; outline: none; }
.nb-input:focus { background: #fefce8; box-shadow: 3px 3px 0 var(--ink); }
.nb-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; }

.btn-nb-primary {
  width: 100%; height: 46px; border: var(--border-w) solid var(--ink); border-radius: 12px;
  background: var(--yellow); color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 900;
  text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
}
.btn-nb-secondary {
  width: 100%; height: 40px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--cyan); color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; box-shadow: 3px 3px 0 var(--ink);
}
.btn-nb-danger {
  width: 100%; height: 44px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--rose); color: #fff; font-family: inherit; font-size: 13px; font-weight: 800;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 3px 3px 0 var(--ink);
}

.nb-scanner { background: #f8fafc; border: 2px dashed var(--ink); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; }
.nb-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.nb-laser { position: absolute; left: 4px; right: 4px; height: 3px; background: var(--rose); animation: scanLine 1.8s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.nb-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #ffe4e6; border: 2px solid var(--ink); color: #9f1239; font-size: 12px; font-weight: 800; }
.nb-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 11px; font-weight: 800; }
.nb-divider::before, .nb-divider::after { content: ""; flex: 1; height: 2px; background: var(--ink); }

.nb-pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .nb-pkg-grid { grid-template-columns: 1fr; } }
.nb-pkg-card { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 12px; box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.nb-pkg-card.popular { background: #ede9fe; }
.nb-pkg-badge { font-size: 9.5px; font-weight: 900; padding: 2px 7px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); display: inline-block; width: fit-content; }

.nb-faq-item { background: #fff; border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 8px; box-shadow: 2px 2px 0 var(--ink); overflow: hidden; }
.nb-faq-btn { width: 100%; background: none; border: none; padding: 11px 14px; font-family: inherit; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nb-faq-item.open .nb-faq-btn i { transform: rotate(180deg); }
.nb-faq-ans { display: none; padding: 0 14px 12px; font-size: 11.5px; font-weight: 600; color: #334155; }
.nb-faq-item.open .nb-faq-ans { display: block; }

.nb-meta-box { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.nb-meta-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.nb-meta-row span:last-child { font-family: var(--font-mono); font-weight: 800; }
.nb-footer { text-align: center; font-size: 11px; font-weight: 700; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,0.72); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-nb { width: 100%; max-width: 360px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 20px; box-shadow: 6px 6px 0 var(--ink); }
.qris-box { background: #f8fafc; border: 2px solid var(--ink); border-radius: 12px; padding: 12px; text-align: center; margin: 12px 0; }
.qris-box img { width: 145px; height: 145px; object-fit: contain; margin: 6px auto; display: block; }
.nb-sticker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; font-size: 10.5px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; box-shadow: 2px 2px 0 var(--ink); }
