/* ============================================================
   THE WORLD — Community Portal · Navy / Cyan theme
   Primaries: #254aff (blue) · #9ff5ff (cyan)
   ============================================================ */

.world {
  --w-bg: #050813;
  --w-bg-2: #070c1e;
  --w-surface: #0b1226;
  --w-surface-2: #0f1832;
  --w-surface-3: #141d3d;
  --w-line: rgba(159, 245, 255, 0.10);
  --w-line-2: rgba(255, 255, 255, 0.06);
  --w-primary: #254aff;
  --w-primary-2: #4d6bff;
  --w-cyan: #9ff5ff;
  --w-cyan-dim: #58c6d8;
  --w-text: #eaf1ff;
  --w-muted: #97a3c6;
  --w-dim: #5a6690;
  --w-good: #34d399;
  --w-gold: #ffcf5a;
  --w-danger: #ff5a7a;
  --w-grad: linear-gradient(135deg, #254aff 0%, #9ff5ff 100%);
  --w-glow: rgba(37, 74, 255, 0.35);
  --w-glow-cyan: rgba(159, 245, 255, 0.22);
  --w-radius: 14px;
  --w-radius-lg: 20px;
  --w-t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fuente general del sitio: Arial bold (override de las 3 tipografías) */
  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Arial, Helvetica, sans-serif;

  min-height: 100vh;
  background: var(--w-bg);
  color: var(--w-text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Peso bold por defecto en todo el contenido del portal */
.world,
.world button,
.world input,
.world select,
.world textarea { font-weight: 700; }

.world *,
.world *::before,
.world *::after { box-sizing: border-box; }

.world a { color: inherit; text-decoration: none; }
.world ul { list-style: none; margin: 0; padding: 0; }
.world img { max-width: 100%; display: block; }
.world button { font-family: inherit; cursor: pointer; }

/* Ambient aurora background */
.world::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 55% at 18% 0%, rgba(37, 74, 255, 0.20), transparent 60%),
    radial-gradient(50% 50% at 88% 8%, rgba(159, 245, 255, 0.10), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(37, 74, 255, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.world::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(159, 245, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 245, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.world > * { position: relative; z-index: 1; }

.w-container { width: min(1180px, 92vw); margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; cursor: pointer;
  transition: transform var(--w-t), box-shadow var(--w-t), background var(--w-t), border-color var(--w-t);
  white-space: nowrap;
}
.w-btn svg { width: 18px; height: 18px; }
.w-btn--primary {
  background: var(--w-grad); color: #041027;
  box-shadow: 0 8px 26px -8px var(--w-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.w-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--w-glow); }
.w-btn--ghost {
  background: rgba(159, 245, 255, 0.05); color: var(--w-text);
  border-color: var(--w-line);
}
.w-btn--ghost:hover { border-color: var(--w-cyan); background: rgba(159, 245, 255, 0.09); transform: translateY(-2px); }
.w-btn--discord { background: #5865f2; color: #fff; box-shadow: 0 8px 26px -8px rgba(88, 101, 242, 0.6); }
.w-btn--discord:hover { background: #4a57e0; transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(88, 101, 242, 0.55); }
.w-btn--join {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #052e16;
  box-shadow: 0 8px 26px -8px rgba(34, 197, 94, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.w-btn--join:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(34, 197, 94, 0.55); }
.w-btn--lg { padding: 15px 30px; font-size: 16px; }
.w-btn:focus-visible { outline: 2px solid var(--w-cyan); outline-offset: 3px; }

/* ── Brand mark ──────────────────────────────────────────── */
.w-brand { display: inline-flex; align-items: center; gap: 11px; }
.w-brand__logo {
  display: block; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(37, 74, 255, 0.35));
}
.w-brand__mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #0f1832, #070c1e);
  border: 2px solid var(--w-primary);
  box-shadow: 0 0 20px -4px var(--w-glow), inset 0 0 12px rgba(37, 74, 255, 0.25);
  color: var(--w-cyan); flex-shrink: 0;
}
.w-brand__mark svg { width: 20px; height: 20px; }
.w-brand__name {
  font-family: var(--font-display, "Chakra Petch"), system-ui, sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: 0.08em;
  background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Navbar ──────────────────────────────────────────────── */
.w-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 12, 30, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--w-line-2);
}
.w-nav__inner { display: flex; align-items: center; gap: 8px; height: 62px; }
.w-nav__links { display: flex; align-items: center; gap: 2px; margin-left: 26px; flex: 1; }
.w-nav__links a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--w-muted); white-space: nowrap;
  transition: color var(--w-t), background var(--w-t);
}
.w-nav__links a svg { width: 16px; height: 16px; opacity: 0.85; }
.w-nav__links a:hover { color: var(--w-text); background: rgba(159, 245, 255, 0.06); }
.w-nav__links a.is-active { color: var(--w-cyan); background: rgba(37, 74, 255, 0.14); }
.w-nav__spacer { flex: 1; }
.w-nav__user { display: flex; align-items: center; gap: 10px; }
.w-nav__avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--w-line); object-fit: cover; }
.w-nav__menu {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--w-line-2); border-radius: 10px;
  color: var(--w-text); background: rgba(159, 245, 255, 0.05);
}
.w-nav__menu svg { width: 20px; height: 20px; }
.w-nav__menu:hover { color: var(--w-cyan); border-color: var(--w-line); background: rgba(159, 245, 255, 0.09); }

/* ── Hero ────────────────────────────────────────────────── */
.w-hero { position: relative; padding: 96px 0 60px; text-align: center; overflow: hidden; }
/* Imagen de fondo del portal: atenuada + desvanecida para no tapar el diseño
   ni los efectos (glow/grid). Se coloca DETRÁS del contenido del hero. */
.w-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.30;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}
/* Velo oscuro sobre la imagen para que se vea sutil y el texto resalte. */
.w-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 19, 0.35), rgba(5, 8, 19, 0.75));
}
/* Contenido del hero por encima del fondo. */
.w-hero > .w-container { position: relative; z-index: 2; }
.w-hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 720px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 74, 255, 0.30), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.w-hero__title {
  font-family: var(--font-display, "Chakra Petch"), system-ui, sans-serif;
  font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.05;
  letter-spacing: -0.01em; margin: 18px 0 16px;
}
.w-hero__title .grad { background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-hero__sub { max-width: 620px; margin: 0 auto 30px; color: var(--w-muted); font-size: 17px; }
.w-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.w-hero__cta .w-btn--primary {
  position: relative; overflow: hidden;
  color: #eafcff;
  background: linear-gradient(180deg, rgba(55, 91, 224, 0.88), rgba(29, 54, 142, 0.92));
  border: 1px solid rgba(159, 245, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px -16px rgba(79, 156, 255, 0.82);
  transition: transform var(--w-t), background var(--w-t), border-color var(--w-t), box-shadow var(--w-t);
}
.w-hero__cta .w-btn--primary::after {
  content: ""; position: absolute; inset: 1px 18% auto; height: 1px;
  background: rgba(255, 255, 255, 0.42); pointer-events: none;
}
.w-hero__cta .w-btn--primary:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(68, 111, 244, 0.96), rgba(37, 74, 188, 0.96));
  border-color: var(--w-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 34px -16px rgba(79, 156, 255, 0.95);
}

/* Eyebrow pill */
.w-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(159, 245, 255, 0.07); border: 1px solid var(--w-line);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-cyan); font-weight: 600;
}
.w-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--w-good); box-shadow: 0 0 10px var(--w-good); }

/* ── Section heading ─────────────────────────────────────── */
.w-section { padding: 46px 0; }
.w-section__head { text-align: center; margin-bottom: 34px; }
.w-section__head h2 {
  font-family: var(--font-display, "Chakra Petch"), system-ui, sans-serif;
  font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.02em;
}
.w-section__head p { color: var(--w-muted); margin-top: 8px; }

/* ── Card ────────────────────────────────────────────────── */
.w-card {
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2); border-radius: var(--w-radius);
  transition: transform var(--w-t), border-color var(--w-t), box-shadow var(--w-t);
}
.w-card--hover:hover { transform: translateY(-4px); border-color: var(--w-line); box-shadow: 0 18px 40px -20px var(--w-glow); }

/* Login gate card (home) */
.w-gate { max-width: 720px; margin: 0 auto; padding: 30px 34px; }
.w-gate__body { color: var(--w-muted); font-size: 15px; white-space: pre-line; }
.w-gate__list { margin-top: 16px; display: grid; gap: 11px; }
.w-gate__list li { display: flex; align-items: flex-start; gap: 11px; color: var(--w-text); font-size: 14.5px; }
.w-gate__list li svg { width: 18px; height: 18px; color: var(--w-cyan); flex-shrink: 0; margin-top: 2px; }
.w-gate__divider { height: 1px; background: linear-gradient(90deg, transparent, var(--w-line), transparent); margin: 22px 0; }
.w-legal { text-align: center; font-size: 12.5px; color: var(--w-dim); margin-top: 16px; }
.w-legal a { color: var(--w-cyan-dim); }
.w-legal a:hover { color: var(--w-cyan); }

/* ── Feature cards grid ──────────────────────────────────── */
.w-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-feature { padding: 20px; display: flex; align-items: flex-start; gap: 14px; }
.w-feature__ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(37, 74, 255, 0.14); border: 1px solid var(--w-line); color: var(--w-cyan);
}
.w-feature__ico svg { width: 20px; height: 20px; }
.w-feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.w-feature p { font-size: 13px; color: var(--w-muted); }

/* ── Stats grid ──────────────────────────────────────────── */
.w-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-stat { padding: 22px; position: relative; overflow: hidden; }
.w-stat__top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.w-stat__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--w-cyan); background: rgba(37, 74, 255, 0.14); }
.w-stat__ico svg { width: 16px; height: 16px; }
.w-stat__label { font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-muted); }
.w-stat__value { font-family: var(--font-display, "Chakra Petch"), system-ui, sans-serif; font-size: 32px; font-weight: 700; }
.w-stat--good .w-stat__ico { color: var(--w-good); background: rgba(52, 211, 153, 0.14); }
.w-stat--gold .w-stat__ico { color: var(--w-gold); background: rgba(255, 207, 90, 0.14); }

/* Highlight (top user of week) */
.w-highlight {
  margin-top: 16px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, rgba(37, 74, 255, 0.16), rgba(159, 245, 255, 0.05));
  border: 1px solid var(--w-line); border-radius: var(--w-radius);
}
.w-highlight__who { display: flex; align-items: center; gap: 14px; }
.w-highlight__avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--w-gold); object-fit: cover; }
.w-highlight__rank { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--w-gold); }
.w-highlight__name { font-weight: 700; font-size: 16px; }
.w-highlight__sub { font-size: 12.5px; color: var(--w-muted); }
.w-highlight__pts { text-align: right; }
.w-highlight__pts b { font-family: var(--font-display, sans-serif); font-size: 26px; color: var(--w-gold); }
.w-highlight__pts span { display: block; font-size: 11px; color: var(--w-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Leaderboard ─────────────────────────────────────────── */
.w-lb { display: grid; gap: 10px; }
.w-lb__row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: 11px;
  transition: border-color var(--w-t), transform var(--w-t);
}
.w-lb__row:hover { border-color: var(--w-line); transform: translateX(3px); }
.w-lb__pos { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--w-surface-3); color: var(--w-muted); flex-shrink: 0; }
.w-lb__row:nth-child(1) .w-lb__pos { background: rgba(255, 207, 90, 0.18); color: var(--w-gold); }
.w-lb__row:nth-child(2) .w-lb__pos { background: rgba(159, 245, 255, 0.16); color: var(--w-cyan); }
.w-lb__row:nth-child(3) .w-lb__pos { background: rgba(37, 74, 255, 0.2); color: var(--w-primary-2); }
.w-lb__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--w-line); flex-shrink: 0; }
.w-lb__meta { flex: 1; min-width: 0; }
.w-lb__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-lb__tag { font-size: 12px; color: var(--w-dim); }
.w-lb__stats { display: flex; gap: 14px; color: var(--w-muted); font-size: 12.5px; }
.w-lb__stats span { display: inline-flex; align-items: center; gap: 5px; }
.w-lb__stats svg { width: 13px; height: 13px; opacity: 0.7; }

/* Empty / coming-soon state */
.w-empty {
  text-align: center; padding: 40px 24px; color: var(--w-muted);
  border: 1px dashed var(--w-line); border-radius: var(--w-radius); background: rgba(159, 245, 255, 0.02);
}
.w-empty svg { width: 34px; height: 34px; color: var(--w-cyan-dim); margin: 0 auto 12px; }
.w-empty b { color: var(--w-text); }

/* ── Profile ─────────────────────────────────────────────── */
.w-profile { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.w-profile__card { padding: 26px; text-align: center; }
.w-profile__avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--w-primary); object-fit: cover; box-shadow: 0 0 30px -6px var(--w-glow); }
.w-profile__name { font-size: 20px; font-weight: 700; }
.w-profile__tag { color: var(--w-muted); font-size: 13px; margin-bottom: 16px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.w-chip { padding: 5px 12px; border-radius: 999px; font-size: 12px; background: rgba(37, 74, 255, 0.14); border: 1px solid var(--w-line); color: var(--w-cyan); }

/* ── Footer ──────────────────────────────────────────────── */
.w-footer { border-top: 1px solid var(--w-line-2); margin-top: 40px; padding: 26px 0; }
.w-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.w-footer__links { display: flex; gap: 18px; font-size: 13px; color: var(--w-muted); }
.w-footer__links a:hover { color: var(--w-cyan); }
.w-footer__copy { font-size: 12.5px; color: var(--w-dim); }

/* ── "What you can do" cards ─────────────────────────────── */
.w-do { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-do__item { padding: 26px; text-align: center; }
.w-do__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(37, 74, 255, 0.14); border: 1px solid var(--w-line); color: var(--w-cyan); }
.w-do__ico svg { width: 24px; height: 24px; }
.w-do__item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.w-do__item p { font-size: 13px; color: var(--w-muted); }

/* ── Admin ───────────────────────────────────────────────── */
.w-admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.w-log-cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.w-log-cat--messages { background: rgba(159, 245, 255, 0.14); color: var(--w-cyan); }
.w-log-cat--members { background: rgba(52, 211, 153, 0.14); color: var(--w-good); }
.w-log-cat--voice { background: rgba(37, 74, 255, 0.16); color: var(--w-primary-2); }
.w-log-cat--moderation { background: rgba(255, 90, 122, 0.14); color: var(--w-danger); }

/* Tarjetas-filtro (clic para filtrar por categoría) */
.w-log-filter { display: block; text-align: left; cursor: pointer; }
.w-log-filter:hover { transform: translateY(-3px); border-color: var(--w-line); }
.w-log-filter.is-active { border-color: var(--w-cyan); box-shadow: inset 0 0 0 1px var(--w-cyan), 0 14px 34px -20px var(--w-glow-cyan); }

/* Barra de filtros + total */
.w-log-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.w-log-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.w-log-tab {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--w-muted);
  background: rgba(159, 245, 255, 0.05); border: 1px solid var(--w-line-2);
  transition: color var(--w-t), background var(--w-t), border-color var(--w-t);
}
.w-log-tab:hover { color: var(--w-text); border-color: var(--w-line); }
.w-log-tab.is-active { color: var(--w-cyan); background: rgba(37, 74, 255, 0.16); border-color: var(--w-cyan); }
.w-log-count { font-size: 12.5px; color: var(--w-dim); }

