
/* === BASE GERAL (igual etapa 2, levemente expandido) === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f1015;
  color: #f5f5ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top, #24243e, #0f1015 60%);
  border-radius: 24px;
  padding: 24px 22px 26px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
  border: 1px solid rgba(104,117,245,0.35);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.orb {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 20%, #e5ddff, #7c5cff, #3827a6);
  box-shadow: 0 0 22px rgba(124,92,255,0.85);
  position: relative;
  overflow: hidden;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.45), transparent 60%);
  mix-blend-mode: screen;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-title span.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3ff;
}

.app-title h1 {
  font-size: 18px;
  font-weight: 600;
}

.app-sub {
  font-size: 12px;
  color: #bdbde9;
  margin-bottom: 18px;
}

.card {
  background: rgba(12,12,23,0.92);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(120,120,180,0.45);
  margin-bottom: 14px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(88,101,242,0.18);
  color: #c3c5ff;
  border: 1px solid rgba(124,138,255,0.6);
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-main {
  display: flex;
  flex-direction: column;
}

.score-value {
  font-size: 26px;
  font-weight: 600;
}

.score-label {
  font-size: 11px;
  color: #9ea0d9;
}

.score-pill {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,200,0,0.06);
  border: 1px solid rgba(255,204,0,0.45);
  color: #ffd666;
}

.app-footer {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  all: unset;
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cff, #5a3bff);
  color: #fdfdff;
  box-shadow: 0 14px 30px rgba(60,45,160,0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(60,45,160,0.9);
}

.btn-ghost {
  border: 1px solid rgba(140,140,210,0.65);
  color: #d7d8ff;
  background: rgba(10,10,20,0.85);
}

.btn-ghost:hover {
  background: rgba(25,25,45,0.95);
}

.link-sm {
  font-size: 11px;
  text-align: center;
  color: #9ba0ff;
  margin-top: 4px;
}

.link-sm a {
  color: #c4c7ff;
  text-decoration: none;
}
.link-sm a:hover {
  text-decoration: underline;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

label {
  font-size: 11px;
  color: #c5c7ff;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: rgba(12,12,23,0.9);
  border-radius: 12px;
  border: 1px solid rgba(100,100,170,0.7);
  padding: 8px 11px;
  color: #f5f5ff;
  font-size: 12px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input::placeholder,
textarea::placeholder {
  color: #7477a8;
}

.small-note {
  font-size: 11px;
  color: #a7aadf;
  margin-top: 4px;
}

.alert {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.alert-error {
  background: rgba(255,77,109,0.08);
  border: 1px solid rgba(255,77,109,0.5);
  color: #ffc4d0;
}

.alert-ok {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.55);
  color: #c7f5d5;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  color: #a7aadf;
}

.chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(112,122,255,0.16);
  border: 1px solid rgba(142,152,255,0.7);
  font-size: 10px;
}

.mission-text {
  font-size: 12px;
  color: #d7d8ff;
}

.mission-meta {
  font-size: 11px;
  color: #a0a2d5;
  margin-top: 6px;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.insight-item {
  font-size: 11px;
  color: #cfd1ff;
  padding-left: 10px;
  position: relative;
}
.insight-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #9fa3ff;
}

/* === NOVOS ELEMENTOS ETAPA 3 === */

.badge-soft {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 150, 220, 0.4);
  color: #d6d7ff;
}

.progress-wrap {
  margin-top: 6px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 38, 70, 0.9);
  overflow: hidden;
}

.progress-inner-low {
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2ecc71, #a8e063);
}

.progress-inner-mid {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.progress-inner-high {
  height: 100%;
  width: 90%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d6d, #c81d77);
}

.history-pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(25, 28, 60, 0.95);
  border: 1px solid rgba(120, 125, 220, 0.7);
}

.history-item {
  font-size: 11px;
  color: #d7d9ff;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(10, 11, 26, 0.9);
  border: 1px solid rgba(60, 60, 120, 0.8);
  margin-bottom: 6px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 10px;
  color: #9ea2e0;
}

.tag-risk-baixo {
  color: #2ecc71;
}

.tag-risk-moderado {
  color: #f1c40f;
}

.tag-risk-alto {
  color: #ff6b81;
}

.xp-chip {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.65);
  font-size: 10px;
  color: #bdf7ce;
}

.btn-secondary {
  all: unset;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(130,130,220,0.7);
  color: #d6d7ff;
  cursor: pointer;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Pequena responsividade */
@media (max-width: 480px) {
  .app-shell {
    border-radius: 0;
    max-width: 100%;
    height: 100vh;
  }
}
