*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: hsl(222, 25%, 4%);
  --bg-card: hsl(222, 22%, 7%);
  --fg: hsl(210, 20%, 96%);
  --muted: hsl(215, 15%, 50%);
  --border: hsl(222, 18%, 14%);
  --primary: hsl(217, 99%, 50%);
  --primary-dim: hsl(217, 99%, 50%, 0.12);
  --success: hsl(142, 76%, 45%);
  --success-dim: hsl(142, 76%, 45%, 0.08);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .nav-logo, .footer-logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Dashboard: two-column logs need more horizontal room */
.container--wide {
  max-width: 1240px;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), hsl(217, 90%, 72%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-success {
  color: var(--success);
}

/* ===== Static page background (no animation) ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, hsl(217, 42%, 14%), transparent 58%),
    radial-gradient(ellipse 50% 45% at 100% 30%, hsl(217, 30%, 10%, 0.5), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 70%, hsl(222, 28%, 9%, 0.45), transparent 50%),
    var(--bg);
}

.hidden {
  display: none !important;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  background: hsl(222, 25%, 5%, 0.82);
  border-bottom: 1px solid hsl(222, 16%, 14%);
  box-shadow: 0 1px 0 hsl(217, 40%, 20%, 0.06);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links-main {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 12px;
  background: hsl(222, 18%, 8%, 0.85);
  border: 1px solid hsl(222, 14%, 16%);
}

.nav-links-main a {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.nav-links-main a:hover {
  color: var(--fg);
  background: hsl(222, 16%, 14%, 0.9);
}

.nav-link-discord {
  color: hsl(213, 85%, 68%) !important;
}

.nav-link-discord:hover {
  color: hsl(213, 90%, 78%) !important;
  background: hsl(217, 45%, 18%, 0.55) !important;
}

.nav-btn-login {
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px hsl(217, 99%, 50%, 0.25);
  transition: box-shadow 0.25s, transform 0.15s;
}

.nav-btn-login:hover {
  color: #fff;
  box-shadow: 0 0 28px hsl(217, 99%, 50%, 0.4);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid hsl(217, 99%, 50%, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 4px 24px hsl(217, 99%, 50%, 0.3);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px hsl(217, 99%, 50%, 0.45);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid hsl(217, 99%, 50%, 0.2);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ===== STATUS SECTION ===== */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.status-banner.status-ok {
  background: var(--success-dim);
  border: 1px solid hsl(142, 76%, 45%, 0.2);
  box-shadow: 0 0 24px hsl(142, 76%, 45%, 0.06);
}

.status-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px hsl(142, 76%, 45%, 0.5);
}