/* Lista de logs */
.w-logs { display: grid; gap: 8px; }
.w-log {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
  background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: 11px;
  transition: border-color var(--w-t), transform var(--w-t);
}
.w-log:hover { border-color: var(--w-line); transform: translateX(3px); }
.w-log .w-log-cat { flex-shrink: 0; margin-top: 1px; }
.w-log__main { flex: 1; min-width: 0; }
.w-log__head { font-size: 14px; }
.w-log__user { color: var(--w-muted); font-weight: 400; margin-left: 4px; }
.w-log__details { font-size: 12.5px; color: var(--w-muted); margin-top: 3px; word-break: break-word; }
.w-log__time { flex-shrink: 0; font-size: 11.5px; color: var(--w-dim); white-space: nowrap; margin-top: 2px; }
@media (max-width: 768px) {
  .w-log { flex-wrap: wrap; }
  .w-log__time { width: 100%; margin-top: 4px; }
}

/* ============================================================
   MENÚ DESPLEGABLE DEL AVATAR (nav de comunidad)
   ============================================================ */
.w-usermenu { position: relative; }
.w-usermenu__btn { display: inline-flex; padding: 2px; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.w-usermenu__btn:hover .w-usermenu__av { border-color: var(--w-cyan); }
.w-usermenu__av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--w-line); transition: border-color var(--w-t); }
.w-usermenu__pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 224px;
  background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75); padding: 8px; z-index: 200;
  animation: w-rise 0.14s ease both;
}
.w-usermenu__head { padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--w-line-2); }
.w-usermenu__name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-usermenu__role { font-size: 12px; color: var(--w-cyan); }
.w-usermenu__item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 9px;
  color: var(--w-text); font-size: 13.5px; background: none; border: 0; text-align: left; cursor: pointer;
  transition: background var(--w-t), color var(--w-t);
}
.w-usermenu__item svg { width: 16px; height: 16px; }
.w-usermenu__item:hover { background: rgba(159, 245, 255, 0.07); }
/* Selector compuesto para ganar a `.world a { color: inherit }` en los <a>. */
.w-usermenu__item.w-usermenu__item--admin { color: var(--w-good); }
.w-usermenu__item.w-usermenu__item--admin:hover { background: rgba(52, 211, 153, 0.10); }
.w-usermenu__item.w-usermenu__item--danger { color: var(--w-danger); }
.w-usermenu__item.w-usermenu__item--danger:hover { background: rgba(255, 90, 122, 0.10); }

/* ============================================================
   PANEL DE STAFF — layout propio (sidebar + tabla de logs)
   ============================================================ */
.w-adm { display: grid; grid-template-columns: 236px 1fr; align-items: start; min-height: 100vh; }

.w-adm__side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 16px; border-right: 1px solid var(--w-line-2);
  background: rgba(7, 12, 30, 0.55); backdrop-filter: blur(10px);
}
.w-adm__topbar { display: contents; }
.w-adm__brand { display: block; padding: 6px 6px 18px; }
.w-adm__menu {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--w-line-2);
  border-radius: 10px; color: var(--w-text); background: rgba(159, 245, 255, 0.05);
  cursor: pointer; transition: color var(--w-t), border-color var(--w-t), background var(--w-t);
}
.w-adm__menu:hover { color: var(--w-cyan); border-color: var(--w-cyan); background: rgba(159, 245, 255, 0.09); }
.w-adm__menu svg { width: 20px; height: 20px; }
.w-adm__nav { display: flex; flex-direction: column; gap: 3px; }
.w-adm__navlink {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
  color: var(--w-muted); font-size: 14px; line-height: 1.35; border: 1px solid transparent;
  transition: color var(--w-t), background var(--w-t), border-color var(--w-t);
}
.w-adm__navlink svg { width: 17px; height: 17px; flex: 0 0 17px; }
.w-adm__navlink:hover { color: var(--w-text); background: rgba(159, 245, 255, 0.06); }
.w-adm__navlink.is-active { color: var(--w-cyan); background: rgba(37, 74, 255, 0.16); border-color: var(--w-line); }
.w-adm__spacer { flex: 1; }
.w-adm__userbox { display: flex; align-items: center; gap: 10px; padding: 10px 8px 8px; border-top: 1px solid var(--w-line-2); margin-top: 8px; }
.w-adm__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--w-line); flex-shrink: 0; }
.w-adm__userinfo { min-width: 0; }
.w-adm__uname { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-adm__urole { font-size: 11.5px; color: var(--w-cyan-dim); }
.w-adm__side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--w-muted); font-size: 13.5px; background: none; border: 0; text-align: left; width: 100%; cursor: pointer;
  transition: color var(--w-t), background var(--w-t);
}
.w-adm__side-link svg { width: 16px; height: 16px; }
.w-adm__side-link:hover { color: var(--w-text); background: rgba(159, 245, 255, 0.06); }
.w-adm__logout { color: var(--w-danger); }
.w-adm__logout:hover { color: var(--w-danger); background: rgba(255, 90, 122, 0.10); }
.w-adm__account { display: flex; flex-direction: column; gap: 4px; }

.w-adm__main { padding: 30px 34px 60px; min-width: 0; }
.w-adm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.w-adm__head h1 { display: flex; align-items: center; gap: 11px; font-size: 30px; letter-spacing: -0.01em; }
.w-adm__head h1 svg { width: 26px; height: 26px; color: var(--w-cyan); }
.w-adm__sub { color: var(--w-muted); font-size: 14px; margin-top: 6px; }
.w-adm__refresh {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--w-line-2); background: var(--w-surface); color: var(--w-muted); flex-shrink: 0;
  transition: color var(--w-t), border-color var(--w-t);
}
.w-adm__refresh:hover { color: var(--w-cyan); border-color: var(--w-cyan); }
.w-adm__refresh svg { width: 18px; height: 18px; }

.w-adm__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.w-tabn { color: var(--w-dim); font-weight: 700; margin-left: 3px; }
.w-log-tab.is-active .w-tabn { color: var(--w-cyan); }

.w-adm__bar { display: flex; gap: 12px; margin-bottom: 18px; }
.w-adm__search {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: 12px;
  transition: border-color var(--w-t);
}
.w-adm__search:focus-within { border-color: var(--w-cyan); }
.w-adm__search svg { width: 18px; height: 18px; color: var(--w-dim); flex-shrink: 0; }
.w-adm__search input { flex: 1; background: none; border: 0; outline: none; color: var(--w-text); font-size: 14px; }
.w-adm__search input::placeholder { color: var(--w-dim); }
.w-adm__filtros {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 20px;
  background: var(--w-surface-2); border: 1px solid var(--w-line-2); border-radius: 12px;
  color: var(--w-text); font-size: 14px; cursor: pointer; transition: border-color var(--w-t), background var(--w-t);
}
.w-adm__filtros:hover { border-color: var(--w-cyan); }
.w-adm__filtros svg { width: 16px; height: 16px; }

.w-adm__panel { background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: var(--w-radius-lg); overflow: hidden; }
.w-adm__tablewrap { overflow-x: auto; }
.w-adm__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.w-adm__table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--w-muted); padding: 14px 16px; border-bottom: 1px solid var(--w-line-2); white-space: nowrap;
}
.w-adm__table td { padding: 13px 16px; border-bottom: 1px solid var(--w-line-2); font-size: 13.5px; vertical-align: middle; }
.w-adm__table tbody tr:last-child td { border-bottom: 0; }
.w-adm__table tbody tr:hover td { background: rgba(159, 245, 255, 0.03); }
.w-adm__action { display: flex; flex-direction: column; gap: 2px; max-width: 520px; }
.w-adm__action b { font-size: 13.5px; }
.w-adm__action span { font-size: 12px; color: var(--w-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-adm__by { color: var(--w-dim); }
.w-adm__date { color: var(--w-muted); white-space: nowrap; font-size: 12.5px; }
.w-sev { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.w-sev--info { color: var(--w-cyan); }
.w-sev--warn { color: var(--w-gold); }

.w-adm__empty { text-align: center; padding: 60px 24px; color: var(--w-muted); }
.w-adm__empty svg { width: 34px; height: 34px; color: var(--w-cyan-dim); margin: 0 auto 12px; }
.w-adm__empty b { color: var(--w-text); }

.w-adm__pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--w-line-2); flex-wrap: wrap; }
.w-adm__pageinfo { font-size: 13px; color: var(--w-muted); }
.w-adm__pagebtns { display: flex; gap: 8px; }
.w-adm__pagebtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; min-width: 40px; border-radius: 9px; border: 1px solid var(--w-line-2);
  background: var(--w-surface-2); color: var(--w-text); font-size: 13px;
  transition: border-color var(--w-t), color var(--w-t);
}
.w-adm__pagebtn:hover { border-color: var(--w-cyan); color: var(--w-cyan); }
.w-adm__pagebtn svg { width: 16px; height: 16px; }
.w-adm__pagebtn.is-disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 900px) {
  .w-adm { grid-template-columns: 1fr; }
  .w-adm__side {
    position: sticky; top: 0; z-index: 110; height: auto; display: flex;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--w-line-2);
    background: rgba(7, 12, 30, 0.92);
  }
  .w-adm__topbar { display: flex; align-items: center; gap: 10px; width: 100%; }
  .w-adm__brand { min-width: 0; padding: 0; margin-right: auto; }
  .w-adm__menu { display: inline-flex; }
  .w-adm__nav { display: none; width: 100%; min-width: 0; flex-direction: column; gap: 3px; overflow: visible; }
  .w-adm__nav.is-open { display: flex; }
  .w-adm__navlink { width: 100%; min-height: 44px; }
  .w-adm__spacer { display: none; }
  .w-adm__userbox { border-top: 0; margin: 0; padding: 0; flex-shrink: 1; }
  .w-adm__account { flex-direction: row; gap: 8px; width: 100%; }
  .w-adm__account .w-adm__side-link { width: auto; flex: 1; }
  .w-adm__main { padding: 22px 18px 50px; }
  .w-adm__head h1 { font-size: 24px; }
}

/* ── Apariencia (panel admin) ─────────────────────────────── */
.w-ap__head { margin-bottom: 24px; }
.w-ap__head h1 { display: flex; align-items: center; gap: 11px; font-size: 30px; letter-spacing: -0.01em; }
.w-ap__head h1 svg { width: 26px; height: 26px; color: var(--w-cyan); }
.w-ap__head p { color: var(--w-muted); margin-top: 8px; max-width: 640px; }

.w-ap__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.w-ap__grid--3 { grid-template-columns: repeat(3, 1fr); }
.w-ap__favrow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.w-ap__card {
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2); border-radius: var(--w-radius); padding: 22px;
}
.w-ap__card--wide { grid-column: 1 / -1; }
/* Separación entre tarjetas apiladas fuera de .w-ap__grid (ej. varias secciones seguidas). */
.w-ap__card + .w-ap__card { margin-top: 18px; }
.w-ap__card h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin-bottom: 6px; }
.w-ap__card h2 svg { width: 19px; height: 19px; color: var(--w-cyan); }
.w-ap__hint { color: var(--w-muted); font-size: 13.5px; margin-bottom: 16px; }

.w-ap__preview {
  display: grid; place-items: center; padding: 18px; border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 74, 255, 0.10), transparent 70%), var(--w-bg-2);
  border: 1px solid var(--w-line-2); margin-bottom: 16px; min-height: 96px;
}
.w-ap__preview--logo img { height: 46px; width: auto; }
.w-ap__preview--favicon img { width: 56px; height: 56px; border-radius: 12px; }
.w-ap__preview--banner img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }

.w-ap__form { display: flex; flex-direction: column; gap: 12px; }
.w-ap__file {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--w-line);
  background: rgba(159, 245, 255, 0.04); color: var(--w-cyan); font-size: 14px;
  transition: border-color var(--w-t), background var(--w-t);
}
.w-ap__file:hover { border-color: var(--w-cyan); background: rgba(159, 245, 255, 0.08); }
.w-ap__file svg { width: 18px; height: 18px; flex-shrink: 0; }
.w-ap__file input[type="file"] { color: var(--w-muted); font-size: 12.5px; max-width: 180px; }
.w-ap__rec { font-size: 12.5px; color: var(--w-dim); line-height: 1.5; }
.w-ap__rec b { color: var(--w-muted); }

