/* GLX PRO Account — web e celular (mesmo visual da Central de Inteligência do programa) */
:root {
  --bg0: #0A0F1F; --bg1: #0D1430; --card: rgba(255,255,255,.045); --card2: rgba(255,255,255,.07);
  --line: rgba(148,163,255,.16); --line2: rgba(148,163,255,.30);
  --txt: #E8ECF8; --sub: #8C96B8; --dim: #5B6588; --head: #FFFFFF;
  --cyan: #22D3EE; --green: #34D399; --blue: #60A5FA; --red: #F87171; --amber: #FBBF24;
  --violet: #A78BFA; --indigo: #818CF8; --slate: #94A3B8; --accent: #5B7CFF;
  --radius: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--txt);
  background: var(--bg0); overflow-x: hidden;
}
#bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vw 60vw at 8% -10%, rgba(129,140,248,.20), transparent 60%),
    radial-gradient(50vw 50vw at 100% 20%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(70vw 70vw at 50% 110%, rgba(167,139,250,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
#bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(148,163,255,.12) 1px, transparent 1px); background-size: 28px 28px;
}
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- login */
.screen#login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(400px, 100%); padding: 30px 24px 22px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); backdrop-filter: blur(14px); display: grid; gap: 12px; text-align: center;
}
.login-logo { width: 74px; height: 74px; margin: 0 auto 4px; filter: drop-shadow(0 0 18px rgba(34,211,238,.35)); }
.login-card h1 { margin: 0 0 6px; font-size: 24px; color: var(--head); }
.login-card label { text-align: left; font-size: 12px; color: var(--sub); font-weight: 600; display: grid; gap: 6px; }
.fine { color: var(--dim); font-size: 11px; letter-spacing: 1.5px; margin: 6px 0 0; }
.kicker {
  font-family: var(--num); font-size: 12px; letter-spacing: 5px; font-weight: 600;
  background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--violet)); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.error { color: var(--red); min-height: 1.2em; margin: 0; font-size: 13px; }

input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(10,15,35,.6); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(129,140,248,.18); }
textarea { min-height: 80px; resize: vertical; }
select option { background: #121A35; }

.btn {
  border: 1px solid var(--line2); background: var(--card2); padding: 9px 14px; border-radius: 12px;
  cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #5B7CFF, #7C5BFF); border-color: transparent; color: #fff;
  box-shadow: 0 6px 22px rgba(91,124,255,.35); }
.btn.big { padding: 13px; font-size: 16px; }
.btn.danger { color: var(--red); border-color: rgba(248,113,113,.4); }
.link { background: none; border: none; color: var(--sub); cursor: pointer; padding: 4px 0; }

/* ---------- estrutura */
#app { min-height: 100%; }
.side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px; padding: 22px 14px; display: flex; flex-direction: column;
  background: rgba(8,12,26,.72); border-right: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 5;
}
.brand { display: flex; gap: 10px; align-items: center; margin: 0 6px 26px; font-weight: 800; letter-spacing: 1px; }
.brand img { width: 38px; height: 38px; }
.brand small { font-weight: 600; color: var(--sub); letter-spacing: 3px; font-size: 10px; }
#nav { display: grid; gap: 4px; }
#nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; color: #C9CEDC; }
#nav a.on { background: linear-gradient(135deg, rgba(91,124,255,.9), rgba(124,91,255,.85)); color: #fff;
  box-shadow: 0 6px 20px rgba(91,124,255,.3); }
.me { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
#me-name { font-weight: 700; }
main { margin-left: 220px; padding: 26px 28px 40px; max-width: 1500px; }

/* ícones desenhados em CSS (sem fontes externas) */
.ic { width: 20px; height: 20px; display: inline-block; position: relative; flex: none; }
.ic::before, .ic::after { content: ""; position: absolute; border: 2px solid currentColor; border-radius: 4px; }
.ic-dash::before { inset: 2px 10px 10px 2px; } .ic-dash::after { inset: 10px 2px 2px 10px; border-radius: 50%; }
.ic-board::before { inset: 2px 12px 2px 2px; } .ic-board::after { inset: 2px 2px 8px 12px; }
.ic-build::before { inset: 3px 4px 1px 4px; border-radius: 3px 3px 1px 1px; }
.ic-build::after { left: 8px; right: 8px; top: 7px; height: 4px; border-width: 2px 0; border-radius: 0; }
.ic-bell::before { inset: 2px 3px 5px 3px; border-radius: 9px 9px 3px 3px; }
.ic-bell::after { left: 8px; bottom: 1px; width: 4px; height: 3px; border-radius: 2px; }
.ic-cal::before { inset: 4px 2px 2px 2px; border-radius: 4px; } .ic-cal::after { left: 2px; right: 2px; top: 8px; height: 0; border-width: 2px 0 0; border-radius: 0; }
.ic-group::before { inset: 2px 9px 9px 2px; border-radius: 4px; } .ic-group::after { inset: 9px 2px 2px 9px; border-radius: 4px; }
.ic-team::before { left: 6px; top: 1px; width: 8px; height: 8px; border-radius: 50%; } .ic-team::after { left: 2px; right: 2px; bottom: 1px; height: 7px; border-radius: 8px 8px 2px 2px; }

/* ---------- cabeçalho das páginas */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { margin: 2px 0 0; font-size: 28px; color: var(--head); }
.page-head .sub { color: var(--sub); font-size: 13px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--cyan); background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.35); }
.section { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; font-weight: 700; font-size: 17px; color: var(--head); }
.section::before { content: "◆"; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); font-size: 12px; }
.section::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(34,211,238,.5), transparent); }

