* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container { max-width: 740px; margin: 0 auto; }

.header { text-align: center; margin-bottom: 2rem; }
.header h1 { font-size: 2rem; font-weight: 700; }
.header p  { color: #666; margin-top: 0.4rem; font-size: 0.95rem; }

.badges {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px; margin-top: 1rem;
}
.badge {
  background: #e8eaf6; color: #3949ab;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
}

.card {
  background: #fff; border-radius: 14px;
  padding: 1.5rem; margin-bottom: 1.25rem;
  border: 1px solid #e4e4e4;
}
.card h3 {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: #999;
  margin-bottom: 1rem; font-weight: 500;
}
@media (max-width: 600px) {
  .container { padding: 0 0.75rem; }
  .site-header h1 { font-size: 1.4rem; }
  .site-header p { font-size: 0.9rem; }
  ins.adsbygoogle { min-height: 60px !important; }
}
textarea {
  width: 100%; min-height: 200px; resize: vertical;
  border: 1px solid #e0e0e0; border-radius: 10px;
  padding: 1rem; font-size: 0.95rem;
  font-family: inherit; outline: none;
  background: #fafafa; color: #1a1a2e;
  transition: border 0.2s;
}
textarea:focus { border-color: #5c6bc0; background: #fff; }

.btn-row {
  display: flex; gap: 0.75rem;
  margin-top: 1rem; justify-content: flex-end;
  flex-wrap: wrap;
}
.btn-primary {
  background: #3949ab; color: #fff; border: none;
  padding: 0.7rem 1.6rem; border-radius: 8px;
  font-size: 0.95rem; cursor: pointer; font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: #283593; }

.btn-secondary {
  background: #fff; color: #3949ab;
  border: 1px solid #c5cae9; padding: 0.7rem 1.2rem;
  border-radius: 8px; font-size: 0.9rem; cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #f0f2ff; }

#loading { text-align: center; padding: 2rem; color: #888; }
.spinner {
  width: 36px; height: 36px; border: 3px solid #e0e0e0;
  border-top-color: #3949ab; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.score-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: #fff; border-radius: 14px; padding: 1.5rem;
  margin-bottom: 1.25rem; border: 1px solid #e4e4e4;
}
.score-circle {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.score-circle span { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.score-circle small { font-size: 0.7rem; opacity: 0.85; margin-top: 2px; }

.score-info h2 { font-size: 1.4rem; font-weight: 700; }
.score-info p  { color: #777; font-size: 0.88rem; margin-top: 4px; }
.ml-conf { color: #3949ab !important; font-size: 0.82rem !important; margin-top: 6px !important; }

.green { background: #2e7d32; }
.amber { background: #e65100; }
.red   { background: #c62828; }

.flag-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.flag-item:last-child { border-bottom: none; }

.flag-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}
.dot-high     { background: #c62828; }
.dot-medium   { background: #e65100; }
.dot-low      { background: #f9a825; }
.dot-positive { background: #2e7d32; }

.flag-text { font-size: 0.9rem; line-height: 1.5; color: #1a1a2e; }
.flag-meta { font-size: 0.75rem; color: #bbb; margin-top: 2px; }

.missing-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.missing-tag {
  background: #fafafa; border: 1px solid #eee;
  border-radius: 6px; padding: 5px 10px;
  font-size: 0.82rem; color: #888;
}

.hidden { display: none; }
.seo-content {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.seo-content h1 {
    font-size: 2.5em;
    color: #1a73e8;
    margin-bottom: 15px;
    font-weight: bold;
}

.seo-content h2 {
    font-size: 1.8em;
    color: #1a73e8;
    margin-top: 30px;
    margin-bottom: 10px;
}

.seo-content h3 {
    font-size: 1.3em;
    color: #333;
    margin-top: 20px;
}

.seo-content p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #555;
}

.seo-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.seo-content li {
    margin-bottom: 10px;
    font-size: 1em;
}