/* ==========================================================================
   LOGINPAGE 16 - SPATIAL GLASS (Centered Spatial Card + Floating Bottom Dock)
   ========================================================================== */
:root {
  --bg-deep: #070b18;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-soft: rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --sky: #38bdf8;
  --mint: #34d399;
  --rose: #fb7185;
  --amber: #fbbf24;
  --text-main: #ffffff;
  --text-sub: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "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: var(--bg-deep); color: var(--text-main);
  min-height: 100vh; min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; justify-content: center; padding: 16px 16px 92px;
}

.spatial-canvas {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #101b3b 0%, #070b18 70%);
}
.spatial-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-a { width: 340px; height: 340px; background: radial-gradient(circle, #3b82f6, transparent 70%); top: -80px; left: -60px; }
.orb-b { width: 320px; height: 320px; background: radial-gradient(circle, #a855f7, transparent 70%); top: 28%; right: -90px; animation-delay: -5s; }
.orb-c { width: 300px; height: 300px; background: radial-gradient(circle, #06b6d4, transparent 70%); bottom: -90px; left: 20%; animation-delay: -9s; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(24px, -22px) scale(1.08); } }

#app-loader {
  position: fixed; inset: 0; z-index: 9999; background: #070b18;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 0.35s, visibility 0.35s;
}
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.glass-spinner {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.16);
  border-top-color: #fff; border-right-color: var(--sky); animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spatial-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 0 auto; }
.spatial-wrap.centered { min-height: calc(100vh - 108px); display: flex; flex-direction: column; justify-content: center; }

.island-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 16px; border-radius: 9999px;
  background: rgba(15, 23, 42, 0.65); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 14px 30px rgba(0, 0, 0, 0.35); backdrop-filter: blur(24px);
}
.island-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.island-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.island-icon img { width: 22px; height: 22px; object-fit: contain; }
.island-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-sub { font-size: 10.5px; color: var(--text-sub); }
.island-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px;
  background: rgba(52, 211, 153, 0.16); border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.island-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

.glass-panel {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 28px;
  padding: 24px 20px; box-shadow: var(--glass-highlight), 0 24px 50px -12px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(165%); -webkit-backdrop-filter: blur(28px) saturate(165%);
}
.glass-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: #e0f2fe; margin-bottom: 10px;
}
.hero-heading { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.hero-desc { font-size: 12.5px; color: var(--text-sub); margin-bottom: 18px; }

.ios-segment {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border-radius: 16px; background: rgba(0,0,0,0.28); border: 1px solid var(--glass-border-soft); margin-bottom: 16px;
}
.ios-seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px;
  border: none; border-radius: 12px; background: transparent; color: var(--text-sub);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.ios-seg-btn.active { background: rgba(255,255,255,0.22); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.22); }

.glass-field { margin-bottom: 12px; }
.glass-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.glass-input-box { position: relative; display: flex; align-items: center; }
.glass-input-icon { position: absolute; left: 14px; color: var(--text-sub); font-size: 14px; pointer-events: none; }
.glass-input {
  width: 100%; height: 46px; padding: 0 42px 0 40px; border-radius: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border-soft);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; outline: none;
}
.glass-input:focus { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.45); box-shadow: 0 0 0 3px rgba(56,189,248,0.22); }
.glass-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--text-sub); cursor: pointer; padding: 6px; }

.btn-glass-primary {
  width: 100%; height: 46px; border: none; border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%); color: #0f172a;
  font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(56,189,248,0.28);
}
.btn-glass-secondary {
  width: 100%; height: 42px; border-radius: 14px; background: rgba(255,255,255,0.09);
  border: 1px solid var(--glass-border-soft); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-glass-danger {
  width: 100%; height: 44px; border-radius: 14px; background: rgba(251,113,133,0.18);
  border: 1px solid rgba(251,113,133,0.4); color: #fecdd3; font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.glass-scanner { background: rgba(0,0,0,0.25); border: 1px dashed rgba(255,255,255,0.3); border-radius: 18px; padding: 18px; text-align: center; margin-bottom: 12px; }
.glass-viewfinder {
  position: relative; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 16px;
  background: rgba(56,189,248,0.14); border: 1px solid rgba(56,189,248,0.4);
  display: flex; align-items: center; justify-content: center; color: var(--sky); font-size: 26px; overflow: hidden;
}
.glass-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--sky); animation: laserMove 2s infinite; }
@keyframes laserMove { 0%, 100% { top: 8px; } 50% { top: 52px; } }
.glass-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: rgba(251,113,133,0.18); border: 1px solid rgba(251,113,133,0.4); color: #fecdd3; font-size: 12px; font-weight: 600; }
.glass-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 11px; color: var(--text-muted); }
.glass-divider::before, .glass-divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-border-soft); }

.glass-meta-box { background: rgba(0,0,0,0.24); border: 1px solid var(--glass-border-soft); border-radius: 14px; padding: 11px 14px; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.glass-meta-row { display: flex; justify-content: space-between; align-items: center; }
.glass-meta-row span:first-child { color: var(--text-sub); display: inline-flex; align-items: center; gap: 6px; }
.glass-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }

/* Floating Bottom Spatial Dock */
.spatial-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(15, 23, 42, 0.78); border: 1px solid var(--glass-border); border-radius: 9999px;
  backdrop-filter: blur(24px); box-shadow: var(--glass-highlight), 0 16px 40px rgba(0,0,0,0.55);
}
.dock-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: none; border-radius: 9999px;
  background: transparent; color: var(--text-sub); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.dock-btn.active { background: rgba(255,255,255,0.2); color: #fff; }
.dock-btn i { font-size: 14px; }

/* Spatial Slide-Up Sheet Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(12px); display: none; align-items: flex-end; justify-content: center; padding: 12px;
}
@media (min-width: 600px) { .modal-backdrop { align-items: center; } }
.modal-backdrop.open { display: flex; }
.modal-glass {
  width: 100%; max-width: 440px; max-height: 82vh; overflow-y: auto;
  background: rgba(18, 26, 48, 0.94); border: 1px solid var(--glass-border);
  border-radius: 26px; padding: 20px; box-shadow: var(--glass-highlight), 0 24px 60px rgba(0,0,0,0.65);
}

.glass-pkg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 380px) { .glass-pkg-list { grid-template-columns: 1fr; } }
.glass-pkg-card {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border-soft); border-radius: 18px;
  padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.glass-pkg-card.popular { background: linear-gradient(160deg, rgba(56,189,248,0.22), rgba(168,85,247,0.16)); border-color: rgba(255,255,255,0.35); }
.pkg-badge-pill { font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; background: rgba(255,255,255,0.16); display: inline-block; width: fit-content; }
.pkg-card-name { font-size: 13px; font-weight: 700; }
.pkg-card-price { font-size: 18px; font-weight: 800; }
.pkg-card-meta { font-size: 11px; color: var(--text-sub); }

.glass-faq-item { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border-soft); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.glass-faq-btn { width: 100%; background: none; border: none; padding: 12px 14px; color: #fff; font-family: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.glass-faq-item.open .glass-faq-btn i { transform: rotate(180deg); }
.glass-faq-ans { display: none; padding: 0 14px 12px; font-size: 11.5px; color: var(--text-sub); }
.glass-faq-item.open .glass-faq-ans { display: block; }

.qris-white { background: #fff; color: #0f172a; border-radius: 16px; padding: 12px; text-align: center; margin: 12px 0; }
.qris-white img { width: 145px; height: 145px; object-fit: contain; margin: 6px auto; display: block; }
.spatial-footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 16px; }
