/* ─────────────────────────────────────────────────────────────
   REEL — estilos de cuentas: avatares, menús, pestañas, canales,
   visibilidad de vídeos y páginas de entrar/registro/cuenta.
   Va después de app.css y usa sus mismas variables.
   ───────────────────────────────────────────────────────────── */

/* ═════════════ AVATARES Y MENÚS ═════════════ */
.avatar {
  --h: 220;
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 70% 42%));
  color: #fff; font-weight: 700; font-size: .95rem; text-shadow: 0 1px 2px rgba(0,0,0,.3);
  border: 0; user-select: none;
}
.avatar.xs  { width: 20px; height: 20px; font-size: .62rem; }
.avatar.xl  { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar.xxl { width: 120px; height: 120px; font-size: 3rem; box-shadow: 0 0 0 6px var(--bg); }
#userBtn { width: 38px; height: 38px; cursor: pointer; transition: box-shadow .15s; }
#userBtn:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }

.usermenu { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px;
  background: rgba(17,21,29,.98); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: rise .2s var(--ease);
}
.menu.up { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; min-width: 280px; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 9px;
  text-decoration: none; font-size: .88rem; text-align: left; color: var(--text);
}
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.06); }
.menu svg { color: var(--text-2); }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: grid; }
.menu-head span { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: 2px; }
.menu button span { display: grid; font-size: .76rem; color: var(--muted); }
.menu button span b { font-size: .88rem; color: var(--text); font-weight: 500; }
.menu button.on { background: var(--accent-a); }
.menu button.on svg { color: var(--accent); }
.only-sm { display: none; }

/* ═════════════ PESTAÑAS MIS VÍDEOS / EXPLORAR ═════════════ */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tabs button {
  position: relative; padding: 10px 16px 14px; font-family: var(--display); font-size: 1.35rem; letter-spacing: .08em;
  color: var(--muted); transition: color .15s;
}
.tabs button:hover, .tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tabs .n { font-family: var(--mono); font-size: .68rem; letter-spacing: 0; color: var(--muted); margin-left: 4px; vertical-align: middle; }

/* Autor en tarjetas y portada */
.by {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: .8rem; color: var(--text-2);
  cursor: pointer; border-radius: 20px; padding: 2px 8px 2px 2px; transition: background .15s, color .15s;
}
.by:hover { background: var(--card-2); color: var(--text); }
.hero-meta .by { margin: 0; color: var(--text); }
.badge.vis { background: rgba(0,0,0,.72); color: #fff; display: inline-flex; align-items: center; gap: 4px; letter-spacing: .04em; }
.badge.vis svg { width: 12px; height: 12px; color: var(--hot); }

/* ═════════════ CANAL ═════════════ */
.channel { --h: 220; margin-bottom: 26px; }
.channel .empty { margin-bottom: 0; }
.channel-banner {
  height: 170px; border-radius: 20px; border: 1px solid var(--border);
  background:
    radial-gradient(80% 140% at 15% 0%, hsl(var(--h) 80% 55% / .55), transparent 60%),
    radial-gradient(70% 120% at 90% 100%, hsl(calc(var(--h) + 60) 80% 50% / .45), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px), var(--card);
}
.channel-body { display: flex; align-items: flex-end; gap: 24px; padding: 0 28px; margin-top: -54px; flex-wrap: wrap; }
.channel-info { flex: 1; min-width: 240px; padding-bottom: 4px; }
.channel-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: .04em; line-height: 1; color: #fff; }
.channel-handle { font-family: var(--mono); font-size: .76rem; color: var(--text-2); margin-top: 6px; }
.channel-stats { margin-top: 8px; font-size: .86rem; color: var(--text-2); }
.channel-stats b { color: var(--text); font-weight: 500; }
.channel-bio { margin-top: 10px; max-width: 640px; line-height: 1.6; white-space: pre-line; }
.channel-actions { display: flex; gap: 8px; padding-bottom: 6px; }
.channel-note { display: flex; align-items: center; gap: 8px; margin: 18px 28px 0; font-size: .82rem; color: var(--muted); }
.channel-note svg { width: 16px; height: 16px; }

/* Ficha del vídeo: autor y visibilidad */
.owner-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.owner { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 14px 4px 4px; border-radius: 30px; transition: background .15s; }
.owner:hover { background: var(--card); }
.owner span { display: grid; }
.owner b { font-weight: 500; }
.owner small { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.vis-picker { position: relative; }
#visBtn svg { color: var(--accent); }

.uploads .panel-head { gap: 8px; }
.uploads .panel-head .select { height: 30px; margin-left: auto; }

/* ═════════════ PÁGINAS DE CUENTA ═════════════ */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 40px 16px; }
.auth-mosaic {
  position: fixed; inset: -6%; z-index: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  transform: rotate(-8deg) scale(1.15); filter: blur(3px) saturate(1.2); opacity: .28;
  animation: drift 60s linear infinite alternate;
}
.auth-mosaic i { aspect-ratio: 16/9; border-radius: 10px; background: var(--card-2) center / cover; }
@keyframes drift { to { transform: rotate(-8deg) scale(1.15) translateY(-6%); } }
body.auth::after { content: ""; position: fixed; inset: 0; z-index: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(7,9,13,.55), rgba(7,9,13,.96)); }
.auth-card {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 32px 34px 28px;
  background: rgba(17,21,29,.9); border: 1px solid var(--border-2); border-radius: 24px; backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: rise .45s var(--ease);
}
.auth-card .logo { font-size: 2.2rem; }
.auth-card h1 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: .05em; margin: 22px 0 4px; color: #fff; }
.auth-sub { color: var(--text-2); font-size: .92rem; line-height: 1.5; margin-bottom: 4px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .06em; padding-top: 18px; border-top: 1px solid var(--border); }
.field { display: grid; gap: 6px; }
.field span { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.field input, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; outline: 0; font-size: .95rem;
  background: var(--bg-2); border: 1px solid var(--border-2); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; font: inherit; }
