/* ==========================================================================
   LOGINPAGE 28 - PREMIUM EXECUTIVE LOUNGE (Seri Premium)
   Dark/Light Switcher + ID/EN Toggle + Hero Slider + Live Telemetry + FA Pro
   ========================================================================== */
:root {
  --bg: #08090c;
  --surface: rgba(18, 20, 27, 0.9);
  --surface-alt: rgba(10, 11, 16, 0.85);
  --border: rgba(212, 175, 55, 0.28);
  --border-soft: rgba(255, 255, 255, 0.08);
  --gold-light: #fef08a;
  --gold: #d4af37;
  --gold-deep: #a16207;
  --gold-grad: linear-gradient(135deg, #fef08a 0%, #d4af37 55%, #9a6b16 100%);
  --emerald: #10b981;
  --rose: #f43f5e;
  --ink: #f8fafc;
  --sub: #94a3b8;
  --muted: #64748b;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-alt: #f1ede4;
  --border: rgba(161, 98, 7, 0.25);
  --border-soft: rgba(15, 23, 42, 0.08);
  --ink: #1c1917;
  --sub: #57534e;
  --muted: #78716c;
}

*, *::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.5; transition: background 0.25s, color 0.25s;
  background-image: radial-gradient(circle at 20% 0%, rgba(212,175,55,0.12) 0%, transparent 50%);
}

#app-loader { position: fixed; inset: 0; z-index: 9999; background: #08090c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 0.35s, visibility 0.35s; }
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.prem-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(212,175,55,0.2); border-top-color: var(--gold); animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* Top Bar with Controls */
.prem-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; margin-bottom: 18px; backdrop-filter: blur(18px);
}
.prem-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.prem-logo { width: 40px; height: 40px; border-radius: 12px; background: rgba(212,175,55,0.14); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prem-logo img { width: 24px; height: 24px; object-fit: contain; }
.prem-title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prem-sub { font-size: 11px; color: var(--sub); }

.prem-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-soft);
  background: var(--surface-alt); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.prem-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.3); color: #34d399; font-size: 11px; font-weight: 700; }
.prem-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

/* Main 2-Column Executive Grid */
.prem-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; margin-bottom: 20px; }
@media (min-width: 820px) { .prem-grid { grid-template-columns: 420px minmax(0,1fr); align-items: start; } }

.prem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px;
  backdrop-filter: blur(18px); box-shadow: 0 20px 45px -18px rgba(0,0,0,0.55);
}

/* Luxury Photo Slider */
.prem-slider {
  position: relative; width: 100%; height: 220px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 14px; background: #0f1117;
}
@media (min-width: 820px) { .prem-slider { height: 250px; } }
.prem-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease, transform 6s ease; transform: scale(1.04); }
.prem-slide.active { opacity: 1; transform: scale(1); }
.prem-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prem-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,0.2) 0%, rgba(8,9,12,0.88) 100%); z-index: 2; }
.prem-slide-overlay { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.prem-slide-cap { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.92); text-shadow: 0 2px 8px rgba(0,0,0,0.65); }
.prem-dots { display: flex; gap: 6px; }
.prem-dot-btn { width: 20px; height: 5px; border-radius: 9999px; border: none; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s; }
.prem-dot-btn.active { width: 32px; background: var(--gold); }

/* Telemetry 3-Tile Strip */
.prem-telemetry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tele-tile {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 12px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tele-icon { width: 32px; height: 32px; border-radius: 9px; background: rgba(212,175,55,0.14); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; font-size: 14px; }
.tele-val { font-family: var(--font-mono); font-size: 14px; font-weight: 800; }
.tele-lbl { font-size: 10.5px; color: var(--sub); }

/* Auth Card */
.greeting-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; color: var(--gold); font-weight: 700; }
.prem-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-alt); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 14px; }
.prem-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: none; border-radius: 9px; background: transparent; color: var(--sub); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.prem-tab-btn.active { background: var(--gold-grad); color: #08090c; }

.prem-field { margin-bottom: 12px; }
.prem-label { display: block; font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 5px; }
.prem-input-wrap { position: relative; display: flex; align-items: center; }
.prem-input-icon { position: absolute; left: 14px; color: var(--gold); font-size: 14px; pointer-events: none; }
.prem-input { width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 11px; background: var(--surface-alt); border: 1px solid var(--border-soft); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; outline: none; }
.prem-input:focus { border-color: var(--gold); }
.prem-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--sub); cursor: pointer; padding: 6px; }

.btn-prem-gold { width: 100%; height: 46px; border: none; border-radius: 12px; background: var(--gold-grad); color: #08090c; 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(212,175,55,0.25); }
.btn-prem-outline { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 11px; background: transparent; color: var(--gold); 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; }
.btn-prem-danger { width: 100%; height: 44px; border: 1px solid rgba(244,63,94,0.4); border-radius: 11px; background: rgba(244,63,94,0.14); color: #fda4af; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.prem-scanner { background: var(--surface-alt); border: 1px dashed var(--border); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; }
.prem-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 14px; background: rgba(212,175,55,0.12); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 24px; overflow: hidden; }
.prem-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--gold); animation: scanLine 2s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.prem-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: rgba(244,63,94,0.14); border: 1px solid rgba(244,63,94,0.35); color: #fda4af; font-size: 12px; font-weight: 600; }
.prem-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 11px; color: var(--muted); }
.prem-divider::before, .prem-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

/* Packages */
.prem-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .prem-pkg-grid { grid-template-columns: 1fr; } }
.prem-pkg-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.prem-pkg-card.popular { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.12), var(--surface)); }
.prem-pkg-badge { font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; background: rgba(212,175,55,0.16); color: var(--gold); display: inline-block; width: fit-content; }

.prem-faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.prem-faq-btn { width: 100%; background: none; border: none; padding: 11px 14px; color: var(--ink); 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; }
.prem-faq-item.open .prem-faq-btn i { transform: rotate(180deg); color: var(--gold); }
.prem-faq-ans { display: none; padding: 0 14px 12px; font-size: 11.5px; color: var(--sub); }
.prem-faq-item.open .prem-faq-ans { display: block; }

.prem-meta-box { background: var(--surface-alt); border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.prem-meta-row { display: flex; justify-content: space-between; align-items: center; }
.prem-meta-row span:first-child { color: var(--sub); }
.prem-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }
.prem-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: #10b981; color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; box-shadow: 0 10px 24px rgba(16,185,129,0.35); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8,9,12,0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-prem { width: 100%; max-width: 360px; background: #12141b; color: #f8fafc; border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.qris-white { background: #fff; color: #08090c; border-radius: 12px; padding: 12px; text-align: center; margin: 12px 0; }
.qris-white img { width: 145px; height: 145px; object-fit: contain; margin: 6px auto; display: block; }
