/* Clippers Pro — identidad visual de la landing (verde azulado oscuro,
   Archivo para titulares e Inter para el texto), pedido de Wilson 20 oct 2026:
   que la app se vea como la misma página al iniciar sesión desde la landing. */
:root {
  color-scheme: dark;
  --bg: #04100f;
  --surface: #0c2321;
  --surface-2: #0f2b28;
  --ink: #f2f7f5;
  --muted: #9db8b1;
  --line: #1e3d38;
  --accent: #2dd4bf;
  --accent-ink: #03211d;
  --coral: #fb7185;
  --dark: #06231f;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  --focus: #2dd4bf;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40;
  background: var(--dark); color: var(--ink);
  display: flex; flex-direction: column;
}
.sb-inner { padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; height: 100%; overflow-y: auto; }
.sb-brand { display: flex; gap: 12px; align-items: center; }
.sb-dot {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
}
.sb-brand strong { display: block; font-size: 1.02rem; }
.sb-brand span { font-size: .78rem; color: var(--muted); }
.sb-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px;
  padding: 13px; font-weight: 700; width: 100%;
}
.sb-submit svg { width: 18px; height: 18px; }
.sb-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 9px 12px;
}
.sb-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sb-search input { background: none; border: 0; color: inherit; width: 100%; }
.sb-search input::placeholder { color: #7e9a93; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-section-label { font-size: .68rem; letter-spacing: .14em; color: #7e9a93; margin: 14px 4px 6px; font-weight: 700; }
.sb-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; border-radius: 10px; text-align: left;
  padding: 11px 12px; font-size: .95rem; color: var(--ink);
}
.sb-item svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.sb-item:hover { background: rgba(255,255,255,.06); }
.sb-item.active { background: rgba(255,255,255,.10); font-weight: 700; }
.sb-item.active svg { color: var(--accent); }
.sb-pill { margin-left: auto; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; }
.sb-admin { border-top: 1px solid rgba(255,255,255,.12); margin-top: 10px; padding-top: 6px; }
.menu-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 50;
  background: var(--dark); color: #fff; border: 0; border-radius: 10px; padding: 10px;
}
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.sb-backdrop { display: none; }

/* ---------- App shell ---------- */
.app-shell { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar-page { margin-right: auto; }
.topbar-page span { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topbar-page strong { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.5rem; }
#current-page-subtitle { display: block; font-size: .85rem; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: 2px; }
#current-page-subtitle:empty { display: none; }
/* Pestañas del chat en la barra superior: debajo de la palabra Chat,
   pequeñas y compactas, con el subtítulo debajo de ellas (no a su derecha,
   para que nada se apriete) y el número rojo pegado al texto, en línea. */
.topbar-chat-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.topbar-chat-row[hidden] { display: none; }
.topbar-chat-row .chat-tabs { margin-bottom: 0; }
.topbar-chat-row .chat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; }
.topbar-chat-row .chat-tab-badge { flex: none; }
/* Chat y Logros a pantalla completa: sin encabezado grande, la caja crece. */
#page-chat .chat-box { height: calc(100vh - 210px); max-height: none; min-height: 420px; }
#page-logros .chat-box { height: calc(100vh - 170px); max-height: none; min-height: 420px; }
.top-action {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 16px; font-weight: 600; position: relative;
}
.top-action svg { width: 18px; height: 18px; }
.bell-dot {
  position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px;
  background: var(--coral); color: #fff; border-radius: 99px;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.bell-dot[hidden] { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.user-chip-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800;
}
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; padding: 4px; }

.content { padding: 28px; width: min(1180px, 100%); margin: 0 auto; }
.app-page[hidden] { display: none; }