/* ---------- cartões */
.glass { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { padding: 14px 16px 16px; position: relative; overflow: hidden; }
.kpi .lbl { font-size: 10.5px; letter-spacing: 2px; font-weight: 700; color: var(--sub); text-transform: uppercase;
  display: flex; gap: 7px; align-items: center; }
.kpi .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.kpi .val { font-family: var(--num); font-size: 36px; font-weight: 600; color: var(--c); text-shadow: 0 0 22px var(--c); line-height: 1.15; }
.kpi .hint { font-size: 11px; color: var(--sub); }
.kpi .bar { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); }
.kpi .bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c));
  box-shadow: 0 0 10px var(--c); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.kpi.click { cursor: pointer; }

.dash-row { display: grid; grid-template-columns: 340px 1fr; gap: 14px; margin-top: 14px; }
.card { padding: 16px 18px; }
.card h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 2px; color: var(--sub); text-transform: uppercase; }

/* anel giratório */
.ring { position: relative; width: 240px; height: 240px; margin: 6px auto; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .spin { transform-origin: 120px 120px; animation: spin 18s linear infinite; }
.ring .spin2 { transform-origin: 120px 120px; animation: spin 9s linear infinite reverse; }
.ring .comet { transform-origin: 120px 120px; animation: spin 4s linear infinite; }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .big { font-family: var(--num); font-size: 46px; font-weight: 600; color: var(--head); line-height: 1; }
.ring .cap { font-size: 10.5px; letter-spacing: 2px; color: var(--sub); font-weight: 700; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--sub); }
.legend b { color: var(--txt); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.progress .track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress .track i { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1s ease;
  background: linear-gradient(90deg, rgba(52,211,153,.4), var(--green)); box-shadow: 0 0 14px var(--green); }
.progress b { font-family: var(--num); font-size: 20px; color: var(--green); }

.list { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 2px; border-bottom: 1px solid rgba(148,163,255,.10); cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row .t { font-weight: 600; }
.row .m { font-size: 12px; color: var(--sub); }
.row .s { font-size: 12px; font-weight: 700; text-align: right; align-self: center; }
.empty { color: var(--sub); padding: 18px 4px; text-align: center; }

/* ---------- Kanban */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 260px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; cursor: pointer; color: var(--sub); font-weight: 600; }
.seg button.on { background: rgba(91,124,255,.9); color: #fff; }
.toggle { display: inline-flex; gap: 8px; align-items: center; color: var(--sub); cursor: pointer; font-size: 14px; }
.toggle input { width: auto; }
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.col { padding: 12px; min-height: 120px; }
.col-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 10px; font-weight: 700; }
.col-head .n { font-size: 12px; color: var(--sub); background: rgba(255,255,255,.06); padding: 1px 8px; border-radius: 999px; }
.col-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); margin-right: 8px; }
.col-head span:first-child { margin-right: auto; }
.tcard { padding: 11px 12px; margin-bottom: 9px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border-left: 3px solid var(--c); cursor: pointer; }
.tcard .t { font-weight: 600; margin-bottom: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--sub); }
.tag { padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.06); }
.tag.late { color: var(--red); background: rgba(248,113,113,.12); }
.tag.soon { color: var(--amber); background: rgba(251,191,36,.12); }
.tag.ob { color: var(--cyan); background: rgba(34,211,238,.10); }