.w-ap__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: transform var(--w-t), box-shadow var(--w-t), background var(--w-t), border-color var(--w-t);
}
.w-ap__btn:disabled { opacity: 0.6; cursor: default; }
.w-ap__btn svg { width: 16px; height: 16px; }
.w-ap__btn--primary { background: var(--w-grad); color: #041027; box-shadow: 0 8px 22px -10px var(--w-glow); }
.w-ap__btn--primary:hover:not(:disabled) { transform: translateY(-1px); }
.w-ap__btn--danger { background: rgba(255, 90, 122, 0.12); color: var(--w-danger); border-color: rgba(255, 90, 122, 0.3); }
.w-ap__btn--danger:hover:not(:disabled) { background: rgba(255, 90, 122, 0.2); }
.w-ap__btn--sm { padding: 7px 12px; font-size: 13px; }
.w-ap__btn--ghost {
  background: rgba(159, 245, 255, 0.05); color: var(--w-text); border-color: var(--w-line-2);
}
.w-ap__btn--ghost:hover:not(:disabled) {
  background: rgba(159, 245, 255, 0.09); border-color: var(--w-line); transform: translateY(-1px);
}

.w-ap__msg { font-size: 13.5px; margin-top: 2px; }
.w-ap__msg--ok { color: var(--w-good); }
.w-ap__msg--err { color: var(--w-danger); }

/* -- Compositor de embeds para /admin/canales ---------------------------- */
.w-channel-builder {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border: 1px solid var(--w-line-2); border-radius: 12px; background: rgba(5, 8, 19, 0.32);
}
.w-channel-builder__section {
  display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px;
  border-bottom: 1px solid var(--w-line-2);
}
.w-channel-builder__section:last-child { padding-bottom: 0; border-bottom: 0; }
.w-channel-builder__section h2 { margin: 0; color: var(--w-text); font-size: 15px; }
.w-channel-builder__section label, .w-channel-field label {
  display: flex; flex-direction: column; gap: 6px; color: var(--w-muted); font-size: 12px; font-weight: 700;
}
.w-channel-builder__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.w-channel-builder__title-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.w-channel-builder__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.w-channel-builder__empty { margin: 0; padding: 12px; color: var(--w-dim); font-size: 12.5px; border: 1px dashed var(--w-line); border-radius: 9px; }
.w-channel-fields { display: flex; flex-direction: column; gap: 9px; }
.w-channel-field {
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  border-radius: 10px; background: var(--w-surface); border: 1px solid var(--w-line-2);
}
.w-channel-field__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--w-cyan); font-size: 12px; }
.w-channel-field__remove {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255, 90, 122, 0.28); border-radius: 8px; color: var(--w-danger);
  background: rgba(255, 90, 122, 0.08);
}
.w-channel-field__remove:hover { background: rgba(255, 90, 122, 0.16); }
.w-channel-field__grid { display: grid; grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.5fr); gap: 10px; }
.w-channel-field__inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; color: var(--w-dim) !important; font-size: 11.5px !important; }
.w-channel-field__inline input { width: 15px; height: 15px; accent-color: var(--w-primary); }
.w-channel-embeds { display: flex; flex-direction: column; gap: 12px; }
.w-channel-embed {
  display: flex; flex-direction: column; gap: 0; padding: 14px;
  border: 1px solid rgba(83, 112, 255, 0.36); border-left: 3px solid var(--w-primary);
  border-radius: 12px; background: rgba(14, 20, 43, 0.58);
}
.w-channel-embed__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--w-line-2);
}
.w-channel-embed__head > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.w-channel-embed__head strong { overflow: hidden; color: var(--w-text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.w-channel-embed__eyebrow { color: var(--w-cyan); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.w-channel-embed .w-channel-builder__section:last-child { padding-bottom: 0; border-bottom: 0; }
.w-channel-field__remove:disabled { cursor: not-allowed; opacity: .38; }
.w-channel-message-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-channel-message-tools > span { color: var(--w-dim); font-size: 11.5px; }
.w-channel-message-list {
  display: flex; flex-direction: column; gap: 7px; padding: 12px;
  border: 1px solid var(--w-line-2); border-radius: 10px; background: rgba(5, 8, 19, 0.32);
}
.w-channel-message-list__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--w-muted); font-size: 12px;
}
.w-channel-message-list__head span { color: var(--w-cyan); font-weight: 800; }
.w-channel-message {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--w-line-2); border-radius: 8px; background: var(--w-surface);
  color: var(--w-text); text-align: left; cursor: pointer;
}
.w-channel-message:hover, .w-channel-message.is-selected {
  border-color: var(--w-cyan); background: rgba(159, 245, 255, 0.07);
}
.w-channel-message__meta, .w-channel-message__id { color: var(--w-dim); font-size: 10px; }
.w-channel-message__id {
  max-width: 100%; overflow: hidden; font-family: var(--font-mono, monospace); text-overflow: ellipsis;
}
.w-channel-editing {
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  border: 1px solid rgba(159, 245, 255, 0.28); border-radius: 10px; background: rgba(159, 245, 255, 0.06);
}
.w-channel-editing__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  color: var(--w-cyan); font-size: 12px;
}
.w-channel-editing__head code { color: var(--w-dim); font-size: 10px; }
.w-channel-editing__modes { display: flex; gap: 12px; flex-wrap: wrap; }
.w-channel-editing__modes label {
  display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px;
  color: var(--w-muted) !important; font-size: 11.5px !important;
}
.w-channel-editing__modes input { width: 15px; height: 15px; accent-color: var(--w-primary); }
.w-channel-layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start; gap: 18px;
}
.w-channel-layout > .w-ap__card { min-width: 0; }
.w-channel-preview {
  position: sticky; top: 18px; min-width: 0; overflow: hidden;
  border: 1px solid var(--w-line-2); border-radius: var(--w-radius);
  background: #202126; box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.w-channel-preview__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: #191a1f;
}
.w-channel-preview__head > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-channel-preview__head strong { color: #f2f3f5; font-size: 14px; }
.w-channel-preview__eyebrow { color: var(--w-cyan); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.w-channel-preview__live { display: inline-flex; align-items: center; gap: 6px; color: #57f287; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.w-channel-preview__live i { width: 7px; height: 7px; border-radius: 50%; background: #57f287; box-shadow: 0 0 10px rgba(87, 242, 135, .7); }
.w-channel-preview__screen { min-height: 620px; padding: 20px 17px; background: #313338; }
.w-channel-preview__message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.w-channel-preview__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #dbe8ff; background: #254aff; font-size: 12px; font-weight: 900; }
.w-channel-preview__body { min-width: 0; }
.w-channel-preview__author { display: flex; align-items: center; gap: 7px; min-height: 22px; color: #b5bac1; font-size: 11px; }
.w-channel-preview__author strong { color: #f2f3f5; font-size: 14px; }
.w-channel-preview__author time { color: #949ba4; font-size: 10px; }
.w-channel-preview__app { padding: 2px 4px; border-radius: 3px; color: #fff; background: #5865f2; font-size: 9px; font-weight: 800; }
.w-channel-preview__content { margin: 4px 0 7px; color: #dbdee1; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.w-channel-preview__empty { margin: 14px 0; color: #949ba4; font-size: 12px; line-height: 1.5; }
.w-channel-preview__embed {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  max-width: 100%; padding: 10px 12px; margin-top: 8px; border-left: 4px solid #254aff;
  border-radius: 4px; background: #2b2d31; color: #dbdee1;
}
.w-channel-preview__embed-main { min-width: 0; }
.w-channel-preview__embed-author { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #b5bac1; font-size: 11px; font-weight: 700; }
.w-channel-preview__embed-author img, .w-channel-preview__footer img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.w-channel-preview__embed h3 { margin: 0 0 5px; color: #f2f3f5; font-size: 14px; line-height: 1.35; }
.w-channel-preview__description { margin: 0 0 8px; color: #dbdee1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.w-channel-preview__fields { display: grid; grid-template-columns: 1fr; gap: 7px; }
.w-channel-preview__field { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: #b5bac1; font-size: 11px; line-height: 1.45; }
.w-channel-preview__field strong { color: #f2f3f5; font-size: 11px; }
.w-channel-preview__field span { white-space: pre-wrap; }
.w-channel-preview__field--inline { display: inline-flex; }
.w-channel-preview__fields:has(.w-channel-preview__field--inline) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-channel-preview__footer { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #949ba4; font-size: 10px; }
.w-channel-preview__thumbnail { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.w-channel-preview__image { grid-column: 1 / -1; width: 100%; max-height: 180px; border-radius: 4px; object-fit: cover; }

/* -- Selector y constructor Components V2 para /admin/canales ----------- */
.w-channel-mode {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border: 1px solid var(--w-line-2); border-radius: 12px; background: rgba(5, 8, 19, .32);
}
.w-channel-mode__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.w-channel-mode__head strong { color: var(--w-text); font-size: 14px; }
.w-channel-mode__head span { color: var(--w-dim); font-size: 11px; }
.w-channel-mode__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.w-channel-mode__options label {
  display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--w-line-2); border-radius: 10px; background: var(--w-surface); color: var(--w-muted);
}
.w-channel-mode__options label.is-active { border-color: var(--w-cyan); background: rgba(159, 245, 255, .08); color: var(--w-text); box-shadow: 0 0 0 1px rgba(159, 245, 255, .12); }
.w-channel-mode__options input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--w-primary); flex: none; }
.w-channel-mode__options span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-channel-mode__options b { color: inherit; font-size: 12px; }
.w-channel-mode__options small { color: var(--w-dim); font-size: 10px; line-height: 1.35; }
.w-channel-v2-builder { border-color: rgba(159, 245, 255, .28); background: rgba(8, 18, 35, .42); }
.w-channel-v2-builder__checks { display: flex; gap: 14px; flex-wrap: wrap; }
.w-channel-v2-builder__media-card, .w-channel-v2-builder__block {
  display: flex; flex-direction: column; gap: 9px; padding: 12px; margin-top: 9px;
  border: 1px solid var(--w-line-2); border-radius: 10px; background: rgba(5, 8, 19, .34);
}
.w-channel-v2-builder__media-card > label, .w-channel-v2-builder__block > label { display: flex; flex-direction: column; gap: 6px; color: var(--w-muted); font-size: 12px; font-weight: 700; }
.w-channel-v2-builder__block > strong { color: var(--w-cyan); font-size: 12px; }
.w-channel-v2-builder__counter { color: var(--w-dim); font-size: 11px; }
.w-channel-v2-builder__row-size { display: inline-flex !important; align-items: center; flex-direction: row !important; gap: 7px !important; white-space: nowrap; }
.w-channel-v2-builder__row-size input { width: 58px; padding: 8px; border: 1px solid var(--w-line-2); border-radius: 8px; color: var(--w-text); background: var(--w-bg-2); }
.w-channel-v2-builder__link { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(170px, 1.25fr) minmax(70px, .45fr) 30px; gap: 8px; align-items: center; margin-top: 8px; }
.w-channel-preview__v2-wrap { margin-top: 13px; }
.w-channel-preview__v2-label { display: inline-block; margin-bottom: 6px; color: #9ff5ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.w-channel-preview__v2 { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 3px solid #5865f2; border-radius: 8px; background: #20242c; color: #dbdee1; }
.w-channel-preview__v2-ping { margin: 0; color: #b5c6ff; font-size: 12px; font-weight: 700; }
.w-channel-preview__v2-text { display: flex; flex-direction: column; gap: 4px; }
.w-channel-preview__v2-text small { color: #949ba4; font-size: 10px; }
.w-channel-preview__v2-text h3 { margin: 0; color: #f2f3f5; font-size: 16px; }
.w-channel-preview__v2-text p { margin: 0; color: #dbdee1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.w-channel-preview__v2-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; border-top: 1px solid rgba(255, 255, 255, .1); color: #b5bac1; font-size: 11px; line-height: 1.45; }
.w-channel-preview__v2-section span { white-space: pre-wrap; }
.w-channel-preview__v2-section img { width: 55px; height: 55px; border-radius: 6px; object-fit: cover; }
.w-channel-preview__v2-section button, .w-channel-preview__v2-buttons button { padding: 7px 10px; border: 0; border-radius: 5px; color: #fff; background: #5865f2; font-size: 10px; font-weight: 700; }
.w-channel-preview__v2-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.w-channel-preview__v2-gallery img { width: 100%; aspect-ratio: 1; border-radius: 5px; object-fit: cover; }
.w-channel-preview__v2-footer { margin: 0; color: #949ba4; font-size: 10px; }
.w-channel-preview__v2-footer.is-italic { font-style: italic; }
.w-channel-preview__v2-buttons { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 6px; }

.w-ap__admins { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.w-ap__admin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px; background: var(--w-surface-3); border: 1px solid var(--w-line-2);
}
.w-ap__admin-id { font-family: var(--font-mono, monospace); font-size: 14px; color: var(--w-text); word-break: break-all; }
.w-ap__badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.w-ap__badge--lock { color: var(--w-cyan); background: rgba(159, 245, 255, 0.10); border: 1px solid var(--w-line); }
.w-ap__addadmin { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.w-ap__addadmin input {
  flex: 1; min-width: 240px; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: var(--w-bg-2); border: 1px solid var(--w-line-2); color: var(--w-text);
}
.w-ap__addadmin input:focus { outline: 2px solid var(--w-cyan); outline-offset: 1px; border-color: transparent; }

/* ── Auto-roles ────────────────────────────────────────────────────────── */
.w-ar__badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--w-text-2); background: var(--w-surface-3); border: 1px solid var(--w-line-2);
}
.w-ar__badge--on { color: var(--w-good); background: rgba(60, 220, 130, 0.10); border-color: rgba(60, 220, 130, 0.30); }
.w-ar__section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.w-ar__section-head > div { min-width: 0; }
.w-ar__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; background: var(--w-surface-3); border: 1px solid var(--w-line-2);
}
.w-ar__opt-emoji { font-size: 16px; width: 22px; text-align: center; flex: none; }
.w-ar__opt-label { font-size: 14px; font-weight: 600; color: var(--w-text); }
.w-ar__iconbtn {
  display: inline-flex; align-items: center; justify-content: center; padding: 7px;
  border-radius: 8px; background: rgba(255, 90, 122, 0.10); color: var(--w-danger);
  border: 1px solid rgba(255, 90, 122, 0.25); cursor: pointer;
}
.w-ar__iconbtn:hover:not(:disabled) { background: rgba(255, 90, 122, 0.2); }
.w-ar__iconbtn:disabled { opacity: 0.5; cursor: default; }
.w-ar__addrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: stretch; }

/* Auto-roles: editor visual y simulación del mensaje de Discord. */
.w-ar__kicker { color: var(--w-cyan); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.w-ar__setup { background: linear-gradient(140deg, rgba(37, 74, 255, .12), var(--w-surface) 44%); }
.w-ar__system { background: rgba(8, 18, 38, .5); }
.w-ar__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.w-ar__span-two { grid-column: 1 / -1; }
.w-ar__multi { align-self: end; min-height: 42px; }
.w-ar__first-role { padding: 14px; border: 1px solid rgba(159, 245, 255, .22); border-radius: 12px; background: rgba(159, 245, 255, .035); }
.w-ar__first-role-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.w-ar__first-role-head strong { color: var(--w-cyan); font-size: 13px; }
.w-ar__first-role-head span { color: var(--w-dim); font-size: 11.5px; }
.w-ar__first-role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.w-ar__system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.w-ar__system-grid .w-ap__form { padding: 14px; border: 1px solid var(--w-line-2); border-radius: 12px; background: rgba(5, 8, 19, .24); }
.w-ar__panel { overflow: hidden; }
.w-ar__panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid var(--w-line-2); }
.w-ar__panel-head h2 { margin: 2px 0 4px; }
.w-ar__panel-head p { color: var(--w-dim); font-size: 12px; }
.w-ar__panel-head code, .w-ar__role-copy code { color: var(--w-cyan); font-family: var(--font-mono, monospace); font-size: .92em; }
.w-ar__panel-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.w-ar__editor { min-width: 0; }
.w-ar__color-input { position: relative; }
.w-ar__color-input input { padding-right: 48px !important; }
.w-ar__color-input i { position: absolute; top: 50%; right: 12px; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; transform: translateY(-50%); }
.w-ar__roles-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 20px 0 9px; }
.w-ar__roles-head > div { display: flex; flex-direction: column; gap: 3px; }
.w-ar__roles-head > div > span { color: var(--w-text); font-size: 14px; font-weight: 800; }
.w-ar__roles-head small, .w-ar__roles-head > span { color: var(--w-dim); font-size: 11.5px; }
.w-ar__role-list { display: flex; flex-direction: column; gap: 7px; }
.w-ar__role-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 11px; border: 1px solid var(--w-line-2); border-radius: 10px; background: rgba(5, 8, 19, .28); }
.w-ar__role-emoji { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; color: var(--w-cyan); font-size: 16px; flex: none; }
.w-ar__role-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.w-ar__role-copy strong { overflow: hidden; color: var(--w-text); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.w-ar__role-copy span { overflow: hidden; color: var(--w-dim); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.w-ar__role-actions { display: flex; flex: none; gap: 6px; }
.w-ar__iconbtn--edit { color: var(--w-cyan); border-color: rgba(127, 224, 255, .28); background: rgba(70, 175, 255, .1); }
.w-ar__iconbtn--edit:hover:not(:disabled) { background: rgba(70, 175, 255, .2); }
.w-ar__role-editor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid rgba(127, 224, 255, .25); border-radius: 10px; background: rgba(70, 175, 255, .055); }
.w-ar__role-editor-actions { display: flex; gap: 7px; }
.w-ar__role-editor-actions .w-ap__btn { min-height: 40px; white-space: nowrap; }
.w-ar__add-option { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(120px, .85fr) minmax(150px, 1fr) minmax(150px, 1.1fr) auto; gap: 8px; align-items: end; padding: 13px; margin-top: 10px; border: 1px dashed var(--w-line); border-radius: 11px; background: rgba(159, 245, 255, .035); }
.w-ar__add-option .w-ap__btn { min-height: 40px; white-space: nowrap; }
.w-ar__panel-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 17px; margin-top: 18px; border-top: 1px solid var(--w-line-2); }
.w-ar__preview { position: sticky; top: 18px; overflow: hidden; border: 1px solid var(--w-line-2); border-radius: 12px; background: #202126; box-shadow: 0 20px 42px rgba(0,0,0,.2); }
.w-ar__preview-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #57f287; background: #191a1f; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.w-ar__preview-top span { margin-right: auto; color: #f2f3f5; }
.w-ar__preview-top i { width: 6px; height: 6px; border-radius: 50%; background: #57f287; box-shadow: 0 0 10px rgba(87,242,135,.7); }
.w-ar__discord { padding: 16px 13px 18px; background: #313338; }
.w-ar__discord-author { display: flex; align-items: center; gap: 6px; color: #b5bac1; font-size: 10px; }
.w-ar__discord-author b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #dbe8ff; background: #254aff; font-size: 8px; }
.w-ar__discord-author strong { color: #f2f3f5; font-size: 12px; }
.w-ar__discord-author em { padding: 2px 4px; border-radius: 3px; color: #fff; background: #5865f2; font-size: 8px; font-style: normal; font-weight: 800; }
.w-ar__discord-author time { color: #949ba4; }
.w-ar__discord-embed { margin-top: 8px; padding: 12px; border-left: 4px solid #254aff; border-radius: 4px; background: #2b2d31; }
.w-ar__discord-embed h3 { margin: 0 0 6px; color: #f2f3f5; font-size: 14px; line-height: 1.35; }
.w-ar__discord-embed > p { margin: 0 0 10px; color: #dbdee1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.w-ar__discord-embed > img { width: 100%; max-height: 170px; margin: 0 0 10px; border-radius: 4px; object-fit: cover; }
.w-ar__discord-roles { display: flex; flex-direction: column; gap: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.w-ar__discord-roles > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #5aa7df; font-size: 12px; }
.w-ar__discord-roles b { display: grid; place-items: center; min-width: 31px; min-height: 27px; padding: 4px 7px; border-radius: 7px; background: #3a3c43; font-size: 15px; }
.w-ar__discord-empty { color: #949ba4; font-size: 11px; }
.w-ar__preview-components { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.w-ar__preview-components button { min-width: 37px; min-height: 31px; padding: 5px 9px; border: 0; border-radius: 6px; color: #dbdee1; background: #3a3c43; font: inherit; font-size: 14px; }
.w-ar__preview-components .w-ar__preview-select { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #dbdee1; font-size: 11px; text-align: left; }
.w-ar__preview-select span { color: #949ba4; font-size: 15px; }

@media (max-width: 1100px) {
  .w-ar__panel-grid { grid-template-columns: 1fr; }
  .w-ar__preview { position: static; }
  .w-ar__add-option, .w-ar__role-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-ar__first-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tickets: editor denso con el mensaje Discord visible antes de publicar. */
.w-ticket__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 18px; align-items: start; }
.w-ticket__editor { min-width: 0; }
.w-ticket__section-head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--w-line-2); }
.w-ticket__section-head > span { display: block; margin-bottom: 4px; color: var(--w-cyan); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.w-ticket__section-head h2 { margin: 0; color: var(--w-text); font-size: 19px; }
.w-ticket__section-head p { max-width: 650px; margin: 6px 0 0; color: var(--w-dim); font-size: 13px; line-height: 1.5; }
.w-ticket__section-head--space { margin-top: 24px; }
.w-ticket__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.w-ticket__grid small { display: block; margin-top: 5px; color: var(--w-dim); font-size: 11px; line-height: 1.4; }
.w-ticket__span-two { grid-column: span 2; }
.w-ticket__actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 17px; margin-top: 20px; border-top: 1px solid var(--w-line-2); }
.w-ticket__preview { position: sticky; top: 18px; overflow: hidden; border: 1px solid var(--w-line-2); border-radius: 10px; background: #1d1e24; box-shadow: 0 20px 42px rgba(0, 0, 0, .2); }
.w-ticket__preview-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--w-cyan); background: #11131a; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.w-ticket__discord { padding: 16px; }
.w-ticket__author { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #f2f3f5; font-size: 12px; }
.w-ticket__author b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #071837; color: #9ff5ff; font-size: 9px; }
.w-ticket__author strong { font-size: 12px; }.w-ticket__author em { padding: 2px 4px; border-radius: 4px; color: #fff; background: #5865f2; font-size: 8px; font-style: normal; font-weight: 900; }.w-ticket__author span { color: #9b9da2; font-size: 10px; }
.w-ticket__embed { overflow: hidden; padding: 13px; border-left: 4px solid var(--w-primary); border-radius: 4px; background: #2b2d31; color: #dbdee1; }
.w-ticket__embed h3 { margin: 0 0 7px; color: #f2f3f5; font-size: 16px; }.w-ticket__embed p { margin: 0; white-space: pre-wrap; color: #dbdee1; font-size: 13px; line-height: 1.48; }.w-ticket__embed img { display: block; width: 100%; max-height: 180px; object-fit: cover; margin-top: 12px; border-radius: 4px; }.w-ticket__embed small { display: block; margin-top: 11px; color: #b5bac1; font-size: 10px; }
.w-ticket__preview-button { min-height: 36px; margin-top: 10px; padding: 7px 13px; border: 0; border-radius: 4px; color: #fff; background: #5865f2; font: inherit; font-size: 12px; font-weight: 700; cursor: default; }
.w-ticket__preview-note { margin: 0; padding: 0 16px 15px; color: var(--w-dim); font-size: 11px; line-height: 1.45; }
@media (max-width: 1100px) { .w-ticket__layout { grid-template-columns: 1fr; }.w-ticket__preview { position: static; } }
@media (max-width: 640px) { .w-ticket__grid { grid-template-columns: 1fr; }.w-ticket__span-two { grid-column: auto; }.w-ticket__actions .w-ap__btn { width: 100%; justify-content: center; } }
@media (max-width: 640px) {
  .w-ar__form-grid, .w-ar__system-grid, .w-ar__add-option, .w-ar__role-editor, .w-ar__first-role-grid { grid-template-columns: 1fr; }
  .w-ar__span-two { grid-column: auto; }
  .w-ar__multi { align-self: stretch; }
  .w-ar__panel-head { flex-direction: column; }
  .w-ar__panel-actions form, .w-ar__panel-actions .w-ap__btn { width: 100%; }
  .w-ar__panel-actions .w-ap__btn { min-height: 44px; }
  .w-ar__role-copy span { white-space: normal; overflow-wrap: anywhere; }
}

.w-ap__toggle-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.w-switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--w-line-2);
  background: var(--w-surface-3); color: var(--w-muted); font-size: 13.5px; font-weight: 700;
  transition: background var(--w-t), border-color var(--w-t), color var(--w-t);
}
.w-switch:disabled { opacity: 0.6; cursor: default; }
.w-switch__knob {
  width: 34px; height: 20px; border-radius: 999px; background: var(--w-dim); position: relative; flex-shrink: 0;
  transition: background var(--w-t);
}
.w-switch__knob::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform var(--w-t);
}
.w-switch.is-on { color: var(--w-good); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.10); }
.w-switch.is-on .w-switch__knob { background: var(--w-good); }
.w-switch.is-on .w-switch__knob::after { transform: translateX(14px); }

/* Telegram audit */
.w-tg__status { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--w-line); border-radius: 8px; background: rgba(8, 17, 42, 0.72); }
.w-tg__status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--w-danger); box-shadow: 0 0 0 4px rgba(255, 90, 122, 0.10); }
.w-tg__status-dot.is-online { background: var(--w-good); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.10); }
.w-tg__status div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w-tg__status strong { color: var(--w-text); font-size: 14px; }
.w-tg__status span { color: var(--w-muted); font-size: 12px; }
.w-tg__status .w-ap__btn { margin-left: auto; }
.w-tg__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 20px; }
.w-tg__accounts { min-width: 0; }
.w-tg__section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.w-tg__section-head > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--w-line); border-radius: 7px; color: var(--w-cyan); background: rgba(159, 245, 255, 0.06); }
.w-tg__section-head svg { width: 16px; height: 16px; }
.w-tg__section-head h2 { margin: 0 0 3px; font-size: 15px; }
.w-tg__section-head p { margin: 0; color: var(--w-muted); font-size: 12px; line-height: 1.45; }
.w-tg__account-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.w-tg__account { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(170px, 1.2fr) 38px; gap: 7px; align-items: center; }
.w-tg__icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 90, 122, .28); border-radius: 7px; color: var(--w-danger); background: rgba(255, 90, 122, .08); cursor: pointer; }
.w-tg__icon-button:hover { background: rgba(255, 90, 122, .16); }
.w-tg__icon-button:focus-visible { outline: 2px solid var(--w-cyan); outline-offset: 2px; }
.w-tg__icon-button svg { width: 16px; height: 16px; }
.w-tg__empty { padding: 13px; border: 1px dashed var(--w-line-2); border-radius: 7px; color: var(--w-dim); font-size: 12px; text-align: center; }
.w-tg__divider { height: 1px; margin: 22px 0; background: var(--w-line); }
.w-tg__categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.w-tg__category { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--w-line); border-radius: 7px; color: var(--w-text-2); background: rgba(3, 10, 29, .38); font-size: 12px; cursor: pointer; }
.w-tg__category input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--w-cyan); }
.w-tg__health { display: grid; grid-template-columns: auto 90px auto; align-items: center; gap: 9px; width: fit-content; margin-top: 16px; color: var(--w-text-2); font-size: 13px; }
.w-tg__notice { margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid var(--w-cyan); color: var(--w-muted); background: rgba(159, 245, 255, .05); font-size: 12.5px; line-height: 1.5; }
.w-tg__test { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.w-tg__test .w-ap__hint { margin-bottom: 0; }
.w-tg__test-controls { display: grid; grid-template-columns: minmax(230px, 1fr) auto; gap: 9px; width: min(520px, 100%); }
@media (max-width: 1050px) { .w-tg__columns { grid-template-columns: 1fr; }.w-tg__categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .w-tg__status { flex-wrap: wrap; }.w-tg__status .w-ap__btn { width: 100%; margin-left: 0; justify-content: center; }.w-tg__account { grid-template-columns: 1fr 38px; }.w-tg__account input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }.w-tg__categories { grid-template-columns: 1fr; }.w-tg__test { align-items: stretch; flex-direction: column; }.w-tg__test-controls { grid-template-columns: 1fr; }.w-tg__test-controls .w-ap__btn { justify-content: center; } }

/* Voice-hour role progression */
.w-vr__keep { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 20px; padding: 12px; border: 1px solid var(--w-line); border-radius: 7px; color: var(--w-text-2); cursor: pointer; }
.w-vr__keep input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--w-cyan); }
.w-vr__keep span { display: flex; flex-direction: column; gap: 3px; }
.w-vr__keep small { color: var(--w-dim); font-size: 11px; }
.w-vr__layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 20px; align-items: start; }
.w-vr__editor { min-width: 0; }
.w-vr__tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.w-vr__tier { overflow: hidden; border: 1px solid var(--w-line); border-radius: 8px; background: rgba(3, 10, 29, .34); }
.w-vr__tier-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 34px; align-items: center; gap: 9px; min-height: 42px; padding: 7px 9px 7px 12px; border-bottom: 1px solid var(--w-line); }
.w-vr__tier-head b { color: var(--w-cyan); font-size: 11px; text-transform: uppercase; }
.w-vr__tier-head span { overflow: hidden; color: var(--w-text); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.w-vr__tier-head button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,90,122,.24); border-radius: 6px; color: var(--w-danger); background: rgba(255,90,122,.07); cursor: pointer; }
.w-vr__tier-head button svg { width: 15px; height: 15px; }
.w-vr__fields { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 9px; padding: 11px; }
.w-vr__fields label, .w-vr__reactions { display: flex; flex-direction: column; gap: 5px; color: var(--w-muted); font-size: 11px; font-weight: 700; }
.w-vr__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 11px 11px; }
.w-vr__benefits label { display: flex; align-items: flex-start; gap: 7px; min-height: 34px; padding: 7px 8px; border: 1px solid var(--w-line); border-radius: 6px; color: var(--w-text-2); font-size: 11px; line-height: 1.35; cursor: pointer; }
.w-vr__benefits input { flex: 0 0 auto; width: 15px; height: 15px; accent-color: var(--w-cyan); }
.w-vr__reactions { margin-top: 18px; }
.w-vr__reactions small { color: var(--w-dim); font-weight: 400; }
.w-vr__preview { position: sticky; top: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #dbdee1; background: #232428; }
.w-vr__preview > strong { display: block; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); color: #f2f3f5; font-size: 15px; }
.w-vr__preview-tier { display: flex; flex-direction: column; gap: 4px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.w-vr__preview-tier:last-child { border-bottom: 0; }
.w-vr__preview-tier b { color: #c5a3ff; font-size: 12px; }
.w-vr__preview-tier span { color: #f2f3f5; font-size: 11px; }
.w-vr__preview-tier small { color: #b5bac1; font-size: 10.5px; line-height: 1.35; }
@media (max-width: 1100px) { .w-vr__layout { grid-template-columns: 1fr; }.w-vr__preview { position: static; } }
@media (max-width: 640px) { .w-vr__fields, .w-vr__benefits { grid-template-columns: 1fr; }.w-vr__fields { padding-bottom: 8px; }.w-vr__tier-head { grid-template-columns: 1fr 34px; }.w-vr__tier-head b { grid-column: 1; }.w-vr__tier-head span { grid-column: 1; }.w-vr__tier-head button { grid-column: 2; grid-row: 1 / span 2; } }

@media (max-width: 980px) {
  .w-ap__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .w-ap__grid { grid-template-columns: 1fr; }
}

/* ── Reveal animation ────────────────────────────────────── */
@keyframes w-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.w-rise { animation: w-rise 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.w-rise-1 { animation-delay: 0.05s; }
.w-rise-2 { animation-delay: 0.13s; }
.w-rise-3 { animation-delay: 0.21s; }
.w-rise-4 { animation-delay: 0.29s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .w-features, .w-stats, .w-do { grid-template-columns: repeat(2, 1fr); }
  .w-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .w-profile { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .w-nav__inner { min-height: 62px; height: auto; position: relative; }
  .w-nav__spacer { display: none; }
  .w-nav__user { margin-left: auto; gap: 6px; }
  .w-nav__menu { display: inline-flex; }
  .w-nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 105;
    flex-direction: column; align-items: stretch; gap: 3px; margin: 0; padding: 8px 14px 14px;
    background: rgba(7, 12, 30, 0.98); border-bottom: 1px solid var(--w-line-2);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.9);
  }
  .w-nav__links.is-open { display: flex; }
  .w-nav__links li, .w-nav__links a { width: 100%; }
  .w-nav__links a { min-height: 44px; padding: 10px 12px; }
  .w-hero { padding: 64px 0 40px; }
  .w-features, .w-stats, .w-do, .w-admin-grid { grid-template-columns: 1fr; }
  .w-highlight { flex-direction: column; align-items: flex-start; }
  .w-highlight__pts { text-align: left; }
  .w-lb__stats { display: none; }
}

/* ── Leaderboard dedicado (/leaderboard) ─────────────────────── */
.w-container--narrow { max-width: 880px; }
.w-lbp__head { text-align: center; margin-bottom: 22px; }
.w-lbp__head h1 { display: inline-flex; align-items: center; gap: 12px; font-size: 32px; letter-spacing: -0.01em; }
.w-lbp__head h1 svg { width: 28px; height: 28px; color: var(--w-gold); }
.w-lbp__head p { color: var(--w-muted); margin-top: 8px; }

.w-lbp__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.w-lbp__tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--w-muted);
  background: var(--w-surface-2); border: 1px solid var(--w-line-2);
  transition: color var(--w-t), background var(--w-t), border-color var(--w-t), transform var(--w-t);
}
.w-lbp__tab svg { width: 16px; height: 16px; }
.w-lbp__tab:hover { color: var(--w-text); border-color: var(--w-line); transform: translateY(-1px); }
.w-lbp__tab.is-active { color: #041027; background: var(--w-grad); border-color: transparent; box-shadow: 0 8px 22px -10px var(--w-glow); }

.w-lbp__periods { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.w-lbp__period {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--w-muted);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--w-line-2); transition: color var(--w-t), background var(--w-t), border-color var(--w-t);
}
.w-lbp__period:hover { color: var(--w-text); }
.w-lbp__period.is-active { color: var(--w-good); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.10); }

.w-lbp__me {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 18px; border-radius: var(--w-radius);
  background: linear-gradient(120deg, rgba(37, 74, 255, 0.18), rgba(159, 245, 255, 0.06));
  border: 1px solid var(--w-line);
}
.w-lbp__me-rank {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--w-grad); color: #041027; font-weight: 800; font-size: 14px;
}
.w-lbp__me-info { flex: 1; min-width: 0; }
.w-lbp__me-title { font-weight: 800; font-size: 15px; }
.w-lbp__me-sub { color: var(--w-muted); font-size: 13px; margin-top: 2px; }
.w-lbp__me-big { text-align: right; font-weight: 800; font-size: 24px; color: var(--w-cyan); line-height: 1; }
.w-lbp__me-big span { display: block; font-size: 12px; font-weight: 600; color: var(--w-dim); margin-top: 4px; }

.w-lbp__list { display: flex; flex-direction: column; border-radius: var(--w-radius); overflow: hidden; border: 1px solid var(--w-line-2); }
.w-lbp__row {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: var(--w-surface); border-bottom: 1px solid var(--w-line-2); transition: background var(--w-t);
}
.w-lbp__row:last-child { border-bottom: 0; }
.w-lbp__row:hover { background: var(--w-surface-2); }
.w-lbp__pos {
  width: 30px; text-align: center; font-weight: 800; font-size: 14px; color: var(--w-dim); flex-shrink: 0;
}
.w-lbp__pos--1 { color: var(--w-gold); }
.w-lbp__pos--2 { color: #cfd8ff; }
.w-lbp__pos--3 { color: #e0955a; }
.w-lbp__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--w-line); flex-shrink: 0; }
.w-lbp__meta { flex: 1; min-width: 0; }
.w-lbp__name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-lbp__lvl { color: var(--w-muted); font-size: 12.5px; margin-top: 1px; }
.w-lbp__val { font-weight: 800; font-size: 14px; color: var(--w-cyan); white-space: nowrap; }

.w-lbp__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.w-lbp__pgbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--w-text); background: var(--w-surface-2); border: 1px solid var(--w-line-2); transition: border-color var(--w-t), background var(--w-t);
}
.w-lbp__pgbtn svg { width: 16px; height: 16px; }
.w-lbp__pgbtn:hover { border-color: var(--w-cyan); }
.w-lbp__pgbtn.is-disabled { opacity: 0.4; pointer-events: none; }
.w-lbp__pginfo { color: var(--w-muted); font-size: 13px; }

@media (max-width: 560px) {
  .w-lbp__me-big { font-size: 20px; }
  .w-lbp__val { font-size: 13px; }
  .w-lbp__tab { padding: 9px 14px; font-size: 13px; }
}

/* ── Perfil rediseñado (/portal/perfil) ─────────────────────── */
.w-prof__card {
  border-radius: var(--w-radius-lg); overflow: hidden; margin-bottom: 26px;
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2);
}
.w-prof__banner {
  height: 132px;
  background: radial-gradient(circle at 20% 10%, rgba(37, 74, 255, 0.45), transparent 55%),
              radial-gradient(circle at 85% 30%, rgba(159, 245, 255, 0.25), transparent 55%),
              linear-gradient(120deg, #0f1832, #060b1c);
  background-size: cover; background-position: center;
}
.w-prof__body { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 22px; flex-wrap: wrap; }
.w-prof__avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin-top: -52px; flex-shrink: 0;
  border: 4px solid var(--w-bg-2); box-shadow: 0 0 0 1px var(--w-line), 0 12px 30px -12px var(--w-glow); background: var(--w-surface-3);
}
.w-prof__avatar--ph { display: grid; place-items: center; color: var(--w-muted); }
.w-prof__ident { flex: 1; min-width: 220px; padding-top: 12px; }
.w-prof__nameline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.w-prof__name { font-size: 22px; font-weight: 800; }
.w-prof__handle { color: var(--w-muted); font-size: 14px; }
.w-prof__chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.w-chip--staff { color: var(--w-good); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
.w-chip--gold { color: var(--w-gold); background: rgba(255, 207, 90, 0.12); border-color: rgba(255, 207, 90, 0.35); }
.w-prof__lvl { max-width: 460px; }
.w-prof__lvl-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--w-muted); margin-bottom: 6px; }
.w-prof__bar { height: 9px; border-radius: 999px; background: var(--w-surface-3); overflow: hidden; border: 1px solid var(--w-line-2); }
.w-prof__bar span { display: block; height: 100%; border-radius: 999px; background: var(--w-grad); box-shadow: 0 0 12px -2px var(--w-glow); }
.w-prof__actions { display: flex; gap: 10px; padding-bottom: 2px; flex-wrap: wrap; }
.w-prof__actions .w-btn { padding: 9px 16px; font-size: 13.5px; }

.w-prof__section-title, .w-prof__panel-title {
  display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin-bottom: 14px;
}
.w-prof__section-title svg, .w-prof__panel-title svg { width: 18px; height: 18px; color: var(--w-cyan); }
.w-prof__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.w-prof__stat-sub { color: var(--w-muted); font-size: 12px; margin-top: 4px; }

.w-prof__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.w-prof__panel { padding: 20px; }
.w-prof__rows { display: flex; flex-direction: column; gap: 2px; }
.w-prof__kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--w-line-2); font-size: 14px; }
.w-prof__kv:last-child { border-bottom: 0; }
.w-prof__kv span { color: var(--w-muted); }
.w-prof__kv b { color: var(--w-text); }

.w-priv { display: flex; flex-direction: column; gap: 4px; }
.w-priv__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--w-line-2); }
.w-priv__row:last-child { border-bottom: 0; }
.w-priv__title { font-size: 14px; font-weight: 700; }
.w-priv__desc { color: var(--w-muted); font-size: 12.5px; margin-top: 2px; }

.w-toggle {
  width: 44px; height: 24px; border-radius: 999px; position: relative; cursor: pointer; flex-shrink: 0;
  background: var(--w-surface-3); border: 1px solid var(--w-line-2);
  transition: background var(--w-t), border-color var(--w-t);
}
.w-toggle__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--w-dim); transition: transform var(--w-t), background var(--w-t); }
.w-toggle.is-on { background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.4); }
.w-toggle.is-on .w-toggle__knob { transform: translateX(20px); background: var(--w-good); }
.w-toggle:disabled { opacity: 0.7; cursor: default; }

@media (max-width: 820px) {
  .w-prof__stats { grid-template-columns: repeat(2, 1fr); }
  .w-prof__grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .w-prof__actions { width: 100%; }
  .w-prof__actions .w-btn { flex: 1; justify-content: center; }
}

/* ── Página del Servidor (/server) ──────────────────────────── */
/* Banner: solo la imagen (o un placeholder si aún no se subió una). */
.w-srv__banner {
  border-radius: var(--w-radius-lg); overflow: hidden; margin-bottom: 16px;
  border: 1px solid var(--w-line-2); background: linear-gradient(120deg, #0f1832, #060b1c);
}
.w-srv__banner-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.w-srv__banner-ph {
  display: grid; place-items: center; gap: 10px; min-height: 200px;
  background:
    radial-gradient(60% 90% at 20% 10%, rgba(37, 74, 255, 0.30), transparent 60%),
    radial-gradient(50% 80% at 85% 30%, rgba(159, 245, 255, 0.18), transparent 60%);
  color: var(--w-dim); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.w-srv__banner-ph svg { width: 34px; height: 34px; color: var(--w-cyan-dim); }

/* Fila de info bajo el banner: icono + nombre/tags + botón. */
.w-srv__infobar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 22px;
}
.w-srv__icon { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--w-line); object-fit: cover; flex-shrink: 0; }
.w-srv__headline { flex: 1; min-width: 220px; font-size: clamp(16px, 2vw, 20px); font-weight: 800; line-height: 1.4; }
.w-srv__join { flex-shrink: 0; }

.w-srv__section { padding: 24px 26px; margin-bottom: 20px; }
.w-srv__section h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.w-srv__section h2 svg { width: 19px; height: 19px; color: var(--w-cyan); }
.w-srv__about-text { white-space: pre-line; color: var(--w-text); font-size: 14.5px; line-height: 1.75; }

/* ── Texto con formato (Markdown ligero) ─────────────────────── */
.w-rich { color: var(--w-text); font-size: 14.5px; line-height: 1.7; }
.w-rich > *:first-child { margin-top: 0; }
.w-rich > *:last-child { margin-bottom: 0; }
.w-rich__h {
  font-size: 15.5px; font-weight: 800; color: var(--w-cyan);
  margin: 22px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--w-line-2);
  letter-spacing: 0.01em;
}
.w-rich__p { margin: 10px 0; color: var(--w-muted); }
.w-rich strong { color: var(--w-text); font-weight: 800; }
.w-rich__ol, .w-rich__ul { margin: 10px 0; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; list-style: none; }
.w-rich__ol { counter-reset: w-rich-ol; }
.w-rich__ol > li, .w-rich__ul > li {
  position: relative; padding-left: 30px; color: var(--w-muted);
}
.w-rich__ol > li { counter-increment: w-rich-ol; }
.w-rich__ol > li::before {
  content: counter(w-rich-ol); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--w-cyan);
  background: rgba(37, 74, 255, 0.16); border: 1px solid var(--w-line);
}
.w-rich__ul > li::before {
  content: ""; position: absolute; left: 8px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--w-cyan);
}
.w-rich__ul--sub { margin: 8px 0 2px; gap: 7px; }
.w-rich__ul--sub > li { padding-left: 22px; font-size: 13.5px; }
.w-rich__ul--sub > li::before { left: 4px; top: 8px; width: 5px; height: 5px; background: var(--w-cyan-dim); }

