:root{
  --bg0:#0b1220;
  --bg1:#0e1a2e;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --accent:#22c55e; /* verde estilo Ideias */
  --danger:#ef4444;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);

  /* Background base (imagem) */
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(1100px 700px at 90% 20%, rgba(59,130,246,.16), transparent 55%),
    linear-gradient(180deg, rgba(11,18,32,.45), rgba(14,26,46,.65)),
    url("assets/background.png");

  background-size:
    auto,
    auto,
    auto,
    cover;

  background-position:
    center,
    center,
    center,
    center;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;

  background-attachment: fixed;

  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 400px at 20% 80%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(800px 500px at 85% 85%, rgba(56,189,248,.10), transparent 55%);
  filter: blur(0px);
  pointer-events:none;
}

.topbar{
  width: min(1100px, calc(100% - 24px));
  margin: 18px auto 10px auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  height:40px;
  width:auto;
  border-radius:8px;
  box-shadow: var(--shadow);
}

.brand-title{ font-weight:800; letter-spacing:.2px; font-size:16px; }
.brand-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.pill{
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  font-size:12px;
  color:rgba(234,240,255,.78);
  white-space:nowrap;
}

.wrap{
  width:min(1100px, calc(100% - 24px));
  margin: 0 auto 22px auto;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
}

h1{
  margin: 2px 0 8px 0;
  font-size: 22px;
  letter-spacing:.2px;
}
.muted{ color: var(--muted); }
.hint{ color: rgba(234,240,255,.66); font-size:12px; margin: 8px 0 0 0; }

.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 14px 0;
}

.form{ display:flex; flex-direction:column; gap:16px; }
.field{ display:flex; flex-direction:column; gap:8px; }

.label{
  font-weight:700;
  font-size:13px;
  color: rgba(234,240,255,.9);
}
.label.small{ font-weight:700; font-size:12px; color: rgba(234,240,255,.85); }

.radio-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.radio{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  user-select:none;
}

.radio input{ accent-color: var(--accent); }

.subcard{
  margin-top: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.10);
}

.hidden{ display:none !important; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.input, .textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
}
.input::placeholder, .textarea::placeholder{ color: rgba(234,240,255,.45); }
.input:focus, .textarea:focus{
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  user-select:none;
}
.chip input{ accent-color: var(--accent); }

.notice{
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(34,197,94,.22);
}
.notice-title{
  font-weight:900;
  margin-bottom: 8px;
  letter-spacing:.2px;
}
.notice ul{
  margin: 8px 0 10px 18px;
  color: rgba(234,240,255,.82);
}
.notice li{ margin: 6px 0; }

.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.btn{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  cursor:pointer;
  font-weight:800;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn.primary{
  background: linear-gradient(180deg, rgba(34,197,94,.95), rgba(34,197,94,.78));
  color:#052012;
  border-color: rgba(34,197,94,.55);
}
.btn.secondary{
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.88);
}

.btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.spinner{
  width:16px; height:16px;
  border-radius:50%;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: rgba(0,0,0,.75);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.formmsg{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
}
.formmsg.ok{
  border-color: rgba(34,197,94,.40);
  background: rgba(34,197,94,.10);
}
.formmsg.err{
  border-color: rgba(239,68,68,.40);
  background: rgba(239,68,68,.10);
}

.filelist{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.fileitem{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: rgba(234,240,255,.85);
}

.foot{
  width:min(1100px, calc(100% - 24px));
  margin: 16px auto 28px auto;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 820px){
  .grid2{ grid-template-columns:1fr; }
  .topbar{ flex-direction:column; align-items:flex-start; }
  .actions{ justify-content:stretch; }
  .btn{ width:100%; justify-content:center; }
}
