:root {
  --bg: #0b0c10;
  --panel: #11131a;
  --muted: #9aa3b2;
  --text: #e9edf3;
  --accent: #6ee7b7;
  --accent-strong: #34d399;
  --danger: #f87171;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 70% -10%, #182033 0%, #0b0c10 60%);
  color: var(--text);
}
/* light theme removed */

.app-header {
  padding: 32px 24px 8px;
  text-align: center;
}
.app-header h1 { margin: 0 0 8px; font-size: 28px; }
.subtitle { margin: 0; color: var(--muted); }
.btn { padding: 8px 12px; border-radius: 10px; border: 1px solid #374151; background: #1f2937; color: #e5e7eb; cursor: pointer; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.uploader { margin-top: 8px; }

.dropzone {
  position: relative;
  border: 1px dashed #2b3245;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: 16px;
  padding: 32px;
  outline: none;
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.dropzone:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,0.25); }
.dropzone.dragover { border-color: var(--accent); transform: scale(1.01); background: rgba(52,211,153,0.08); }
.dz-content { display: flex; align-items: center; gap: 16px; justify-content: center; }
.dz-icon { font-size: 36px; }
.dz-title { font-weight: 600; font-size: 18px; }
.dz-subtitle { color: var(--muted); font-size: 14px; }

#file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.preview { margin-top: 16px; display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.preview img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #2b3245; background: #0d1117; }
.image-info { color: var(--muted); font-size: 13px; }

.results { margin-top: 24px; background: var(--panel); border: 1px solid #2b3245; border-radius: 16px; padding: 20px; }
.verdict-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge { padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #1f2937; border: 1px solid #374151; }
.badge.ai { background: rgba(248,113,113,0.12); color: #fecaca; border-color: rgba(248,113,113,0.4); }
.badge.real { background: rgba(110,231,183,0.12); color: #d1fae5; border-color: rgba(110,231,183,0.4); }
.confidence { color: var(--muted); font-size: 14px; }

.reasons { margin: 0; padding-left: 18px; }
.reasons li { margin: 6px 0; }

.raw-meta { margin-top: 12px; }
.raw-meta summary { cursor: pointer; color: var(--muted); }
.raw-meta pre { margin: 8px 0 0; padding: 12px; border-radius: 12px; background: #0d1117; border: 1px solid #2b3245; color: #e5e7eb; overflow: auto; max-height: 300px; }
.raw-meta #breakdown-content { margin-top: 8px; font-size: 14px; color: var(--text); }
.raw-meta .bar { height: 8px; border-radius: 6px; background: #1f2937; border: 1px solid #374151; overflow: hidden; }
.raw-meta .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); width: 0; }
.raw-meta .row { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: center; margin: 8px 0; }
.raw-meta .row .label { color: var(--muted); }

.notes { margin-top: 20px; color: var(--muted); font-size: 13px; }

.app-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 32px 24px; }

.hidden { display: none; }

@media (max-width: 720px) {
  .preview { grid-template-columns: 1fr; }
}


