:root {
  --background: #08090b;
  --background-secondary: #0d0f12;

  --surface: #121418;
  --surface-light: #191c21;
  --surface-hover: #20242a;

  --border: #2b2f36;
  --border-hover: #414751;

  --text: #f4f5f7;
  --muted: #9298a3;

  --primary: #737b87;
  --primary-hover: #929aa6;
  --primary-soft: rgba(145, 152, 165, 0.12);

  --discord: #5865f2;
  --discord-hover: #6875f5;

  --success: #42d392;
  --danger: #ff5d6c;
  --warning: #f0b95b;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--background);
  background-image:
    radial-gradient(
      circle at 90% 5%,
      rgba(145, 152, 165, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 95%,
      rgba(80, 88, 100, 0.07),
      transparent 32%
    );
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: #ffffff;
  background-color: #636b76;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: #090a0c;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #090a0c;
  border-radius: 999px;
  background-color: #343942;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4a505b;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(8, 9, 11, 0.94);
}

@supports (backdrop-filter: blur(18px)) {
  .navbar {
    background-color: rgba(8, 9, 11, 0.82);
    backdrop-filter: blur(18px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-icon {
  color: #c5cad2;
  font-size: 28px;
  text-shadow:
    0 0 22px rgba(197, 202, 210, 0.3);
}

.button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  cursor: pointer;
  border: 1px solid var(--primary);
  border-radius: 9px;
  background:
    linear-gradient(
      180deg,
      #838b97,
      #68707b
    );
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-weight: 700;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #a4abb5;
  background:
    linear-gradient(
      180deg,
      #979faa,
      #7a838e
    );
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-light);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.button-small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.button-full {
  width: 100%;
  margin-top: 18px;
}

.copy-success {
  color: var(--success);
  border-color: rgba(66, 211, 146, 0.35);
}

.hero {
  position: relative;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 100px 0 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  margin: 24px 0 18px;
  font-size: clamp(45px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -4px;
}

.hero-content h1 span {
  display: block;
  color: #b9c0ca;
  text-shadow:
    0 0 35px rgba(185, 192, 202, 0.13);
}

.hero-content p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 520px;
  max-width: 90vw;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(145, 152, 165, 0.1);
  filter: blur(100px);
  transform: translateX(-50%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  padding: 7px 13px;
  color: #c5cad2;
  border: 1px solid rgba(145, 152, 165, 0.32);
  border-radius: 999px;
  background-color: rgba(145, 152, 165, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.discord-button {
  margin-top: 34px;
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  background-color: var(--discord);
  box-shadow:
    0 13px 35px rgba(88, 101, 242, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.discord-button:hover {
  transform: translateY(-2px);
  background-color: var(--discord-hover);
  box-shadow:
    0 18px 45px rgba(88, 101, 242, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.discord-logo {
  font-size: 22px;
}

.feature-grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(25, 28, 33, 0.9),
      rgba(15, 17, 20, 0.9)
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.feature-icon {
  margin-bottom: 17px;
  color: #c5cad2;
  font-size: 28px;
}

.feature-card h3 {
  margin: 0 0 9px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.center-page {
  min-height: calc(100vh - 72px);
  padding: 50px 18px;
  display: grid;
  place-items: center;
}

.license-card {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(25, 28, 33, 0.97),
      rgba(14, 16, 19, 0.97)
    );
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.license-icon {
  margin-bottom: 16px;
  font-size: 35px;
}

.license-card h1 {
  margin: 18px 0 10px;
  font-size: 32px;
}

.license-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  outline: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: #0c0e11;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

input {
  min-height: 48px;
  padding: 0 15px;
}

textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: #666c75;
}

input:focus,
textarea:focus {
  border-color: #737b87;
  box-shadow:
    0 0 0 3px rgba(145, 152, 165, 0.11),
    0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard {
  width: min(1500px, 94%);
  margin: 0 auto;
  padding: 55px 0 90px;
}

.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1px;
}

.dashboard-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-area div {
  display: flex;
  flex-direction: column;
}

.user-area strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-area small {
  color: var(--muted);
}

.avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--surface-light);
}

.panel {
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(20, 22, 26, 0.95),
      rgba(13, 15, 18, 0.95)
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.2s ease;
}

.panel:hover {
  border-color: #373c45;
}

.panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.008);
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.drop-zone {
  margin: 22px;
  min-height: 220px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #383d45;
  border-radius: 13px;
  background-image:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.002)
    );
  text-align: center;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.drop-zone:hover {
  border-color: #505761;
}

.drop-zone.dragging {
  transform: scale(1.003);
  border-color: #8b939e;
  background-color: rgba(145, 152, 165, 0.06);
}

.drop-zone.upload-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.upload-icon {
  color: #aab0b9;
  font-size: 43px;
}

.drop-zone h3 {
  margin: 12px 0 5px;
}

.drop-zone p {
  margin: 0;
  color: var(--muted);
}

.upload-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.message {
  min-height: 20px;
  margin: 15px 22px 20px;
  color: var(--muted);
  font-size: 14px;
}

.message:empty {
  display: none;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--danger);
}

.message.loading {
  color: var(--warning);
}

.filters {
  padding: 16px 18px 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  background-color: var(--surface-light);
  font-size: 13px;
  font-weight: 700;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.filter-button:hover {
  color: var(--text);
  transform: translateY(-1px);
  border-color: #484e58;
  background-color: #20242a;
}

.filter-button.active {
  color: #ffffff;
  border-color: #858d99;
  background:
    linear-gradient(
      180deg,
      #838b97,
      #68707b
    );
}

.search-input {
  width: calc(100% - 36px);
  margin: 8px 18px 16px;
}

.results-container {
  padding: 0 18px 20px;
}

.file-result {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: rgba(10, 11, 14, 0.35);
}

.file-header {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #bcc2cb;
  border-bottom: 1px solid var(--border);
  background-color: #17191d;
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.file-result-count {
  flex-shrink: 0;
  color: var(--muted);
  font-family:
    Inter,
    Arial,
    sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.result-row {
  min-height: 71px;
  padding: 12px;
  display: grid;
  grid-template-columns:
    50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.15s ease;
}

.result-row:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.result-row:last-child {
  border-bottom: none;
}

.line-number {
  color: #646a73;
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 12px;
}

.result-main {
  min-width: 0;
}

.result-main code {
  margin-top: 8px;
  display: block;
  overflow-x: auto;
  padding-bottom: 4px;
  color: #f1f1f2;
  font-family:
    Consolas,
    Monaco,
    monospace;
  white-space: nowrap;
}

.result-tag {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-tag {
  color: #d3d7dd;
  border: 1px solid rgba(145, 152, 165, 0.18);
  background-color: rgba(145, 152, 165, 0.17);
}

.client-tag {
  color: #adb4c0;
  border: 1px solid rgba(104, 112, 124, 0.19);
  background-color: rgba(104, 112, 124, 0.19);
}

.xss-tag {
  color: #f4c9a8;
  border: 1px solid rgba(220, 155, 105, 0.22);
  background-color: rgba(220, 155, 105, 0.13);
}

.default-tag {
  color: #c5cad1;
  border: 1px solid rgba(118, 126, 138, 0.15);
  background-color: rgba(118, 126, 138, 0.15);
}

.empty-state {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state-icon {
  margin-bottom: 10px;
  color: #7e858f;
  font-size: 38px;
}

.empty-state h3 {
  margin: 0 0 7px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

.feedback-card {
  width: min(620px, 100%);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(25, 28, 33, 0.98),
      rgba(13, 15, 18, 0.98)
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.feedback-heading {
  margin-bottom: 30px;
}

.feedback-heading h1 {
  margin: 18px 0 10px;
  font-size: 36px;
  letter-spacing: -1px;
}

.feedback-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rating-section {
  margin-bottom: 25px;
}

.rating-buttons {
  margin-top: 10px;
  display: grid;
  grid-template-columns:
    repeat(10, minmax(0, 1fr));
  gap: 7px;
}

.rating-button {
  min-height: 43px;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #101216;
  font-weight: 800;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease;
}

.rating-button:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: #555c67;
  background-color: #1d2025;
}

.rating-button.active {
  color: #ffffff;
  border-color: #89919c;
  background:
    linear-gradient(
      180deg,
      #929aa5,
      #646c77
    );
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.25);
}

.rating-text {
  min-height: 20px;
  margin-top: 12px;
  color: #b9c0ca;
  font-size: 14px;
  font-weight: 700;
}

.character-count {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.consent-box {
  margin-top: 22px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.015);
}

.consent-box input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #8c949f;
}

.consent-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .navbar {
    padding: 0 18px;
  }

  .brand {
    font-size: 17px;
  }

  .user-area div {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-content h1 {
    letter-spacing: -2px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: flex-start;
  }

  .result-row {
    grid-template-columns:
      38px minmax(0, 1fr);
  }

  .result-row .button {
    grid-column: 2;
    justify-self: start;
  }

  .upload-actions {
    width: 100%;
    flex-direction: column;
  }

  .upload-actions .button {
    width: 100%;
  }

  .drop-zone {
    margin: 14px;
    padding: 25px 18px;
  }

  .license-card,
  .feedback-card {
    padding: 28px 22px;
  }

  .rating-buttons {
    grid-template-columns:
      repeat(5, minmax(0, 1fr));
  }

  .feedback-heading h1 {
    font-size: 29px;
  }
}

@media (max-width: 520px) {
  .navbar {
    min-height: 64px;
  }

  .navbar > .button {
    padding: 0 10px;
  }

  .dashboard {
    width: 94%;
    padding-top: 35px;
  }

  .dashboard-header h1 {
    font-size: 31px;
  }

  .file-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .result-main code {
    font-size: 12px;
  }

  .result-tag {
    border-radius: 7px;
    white-space: normal;
  }
}