/* NeuroEvolutio Center — tema claro clínico (azul/teal/violeta). */
:root {
  --blue: #2563eb; --teal: #0891b2; --violet: #7c3aed; --green: #16a34a; --amber: #f59e0b; --rose: #e11d48;
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f1f5fb; --card: #fff; --soft: #f8fafc;
  --radius: 16px; --shadow: 0 6px 24px rgba(15,23,42,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1100px 560px at 50% -10%, #ede9fe 0%, var(--bg) 60%); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }
.cc-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.cc-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.cc-brand b { color: var(--violet); }
.cc-logo { font-size: 1.5rem; }
.cc-session { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.cc-session .who { text-align: right; line-height: 1.1; }
.cc-session .who small { color: var(--muted); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.cc-main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 22px 18px 48px; }
.cc-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }
.cc-loading { text-align: center; color: var(--muted); padding: 60px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; } h2 { font-size: 1.15rem; margin: 0 0 10px; }
.muted { color: var(--muted); } .center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px;
  padding: 11px 17px; font-weight: 700; font-size: .98rem; cursor: pointer; font-family: inherit; transition: filter .15s, transform .08s; }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.btn-blue { background: var(--blue); color: #fff; } .btn-teal { background: var(--teal); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #fee2e2; color: var(--rose); border: 1px solid #fecaca; }
.btn-lg { padding: 15px 24px; font-size: 1.1rem; } .btn-block { width: 100%; }

label.field { display: block; margin-bottom: 12px; font-weight: 600; font-size: .9rem; }
label.field input, label.field select, label.field textarea { width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
label.field input:focus, label.field select:focus { outline: 2px solid var(--violet); border-color: var(--violet); }
/* Campo de senha com botão de olho (mostrar/ocultar) */
.pass-wrap { position: relative; display: block; margin-top: 5px; }
.pass-wrap input { margin-top: 0 !important; }
.pass-eye { position: absolute; top: 0; right: 0; height: 100%; width: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: #9aa3b2; border-radius: 0 10px 10px 0; padding: 0; }
.pass-eye:hover { color: var(--violet); }
.pass-eye:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.error { background: #fef2f2; color: var(--rose); border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.ok-msg { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 14px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-violet { background: #f5f3ff; color: var(--violet); } .pill-blue { background: #eff6ff; color: var(--blue); }
.pill-green { background: #f0fdf4; color: var(--green); } .pill-amber { background: #fffbeb; color: #b45309; } .pill-rose { background: #fff1f2; color: var(--rose); }

.app-card, .tool-card { cursor: pointer; transition: transform .1s, box-shadow .15s; }
.app-card:hover, .tool-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.12); }
.app-ic { font-size: 2rem; }
.quota-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.quota-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); z-index: 50; }
@media (max-width: 560px) { .cc-main { padding: 16px 12px 40px; } }

/* Modal "Sobre o aplicativo" (objetivo/ganhos/dicas) */
.app-info-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.app-info-modal { background: #fff; color: var(--ink); border-radius: 16px; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.app-info-modal h3 { color: var(--violet); }
.app-info-modal ul { color: var(--ink); }
