/* ==========================================================================
   LOGINPAGE 22 - SWISS MONOCHROME (Full-Width Editorial Poster Accordion)
   ========================================================================== */
:root {
  --bg: #ffffff;
  --alt: #f5f5f5;
  --white: #ffffff;
  --ink: #0a0a0a;
  --sub: #525252;
  --muted: #737373;
  --line: #d4d4d4;
  --font-sans: "Helvetica Neue", Helvetica, Arial, -apple-system, 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: var(--bg); color: var(--ink); min-height: 100vh; line-height: 1.45; }
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--white); 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; }
.sw-spinner { width: 32px; height: 32px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sw-shell { width: 100%; max-width: 580px; margin: 0 auto; padding: 24px 16px 48px; }
.sw-shell.centered { max-width: 440px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.sw-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); margin-bottom: 20px; }
.sw-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sw-logo { width: 36px; height: 36px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-logo img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(100%) contrast(1.2); }
.sw-title { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sw-sub { font-size: 11px; color: var(--sub); }
.sw-status { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border: 1px solid var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.sw-dot { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }

/* Swiss Editorial Masthead */
.sw-masthead { padding: 14px 0 22px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.sw-masthead-title { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.sw-masthead-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--sub); margin-top: 8px; }

/* Full-Width Editorial Accordion Rows */
.sw-section { border-bottom: 1px solid var(--ink); }
.sw-section-trigger {
  width: 100%; background: none; border: none; padding: 16px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink);
}
.sw-section-body { display: none; padding-bottom: 22px; }
.sw-section.open .sw-section-body { display: block; }
.sw-section.open .sw-section-trigger i.chev { transform: rotate(180deg); }

.sw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-bottom: 16px; }
.sw-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: none; border-right: 1px solid var(--ink); background: var(--white); font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--sub); cursor: pointer; }
.sw-tab-btn:last-child { border-right: none; }
.sw-tab-btn.active { background: var(--ink); color: var(--white); }

.sw-field { margin-bottom: 12px; }
.sw-label { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.sw-input-wrap { position: relative; display: flex; align-items: center; }
.sw-input-icon { position: absolute; left: 13px; font-size: 13px; color: var(--ink); pointer-events: none; }
.sw-input { width: 100%; height: 46px; padding: 0 40px 0 38px; border: 1px solid var(--ink); background: var(--alt); color: var(--ink); font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; outline: none; }
.sw-input:focus { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.sw-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; }

.btn-sw-primary { width: 100%; height: 46px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-sw-secondary { width: 100%; height: 42px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

.sw-scanner { border: 1px dashed var(--ink); padding: 18px; text-align: center; margin-bottom: 14px; background: var(--alt); }
.sw-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border: 1px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.sw-laser { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); animation: scanLine 1.8s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.sw-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--ink); background: var(--alt); font-size: 12px; font-weight: 700; }
.sw-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.sw-divider::before, .sw-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sw-pkg-list { border-top: 1px solid var(--ink); }
.sw-pkg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; background: var(--white); border: 1px solid var(--line); border-top: none; }
.sw-pkg-row.popular { border-left: 3px solid var(--ink); }

.sw-faq-item { background: var(--white); border: 1px solid var(--line); margin-bottom: 6px; }
.sw-faq-btn { width: 100%; background: none; border: none; padding: 12px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sw-faq-item.open .sw-faq-btn i { transform: rotate(180deg); }
.sw-faq-ans { display: none; padding: 0 14px 12px; font-size: 12px; color: var(--sub); }
.sw-faq-item.open .sw-faq-ans { display: block; }

.sw-card { background: var(--white); border: 1px solid var(--ink); padding: 22px 20px; }
.sw-index { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; display: block; }
.sw-hero-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sw-hero-sub { font-size: 12.5px; color: var(--sub); margin-bottom: 16px; }
.sw-meta-box { border: 1px solid var(--line); background: var(--alt); padding: 12px 14px; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sw-meta-row { display: flex; justify-content: space-between; align-items: center; }
.sw-meta-row span:first-child { color: var(--sub); }
.sw-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }
.sw-footer { text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); padding-top: 20px; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,0.72); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-sw { width: 100%; max-width: 360px; background: var(--white); border: 2px solid var(--ink); padding: 20px; }
.qris-box { border: 1px solid var(--line); background: var(--alt); padding: 12px; text-align: center; margin: 12px 0; }
.qris-box img { width: 145px; height: 145px; object-fit: contain; margin: 6px auto; display: block; }