/* Stats centradas (estilo de la referencia). */
.w-srv__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.w-srv__stat { padding: 22px 16px; text-align: center; }
.w-srv__stat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; margin-bottom: 12px;
  background: rgba(37, 74, 255, 0.14); color: var(--w-cyan);
}
.w-srv__stat-ico svg { width: 20px; height: 20px; }
.w-srv__stat-value { font-size: 30px; font-weight: 800; line-height: 1; }
.w-srv__stat-label { margin-top: 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-muted); }
.w-srv__stat.w-stat--good .w-srv__stat-ico { color: var(--w-good); background: rgba(52, 211, 153, 0.14); }

.w-srv__rules, .w-srv__channels { display: flex; flex-direction: column; gap: 10px; }
.w-srv__rule, .w-srv__channel {
  display: flex; align-items: flex-start; gap: 13px; padding: 13px 16px;
  background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: 11px;
  transition: border-color var(--w-t), transform var(--w-t);
}
.w-srv__channel[href] { cursor: pointer; }
.w-srv__channel[href]:hover, .w-srv__rule:hover { border-color: var(--w-line); transform: translateX(3px); }
.w-srv__rule-ico, .w-srv__channel-ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
  background: rgba(37, 74, 255, 0.14); color: var(--w-cyan);
}
.w-srv__rule-ico svg, .w-srv__channel-ico svg { width: 15px; height: 15px; }
.w-srv__rule-title, .w-srv__channel-label { font-weight: 700; font-size: 14.5px; }
.w-srv__rule-desc, .w-srv__channel-desc { color: var(--w-muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }

@media (max-width: 1024px) {
  .w-srv__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .w-srv__join { width: 100%; justify-content: center; }
}

/* ── /staff — Nuestro Equipo ─────────────────────────────── */
.w-staff__head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.w-staff__hero-ico {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #041027;
  background: var(--w-grad);
  border: 1px solid rgba(159, 245, 255, 0.35);
  box-shadow: 0 12px 32px -12px var(--w-glow), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.w-staff__title {
  font-family: var(--font-display, "Chakra Petch"), system-ui, sans-serif;
  font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.01em; margin: 0 0 12px;
}
.w-staff__title .grad {
  background: var(--w-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w-staff__lead { color: var(--w-muted); font-size: 15.5px; margin: 0 0 20px; }
.w-staff__count {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: rgba(159, 245, 255, 0.06); border: 1px solid var(--w-line);
  font-size: 13.5px; color: var(--w-muted);
}
.w-staff__count svg { width: 15px; height: 15px; color: var(--w-cyan-dim); }
.w-staff__count b { color: var(--w-text); font-weight: 700; }

.w-staff__list { display: grid; gap: 20px; }

/* Sección por rol — la variable --staff-color se inyecta inline (color real del rol).
   Se usa un fallback al cyan del portal si el rol no tiene color en Discord. */
.w-staff__section {
  --staff-color: var(--w-cyan);
  position: relative;
  padding: 22px 24px 24px;
}
.w-staff__section::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--w-radius) 0 0 var(--w-radius);
  background: linear-gradient(180deg, var(--staff-color), transparent 120%);
  box-shadow: 0 0 22px -2px var(--staff-color);
}
.w-staff__section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.w-staff__section-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  color: var(--staff-color);
  background: color-mix(in srgb, var(--staff-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--staff-color) 30%, transparent);
  flex-shrink: 0;
}
.w-staff__section-ico svg { width: 20px; height: 20px; }
.w-staff__role-icon {
  width: 25px; height: 25px; border-radius: 7px; object-fit: cover; display: block;
}
.w-staff__role-emoji { font-size: 23px; line-height: 1; }
.w-staff__section-title { flex: 1; min-width: 0; }
.w-staff__section-title h2 {
  font-size: 17px; font-weight: 700; color: var(--staff-color); letter-spacing: 0.01em; margin: 0;
}
.w-staff__section-title p { font-size: 12.5px; color: var(--w-dim); margin: 3px 0 0; }
.w-staff__section-count {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: var(--staff-color);
  background: color-mix(in srgb, var(--staff-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--staff-color) 25%, transparent);
}
.w-staff__section-count svg { width: 13px; height: 13px; }

.w-staff__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}

