/* ═══════════════════════════════════════════════════════════════
   seeker_panel — design system
   Warm-dark, instrument-panel aesthetic. No blue/purple.
   Fonts: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg0: #131009;
  --bg1: #181409;
  --bg1: #18140D;
  --panel: #1D1811;
  --panel2: #241E14;
  --line: #332B1D;
  --line2: #4A3F2B;
  --text: #EDE5D2;
  --muted: #A69A81;
  --faint: #71664F;
  --amber: #D08B3C;
  --amber-hi: #EBA75C;
  --rust: #B4552D;
  --olive: #8C9A6B;
  --danger: #C45941;
  --warn: #D6A844;
  --radius: 10px;
  --font-d: 'Space Grotesk', system-ui, sans-serif;
  --font-b: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-m: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* default ukuran ikon (SVG tanpa atribut width) */
svg:not([width]) { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

::selection { background: rgba(208, 139, 60, .35); }
a { color: var(--amber-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.mono { font-family: var(--font-m); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ── Labels & kickers ── */
.kicker {
  font-family: var(--font-m); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--amber); }
.sec-num {
  font-family: var(--font-m); font-size: 11px; color: var(--faint);
  letter-spacing: .18em;
}

/* ── Layout ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section { position: relative; z-index: 2; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-m); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 8px;
  border: 1px solid var(--line2); background: transparent; color: var(--text);
  cursor: pointer; transition: all .16s ease; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { border-color: var(--amber); color: var(--amber-hi); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line2); color: var(--text); }
.btn-primary {
  background: var(--amber); border-color: var(--amber); color: #1A1207; font-weight: 600;
}
.btn-primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #1A1207; }
.btn-danger { border-color: rgba(196, 89, 65, .5); color: #E0876F; }
.btn-danger:hover { border-color: var(--danger); color: #F09B84; background: rgba(196, 89, 65, .08); }
.btn-ghost { border-color: transparent; }
.btn-sm { padding: 7px 13px; font-size: 11.5px; }
.btn-icon { padding: 8px; }
.btn svg { width: 15px; height: 15px; }

/* ── Cards & panels ── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card.ticked { padding: 26px; }
.card.ticked::before, .card.ticked::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.card.ticked::before { top: -1px; left: -1px; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); border-radius: var(--radius) 0 0 0; }
.card.ticked::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); border-radius: 0 0 var(--radius) 0; }

.card-hover { transition: border-color .16s ease, transform .16s ease; }
.card-hover:hover { border-color: var(--line2); transform: translateY(-2px); }

/* ── Chips & status ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted);
}
.chip.role-free { color: var(--muted); }
.chip.role-vip { color: var(--warn); border-color: rgba(214, 168, 68, .45); background: rgba(214, 168, 68, .08); }
.chip.role-owner { color: var(--amber-hi); border-color: rgba(208, 139, 60, .5); background: rgba(208, 139, 60, .1); }
.chip.on { color: var(--olive); border-color: rgba(140, 154, 107, .45); }
.chip.off { color: var(--danger); border-color: rgba(196, 89, 65, .4); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--olive); box-shadow: 0 0 8px rgba(140, 154, 107, .7); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }
@keyframes pulse { 50% { opacity: .45; } }

/* ── Tables ── */
.tbl { width: 100%; border-collapse: collapse; font-family: var(--font-m); font-size: 12.5px; }
.tbl th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line2);
}
.tbl td { padding: 11px 12px; border-bottom: 1px dotted var(--line); color: var(--muted); vertical-align: middle; }
.tbl td.strong { color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(208, 139, 60, .03); }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field label .req { color: var(--rust); }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg0); border: 1px solid var(--line2); border-radius: 8px;
  color: var(--text); font-family: var(--font-m); font-size: 13px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(208, 139, 60, .12); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A69A81' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ── Progress bar ── */
.bar { height: 6px; background: var(--bg0); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .4s ease; }
.bar > i.hot { background: var(--danger); }
.bar > i.mid { background: var(--warn); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 16, 9, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 62px; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 700; font-size: 16.5px; color: var(--text); letter-spacing: -.01em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--amber); }
.brand .ver { font-family: var(--font-m); font-size: 10px; color: var(--faint); border: 1px solid var(--line2); padding: 2px 7px; border-radius: 5px; letter-spacing: .1em; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 6px 2px; }
.nav-links a:hover { color: var(--amber-hi); text-decoration: none; }
.nav-links a.active { color: var(--amber); border-bottom: 1px solid var(--amber); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* user menu */
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); object-fit: cover; background: var(--panel2); }
.avatar.placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--font-m); font-size: 12px; color: var(--amber); }

