/* ───────────────────────────────────────────────────────────
   SecureVault — premium dark theme
   ─────────────────────────────────────────────────────────── */
:root {
  --bg:      #070b12;
  --bg2:     #0b1220;
  --glass:   rgba(22, 30, 46, 0.62);
  --stroke:  rgba(255, 255, 255, 0.08);
  --field:   rgba(255, 255, 255, 0.04);
  --text:    #eef3fb;
  --muted:   #93a1b8;
  --accent:  #22d3a6;
  --accent2: #38bdf8;
  --danger:  #f0556a;
  --radius:  20px;
  --ease:    cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ── Site header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px;
  background: rgba(8, 13, 22, 0.62);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.logo-text small { font-size: 11px; color: var(--muted); }
.store-btn {
  flex: none; text-decoration: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 650; color: #04130f;
  padding: 10px 16px; border-radius: 11px;
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(34,211,166,.3);
  transition: transform .18s var(--ease), filter .2s var(--ease), box-shadow .25s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(34,211,166,.42); }
.store-btn:active { transform: scale(.97); }

/* ── Site footer ── */
.site-footer {
  text-align: center;
  padding: 26px 18px 30px;
  border-top: 1px solid var(--stroke);
  background: rgba(8, 13, 22, 0.5);
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 14px 0; }
.foot-link {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
  transition: .2s var(--ease);
}
.foot-link:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(34,211,166,.45); background: rgba(34,211,166,.08); }
.foot-link.wa:hover   { border-color: rgba(37,211,102,.6); color: #25d366; }
.foot-link.tg:hover   { border-color: rgba(56,189,248,.6); color: var(--accent2); }
.foot-copy { font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 480px) {
  .site-header { padding: 12px 16px; }
  .logo-text small { display: none; }
  .store-btn { padding: 9px 13px; font-size: 12.5px; }
}

/* ── Animated aurora background ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, var(--bg2), var(--bg) 60%); }
.aurora span {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 18s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { background: #14b8a6; top: -12%; left: -8%; }
.aurora span:nth-child(2) { background: #2563eb; bottom: -16%; right: -10%; animation-delay: -6s; }
.aurora span:nth-child(3) { background: #7c3aed; top: 30%; right: 25%; opacity: .32; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.18); }
}

/* ── Glass card ── */
.glass {
  width: 100%;
  max-width: 440px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px 26px 22px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  animation: rise .7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ── Header ── */
.head { text-align: center; margin-bottom: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 13px; border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.shield { width: 17px; height: 17px; fill: var(--accent); }
.shield .check { stroke: #07120e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.head h1 {
  margin-top: 16px; font-size: 25px; font-weight: 750; letter-spacing: -.01em;
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ── Credential rows ── */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex; align-items: center; gap: 10px;
  background: var(--field);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 12px 12px 16px;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.row:hover { border-color: rgba(34,211,166,.4); background: rgba(34,211,166,.05); }
.row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.val { font-size: 15.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: "Cascadia Code", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }

.iconbtn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke); border-radius: 11px;
  background: linear-gradient(180deg, rgba(34,211,166,.16), rgba(34,211,166,.06));
  color: var(--accent); cursor: pointer;
  transition: transform .18s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34,211,166,.22); }
.iconbtn:active { transform: scale(.93); }
.iconbtn.ghost { background: rgba(255,255,255,.04); color: var(--muted); }
.iconbtn.ghost.on { color: var(--accent); background: rgba(34,211,166,.14); }

/* ── OTP panel ── */
.otp {
  margin-top: 18px;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(34,211,166,.08), rgba(56,189,248,.05));
  border: 1px solid rgba(34,211,166,.28);
  position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.otp.pulse { animation: panelPulse .8s var(--ease); }
@keyframes panelPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,166,.45); }
  100% { box-shadow: 0 0 0 22px rgba(34,211,166,0); }
}
.otp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.otp-cap { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(34,211,166,.7); animation: blip 1.6s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(34,211,166,.6); } 70% { box-shadow: 0 0 0 7px rgba(34,211,166,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,166,0); } }

/* circular countdown ring */
.ring { position: relative; width: 44px; height: 44px; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text); }

