*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
#nav-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 3px; background: transparent; pointer-events: none; }
#nav-progress-bar { height: 100%; width: 0%; background: #dc2626; border-radius: 0 2px 2px 0; transition: width .15s ease; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
html { height: 100%; overflow: hidden; scroll-behavior: smooth; }
body { height: 100%; overflow: hidden; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  color: #e8e8ec;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::after { display: none !important; }
a { color: inherit; text-decoration: none; }

/* Header */
.lp-header {
  border-bottom: 1px solid #161619;
  height: 3.25rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 50;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  gap: 1rem;
}
.lp-logo { font-family: "Chakra Petch", sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.lp-logo span { color: #e53935; }
.lp-tabs { display: flex; align-items: center; gap: 0.125rem; flex: 1; }
.lp-tabs a {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.775rem; font-weight: 600; color: #6e6e7a;
  padding: 0.35rem 0.65rem; border-radius: 0.35rem;
  transition: color .15s, background .15s;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.lp-tabs a:hover, .lp-tabs a.active { color: #e8e8ec; background: #101014; }
.lp-actions { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.775rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem; border-radius: 0.35rem;
  border: 1px solid #161619; background: #101014;
  color: #6e6e7a; cursor: pointer; transition: all .2s;
  white-space: nowrap; text-decoration: none;
}
.lp-btn:hover { color: #e8e8ec; border-color: #252529; }
.lp-btn i { font-size: 13px; }
.lp-btn-accent { background: rgba(229,57,53,0.07); border-color: rgba(229,57,53,0.25); color: #e53935; }
.lp-btn-accent:hover { background: rgba(229,57,53,0.15); color: #f44336; }
.lp-btn-ghost { border-color: transparent; background: transparent; }
.lp-btn-ghost:hover { background: #101014; }

/* Full-page wrapper */
.lp-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 3.25rem);
  overflow: hidden;
}

/* Canvas background */
.lp-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background: #000;
}
.lp-bg canvas { display: block; width: 100%; height: 100%; }
.lp-vignette {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.95) 100%);
}

/* Centered card */
.lp-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: rgba(10,10,12,0.6);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.55rem;
  padding: 1.75rem;
  box-shadow: 0 0 80px rgba(229,57,53,0.04), 0 0 1px rgba(255,255,255,0.05);
  animation: cardFadeIn 0.5s ease;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Tabs */
.lp-card-tabs {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 1rem;
  border: 1px solid #1a1a1a;
  border-radius: 0.3rem;
  padding: 0.2rem;
  background: #000;
}
.lp-card-tab {
  flex: 1;
  padding: 0.375rem 0.5rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.775rem; font-weight: 600; letter-spacing: 0.03em;
  background: transparent; border: none;
  border-radius: 0.2rem;
  color: #6e6e7a; cursor: pointer;
  transition: all .15s; text-align: center;
}
.lp-card-tab:hover { color: #e8e8ec; }
.lp-card-tab.active { background: #101014; color: #e8e8ec; }

/* Line variant tabs */
.lp-tabs-line {
  border: none; background: none; padding: 0;
  border-bottom: 1px solid #1a1a1a; border-radius: 0; gap: 0;
}
.lp-tabs-line .lp-card-tab {
  border-radius: 0; padding: 0.5rem 0.75rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none;
}
.lp-tabs-line .lp-card-tab.active {
  background: none; color: #fafafa;
  border-bottom-color: #dc2626;
}
.lp-tabs-line .lp-card-tab:hover { background: none; }

/* Security note */
.lp-security-note {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.875rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.625rem; color: #a1a1aa; line-height: 1.4;
}
.lp-security-note i { font-size: 13px; flex-shrink: 0; color: #22c55e; }

.lp-panel { display: none; }
.lp-panel.active { display: block; }

/* Form */
.lp-error { font-size: 0.75rem; color: #dc2626; margin-bottom: 0.75rem; min-height: 1rem; }
.lp-group { margin-bottom: 0.75rem; }
.lp-label { display: block; font-family: "Chakra Petch", sans-serif; font-size: 0.775rem; font-weight: 500; margin-bottom: 0.3rem; letter-spacing: 0.01em; }
.lp-hint { font-size: 0.65rem; color: #a1a1aa; }
.lp-input {
  width: 100%; padding: 0.45rem 0.625rem;
  font-size: 0.825rem; font-family: "DM Sans", sans-serif;
  background: #0c0c0f; border: 1px solid #161619; border-radius: 0.35rem;
  color: #e8e8ec; outline: none; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.lp-input::placeholder { color: #6e6e7a; opacity: 0.5; }
.lp-input:focus { border-color: rgba(229,57,53,0.35); box-shadow: 0 0 0 2px rgba(229,57,53,0.06); }
/* Password input with toggle */
.lp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lp-input-wrap .lp-input {
  padding-right: 2.25rem;
}
.lp-toggle-pw {
  position: absolute;
  right: 0.5rem;
  background: none; border: none;
  color: #a1a1aa; cursor: pointer;
  padding: 0.25rem; line-height: 1;
  font-size: 15px;
  transition: color .15s;
}
.lp-toggle-pw:hover { color: #fafafa; }

/* Password strength bar */
.lp-pw-bar {
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.lp-pw-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

/* Password hints */
.lp-pw-hints {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: #a1a1aa;
  line-height: 1.5;
}
.lp-pw-hint { display: flex; align-items: center; gap: 0.3rem; }
.lp-pw-hint i { font-size: 10px; }
.lp-pw-hint.pass { color: #22c55e; }
.lp-pw-hint.fail { color: #a1a1aa; }

/* Admin toggle */
.lp-admin-toggle { margin-bottom: 0.75rem; }
.lp-admin-trigger {
  background: none; border: none; color: #a1a1aa;
  font-size: 0.725rem; font-family: inherit; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 0.3rem;
  padding: 0; transition: color .15s;
}
.lp-admin-trigger:hover { color: #fafafa; }
.lp-admin-trigger i { font-size: 13px; }
.lp-admin-otp { margin-bottom: 0.75rem; }
.lp-admin-otp.hidden { display: none; }

/* OTP input */
.lp-otp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lp-otp-slot {
  width: 2.5rem; height: 2.75rem;
  text-align: center;
  font-size: 1.1rem; font-weight: 600; font-family: "SF Mono","Fira Mono",monospace;
  letter-spacing: 0;
  background: #141414; border: 1px solid #1a1a1a; border-radius: 0.3rem;
  color: #fafafa; outline: none;
  transition: border-color .15s, box-shadow .15s;
  caret-color: #dc2626;
}
.lp-otp-slot:focus {
  border-color: rgba(220,38,38,0.5);
  box-shadow: 0 0 0 2px rgba(220,38,38,0.1);
}
.lp-otp-sep {
  width: 0.5rem; height: 2px;
  background: #333;
  border-radius: 1px;
  flex-shrink: 0;
}

.lp-submit {
  width: 100%; padding: 0.75rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  background: #e53935; border: none; border-radius: 0.35rem;
  color: #fff; cursor: pointer; transition: all .2s;
  margin-top: 0.25rem;
}
.lp-submit:hover { background: #c62828; box-shadow: 0 0 20px rgba(229,57,53,0.2); }

@media (max-width: 640px) {
  .lp-header { padding: 0 0.75rem; gap: 0.5rem; }
  .lp-tabs a { padding: 0.3rem 0.4rem; font-size: 0.7rem; }
  .lp-actions .btn-text { display: none; }
}
