.svp-sitemap-validator {
  --bg: #07111f;
  --card: rgba(10, 18, 33, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eaf2ff;
  --muted: #a6b6d2;
  --accent: #7c5cff;
  --accent-2: #20d3ff;
  --danger: #ff5e7a;
  --warning: #ffcf5a;
  --success: #31d08b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;

  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(32, 211, 255, 0.18), transparent 30%),
    linear-gradient(160deg, #050b14 0%, #08101d 45%, #050814 100%);
}

.svp-sitemap-validator,
.svp-sitemap-validator * {
  box-sizing: border-box;
}

.svp-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.svp-orb-1 {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -60px;
  background: rgba(124, 92, 255, 0.4);
}

.svp-orb-2 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: -40px;
  background: rgba(32, 211, 255, 0.3);
}

.svp-orb-3 {
  width: 160px;
  height: 160px;
  bottom: 0;
  left: 20%;
  background: rgba(49, 208, 139, 0.18);
}

.svp-app-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.svp-hero {
  text-align: center;
  padding: 24px 12px 8px;
}

.svp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.svp-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}

.svp-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.svp-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.svp-validator-card {
  padding: 22px;
}

.svp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.svp-tab-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}

.svp-tab-btn.active {
  color: white;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(32, 211, 255, 0.85));
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.28);
}

.svp-tab-panel {
  display: none;
  margin-bottom: 18px;
}

.svp-tab-panel.active {
  display: block;
}

.svp-file-drop {
  display: block;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
}

.svp-file-drop:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 211, 255, 0.4);
  background: rgba(32, 211, 255, 0.05);
}

.svp-file-drop input {
  display: none;
}

.svp-file-drop-inner {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  color: var(--muted);
}

.svp-file-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(32, 211, 255, 0.85));
  box-shadow: 0 14px 30px rgba(32, 211, 255, 0.18);
}

.svp-file-drop h3 {
  margin: 0;
  color: var(--text);
}

.svp-file-name {
  font-size: 0.95rem;
  color: var(--accent-2);
  word-break: break-word;
}

.svp-field-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}

.svp-sitemap-validator textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: rgba(4, 10, 18, 0.7);
  color: var(--text);
  outline: none;
  font-size: 0.98rem;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: inherit;
}

.svp-sitemap-validator textarea:focus {
  border-color: rgba(32, 211, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(32, 211, 255, 0.12);
}

.svp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.svp-primary-btn,
.svp-secondary-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  min-width: 160px;
  font-family: inherit;
}

.svp-primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(124, 92, 255, 0.24);
}

.svp-secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svp-primary-btn:hover,
.svp-secondary-btn:hover {
  transform: translateY(-1px);
}

.svp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.svp-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svp-stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.svp-stat strong {
  font-size: 1.4rem;
  color: var(--text);
}

.svp-result-box {
  border-radius: 22px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svp-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.svp-result-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.svp-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.svp-pill.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.svp-pill.success {
  background: rgba(49, 208, 139, 0.14);
  color: #7af0b9;
}

.svp-pill.warning {
  background: rgba(255, 207, 90, 0.14);
  color: #ffe08a;
}

.svp-pill.danger {
  background: rgba(255, 94, 122, 0.14);
  color: #ff9bb0;
}

.svp-result-content {
  color: var(--muted);
  line-height: 1.75;
  word-break: break-word;
}

.svp-result-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.svp-result-content li {
  margin: 8px 0;
}

.svp-code-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfe9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .svp-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .svp-sitemap-validator {
    padding: 14px;
  }

  .svp-validator-card {
    padding: 16px;
  }

  .svp-tabs {
    grid-template-columns: 1fr;
  }

  .svp-actions {
    flex-direction: column;
  }

  .svp-primary-btn,
  .svp-secondary-btn {
    width: 100%;
  }

  .svp-summary-grid {
    grid-template-columns: 1fr;
  }

  .svp-result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .svp-sitemap-validator textarea {
    min-height: 240px;
  }
}
