/* Shared SEO tools UI */
.st-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.st-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.st-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.st-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.st-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.st-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.st-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.st-privacy strong { font-weight: 800; }
.st-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: start;
}
.st-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #10172f;
  margin-bottom: 8px;
}
.st-textarea,
.st-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #18213a;
  border: 2px solid #d8deea;
  border-radius: 12px;
  outline: none;
  background: #fafbff;
  font-family: ui-sans-serif, system-ui, Segoe UI, sans-serif;
  box-sizing: border-box;
}
.st-textarea {
  min-height: 200px;
  height: 220px;
  resize: vertical;
}
.st-textarea:focus,
.st-input:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
  background: #fff;
}
.st-url-row { margin-top: 16px; }
.st-url-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.st-url-controls .st-input { flex: 1; min-width: 200px; }
.st-sidebar {
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  background: #f7f8fc;
  padding: 14px;
  position: sticky;
  top: 16px;
}
.st-sidebar-inline { position: static; margin-bottom: 16px; }
.st-sidebar h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #10172f;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.st-score-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 6px solid #e8ebf5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.st-score-ring span {
  font-size: 26px;
  font-weight: 800;
  color: #E53935;
}
.st-score-ring.good { border-color: #66bb6a; }
.st-score-ring.ok { border-color: #ffa726; }
.st-score-ring.bad { border-color: #ef5350; }
.st-side-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e8ebf5;
  font-size: 13px;
}
.st-side-row span { color: #5c6478; font-weight: 600; }
.st-side-row b { color: #E53935; font-weight: 800; }
.st-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.st-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-block;
  transition: opacity .2s, transform .2s;
}
.st-btn:hover { opacity: .92; transform: translateY(-1px); }
.st-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.st-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); box-shadow: 0 8px 18px rgba(229,57,53,.22); }
.st-btn-green { background: #2e7d32; }
.st-btn-blue { background: #1565c0; }
.st-btn-gray { background: #455a64; }
.st-btn-dark { background: #10172f; }
.st-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.st-section { margin-top: 20px; }
.st-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.st-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.st-stat {
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 100px;
}
.st-stat b { display: block; font-size: 18px; color: #E53935; line-height: 1.2; }
.st-stat span { font-size: 12px; color: #5c6478; font-weight: 600; }
.st-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.st-field { margin-bottom: 12px; }
.st-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.st-field select,
.st-field input[type="text"],
.st-field input[type="number"],
.st-field input[type="url"],
.st-field input[type="email"],
.st-field input[type="date"],
.st-field input[type="datetime-local"],
.st-field textarea {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
}
.st-field textarea { min-height: 80px; resize: vertical; }
.st-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.st-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.st-results {
  margin-top: 12px;
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  max-height: 480px;
  overflow: auto;
}
.st-result-text {
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #18213a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.st-table th, .st-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
}
.st-table th { background: #fff; color: #5c6478; font-weight: 700; position: sticky; top: 0; }
.st-ok { color: #2e7d32; font-weight: 800; }
.st-bad { color: #c62828; font-weight: 800; }
.st-warn { color: #ef6c00; font-weight: 800; }
.st-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.st-status b { color: #E53935; }
.st-drop-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6478;
  font-weight: 600;
}
.st-suggestions {
  margin: 0;
  padding-left: 18px;
  color: #18213a;
  font-size: 14px;
  line-height: 1.6;
}
.st-suggestions li { margin-bottom: 6px; }
.st-cta {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  background: linear-gradient(135deg, #fff8e1, #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.st-cta strong { display: block; color: #10172f; font-size: 15px; margin-bottom: 4px; }
.st-cta span { color: #5c6478; font-size: 13px; font-weight: 600; }
.st-serp {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  max-width: 600px;
}
.st-serp.mobile { max-width: 360px; }
.st-serp-url { color: #202124; font-size: 12px; margin-bottom: 4px; }
.st-serp-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin-bottom: 4px; cursor: default; }
.st-serp-desc { color: #4d5156; font-size: 14px; line-height: 1.5; }
.st-og-card, .st-tw-card {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  overflow: hidden;
  max-width: 500px;
  background: #fff;
}
.st-og-img, .st-tw-img {
  height: 180px;
  background: #eef1f8 center/cover no-repeat;
}
.st-og-body, .st-tw-body { padding: 12px 14px; }
.st-og-site, .st-tw-site { font-size: 11px; color: #5c6478; text-transform: uppercase; font-weight: 700; }
.st-og-title, .st-tw-title { font-size: 16px; font-weight: 800; color: #10172f; margin: 4px 0; }
.st-og-desc, .st-tw-desc { font-size: 13px; color: #5c6478; }
.st-tree { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; white-space: pre; }
.st-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ffebee;
  color: #c62828;
}
.st-badge.good { background: #e8f5e9; color: #2e7d32; }
.st-badge.warn { background: #fff3e0; color: #ef6c00; }
.st-progress { margin: 8px 0; }
.st-progress label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 4px;
}
.st-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}
.st-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef5350, #c62828);
  border-radius: 999px;
  max-width: 100%;
}
.st-progress-bar.over > span { background: #c62828; }
.st-repeat-block {
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafbff;
}
@media (max-width: 991px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-sidebar { position: static; }
  .st-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .st-card { padding: 16px; }
  .st-options-grid { grid-template-columns: 1fr; }
  .st-btn { width: 100%; text-align: center; }
  .st-url-controls { flex-direction: column; }
}
