/* =========================================================
   JELLYNERVYS — cuentas, panel del cliente y panel de Jelly
   Se carga después de holo.css y usa sus variables.
   ========================================================= */

/* ---------- botón de cuenta en el menú ---------- */
.acct { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem; border-radius: 99px; font-size: .84rem; font-weight: 800; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(205, 180, 255, .4); transition: background .3s, box-shadow .3s; white-space: nowrap; }
.acct:hover { background: rgba(205, 180, 255, .12); box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.acct.is-in { padding: .25rem .8rem .25rem .25rem; }
.acct-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.acct .badge { margin-left: .1rem; }
.acct-mobile { font-family: var(--f-body) !important; font-size: 1rem !important; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 99px; font-size: .66rem; font-weight: 900; color: #22093f; background: var(--pink); box-shadow: 0 0 10px rgba(255, 111, 208, .6); }
.sticker-status.is-closed { filter: grayscale(.8); }

/* ---------- avatar ---------- */
.ava { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; font-family: var(--f-chrome); font-size: 1rem; color: #22093f; background: var(--holo); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-sm { width: 30px; height: 30px; font-size: .8rem; }
.ava-md { width: 44px; height: 44px; }
.ava-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.ava-xl { width: 96px; height: 96px; font-size: 2.2rem; box-shadow: 0 0 0 4px var(--plum), 0 0 0 6px rgba(255, 179, 234, .55); }

/* ---------- campos ---------- */
.fld { display: grid; gap: .35rem; }
.fld > span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); }
.fld small { font-size: .74rem; color: var(--muted); }
.fld input, .fld textarea, .fld select, .search { width: 100%; font: inherit; font-size: .95rem; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 12px; padding: .75rem .9rem; box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .3s, background .3s; color-scheme: dark; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .search:focus { background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1.5px var(--pink-2), 0 0 0 4px rgba(255, 111, 208, .12); }
.fld select option { background: #170a29; }
.fld input[type="range"] { padding: 0; box-shadow: none; background: none; accent-color: var(--pink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.grid2 .wide { grid-column: 1 / -1; }
.muted { color: var(--muted); font-size: .9rem; }
.link-btn { color: var(--muted); text-decoration: underline; padding: .4rem .6rem; }

/* ---------- cuenta (login / registro) ---------- */
.app-body { min-height: 100vh; }
.auth { position: relative; z-index: 1; max-width: 1100px; min-height: 100vh; margin: 0 auto; padding: 7rem var(--pad) 3rem; display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.auth-art { display: grid; place-items: center; }
.auth-card-img { width: min(340px, 70vw); transform: rotate(-6deg) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.auth-box { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, .4); }
.auth-box .sub { margin-bottom: 1.6rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 1.4rem; border-radius: 99px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); }
.auth-tabs button { padding: .6rem; border-radius: 99px; font-weight: 800; font-size: .9rem; color: var(--muted); transition: all .3s; }
.auth-tabs button.is-on { color: #22093f; background: var(--holo); }
.auth-form { display: grid; gap: 1rem; }
.auth-form .btn { margin-top: .4rem; width: 100%; }
.auth-err { padding: .65rem .9rem; border-radius: 12px; font-size: .88rem; font-weight: 700; color: #ffd6f3; background: rgba(255, 111, 208, .12); box-shadow: inset 0 0 0 1px rgba(255, 111, 208, .45); }

/* ---------- estructura de los paneles ---------- */
.app { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 6.2rem var(--pad) 3rem; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.side { position: sticky; top: 90px; display: grid; gap: 1rem; padding: 0 0 1.2rem; border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.side-me { display: grid; justify-items: center; text-align: center; gap: .15rem; }
.sm-cover { width: 100%; height: 84px; margin-bottom: -34px; background: var(--holo) center / cover; opacity: .9; }
.side-me .ava { box-shadow: 0 0 0 4px #1d0c33; }
.side-me b { margin-top: .5rem; font-family: var(--f-chrome); font-weight: 400; font-size: 1.15rem; }
.side-me small { font-size: .78rem; color: var(--muted); }
.admin-tag { color: var(--pink-2) !important; font-family: var(--f-goth); font-size: 1rem !important; }
.side-nav { display: grid; gap: .2rem; padding: 0 .7rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 12px; font-weight: 700; font-size: .92rem; color: rgba(251, 246, 255, .78); transition: background .3s, color .3s; }
.side-nav a > span:first-child { width: 1.2rem; text-align: center; color: var(--pink-2); }
.side-nav a .badge { margin-left: auto; }
.side-nav a:hover { background: rgba(205, 180, 255, .08); color: var(--white); }
.side-nav a.is-on { color: #22093f; background: var(--holo); }
.side-nav a.is-on > span:first-child { color: #22093f; }
.side-new { margin: 0 .9rem; }
.side-out { margin: 0 .9rem; padding: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); border-radius: 10px; }
.side-out:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.view { min-width: 0; outline: none; animation: rise .5s var(--ease); }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.v-head .h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.v-head .search { max-width: 360px; }
.back { display: inline-block; margin-bottom: 1rem; font-size: .88rem; font-weight: 700; color: var(--pink-2); }
.empty { padding: 3rem 1.5rem; border-radius: 24px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); display: grid; justify-items: center; gap: 1.2rem; }
.box { padding: 1.3rem 1.4rem; border-radius: 20px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.box h4 { margin-bottom: .9rem; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-2); }
.box.note { box-shadow: inset 0 0 0 1.5px rgba(255, 179, 234, .55), 0 0 30px rgba(255, 111, 208, .12); }
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
.detail .col { display: grid; gap: 1.2rem; }
.box.wide { grid-column: 1 / -1; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.small { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.dl dt { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dl dd { font-weight: 700; overflow-wrap: anywhere; }
.refs { display: flex; flex-wrap: wrap; gap: .6rem; }
.refs img { width: 86px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .3s var(--ease); }
.refs a:hover img { transform: scale(1.05) rotate(-2deg); }
.talk { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.who-row { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.who-row b { display: block; font-size: 1.1rem; }
.who-row small { color: var(--muted); font-size: .8rem; }

/* estado + progreso */
.chip-status { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; font-size: .74rem; font-weight: 800; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.chip-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.prog { position: relative; height: 10px; border-radius: 99px; background: rgba(205, 180, 255, .12); }
.prog span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--holo); box-shadow: 0 0 10px rgba(255, 111, 208, .4); transition: width .8s var(--ease); }
.prog em { position: absolute; right: 0; top: -1.3rem; font-style: normal; font-family: var(--f-mono); font-size: .64rem; color: var(--muted); }
.rq-progress { margin: -.6rem 0 1.6rem; padding: 1.4rem 1.4rem 1rem; border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.rq-progress .lbl { display: block; margin-bottom: .9rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rq-head .chip-status { font-size: .9rem; padding: .45rem 1rem; }

/* tarjetas de solicitud del cliente */
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.rq-card { position: relative; display: grid; gap: .7rem; padding: 1.3rem 1.3rem 1.2rem; border-radius: 22px; overflow: hidden; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.rq-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.rq-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 20px 40px rgba(0, 0, 0, .35); }
.rq-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.rq-num { font-family: var(--f-mono); font-size: .8rem; color: var(--pink-2); }
.rq-card h3 { font-family: var(--f-chrome); font-weight: 400; font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; }
.rq-meta { font-size: .8rem; color: var(--muted); }
.rq-card .prog { margin-top: 1rem; }
.rq-note { font-size: .85rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(255, 111, 208, .08); color: #ffd6f3; }
.rq-go { font-size: .82rem; font-weight: 800; color: var(--pink-2); }

/* historial */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; border-left: 2px solid rgba(205, 180, 255, .15); margin-left: .4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.timeline li:first-child::before { animation: blink 1.6s infinite; }
.timeline b { display: block; color: var(--c); }
.timeline time { font-size: .76rem; color: var(--muted); }
.timeline p { font-size: .88rem; margin-top: .2rem; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: min(72vh, 760px); border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, #1d0c33, #110720); box-shadow: inset 0 0 0 1px var(--line); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.chat-head b { display: block; font-family: var(--f-chrome); font-weight: 400; font-size: 1.1rem; }
.chat-head small { color: var(--muted); font-size: .78rem; }
.chat-head .row-btns { margin: 0 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.chat-head > div:not(.row-btns) { min-width: 0; }
.chat-list { overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><path transform='translate(50 50)' fill='%23cdb4ff' fill-opacity='.04' d='M9 16C3 12 1 8 3 5c2-2 5-1 6 1 1-2 4-3 6-1 2 3 0 7-6 11Z'/></svg>"); }
.chat-empty { margin: auto; color: var(--muted); text-align: center; }
.msg { display: flex; align-items: flex-end; gap: .55rem; max-width: 78%; min-width: 0; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-b { padding: .65rem .9rem .5rem; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.msg.mine .msg-b { border-radius: 18px 18px 6px 18px; color: #22093f; background: linear-gradient(120deg, #ffd1f0, #e6d4ff); box-shadow: none; }
.msg-b p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-b time { display: block; margin-top: .25rem; font-size: .64rem; opacity: .6; }
.msg-tag { display: inline-block; margin-bottom: .3rem; padding: .1rem .5rem; border-radius: 99px; font-family: var(--f-mono); font-size: .64rem; font-weight: 700; background: rgba(0, 0, 0, .25); color: var(--pink-2); }
.msg.mine .msg-tag { background: rgba(34, 9, 63, .12); color: #8a2c79; }
.msg-img { max-width: 240px; max-height: 260px; border-radius: 12px; margin-bottom: .3rem; }
.msg-sys { align-self: center; text-align: center; max-width: 92%; }
.msg-sys span { display: inline-block; padding: .35rem .9rem; border-radius: 16px; font-size: .76rem; font-weight: 700; color: var(--pink-2); overflow-wrap: anywhere; background: rgba(255, 111, 208, .1); box-shadow: inset 0 0 0 1px rgba(255, 111, 208, .3); }
.chat-form { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.chat-row { display: flex; align-items: flex-end; gap: .6rem; }
.chat-row textarea { flex: 1; min-width: 0; width: 100%; min-height: 46px; max-height: 160px; font: inherit; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 16px; padding: .75rem 1rem; resize: none; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.chat-row textarea:focus { box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.chat-clip { flex: 0 0 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; color: var(--pink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s; }
.chat-clip:hover { background: rgba(205, 180, 255, .1); }
.chat-send { flex: 0 0 auto; height: 46px; }
.chat-about-wrap { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .76rem; color: var(--muted); }
.chat-about { font: inherit; font-size: .78rem; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 99px; padding: .3rem .7rem; box-shadow: inset 0 0 0 1px var(--line); color-scheme: dark; }
.chat-attach { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.chat-attach img { height: 64px; border-radius: 10px; }
.chat-attach button { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; }
.threads { display: grid; align-content: start; gap: .4rem; max-height: min(72vh, 760px); overflow-y: auto; padding: .5rem; border-radius: 24px; background: linear-gradient(170deg, #1d0c33, #110720); box-shadow: inset 0 0 0 1px var(--line); }
.thread { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 16px; transition: background .3s; }
.thread:hover { background: rgba(205, 180, 255, .08); }
.thread.is-on { background: rgba(255, 111, 208, .14); box-shadow: inset 0 0 0 1px rgba(255, 179, 234, .45); }
.th-txt { min-width: 0; flex: 1; display: grid; }
.th-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-mobile { display: none; }

/* ---------- tarjeta de perfil ---------- */
.profile-card { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, #22103e, #130822); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, .35); }
.pf-cover { height: 140px; background: var(--holo) center / cover; background-size: cover; }
.compact .pf-cover { height: 90px; }
.pf-body { display: grid; justify-items: start; gap: .5rem; padding: 0 1.3rem 1.3rem; margin-top: -48px; }
.compact .pf-body { margin-top: -40px; }
.compact .ava-xl { width: 76px; height: 76px; }
.pf-name { font-family: var(--f-chrome); font-weight: 400; font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.pf-handle { font-family: var(--f-mono); font-size: .74rem; color: var(--pink-2); }
.pf-names { display: grid; }
.pf-bio { font-size: .92rem; color: rgba(251, 246, 255, .85); white-space: pre-wrap; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: .4rem; }
.link-chip { padding: .3rem .7rem; border-radius: 99px; font-size: .74rem; font-weight: 800; color: #3a1766; background: #f3e8ff; box-shadow: 0 2px 0 #b48ae8; transition: transform .3s var(--ease); }
a.link-chip:hover { transform: translateY(-2px) rotate(-2deg); background: #ffe2f5; }
.link-chip.is-discord { background: #e3e6ff; box-shadow: 0 2px 0 #8c96ff; }
.pf-since { font-size: .74rem; color: var(--muted); }
.pf-stats { display: flex; gap: .6rem; align-items: center; padding: 0 1.3rem 1.2rem; font-size: .8rem; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.person { display: block; transition: transform .4s var(--ease); }
.person:hover { transform: translateY(-5px); }

/* editor de perfil */
.pf-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pf-layout > aside { position: sticky; top: 90px; }
.pf-pv-k { text-align: center; font-size: 1.2rem; margin-bottom: .6rem; }
.pf-form, .pf-pass { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 22px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.pf-pass { margin-top: 1.2rem; }
.pf-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pf-media .lbl { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); }
.pf-media .row { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.pf-sub { font-family: var(--f-goth); font-weight: 400; font-size: 1.3rem; color: var(--pink-2); }
.pf-actions { display: flex; justify-content: flex-end; }

/* ---------- admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.tile { display: grid; gap: .2rem; padding: 1.3rem; border-radius: 20px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile b { font-family: var(--f-chrome); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.tile span { font-size: .84rem; color: var(--muted); }
.tile.hot { border: 2px solid transparent; background: linear-gradient(170deg, #2a1150, #150826) padding-box, var(--holo) border-box; }
.bars { list-style: none; display: grid; gap: .6rem; }
.bars li { display: grid; grid-template-columns: 9rem 1fr 2rem; align-items: center; gap: .7rem; font-size: .86rem; }
.bars i { height: 10px; border-radius: 99px; background: var(--c); box-shadow: 0 0 10px var(--c); min-width: 4px; transition: width .8s var(--ease); }
.bars b { text-align: right; }
.mini-list { list-style: none; display: grid; gap: .4rem; }
.mini-list a { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 14px; transition: background .3s; }
.mini-list a:hover { background: rgba(205, 180, 255, .08); }
.mini-list a > span:not(.ava):not(.chip-status) { flex: 1; min-width: 0; display: grid; }
.mini-list small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { margin: -1rem 0 1rem; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.col-k { display: grid; align-content: start; gap: .6rem; padding: .8rem; min-height: 200px; border-radius: 20px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.col-k.drop { background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.col-k > header { display: flex; align-items: center; gap: .5rem; padding: .2rem .3rem .4rem; font-size: .86rem; }
.col-k > header i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.col-k > header span { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.col-items { display: grid; gap: .6rem; }
.k-card { display: grid; gap: .5rem; padding: .9rem; border-radius: 16px; background: linear-gradient(170deg, #241042, #150826); box-shadow: inset 0 0 0 1px var(--line), 0 8px 16px rgba(0, 0, 0, .25); cursor: grab; transition: transform .3s var(--ease), box-shadow .3s; }
.k-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 12px 24px rgba(0, 0, 0, .3); }
.k-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; }
.k-top b { color: var(--pink-2); }
.k-top small { color: var(--muted); }
.k-who { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .88rem; }
.k-card p { font-size: .84rem; color: rgba(251, 246, 255, .8); overflow-wrap: anywhere; }
.k-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.k-card .prog { height: 6px; }
.k-card .prog em { display: none; }
.manage { display: grid; gap: 1rem; }
.st-rows { display: grid; gap: .5rem; margin: 1rem 0; }
.st-row { display: grid; grid-template-columns: 44px 1fr 1fr auto auto; align-items: center; gap: .5rem; }
.st-row input:not([type]) , .st-row input[type="text"] { font: inherit; font-size: .9rem; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 10px; padding: .55rem .7rem; box-shadow: inset 0 0 0 1px var(--line); outline: none; min-width: 0; }
.st-row input[type="color"] { width: 44px; height: 38px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; }
.chk { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.st-btns { display: flex; gap: .25rem; }
.st-btns button { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.st-btns button:disabled { opacity: .3; }
.st-btns .del:hover { background: rgba(255, 111, 208, .3); }
.switch { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; font-size: .9rem; cursor: pointer; }
.switch input { width: 46px; height: 26px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; cursor: pointer; transition: background .3s; flex: 0 0 46px; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--pink); }
.switch input:checked::after { transform: translateX(20px); }
.save-bar { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; margin-top: 1.2rem; }

/* ---------- avisos ---------- */
.toasts { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 120; display: grid; gap: .5rem; justify-items: end; pointer-events: none; }
.toast { padding: .7rem 1.2rem; border-radius: 99px; font-weight: 800; font-size: .9rem; color: #22093f; background: var(--holo); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: rise .4s var(--ease); max-width: 90vw; text-align: center; }
.toast.bad { color: #fff; background: #8b1d5f; box-shadow: inset 0 0 0 1px rgba(255, 179, 234, .5), 0 10px 30px rgba(0, 0, 0, .4); }
.toast.out { opacity: 0; transform: translateY(10px); transition: all .4s; }

/* aviso de cuenta en el formulario */
.req-gate { display: grid; gap: 1rem; justify-items: start; padding: 1.2rem 1.3rem; margin-bottom: 1.6rem; border-radius: 18px; background: rgba(255, 111, 208, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 234, .5); }
.req-gate p { font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-top: 5.6rem; }
  .side { position: relative; top: 0; grid-template-columns: auto 1fr; align-items: center; padding: .8rem; overflow: visible; }
  .sm-cover { display: none; }
  .side-me { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: .7rem; }
  .side-me .ava { grid-row: span 2; width: 48px; height: 48px; }
  .side-me b { margin: 0; }
  .side-nav { grid-column: 1 / -1; display: flex; overflow-x: auto; padding: 0; }
  .side-nav a { flex: 0 0 auto; }
  .side-new, .side-out { margin: 0; }
  .detail, .pf-layout { grid-template-columns: 1fr; }
  .pf-layout > aside { position: relative; top: 0; order: -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-layout.has-open .threads { display: none; }
  .back-mobile { display: inline-flex; }
}
@media (max-width: 640px) {
  .acct-name { display: none; }
  .acct.is-in { padding: .2rem; }
  .grid2, .pf-media, .dl { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .chat-list { padding: .9rem .7rem; }
  .chat-form { padding: .7rem; }
  .chat-send { padding-inline: 1rem; }
  .chat-head { padding: .8rem; }
  .st-row { grid-template-columns: 40px 1fr; }
  .st-row .chk, .st-row .st-btns { grid-column: 2; }
  .bars li { grid-template-columns: 6.5rem 1fr 1.6rem; }
}

@media (max-width: 640px) { .toasts { right: 50%; transform: translateX(50%); justify-items: center; } }
.is-admin .nav-cta { display: none; }
.chat-row textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat > .chat-empty:only-child { grid-row: 1 / -1; align-self: center; justify-self: center; padding: 2rem; }

/* =========================================================
   PANEL — TIENDA, VENTAS Y GALERÍA AVIS
   ========================================================= */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1rem; }
.shop-form { display: grid; gap: .95rem; }
.file-pick { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border-radius: 12px; background: rgba(0, 0, 0, .3); cursor: pointer; }
.file-pick b { padding: .4rem .9rem; border-radius: 99px; font-size: .82rem; color: #22093f; background: var(--holo); }
.file-pick span { font-size: .85rem; color: var(--muted); }
.tiles-6 { grid-template-columns: repeat(6, 1fr); }
.tiles-6 .tile b { font-size: clamp(1.2rem, 1.7vw, 1.75rem); white-space: nowrap; }
.tile.warn { box-shadow: inset 0 0 0 1.5px #ff9b6a, 0 0 24px rgba(255, 155, 106, .15); }
.pp-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: -.4rem 0 1.2rem; font-size: .88rem; color: var(--muted); }
.pp-line i { width: 9px; height: 9px; border-radius: 50%; background: #7dffbc; box-shadow: 0 0 10px #7dffbc; }
.pp-line.off i { background: #ff9b6a; box-shadow: 0 0 10px #ff9b6a; }
.pp-line b { color: var(--white); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.sp-card { display: grid; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.sp-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.sp-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; background: rgba(0, 0, 0, .3); color: var(--muted); font-size: .85rem; }
.sp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sp-body { display: grid; gap: .15rem; padding: .9rem 1rem 1rem; }
.sp-body b { font-size: 1.02rem; }
.sp-price { font-family: var(--f-chrome); font-size: 1.15rem; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-body small { color: var(--muted); font-size: .76rem; }
.empty-card { display: grid; justify-items: center; gap: 1rem; padding: 2.4rem; margin-bottom: 1.2rem; border-radius: 22px; text-align: center; color: var(--muted); outline: 1.5px dashed var(--line); outline-offset: -1.5px; background: rgba(255, 255, 255, .025); }
.json { max-height: 340px; overflow: auto; margin: .8rem 0; padding: .9rem 1rem; border-radius: 12px; background: rgba(0, 0, 0, .4); font: .74rem/1.5 var(--f-mono); color: #d9ccf5; white-space: pre; }
.json-box summary { cursor: pointer; margin-top: 1rem; font-size: .85rem; color: var(--lav); }
.p-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.p-img { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-img.is-cover { box-shadow: 0 0 0 2px var(--pink); }
.p-img > em { position: absolute; top: .4rem; left: .4rem; padding: .1rem .5rem; border-radius: 99px; font: 700 .6rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #22093f; background: var(--holo); }
.p-img-btns { position: absolute; left: .35rem; right: .35rem; bottom: .35rem; display: flex; gap: .3rem; justify-content: center; }
.p-img-btns button { width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; color: var(--white); background: rgba(13, 6, 22, .8); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }
.p-img-btns button:hover:not(:disabled) { background: var(--plum-2); }
.p-img-btns button:disabled { opacity: .35; }
.p-img-btns .del:hover { background: #8b1d5f !important; }
.p-add { aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: .2rem; border-radius: 14px; cursor: pointer; color: var(--lav); font-size: .8rem; outline: 1.5px dashed rgba(205, 180, 255, .4); outline-offset: -1.5px; transition: background .3s; }
.p-add:hover { background: rgba(205, 180, 255, .07); }
.p-add b { font-size: 1.8rem; line-height: 1; }
.p-file { display: grid; gap: .8rem; justify-items: start; }
.p-file .prog { width: 100%; }
.p-file-row { display: grid; gap: .2rem; }
.p-file-row b { overflow-wrap: anywhere; }
.p-file-row small, .p-file-row code { color: var(--muted); font-size: .76rem; }
.p-pub { display: grid; gap: .3rem; justify-items: start; }
.p-pub .switch { margin-bottom: .2rem; }
.linkish { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish.danger:hover:not(:disabled) { color: #ff8fb7; }
.linkish:disabled { text-decoration: none; opacity: .7; }
.btn-danger { color: #fff; background: #8b1d5f; box-shadow: inset 0 0 0 1px rgba(255, 179, 234, .4); }
.btn-danger:hover { background: #a3236f; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip-f { padding: .42rem .95rem; border-radius: 99px; font-size: .84rem; font-weight: 700; color: var(--lav); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
.chip-f:hover { background: rgba(205, 180, 255, .08); }
.chip-f.is-on { color: #22093f; background: var(--holo); box-shadow: none; }
.orders { display: grid; gap: .45rem; margin-top: 1rem; }
.o-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1.4fr .8fr 1.2fr; gap: 1rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; font-size: .9rem; }
a.o-row:hover { background: rgba(205, 180, 255, .07); }
.o-row > span { min-width: 0; display: grid; }
.o-row small { color: var(--muted); font-size: .74rem; }
.o-head { background: none; box-shadow: none; padding-block: 0; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.o-who { display: flex !important; align-items: center; gap: .5rem; }
.o-amt { font-weight: 800; }
.o-row .chip-status { justify-self: start; }
.o-row.flag { box-shadow: inset 0 0 0 1.5px #ff9b6a; }
.flag-txt { font-style: normal; font-size: .72rem; color: #ff9b6a; margin-top: .2rem; }
.review-box { box-shadow: inset 0 0 0 1.5px #ff9b6a, 0 0 30px rgba(255, 155, 106, .12); }
.review-box h4 { color: #ffb38f; }
.stack { display: grid; gap: .6rem; margin-top: .8rem; }
.stack input { font: inherit; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 12px; padding: .7rem .9rem; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.stack .row-btns { margin-top: 0; }
.money-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.money-row > div { display: grid; gap: .15rem; padding: .8rem; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.money-row small { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.money-row b { font-size: .98rem; white-space: nowrap; }
.money-row .hot { box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.mini-log { list-style: none; display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.ae-add { display: grid; grid-template-columns: 1fr 1.3fr .7fr; gap: .9rem 1rem; align-items: end; }
.ae-add .ae-prev { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.ae-add .ae-prev:empty { display: none; }
.ae-prev img { width: 66px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.ae-add > button { grid-column: 1 / -1; justify-self: start; }
.ae-add input[type="file"] { padding: .55rem .7rem; }
.avis-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.ae-card { position: relative; display: grid; gap: .45rem; padding: .5rem; border-radius: 16px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; transition: transform .25s var(--ease), opacity .25s; }
.ae-card.dragging { opacity: .4; transform: scale(.96); }
.ae-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 11px; pointer-events: none; }
.ae-card input { width: 100%; font: inherit; font-size: .88rem; font-weight: 700; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 9px; padding: .45rem .6rem; outline: none; }
.ae-card input:focus { box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.ae-card .p-img-btns { position: static; }
.ae-no { position: absolute; top: .9rem; left: .9rem; padding: .1rem .5rem; border-radius: 99px; font: 700 .6rem var(--f-mono); color: #22093f; background: rgba(255, 255, 255, .85); }
@media (max-width: 1200px) { .tiles-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid3, .ae-add { grid-template-columns: 1fr; }
  .tiles-6 { grid-template-columns: repeat(2, 1fr); }
  .money-row { grid-template-columns: repeat(2, 1fr); }
  .o-row { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .o-row > span:nth-child(3) { grid-column: 1; color: var(--muted); }
  .o-row > span:nth-child(2) { grid-row: 2; }
  .o-head { display: none; }
}
