/* LootHost Dash - estilos (morado + verde sobre negro) */
:root {
  --bg: #0B0912; --s1: #14111E; --s2: #1B1628; --bd: #2B2340;
  --p: #7C3AED; --pl: #A78BFA; --g: #A3E635; --gd: #1E2A10;
  --t: #F5F3FF; --m: #A49DB8; --red: #FCA5A5;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Sora', system-ui, sans-serif; background: var(--bg); color: var(--t);
  background-image: radial-gradient(1200px 400px at 50% -200px, rgba(124, 58, 237, .18), transparent);
  background-attachment: fixed; line-height: 1.45;
}
a { color: var(--g); }
a:hover { color: #D9F99D; }
:focus-visible { outline: 3px solid var(--pl); outline-offset: 2px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 240px; max-width: 280px; min-width: 220px; padding: 28px 18px; background: var(--s1); border-right: 1px solid var(--bd); display: flex; flex-direction: column; gap: 22px; }
.side .logo img { width: 200px; height: auto; display: block; image-rendering: pixelated; }
.wallet { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #1A2410; box-shadow: inset 0 0 0 1px #3F6212; text-decoration: none; color: var(--t); }
.wallet b { font-size: 22px; display: block; }
.wallet span { font-size: 13px; color: #BEF264; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav .group { padding: 14px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--m); }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--m); }
.nav a:hover { color: var(--t); background: #1E1830; }
.nav a.on { color: var(--t); font-weight: 700; background: #241B3A; box-shadow: inset 3px 0 0 var(--g); }
.nav a.on svg { color: var(--g); }
.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.me .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.me .who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.me form { margin-left: auto; }

main { flex: 999 1 560px; min-width: 0; padding: 40px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.head p { margin: 6px 0 0; color: var(--m); }
h2 { margin: 0; font-size: 18px; font-weight: 700; }
.card { background: var(--s1); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--bd); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .wide { flex: 999 1 480px; min-width: 0; }
.cols > .narrow { flex: 1 1 300px; min-width: 0; }
.muted { color: var(--m); }
.small { font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: none; font: 700 15px 'Sora', sans-serif; text-decoration: none; cursor: pointer; }
.btn.green { background: var(--g); color: #0B0912; }
.btn.green:hover { background: #BEF264; color: #0B0912; }
.btn.purple { background: var(--p); color: #fff; }
.btn.purple:hover { background: #8B5CF6; color: #fff; }
.btn.ghost { background: var(--s2); color: var(--t); box-shadow: inset 0 0 0 1px var(--bd); }
.btn.ghost:hover { background: #241B3A; color: var(--t); }
.btn.red { background: var(--s2); color: var(--red); box-shadow: inset 0 0 0 1px #5B2333; }
.btn.big { min-height: 52px; font-size: 16px; padding: 0 22px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.on { color: #D9F99D; background: var(--gd); }
.pill.off { color: var(--red); background: #2A1018; }
.pill.info { color: var(--pl); background: #241B3A; }
.pill.warn { color: #FDE68A; background: #2A2410; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.role { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.role.OWNER { color: #0B0912; background: var(--g); }
.role.ADMIN { color: #fff; background: var(--p); }
.role.AYUDANTE { color: #0B0912; background: #C4B5FD; }
.role.USUARIO { color: var(--m); background: #241B3A; }

.bar { height: 10px; border-radius: 5px; background: #0B0912; overflow: hidden; }
.bar > i { display: block; height: 10px; border-radius: 5px; background: var(--g); }
.bar.warn > i { background: #FACC15; }
.bar.bad > i { background: #F87171; }
.renew { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px; border-radius: 12px; background: var(--s2); }
.renew .left { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.srv { display: flex; align-items: center; gap: 16px; }
.srv img { width: 56px; height: 56px; image-rendering: pixelated; }

label.f { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=number], input[type=datetime-local], select, textarea {
  min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bd); background: var(--s2); color: var(--t); font: 15px 'Sora', sans-serif;
}
textarea { padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A82A0; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.checks input { width: 20px; height: 20px; accent-color: var(--g); }

.flash { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.flash.ok { background: var(--gd); color: #D9F99D; box-shadow: inset 0 0 0 1px #3F6212; }
.flash.err { background: #2A1018; color: var(--red); box-shadow: inset 0 0 0 1px #5B2333; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--s2); text-decoration: none; color: var(--t); }
.item:hover { color: var(--t); box-shadow: inset 0 0 0 1px var(--p); }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 85%; padding: 14px 16px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--bd); align-self: flex-end; white-space: pre-wrap; word-break: break-word; }
.msg.staff { align-self: flex-start; background: #1A1230; box-shadow: inset 0 0 0 1px var(--p); }
.tablebox { overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--m); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--bd); }
td { padding: 12px 8px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline select, .inline input { min-height: 40px; }
.inline .btn { min-height: 40px; padding: 6px 14px; }

/* AFK */
.afk { background: var(--s1); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--bd); padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ring { width: 180px; height: 180px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: conic-gradient(var(--g) var(--pct, 0%), #241B3A 0), radial-gradient(circle, var(--s1) 62%, transparent 63%); }
.ring > div { width: 160px; height: 160px; border-radius: 50%; background: var(--s1); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 44px; font-family: 'JetBrains Mono', monospace; }
.rate { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; }

/* Anuncios emergentes */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100% - 48px)); }
.toast { padding: 18px; border-radius: 16px; background: #1A1230; box-shadow: inset 0 0 0 2px var(--p), 0 18px 50px rgba(0,0,0,.6); display: flex; gap: 14px; animation: in .25s ease-out; }
.toast .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--p); display: flex; align-items: center; justify-content: center; color: #fff; }
.toast .txt { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.toast .kind { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--g); }
.toast b { font-size: 17px; }
.toast p { margin: 0; font-size: 14px; color: var(--m); white-space: pre-wrap; }
.toast button { width: 44px; height: 44px; margin: -10px -10px 0 0; border: none; background: transparent; color: var(--m); cursor: pointer; font-size: 22px; }
@keyframes in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Portada sin sesión */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 20px; text-align: center; }
.hero img { width: min(520px, 90vw); height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(124,58,237,.45)); }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; }
.hero p { margin: 0; color: var(--m); font-size: 18px; max-width: 640px; }
.feats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.feats span { padding: 10px 16px; border-radius: 999px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--bd); color: var(--t); font-size: 14px; }
footer { text-align: center; color: #8A82A0; font-size: 13px; padding: 0 0 24px; }