/* ---------- empresas */
.companies { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.comp { padding: 14px 16px; cursor: pointer; }
.comp .top { display: flex; gap: 10px; align-items: baseline; }
.comp .code { font-family: var(--num); color: var(--cyan); font-weight: 600; }
.comp .name { font-weight: 700; flex: 1; }
.comp .meta { font-size: 12.5px; color: var(--sub); margin-top: 4px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.b-ok { color: var(--green); background: rgba(52,211,153,.12); }
.b-warn { color: var(--amber); background: rgba(251,191,36,.12); }
.b-bad { color: var(--red); background: rgba(248,113,113,.12); }
.b-pend { color: var(--amber); background: rgba(251,191,36,.10); border: 1px dashed rgba(251,191,36,.5); }
.b-muted { color: var(--sub); background: rgba(255,255,255,.06); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- lembretes */
.rem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 9px; }
.rem .chk { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line2); flex: none; cursor: pointer;
  display: grid; place-items: center; background: none; padding: 0; }
.rem.done .chk { background: var(--green); border-color: var(--green); }
.rem.done .chk::after { content: ""; width: 10px; height: 6px; border: 2px solid #0A0F1F; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.rem .body { flex: 1; }
.rem.done .t { text-decoration: line-through; color: var(--sub); }
.rem .m { font-size: 12px; color: var(--sub); }
.rem .imp { color: var(--amber); }
.rem .del { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 18px; }

/* ---------- folha (bottom sheet) */
.sheet-back { position: fixed; inset: 0; background: rgba(3,6,16,.6); backdrop-filter: blur(2px); z-index: 20; }
.sheet {
  position: fixed; z-index: 21; left: 50%; bottom: 0; transform: translateX(-50%); width: min(620px, 100%);
  max-height: 88vh; overflow: auto; padding: 8px 20px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0;
  background: #10172F; border: 1px solid var(--line2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0,0,0,.5);
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translate(-50%, 40px); opacity: .3; } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); margin: 4px auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; color: var(--head); }
.sheet .sub { color: var(--sub); font-size: 13px; margin-bottom: 14px; }
.form { display: grid; gap: 10px; }
.form label { font-size: 12px; color: var(--sub); font-weight: 600; display: grid; gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.status-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 16px; }
.status-pick button { padding: 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; font-weight: 700; }
.status-pick button.on { border-color: var(--c); color: var(--c); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--c); }
.comments { display: grid; gap: 8px; margin: 8px 0; }
.comment { padding: 9px 11px; border-radius: 12px; background: var(--card); font-size: 14px; }
.comment .who { font-size: 11.5px; color: var(--sub); }

.fab { position: fixed; right: 22px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%; border: 0; z-index: 6;
  background: linear-gradient(135deg, #5B7CFF, #7C5BFF); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 30px rgba(91,124,255,.45); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--safe-b)); z-index: 30;
  background: #1E2850; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.loading { display: grid; place-items: center; padding: 60px; color: var(--sub); }
.loading::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(129,140,248,.2);
  border-top-color: var(--cyan); animation: spin .8s linear infinite; margin-bottom: 10px; }

/* ---------- celular */
@media (max-width: 900px) {
  .side { top: auto; right: 0; width: auto; height: calc(64px + var(--safe-b)); padding: 0 6px var(--safe-b);
    flex-direction: row; border-right: 0; border-top: 1px solid var(--line); background: rgba(8,12,26,.92); }
  .brand, .me { display: none; }
  #nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 0; }
  #nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 9px 2px; justify-content: center; border-radius: 0; }
  #nav a.on { background: none; box-shadow: none; color: var(--cyan); }
  #nav a.on .ic { filter: drop-shadow(0 0 6px var(--cyan)); }
  main { margin: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(90px + var(--safe-b)); }
  .page-head h2 { font-size: 24px; }
  .kpis, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:first-child { grid-column: span 2; }
  .kpi .val { font-size: 30px; }
  .dash-row { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(4, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
    margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .col { scroll-snap-align: center; }
  .toolbar input[type=search] { max-width: none; flex: 1 1 100%; }
  .fab { bottom: calc(80px + var(--safe-b)); right: 16px; }
  .kv { grid-template-columns: 110px 1fr; }
  .two { grid-template-columns: 1fr; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  .mobile-logout { display: inline-block !important; }
}
.mobile-logout { display: none; }

/* ---------- grupos, equipe, obrigações (versão web/nuvem) */
.groups { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grp { padding: 14px 16px; cursor: pointer; border-left: 4px solid var(--c, var(--indigo)); }
.grp .name { font-weight: 800; font-size: 16px; }
.grp .nums { display: flex; gap: 14px; margin-top: 8px; color: var(--sub); font-size: 13px; }
.grp .nums b { color: var(--txt); font-family: var(--num); font-size: 18px; display: block; }
.grp.archived { opacity: .55; }
.people { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #5B7CFF, #A78BFA); font-size: 14px; }
.person .t { font-weight: 700; } .person .m { color: var(--sub); font-size: 12.5px; }
.checks { max-height: 260px; overflow: auto; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; }
.checks label { display: flex !important; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px !important;
  color: var(--txt) !important; font-weight: 500 !important; cursor: pointer; }
.checks label:hover { background: var(--card2); }
.checks input { width: auto; accent-color: var(--accent); }
.checks .n { margin-left: auto; color: var(--sub); font-size: 12px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.month { width: auto !important; }
