/* Gojoo — sesión, gestión de servidores, actividad y administración (va después de style.css) */
:root { --danger: #ff5c5c; --danger-bg: rgba(255, 92, 92, .12); --ok-green: #6ee7a8; }

/* Acceso: sin sesión solo existe la pantalla de inicio de sesión */
body.anon .app, body.anon .scrim, body.anon .cursor-glow { display: none !important; }
body:not(.owner) [data-owner], body:not(.owner) [data-owner-only] { display: none !important; }
body.owner [data-owner-gate] { display: none !important; }
body.in-server .side-global { display: none; }
body:not(.in-server) #serverNav { display: none; }

/* ── Pantalla de inicio de sesión ─────────────────────────────── */
.auth-screen { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 18px; overflow-y: auto; }
body.anon .auth-screen, body.auth-granted .auth-screen { display: grid; }
body.auth-leaving .auth-screen { animation: authOut .6s var(--ease) forwards; }
@keyframes authOut { to { opacity: 0; transform: scale(1.04); filter: blur(6px); } }
.auth-card {
  position: relative; width: min(440px, 100%); padding: 42px 34px 36px; border-radius: 32px; text-align: center;
  background: var(--lg-sheen), rgba(12,12,14,.55); animation: rise .8s var(--ease) both;
  box-shadow: var(--lg-rim), 0 40px 120px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04);
}
html.liquid .auth-card { backdrop-filter: url(#liquid-glass) blur(10px) saturate(1.8) brightness(1.06); background: var(--lg-sheen), rgba(12,12,14,.32); }
.auth-state { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth-state[hidden] { display: none; }
.auth-pfp { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 3px; margin-bottom: 4px; animation: float 5s ease-in-out infinite; }
.auth-pfp::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, #fff, #555, #111, #888, #fff); animation: spin 6s linear infinite; filter: drop-shadow(0 0 12px rgba(255,255,255,.25)); }
.auth-pfp img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #0c0c0d; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .4px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--stroke-hi); background: rgba(255,255,255,.04); color: #cfcfcf; }
.auth-card h1 { font-size: 27px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.auth-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.auth-card > .auth-state > p { font-size: 13.5px; max-width: 320px; }
.auth-methods { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.auth-methods .btn { gap: 10px; height: 48px; }
.auth-methods .btn svg { width: 19px; height: 19px; }
.auth-check {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: rgba(255,255,255,.08); border: 1px solid var(--stroke-hi); box-shadow: var(--lg-rim), 0 0 40px rgba(255,255,255,.12);
  animation: checkPop .6s var(--spring) both;
}
.auth-check svg { width: 30px; height: 30px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes checkPop { from { transform: scale(.4); opacity: 0; } }
.auth-progress { width: 180px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.auth-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #666, #fff); box-shadow: 0 0 12px rgba(255,255,255,.5); animation: progress 1.3s var(--ease) forwards; }
@keyframes progress { to { width: 100%; } }
.input-icon { position: relative; display: block; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; min-height: 48px; }

/* Caja de usuario (menú) */
.userbox { min-height: 46px; }
.user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); box-shadow: var(--lg-rim); }
.user img, .user .g-icon { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 12px; }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.user-info b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { font-size: 11px; color: var(--muted); }
.user-login {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 46px; padding: 0 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22); background: #fff; color: #000; font: 600 13.5px 'Poppins', sans-serif; cursor: pointer;
  transition: transform .5s var(--spring), box-shadow .3s; white-space: nowrap;
}
.user-login:hover { box-shadow: 0 8px 30px rgba(255,255,255,.2); }
.user-login:active { transform: scale(.95); }
.app.collapsed .user-info, .app.collapsed .user .icon-btn, .app.collapsed .user-login span { display: none; }
.app.collapsed .user { justify-content: center; padding: 6px; }
.app.collapsed .user-login { justify-content: center; padding: 0; gap: 0; }

/* Botones extra */
.btn-danger { background: var(--danger-bg); color: #ffb3b3; border: 1px solid rgba(255,92,92,.4); }
.btn-danger:hover { background: rgba(255,92,92,.22); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-discord { background: #5865f2; color: #fff; gap: 10px; }
.btn-discord svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn-discord:hover { background: #4752c4; box-shadow: 0 8px 30px rgba(88,101,242,.35); }
button.btn { border: 0; font-family: 'Poppins', sans-serif; }
button.btn-dark { border: 1px solid var(--stroke-hi); }
button.btn-danger { border: 1px solid rgba(255,92,92,.4); }
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; }

/* Login */
.login { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 4px; }
.login-pfp { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--stroke-hi); box-shadow: 0 0 40px rgba(255,255,255,.12); animation: float 5s ease-in-out infinite; }
.login h3 { font-size: 21px; font-weight: 700; }
.login-form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.login .btn.block { width: 100%; }
.or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--stroke-hi); }
.login-none { font-size: 13px; color: #ddd; padding: 14px; border-radius: 14px; border: 1px dashed var(--stroke-hi); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Avisos */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 44px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px; font-size: 13.5px; pointer-events: auto;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .3s, transform .5s var(--spring); max-width: 420px;
}
.toast.in { opacity: 1; transform: none; }
.toast i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #fff; box-shadow: 0 0 10px #fff; }
.toast.ok i { background: var(--ok-green); box-shadow: 0 0 10px var(--ok-green); }
.toast.error { border-color: rgba(255,92,92,.4); }
.toast.error i { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* Confirmación */
.confirm { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.confirm-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s; }
.confirm-card { position: relative; width: min(420px, 100%); padding: 24px; border-radius: 24px; background: var(--lg-sheen), rgba(16,16,18,.85); opacity: 0; transform: scale(.94); transition: opacity .25s, transform .45s var(--spring); }
.confirm.open .confirm-scrim { opacity: 1; }
.confirm.open .confirm-card { opacity: 1; transform: none; }
.confirm-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Formularios */
.input {
  width: 100%; min-height: 42px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--stroke-hi);
  background: rgba(0,0,0,.45); color: #fff; font: 13.5px 'Poppins', sans-serif; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.input:focus { border-color: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
textarea.input { resize: vertical; line-height: 1.5; }
.input.num { max-width: 140px; }
.input::placeholder { color: var(--dim); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.field > small { font-size: 11.5px; color: var(--dim); }
.field[hidden] { display: none; }
.select.sm { height: 42px; border-radius: 14px; width: 100%; }
.select.sm select { width: 100%; }
.cfg { display: flex; flex-direction: column; gap: 16px; }
.cfg .card-head { margin-bottom: 0; }
.cfg-note { margin-top: -8px; }
.cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--stroke); }
.cfg-row b { font-size: 13.5px; font-weight: 600; display: block; }
.cfg-row small { font-size: 12px; color: var(--muted); }
.cfg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--stroke); padding-top: 14px; }
.dirty-hint { font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .3s; }
form.dirty .dirty-hint { opacity: 1; }
form.dirty .cfg-foot .btn-light { box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 8px 30px rgba(255,255,255,.2); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #ccc; cursor: pointer; margin-bottom: 10px; user-select: none; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 160px; }
.inline-form .select.sm { width: auto; }
.card .inline-form + .list-box { margin-top: 12px; }

/* Interruptor */
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 46px; height: 26px; border-radius: 99px; background: #262626; border: 1px solid var(--stroke-hi); position: relative; transition: background .3s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .5s var(--spring), background .3s, scale .4s var(--spring); }
.switch input:checked + .switch-track { background: #fff; }
.switch input:checked + .switch-track .switch-thumb { background: #000; transform: translateX(20px); }
.switch:active .switch-thumb { scale: 1.25 1; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }

/* Selector de color propio (sin el diálogo del sistema) */
.color-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px 6px 6px; border-radius: 14px; border: 1px solid var(--stroke-hi); background: rgba(0,0,0,.45); }
.color-swatch { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 14px rgba(255,255,255,.08); transition: background .2s; }
.color-hex { width: 86px; min-height: 30px; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: #fff; font: 12.5px ui-monospace, Consolas, monospace; outline: none; text-transform: lowercase; }
.color-hex:focus { border-color: rgba(255,255,255,.4); }
.color-hex.invalid { border-color: rgba(255,92,92,.6); }
.color-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.color-dot { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: transform .4s var(--spring); }
.color-dot:hover { transform: scale(1.25); }

/* Casilla propia */
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--stroke-hi); background: rgba(0,0,0,.45); box-shadow: var(--lg-rim); transition: background .25s, transform .4s var(--spring); }
.check-box svg { width: 13px; height: 13px; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .4s var(--spring); }
.check input:checked + .check-box { background: #fff; color: #000; }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.check:active .check-box { transform: scale(.85); }

/* Números sin las flechas del sistema */
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Listas de chips */
.multi { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip-x { display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 4px 10px; border-radius: 99px; font-size: 12.5px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke-hi); animation: rise .3s var(--ease); }
.chip-x img { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; }
.chip-x .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip-x button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #ddd; cursor: pointer; font-size: 14px; line-height: 1; }
.chip-x button:hover { background: var(--danger-bg); color: #fff; }
.add-id { display: flex; gap: 8px; }
.add-id .input { flex: 1; }

/* Gestionar servidor */
.manage-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.manage-head .back { width: 40px; height: 40px; border-radius: 14px; }
.manage-head .back svg { width: 18px; height: 18px; }
.mh-info { flex: 1; min-width: 200px; }
.mh-info h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-meta { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mh-meta .copy-chip { margin-top: 0; }
.switcher { width: auto; max-width: 260px; }
.mtabs { margin: 16px 0 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.mtabs .tab { flex-shrink: 0; }
.manage-body { display: flex; flex-direction: column; gap: 18px; }
.manage-body.tab-in > * { animation: rise .45s var(--ease) backwards; }
.manage-body.tab-in > :nth-child(2) { animation-delay: 60ms; }
.manage-body.tab-in > :nth-child(3) { animation-delay: 120ms; }
.manage-body.tab-in > :nth-child(4) { animation-delay: 180ms; }
#view-manage { gap: 18px; }
.mod-list { display: flex; flex-direction: column; gap: 6px; }
.mod-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: none; color: #ddd; cursor: pointer; font: 500 13.5px 'Poppins', sans-serif; text-align: left; transition: background .2s, transform .4s var(--spring); }
.mod-item:hover { background: rgba(255,255,255,.05); transform: translateX(4px); }
.mod-item b { flex: 1; font-weight: 500; }
.mod-item .pill { min-width: 74px; justify-content: center; }
.mod-item svg { width: 16px; height: 16px; color: var(--muted); }
.danger-zone { border-color: rgba(255,92,92,.25); }
.danger-zone h3 { color: #ffb3b3; }
.loading-card { display: grid; place-items: center; min-height: 200px; }
.spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: #fff; animation: spin .8s linear infinite; margin: 20px auto; }
.list-box .spinner, .feed .spinner, #ticketTable .spinner { display: block; }
.m-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Vista previa estilo Discord */
.editor { align-items: start; }
.preview-card { position: sticky; top: 22px; }
.preview { padding: 16px; border-radius: 16px; background: #313338; margin-bottom: 12px; }
.dc-msg { display: flex; gap: 14px; font-family: 'Noto Sans', system-ui, sans-serif; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dc-name { font-weight: 600; font-size: 15px; color: #f2f3f5; display: flex; align-items: center; gap: 6px; }
.dc-bot { font-size: 10px; font-weight: 600; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.dc-text { font-size: 14.5px; color: #dbdee1; }
.dc-mention { background: rgba(88,101,242,.3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; }
.dc-embed { display: flex; gap: 12px; max-width: 432px; padding: 10px 14px 14px 12px; border-radius: 4px; background: #2b2d31; border-left: 4px solid #5865f2; }
.dc-embed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-title { font-weight: 600; font-size: 15px; color: #f2f3f5; }
.dc-desc { font-size: 13.5px; color: #dbdee1; line-height: 1.45; overflow-wrap: anywhere; }
.dc-image { width: 100%; border-radius: 4px; max-height: 220px; object-fit: cover; }
.dc-thumb { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.dc-footer { font-size: 12px; color: #b5bac1; }
.dc-button { align-self: flex-start; margin-top: 4px; padding: 6px 14px; border-radius: 4px; border: 0; background: #4e5058; color: #fff; font: 500 14px system-ui, sans-serif; }
.dc-reaction { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(88,101,242,.15); border: 1px solid #5865f2; color: #dee0fc; font-size: 13px; }

/* Listas genéricas */
.list-box { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.list-box.tall { max-height: 640px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.02); }
.lr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lr-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: #1c1c1c; border: 1px solid var(--stroke); font-size: 13px; font-weight: 600; }
.tagx { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #fff; color: #000; margin-left: 6px; vertical-align: 2px; }
.warn-user { border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.02); overflow: hidden; }
.warn-user summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.warn-user summary::-webkit-details-marker { display: none; }
.warn-user summary b { flex: 1; font-size: 13.5px; }
.warn-user summary em { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: #fff; color: #000; font-weight: 600; }
.warn-user ul { list-style: none; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.warn-user li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.3); }
.warn-user li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.warn-user li b { font-size: 13px; font-weight: 500; }
.warn-user li small { font-size: 11.5px; color: var(--muted); }
.warn-user > .btn { margin: 10px 12px 12px; }
.table-wrap { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.table td.detail { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search.mini { height: 38px; width: 220px; padding: 0 12px; }
.search.mini input { font-size: 13px; }

/* Actividad */
.live-chip { height: 46px; padding: 0 16px; }
.live.off { background: var(--danger); animation: none; }
.feed { display: flex; flex-direction: column; max-height: 680px; overflow-y: auto; }
.feed.compact { max-height: 420px; }
.feed-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.04); }
.feed-item:last-child { border-bottom: 0; }
.feed-item.fresh { animation: feedIn .7s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); background: rgba(255,255,255,.08); } }
.feed-icon { width: 34px; height: 34px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.feed-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-text span { font-size: 13.5px; overflow-wrap: anywhere; }
.feed-text small { font-size: 11.5px; color: var(--muted); }
.feed-item.k-antinuke .feed-icon, .feed-item.k-antiraid .feed-icon, .feed-item.k-globalban .feed-icon { border-color: rgba(255,92,92,.45); background: var(--danger-bg); }
.feed-item.k-dashboard .feed-icon { border-color: rgba(255,255,255,.3); }
.feed-more { display: flex; justify-content: center; padding-top: 12px; }
.feed-more [hidden] { display: none; }

/* Estadísticas históricas */
.spark.sm { height: 110px; margin-bottom: 8px; }
.mini-chips.start { justify-content: flex-start; margin-bottom: 6px; }
.hist-axis { display: flex; justify-content: space-between; }
.usage-total { margin: -4px 0 8px; }
.usage-total b { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
#usageBars { margin-top: 8px; }

@media (max-width: 1180px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card { position: static; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .input.num { max-width: none; }
  .switcher { max-width: none; width: 100%; }
  .search.mini { width: 100%; }
  .card-head { flex-wrap: wrap; gap: 10px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; }
}

/* ── Iconos SVG ────────────────────────────────────────────────── */
.ico { width: 18px; height: 18px; flex-shrink: 0; }
.btn .ico { width: 16px; height: 16px; margin-right: 6px; }
.btn > svg:not(.ico) { width: 17px; height: 17px; margin-right: 8px; }
.icon-btn .ico { width: 15px; height: 15px; }
.chip-x .ico { width: 14px; height: 14px; }
.chip-x button .ico { width: 11px; height: 11px; }
.chip-x > .ico { margin-left: -2px; color: #bbb; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h3 .ico { width: 18px; height: 18px; color: #ddd; }
.cat-emoji .ico { width: 19px; height: 19px; }
.cmd-cat { display: inline-flex; align-items: center; gap: 5px; }
.cmd-cat .ico { width: 13px; height: 13px; }
.cmd-glyph .ico { width: 28px; height: 28px; }
.feed-icon .ico { width: 16px; height: 16px; }
.warn-user summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .4s var(--spring); }
.warn-user[open] summary .chev { transform: rotate(180deg); }
.spinning svg { animation: spin .8s linear infinite; }

/* ── Desplegable propio ────────────────────────────────────────── */
.sel-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.select { position: relative; cursor: pointer; }
.sel-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%;
  border: 0; background: none; color: #fff; font: 500 13px 'Poppins', sans-serif; cursor: pointer; text-align: left; padding: 0;
}
.sel-btn:disabled { opacity: .5; cursor: not-allowed; }
.sel-btn:focus-visible { outline: none; }
.select:focus-within { border-color: rgba(255,255,255,.3); }
.sel-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sel-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-ico { width: 15px; height: 15px; color: var(--muted); }
.sel-chev { width: 15px; height: 15px; color: var(--muted); transition: transform .45s var(--spring); }
.select.open .sel-chev { transform: rotate(180deg); }
.select.open { border-color: rgba(255,255,255,.3); }
.sel-pop {
  position: fixed; z-index: 120; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; padding: 6px;
  background: var(--lg-sheen), rgba(16,16,18,.9); box-shadow: var(--lg-rim), 0 24px 60px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top center; transition: opacity .18s, transform .35s var(--spring);
}
html.liquid .sel-pop { backdrop-filter: url(#liquid-glass) blur(16px) saturate(1.8); background: var(--lg-sheen), rgba(16,16,18,.72); }
.sel-pop.in { opacity: 1; transform: none; }
.sel-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; border-bottom: 1px solid var(--stroke); margin-bottom: 4px; }
.sel-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 13px 'Poppins', sans-serif; }
.sel-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sel-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0;
  background: none; color: #cfcfcf; font: 500 13px 'Poppins', sans-serif; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.sel-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-opt:hover, .sel-opt.active { background: rgba(255,255,255,.08); color: #fff; }
.sel-opt.on { color: #fff; font-weight: 600; }
.sel-opt[hidden] { display: none; }
.sel-opt:disabled { opacity: .4; cursor: not-allowed; }
.sel-tick { width: 15px; height: 15px; stroke-width: 2.4; }
.select.sm .sel-btn { font-size: 13px; }

/* ── Selector de servidores ────────────────────────────────────── */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.srv-card {
  position: relative; overflow: hidden; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 4px;
  animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .35s var(--ease), border-color .35s;
}
.srv-card:hover { transform: translateY(-5px); border-color: var(--stroke-hi); }
.srv-cover { height: 76px; margin: 0 -16px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.01)) center / cover; position: relative; }
.srv-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.85)); }
.srv-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: -34px; position: relative; z-index: 1; }
.g-icon.srv-icon { width: 68px; height: 68px; border-radius: 50%; border: 4px solid #0e0e10; font-size: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.srv-card:hover .srv-icon { transform: scale(1.06) rotate(-4deg); }
.srv-card h4 { font-size: 15px; font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.srv-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.srv-meta .shield-meter { margin-left: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--off); display: inline-block; flex-shrink: 0; }
.dot.on { background: #fff; box-shadow: 0 0 8px #fff; }
.srv-card.dim .srv-icon { filter: grayscale(.6) brightness(.8); }
#srvRefresh { gap: 2px; }

/* ── Menú lateral del servidor ─────────────────────────────────── */
.side-server { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.sn-top { display: flex; align-items: center; gap: 8px; }
.sn-top .icon-btn { width: 34px; height: 34px; border-radius: 12px; }
.sn-top .icon-btn svg { width: 16px; height: 16px; }
.sn-title { flex: 1; font-size: 12px; color: var(--muted); font-weight: 500; }
.sn-switch .select { width: 100%; height: 48px; gap: 10px; padding: 0 12px 0 8px; }
.sn-switch .g-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.sn-search { width: 100%; }
.sn-search kbd { font-size: 10px; }
.sn-groups { flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); padding: 0 14px 4px; }
.side-server .nav-group { gap: 3px; padding: 10px 0; }
.side-server .nav-item { height: 40px; font-size: 13.5px; border-radius: 14px; }
.side-server .nav-item svg { width: 19px; height: 19px; }
.state-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--off); flex-shrink: 0; }
.state-dot.on { background: #fff; box-shadow: 0 0 8px #fff; }
.nav-empty { padding: 14px; }
.app.collapsed .sn-title, .app.collapsed .sn-search, .app.collapsed .nav-label, .app.collapsed .sn-switch .sel-btn, .app.collapsed .state-dot { display: none; }
.app.collapsed .sn-top { flex-direction: column; }
.app.collapsed .sn-switch .select { padding: 0; justify-content: center; }
.app.collapsed .side-server .nav-item { justify-content: center; padding: 0; gap: 0; }
.app.collapsed .side-server .nav-item span { display: none; }

/* ── Páginas del servidor ──────────────────────────────────────── */
.page-head { display: flex; flex-direction: column; gap: 4px; animation: rise .5s var(--ease) backwards; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs .ico { width: 13px; height: 13px; }
.page-head h2 { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.ph-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--stroke-hi); box-shadow: var(--lg-rim); }
.ph-icon .ico { width: 22px; height: 22px; }
.page-head p { font-size: 14px; }
.srv-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.g-icon.xl { width: 76px; height: 76px; border-radius: 24px; font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.srv-hero h2 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.welcome-banner { display: flex; gap: 18px; align-items: flex-start; border-color: rgba(255,255,255,.16); }
.wb-icon { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,.2); }
.wb-icon .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.wb-text { flex: 1; min-width: 0; }
.wb-text h3 { font-size: 18px; font-weight: 700; }
.wb-text p { font-size: 13.5px; margin: 2px 0 12px; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-section { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; border-top: 1px solid var(--stroke); }
.section-title { font-size: 21px; font-weight: 700; letter-spacing: -.3px; margin-top: 10px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mod-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 18px 22px;
  transition: transform .35s var(--ease), border-color .35s; min-height: 170px;
}
.mod-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.mod-card .pill { position: absolute; top: 12px; right: 12px; }
.mc-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--stroke-hi); box-shadow: var(--lg-rim); transition: transform .5s var(--spring), background .3s; }
.mc-icon .ico { width: 23px; height: 23px; }
.mod-card:hover .mc-icon { transform: scale(1.1) rotate(-6deg); background: #fff; color: #000; }
.mod-card b { font-size: 16px; font-weight: 600; }
.mod-card small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.live-chip.sm { height: 30px; padding: 0 12px; font-size: 12px; }

@media (max-width: 640px) {
  .page-head h2, .srv-hero h2 { font-size: 22px; }
  .welcome-banner { flex-direction: column; }
  .auth-card { padding: 34px 22px 28px; }
}
.dc-button .ico, .dc-reaction .ico { width: 15px; height: 15px; vertical-align: -3px; stroke-width: 2.4; }
