:root {
  --bg: #f5f7fb;
  --surface: rgba(255,255,255,.9);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --shadow: 0 20px 50px rgba(15,23,42,.12);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(22,163,74,.12), transparent 28%),
    var(--bg);
  min-height: 100vh;
  padding: 32px;
}
.page { max-width: 1120px; margin: 0 auto; }
.card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 24px; }
.hero { padding: 36px; }
.eyebrow { display: inline-flex; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 13px; padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.055em; }
h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.025em; }
.subtitle, .helper, .note { color: var(--muted); line-height: 1.55; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.locale-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
label { font-weight: 700; font-size: 14px; }
input[type="date"], input[type="email"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.period-preset { margin-top: 18px; }
.selection-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.mini-button { border: 1px solid var(--line); background: white; color: var(--text); padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 900; cursor: pointer; }
.mini-button:hover { background: #f8fafc; }
.check-card, .radio-card { position: relative; }
.check-card input[type="checkbox"], .radio-card input[type="radio"] { position: absolute; opacity: 0; }
.check-card > span {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 15px;
  border-radius: 16px; border: 1px solid var(--line); background: #f1f5f9; color: #94a3b8;
  cursor: pointer; font-weight: 800; transition: .2s ease; filter: grayscale(1); opacity: .65;
}
.check-card > span::before {
  content: ""; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #cbd5e1;
  background: #e5e7eb; flex: 0 0 auto; transition: .2s ease;
}
.check-card input:checked + span {
  border-color: var(--green); background: var(--green-soft); color: #14532d;
  box-shadow: 0 12px 24px rgba(22,163,74,.16); filter: none; opacity: 1;
}
.check-card input:checked + span::before {
  content: "✓"; display: grid; place-items: center; background: var(--green); border-color: var(--green);
  color: white; font-weight: 900; font-size: 16px;
}
.locale-card > span { min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 13px; }
.locale-card > span::before { width: 18px; height: 18px; border-radius: 6px; }
.locale-card input:checked + span::before { font-size: 12px; }
.locale-line { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locale-code { font-weight: 900; color: inherit; }
.locale-meta { color: inherit; opacity: .78; font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.radio-card span {
  display: block; min-height: 96px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--line); background: white; cursor: pointer; transition: .2s ease;
}
.radio-card input:checked + span { border-color: var(--brand); background: #eff6ff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(37,99,235,.12); }
.radio-title { display: block; font-size: 18px; font-weight: 900; }
.radio-icon { font-size: 27px; margin-bottom: 8px; display: block; }
.radio-copy { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.45; }
.custom-locales-panel { display: none; margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(248,250,252,.85); }
.custom-locales-panel.visible { display: block; }
.email-panel { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(248,250,252,.85); }
.email-field { display: none; margin-top: 14px; }
.email-field.visible { display: block; }
.actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
button, .button-link {
  border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 800;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary { color: white; background: linear-gradient(135deg, var(--brand), #0f766e); box-shadow: 0 14px 30px rgba(37,99,235,.24); }
.btn-secondary { color: var(--text); background: #eef2f7; }
.progress-wrap { background: #e5e7eb; border-radius: 999px; overflow: hidden; height: 18px; margin: 24px 0 12px; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(135deg, var(--brand), #0f766e); transition: width .4s ease; }
.status-line { font-size: 18px; font-weight: 900; }
.processing-card { margin-top: 22px; display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; border: 1px solid var(--line); background: white; border-radius: 20px; padding: 18px; overflow: hidden; }
.processing-icon { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: #eff6ff; animation: breathe 1.8s ease-in-out infinite; }
.processing-name { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.processing-sub { color: var(--muted); line-height: 1.45; }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(37,99,235,0); } 50% { transform: scale(1.05); box-shadow: 0 18px 30px rgba(37,99,235,.18); } }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: white; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #eff6ff; color: var(--brand-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
td:last-child, th:last-child { text-align: right; }
.total-row td { font-weight: 900; background: #f0fdf4; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { background: #f8fafc; border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; }
.chart { display: grid; gap: 14px; margin-top: 18px; }
.chart-row { display: grid; grid-template-columns: 230px 1fr 96px; gap: 14px; align-items: center; }
.chart-label { font-weight: 800; color: var(--text); }
.chart-value { text-align: right; font-weight: 900; color: var(--text); }
.chart-track { height: 18px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.chart-bar { height: 100%; width: 0%; border-radius: 999px; animation: growBar 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes growBar { from { width: 0%; } to { width: var(--bar-width); } }
@media (max-width: 900px) {
  body { padding: 20px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .locale-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .scope-grid { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 1fr; gap: 7px; }
  .chart-value { text-align: left; }
}
@media (max-width: 620px) {
  body { padding: 14px; }
  .grid-2, .industry-grid, .locale-grid, .scope-grid { grid-template-columns: 1fr; }
  .card, .hero { padding: 22px; border-radius: 18px; }
  .actions { flex-direction: column-reverse; }
  button, .button-link { width: 100%; text-align: center; }
  .processing-card { grid-template-columns: 1fr; }
}
