.erc-container {
  max-width: 1020px;
}

.erc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #32145f;
}

.erc-textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #d7caf8;
  border-radius: 12px;
  padding: 16px;
  background: #fcfbff;
  font: 15px/1.6 'Poppins', Arial, sans-serif;
  color: #27165b;
}

.erc-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.erc-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

/* Results */
.erc-results {
  margin-top: 28px;
}

.erc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.erc-stat-card {
  background: linear-gradient(180deg, #f7f3ff 0%, #f0ebff 100%);
  border: 1px solid #d8d2f2;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

.erc-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #5b21b6;
  line-height: 1;
}

.erc-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Score cards */
.erc-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .erc-score-row { grid-template-columns: 1fr; }
}

.erc-score-card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #d8d2f2;
  background: linear-gradient(180deg, #ffffff 0%, #f9f6ff 100%);
}

.erc-score-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 8px;
}

.erc-score-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

.erc-score-desc {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 6px 0 12px;
}

.erc-score-bar-wrap {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.erc-score-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
}

/* Sections */
.erc-section {
  margin-bottom: 22px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
}

.erc-section h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #1a1a2e;
}

.erc-section-note {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.erc-section ul {
  margin: 0;
  padding-left: 20px;
}

.erc-section li {
  font-size: 0.92rem;
  color: #374151;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Spam tags */
.erc-spam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.erc-spam-tag {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Color variants for score bar */
.bar-good    { background: linear-gradient(90deg, #10b981, #059669); }
.bar-ok      { background: linear-gradient(90deg, #f59e0b, #d97706); }
.bar-hard    { background: linear-gradient(90deg, #ef4444, #dc2626); }