.w-staff__member {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--w-surface);
  border: 1px solid var(--w-line-2);
  color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%;
  appearance: none;
  transition: transform var(--w-t), border-color var(--w-t), box-shadow var(--w-t), background var(--w-t);
  min-width: 0;
}
.w-staff__member:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--staff-color) 45%, transparent);
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--staff-color) 55%, transparent);
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
}
.w-staff__avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--staff-color) 35%, var(--w-line-2));
  background: var(--w-surface-3);
}
.w-staff__member-info { min-width: 0; flex: 1; }
.w-staff__member-name {
  font-size: 13.5px; font-weight: 700; color: var(--w-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-staff__member-handle {
  font-size: 11.5px; color: var(--w-muted); font-weight: 500; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-staff__member-role {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--staff-color);
  background: color-mix(in srgb, var(--staff-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--staff-color) 22%, transparent);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-staff__member-role::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--staff-color);
  box-shadow: 0 0 6px var(--staff-color); flex-shrink: 0;
}
.w-staff__member-role-icon { width: 13px; height: 13px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.w-staff__member-role-emoji { font-size: 12px; line-height: 1; flex-shrink: 0; }

/* -- Perfil emergente de Discord --------------------------------------- */
.w-staff-profile-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(2, 4, 12, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
.w-staff-profile {
  position: relative !important;
  width: min(100%, 520px) !important;
  max-height: calc(100vh - 40px) !important;
  margin: auto !important;
  overflow-y: auto !important;
  border: 1px solid var(--w-line) !important;
  border-radius: 16px !important;
  background: #202126 !important;
  color: #dbdee1 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7) !important;
  animation: w-profile-in .18s ease-out !important;
}
@keyframes w-profile-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.w-staff-profile__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%; color: #dbdee1; background: rgba(15, 16, 20, .7); font-size: 22px; line-height: 1; cursor: pointer;
}
.w-staff-profile__close:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.w-staff-profile__banner { height: 154px; overflow: hidden; background: var(--profile-accent); }
.w-staff-profile__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-staff-profile__identity {
  position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 0 22px; margin-top: -47px;
}
.w-staff-profile__avatar {
  width: 94px; height: 94px; flex-shrink: 0; object-fit: cover; border: 6px solid #202126;
  border-radius: 50%; background: #313338;
}
.w-staff-profile__identity-copy { min-width: 0; padding-bottom: 5px; }
.w-staff-profile__identity-copy h2 {
  margin: 0; color: #f2f3f5; font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-staff-profile__identity-copy p { margin: 4px 0 7px; color: #b5bac1; font-size: 13px; }
.w-staff-profile__staff-role {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 38%, transparent); border-radius: 999px;
  color: var(--profile-accent); background: color-mix(in srgb, var(--profile-accent) 12%, transparent);
  font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-staff-profile__staff-role img { width: 14px; height: 14px; border-radius: 4px; object-fit: cover; }
.w-staff-profile__actions { display: flex; gap: 9px; padding: 18px 22px 0; }
.w-staff-profile__actions .w-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #5865f2 !important; color: #ffffff !important; font-weight: 700 !important;
  box-shadow: 0 6px 20px -4px rgba(88, 101, 242, 0.5) !important;
}
.w-staff-profile__actions .w-btn svg { color: #ffffff !important; }
.w-staff-profile__actions .w-btn:hover {
  background: #4752c4 !important; color: #ffffff !important;
}
.w-staff-profile__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 20px 22px;
}
.w-staff-profile__facts > div {
  min-width: 0; padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: #2b2d31;
}
.w-staff-profile__facts span { display: block; margin-bottom: 5px; color: #949ba4; font-size: 10px; }
.w-staff-profile__facts strong { display: block; color: #f2f3f5; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-staff-profile__roles { padding: 0 22px 24px; }
.w-staff-profile__roles h3 {
  display: flex; align-items: center; gap: 7px; margin: 0 0 11px; color: #f2f3f5; font-size: 14px;
}
.w-staff-profile__roles h3 svg { color: var(--profile-accent); }
.w-staff-profile__role-list { display: flex; gap: 7px; flex-wrap: wrap; }
.w-staff-profile__role {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--role-color) 35%, transparent); border-radius: 999px;
  color: #dbdee1; background: color-mix(in srgb, var(--role-color) 12%, #2b2d31);
  font-size: 11.5px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-staff-profile__role img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.w-staff-profile__role i { width: 10px; height: 10px; border-radius: 50%; background: var(--role-color); flex-shrink: 0; }
.w-staff-profile__empty { color: #949ba4; font-size: 12px; }

/* CTA final */
.w-staff__cta {
  margin-top: 28px; padding: 32px 24px; text-align: center;
  background:
    radial-gradient(circle at 50% -20%, rgba(37, 74, 255, 0.22), transparent 55%),
    linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border-color: var(--w-line);
}
.w-staff__cta-ico {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; color: #041027;
  background: var(--w-grad);
  border: 1px solid rgba(159, 245, 255, 0.35);
  box-shadow: 0 10px 28px -10px var(--w-glow), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.w-staff__cta-ico svg { width: 22px; height: 22px; }
.w-staff__cta h3 {
  font-size: 20px; font-weight: 700; margin: 0 0 8px;
}
.w-staff__cta p {
  color: var(--w-muted); font-size: 14.5px; max-width: 520px; margin: 0 auto 20px;
}
.w-staff__cta .w-btn--primary {
  position: relative; overflow: hidden;
  color: #eafcff;
  background: linear-gradient(180deg, rgba(55, 91, 224, 0.88), rgba(29, 54, 142, 0.92));
  border: 1px solid rgba(159, 245, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px -16px rgba(79, 156, 255, 0.82);
  transition: transform var(--w-t), background var(--w-t), border-color var(--w-t), box-shadow var(--w-t);
}
.w-staff__cta .w-btn--primary::after {
  content: ""; position: absolute; inset: 1px 18% auto; height: 1px;
  background: rgba(255, 255, 255, 0.42); pointer-events: none;
}
.w-staff__cta .w-btn--primary:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(68, 111, 244, 0.96), rgba(37, 74, 188, 0.96));
  border-color: var(--w-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 34px -16px rgba(79, 156, 255, 0.95);
}

@media (max-width: 1024px) {
  .w-staff__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .w-staff__grid { grid-template-columns: repeat(2, 1fr); }
  .w-staff__section { padding: 20px 18px; }
}
@media (max-width: 480px) {
  .w-staff__grid { grid-template-columns: 1fr; }
  .w-staff__section-head { gap: 10px; }
  .w-staff__section-title h2 { font-size: 15px; }
}

/* ── /admin/staff — Selector de roles staff ──────────────── */
.w-staff-adm__form { display: flex; flex-direction: column; gap: 14px; }
.w-staff-adm__toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.w-staff-adm__search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 10px;
  background: var(--w-bg-2); border: 1px solid var(--w-line-2);
}
.w-staff-adm__search svg { width: 16px; height: 16px; color: var(--w-dim); flex-shrink: 0; }
.w-staff-adm__search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--w-text); font-size: 14px; font-weight: 700;
}
.w-staff-adm__search input::placeholder { color: var(--w-dim); font-weight: 500; }
.w-staff-adm__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.w-staff-adm__count {
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: var(--w-muted);
  background: rgba(159, 245, 255, 0.04); border: 1px solid var(--w-line-2);
}
.w-staff-adm__count b { color: var(--w-cyan); }

.w-staff-adm__list {
  display: grid; gap: 6px; max-height: 520px; overflow-y: auto;
  padding-right: 6px; margin: 0;
}
.w-staff-adm__row {
  --role-color: var(--w-cyan);
  border-radius: 10px; background: var(--w-surface);
  border: 1px solid var(--w-line-2);
  transition: border-color var(--w-t), background var(--w-t), transform var(--w-t);
}
.w-staff-adm__row:hover { border-color: var(--w-line); transform: translateX(2px); }
.w-staff-adm__row.is-active {
  border-color: color-mix(in srgb, var(--role-color) 55%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--role-color) 8%, transparent), transparent 45%),
    var(--w-surface);
}
.w-staff-adm__label {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; user-select: none;
}
.w-staff-adm__label input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--w-primary); flex-shrink: 0; cursor: pointer;
}
.w-staff-adm__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--role-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--role-color) 60%, transparent);
  flex-shrink: 0;
}
.w-staff-adm__role-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.w-staff-adm__role-emoji { width: 24px; text-align: center; font-size: 18px; line-height: 1; flex-shrink: 0; }
.w-staff-adm__name {
  color: var(--role-color); font-weight: 700; font-size: 14px;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-staff-adm__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.w-staff-adm__tag {
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--w-muted);
  background: rgba(159, 245, 255, 0.05); border: 1px solid var(--w-line-2);
}
.w-staff-adm__tag--mod { color: var(--w-good); background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.25); }
.w-staff-adm__tag--count { color: var(--w-cyan); background: rgba(37, 74, 255, 0.10); border-color: var(--w-line); }
.w-staff-adm__empty { color: var(--w-muted); font-size: 13.5px; padding: 12px 4px; }

