/* Popup verifikasi + NDA (assets/js/gate.js). Tema gelap navy + aksen emas brand. */
.tg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(3, 8, 20, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: Inter, system-ui, "Segoe UI", sans-serif; color: rgba(255,255,255,.86); }
.tg * { box-sizing: border-box; }
.tg-card { width: min(900px, 100%); background: linear-gradient(160deg, #0f1e3d, #0a1428); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.tg-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.tg-lock { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(246,180,0,.14); color: #ffcc33; font-size: 24px; }
.tg-head h2 { margin: 0 0 4px; font: 700 1.45rem/1.2 "Space Grotesk", Inter, sans-serif; color: #fff; }
.tg-head p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.6); }
.tg-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
.tg-view { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #050b18; border: 1px solid rgba(255,255,255,.1); }
.tg-view video, .tg-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-view video { transform: scaleX(-1); }
.tg-view [hidden] { display: none; }
.tg-msg { position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0; text-align: center; font-size: .84rem; background: rgba(5,11,24,.78); padding: 8px 10px; border-radius: 10px; }
.tg-msg:empty { display: none; }
.tg-camact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tg-camact [hidden] { display: none !important; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 .9rem/1 Inter, sans-serif; padding: 11px 16px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); }
.tg-btn:hover { background: rgba(255,255,255,.18); }
.tg-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tg-gold { background: #f6b400; color: #1b1300; }
.tg-gold:hover { background: #ffcc33; }
.tg-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.tg-fields { display: flex; flex-direction: column; gap: 13px; }
.tg-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.78); }
.tg-fields input:not([type=checkbox]) { font: 500 1rem/1.3 Inter, sans-serif; color: #fff; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; width: 100%; }
.tg-fields input:focus { outline: none; border-color: #f6b400; }
.tg-fields input::placeholder { color: rgba(255,255,255,.38); }
.tg-fields .bad { border-color: #ff7a6b !important; }
.tg-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: rgba(255,255,255,.66) !important; line-height: 1.45; font-size: .84rem !important; }
.tg-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #f6b400; flex: none; }
.tg-check a { color: #ffcc33; font-weight: 600; }
.tg-check.bad span { color: #ff9b8f; }
.tg-go { padding: 15px; font-size: 1rem; margin-top: 2px; }
.tg-err { margin: 0; min-height: 1.3em; font-size: .86rem; color: #ff9b8f; }
.tg-hp { position: absolute; left: -9999px; }

.tg-nda { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 20px; background: rgba(3,8,20,.7); }
.tg-nda[hidden] { display: none; }
.tg-nda-card { width: min(720px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: #0f1e3d; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 26px; }
.tg-nda-card h3 { margin: 0 0 14px; font: 700 1.2rem/1.25 "Space Grotesk", Inter, sans-serif; color: #fff; }
.tg-nda-body { overflow-y: auto; padding-right: 8px; margin-bottom: 18px; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.78); }
.tg-nda-body h4 { margin: 16px 0 4px; color: #ffcc33; font-size: .92rem; }
.tg-nda-body p { margin: 0 0 8px; }
.tg-nda-body ul { margin: 0 0 8px; padding-left: 20px; }
.tg-nda-card .tg-btn { align-self: flex-end; }

@media (max-width: 720px) {
  .tg { place-items: start center; padding: 12px; }
  .tg-card { padding: 20px; border-radius: 18px; }
  .tg-grid { grid-template-columns: 1fr; gap: 18px; }
  .tg-view { aspect-ratio: 4 / 3; }
}
