:root {
  --primary: #22c55e;
  --primary-alt: #22d3ee;
  --bg: #020617;
  --card-bg: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --danger: #f87171;
  --warning: #facc15;
  --success: #22c55e;
  --radius-lg: 18px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 50%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 50%),
    #020617;
  color: var(--text);
  padding: 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 960px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(34, 197, 94, 0.15);
  backdrop-filter: blur(18px);
}

/* HEADER */
.app-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 8px;
}

.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.logo-mark img {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.6),
    0 0 20px rgba(34, 211, 238, 0.4);
}

.brand-text {
  text-align: left;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 6px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* PROGRESSO */
.progress-container {
  margin: 8px 0 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #020617;
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-alt));
  transition: width 0.25s ease-out;
}

.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 10px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.step-circle.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  transform: scale(1.1);
}

.step-circle.completed {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-circle.completed::after {
  content: '✓';
  position: absolute;
  font-size: 1rem;
}

.step-circle.completed span {
  display: none;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #334155;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-line.completed {
  background: var(--primary);
}

/* TITULOS */
.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 4px;
}

.step-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* STEPS */
.step {
  display: none;
  animation: fadeIn 0.2s ease-out;
  margin-top: 0;
  padding-top: 0;
}
.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ECONOMIA - campos inicialmente escondidos */
#econ-fields {
  display: none;
}

/* GRID / CARDS PERGUNTAS */
.questions-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .questions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.question-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.question-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

/* OPÇÕES RADIO */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.12s ease;
}

.option:hover {
  border-color: var(--primary-alt);
}

.option input {
  opacity: 0;
  position: absolute;
}

.option-circle {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #64748b;
}

.option-text {
  font-size: 0.85rem;
}

.option.selected {
  background: linear-gradient(90deg, rgba(34,197,94,0.15), rgba(34,211,238,0.15));
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.5),
    0 0 10px rgba(34, 211, 238, 0.3);
}

.option.selected .option-circle {
  background: var(--primary);
  border-color: var(--primary-alt);
}

/* INPUTS */
.input-control,
select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #020617;
  color: var(--text);
  font-size: 0.85rem;
}

.input-control:focus,
select:focus {
  outline: none;
  border-color: var(--primary-alt);
  box-shadow: 0 0 4px var(--primary-alt);
}

.field-group {
  margin-top: 10px;
}
.field-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* BOTÕES */
button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-alt));
  color: white;
  box-shadow:
    0 8px 20px rgba(34, 197, 94, 0.4),
    0 0 12px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
  background: #0f172a;
  border: 1px solid #334155;
  color: var(--muted);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* RESULTADO / TAGS */
.result-header {
  margin-top: 6px;
}

.score-pill {
  margin-top: 8px;
  background: #020617;
  border-radius: 18px;
  border: 1px solid #334155;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.score-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.result-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .result-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.dimension-tags {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
  margin-top: 8px;
}

.tag {
  padding: 10px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.tag-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  width: fit-content;
}

.tag-chip.high {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--success);
}

.tag-chip.medium {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--warning);
}

.tag-chip.low {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--danger);
}

.list {
  list-style: disc;
  margin-left: 18px;
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 4px;
}

/* FOOTER RESULTADO */
.result-footer {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.pill {
  background: #020617;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid #1e293b;
}

/* DIMENSION SCORE BOX (RADAR) */
.dimension-score-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.dimension-score-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.dimension-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.dimension-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.dimension-score {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.dimension-desc {
  font-size: 0.7rem;
  color: var(--muted);
}

/* BOTÕES FINAIS */
.restart-btn {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* NAVBAR */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.82rem;
}

.nav-left {
  color: var(--muted);
}

.nav-buttons {
  display: flex;
  gap: 8px;
}

/* ADS AREA */
.ads-area {
  margin-bottom: 16px;
}

/* GENÉRICO */
.hidden {
  display: none !important;
}
/* CSS content */