.fdai-checker-shell {
  --fdai-bg: #0b1020;
  --fdai-card: #ffffff;
  --fdai-text: #13203a;
  --fdai-muted: #61708e;
  --fdai-border: #e6eaf2;
  --fdai-ok: #16a34a;
  --fdai-warn: #f59e0b;
  --fdai-bad: #dc2626;
  --fdai-soft: #eef3ff;
  --fdai-muted-tone: #7c879a;
  --fdai-shadow: 0 18px 60px rgba(11, 16, 32, 0.08);
  max-width: 1080px;
  margin: 30px auto;
  color: var(--fdai-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fdai-checker-card,
.fdai-results,
.fdai-observation-card,
.fdai-item-card {
  background: var(--fdai-card);
  border: 1px solid var(--fdai-border);
  border-radius: 24px;
  box-shadow: var(--fdai-shadow);
}

.fdai-checker-card {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.09), transparent 32%),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.10), transparent 28%),
    var(--fdai-card);
}

.fdai-results {
  margin-top: 24px;
  padding: 22px;
}

.fdai-hero h2,
.fdai-checker-hero h2,
.fdai-results-head h3 {
  margin: 10px 0 8px;
  line-height: 1.08;
}

.fdai-checker-hero h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.fdai-checker-hero p,
.fdai-results-head p,
.fdai-observation-card p,
.fdai-note-box p,
.fdai-mini-card p,
.fdai-item-subtitle,
.fdai-disclaimer,
.fdai-status {
  color: var(--fdai-muted);
}

.fdai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fdai-pill-muted {
  background: #f4f6fb;
  color: var(--fdai-muted-tone);
}

.fdai-grid {
  display: grid;
  gap: 16px;
}

.fdai-grid-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fdai-field {
  margin-top: 18px;
}

.fdai-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.fdai-field input,
.fdai-field select,
.fdai-field textarea {
  width: 100%;
  border: 1px solid var(--fdai-border);
  background: #fbfcfe;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fdai-text);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fdai-field input:focus,
.fdai-field select:focus,
.fdai-field textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  background: #fff;
}

.fdai-field textarea {
  min-height: 180px;
  resize: vertical;
}

.fdai-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.fdai-disclaimer {
  margin: 0;
  font-size: 13px;
  max-width: 720px;
}

.fdai-submit {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.22);
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.fdai-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(79, 70, 229, 0.24);
}

.fdai-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.fdai-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.fdai-summary-card {
  border-radius: 20px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--fdai-border);
}

.fdai-summary-card.is-ok { background: rgba(22, 163, 74, 0.08); }
.fdai-summary-card.is-warn { background: rgba(245, 158, 11, 0.10); }
.fdai-summary-card.is-bad { background: rgba(220, 38, 38, 0.08); }
.fdai-summary-card.is-muted { background: rgba(100, 116, 139, 0.10); }

.fdai-summary-label {
  display: block;
  font-size: 13px;
  color: var(--fdai-muted);
  margin-bottom: 10px;
}

.fdai-summary-value {
  font-size: 30px;
  line-height: 1;
}

.fdai-observation-card {
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.fdai-observation-card h4 {
  margin: 0 0 8px;
}

.fdai-ingredient-list {
  display: grid;
  gap: 16px;
}

.fdai-item-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.fdai-item-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 24px 0 0 24px;
  background: #cbd5e1;
}

.fdai-item-card.is-ok::before { background: var(--fdai-ok); }
.fdai-item-card.is-warn::before { background: var(--fdai-warn); }
.fdai-item-card.is-bad::before { background: var(--fdai-bad); }
.fdai-item-card.is-muted::before { background: var(--fdai-muted-tone); }

.fdai-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fdai-item-title {
  margin: 0;
  font-size: 24px;
}

.fdai-item-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
}

.fdai-item-declaration {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--fdai-muted-tone);
  opacity: 0.7;
}

.fdai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.fdai-badge.is-ok { background: rgba(22, 163, 74, 0.12); color: #166534; }
.fdai-badge.is-warn { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.fdai-badge.is-bad { background: rgba(220, 38, 38, 0.12); color: #991b1b; }
.fdai-badge.is-muted { background: rgba(100, 116, 139, 0.14); color: #475569; }

.fdai-breakdown-alert {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 12px;
}

.fdai-breakdown-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #92400e;
}

.fdai-breakdown-alert p {
  margin: 0;
  font-size: 13px;
  color: #78350f;
}

.fdai-progress-wrap {
  margin-top: 16px;
}

.fdai-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

.fdai-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf2f7;
}

.fdai-progress-bar {
  height: 100%;
  border-radius: inherit;
}

.fdai-progress-bar.is-ok { background: linear-gradient(90deg, #22c55e, #16a34a); }
.fdai-progress-bar.is-warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.fdai-progress-bar.is-bad { background: linear-gradient(90deg, #ef4444, #dc2626); }
.fdai-progress-bar.is-muted { background: linear-gradient(90deg, #94a3b8, #64748b); }

.fdai-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fdai-mini-card,
.fdai-note-box,
.fdai-support-box {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--fdai-border);
  padding: 14px 15px;
}

.fdai-mini-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fdai-muted-tone);
  margin-bottom: 7px;
  font-weight: 800;
}

.fdai-mini-card p,
.fdai-note-box p,
.fdai-support-box p {
  margin: 0;
}

.fdai-note-box,
.fdai-support-box {
  margin-top: 14px;
}

.fdai-note-soft {
  background: #fcfcfd;
}

.fdai-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fdai-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

.fdai-status {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}

.fdai-status.is-visible {
  display: block;
}

.fdai-status.is-error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .fdai-grid-top,
  .fdai-summary-grid,
  .fdai-item-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .fdai-checker-card,
  .fdai-results,
  .fdai-item-card {
    padding: 18px;
    border-radius: 20px;
  }

  .fdai-grid-top,
  .fdai-summary-grid,
  .fdai-item-grid {
    grid-template-columns: 1fr;
  }

  .fdai-footer-row,
  .fdai-item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .fdai-submit {
    width: 100%;
  }

  .fdai-badge {
    white-space: normal;
  }
}


.fdai-legal-note {
  margin: 18px 4px 2px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fdai-muted-tone);
}

.fdai-cta-box {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

.fdai-cta-box h3 {
  margin: 0 0 20px;
  font-size: clamp(18px, 3vw, 24px);
  color: #ffffff;
  line-height: 1.3;
}

.fdai-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ffffff;
  color: #16a34a;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fdai-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fdai-cta-button svg {
  flex-shrink: 0;
}
