@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.2), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(30, 64, 175, 0.25), transparent 50%),
    #030712;
  position: relative;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: -200px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  animation: drift 80s linear infinite;
  pointer-events: none;
}

body::after {
  background-size: 180px 180px;
  opacity: 0.12;
  animation-duration: 120s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-200px, 120px, 0);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  padding: 24px 20px;
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(12px);
  height: 100vh;
  overflow: hidden;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.8), rgba(14, 116, 144, 0.9));
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e2e8f0;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 2px;
}

.menu-panel {
  margin-bottom: 26px;
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-button {
  width: 100%;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-link {
  width: 100%;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(30, 64, 175, 0.25);
}

.menu-link:hover::before,
.menu-link.active::before {
  background: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.menu-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.menu-button:hover,
.menu-button.active {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(30, 64, 175, 0.25);
}

.menu-button:hover::before,
.menu-button.active::before {
  background: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.menu-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.menu-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
}

.nav-section {
  margin-top: 24px;
}

.nav-heading {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.8);
  margin-bottom: 12px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  gap: 12px;
}

.category-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  width: 160px;
}

.category-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.category-button:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.8);
}

.category-button.active {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(30, 64, 175, 0.35);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.category-button.active::before {
  background: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.category-title {
  font-size: 0.95rem;
  color: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-meta {
  display: none;
}

.sidebar-footer {
  margin-top: 32px;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
}

.content {
  padding: 30px 40px 48px;
  overflow-y: auto;
  height: 100vh;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.search-wrap {
  min-width: 240px;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #f8fafc;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.category-bar {
  margin-bottom: 24px;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: rgba(125, 211, 252, 0.8);
  margin-bottom: 12px;
}

.category-info {
  margin-bottom: 18px;
}

.blacklist-section {
  margin-top: 8px;
}

.blacklist-section.compact {
  padding-top: 0;
  border-top: none;
}

.blacklist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.blacklist-input {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #f8fafc;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blacklist-input:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.blacklist-button {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.blacklist-button:hover {
  border-color: rgba(147, 197, 253, 0.9);
}

.blacklist-hint {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

.blacklist-result-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.blacklist-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.blacklist-result-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  text-align: left;
  transition: border-color 0.2s ease;
}

.blacklist-result-item:hover {
  border-color: rgba(96, 165, 250, 0.6);
}

.blacklist-result-name {
  font-weight: 600;
  color: #f8fafc;
}

.blacklist-result-qq {
  color: rgba(148, 163, 184, 0.9);
  text-align: right;
}

.blacklist-detail-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.blacklist-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blacklist-back {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.82rem;
}

.blacklist-detail-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
}

.blacklist-detail-meta,
.blacklist-detail-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 10px;
}

.blacklist-detail-meta span:first-child,
.blacklist-detail-contacts span:first-child {
  color: rgba(125, 211, 252, 0.85);
}

.blacklist-detail-description {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blacklist-evidence {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px dashed rgba(59, 130, 246, 0.3);
}

.blacklist-evidence-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(125, 211, 252, 0.85);
  margin-bottom: 8px;
}

.blacklist-evidence-text {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.blacklist-evidence-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.blacklist-detail-footer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: rgba(191, 219, 254, 0.95);
  font-size: 0.85rem;
}

.blacklist-warning {
  margin-top: 14px;
  color: rgba(248, 113, 113, 0.95);
  font-size: 0.85rem;
}

.hidden {
  display: none;
}

.captcha-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  min-height: 240px;
}

.captcha-info h3 {
  font-size: 1.4rem;
  color: #f8fafc;
  margin-bottom: 8px;
}

.captcha-info p {
  color: rgba(148, 163, 184, 0.9);
  max-width: 480px;
}

.captcha-launch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.captcha-launch {
  padding: 14px 28px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #e2e8f0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.captcha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
}

.captcha-card {
  position: relative;
  width: min(820px, 92vw);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  padding: 24px;
  z-index: 2;
}

.captcha-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.captcha-card-desc {
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 16px;
}

.captcha-close {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: rgba(226, 232, 240, 0.9);
}

.captcha-counts {
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.9);
  margin-bottom: 16px;
}

.captcha-steps {
  display: grid;
  gap: 16px;
}

.captcha-step {
  display: none;
  gap: 14px;
}

.captcha-step.active {
  display: grid;
}

.captcha-step h4 {
  font-size: 1.1rem;
  color: #f8fafc;
}

.captcha-next {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #e2e8f0;
  font-size: 0.9rem;
  width: fit-content;
}

.captcha-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.captcha-widget {
  min-height: 120px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px dashed rgba(59, 130, 246, 0.3);
  display: grid;
  place-items: center;
  color: rgba(148, 163, 184, 0.8);
}

.captcha-success {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: rgba(187, 247, 208, 0.95);
  text-align: center;
}

.captcha-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.captcha-retry {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: rgba(226, 232, 240, 0.9);
}

.blacklist-contact-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.blacklist-contact-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(125, 211, 252, 0.8);
  margin-bottom: 6px;
}

.blacklist-contact-text {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.95);
}

.blacklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.blacklist-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid transparent;
}

.status-allow {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.6);
  color: rgba(187, 247, 208, 0.9);
}

.status-maybe {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(250, 204, 21, 0.6);
  color: rgba(254, 240, 138, 0.95);
}

.status-deny {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.7);
  color: rgba(254, 202, 202, 0.95);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.content-desc {
  color: rgba(148, 163, 184, 0.9);
  margin-top: 6px;
  max-width: 520px;
}

.status-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: rgba(224, 231, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.link-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.45);
  transition: border-color 0.2s ease;
}

.link-card:hover {
  border-color: rgba(96, 165, 250, 0.6);
}

.link-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-title::after {
  content: "↗";
  font-size: 0.85rem;
  color: rgba(125, 211, 252, 0.8);
}

.link-desc {
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.5;
  font-size: 0.9rem;
}

.link-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(30, 64, 175, 0.3);
  color: rgba(191, 219, 254, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

@media (max-width: 1200px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    height: auto;
  }

  .content {
    padding: 28px 24px 40px;
    height: auto;
  }

  .search-wrap {
    width: 100%;
    min-width: 0;
  }

  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}
