
/* Перенос обязателен: четыре режима в один ряд на телефон не помещаются,
   а без него ряд просто вылезал за края блока и обрезался. */
.hero-search-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  background: rgba(15, 20, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-pill-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  /* Иначе подпись ломается на три строки и пилюля становится квадратом. */
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-pill-btn svg { flex-shrink: 0; }

/* На широком экране подпись полная, на телефоне — короткая: иначе половинная
   пилюля режет её многоточием и режим не опознать. */
.hero-pill-btn .pill-short { display: none; }

.hero-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-pill-btn.active {
  background: linear-gradient(135deg, #5865F2, #38bdf8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.45);
}

.hero-pill-btn.discord-pill.active {
  background: linear-gradient(135deg, #5865F2, #818cf8);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.5);
}

/* Тестирование — свой оттенок, как у остальных режимов. */
.hero-pill-btn.quiz-pill svg { color: #2dd4bf; }

.hero-pill-btn.quiz-pill.active {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.4);
}

.hero-pill-btn.quiz-pill.active svg { color: #fff; }

/* Телефон: четыре режима в две колонки — так они читаются и ничего не режется. */
@media (max-width: 720px) {
  .hero-search-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 18px;
    gap: 4px;
  }

  .hero-pill-btn {
    padding: 9px 10px;
    font-size: 0.8rem;
    gap: 5px;
    border-radius: 14px;
    min-width: 0;
  }

  .hero-pill-btn span:not(.hero-beta-badge) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-pill-btn .pill-full { display: none; }
  .hero-pill-btn .pill-short { display: inline; }

  .hero-beta-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
}

@media (max-width: 400px) {
  .hero-pill-btn { font-size: 0.74rem; padding: 8px 6px; }
  .hero-pill-btn svg { width: 14px; height: 14px; }
}

.hero-beta-badge {
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.38);
  color: #fde047;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.hero-pill-btn.active .hero-beta-badge {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-search-action-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #5865F2, #818cf8);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
}

.hero-search-action-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-50%) scale(1.02);
}

.hero-search-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.discord-presets-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.preset-pill-btn {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #c7d2fe;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill-btn:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: #5865F2;
  color: #fff;
  transform: translateY(-1px);
}

.discord-audit-container {
  max-width: 820px;
  margin: 0 auto 2rem;
  background: #111420;
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(88, 101, 242, 0.15);
  animation: discordCardIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.discord-profile-banner {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #5865F2;
}

.discord-profile-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 20, 32, 0.95) 100%);
}

.discord-profile-header {
  padding: 0 24px 20px;
  position: relative;
  margin-top: -55px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discord-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.discord-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #111420;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.discord-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #23272a;
}

.discord-bot-badge {
  background: #5865F2;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.audit-status-badge.safe {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.audit-status-badge.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.audit-status-badge.danger {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.discord-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discord-badges-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

.discord-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.discord-badge-item:hover {
  transform: scale(1.25);
}

.discord-badge-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.discord-badge-text-fallback {
  font-size: 0.72rem;
  background: rgba(88, 101, 242, 0.25);
  color: #c7d2fe;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.discord-username-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.discord-clan-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: inherit;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.discord-clan-tag:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: #5865F2;
  color: #fff;
}

.discord-clan-tag.threat {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.discord-clan-badge-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  display: inline-block;
}

.discord-pronouns {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.discord-id-tag {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.discord-bio-card {
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.card-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discord-bio-text {
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.audit-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.breakdown-card {
  background: rgba(15, 20, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-card.threat {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.breakdown-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.breakdown-badge.safe {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.breakdown-badge.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.breakdown-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.audit-violations-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.violation-item-row {
  background: rgba(17, 20, 32, 0.8);
  border-left: 3px solid #ef4444;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.84rem;
}

.discord-audit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.btn-audit-copy {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid #5865F2;
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-audit-copy:hover {
  background: #5865F2;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.btn-audit-raw {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-audit-raw:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.discord-loading-box {
  background: rgba(17, 20, 32, 0.9);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(88, 101, 242, 0.2);
}

.discord-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(88, 101, 242, 0.2);
  border-top-color: #5865F2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.discord-progress-container {
  margin: 22px 0 10px;
}

.discord-progress-bar-wrapper {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.discord-progress-bar-fill {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, #5865F2, #38bdf8, #818cf8);
  background-size: 200% 100%;
  border-radius: 20px;
  transition: width 0.15s linear;
  animation: progressGlow 2s linear infinite;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.7);
}

@keyframes progressGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.discord-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.84rem;
}

.discord-progress-status-text {
  color: #38bdf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-progress-percent {
  color: #fff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(88, 101, 242, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.discord-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.progress-step-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  transition: all 0.25s ease;
}

.progress-step-item.active {
  background: rgba(88, 101, 242, 0.15);
  border-color: #5865F2;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.25);
}

.progress-step-item.done {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.audit-status-badge.unknown {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.breakdown-badge.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.breakdown-badge.neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

.breakdown-card.unverified {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
}

.audit-unverified-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}

.discord-bio-text.threat-text {
  color: #fca5a5;
  font-weight: 700;
}

.breakdown-symbol {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breakdown-symbol-name {
  width: 100%;
  font-size: 0.78rem;
  color: #fca5a5;
}

.breakdown-symbol-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 4px;
}

.breakdown-symbol-warn {
  font-size: 0.76rem;
  color: #fbbf24;
}

/* история проверок Discord ID */

.check-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.check-history-clear {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
}

.check-history-clear:hover {
  color: var(--accent-red);
  border-color: rgba(237, 66, 69, 0.45);
}

.check-history-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-history-card.is-clean { border-left: 3px solid var(--accent-teal); }
.check-history-card.is-flagged { border-left: 3px solid var(--accent-red); }

.check-card-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.check-history-card:hover .check-card-remove { opacity: 1; }
.check-card-remove:hover { color: var(--accent-red); }

.check-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.check-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.check-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-card-id {
  font-size: 0.74rem;
  color: var(--text-sub);
  font-family: ui-monospace, Consolas, monospace;
}

.check-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.check-card-verdict {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}

.check-card-verdict.clean { background: rgba(87, 242, 135, 0.15); color: var(--accent-teal); }
.check-card-verdict.flagged { background: rgba(237, 66, 69, 0.15); color: var(--accent-red); }
.check-card-verdict.unknown { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }

.check-card-time {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.check-card-recheck {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid var(--border-accent);
  color: #c9cdfb;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.check-card-recheck:hover {
  background: var(--accent-blurple);
  color: #fff;
}

/* никнеймы на серверах */

.nickname-history-body { margin-top: 4px; }

.nickname-loading {
  color: #64748b;
  font-size: 0.86rem;
}

.nickname-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.nickname-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.nickname-value {
  font-weight: 600;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname-guild {
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname-date {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nickname-row { grid-template-columns: 1fr auto; }
  .nickname-guild { grid-column: 1 / -1; }
}
