/* =====================================================================
   ARES — SISTEMA (portal de miembros)
   Estética de consola: fondo sólido con retícula, paneles planos,
   acento dorado. Distinto a propósito del sitio público.
   ===================================================================== */

body.os {
  --os-bg: #05080a;
  --os-panel: #0b1215;
  --os-panel-2: #0f181c;
  --os-line: rgba(255, 255, 255, .08);
  --os-line-2: rgba(255, 255, 255, .14);
  --os-bar-h: 64px;
  background: var(--os-bg);
  min-height: 100vh;
}

.os-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(208, 16, 31, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 110%, rgba(227, 177, 96, .08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 48px 48px;
}

/* ---------- Paneles en modo consola (esquinas HUD) ---------- */
body.os .panel { border-radius: 10px; }
body.os .p-liquid, body.os .p-glass {
  background: linear-gradient(180deg, rgba(17, 26, 30, .92), rgba(10, 16, 19, .94));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--os-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px rgba(0, 0, 0, .4);
}
body.os .p-liquid::before {
  padding: 0; inset: 0 0 auto 0; height: 1px; border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, rgba(227, 177, 96, .8), rgba(227, 177, 96, 0) 55%);
  -webkit-mask: none; mask: none;
}
body.os .p-liquid::after {
  display: block; inset: -1px; border-radius: 10px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--acento), var(--acento)) top left / 14px 2px no-repeat,
    linear-gradient(var(--acento), var(--acento)) top left / 2px 14px no-repeat,
    linear-gradient(rgba(227, 177, 96, .5), rgba(227, 177, 96, .5)) bottom right / 14px 2px no-repeat,
    linear-gradient(rgba(227, 177, 96, .5), rgba(227, 177, 96, .5)) bottom right / 2px 14px no-repeat;
}
body.os .card { padding: 24px; gap: 18px; }
body.os .card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: .01em; }
body.os .card h2 svg { color: var(--acento); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-3); text-decoration: none; }
.link-more:hover { color: var(--oro-claro); }
body.os .btn svg { flex: none; }
body.os .btn { gap: 8px; }

/* ---------- Barra superior ---------- */
.os-bar {
  position: sticky; top: 0; z-index: 20; height: var(--os-bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px 0 22px;
  background: rgba(5, 8, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--os-line);
}
.os-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 177, 96, .55) 20%, rgba(208, 16, 31, .5) 80%, transparent); }
.os-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.os-brand img { width: 34px; height: 36px; object-fit: contain; }
.os-brand .disp { font-size: 19px; font-weight: 700; letter-spacing: .3em; color: var(--acento); }
.os-tag { font-size: 10px; letter-spacing: .24em; padding: 4px 8px; border-radius: 4px; color: #160904; background: var(--acento); }
.os-bar-mid { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .12em; color: var(--texto-4); }
.os-clock { color: var(--texto-3); padding: 6px 10px; border: 1px solid var(--os-line); border-radius: 4px; }
.os-bar-right { display: flex; align-items: center; gap: 14px; }
.os-link { font-size: 14px; color: var(--texto-3); text-decoration: none; padding: 10px 4px; }
.os-link:hover { color: #fff; }
#bar-user .user-chip { padding: 4px 12px 4px 4px; }

/* ---------- Estructura: de lado a lado ---------- */
.os-shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start;
  min-height: calc(100vh - var(--os-bar-h));
}
.os-side {
  position: sticky; top: var(--os-bar-h); height: calc(100vh - var(--os-bar-h)); overflow-y: auto;
  padding: 18px 14px; border-radius: 0;
  background: linear-gradient(180deg, rgba(12, 19, 22, .96), rgba(7, 11, 13, .96));
  border-right: 1px solid var(--os-line);
}
.os-side .side-user { padding: 8px 8px 18px; }
.side-label { display: block; font-size: 10px; letter-spacing: .26em; color: var(--texto-5); padding: 16px 14px 6px; }
.os-side a { border-radius: 6px; position: relative; transition: background .15s, color .15s; }
.os-side a[aria-current="page"] { background: linear-gradient(90deg, rgba(227, 177, 96, .2), rgba(227, 177, 96, .02)); box-shadow: inset 3px 0 0 var(--acento); color: var(--oro-claro); }
.os-side a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(227, 177, 96, .7)); }
.os-side .logout { margin-top: 14px; }
body.os .view { padding: 28px clamp(18px, 2.2vw, 40px) 72px; gap: 22px; }
body.os .view-head h1 { font-size: clamp(32px, 3.4vw, 48px); }