.status-table {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.status-table-header {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.status-table-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  align-items: center;
  padding: 16px 20px;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.product-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-dim);
  border: 1px solid hsl(217, 99%, 50%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.undetected {
  color: var(--success);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px hsl(142, 76%, 45%, 0.5);
}

.updated-text {
  font-size: 12px;
  color: var(--muted);
}

/* ===== AUTH SECTION ===== */
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.auth-card-inner {
  text-align: center;
  padding-top: 8px;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, opacity 0.2s;
  box-shadow: 0 4px 24px hsl(217, 99%, 50%, 0.35);
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px hsl(217, 99%, 50%, 0.5);
}

.btn-create:active {
  transform: translateY(0);
}

.btn-create.hidden {
  display: none;
}

.btn-create.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-create:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* ---- PIN result ---- */
.pin-result {
  margin-top: 8px;
}

.pin-result.hidden {
  display: none;
}

.download-link-row {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: hsl(222, 18%, 10%);
}

.download-url-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  color: var(--fg);
  background: transparent;
  border: none;
  outline: none;
  cursor: default;
  user-select: all;
}

.btn-copy-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-left: 1px solid hsl(217, 85%, 42%);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-copy-download:hover {
  filter: brightness(1.08);
}

.btn-copy-download.copied {
  background: hsl(142, 45%, 40%);
}

.pin-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.pin-display {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pin-digit {
  width: 50px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: "Space Grotesk", monospace;
  color: #fff;
  background: hsl(222, 25%, 10%);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: digitPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.pin-digit:nth-child(1) { animation-delay: 0.05s; }
.pin-digit:nth-child(2) { animation-delay: 0.10s; }
.pin-digit:nth-child(3) { animation-delay: 0.15s; }
.pin-digit:nth-child(4) { animation-delay: 0.20s; }
.pin-digit:nth-child(5) { animation-delay: 0.25s; }
.pin-digit:nth-child(6) { animation-delay: 0.30s; }

@keyframes digitPop {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pin-hint {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Error ---- */
.error-msg {
  margin-top: 20px;
  font-size: 13px;
  color: hsl(0, 84%, 60%);
}

.error-msg.hidden {
  display: none;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-card {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.why-card:hover {
  border-color: hsl(217, 99%, 50%, 0.25);
  box-shadow: 0 8px 40px hsl(217, 99%, 50%, 0.08);
  transform: translateY(-2px);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  border: 1px solid hsl(217, 99%, 50%, 0.15);
  color: var(--primary);
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.why-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* ===== FAQ ===== */
.section-faq {
  padding-top: 40px;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ===== DISCORD CTA ===== */
.section-discord-cta {
  padding-top: 40px;
  padding-bottom: 100px;
}

.discord-cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid hsl(217, 55%, 38%, 0.35);
  background: linear-gradient(145deg, hsl(217, 32%, 11%) 0%, hsl(222, 24%, 7%) 55%, hsl(222, 22%, 6%) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 48px hsl(217, 65%, 22%, 0.18);
}

.discord-cta-text h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
}

.discord-cta-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.55;
}

.discord-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, hsl(217, 91%, 52%) 0%, hsl(221, 83%, 47%) 100%);
  border: 1px solid hsl(217, 85%, 42%);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 22px hsl(217, 90%, 45%, 0.4);
}

.discord-cta-btn:hover {
  background: linear-gradient(180deg, hsl(217, 88%, 56%) 0%, hsl(221, 80%, 50%) 100%);
  border-color: hsl(217, 80%, 55%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(217, 85%, 45%, 0.5);
}

@media (max-width: 640px) {
  .discord-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 24px;
  }

  .discord-cta-text p {
    max-width: none;
  }

  .discord-cta-btn {
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .status-table-header,
  .status-table-row {
    grid-template-columns: 1fr 100px;
  }

  .updated-text {
    display: none;
  }

  .status-table-header span:last-child {
    display: none;
  }

  .pin-digit {
    width: 42px;
    height: 50px;
    font-size: 20px;
  }

  .auth-card {
    padding: 32px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */

.login-body {
  overflow: hidden;
}

.login-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Left panel ---- */
.login-left {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
  padding: 48px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .login-left { display: flex; }
}

.login-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, hsl(217, 99%, 50%, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 80% 70%, hsl(217, 80%, 60%, 0.10), transparent);
  transition: background 0.05s;
}

.login-left-overlay {
  position: absolute;
  inset: 0;
  background: hsl(222, 25%, 4%, 0.45);
  pointer-events: none;
}

.login-left-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.login-left-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to bottom, hsl(222, 25%, 4%, 0.4), transparent);
  pointer-events: none;
}

.login-left-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 100px;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: hsl(222, 22%, 7%, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px hsl(217, 99%, 50%, 0.12);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}

.login-brand-badge strong {
  color: var(--fg);
  font-weight: 600;
}

.badge-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.login-left-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.login-left-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.login-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.login-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}

.login-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-left-footer {
  position: relative;
  z-index: 10;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.login-back-link:hover {
  color: var(--fg);
}

/* ---- Right panel ---- */
.login-right {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--bg);
  border-left: 1px solid var(--border);
}

@media (max-width: 1023px) {
  .login-right {
    max-width: 100%;
    border-left: none;
  }
}

.login-form-wrap {
  width: 100%;
  max-width: 360px;
}

.login-form-header {
  margin-bottom: 32px;
}

.login-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 1px;
}

/* Tabs */
.login-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: hsl(222, 18%, 10%);
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px hsl(217, 99%, 50%, 0.35);
}

/* Form panels */
.login-form-panel {
  display: none;
}

.login-form-panel.active {
  display: block;
}

.login-form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--fg);
  background: hsl(222, 18%, 10%);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
  color: var(--muted);
}

.input-wrap input:focus {
  border-color: hsl(217, 99%, 50%, 0.5);
  box-shadow: 0 0 0 3px hsl(217, 99%, 50%, 0.1);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s;
  box-shadow: 0 4px 20px hsl(217, 99%, 50%, 0.3);
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px hsl(217, 99%, 50%, 0.45);
}

.login-submit:active {
  transform: translateY(0);
}

.login-form-footer {
  margin-top: 28px;
  text-align: center;
}

.login-form-footer p {
  font-size: 11px;
  color: hsl(215, 15%, 35%);
}