/* -- /admin/staff â€” Postulaciones pendientes ------------------------ */
.w-staff-applications__heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.w-staff-applications__heading h2 { margin-bottom: 6px; }
.w-staff-applications__count {
  flex-shrink: 0; padding: 7px 11px; border-radius: 999px; color: var(--w-cyan);
  background: rgba(37, 74, 255, 0.12); border: 1px solid var(--w-line); font-size: 12px; font-weight: 700;
}
.w-staff-applications__list { display: grid; gap: 9px; }
.w-staff-applications__row {
  display: grid; grid-template-columns: minmax(190px, 1.1fr) minmax(230px, 1fr) auto;
  align-items: center; gap: 14px; padding: 13px 14px; border-radius: 11px;
  background: var(--w-surface); border: 1px solid var(--w-line-2);
}
.w-staff-applications__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w-staff-applications__avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--w-cyan); background: rgba(159, 245, 255, 0.07); border: 1px solid var(--w-line);
}
.w-staff-applications__avatar svg { width: 17px; height: 17px; }
.w-staff-applications__identity div:last-child { min-width: 0; }
.w-staff-applications__identity strong,
.w-staff-applications__identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-staff-applications__identity strong { color: var(--w-text); font-size: 14px; }
.w-staff-applications__identity span { color: var(--w-dim); font-size: 12px; margin-top: 3px; }
.w-staff-applications__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--w-muted); font-size: 12px; }
.w-staff-applications__meta span { display: inline-flex; align-items: center; gap: 5px; }
.w-staff-applications__meta svg { width: 14px; height: 14px; color: var(--w-cyan-dim); }
.w-staff-applications__id { color: var(--w-dim); }
.w-staff-applications__status {
  padding: 3px 8px; border-radius: 999px; color: var(--w-cyan); background: rgba(37, 74, 255, 0.12);
  border: 1px solid var(--w-line); font-size: 11px; font-weight: 700;
}
.w-staff-applications__status--waiting { color: #facc15; border-color: rgba(250, 204, 21, 0.28); background: rgba(250, 204, 21, 0.08); }
.w-staff-applications__status--concluding { color: var(--w-good); border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.08); }
.w-staff-applications__action form { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.w-staff-applications__action .w-ap__msg { max-width: 220px; text-align: right; font-size: 11px; }
.w-staff-applications__empty {
  display: flex; align-items: center; gap: 8px; padding: 14px; color: var(--w-muted);
  border: 1px dashed var(--w-line); border-radius: 10px; font-size: 13.5px;
}
.w-staff-applications__empty svg { width: 17px; height: 17px; color: var(--w-cyan); }

@media (max-width: 640px) {
  .w-staff-adm__toolbar { flex-direction: column; align-items: stretch; }
  .w-staff-adm__actions .w-ap__btn { flex: 1; justify-content: center; }
  .w-staff-applications__heading { flex-direction: column; }
  .w-staff-applications__row { grid-template-columns: 1fr; }
  .w-staff-applications__action form { align-items: stretch; }
}

/* -- /staff/postularse ----------------------------------------------- */
.w-staff-apply__container { max-width: 820px; }
.w-staff-apply__back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
  color: var(--w-muted); font-size: 13px; font-weight: 700;
}
.w-staff-apply__back:hover { color: var(--w-cyan); }
.w-staff-apply__head { margin-bottom: 24px; }
.w-staff-apply__head .w-eyebrow { justify-content: center; }
.w-staff-apply__notice {
  padding: 18px 20px; margin-bottom: 16px;
  border-color: rgba(159, 245, 255, 0.18);
  background: linear-gradient(135deg, rgba(37, 74, 255, 0.13), rgba(11, 18, 38, 0.72));
}
.w-staff-apply__notice strong { display: block; margin-bottom: 5px; color: var(--w-cyan); font-size: 14px; }
.w-staff-apply__notice p { color: var(--w-muted); font-size: 13.5px; line-height: 1.55; }
.w-staff-apply__notice + .w-empty { margin-top: 18px; }
.w-staff-apply__form {
  display: flex; flex-direction: column; gap: 18px; padding: 20px;
  border: 1px solid var(--w-line-2); border-radius: var(--w-radius);
  background: linear-gradient(180deg, rgba(11, 18, 38, 0.95), rgba(5, 8, 19, 0.84));
  box-shadow: 0 22px 48px -34px var(--w-glow);
}
.w-staff-apply__account {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--w-line-2); border-radius: 12px; background: rgba(159, 245, 255, 0.04);
}
.w-staff-apply__account img, .w-staff-apply__account > svg {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; color: var(--w-cyan);
  border: 2px solid var(--w-line); background: var(--w-surface-3); padding: 8px;
}
.w-staff-apply__account strong, .w-staff-apply__account span { display: block; }
.w-staff-apply__account strong { color: var(--w-text); font-size: 14px; }
.w-staff-apply__account span { margin-top: 3px; color: var(--w-dim); font-size: 12px; }
.w-staff-apply__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.w-staff-apply__fields label {
  display: flex; flex-direction: column; gap: 7px; color: var(--w-muted); font-size: 12.5px; font-weight: 700;
}
.w-staff-apply__fields label.is-wide { grid-column: 1 / -1; }
.w-staff-apply__fields input, .w-staff-apply__fields textarea, .w-staff-apply__fields select {
  width: 100%; padding: 11px 12px; color: var(--w-text); background: var(--w-bg-2);
  border: 1px solid var(--w-line-2); border-radius: 9px; outline: none; font: inherit; font-size: 13.5px;
  transition: border-color var(--w-t), box-shadow var(--w-t), background var(--w-t);
}
.w-staff-apply__fields textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.w-staff-apply__fields input::placeholder, .w-staff-apply__fields textarea::placeholder { color: var(--w-dim); }
.w-staff-apply__fields input:focus, .w-staff-apply__fields textarea:focus, .w-staff-apply__fields select:focus {
  border-color: var(--w-cyan); box-shadow: 0 0 0 3px rgba(159, 245, 255, 0.08); background: rgba(5, 8, 19, 0.8);
}
.w-staff-apply__captcha { display: flex; justify-content: center; min-height: 65px; padding: 2px 0; }
.w-staff-apply__submit { width: 100%; min-height: 44px; }
.w-staff-apply__footnote { color: var(--w-dim); font-size: 11.5px; text-align: center; }

