/* SimpleGames Transfert — même direction artistique que le panel (gris anthracite plat, violet #8338EC) */
:root { --bg: #1b1d22; --card: #22252b; --card-2: #272a31; --line: #2e3138; --line-2: #3a3e46; --text: #f1f2f4; --muted: #9a9fa9;
  --brand: #8338ec; --brand-2: #9d5cf2; --brand-3: #c9a8ff; --ok: #3ccf7e; --bad: #f05252; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15.5px/1.55 "DM Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: Lexend, system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; }
a { color: var(--brand-3); text-decoration: none; }
.muted { color: var(--muted); } .sm { font-size: 13px; } .bad { color: var(--bad); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #17191d; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand span { font: 600 15px Lexend, sans-serif; padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--muted); }
#who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
#who img { width: 30px; height: 30px; border-radius: 50%; }
.wrap { width: min(760px, 100% - 32px); margin: 40px auto; flex: 1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.card h1 { margin: 0 0 10px; font-size: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14.5px "DM Sans", sans-serif; color: var(--text);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 9px 16px; cursor: pointer; }
.btn:hover { background: #30333b; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: #ff8a8a; background: transparent; border-color: rgba(240, 82, 82, .45); }
.btn.lg { padding: 13px 22px; font-size: 15.5px; } .btn.sm { padding: 5px 11px; font-size: 13px; } .btn.block { width: 100%; margin: 18px 0 6px; }
.btn:disabled { opacity: .45; cursor: default; }
.err { background: rgba(240, 82, 82, .1); border: 1px solid rgba(240, 82, 82, .4); color: #ffb4b4; padding: 10px 14px; border-radius: 4px; margin: 12px 0 16px; }
#login .btn { margin-top: 10px; }
.drop { border: 2px dashed var(--line-2); border-radius: 6px; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--brand); background: rgba(131, 56, 236, .08); }
.drop-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(131, 56, 236, .16); color: var(--brand-3); font-size: 26px; flex: none; }
.drop-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.list { border: 1px solid var(--line); border-radius: 6px; margin-top: 16px; max-height: 360px; overflow: auto; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.send-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
#progress { margin-top: 6px; }
.bar { height: 10px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.prog-txt { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.done { text-align: center; }
.done-ico { width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: rgba(60, 207, 126, .15); color: var(--ok); font-size: 28px; }
.done h2 { margin: 6px 0 4px; }
.link { display: flex; gap: 8px; margin: 16px 0 18px; }
.link input { flex: 1; min-width: 0; background: #1a1c21; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); padding: 10px 12px; font: 14px "JetBrains Mono", monospace; }
.section { font: 700 12px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 32px 2px 10px; }
#mine { background: var(--card); margin-top: 0; max-height: none; }
.empty { padding: 16px; }
.dl-head { display: flex; gap: 16px; align-items: center; }
.dl-head h1 { margin: 0 0 2px; font-size: 22px; } .dl-head p { margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 30px; }
@media (max-width: 600px) {
  .top { padding: 12px 16px; } .brand span { display: none; }
  .card { padding: 20px 16px; } .wrap { margin: 20px auto; }
  .row { flex-wrap: wrap; } .row .nm { flex-basis: 100%; }
  .link { flex-direction: column; }
}