@media (max-width: 860px) {
  .os-shell { grid-template-columns: 1fr; }
  .os-side { position: sticky; top: var(--os-bar-h); z-index: 15; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--os-line); }
  .os-side .side-label, .os-side .side-user { display: none; }
  .os-bar-mid .os-clock, .os-link { display: none; }
  body.os .view { padding: 18px 14px 56px; }
}
@media (max-width: 520px) {
  .os-bar-mid { display: none; }
  #bar-user .user-chip span { display: none; }
}

/* ---------- Discord ---------- */
.btn-lg { min-height: 56px; font-size: 16px; padding: 0 28px; }
.dc-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .4); }
.dc-card img { width: 44px; height: 44px; border-radius: 50%; }

/* =====================================================================
   PUERTA DE ACCESO (/acceso)
   ===================================================================== */
.gate {
  position: relative; z-index: 1; min-height: calc(100vh - var(--os-bar-h));
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 520px); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: 48px clamp(16px, 5vw, 96px);
  max-width: 1600px; margin: 0 auto;
}
.gate-intro { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.gate-intro h1 { margin: 0; font-size: clamp(40px, 5.5vw, 76px); line-height: .98; font-weight: 700; color: var(--texto); }
.gate-intro p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--texto-3); }
.boot { margin: 0; padding: 18px 20px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid var(--os-line); font: 13px/1.9 "JetBrains Mono", monospace; color: var(--texto-4); list-style: none; max-width: 560px; }
.boot li { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; overflow: hidden; }
.boot li span:first-child::before { content: "› "; color: var(--acento); }
.boot .ok { color: #7fe3a0; }
.boot .warn { color: var(--oro-claro); }
.boot .bad { color: #ff8f97; }
.gate-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.gate-feats div { padding: 14px; border-radius: 12px; border: 1px solid var(--os-line); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 6px; }
.gate-feats b { font-size: 14px; color: var(--texto); }
.gate-feats span { font-size: 13px; line-height: 1.45; color: var(--texto-4); }

.gate-card { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.gate-card h2 { margin: 0; font-size: 30px; font-weight: 700; }
.or { display: flex; align-items: center; gap: 14px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .2em; color: var(--texto-5); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--os-line-2); }
.gate-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.gate-links button, .gate-links a { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--texto-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gate-links button:hover, .gate-links a:hover { color: #fff; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: rgba(208, 16, 31, .14); border: 1px solid rgba(208, 16, 31, .45); color: #FFC9CD; }
.alert.info { background: rgba(227, 177, 96, .1); border-color: rgba(227, 177, 96, .4); color: var(--oro-claro); }

@media (max-width: 980px) {
  .gate { grid-template-columns: 1fr; padding-top: 28px; }
  .gate-intro p, .boot { max-width: none; }
}
@media (max-width: 560px) { .gate-feats { grid-template-columns: 1fr; } .boot li span:last-child { display: none; } }

/* =====================================================================
   COMPONENTES DEL SISTEMA
   ===================================================================== */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span4 { grid-column: span 4; } .span6 { grid-column: span 6; } .span8 { grid-column: span 8; } .span12 { grid-column: 1 / -1; }
@media (max-width: 1280px) { .span4, .span8 { grid-column: 1 / -1; } }
@media (max-width: 900px) { .span6 { grid-column: 1 / -1; } }

/* ---------- Banner del puente de mando ---------- */
.deck {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 32px; align-items: end;
  min-height: 380px; padding: clamp(26px, 3vw, 44px); border-radius: 12px;
  border: 1px solid rgba(227, 177, 96, .25);
  background: #0a0f12 var(--img, none) center 60% / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.deck::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, .96) 0%, rgba(5, 8, 10, .82) 38%, rgba(5, 8, 10, .25) 70%, rgba(5, 8, 10, .55) 100%),
    linear-gradient(0deg, rgba(5, 8, 10, .9), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
}
.deck::after {
  content: ""; position: absolute; inset: 14px; border-radius: 6px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--acento), var(--acento)) top left / 28px 2px no-repeat,
    linear-gradient(var(--acento), var(--acento)) top left / 2px 28px no-repeat,
    linear-gradient(var(--acento), var(--acento)) top right / 28px 2px no-repeat,
    linear-gradient(var(--acento), var(--acento)) top right / 2px 28px no-repeat,
    linear-gradient(var(--acento), var(--acento)) bottom left / 28px 2px no-repeat,
    linear-gradient(var(--acento), var(--acento)) bottom left / 2px 28px no-repeat;
  opacity: .7;
}
.deck-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; z-index: 2; }
.deck-info .kicker { display: inline-flex; align-items: center; color: var(--oro-claro); }
.deck-info h1 { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: .98; font-weight: 700; color: var(--texto); text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.deck-info .actions { margin-top: 6px; }
.deck-next {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: 10px; background: rgba(5, 8, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12); border-top: 2px solid var(--tc, var(--acento));
}
.deck-next h2 { margin: 0; font-size: 26px; line-height: 1.1; }
.deck-next .btn { align-self: flex-start; }
.deck-ship { position: absolute; right: 26px; top: 22px; z-index: 2; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
@media (max-width: 1100px) { .deck { grid-template-columns: 1fr; min-height: 0; } .deck-ship { display: none; } }

/* ---------- Cuenta atrás ---------- */
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cd div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 6px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .08); }
.cd b { font: 600 20px/1 "Chakra Petch", sans-serif; color: var(--oro-claro); font-variant-numeric: tabular-nums; }
.cd span { font: 500 9px "JetBrains Mono", monospace; letter-spacing: .18em; color: var(--texto-5); }
.cd.big { gap: 8px; }
.cd.big div { padding: 12px 4px; }
.cd.big b { font-size: 34px; }
.cd.go b { color: #7fe3a0; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi2 { display: flex; align-items: center; gap: 16px; padding: 20px; min-width: 0; }
.kpi2-ic { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; color: var(--acento); background: radial-gradient(circle at 30% 20%, rgba(227, 177, 96, .25), rgba(227, 177, 96, .05)); border: 1px solid rgba(227, 177, 96, .3); box-shadow: 0 0 24px rgba(227, 177, 96, .12); }
.kpi2-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi2-body .big-num { font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi2-sub { font-size: 12px; color: var(--texto-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .kpis, .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi2 { padding: 14px; gap: 12px; } .kpi2-ic { display: none; } .kpi2-body .big-num { font-size: 22px; } .kpi2-body .stat-l { font-size: 11px; } }

/* ---------- Barra de herramientas y segmentos ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(0, 0, 0, .4); border: 1px solid var(--os-line); }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 6px; background: none; color: var(--texto-3); font: 600 14px Inter, sans-serif; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--acento); color: #160904; }
.seg button:not([aria-pressed="true"]):hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Tarjeta de operación ---------- */
.opx {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 300px; gap: 22px; align-items: stretch;
  padding: 18px; border-radius: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 10%, transparent), rgba(255, 255, 255, .015) 40%);
  border: 1px solid rgba(255, 255, 255, .09); border-left: 3px solid var(--tc);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.opx:hover { border-color: color-mix(in srgb, var(--tc) 55%, transparent); border-left-color: var(--tc); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.opx.joined { box-shadow: inset 0 0 0 1px rgba(127, 227, 160, .25); }
.opx.closed { opacity: .65; }
.opx-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .07); padding: 10px 4px; }
.opx-date span { font-size: 11px; letter-spacing: .16em; color: var(--texto-4); }
.opx-date b { font: 700 36px/1 "Chakra Petch", sans-serif; color: var(--texto); }
.opx-date em { font-style: normal; font-size: 13px; color: var(--tc); margin-top: 4px; }
.opx-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; justify-content: center; }
.opx-main h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.opx-main p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--texto-3); max-width: 900px; }
.opx-type { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.opx-crew { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.opx-crew .roster { margin: 0 10px 0 0; }
.opx-crew .roster .avatar { width: 30px; height: 30px; }
.role-chip { font-size: 12px; padding: 3px 9px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: var(--texto-2); border: 1px solid rgba(255, 255, 255, .1); }
.you { font-size: 12px; font-weight: 600; color: #9BE7B7; padding: 3px 9px; border-radius: 4px; background: rgba(63, 208, 122, .12); border: 1px solid rgba(63, 208, 122, .35); }
.opx-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .07); }
.opx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.opx-actions .role-sel { min-height: 38px; padding: 0 10px; font-size: 13px; width: auto; flex: 1 1 110px; }
body.os .icon-btn { width: 38px; height: 38px; border-radius: 8px; text-decoration: none; }
body.os .icon-btn:hover { color: var(--oro-claro); border-color: rgba(227, 177, 96, .6); }
body.os .icon-btn.danger:hover { color: #FFB3B8; border-color: rgba(208, 16, 31, .7); background: rgba(208, 16, 31, .2); }
.opx.compact { grid-template-columns: 76px minmax(0, 1fr) 230px; gap: 16px; padding: 14px; }
.opx.compact .opx-date b { font-size: 28px; }
.opx.compact .opx-main h3 { font-size: 19px; }
.opx.compact .opx-side { padding-left: 16px; }
@media (max-width: 1100px) {
  .opx, .opx.compact { grid-template-columns: 76px minmax(0, 1fr); }
  .opx-side, .opx.compact .opx-side { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
}
@media (max-width: 560px) { .opx-date b { font-size: 26px; } .opx-main h3 { font-size: 19px; } .opx, .opx.compact { gap: 12px; padding: 12px; } }

/* Plazas */
.slots { display: flex; flex-direction: column; gap: 6px; }
.slots-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--texto-3); }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--tc, var(--acento)), var(--oro-claro)); box-shadow: 0 0 12px var(--tc, var(--acento)); }