/* ---- Mouse gradient orbs (animated blobs on left panel) ---- */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transition: transform 0.3s ease-out, opacity 0.3s;
}

.gradient-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: hsl(217, 99%, 50%, 0.18);
}

.gradient-orb.orb-2 {
  width: 350px;
  height: 350px;
  background: hsl(217, 80%, 60%, 0.14);
}

.gradient-orb.orb-3 {
  width: 250px;
  height: 250px;
  background: hsl(200, 90%, 55%, 0.10);
}

/* Form error message */
.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: hsl(0, 84%, 65%);
  background: hsl(0, 84%, 60%, 0.08);
  border: 1px solid hsl(0, 84%, 60%, 0.2);
  border-radius: 8px;
  text-align: center;
}

/* ================================================================
   DASHBOARD PAGE
   ================================================================ */

.dash-main {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.dash-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.dash-back:hover {
  color: var(--fg);
}

/* Profile card */
.dash-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.dash-avatar-wrap {
  flex-shrink: 0;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px hsl(217, 99%, 50%, 0.3);
}

.dash-profile-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dash-profile-info p {
  font-size: 13px;
  color: var(--muted);
}

/* Nav user area */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-user-link:hover {
  opacity: 0.85;
}

.nav-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: hsl(222, 18%, 12%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

.nav-username {
  font-size: 13px;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-btn-logout:hover {
  color: var(--fg);
  background: hsl(222, 18%, 12%);
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 28px;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-tab:hover {
  color: var(--fg);
}

.dash-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px hsl(217, 99%, 50%, 0.3);
}

/* Panels */
.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

/* Cards */
.dash-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
}

.dash-card-title svg {
  color: var(--primary);
}

.dash-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 20px;
}

.dash-field {
  margin-bottom: 16px;
}

.dash-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}

.dash-field .input-wrap input {
  background: hsl(222, 18%, 10%);
  color: var(--muted);
}

.dash-input-editable {
  color: var(--fg) !important;
}

.dash-profile-save-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 4px;
}

.btn-save-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px hsl(217, 99%, 50%, 0.3);
}

.btn-save-profile:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px hsl(217, 99%, 50%, 0.4);
}

.btn-save-profile:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-save-msg {
  font-size: 13px;
  margin: 0;
}

.profile-save-msg--ok {
  color: hsl(142, 50%, 48%);
}

.profile-save-msg--err {
  color: hsl(0, 55%, 58%);
}

.dash-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.dash-empty svg {
  margin: 0 auto 12px;
  opacity: 0.3;
}

.dash-empty p {
  font-size: 14px;
}

/* ---- Logs Panel ---- */
.logs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.logs-sidebar {
  min-width: 0;
  background: hsl(222, 18%, 8%);
  border: 1px solid hsl(222, 10%, 16%);
  border-radius: 12px;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(78vh, 640px);
  scrollbar-width: thin;
  scrollbar-color: hsl(222, 12%, 28%) hsl(222, 18%, 8%);
}

.logs-sidebar::-webkit-scrollbar {
  width: 8px;
}

.logs-sidebar::-webkit-scrollbar-track {
  background: hsl(222, 18%, 8%);
  border-radius: 8px;
}

.logs-sidebar::-webkit-scrollbar-thumb {
  background: hsl(222, 12%, 26%);
  border-radius: 8px;
  border: 2px solid hsl(222, 18%, 8%);
}

.logs-sidebar::-webkit-scrollbar-thumb:hover {
  background: hsl(222, 12%, 34%);
}

.logs-sidebar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--muted);
  text-align: center;
  gap: 8px;
}

.logs-sidebar-empty svg { opacity: 0.3; }

.logs-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsl(222, 10%, 16%);
  margin-bottom: 16px;
}

.logs-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
  min-width: 0;
}

.logs-detail-title #detail-pcname {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

#logs-detail {
  min-width: 0;
  width: 100%;
}

.btn-log-remove {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid hsl(0, 65%, 35%);
  background: hsla(0, 65%, 40%, 0.15);
  color: hsl(0, 75%, 70%);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-log-remove:hover {
  background: hsla(0, 65%, 45%, 0.25);
  border-color: hsl(0, 65%, 45%);
}

.logs-suspicious-panel {
  margin-top: 4px;
  padding: 14px;
  background: hsl(222, 20%, 6%);
  border: 1px solid hsl(222, 12%, 14%);
  border-radius: 10px;
  min-width: 0;
}

.logs-suspicious-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(45, 95%, 58%);
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid hsl(222, 12%, 14%);
}

