/* GTech Transfer — identidade GTech (#1b6ef3 → #0f4fc4, Plus Jakarta Sans) */
:root {
  --b1: #1b6ef3;
  --b2: #0f4fc4;
  --grad: linear-gradient(135deg, var(--b1), var(--b2));
  --ink: #0f172a;
  --ink2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f3f6fc;
  --card: #ffffff;
  --ok: #059669;
  --okbg: #ecfdf5;
  --warn: #b45309;
  --warnbg: #fffbeb;
  --err: #dc2626;
  --errbg: #fef2f2;
  --r: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 79, 196, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(27, 110, 243, .14), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(15, 79, 196, .10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--b1); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; word-break: break-all; }

/* ---------- topo ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; }
.brand span { font-weight: 500; }
.topnav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: .92rem; }
.topnav a { color: var(--ink2); }
.topnav .who { color: var(--muted); font-weight: 500; }
.wrap { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 24px 48px; }
.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 18px; }
body.page-center .wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---------- botões ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; padding: 10px 18px;
  font: inherit; font-weight: 700; font-size: .92rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(27, 110, 243, .6); }
.btn:hover { box-shadow: 0 10px 24px -8px rgba(27, 110, 243, .75); }
.btn:active, .btn-ghost:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink2); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d2fe; color: var(--b2); }
.btn-ghost.danger { color: var(--err); }
.btn-ghost.danger:hover { border-color: #fecaca; background: var(--errbg); }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 13px; }
.sm { padding: 7px 13px; font-size: .85rem; border-radius: 9px; }
.xs { padding: 5px 10px; font-size: .78rem; border-radius: 8px; }
.block { width: 100%; margin-top: 10px; }
.link { background: none; border: 0; color: var(--b1); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; padding: 0; }

/* ---------- cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.card.narrow { width: 100%; max-width: 440px; }
.card.wide { width: 100%; max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.stack .fld { margin-bottom: 0; }
.fld > span { font-size: .8rem; font-weight: 700; color: var(--ink2); }
.fld em { font-style: normal; font-weight: 500; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .93rem; color: var(--ink);
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--b1); background: #fff; box-shadow: 0 0 0 4px rgba(27, 110, 243, .12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-wrap .link { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.form-error { background: var(--errbg); color: var(--err); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.flash { border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 18px; }
.flash.ok { background: var(--okbg); color: var(--ok); }
.flash.err { background: var(--errbg); color: var(--err); }
.notice { background: var(--warnbg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .85rem; font-weight: 600; margin: 12px 0 0; }
.notice.ok { background: #eff6ff; color: var(--b2); }
.pill { display: inline-block; background: rgba(27, 110, 243, .1); color: var(--b2); font-weight: 700; font-size: .75rem; padding: 5px 11px; border-radius: 99px; letter-spacing: .02em; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #eef2ff; color: var(--b2); }
.tag.ok { background: var(--okbg); color: var(--ok); }
.tag.warn { background: var(--warnbg); color: var(--warn); }
.tag.muted { background: #f1f5f9; color: var(--muted); }
.badge {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eff5ff, #dfe9fe); color: var(--b2);
  font-size: .66rem; font-weight: 800; letter-spacing: .03em;
}

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: 1fr 470px; gap: 56px; align-items: start; }
.hero { padding-top: 34px; }
.hero h1 { font-size: 2.9rem; margin: 18px 0 16px; letter-spacing: -.035em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.08rem; color: var(--ink2); max-width: 520px; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 520px; }
.features li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: 12px; }
.features b { min-width: 92px; color: var(--b2); }
.features span { color: var(--ink2); font-size: .92rem; }

.uploader { position: relative; }
.drop {
  border: 2px dashed #c7d6f5; border-radius: 14px; padding: 26px 18px; text-align: center;
  background: linear-gradient(180deg, #f8fbff, #f2f6fe); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s; margin-bottom: 16px;
}
.drop:hover, .drop:focus { border-color: var(--b1); outline: none; }
.drop.over { border-color: var(--b1); background: #eaf1ff; transform: scale(1.01); }
.drop-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px; background: var(--grad); position: relative;
  box-shadow: 0 8px 20px -8px rgba(27, 110, 243, .7);
}
.drop-icon::before { content: ''; position: absolute; left: 50%; top: 14px; width: 3px; height: 22px; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.drop-icon::after { content: ''; position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); transform-origin: center; }
.drop-title { font-weight: 700; margin: 0; }
.drop p { margin: 4px 0; }
.drop-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

.files { margin-bottom: 16px; }
.files-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.files ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.files li:last-child { border-bottom: 0; }
.files li .badge { width: 34px; height: 34px; font-size: .6rem; border-radius: 8px; }
.files li.more { color: var(--muted); justify-content: center; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fsize { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.rm { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.rm:hover { color: var(--err); background: var(--errbg); }
.limit-bar { height: 4px; background: #e8eef9; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.limit-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.limit-bar span.over { background: var(--err); }

.resume { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #eff6ff; border: 1px solid #c7d6f5; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .86rem; }
.resume b { display: block; color: var(--b2); }
.resume-actions { display: flex; gap: 6px; flex: none; }

/* progresso */
.ring-wrap { position: relative; width: 200px; height: 200px; margin: 8px auto 18px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: #e8eef9; }
.ring-fg { stroke: var(--b1); stroke-linecap: round; transition: stroke-dashoffset .45s ease; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.ring-label span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stats div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stats span { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stats b { font-size: .92rem; }
#stFile { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 10px 0 4px; }
.prog-actions { display: flex; gap: 8px; justify-content: center; margin: 14px 0 10px; }

/* concluído */
.done-icon, .msg-icon { width: 72px; height: 72px; border-radius: 50%; margin: 6px auto 16px; position: relative; }
.done-icon { background: var(--grad); box-shadow: 0 12px 28px -10px rgba(27, 110, 243, .8); }
.done-icon::after { content: ''; position: absolute; left: 25px; top: 18px; width: 16px; height: 30px; border-right: 5px solid #fff; border-bottom: 5px solid #fff; transform: rotate(45deg); }
.msg-icon.warn { background: var(--warnbg); }
.msg-icon.warn::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--warn); }
.msg-icon.lock { background: #eff6ff; }
.msg-icon.lock::before { content: ''; position: absolute; left: 25px; top: 17px; width: 22px; height: 20px; border: 4px solid var(--b2); border-bottom: 0; border-radius: 12px 12px 0 0; }
.msg-icon.lock::after { content: ''; position: absolute; left: 20px; top: 33px; width: 32px; height: 24px; background: var(--grad); border-radius: 6px; }
.msg h1 { text-align: center; }
.msg p { text-align: center; }
.msg .btn { display: flex; margin-top: 16px; }
.link-box { display: flex; gap: 8px; margin: 18px 0 10px; }
.link-box input { font-size: .86rem; font-weight: 600; color: var(--b2); }
.share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ---------- download ---------- */
.dl-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.dl-head h1 { margin-top: 10px; }
.dl-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.msgbox { margin: 16px 0; padding: 14px 16px; background: #f8fafc; border-left: 4px solid var(--b1); border-radius: 0 12px 12px 0; color: var(--ink2); }
.dl-list { list-style: none; padding: 0; margin: 18px 0 10px; border: 1px solid var(--line); border-radius: 14px; }
.dl-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dl-list li:last-child { border-bottom: 0; }
.dl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hash summary { cursor: pointer; color: var(--muted); font-size: .8rem; list-style: none; }
.hash summary::-webkit-details-marker { display: none; }
.hash summary::after { content: ' ▾'; }
.hash code { display: block; margin-top: 4px; color: var(--ink2); background: #f8fafc; padding: 6px 8px; border-radius: 8px; }

/* ---------- painel ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--ink2); font-weight: 600; font-size: .88rem; }
.tabs a:hover { text-decoration: none; background: #f1f5f9; }
.tabs a.on { background: var(--grad); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.kpi span { display: block; font-size: .76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font-size: 1.45rem; font-weight: 800; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.table-wrap { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off td { opacity: .55; }
.tbl .r { text-align: right; }
.tbl td:nth-child(2), .tbl td:nth-child(4) { white-space: nowrap; }
.tbl .empty { text-align: center; color: var(--muted); padding: 30px; }
.actions { white-space: nowrap; }
.actions > *, .actions form.inline { display: inline-flex; margin-left: 4px; vertical-align: middle; }
form.inline { display: inline-flex; gap: 4px; }
.passreset input { width: 120px; padding: 5px 8px; font-size: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.card.road { margin-bottom: 14px; max-width: 820px; }
.road-head { display: flex; justify-content: space-between; align-items: center; }
.road ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink2); }
.checks { list-style: none; padding: 0; margin: 16px 0; font-size: .88rem; }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks li span::before { content: '✔ '; color: var(--ok); font-weight: 800; }
.checks li.bad span::before { content: '✖ '; color: var(--err); }
.checks em { font-style: normal; color: var(--muted); text-align: right; word-break: break-all; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .home-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: 2.1rem; }
  .features { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 20px 14px 32px; }
  .topbar { padding: 12px 14px; }
  .topnav { gap: 10px; }
  .topnav .who, .topnav a:first-child { display: none; }
  .card { padding: 20px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .link-box { flex-direction: column; }
  .dl-meta { align-items: flex-start; }
  .toolbar { flex-direction: column; }
}