/* -- Ajustes de postulaciones dentro de /admin/staff ----------------- */
.w-staff-settings { margin-top: 18px; }
.w-staff-settings__form { display: flex; flex-direction: column; gap: 16px; }
.w-staff-settings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.w-staff-settings__grid label { display: flex; flex-direction: column; gap: 7px; color: var(--w-muted); font-size: 12px; font-weight: 700; }
.w-staff-settings__input {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--w-line-2);
  border-radius: 9px; background: var(--w-bg-2);
}
.w-staff-settings__input:focus-within { border-color: var(--w-cyan); box-shadow: 0 0 0 3px rgba(159, 245, 255, 0.08); }
.w-staff-settings__input svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--w-cyan); }
.w-staff-settings__input input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--w-text); background: transparent; font: inherit; font-size: 13px; }
.w-staff-settings__input input::placeholder { color: var(--w-dim); }
.w-staff-settings__instructions {
  padding: 13px 15px; border-left: 3px solid var(--w-cyan); border-radius: 8px;
  color: var(--w-muted); background: rgba(159, 245, 255, 0.04); font-size: 12.5px; line-height: 1.55;
}
.w-staff-settings__instructions strong { display: block; margin-bottom: 5px; color: var(--w-text); }
.w-staff-settings__instructions ol { margin: 0; padding-left: 19px; }
.w-staff-settings__instructions b { color: var(--w-cyan); }
.w-staff-settings__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.w-staff-announcement__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.w-staff-announcement__status { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(79, 227, 181, .3); border-radius: 999px; color: #6ae8c0; background: rgba(79, 227, 181, .08); font-size: 11px; font-weight: 800; }
.w-staff-announcement__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 20px; align-items: start; }
.w-staff-announcement__color input[type="color"] { width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.w-staff-announcement__note { margin: -3px 0 0; color: var(--w-dim); font-size: 12px; line-height: 1.5; }
.w-staff-announcement__preview { position: sticky; top: 20px; padding: 14px; border: 1px solid var(--w-line-2); border-radius: 10px; background: var(--w-bg-2); }
.w-staff-announcement__preview > p { margin: 0 0 11px; color: var(--w-muted); font-size: 12px; font-weight: 800; }
.w-staff-announcement__discord { overflow: hidden; display: grid; grid-template-columns: 4px minmax(0, 1fr); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: #2b2d31; color: #f2f3f5; }
.w-staff-announcement__bar { min-height: 100%; }
.w-staff-announcement__content { min-width: 0; padding: 14px; }
.w-staff-announcement__content strong { display: block; font-size: 15px; line-height: 1.35; }
.w-staff-announcement__content p { margin: 9px 0; white-space: pre-wrap; color: #dbdee1; font-size: 13px; line-height: 1.45; }
.w-staff-announcement__content img { display: block; width: 100%; max-height: 180px; margin: 10px 0; border-radius: 5px; object-fit: cover; background: #17181b; }
.w-staff-announcement__content button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 3px 0 10px; padding: 0 11px; border: 0; border-radius: 4px; color: #fff; background: #5865f2; font-size: 12px; font-weight: 700; }
.w-staff-announcement__content button span { color: rgba(255,255,255,.85); }
.w-staff-announcement__content small { display: block; color: #b5bac1; font-size: 11px; }

.w-status-panel { max-width: 1320px; }
.w-status-panel__card { padding: 22px; }
.w-status-panel__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; align-items: start; }
.w-status-panel__preview { position: sticky; top: 20px; padding: 14px; border: 1px solid var(--w-line-2); border-radius: 10px; background: var(--w-bg-2); }
.w-status-panel__preview > p { margin: 0 0 11px; color: var(--w-muted); font-size: 12px; font-weight: 800; }
.w-status-panel__metrics { display: grid; gap: 7px; margin: 9px 0 12px; }
.w-status-panel__metrics div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #dbdee1; font-size: 12px; }
.w-status-panel__metrics dt { font-weight: 700; }
.w-status-panel__metrics dd { margin: 0; padding: 2px 6px; border-radius: 4px; color: #a8efff; background: rgba(159,245,255,.1); font-family: var(--font-mono); font-size: 11px; }

@media (max-width: 640px) {
  .w-staff-apply__fields, .w-staff-settings__grid { grid-template-columns: 1fr; }
  .w-staff-apply__fields label.is-wide { grid-column: auto; }
  .w-staff-apply__form { padding: 15px; }
  .w-staff-settings__actions { align-items: stretch; flex-direction: column; }
  .w-staff-settings__actions .w-ap__btn { width: 100%; }
  .w-staff-announcement__heading { align-items: flex-start; flex-direction: column; }
  .w-staff-announcement__layout { grid-template-columns: 1fr; }
  .w-staff-announcement__preview { position: static; }
  .w-status-panel__layout { grid-template-columns: 1fr; }
  .w-status-panel__preview { position: static; }
}

/* -- Premios de la comunidad --------------------------------------------- */
.w-awards { min-height: calc(100vh - 62px); }
.w-awards__hero { text-align: center; max-width: 700px; margin: 10px auto 46px; }
.w-awards__hero-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 20px; color: var(--w-cyan); background: rgba(37, 74, 255, 0.16);
  border: 1px solid var(--w-line); box-shadow: 0 18px 40px -24px var(--w-glow);
}
.w-awards__hero-icon.is-gold { color: var(--w-gold); background: rgba(255, 207, 90, 0.12); border-color: rgba(255, 207, 90, 0.3); }
.w-awards__hero-icon svg { width: 32px; height: 32px; }
.w-awards__hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0; }
.w-awards__hero p:not(.w-eyebrow) { color: var(--w-muted); font-size: 16px; line-height: 1.65; }
.w-awards__editions { margin-top: 18px; }
.w-section__head--left { text-align: left; margin-bottom: 20px; }
.w-section__head--left h2 { display: flex; align-items: center; gap: 9px; }
.w-section__head--left h2 svg { width: 20px; height: 20px; color: var(--w-cyan); }
.w-awards__edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.w-award-edition {
  display: block; overflow: hidden; background: var(--w-surface); border: 1px solid var(--w-line-2);
  border-radius: var(--w-radius); color: var(--w-text); transition: transform var(--w-t), border-color var(--w-t), box-shadow var(--w-t);
}
.w-award-edition:hover { transform: translateY(-5px); border-color: var(--w-line); box-shadow: 0 24px 44px -26px var(--w-glow); }
.w-award-edition__visual { position: relative; min-height: 164px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(159, 245, 255, 0.16), transparent 58%), var(--w-bg-2); }
.w-award-edition__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(5, 8, 19, 0.78)); pointer-events: none; }
.w-award-edition__visual img { width: 100%; height: 100%; min-height: 164px; object-fit: cover; opacity: 0.72; }
.w-award-edition__mark { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: var(--w-gold); border: 1px solid rgba(255, 207, 90, 0.35); background: rgba(255, 207, 90, 0.12); z-index: 1; }
.w-award-edition__mark svg { width: 30px; height: 30px; }
.w-award-edition__status { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(5, 8, 19, 0.72); border: 1px solid var(--w-line); color: var(--w-cyan); }
.w-award-edition__status.is-published { color: var(--w-gold); border-color: rgba(255, 207, 90, 0.35); }
.w-award-edition__status.is-closed { color: var(--w-muted); }
.w-award-edition__body { padding: 18px 18px 20px; }
.w-award-edition__body h3 { font-size: 21px; margin-bottom: 5px; }
.w-award-edition__body p { color: var(--w-muted); font-size: 13.5px; }
.w-award-edition__meta { display: flex; gap: 14px; margin: 18px 0; color: var(--w-dim); font-size: 12px; }
.w-award-edition__link { color: var(--w-cyan); font-size: 13.5px; font-weight: 800; }
.w-award-edition__link span { display: inline-block; margin-left: 4px; transition: transform var(--w-t); }
.w-award-edition:hover .w-award-edition__link span { transform: translateX(4px); }
.w-awards__back { margin-bottom: 20px; font-size: 13px; color: var(--w-muted); }
.w-awards__back a:hover { color: var(--w-cyan); }
.w-award-detail__hero { text-align: center; padding: 24px 0 42px; max-width: 720px; margin: 0 auto; }
.w-award-detail__icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; color: var(--w-gold); background: rgba(255, 207, 90, 0.12); border: 1px solid rgba(255, 207, 90, 0.3); }
.w-award-detail__icon svg { width: 27px; height: 27px; }
.w-award-detail__hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0; }
.w-award-detail__hero > p:not(.w-eyebrow) { max-width: 620px; margin: 0 auto; color: var(--w-muted); line-height: 1.6; }
.w-award-detail__dates { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--w-dim); font-size: 12.5px; }
.w-award-detail__dates svg { width: 15px; height: 15px; color: var(--w-cyan); }
.w-award-detail__dates span { color: var(--w-dim); }
.w-awards__demo-note { max-width: 600px; margin: 20px auto 0; padding: 10px 13px; border-radius: 10px; color: var(--w-gold); background: rgba(255, 207, 90, 0.08); border: 1px solid rgba(255, 207, 90, 0.22); font-size: 12px; }
.w-award-categories, .w-award-winners { display: flex; flex-direction: column; gap: 34px; }
.w-award-category { padding: 24px; border-radius: var(--w-radius-lg); background: rgba(11, 18, 38, 0.58); border: 1px solid var(--w-line-2); }
.w-award-category__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.w-award-category__head h2 { font-size: 23px; margin: 5px 0 4px; }
.w-award-category__head p { color: var(--w-muted); font-size: 13.5px; }
.w-award-category__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--w-cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.w-award-category__eyebrow svg { width: 15px; height: 15px; }
.w-award-category__count { color: var(--w-dim); font-size: 12px; white-space: nowrap; }
.w-award-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.w-award-card { --award-accent: var(--w-cyan); display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--w-surface); border: 1px solid var(--w-line-2); border-radius: var(--w-radius); transition: transform var(--w-t), border-color var(--w-t), box-shadow var(--w-t); }
.w-award-card:hover, .w-award-card.is-winner { transform: translateY(-3px); border-color: color-mix(in srgb, var(--award-accent) 58%, transparent); box-shadow: 0 20px 36px -24px color-mix(in srgb, var(--award-accent) 55%, transparent); }
.w-award-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--award-accent) 25%, transparent), transparent 70%), var(--w-bg-2); }
.w-award-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 19, 0.8)); pointer-events: none; }
.w-award-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; }
.w-award-card__rank { position: absolute; left: 12px; bottom: 11px; z-index: 1; color: var(--w-text); font-size: 12px; font-weight: 800; }
.w-award-card__winner { position: absolute; right: 10px; bottom: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: var(--w-gold); background: rgba(5, 8, 19, 0.74); border: 1px solid rgba(255, 207, 90, 0.3); font-size: 10.5px; font-weight: 800; }
.w-award-card__winner svg { width: 12px; height: 12px; }
.w-award-card__body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.w-award-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.w-award-card__status { color: var(--w-dim); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.w-award-card__percent { color: var(--award-accent); font-size: 13px; font-weight: 800; }
.w-award-card h3 { font-size: 18px; margin-bottom: 5px; }
.w-award-card__body > p { min-height: 38px; color: var(--w-muted); font-size: 12.5px; line-height: 1.5; }
.w-award-card__meter { height: 5px; margin: 15px 0 8px; overflow: hidden; border-radius: 999px; background: var(--w-surface-3); }
.w-award-card__meter span { display: block; height: 100%; border-radius: inherit; background: var(--award-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--award-accent) 60%, transparent); }
.w-award-card__stats { display: flex; justify-content: space-between; gap: 8px; color: var(--w-dim); font-size: 10.5px; }
.w-award-card__stats span:last-child { text-align: right; }
.w-award-card__vote { width: 100%; margin-top: 15px; padding: 10px 12px; font-size: 12.5px; }
.w-award-card__vote:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.w-award-card__message { margin-top: 9px; font-size: 11.5px; line-height: 1.4; }
.w-award-card__message.is-error { color: var(--w-danger); }
.w-award-card__message.is-ok { color: var(--w-good); }
.w-awards__results-link { display: flex; justify-content: center; margin-top: 32px; }
.w-award-winners .w-award-card__media { aspect-ratio: 1 / 1; }
.w-award-category--results { background: linear-gradient(135deg, rgba(255, 207, 90, 0.05), rgba(11, 18, 38, 0.72) 42%); }