.field input:focus, .field textarea:focus { border-color: rgba(232,255,71,.6); box-shadow: 0 0 0 4px rgba(232,255,71,.08); }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
.field em { font-style: normal; font-size: .78rem; color: var(--danger); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: -8px; }
.btn.big { height: 48px; justify-content: center; font-size: .95rem; margin-top: 4px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--text-2); }
.auth-alt a, .row-between a, .notice a { color: var(--accent); text-decoration: none; }
.auth-alt a:hover, .row-between a:hover { text-decoration: underline; }
.auth-alt .btn { color: #0a0c10; text-decoration: none; display: inline-flex; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.5; border: 1px solid; }
.notice.ok    { background: rgba(93,211,158,.08); border-color: rgba(93,211,158,.35); color: #a8ecc9; }
.notice.error { background: rgba(255,77,94,.08); border-color: rgba(255,77,94,.35); color: #ffb3bb; }
.notice.info  { background: var(--accent-a); border-color: rgba(232,255,71,.3); }
.notice b { color: #fff; }
.meter { display: flex; align-items: center; gap: 10px; height: 14px; font-size: .74rem; color: var(--muted); }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--border-2); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 4px; transition: width .25s, background .25s; }
.meter[data-l="1"] i::after { width: 25%; background: var(--danger); }
.meter[data-l="2"] i::after { width: 50%; background: var(--hot); }
.meter[data-l="3"] i::after { width: 75%; background: #ffd23f; }
.meter[data-l="4"] i::after { width: 100%; background: #5dd39e; }
.mail-art { display: grid; place-items: center; margin: 22px 0 4px; }
.mail-art svg { width: 64px; height: 64px; color: var(--accent); animation: bob 1.4s ease-in-out infinite alternate; }
.acc-head { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.acc-head > div:last-child { display: grid; gap: 3px; }
.acc-head b { font-size: 1.1rem; }
.acc-head span { font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: .62rem; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: #0a0c10; vertical-align: middle; }
.acc-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 720px) {
  .only-sm { display: block; }
  .hide-sm { display: none; }
  .avatar.xxl { width: 88px; height: 88px; font-size: 2.2rem; }
  .channel-body { padding: 0 12px; margin-top: -44px; gap: 14px; }
  .channel-banner { height: 120px; }
  .channel-note { margin: 14px 12px 0; }
  .two { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
}


/* ═════════════ PAPELERA, SELECCIÓN E INSERTAR ═════════════ */
.tabs .tab-trash { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.tabs .tab-trash svg { width: 18px; height: 18px; }
.trash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; background: rgba(255,77,94,.06); border: 1px solid rgba(255,77,94,.2);
}
.trash-head p { color: var(--text-2); font-size: .88rem; line-height: 1.5; }
.trash-head b { color: var(--text); }
.btn:disabled { opacity: .4; pointer-events: none; }

.card.trashed .thumb { filter: grayscale(.7) brightness(.75); }
.card.trashed:hover .thumb { transform: none; }
.card-meta .purge { color: var(--danger); }
.trash-actions { display: flex; gap: 6px; margin-top: 10px; }
.trash-actions .btn { height: 32px; padding: 0 10px; font-size: .8rem; }
.trash-actions svg { width: 16px; height: 16px; }

/* Selección múltiple */
.card { position: relative; }
.sel-check {
  position: absolute; left: 10px; top: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  display: none; place-items: center; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); color: transparent;
  backdrop-filter: blur(4px); transition: background .15s, transform .15s var(--ease);
}
.sel-check svg { width: 18px; height: 18px; }
.card.selectable { cursor: pointer; }
.card.selectable .sel-check { display: grid; }
.card.selectable .badge, .card.selectable .fav-btn, .card.selectable .trash-actions { visibility: hidden; }
.card.sel .sel-check { background: var(--accent); border-color: var(--accent); color: #0a0c10; transform: scale(1.08); }
.card.sel .thumb { box-shadow: 0 0 0 3px var(--accent); transform: scale(.97); }
#grid.list .sel-check { left: 18px; top: 18px; }
#selectBtn.on { color: var(--accent); border-color: rgba(232,255,71,.35); background: var(--accent-a); }

.bulk {
  position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 85; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 16px; flex-wrap: wrap;
  background: rgba(17,21,29,.97); border: 1px solid var(--border-2); box-shadow: 0 20px 60px rgba(0,0,0,.7); animation: rise .3s var(--ease);
}
.bulk-n { font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.bulk-n b { color: var(--accent); font-family: var(--mono); }
.bulk-sep { width: 1px; height: 24px; background: var(--border-2); }
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bulk .btn { height: 34px; padding: 0 12px; font-size: .82rem; }
.bulk .btn svg { width: 16px; height: 16px; }

/* Diálogo */
.modal-box.small { width: min(520px, 100%); }
#dlgBody p { color: var(--text-2); line-height: 1.6; }
#dlgBody p b { color: var(--text); }
.dlg-text { margin-bottom: 12px; font-size: .9rem; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.embed-code {
  width: 100%; padding: 12px; border-radius: 10px; resize: none; outline: 0; margin-bottom: 14px;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--accent); font: .78rem/1.5 var(--mono);
}
.embed-code:focus { border-color: rgba(232,255,71,.5); }

@media (max-width: 720px) {
  .bulk { left: 16px; right: 16px; translate: none; max-width: none; }
  .bulk .btn span { display: none; }
  .bulk-sep, #bulkAll { display: none; }
}

.dlg-actions .btn.danger, .trash-head .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.dlg-actions .btn.danger:hover, .trash-head .btn.danger:hover { background: #ff6b78; color: #fff; }

/* Borrar cuenta */
.danger-zone { margin-top: 22px; border: 1px solid rgba(255,77,94,.3); border-radius: 14px; padding: 4px 16px; background: rgba(255,77,94,.04); }
.danger-zone summary { cursor: pointer; padding: 12px 0; color: #ffb3bb; font-weight: 500; font-size: .9rem; }
.danger-zone .auth-form { margin: 0 0 16px; }
.danger-zone .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }


/* ═════════════ FOTO DE PERFIL ═════════════ */
img.avatar { object-fit: cover; background: var(--card-2); padding: 0; }
#userBtn { padding: 0; overflow: hidden; }
#userBtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-head .tag { justify-self: start; }

.av-editor { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.av-crop {
  position: relative; flex: none; width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
  background: var(--bg-2); border: 2px dashed var(--border-2); touch-action: none; user-select: none;
}
.av-crop.editing { border: 2px solid var(--accent); cursor: grab; box-shadow: 0 0 0 6px var(--accent-a); }
.av-crop.editing:active { cursor: grabbing; }
.av-crop .av-current { width: 100%; height: 100%; font-size: 3.4rem; border-radius: 0; }
.av-crop.editing .av-current { display: none; }
.av-crop #avImg { position: absolute; max-width: none; pointer-events: none; }
.av-side { flex: 1; min-width: 180px; display: grid; gap: 10px; }
.av-side .hint { margin: 0; }
.av-zoom { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-2); }
.av-zoom input { flex: 1; --v: 0%; }
.av-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.av-btns .btn { height: 36px; }


/* ═════════════ LOGO SOBRE EL VÍDEO ═════════════ */
.p-mark {
  position: absolute; z-index: 2; width: 120px; height: auto; right: 16px; bottom: 16px;
  opacity: .9; pointer-events: none; user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  transition: transform .25s var(--ease);
}
.player:not(.hide-ui) .p-mark { transform: translateY(calc(-1 * var(--lift, 0px))); }

/* ═════════════ COMENTARIOS ═════════════ */
.avatar.sm { width: 28px; height: 28px; font-size: .75rem; }
.comments { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.comments .panel-head h2 { display: flex; align-items: baseline; gap: 10px; }
.c-count { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.c-note { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--card); color: var(--text-2); font-size: .88rem; }
.c-note a { color: var(--accent); text-decoration: none; }
.c-note a:hover { text-decoration: underline; }
.c-empty { color: var(--muted); font-size: .9rem; padding: 18px 0; }

.c-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.c-form.compact { margin: 12px 0 4px; }
.c-input { flex: 1; min-width: 0; }
.c-input textarea, .c-edit textarea {
  width: 100%; min-height: 40px; resize: none; outline: 0; font: inherit; font-size: .92rem; line-height: 1.5;
  background: transparent; border: 0; border-bottom: 1px solid var(--border-2); padding: 8px 2px; color: var(--text);
  transition: border-color .15s;
}
.c-input textarea:focus, .c-edit textarea:focus { border-bottom-color: var(--accent); }
.c-edit textarea { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; min-height: 70px; }
.c-tools { display: none; align-items: center; gap: 8px; margin-top: 8px; }
.c-form.open .c-tools, .c-form.compact .c-tools, .c-edit .c-tools { display: flex; }
.c-tools .btn { height: 34px; font-size: .82rem; }
.c-left { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--hot); }
.c-time { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-2); padding: 6px 10px; border-radius: 8px; }
.c-time svg { width: 15px; height: 15px; color: var(--accent); }
.c-time:hover { background: var(--card); color: var(--text); }

.c-list { display: grid; gap: 4px; }
.c-item { display: flex; gap: 12px; padding: 10px 0; }
.c-item.fresh > .c-main > .c-body { animation: glow 1.6s ease-out; border-radius: 6px; }
@keyframes glow { from { background: var(--accent-a); } }
.c-item > a { flex: none; text-decoration: none; }
.c-main { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; }
.c-name { font-weight: 600; color: var(--text); text-decoration: none; }
.c-name:hover { color: var(--accent); }
.c-badge { font-family: var(--mono); font-size: .62rem; padding: 1px 6px; border-radius: 5px; background: var(--accent); color: #0a0c10; }
.c-when { color: var(--muted); font-size: .76rem; }
.c-body { margin-top: 4px; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.c-body .ts { color: var(--accent); font-family: var(--mono); font-size: .86rem; padding: 0 3px; border-radius: 4px; }
.c-body .ts:hover { background: var(--accent-a); text-decoration: underline; }
.c-actions { display: flex; gap: 2px; margin-top: 4px; margin-left: -8px; }
.c-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; font-size: .76rem; color: var(--muted); }
.c-actions button svg { width: 14px; height: 14px; }
.c-actions button:hover { background: var(--card); color: var(--text); }
.c-actions button[data-act="del"]:hover { color: var(--danger); }
.c-replies { margin-top: 4px; padding-left: 4px; border-left: 2px solid var(--border); }
.c-replies .c-item { padding: 8px 0 8px 12px; }


/* ═════════════ LOGO GRABÁNDOSE ═════════════ */
.wm-status {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 12px 16px; border-radius: 12px; font-size: .86rem; color: var(--text-2);
  background: var(--accent-a); border: 1px solid rgba(232,255,71,.25);
}
.wm-status .forge-spin { color: var(--accent); flex: none; }
.wm-status b { color: var(--accent); font-family: var(--mono); }
.wm-status small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.wm-status > span:nth-child(2) { flex: 1; }
.wm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.wm-bar i { display: block; height: 100%; background: var(--accent); transition: width .6s; }
.wm-status.err { background: rgba(255,77,94,.07); border-color: rgba(255,77,94,.3); }
.wm-status.err svg { color: var(--danger); }
.wm-status.err em { font-style: normal; color: var(--text); }


/* ═════════════ CAPTCHA DE FIGURAS ═════════════ */
.captcha { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border-2); }
.captcha.has-err { border-color: var(--danger); }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--text-2); }
.cap-head b { color: var(--accent); letter-spacing: .04em; }
.cap-new { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.cap-new:hover { background: var(--card-2); color: var(--text); }
.cap-new svg { width: 18px; height: 18px; }
.cap-new:active svg { transform: rotate(-90deg); transition: transform .2s; }
.cap-grid {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; user-select: none;
}
.cap-grid img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cap-tile { position: relative; cursor: pointer; }
.cap-tile input { position: absolute; opacity: 0; pointer-events: none; }
.cap-tile span { position: absolute; inset: 3px; border-radius: 6px; border: 3px solid transparent; transition: border-color .12s, background .12s; }
.cap-tile:hover span { border-color: rgba(255,255,255,.35); }
.cap-tile input:focus-visible + span { border-color: rgba(255,255,255,.6); }
.cap-tile input:checked + span { border-color: var(--accent); background: rgba(232,255,71,.12); }
.cap-tile input:checked + span::after {
  content: "✓"; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #0a0c10; font-weight: 700; font-size: .8rem;
}
.captcha small { font-size: .76rem; color: var(--muted); }
.captcha em { font-style: normal; font-size: .78rem; color: var(--danger); }


/* ═════════════ AVISOS ═════════════ */
.notif { position: relative; }
#bellBtn { position: relative; }
#bellBtn.on svg { color: var(--accent); animation: ring 1.2s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes ring { 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } 75% { transform: none; } }
.bell-n {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--hot); color: #fff; font: 700 .64rem/18px var(--mono); font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.notif-menu { width: 400px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-head b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .06em; }
.link-btn { font-size: .78rem; color: var(--accent); }
.link-btn:hover { text-decoration: underline; }
.notif-list { max-height: min(480px, 70vh); overflow-y: auto; padding: 4px; }
.notif-item {
  position: relative; display: flex !important; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 14px !important;
  border-radius: 10px; text-decoration: none; color: var(--text-2) !important;
}
.notif-item.unread { background: var(--accent-a); color: var(--text) !important; }
.notif-item.unread::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.notif-item .avatar { margin-top: 2px; }
.notif-text { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.4; }
.notif-text b { color: var(--text); font-weight: 600; }
.notif-text q { display: block; margin-top: 3px; color: var(--text-2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-text q::before, .notif-text q::after { content: '"'; }
.notif-text small { display: block; margin-top: 3px; font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.notif-item img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; }
.notif-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.notif-empty svg { display: block; margin: 0 auto 8px; width: 28px; height: 28px; color: var(--border-2); }
.c-item.focus > .c-main { animation: focusGlow 2.6s ease-out; border-radius: 10px; }
@keyframes focusGlow { 0%, 35% { background: var(--accent-a); box-shadow: 0 0 0 6px var(--accent-a); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 720px) { .notif-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--top-h) + 4px); width: auto; } }
