/* ==========================================================================
   LOGINPAGE 27 - ANGKRINGAN NIGHT (Warm Lantern & Charcoal Wood)
   ========================================================================== */
:root {
  --bg-wood: #14100d;
  --surface: #1f1915;
  --surface-dark: #100c0a;
  --amber: #f59e0b;
  --amber-light: #fde68a;
  --terracotta: #ea580c;
  --emerald: #10b981;
  --rose: #fb7185;
  --ink: #fef3c7;
  --sub: #d6c7b2;
  --muted: #9a8c7a;
  --border: rgba(245, 158, 11, 0.22);
  --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-wood);
  background-image: radial-gradient(circle at 50% 0%, rgba(245,158,11,0.18) 0%, transparent 55%);
  color: var(--ink); min-height: 100vh; line-height: 1.5;
}
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-wood); 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; }
.ang-spinner { width: 36px; height: 36px; border: 3px solid rgba(245,158,11,0.2); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

.ang-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ang-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ang-logo { width: 42px; height: 42px; border-radius: 12px; background: rgba(245,158,11,0.15); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ang-logo img { width: 24px; height: 24px; object-fit: contain; }
.ang-title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--amber-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ang-sub { font-size: 11px; color: var(--sub); }
.ang-pill { font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; background: rgba(245,158,11,0.14); border: 1px solid var(--border); color: var(--amber-light); flex-shrink: 0; }

.ang-hero {
  position: relative; height: 200px; border-radius: 20px; overflow: hidden; margin-bottom: 14px;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -12px rgba(245,158,11,0.22); background: var(--surface);
}
.ang-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease, transform 6s ease; transform: scale(1.04); }
.ang-slide.active { opacity: 1; transform: scale(1); }
.ang-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ang-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,0.35) 0%, rgba(20,16,13,0.18) 45%, rgba(20,16,13,0.94) 100%); z-index: 2; }
.ang-hero-top { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.ang-hero-bot { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.ang-dots { display: flex; gap: 5px; flex-shrink: 0; }
.ang-dot-btn { width: 18px; height: 5px; border-radius: 9999px; border: none; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.25s; }
.ang-dot-btn.active { width: 28px; background: var(--amber); }

/* Horizontal Menu Highlight Strip */
.menu-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-bottom: 14px; }
.menu-chip {
  flex: 0 0 140px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
.menu-chip i { color: var(--amber); font-size: 15px; }
.menu-chip-name { font-size: 12px; font-weight: 700; color: #fff; }
.menu-chip-price { font-size: 11px; color: var(--amber-light); font-weight: 700; }

.ang-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 18px 40px -15px rgba(0,0,0,0.65); margin-bottom: 14px; }
.ang-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-dark); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.ang-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: none; border-radius: 9px; background: transparent; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ang-tab-btn.active { background: var(--amber); color: #14100d; }

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

.btn-ang-primary { width: 100%; height: 44px; border: none; border-radius: 10px; background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); color: #fff; 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-ang-secondary { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--amber-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-ang-danger { width: 100%; height: 44px; border: 1px solid rgba(251,113,133,0.4); border-radius: 10px; background: rgba(251,113,133,0.15); color: #fecdd3; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.ang-scanner { background: var(--surface-dark); border: 1px dashed var(--border); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; }
.ang-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 14px; background: rgba(245,158,11,0.12); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 24px; overflow: hidden; }
.ang-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--amber); animation: scanLine 2s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.ang-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; }
.ang-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 11px; color: var(--muted); }
.ang-divider::before, .ang-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }

.ang-pkg-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; background: var(--surface-dark); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; margin-bottom: 8px; }
.ang-meta-box { background: var(--surface-dark); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.ang-meta-row { display: flex; justify-content: space-between; align-items: center; }
.ang-meta-row span:first-child { color: var(--muted); }
.ang-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; color: #fff; }
.ang-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; }

.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.4); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20,16,13,0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-ang { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.qris-white { background: #fff; color: #14100d; 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; }