/* -- /admin/premios ------------------------------------------------------- */
.w-awards-admin__setup { margin-bottom: 18px; }
.w-awards-admin__section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.w-awards-admin__section-title > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.w-awards-admin__section-title svg { width: 19px; height: 19px; color: var(--w-cyan); }
.w-awards-admin__section-title select, .w-awards-admin__status select { min-width: 190px; padding: 9px 12px; border-radius: 9px; color: var(--w-text); background: var(--w-bg-2); border: 1px solid var(--w-line-2); }
.w-awards-admin__form { display: flex; flex-direction: column; gap: 16px; }
.w-awards-admin__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.w-awards-admin__form label { display: flex; flex-direction: column; gap: 6px; color: var(--w-muted); font-size: 12px; font-weight: 700; }
.w-awards-admin__form label.is-wide { grid-column: 1 / -1; }
.w-awards-admin__form input, .w-awards-admin__form textarea, .w-awards-admin__form select, .w-awards-admin__inline-form input, .w-awards-admin__nominee-form input, .w-awards-admin__status select {
  width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--w-text); background: var(--w-bg-2); border: 1px solid var(--w-line-2); font: inherit; font-size: 13px; outline: none;
}
.w-awards-admin__form textarea { resize: vertical; line-height: 1.5; }
.w-awards-admin__form input:focus, .w-awards-admin__form textarea:focus, .w-awards-admin__form select:focus, .w-awards-admin__inline-form input:focus, .w-awards-admin__nominee-form input:focus { border-color: var(--w-cyan); box-shadow: 0 0 0 2px rgba(159, 245, 255, 0.08); }
.w-awards-admin__form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.w-awards-admin__status { display: flex; align-items: center; gap: 10px; padding-top: 16px; margin-top: 2px; border-top: 1px solid var(--w-line-2); }
.w-awards-admin__status .w-ap__btn { flex-shrink: 0; }
.w-awards-admin__delete-edition { display: flex; align-items: center; gap: 10px; padding-top: 16px; margin-top: 2px; border-top: 1px solid var(--w-line-2); }
.w-awards-admin__delete-edition > span { color: var(--w-dim); font-size: 12px; }
.w-awards-admin__delete-edition .w-ap__msg { flex-basis: 100%; }
.w-awards-admin__count { color: var(--w-dim); font-size: 12px; font-weight: 600; }
.w-awards-admin__inline-form, .w-awards-admin__nominee-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.w-awards-admin__inline-form input:nth-child(2) { flex: 1 1 180px; }
.w-awards-admin__inline-form input:nth-child(3) { flex: 2 1 260px; }
.w-awards-admin__inline-form input:nth-child(4) { flex: 0 1 100px; }
.w-awards-admin__inline-form .w-ap__btn, .w-awards-admin__nominee-form .w-ap__btn { flex-shrink: 0; }
.w-awards-admin__inline-form .w-ap__msg, .w-awards-admin__nominee-form .w-ap__msg { flex-basis: 100%; }
.w-awards-admin__category-list { display: flex; flex-direction: column; gap: 12px; }
.w-awards-admin__category { padding: 15px; border-radius: 12px; background: var(--w-bg-2); border: 1px solid var(--w-line-2); }
.w-awards-admin__category-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.w-awards-admin__category-head > div { display: flex; align-items: flex-start; gap: 10px; }
.w-awards-admin__category-head h3 { font-size: 15px; }
.w-awards-admin__category-head p { margin-top: 3px; color: var(--w-muted); font-size: 12px; }
.w-awards-admin__category-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.w-awards-admin__category-actions > span { color: var(--w-dim); font-size: 11px; white-space: nowrap; padding-top: 9px; }
.w-awards-admin__delete-form { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; }
.w-awards-admin__delete-form .w-ap__msg { flex-basis: 100%; max-width: 220px; }
.w-awards-admin__category-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--w-gold); background: rgba(255, 207, 90, 0.1); }
.w-awards-admin__category-icon svg { width: 16px; height: 16px; }
.w-awards-admin__nominees { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.w-awards-admin__nominee-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; background: var(--w-surface); }
.w-awards-admin__nominee-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.w-awards-admin__nominee-name { font-size: 13px; font-weight: 800; }
.w-awards-admin__nominee-desc { flex: 1; min-width: 0; overflow: hidden; color: var(--w-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.w-awards-admin__nominee-votes { color: var(--w-cyan); font-size: 11px; white-space: nowrap; }
.w-awards-admin__nominee-form { padding-top: 12px; margin-bottom: 0; border-top: 1px solid var(--w-line-2); }
.w-awards-admin__nominee-form input:nth-child(2) { flex: 1 1 160px; }
.w-awards-admin__nominee-form input:nth-child(3) { flex: 1 1 180px; }
.w-awards-admin__nominee-form input:nth-child(4) { flex: 1 1 190px; }
.w-awards-admin__color { display: grid; place-items: center; width: 42px; height: 39px; border-radius: 9px; background: var(--w-surface); border: 1px solid var(--w-line-2); cursor: pointer; }
.w-awards-admin__color input { width: 24px; height: 24px; padding: 0; border: 0; cursor: pointer; }

@media (max-width: 980px) {
  .w-award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-channel-layout { grid-template-columns: 1fr; }
  .w-channel-preview { position: static; }
}
@media (max-width: 720px) {
  .w-awards__edition-grid, .w-award-grid { grid-template-columns: 1fr; }
  .w-award-category { padding: 17px; }
  .w-award-category__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .w-awards-admin__form-grid { grid-template-columns: 1fr; }
  .w-awards-admin__form label.is-wide { grid-column: auto; }
  .w-awards-admin__section-title { align-items: flex-start; flex-direction: column; }
  .w-awards-admin__section-title select { width: 100%; }
  .w-awards-admin__status { align-items: stretch; flex-direction: column; }
  .w-awards-admin__status select { width: 100%; }
  .w-awards-admin__delete-edition { align-items: flex-start; flex-direction: column; }
  .w-awards-admin__category-actions { width: 100%; justify-content: space-between; }
  .w-channel-builder__grid, .w-channel-field__grid { grid-template-columns: 1fr; }
  .w-channel-mode__options { grid-template-columns: 1fr; }
  .w-channel-v2-builder__link { grid-template-columns: 1fr 1fr; }
  .w-channel-builder__actions { width: 100%; }
  .w-channel-builder__actions .w-ap__btn { flex: 1; }
}

/* ── Módulo Superman (Gestión Soberana de Permisos) ──────────── */
.w-superman { display: flex; flex-direction: column; gap: 20px; }

.w-superman__hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 23, 47, 0.95), rgba(7, 11, 24, 0.98));
  border: 1px solid rgba(83, 112, 255, 0.35);
  border-radius: var(--w-radius);
  padding: 24px 28px;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.5);
}

.w-superman__hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.w-superman__hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.w-superman__hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  border: 1px solid rgba(147, 197, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4);
}

.w-superman__hero-icon svg {
  width: 28px;
  height: 28px;
  color: #fbbf24;
}

.w-superman__hero-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: -0.01em;
}

.w-superman__hero-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.w-superman__hero-text p {
  color: var(--w-muted);
  font-size: 13.5px;
  margin: 6px 0 0;
  max-width: 680px;
  line-height: 1.45;
}

.w-superman__hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 12.5px;
  font-weight: 700;
}

.w-superman__hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Toolbar de Añadir Admin */
.w-superman__add-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.w-superman__box {
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2);
  border-radius: var(--w-radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.w-superman__box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--w-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.w-superman__box-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.w-superman__input {
  flex: 1;
  background: var(--w-bg-2);
  border: 1px solid var(--w-line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--w-text);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--w-t);
}

.w-superman__input:focus {
  border-color: var(--w-cyan);
}

.w-superman__select {
  width: 100%;
  background: var(--w-bg-2);
  border: 1px solid var(--w-line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--w-text);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
}

.w-superman__select:focus {
  border-color: var(--w-cyan);
}

/* Filtros y Búsqueda */
.w-superman__filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2);
  border-radius: var(--w-radius);
  flex-wrap: wrap;
}

.w-superman__filter-btns {
  display: flex;
  gap: 8px;
}

.w-superman__filter-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--w-muted);
  cursor: pointer;
  transition: all var(--w-t);
}

.w-superman__filter-btn:hover {
  color: var(--w-text);
  background: rgba(255, 255, 255, 0.05);
}

.w-superman__filter-btn.is-active {
  background: var(--w-primary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.w-superman__search {
  width: 260px;
  background: var(--w-bg-2);
  border: 1px solid var(--w-line);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--w-text);
  outline: none;
}

/* Lista de Administradores */
.w-superman__admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-superman__admin-card {
  background: linear-gradient(180deg, var(--w-surface-2), var(--w-surface));
  border: 1px solid var(--w-line-2);
  border-radius: var(--w-radius);
  overflow: hidden;
  transition: border-color var(--w-t), box-shadow var(--w-t);
}

.w-superman__admin-card:hover {
  border-color: var(--w-line);
}

.w-superman__admin-card.is-super {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px -8px rgba(245, 158, 11, 0.15);
}

.w-superman__admin-card.is-expanded {
  border-color: var(--w-cyan);
  box-shadow: 0 6px 26px -8px rgba(0, 217, 255, 0.18);
}

.w-superman__admin-row {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.w-superman__admin-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.w-superman__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--w-line-2);
  background: var(--w-surface-3);
}

.w-superman__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  border-color: rgba(96, 165, 250, 0.4);
}

.w-superman__admin-names {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.w-superman__admin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.w-superman__admin-title strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--w-text);
}

.w-superman__admin-handle {
  font-size: 12px;
  color: var(--w-muted);
}

.w-superman__badge-super {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 11px;
  font-weight: 700;
}

.w-superman__badge-delegate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  font-weight: 700;
}

.w-superman__admin-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--w-dim);
}

.w-superman__admin-meta code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--font-mono, monospace);
  color: var(--w-muted);
}

.w-superman__meta-highlight {
  color: #60a5fa;
  font-weight: 600;
}

.w-superman__admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Panel Desplegable de Permisos */
.w-superman__perm-panel {
  border-top: 1px solid var(--w-line-2);
  background: rgba(6, 10, 22, 0.5);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.w-superman__perm-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-superman__perm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.w-superman__perm-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--w-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-superman__perm-header p {
  font-size: 12px;
  color: var(--w-dim);
  margin: 2px 0 0;
}

.w-superman__perm-tools {
  display: flex;
  gap: 6px;
}

.w-superman__tool-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--w-line-2);
  background: var(--w-surface);
  color: var(--w-muted);
  transition: all var(--w-t);
}

.w-superman__tool-btn:hover {
  background: var(--w-surface-2);
  color: var(--w-text);
  border-color: var(--w-line);
}

.w-superman__toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.w-superman__toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--w-line-2);
  background: var(--w-surface);
  cursor: pointer;
  user-select: none;
  transition: all var(--w-t);
}

.w-superman__toggle-item:hover {
  border-color: var(--w-line);
}

.w-superman__toggle-item.is-active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 58, 138, 0.15);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.15);
}

.w-superman__toggle-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--w-primary);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.w-superman__toggle-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-superman__toggle-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.w-superman__toggle-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--w-text);
}

.w-superman__toggle-route {
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  color: var(--w-dim);
}

.w-superman__toggle-desc {
  font-size: 11.5px;
  color: var(--w-muted);
  line-height: 1.35;
}

.w-superman__perm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--w-line-2);
  flex-wrap: wrap;
}

.w-superman__last-update {
  font-size: 12px;
  color: var(--w-dim);
}

.w-superman__footer-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 860px) {
  .w-superman__add-grid { grid-template-columns: 1fr; }
  .w-superman__toggles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .w-awards__hero h1 { font-size: 34px; }
  .w-award-detail__dates { align-items: flex-start; flex-wrap: wrap; justify-content: center; }
  .w-awards-admin__nominee-row { align-items: flex-start; flex-wrap: wrap; }
  .w-awards-admin__nominee-desc { flex-basis: calc(100% - 20px); margin-left: 17px; }
}

/* Mobile layout: every surface keeps its content inside the viewport. */
@media (max-width: 640px) {
  .w-container, .w-container--narrow { width: calc(100% - 28px); }
  .w-section { padding: 34px 0; }
  .w-hero { padding: 48px 0 30px; }
  .w-hero__title { font-size: 34px; line-height: 1.1; letter-spacing: 0; }
  .w-hero__sub { padding: 0 4px; font-size: 15px; }
  .w-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .w-hero__cta .w-btn { width: 100%; max-width: 320px; margin: 0 auto; }
  .w-btn, .w-btn--lg { min-height: 44px; white-space: normal; }
  .w-gate { max-width: 100%; padding: 22px 18px; }
  .w-gate__body { font-size: 14px; }
  .w-footer__inner { align-items: flex-start; flex-direction: column; }
  .w-footer__links { flex-wrap: wrap; gap: 10px 16px; }

  .w-adm__side { padding: 10px 12px; }
  .w-adm__brand .w-brand__logo { max-width: 145px; }
  .w-adm__userinfo { max-width: 120px; }
  .w-adm__navlink { padding: 10px 11px; font-size: 13px; }
  .w-adm__main { padding: 18px 14px 40px; }
  .w-adm__head { flex-wrap: wrap; }
  .w-adm__head h1 { font-size: 22px; }
  .w-adm__bar { flex-direction: column; }
  .w-adm__filtros { min-height: 44px; justify-content: center; padding: 0 14px; }
  .w-ap__card { padding: 16px; }
  .w-ap__file { flex-wrap: wrap; }
  .w-channel-builder { padding: 12px; }
  .w-channel-layout { gap: 14px; }
  .w-channel-preview__screen { min-height: 0; padding: 14px 12px; }
  .w-channel-preview__message { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .w-channel-preview__avatar { width: 30px; height: 30px; }
  .w-channel-preview__fields:has(.w-channel-preview__field--inline) { grid-template-columns: 1fr; }
  .w-channel-v2-builder__link { grid-template-columns: 1fr; }

  .w-lbp__me { align-items: flex-start; padding: 14px; gap: 10px; }
  .w-lbp__me-big { margin-left: auto; font-size: 19px; }
  .w-lbp__pager { flex-wrap: wrap; }
  .w-prof__banner { height: 112px; }
  .w-prof__body { gap: 12px; padding: 0 16px 18px; }
  .w-prof__avatar { width: 84px; height: 84px; margin-top: -42px; }
  .w-prof__ident { min-width: 0; flex-basis: calc(100% - 100px); }
  .w-prof__actions { width: 100%; padding-bottom: 0; }
  .w-prof__actions .w-btn { flex: 1; }
  .w-prof__panel { padding: 16px; }
  .w-srv__infobar { align-items: flex-start; flex-wrap: wrap; }
  .w-srv__headline { min-width: 0; flex-basis: calc(100% - 64px); }
  .w-srv__join { width: 100%; justify-content: center; }
  .w-srv__section { padding: 18px; }
  .w-srv__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-srv__stat { padding: 16px 10px; }
  .w-srv__stat-value { font-size: 24px; }
}

@media (max-width: 420px) {
  .w-adm__userinfo { display: none; }
  .w-adm__navlink { padding-inline: 10px; }
  .w-lbp__row { gap: 9px; padding-inline: 12px; }
  .w-lbp__me-big { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .world *, .world *::before, .world *::after { animation: none !important; transition: none !important; }
}