/* ── Hero (landing) ── */
.hero { padding: 96px 0 72px; position: relative; }
#bg3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.025em; margin: 18px 0 20px; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { color: var(--muted); font-size: 16.5px; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 720px; background: rgba(29, 24, 17, .6); backdrop-filter: blur(6px); }
.hero-stats .st { flex: 1; padding: 18px 22px; border-right: 1px solid var(--line); }
.hero-stats .st:last-child { border-right: none; }
.hero-stats .st b { display: block; font-family: var(--font-d); font-size: 24px; color: var(--text); }
.hero-stats .st span { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(24, 20, 13, .75); overflow: hidden; position: relative; z-index: 2; }
.ticker-inner { display: flex; gap: 44px; padding: 11px 0; white-space: nowrap; font-family: var(--font-m); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); animation: tick 36s linear infinite; width: max-content; }
.ticker-inner b { color: var(--amber); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 84px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); }
.sec-head .sec-num { white-space: nowrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feat-card { padding: 24px; }
.feat-card .ico {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; color: var(--amber);
  margin-bottom: 16px; background: rgba(208, 139, 60, .06);
}
.feat-card .ico svg { width: 18px; height: 18px; }
.feat-card h3 { font-size: 16px; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 13.5px; }

/* steps */
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px dotted var(--line); }
.step:last-child { border-bottom: 1px dotted var(--line); }
.step .n { font-family: var(--font-d); font-size: 30px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--amber); line-height: 1; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; max-width: 560px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.price-card .tag { font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; display: block; }
.price-card .amount { font-family: var(--font-d); font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 400; font-family: var(--font-m); }
.price-card ul { list-style: none; margin: 20px 0 24px; }
.price-card ul li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; color: var(--muted); font-size: 13.5px; border-bottom: 1px dotted var(--line); }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li svg { width: 14px; height: 14px; color: var(--olive); flex-shrink: 0; transform: translateY(2px); }
.price-card ul li.no svg { color: var(--danger); }
.price-card.vip-card { border-color: rgba(208, 139, 60, .45); background: linear-gradient(180deg, rgba(208, 139, 60, .07), var(--panel)); }
.price-card.vip-card .tag { color: var(--amber); }