/* ---------- Estado del 'verse ---------- */
.sys-list { display: flex; flex-direction: column; gap: 8px; }
body.os .sys { border-radius: 8px; padding: 12px 14px; }
.patch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.patch-row a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; text-decoration: none; background: rgba(227, 177, 96, .08); border: 1px solid rgba(227, 177, 96, .3); }
.patch-row .mono { font-size: 10px; letter-spacing: .2em; color: var(--texto-4); }
.patch-row b { font: 700 22px "Chakra Petch", sans-serif; color: var(--oro-claro); }
.patch-row small { font-size: 12px; color: var(--texto-3); }

/* ---------- Tira de hangar ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.strip-ship {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 130px; padding: 12px;
  border-radius: 8px; overflow: hidden; text-decoration: none; isolation: isolate;
  background: #0b1114 center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .1); transition: transform .2s, border-color .2s;
}
.strip-ship::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 10, .92)); }
.strip-ship:hover { transform: translateY(-3px); border-color: rgba(227, 177, 96, .6); }
.strip-ship b { font-size: 15px; color: #fff; }
.strip-ship .mono { font-size: 10px; letter-spacing: .18em; color: var(--oro-claro); }

/* ---------- Comm-Link ---------- */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; padding: 6px; border-radius: 8px; transition: background .15s; }
.news-row:hover { background: rgba(255, 255, 255, .04); }
.news-row .thumb { height: 58px; border-radius: 6px; background: #111 center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .1); }
.news-row b { display: block; font-size: 14px; line-height: 1.3; color: var(--texto); }
.news-row small { font-size: 11px; color: var(--oro-claro); letter-spacing: .1em; }

/* ---------- Tripulación ---------- */
.crew-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.crew-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 8px; text-decoration: none; text-align: center; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .2s, transform .2s; }
.crew-mini:hover { border-color: rgba(227, 177, 96, .5); transform: translateY(-2px); }
.crew-mini .avatar { border: 2px solid rgba(227, 177, 96, .6); box-shadow: 0 0 18px rgba(227, 177, 96, .2); }
.crew-mini b { font-size: 14px; color: var(--texto); word-break: break-all; }
.crew-mini .mono { font-size: 10px; letter-spacing: .14em; color: var(--texto-4); }