/* digit cells */
.digits { display: flex; justify-content: center; gap: 9px; perspective: 600px; }
.digit {
  flex: 1; max-width: 50px;
  display: grid; place-items: center;
  height: 60px;
  font-size: 31px; font-weight: 750;
  font-family: "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
  color: var(--text);
  background: rgba(7,12,20,.55);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.digit.flip { animation: flip .55s var(--ease); }
@keyframes flip {
  0%   { transform: rotateX(-90deg); opacity: 0; color: var(--accent); }
  60%  { color: var(--accent); }
  100% { transform: rotateX(0); opacity: 1; }
}

.cta {
  width: 100%; margin-top: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px; border: none; border-radius: 13px;
  font-size: 15px; font-weight: 650; color: #04130f; cursor: pointer;
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(34,211,166,.3);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(34,211,166,.42); filter: brightness(1.04); }
.cta:active { transform: scale(.98); }

.track { height: 4px; margin-top: 14px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.track-fill { height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ── How-to-login guide (collapsible) ── */
.guide {
  margin-top: 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--field);
  overflow: hidden;
}
.guide summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  font-size: 14px; font-weight: 650; color: var(--text);
  transition: background .2s var(--ease);
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary:hover { background: rgba(255,255,255,.04); }
.guide-title { display: inline-flex; align-items: center; gap: 9px; }
.guide-ico { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.guide[open] .chev { transform: rotate(180deg); }
.steps { margin: 0; padding: 2px 20px 16px 40px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.steps li { margin: 7px 0; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps b { color: var(--text); font-weight: 650; }
.steps a { color: var(--accent2); text-decoration: none; }
.steps a:hover { text-decoration: underline; }

.foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* empty / error state */
.empty { text-align: center; }
.empty .badge { font-size: 34px; }
.empty h1 { margin: 12px 0 8px; font-size: 22px; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: rgba(13,19,30,.92); color: var(--text);
  border: 1px solid rgba(34,211,166,.4); border-radius: 12px;
  padding: 11px 18px; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .glass { padding: 24px 18px 18px; }
  .digit { height: 54px; font-size: 26px; }
  .head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span, .digit.flip, .otp.pulse, .live { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */
.admin .glass { max-width: 680px; }
.admin .head { margin-bottom: 18px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.topbar h1 {
  font-size: 22px; font-weight: 750;
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.linklike { color: var(--muted); text-decoration: none; font-size: 13px; padding: 7px 12px; border: 1px solid var(--stroke); border-radius: 9px; transition: .2s var(--ease); }
.linklike:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.field-label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; letter-spacing: .03em; }
.input {
  width: 100%; padding: 12px 14px;
  background: var(--field); color: var(--text);
  border: 1px solid var(--stroke); border-radius: 12px;
  font-size: 15px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: #5d6b80; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,166,.18); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.btn {
  width: 100%; margin-top: 20px; padding: 13px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 650; color: #04130f; cursor: pointer;
  background: linear-gradient(95deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(34,211,166,.28);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: scale(.98); }

.notice { background: rgba(34,211,166,.14); color: var(--accent); padding: 11px 15px; border-radius: 11px; font-size: 14px; border: 1px solid rgba(34,211,166,.3); }
.error  { background: rgba(240,85,106,.12); color: var(--danger); padding: 11px 15px; border-radius: 11px; font-size: 14px; border: 1px solid rgba(240,85,106,.35); text-align: center; }

.admin h2 { margin: 26px 0 12px; font-size: 16px; color: var(--text); }
.list { display: flex; flex-direction: column; gap: 11px; }
.itm {
  background: var(--field); border: 1px solid var(--stroke); border-radius: 14px; padding: 15px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  transition: border-color .2s var(--ease);
}
.itm:hover { border-color: rgba(255,255,255,.16); }
.itm-main { flex: 1; min-width: 220px; }
.itm-title { font-weight: 650; font-size: 15px; }
.itm-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.itm-meta b { color: var(--accent); font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.linkrow { display: flex; gap: 7px; margin-top: 10px; }
.linkbox {
  flex: 1; min-width: 0; padding: 8px 11px; font-size: 12px;
  background: rgba(7,12,20,.6); color: var(--muted);
  border: 1px solid var(--stroke); border-radius: 9px;
  font-family: ui-monospace, Consolas, monospace;
}
.itm-actions { display: flex; gap: 7px; align-items: flex-start; }
.mini {
  padding: 8px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border-radius: 9px; border: 1px solid var(--stroke); text-decoration: none;
  background: rgba(255,255,255,.05); color: var(--text);
  transition: .18s var(--ease);
}
.mini:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.mini.go { background: linear-gradient(95deg, rgba(34,211,166,.22), rgba(56,189,248,.18)); color: var(--accent); border-color: rgba(34,211,166,.35); }
.mini.danger { background: rgba(240,85,106,.14); color: var(--danger); border-color: rgba(240,85,106,.3); }
.center { text-align: center; }
.block { display: block; margin-top: 14px; }
.empty-list { color: var(--muted); text-align: center; padding: 20px; }
form { margin: 0; }