/* notice / disclaimer */
.notice {
  border: 1px dashed var(--line2); border-radius: var(--radius);
  background: rgba(214, 168, 68, .04);
  padding: 20px 24px; color: var(--muted); font-size: 13.5px;
  display: flex; gap: 14px; align-items: flex-start;
}
.notice svg { width: 18px; height: 18px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.notice b { color: var(--warn); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0; position: relative; z-index: 2; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.foot-inner .mono { font-size: 11.5px; color: var(--faint); letter-spacing: .08em; }

/* ═══════════════════════════════════════════
   App (dashboard)
   ═══════════════════════════════════════════ */

.app-main { max-width: 1120px; margin: 0 auto; padding: 30px 28px 80px; min-height: calc(100vh - 62px); }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.view-head h1 { font-size: 26px; }
.view-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.tile { padding: 18px 20px; }
.tile .lbl { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.tile .val { font-family: var(--font-d); font-size: 26px; font-weight: 700; color: var(--text); }
.tile .val small { font-size: 13px; color: var(--muted); font-weight: 400; font-family: var(--font-m); }
.tile .foot { margin-top: 10px; font-family: var(--font-m); font-size: 11px; color: var(--muted); }

.block { margin-bottom: 22px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-size: 16.5px; }
.block-head .hint { font-family: var(--font-m); font-size: 11px; color: var(--faint); letter-spacing: .08em; }

/* template grid */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.tpl-card { padding: 16px; cursor: pointer; text-align: left; color: var(--text); font: inherit; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); transition: all .15s ease; position: relative; }
.tpl-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.tpl-card.sel { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(208, 139, 60, .13); }
.tpl-card .ico { color: var(--amber); margin-bottom: 12px; }
.tpl-card .ico svg { width: 20px; height: 20px; }
.tpl-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.tpl-card p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.tpl-card .meta { position: absolute; top: 12px; right: 14px; font-family: var(--font-m); font-size: 9.5px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.tpl-card.sel .meta { color: var(--amber); }

/* session card */
.sess-card { padding: 20px 22px; margin-bottom: 14px; }
.sess-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sess-top h3 { font-size: 15.5px; margin-right: auto; }
.sess-url {
  display: flex; align-items: center; gap: 10px; background: var(--bg0);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}
.sess-url code { font-family: var(--font-m); font-size: 13px; color: var(--amber-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sess-metrics { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.sess-metrics .m .v { font-family: var(--font-d); font-size: 20px; font-weight: 600; color: var(--text); }
.sess-metrics .m .k { font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sess-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.ttl-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ttl-row .bar { flex: 1; }
.ttl-row .mono { font-size: 12px; color: var(--warn); white-space: nowrap; }

/* captures table */
.cap-wrap { background: var(--bg0); border: 1px solid var(--line); border-radius: 8px; max-height: 380px; overflow: auto; }
.cap-empty { padding: 34px; text-align: center; color: var(--faint); font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; }

/* ── Modal detail hasil track (lengkap seperti bot Telegram) ── */
.capd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.capd-row { display: flex; gap: 12px; padding: 8px 2px; border-bottom: 1px dotted var(--line); align-items: baseline; }
.capd-k { width: 118px; flex-shrink: 0; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.capd-v { font-size: 13.5px; word-break: break-word; }
@media (max-width: 640px) {
  .capd-grid { grid-template-columns: 1fr; }
}

/* logs */
.locked { color: var(--faint); display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.locked svg { width: 13px; height: 13px; }

/* vip page */
.vip-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.qris-wrap { text-align: center; padding: 16px; background: #fff; border-radius: 10px; width: 230px; margin: 0 auto; }
.qris-wrap img { width: 100%; display: block; }
.inv-status { font-family: var(--font-m); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.inv-status.pending { color: var(--warn); }
.inv-status.paid { color: var(--olive); }
.inv-status.expired { color: var(--danger); }

/* owner */
.own-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.own-tabs button {
  font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: none; color: var(--muted); padding: 11px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.own-tabs button:hover { color: var(--text); }
.own-tabs button.active { color: var(--amber); border-bottom-color: var(--amber); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(10, 8, 4, .78); backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; position: relative; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px 24px; }
.modal-x { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.modal-x:hover { color: var(--danger); }

/* toast */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--text);
  max-width: 360px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  animation: slidein .22s ease;
}
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--olive); }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } }

/* login page */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 26px; position: relative; z-index: 2; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-card h1 { font-size: 22px; margin: 14px 0 8px; }
.auth-card p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.gbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--text); color: #171207; border: none; border-radius: 8px;
  padding: 12px; font-family: var(--font-b); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.gbtn:hover { background: #fff; }
.gbtn:disabled { opacity: .5; cursor: wait; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-family: var(--font-m); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 22px; text-align: center; }
.auth-foot a { font-family: var(--font-m); font-size: 12px; color: var(--muted); }
.auth-foot a:hover { color: var(--amber-hi); }

/* empty state */
.empty { border: 1px dashed var(--line2); border-radius: var(--radius); padding: 44px 24px; text-align: center; color: var(--faint); }
.empty .mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.empty p { font-size: 13.5px; color: var(--muted); max-width: 380px; margin: 0 auto 18px; }

/* skeleton/loading */
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--line2) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.1s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

.spinner { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* countdown number */
.cdown { font-family: var(--font-m); font-variant-numeric: tabular-nums; }

/* responsive */
@media (max-width: 980px) {
  .grid4, .tiles, .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .vip-layout, .price-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .st { min-width: 46%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap, .app-main { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding: 0 18px; gap: 14px; }
  .nav-links { display: none; }
  .grid2, .grid3, .grid4, .tiles, .tpl-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero-stats .st { min-width: 100%; }
  .sec { padding: 60px 0; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  .dot.ok { animation: none; }
  * { transition: none !important; }
}

/* ═══════════════════════════════════════════
   Background custom (video / foto) + overlay
   Overlay dibuat RINGAN (bukan hitam pekat) supaya latar custom
   terlihat jelas; keterbacaan teks dijaga lewat kartu solid +
   teks-shadow, bukan dengan menggelapkan seluruh layar.
   ═══════════════════════════════════════════ */
.bg-media-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-media.bg-img {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  animation: bgZoom 26s ease-in-out infinite alternate;
}
@keyframes bgZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.bg-overlay { position: absolute; inset: 0; background: rgba(19, 16, 9, .32); }
.bg-overlay.strong { background: rgba(19, 16, 9, .52); }
/* jaga keterbacaan: vignette tipis di tepi + sedikit di bawah utk area footer */
.bg-overlay::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(19, 16, 9, .34), transparent 26%),
    radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(19, 16, 9, .30) 100%);
}
body.has-bg-media { background: var(--bg0); }
/* teks di atas latar tetap terbaca meski overlay ringan */
body.has-bg-media .hero h1,
body.has-bg-media .hero .lead,
body.has-bg-media .hero .kicker,
body.has-bg-media .sec-head h2,
body.has-bg-media .step h3,
body.has-bg-media .step p,
body.has-bg-media .card h3,
body.has-bg-media .feat-card p,
body.has-bg-media .price-card .amount,
body.has-bg-media .feat-card h3,
body.has-bg-media .brand {
  text-shadow: 0 1px 3px rgba(19, 16, 9, .65), 0 0 14px rgba(19, 16, 9, .35);
}
/* kartu diberi dasar lebih pekat sedikit saat latar custom aktif */
body.has-bg-media .card, body.has-bg-media .notice, body.has-bg-media .empty {
  background: rgba(28, 23, 14, .92);
}
/* konten di atas background */
.nav, .hero, .ticker, .sec, footer { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════
   Loading screen
   ═══════════════════════════════════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(208, 139, 60, .07), transparent 60%),
    var(--bg0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.pl-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-box { position: relative; width: min(360px, 82vw); text-align: center; padding: 34px 26px; }
/* sudut ticked */
.pl-box::before, .pl-box::after { content: ''; position: absolute; width: 16px; height: 16px; }
.pl-box::before { top: 0; left: 0; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.pl-box::after { bottom: 0; right: 0; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.pl-mark {
  font-family: var(--font-d); font-size: 44px; font-weight: 700; color: var(--amber);
  text-shadow: 0 0 24px rgba(208, 139, 60, .45);
  animation: plPulse 1.6s ease-in-out infinite;
}
@keyframes plPulse { 50% { opacity: .55; text-shadow: 0 0 10px rgba(208, 139, 60, .25); } }
.pl-brand { font-family: var(--font-m); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.pl-ring {
  width: 74px; height: 74px; margin: 22px auto 18px; border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 0deg, transparent 0 70%, var(--amber) 86%, transparent 100%) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: plSpin 1.15s linear infinite;
}
.pl-ring::after {
  content: ''; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px dashed var(--line2);
  animation: plSpinRev 3.4s linear infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plSpinRev { to { transform: rotate(-360deg); } }
.pl-bar { height: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rust), var(--amber), var(--amber-hi)); border-radius: 99px; transition: width .25s ease; }
.pl-meta { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.pl-meta [data-pl-status] { color: var(--amber); }

/* ═══════════════════════════════════════════
   Scroll reveal + progress
   ═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--rust), var(--amber));
  transform: scaleX(0); transform-origin: 0 0; pointer-events: none;
}
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22, .7, .3, 1), transform .6s cubic-bezier(.22, .7, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }
.app-main [data-reveal] { transform: translateY(14px); }

/* ═══════════════════════════════════════════
   Owner — Tampilan (upload background)
   ═══════════════════════════════════════════ */
.drop-zone {
  border: 1.5px dashed var(--line2); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; color: var(--muted);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--amber); background: rgba(208, 139, 60, .05); }
.drop-zone .dz-ico { font-size: 22px; color: var(--amber); margin-bottom: 10px; }
.drop-zone .dz-main { font-family: var(--font-m); font-size: 12.5px; color: var(--text); letter-spacing: .06em; }
.drop-zone .dz-sub { font-size: 11.5px; color: var(--faint); margin-top: 6px; font-family: var(--font-m); }
.bg-preview {
  border: 1px solid var(--line2); border-radius: var(--radius);
  height: 170px; background-size: cover; background-position: center;
  position: relative; margin-top: 14px;
}
.bg-preview .bp-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(19, 16, 9, .8); border: 1px solid var(--line2);
  color: var(--amber); padding: 3px 9px; border-radius: 5px;
}
.upl-bar { margin-top: 12px; display: none; }
.upl-bar.show { display: block; }
.bg-preview-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-style: dashed; color: var(--faint); font-size: 11.5px; letter-spacing: .1em;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(208, 139, 60, .03) 10px 20px);
}
video.bg-preview { width: 100%; background: var(--bg0); }
/* label tombol file sebagai tombol utuh */
label.btn input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; }
label.btn svg { width: 14px; height: 14px; }
