:root {
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  background: #070707;
  color: #ebedf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 31, 46, 0.16), transparent 20%), radial-gradient(circle at bottom right, rgba(225, 180, 75, 0.1), transparent 24%), #070707;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.captcha-overlay.active {
  display: flex;
}

.captcha-box {
  width: min(92vw, 440px);
  background: rgba(10, 10, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 80px rgba(255, 31, 46, 0.18);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
}

.captcha-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.captcha-box p {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.captcha-challenge {
  margin: 18px 0 16px;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.captcha-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.captcha-image-cell {
  min-height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04), 0 14px 38px rgba(0, 0, 0, 0.18);
}

.captcha-digit-image {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 16px;
}

.captcha-input-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

#captcha-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#captcha-input:focus {
  border-color: #ff223f;
  box-shadow: 0 0 0 4px rgba(255, 34, 63, 0.12);
}

.captcha-input-error {
  border-color: #ff4d6d !important;
}

.captcha-refresh {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.captcha-error {
  display: none;
  color: #ffbaba;
  font-size: 0.92rem;
  margin-bottom: 10px;
  min-height: 20px;
}

.captcha-error.visible {
  display: block;
}

#captcha-submit,
#captcha-cancel {
  width: 100%;
  margin-top: 10px;
}

.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  border-radius: 32px;
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 45px rgba(255, 31, 46, 0.24), inset 0 0 25px rgba(255, 31, 46, 0.08);
  color: #ffffff;
  font-weight: 700;
  overflow: hidden;
}

.loader-effect {
  position: absolute;
  inset: -6px;
  border-radius: 36px;
  box-shadow: 0 0 90px rgba(255, 31, 46, 0.25), inset 0 0 30px rgba(225, 180, 75, 0.18);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.loader-logo {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(255, 31, 46, 0.28);
  position: relative;
  z-index: 1;
}

.loader-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.loader-text {
  font-size: 0.97rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loader-dots {
  color: #facc15;
  font-weight: 800;
}

.loader-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  opacity: 0.92;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ff223f;
  border-right-color: #facc15;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 31, 46, 0.15), transparent 18%), radial-gradient(circle at 80% 15%, rgba(225, 180, 75, 0.12), transparent 20%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-shell.locked {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 31, 46, 0.9), rgba(225, 180, 75, 0.9));
}

.bot-logo {
  width: 30px;
  height: 30px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 31, 46, 0.14);
  color: #ff5c6f;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

p {
  color: #d1d5db;
  line-height: 1.75;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.hero-copy p {
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #ff223f, #e1b44b);
  color: #070707;
  box-shadow: 0 20px 40px rgba(255, 31, 46, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 31, 46, 0.22);
  border-radius: 32px;
  padding: 28px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(225, 180, 75, 0.15), transparent 28%);
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.status {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.status.online {
  background: rgba(34, 197, 94, 0.18);
  color: #a7f3d0;
}

.panel-card {
  position: relative;
  z-index: 1;
}

.panel-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.panel-card p {
  margin-bottom: 22px;
}

.panel-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 16px;
}

.entry-name {
  font-weight: 700;
  color: #fff;
}

.entry-status {
  color: #ffccd5;
  font-weight: 700;
}

.entry-status.danger {
  color: #ff4d6d;
}

.panel-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 0.92rem;
  color: #9ca3af;
}

.section {
  margin-bottom: 42px;
}

.refresh-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.refresh-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 31, 46, 0.45);
  box-shadow: 0 16px 38px rgba(255, 31, 46, 0.14);
}

.refresh-icon {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #ff223f;
  border-right-color: #facc15;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.update-meta {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.row-removing {
  background: rgba(255, 31, 46, 0.08);
}

.trace-hidden {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.glass-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 45px rgba(255, 31, 46, 0.08);
  border-radius: 32px;
  padding: 36px;
  backdrop-filter: blur(16px);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.faq-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.faq-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 46, 0.4);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(255, 31, 46, 0.12);
}

.feature-icon-img {
  width: 30px;
  height: 30px;
}

.feature-card h3,
.faq-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.stat-label {
  color: #94a3b8;
}

.table-shell {
  overflow-x: auto;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

thead th {
  padding: 18px 16px;
  text-align: left;
  color: #cbd5e1;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

tbody td {
  padding: 18px 16px;
  color: #d9e2ec;
}

td.danger {
  color: #ff6b81;
  font-weight: 700;
}

td.blocked {
  color: #facc15;
  font-weight: 700;
}

td.warning {
  color: #38bdf8;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .stats-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 16px 32px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .feature-grid,
  .faq-grid,
  .stats-section {
    grid-template-columns: 1fr;
  }

  .panel-footer,
  .hero-panel {
    display: block;
  }

  .panel-footer {
    grid-template-columns: 1fr;
  }
}