.crewx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.crewx {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px 0; text-align: center; text-decoration: none; overflow: hidden;
  border-radius: 10px; background: linear-gradient(180deg, rgba(227, 177, 96, .08), rgba(10, 16, 19, .9) 45%); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .2s, transform .2s;
}
.crewx:hover { border-color: rgba(227, 177, 96, .55); transform: translateY(-3px); }
.crewx .avatar { border: 2px solid var(--acento); box-shadow: 0 0 0 4px rgba(227, 177, 96, .12), 0 0 30px rgba(227, 177, 96, .25); }
.crewx > b { font-size: 17px; color: var(--texto); word-break: break-all; }
.crewx-rank { font-size: 11px; letter-spacing: .16em; color: var(--oro-claro); }
.crewx-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 22px; }
.crewx-foot { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 12px 4px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: var(--texto-4); }
.crewx-foot span { display: inline-flex; align-items: center; gap: 6px; }
.crewx-ok { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #0b1f14; background: #7fe3a0; box-shadow: 0 0 14px rgba(127, 227, 160, .5); }
.crewx.hidden-m { opacity: .55; padding-bottom: 20px; }

/* ---------- Naves ---------- */
.shipx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shipx { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, rgba(17, 26, 30, .95), rgba(8, 13, 15, .95)); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .2s, transform .2s, box-shadow .2s; }
.shipx:hover { border-color: rgba(227, 177, 96, .55); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shipx-pic { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 20px) #0b1114; background-size: cover; background-position: center; }
.shipx-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 13, 15, .95)); }
.shipx-size { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 10px; letter-spacing: .18em; padding: 4px 8px; border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .2); }
.shipx-count { position: absolute; right: 12px; top: 12px; z-index: 1; font: 700 14px "Chakra Petch", sans-serif; padding: 4px 10px; border-radius: 4px; color: #160904; background: var(--acento); }
.shipx-pic .icon-btn { position: absolute; right: 10px; top: 10px; z-index: 2; }
.shipx-body { display: flex; flex-direction: column; gap: 4px; padding: 4px 16px 16px; margin-top: -18px; position: relative; z-index: 1; }
.shipx-maker { font-size: 10px; letter-spacing: .18em; color: var(--oro-claro); }
.shipx-body > b { font-size: 22px; color: var(--texto); line-height: 1.15; }
.shipx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.shipx-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .06); }
.shipx-stats .mono { font-size: 9px; letter-spacing: .18em; color: var(--texto-5); }
.shipx-stats b { font: 600 15px "Chakra Petch", sans-serif; color: var(--texto); }
.shipx-owners { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shipx-owners a, .shipx-owners span { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: var(--texto-2); text-decoration: none; }
.shipx-owners a:hover { color: var(--oro-claro); }

/* Composición de flota */
.stack { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 2px; }
.stack i { display: block; min-width: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--texto-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend b { color: var(--texto); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbars > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) 30px; gap: 12px; align-items: center; font-size: 13px; color: var(--texto-3); }
.hbars b { text-align: right; color: var(--texto); }
.hbars .bar { height: 8px; }

/* Hangar: buscador */
.add-ship { overflow: visible; z-index: 5; }