.logs-exe-list {
  max-height: min(58vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 4px 2px 2px;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: hsl(222, 12%, 28%) hsl(222, 20%, 6%);
}

.logs-exe-list::-webkit-scrollbar {
  width: 8px;
}

.logs-exe-list::-webkit-scrollbar-track {
  background: hsl(222, 20%, 6%);
  border-radius: 8px;
}

.logs-exe-list::-webkit-scrollbar-thumb {
  background: hsl(222, 12%, 26%);
  border-radius: 8px;
  border: 2px solid hsl(222, 20%, 6%);
}

.logs-exe-list::-webkit-scrollbar-thumb:hover {
  background: hsl(222, 12%, 36%);
}

.logs-exe-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: hsl(222, 18%, 9%);
  border: 1px solid hsl(222, 10%, 16%);
  border-left: 3px solid hsla(45, 100%, 50%, 0.45);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.logs-exe-item--bypass {
  border-left-color: hsla(0, 84%, 55%, 0.65);
  background: linear-gradient(90deg, hsla(0, 45%, 12%, 0.5) 0%, hsl(222, 18%, 9%) 28%);
  border-color: hsl(222, 12%, 18%);
}

.logs-exe-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logs-exe-path {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  color: hsl(210, 15%, 82%);
}

.logs-exe-bypass-hint {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: hsl(0, 65%, 72%);
  font-family: "Inter", system-ui, sans-serif;
}

.logs-exe-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(45, 100%, 50%, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.logs-exe-icon svg { color: hsl(45, 100%, 60%); }

/* Custom “B” = Bypassing (evasion / untraceable exe tooling) */
.logs-exe-icon--bypass {
  background: linear-gradient(145deg, #f87171 0%, #dc2626 45%, #991b1b 100%);
  border: 1px solid hsla(0, 100%, 85%, 0.2);
  box-shadow:
    inset 0 1px 0 hsla(0, 0%, 100%, 0.22),
    0 2px 10px hsla(0, 75%, 40%, 0.35);
}

.logs-bypass-letter {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.45);
  letter-spacing: -0.02em;
  user-select: none;
}

.logs-exe-clean {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: hsla(140, 60%, 40%, 0.08);
  border: 1px solid hsla(140, 60%, 40%, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: hsl(140, 60%, 65%);
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.logs-exe-clean svg { flex-shrink: 0; }

.logs-empty-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}

.logs-list-wrap {
  min-width: 0;
}

.logs-scan-card {
  margin-bottom: 0;
}

.logs-table {
  margin-top: 4px;
}

.logs-table-header {
  display: flex;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid hsl(222, 10%, 16%);
}

.logs-table-body {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

.logs-table-body::-webkit-scrollbar { width: 4px; }
.logs-table-body::-webkit-scrollbar-track { background: transparent; }
.logs-table-body::-webkit-scrollbar-thumb { background: hsl(222, 10%, 20%); border-radius: 4px; }

.log-col-pin   { flex: 0 0 96px; }
.log-col-time  { flex: 0 0 110px; }
.log-col-pc    { flex: 1 1 160px; min-width: 0; }
.log-col-status { flex: 0 0 100px; text-align: center; }

.log-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(222, 10%, 13%);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  color: var(--fg);
  min-width: 0;
}

.log-row > span {
  min-width: 0;
}

.log-row:hover { background: hsl(222, 18%, 11%); }
.log-row.active { background: hsl(222, 18%, 13%); }

.log-row .log-pin-code {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: hsl(217, 91%, 60%);
}

.log-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.log-status-badge.clean {
  background: hsla(140, 60%, 40%, 0.12);
  color: hsl(140, 60%, 65%);
}

.log-status-badge.warning {
  background: hsla(45, 100%, 50%, 0.12);
  color: hsl(45, 100%, 60%);
}

.logs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--muted);
  gap: 8px;
}

.logs-empty svg { opacity: 0.3; }
.logs-empty p { font-size: 13px; }

@media (max-width: 900px) {
  .container--wide {
    max-width: 100%;
  }

  .logs-layout {
    grid-template-columns: 1fr;
  }

  .logs-sidebar {
    max-height: min(62vh, 520px);
  }

  .logs-table-body {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .dash-profile-card {
    flex-direction: column;
    text-align: center;
  }

  .dash-tabs {
    width: 100%;
  }

  .dash-tab {
    flex: 1;
    justify-content: center;
  }

  .nav-username {
    display: none;
  }
}