/* ---------- Campaigns ---------- */
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.hero h1 em { color: var(--coral); font-style: italic; }
.hero p { color: var(--muted); max-width: 640px; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.search {
  display: flex; gap: 10px; align-items: center; flex: 1; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { border: 0; background: none; width: 100%; color: inherit; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 16px;
}
.filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 6px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge {
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; border-radius: 6px; padding: 4px 8px;
}
.badge.real { background: var(--accent); color: var(--accent-ink); }
.badge.example { background: var(--surface-2); color: var(--muted); }
.platform-tag { font-size: .75rem; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.35rem; }
.card .artist { color: var(--muted); font-size: .9rem; margin: 0; }
.card .pay { font-weight: 700; }
.budget { margin-top: 4px; }
.budget-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.budget-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.budget-fill { height: 100%; transition: width .4s; }
.budget-fill.fill-avail { background: linear-gradient(90deg, var(--accent), #14b8a6); }
.budget-fill.fill-res { background: linear-gradient(90deg, #f59e0b, #d97706); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-avail { background: var(--accent); }
.dot-res { background: #f59e0b; }
.budget-label strong { color: var(--ink); }
.budget-total { font-size: .78rem; color: var(--muted); margin-top: 6px; display: block; }
.card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.btn {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 18px; font-weight: 700;
  background: var(--surface-2); color: var(--ink); text-decoration: none; display: inline-block;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.danger { background: #c0392b; color: #fff; }
.btn.small { padding: 7px 12px; font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Sections / placeholders ---------- */
.panel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); max-width: 760px;
}
.panel-card p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat-box { background: var(--surface-2); border-radius: 12px; padding: 16px; }
.stat-box strong { display: block; font-size: 1.5rem; }
.stat-box span { font-size: .78rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.row-actions { display: flex; gap: 8px; }

/* ---------- Dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 0; max-width: min(620px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog-body { padding: 28px; position: relative; }
.dialog-body h2 { font-size: 1.8rem; padding-right: 36px; }
.close { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border: 0; border-radius: 99px; width: 36px; height: 36px; display: grid; place-items: center; }
.close svg { width: 16px; height: 16px; }
.source-row { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.detail-box { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.detail-box span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.detail-box strong { font-size: .95rem; }
.requirements ul { margin: 8px 0; padding-left: 20px; }
.requirements li { margin-bottom: 6px; }
.notice { background: rgba(245, 185, 66, .12); border: 1px solid rgba(245, 185, 66, .45); color: #f5b942; border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; margin-top: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  background: var(--bg); color: var(--ink);
}
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; gap: 10px; align-items: center; }
.form-error { color: #fb7185; font-size: .88rem; min-height: 1.2em; }
.auth-tabs { display: flex; gap: 8px; margin: 14px 0; }
.auth-tabs button { flex: 1; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 10px; font-weight: 700; }
.auth-tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Notifications panel ---------- */
.notifications {
  position: absolute; top: 64px; right: 28px; width: min(360px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 60; overflow: hidden;
}
.notifications[hidden] { display: none; }
.notifications-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notifications-head strong { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.15rem; }
.notification-item { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.notification-item strong { display: block; font-size: .92rem; }
.notification-item p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.notification-item time { font-size: .72rem; color: var(--muted); }
.notif-empty { padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  body.sidebar-open .sidebar { transform: none; }
  .menu-toggle { display: block; }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.sidebar-open .sb-backdrop { opacity: 1; pointer-events: auto; }
  .app-shell { margin-left: 0; }
  .app-topbar { padding: 14px 16px; padding-left: 64px; }
  .content { padding: 18px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .signin-label { display: none; }
}

/* Vinculación de cuentas sociales (Fase 1) */
.account-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.account-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.code-box strong { font-size: 1.15rem; letter-spacing: 1px; }
.code-input { max-width: 170px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: inherit; font: inherit; }
.muted { color: var(--muted); font-size: .88rem; }

/* Login con Google */
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#google-btn-wrap { display: flex; justify-content: center; }
#google-btn-wrap[hidden] { display: none; }

/* Colores de ganancia estimada y acreditada */
.est-met { color: #f5b942; font-weight: 700; }
.est-below { color: #fb7185; }
.credited-ok { color: #4ade80; font-weight: 700; }

/* Línea de beneficio en el diálogo de acceso */
.auth-benefit { color: var(--muted); font-size: .92rem; margin: 2px 0 12px; }

/* Imagen de portada en las tarjetas de campaña */
.card { overflow: hidden; }
.card-img {
  width: calc(100% + 40px); margin: -20px -20px 2px; height: 168px;
  object-fit: cover; display: block; background: var(--surface-2);
}
.card a { color: inherit; }

/* Página propia del brief de campaña (/campana/:id) */
.brief-wrap { max-width: 880px; margin: 0 auto; padding: 20px 18px 64px; }
.brief-top { display: flex; align-items: center; gap: 12px; padding: 8px 0 18px; }
.brief-top .brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; }
.brief-top .brand strong { display: block; font-size: 1.02rem; font-family: "Archivo", sans-serif; }
.brief-top .brand span { font-size: .78rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }
.brief-hero { width: 100%; height: clamp(220px, 44vw, 400px); object-fit: cover; border-radius: 18px; border: 1px solid var(--line); display: block; margin-bottom: 22px; background: var(--surface-2); }
.brief-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.brief-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.08; margin-bottom: 6px; }
.brief-artist { color: var(--muted); margin: 0 0 6px; }
.brief-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.material-card { margin-bottom: 18px; }
.material-embed { margin-bottom: 8px; }
.material-embed iframe { border: 0; border-radius: 12px; background: #000; display: block; }
.material-frame-vertical { width: 100%; max-width: 420px; height: 580px; }
.material-frame-horizontal { width: 100%; height: 360px; }
.material-origin { font-weight: 600; }
.brief-cta .btn { font-size: 1rem; padding: 13px 22px; }

/* ---------- Chat (comunidad + privados) ---------- */
.sb-badge, .chat-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; }
.sb-badge { margin-left: auto; }
.chat-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.chat-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid #134e4a; background: #0c2321; color: #a7f3ea; font-weight: 600; cursor: pointer; }
.chat-tab.is-active { background: #2dd4bf; color: #04211d; border-color: #2dd4bf; }
.chat-pinned { background: #123b36; border: 1px solid #2dd4bf55; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; color: #d9fbf5; }
/* La caja del chat es una columna que cabe en la pantalla: los mensajes
   scrollean dentro y la barra de escribir queda siempre abajo y visible,
   sin tener que bajar la página. El alto descuenta la barra superior y el
   título de la sección, que era lo que empujaba la barra fuera de la vista. */
.chat-box { background: #0c2321; border: 1px solid #123b36; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 360px); max-height: 760px; min-height: 340px; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; padding: 16px; }
.chat-empty { color: #8fbdb5; text-align: center; padding: 18px 0; }
.msg { align-self: flex-start; max-width: 80%; background: #0f2b28; border: 1px solid #16403a; border-radius: 14px; padding: 10px 12px; }
.msg.mine { align-self: flex-end; background: #11443b; border-color: #1d5c4e; }
.msg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d9fbf5; margin-bottom: 4px; }
.admin-chip { background: #2dd4bf; color: #04211d; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.msg-time { color: #6d9a93; font-size: 11px; margin-left: auto; }
.msg-quote { display: block; width: 100%; text-align: left; background: #0a1f1c; border-left: 3px solid #2dd4bf; border-radius: 6px; padding: 6px 8px; margin: 4px 0 6px; color: #a7f3ea; font-size: 12px; cursor: pointer; }
.msg-body { color: #e6fffb; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg-body a { color: #2dd4bf; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.rx-chip { background: #0a1f1c; border: 1px solid #1d5c4e; color: #d9fbf5; border-radius: 999px; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.rx-chip.mine { border-color: #2dd4bf; background: #123b36; }
.emoji-row { display: flex; gap: 4px; margin-top: 8px; }
.emoji-row button { background: #0a1f1c; border: 1px solid #1d5c4e; border-radius: 10px; font-size: 17px; padding: 4px 8px; cursor: pointer; }
.msg-actions { display: flex; gap: 10px; margin-top: 7px; }
.msg-actions button { background: none; border: none; color: #6d9a93; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.msg-actions button:hover { color: #2dd4bf; }
.msg-flash { animation: msgflash 1.6s ease; }
@keyframes msgflash { 0%, 60% { box-shadow: 0 0 0 2px #2dd4bf; } 100% { box-shadow: none; } }
.chat-replybar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0a1f1c; border-top: 1px solid #16403a; padding: 8px 14px; color: #a7f3ea; font-size: 13px; }
.chat-replybar button { background: none; border: none; color: #a7f3ea; font-size: 15px; cursor: pointer; }
.chat-composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid #16403a; background: #0c2321; flex: none; }
/* Imagen en el chat: miniatura pequeña; al tocarla se abre grande. */
.chat-img-thumb { max-width: 280px; width: 100%; border-radius: 10px; margin-top: 8px; cursor: zoom-in; display: block; }
.paste-preview { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid #16403a; background: #0a1f1c; color: #8fbdb5; font-size: 13px; }
/* Sin imagen adjunta ni pegada, la vista previa NO se muestra: esta regla
   pesa más que el display:flex de arriba, para que el atributo hidden sí oculte. */
.paste-preview[hidden] { display: none; }
.paste-preview img { max-height: 60px; border-radius: 8px; }
.paste-preview button { background: none; border: none; color: #8fbdb5; font-size: 16px; cursor: pointer; }
/* Visor de imagen: fondo oscuro, imagen hasta el 90% de la pantalla. */
#img-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 20px; }
#img-lightbox.open { display: flex; }
#img-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; cursor: zoom-out; }
#img-lightbox button { background: #2dd4bf; color: #04211d; border: none; border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; }
.chat-composer input { flex: 1; background: #0a1f1c; border: 1px solid #1d5c4e; border-radius: 10px; color: #e6fffb; padding: 10px 12px; }
.chat-dm-head { padding: 10px 16px; border-bottom: 1px solid #16403a; color: #d9fbf5; font-weight: 700; background: #0f2b28; }
.chat-threads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.thread-item { display: flex; align-items: center; gap: 10px; text-align: left; background: #0c2321; border: 1px solid #123b36; border-radius: 12px; padding: 10px 14px; color: #d9fbf5; cursor: pointer; }
.thread-item.active { border-color: #2dd4bf; }
.thread-name { font-weight: 700; }
.thread-last { color: #8fbdb5; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* ---------- Cursos (academia) ---------- */
.course-card { max-width: 860px; }
.course-intro { color: #a7f3ea; }
.course-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.course-progress .budget-track { flex: 1; }
.course-progress-text { color: #8fbdb5; font-size: 13px; white-space: nowrap; }
.course-lessons { display: flex; flex-direction: column; gap: 8px; }
.lesson-item { display: flex; align-items: center; gap: 12px; text-align: left; background: #0f2b28; border: 1px solid #16403a; border-radius: 12px; padding: 12px 14px; color: #e6fffb; cursor: pointer; width: 100%; }
.lesson-item:hover { border-color: #2dd4bf; }
.lesson-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #123b36; color: #2dd4bf; font-weight: 800; flex: none; }
.lesson-name { font-weight: 600; flex: 1; }
.lesson-done-tag { color: #2dd4bf; font-size: 12px; font-weight: 700; }
.lesson-card { max-width: 860px; margin-top: 14px; }
.lesson-kicker { color: #2dd4bf; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.lesson-body { color: #d9fbf5; line-height: 1.65; font-size: 15.5px; }
.lesson-body h3 { color: #e6fffb; margin: 22px 0 8px; font-size: 18px; }
.lesson-body p { margin: 10px 0; }
.lesson-body ul, .lesson-body ol { margin: 10px 0 10px 20px; }
.lesson-body li { margin: 6px 0; }
.lesson-body strong { color: #fff; }
.lesson-tip { background: #123b36; border-left: 3px solid #2dd4bf; border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.lesson-warn { background: #3b2f12; border-left: 3px solid #f59e0b; border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.lesson-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.push-enable { width: 100%; margin: 8px 0 4px; padding: 10px; border-radius: 10px; border: 1px solid #2dd4bf66; background: #123b36; color: #d9fbf5; font-weight: 700; cursor: pointer; }
.push-enable:disabled { opacity: .65; cursor: default; }
