/* ==========================================================================
   LOGINPAGE 18 - HOTEL DIGITAL KEYCARD (Concierge Tabbed Single-Screen App)
   ========================================================================== */
:root {
  --bg-emerald: #061816;
  --surface-teal: rgba(11, 36, 32, 0.9);
  --surface-dark: rgba(5, 19, 17, 0.8);
  --border-gold: rgba(229, 193, 123, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --gold-light: #f3d999;
  --gold-main: #d4af63;
  --gold-grad: linear-gradient(135deg, #f7e3b0 0%, #d4af63 55%, #b3863a 100%);
  --rose: #fb7185;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --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;
}
*, *::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-emerald);
  background-image: radial-gradient(circle at 50% 0%, rgba(212,175,99,0.16) 0%, transparent 55%);
  color: var(--text-main); min-height: 100vh; min-height: 100dvh; line-height: 1.5; padding-bottom: 76px;
}
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-emerald); 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; }
.hotel-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(212,175,99,0.2); border-top-color: var(--gold-light); animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hotel-shell { width: 100%; max-width: 450px; margin: 0 auto; padding: 18px 16px 24px; }
.hotel-shell.centered { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 20px; }

.hotel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hotel-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hotel-emblem { width: 40px; height: 40px; border-radius: 12px; background: rgba(212,175,99,0.12); border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hotel-emblem img { width: 24px; height: 24px; object-fit: contain; }
.hotel-title { font-family: var(--font-serif); font-size: 15.5px; font-weight: 700; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotel-sub { font-size: 11px; color: var(--text-muted); }
.hotel-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: #6ee7b7; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.hotel-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.keycard {
  position: relative; background: linear-gradient(135deg, #0f332e 0%, #071e1b 55%, #123b35 100%);
  border: 1px solid rgba(229,193,123,0.45); border-radius: 20px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 20px 42px -12px rgba(0,0,0,0.65); overflow: hidden;
}
.keycard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.keycard-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 12.5px; font-weight: 700; }
.keycard-tier { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--bg-emerald); background: var(--gold-grad); padding: 3px 9px; border-radius: 9999px; }
.keycard-code-lbl { font-size: 9px; letter-spacing: 0.12em; color: var(--gold-main); }
.keycard-code-val { font-family: var(--font-mono); font-size: 18px; font-weight: 800; letter-spacing: 0.1em; color: #fff; margin: 2px 0 12px; }
.keycard-bottom { display: flex; justify-content: space-between; font-size: 11px; }

.hotel-panel { background: var(--surface-teal); border: 1px solid var(--border-gold); border-radius: 20px; padding: 18px; backdrop-filter: blur(18px); }
.hotel-pane { display: none; }
.hotel-pane.active { display: block; }

.hotel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 14px; }
.hotel-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(--text-muted); font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.hotel-tab-btn.active { background: rgba(212,175,99,0.2); color: var(--gold-light); border: 1px solid rgba(212,175,99,0.35); }

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

.btn-gold { width: 100%; height: 44px; border: none; border-radius: 10px; background: var(--gold-grad); color: #061816; 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; }
.btn-emerald-outline { width: 100%; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-gold); color: var(--gold-light); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-hotel-danger { width: 100%; height: 44px; border-radius: 10px; background: rgba(251,113,133,0.16); border: 1px solid rgba(251,113,133,0.38); color: #fecdd3; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

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

.hotel-pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .hotel-pkg-grid { grid-template-columns: 1fr; } }
.hotel-pkg-card { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.hotel-pkg-card.popular { border-color: var(--gold-main); }
.hotel-pkg-badge { font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; background: rgba(212,175,99,0.18); color: var(--gold-light); display: inline-block; width: fit-content; }

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

.hotel-meta-box { background: var(--surface-dark); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 11px 14px; font-size: 11.5px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hotel-meta-row { display: flex; justify-content: space-between; align-items: center; }
.hotel-meta-row span:first-child { color: var(--text-muted); }
.hotel-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }

/* Bottom Concierge App Bar */
.hotel-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(6, 24, 22, 0.94); border-top: 1px solid var(--border-gold);
  backdrop-filter: blur(16px); display: flex; justify-content: center;
}
.hotel-bottom-inner { width: 100%; max-width: 450px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px; }
.hotel-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px;
  border: none; background: none; color: var(--text-muted); font-family: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.hotel-nav-btn.active { color: var(--gold-light); }
.hotel-nav-btn i { font-size: 16px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(6,24,22,0.78); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-hotel { width: 100%; max-width: 360px; background: #0b2420; border: 1px solid var(--border-gold); border-radius: 20px; padding: 20px; }
.qris-white { background: #fff; color: #061816; 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; }
.hotel-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; background: rgba(212,175,99,0.12); border: 1px solid var(--border-gold); color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.hotel-footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 14px; }
