/* DDS Play — sistema visual basado en la norma gráfica de Digital Dreams Studio
   Negro puro, blanco, turquesa DDS. Titulares en grotesca bold apretada, texto en Segoe UI Light. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&display=swap');

:root {
  --black: #000000;
  --white: #FFFFFF;
  --teal: #00C3C9;
  --teal-dim: #00979C;
  --teal-ink: #003536;          /* texto sobre turquesa */
  --panel: #0A0D0E;             /* tarjetas */
  --panel-2: #0D1F22;           /* bloque destacado (CTA de la guía) */
  --line: #0E2B2D;              /* borde turquesa oscuro */
  --line-2: #1A3B3E;
  --text: #E9EEEE;
  --muted: #9AA6A7;
  --faint: #5E6B6C;
  --danger: #FF6B6B;
  --ok: #3DDC97;
  --warn: #F2C14E;

  --display: 'Archivo', 'Arial', 'Helvetica Neue', sans-serif;
  --body: 'Segoe UI', 'Segoe UI Variable Text', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 3px;
  --r: 6px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 300 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
::selection { background: var(--teal); color: var(--black); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--white); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
strong { font-weight: 600; color: var(--white); }
.teal { color: var(--teal); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C9D1D1; max-width: 62ch; }

/* Marcador de sección de la guía: línea turquesa + rótulo */
.mark { display: inline-flex; align-items: center; gap: 14px; color: var(--teal); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; }
.mark::before { content: ''; width: 36px; height: 1px; background: var(--teal); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #001B1C; }
.btn-primary:hover { background: #22D6DB; }
.btn-ghost { background: transparent; border-color: #2A3233; color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-outline { border-color: var(--teal); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(0,195,201,.1); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-danger { background: transparent; border-color: #4A2224; color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Navegación superior */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  transition: background .25s;
}
.nav.solid { background: rgba(0,0,0,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--teal); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }
.nav-logo span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--white); letter-spacing: -0.01em; }
.nav-logo span b { color: var(--teal); font-weight: 700; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 400; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom-color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px; }
.avatar { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--teal); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9rem; }
.menu { position: absolute; top: 64px; right: var(--gutter); min-width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.menu.open { display: block; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; color: var(--white); font-weight: 600; }
.menu .who small { color: var(--muted); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; background: none; border: 0; cursor: pointer; color: var(--text); font-size: .93rem; }
.menu a:hover, .menu button:hover { background: #111819; }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 400; }
.field small { color: var(--faint); font-size: .8rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: #050707; border: 1px solid #1D2627; border-radius: var(--r-sm);
  color: var(--white); font-weight: 400;
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,195,201,.15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; color: var(--text); font-size: .93rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.4em; margin: 4px 0 10px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--black); }
.auth-art .mosaic { position: absolute; inset: -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transform: rotate(-4deg) scale(1.08); opacity: .32; }
.auth-art .mosaic div { aspect-ratio: 16/10; background: var(--panel) center/cover no-repeat; border: 1px solid var(--line); }
.auth-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(0,0,0,.2), #000 75%); }
.auth-art .copy { position: absolute; left: var(--gutter); bottom: 64px; right: var(--gutter); z-index: 2; }
.auth-art .copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 64px); }
.auth-form .logo { width: 150px; margin-bottom: 40px; }
.auth-form h2 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-form .sub { color: var(--muted); margin-bottom: 28px; }
.auth-form .alt { margin-top: 22px; color: var(--muted); font-size: .93rem; }
.auth-form .alt a { color: var(--teal); text-decoration: none; }

/* ---------- Landing ---------- */
.hero-land { min-height: 100vh; display: grid; align-items: center; position: relative; overflow: hidden; padding: 110px 0 60px; }
.hero-land .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-land h1 { margin: 26px 0 26px; font-size: clamp(2.2rem, 4.3vw, 3.9rem); }
.hero-land h1 span { display: block; color: var(--teal); }
.hero-land .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.chip-status { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 8px 16px; font-size: .78rem; letter-spacing: .2em; color: var(--teal); text-transform: uppercase; }
.chip-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* Pila de "pantallas" del hero: el elemento memorable de la landing */
.stack { position: relative; aspect-ratio: 4/3.4; }
.stack .screen { position: absolute; width: 74%; aspect-ratio: 16/10; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel) center/cover no-repeat; box-shadow: 0 30px 60px rgba(0,0,0,.7); overflow: hidden; }
.stack .screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform-origin: left; transform: scaleX(var(--p, .4)); }
.stack .s1 { left: 0; top: 4%; --p: .62; }
.stack .s2 { right: 0; top: 30%; --p: .35; z-index: 2; }
.stack .s3 { left: 10%; bottom: 0; width: 60%; --p: .88; z-index: 3; }
.stack .label { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.78); padding: 6px 10px; font-size: .8rem; color: var(--white); font-weight: 400; border-left: 2px solid var(--teal); }

.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid #0B1617; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 30px 28px 10px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.steps li:last-child { border-right: 0; }
.steps .n { font-family: var(--display); color: var(--teal); font-size: 1.6rem; font-weight: 700; margin-bottom: 18px; display: block; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
ol.steps { padding: 0; margin: 0; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.hl { border-color: var(--teal); background: linear-gradient(180deg, #071617 0%, var(--panel) 50%); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--teal); color: #001B1C; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-sm); }
.plan h3 { font-size: 1.5rem; margin-bottom: 8px; }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--white); margin: 22px 0 4px; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 300; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; font-size: .95rem; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.plan .sims { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 24px; font-size: .88rem; color: var(--muted); }
.plan .sims b { display: block; color: var(--text); font-weight: 600; margin-bottom: 6px; font-size: .85rem; }
.plan .btn { margin-top: auto; }

.cta-band { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: clamp(72px, 9vw, 120px) 0; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 20px; }
.cta-band p { margin: 0 auto 32px; color: #C9D1D1; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { padding: 56px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer img { width: 120px; margin: 0 auto 18px; }

/* ---------- Catálogo ---------- */
.billboard { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.billboard .bg { position: absolute; inset: 0; background: var(--panel) center/cover no-repeat; }
.billboard .bg.poster { background: radial-gradient(ellipse at 75% 40%, #0D2A2C 0%, #000 65%); }
.billboard .bg.poster::after { content: ''; position: absolute; right: 6%; top: 50%; width: min(44vw, 560px); aspect-ratio: 731/544; transform: translateY(-50%); background: url('/img/brand/isotipo.png') center/contain no-repeat; opacity: .07; }
.billboard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.82) 32%, rgba(0,0,0,.15) 70%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 40%); }
.billboard .content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); max-width: 760px; }
.billboard h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 10px 0 14px; }
.billboard .tagline { color: var(--teal); font-size: 1.15rem; font-weight: 400; }
.billboard .desc { margin: 18px 0 30px; max-width: 54ch; color: #D5DBDB; font-size: 1.05rem; }
.billboard .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .pill { border: 1px solid var(--line-2); color: var(--text); padding: 2px 10px; border-radius: var(--r-sm); font-size: .8rem; }

.rows { position: relative; z-index: 3; margin-top: -40px; padding-bottom: 80px; }
.row { margin-bottom: 44px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 14px; }
.row-head h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.row-head .count { color: var(--faint); font-size: .85rem; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 14px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-btn { position: absolute; top: 6px; bottom: 14px; width: 44px; border: 0; background: rgba(0,0,0,.7); color: var(--white); cursor: pointer; z-index: 4; display: none; font-size: 1.6rem; }
.rail-btn.l { left: 0; } .rail-btn.r { right: 0; }
.rail-wrap:hover .rail-btn.show { display: block; }

.card { scroll-snap-align: start; position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; padding: 0; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, transform .2s; }
.card:hover, .card:focus-visible { border-color: var(--teal); transform: translateY(-3px); }
.thumb { position: relative; aspect-ratio: 16/9; background: #050909 center/cover no-repeat; overflow: hidden; }
.thumb.poster { background: linear-gradient(135deg, #0B2224 0%, #020404 70%); display: flex; align-items: flex-end; padding: 16px; }
.thumb.poster::before { content: ''; position: absolute; right: -8%; top: -10%; width: 62%; aspect-ratio: 731/544; background: url('/img/brand/isotipo.png') center/contain no-repeat; opacity: .08; }
.thumb.poster b { position: relative; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.02em; color: var(--white); max-width: 80%; }
.thumb .state { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.8); padding: 4px 9px; border-radius: var(--r-sm); font-size: .75rem; color: var(--text); font-weight: 400; }
.thumb .state svg { width: 13px; height: 13px; }
.thumb .state.lock { color: var(--muted); }
.thumb .state.soon { color: var(--warn); }
.card.locked .thumb { filter: saturate(.25) brightness(.65); }
.card-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.card-body h3 { font-size: 1.05rem; }
.card-body p { color: var(--muted); font-size: .88rem; }
.card .access { height: 2px; background: var(--teal); }
.card.locked .access { background: var(--line-2); }

/* Modal de detalle */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(0,0,0,.78); overflow-y: auto; }
.modal.open { display: flex; }
.dialog { width: 100%; max-width: 860px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.dialog .media { position: relative; aspect-ratio: 16/8; background: #050909 center/cover no-repeat; }
.dialog .media.poster { aspect-ratio: 16/5; background: radial-gradient(ellipse at 70% 40%, #0D2A2C, #000 70%); }
.dialog .media.poster::before { content: ''; position: absolute; right: 6%; top: 12%; height: 76%; aspect-ratio: 731/544; background: url('/img/brand/isotipo.png') center/contain no-repeat; opacity: .1; }
.dialog .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, rgba(10,13,14,0) 55%); }
.dialog .close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: var(--white); font-size: 1.4rem; cursor: pointer; }
.dialog .inner { padding: 0 clamp(20px, 4vw, 40px) 36px; margin-top: -60px; position: relative; z-index: 2; }
.dialog h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.dialog .tagline { color: var(--teal); margin-bottom: 18px; }
.dialog .desc { margin: 20px 0 26px; color: #D5DBDB; max-width: 64ch; }
.dialog .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice { border: 1px solid var(--line-2); background: #071213; padding: 14px 16px; border-radius: var(--r-sm); color: var(--text); font-size: .93rem; margin-bottom: 20px; }
.notice b { color: var(--teal); font-weight: 600; }

.small-dialog { max-width: 520px; }
.small-dialog .inner { margin-top: 0; padding-top: 32px; }

.empty { padding: 120px var(--gutter); text-align: center; color: var(--muted); }
.empty h2 { margin-bottom: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--panel-2); border: 1px solid var(--teal); color: var(--white); padding: 12px 20px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; font-weight: 400; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--danger); }

/* Página del reproductor (modo incrustado) */
body.player { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.player-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #000; }
.player-title { font-family: var(--display); font-weight: 700; color: var(--white); }
.player-logo { height: 38px; margin-left: auto; }
body.player iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #000; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; text-decoration: none; }
.side .logo img { height: 52px; }
.side .logo span { font-family: var(--display); font-weight: 700; color: var(--white); }
.side nav { display: grid; gap: 2px; }
.side nav button { text-align: left; background: none; border: 0; border-left: 2px solid transparent; padding: 10px 12px; color: var(--muted); cursor: pointer; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.side nav button:hover { color: var(--white); }
.side nav button.active { color: var(--white); border-left-color: var(--teal); background: #071213; }
.side nav .badge { background: var(--teal); color: #001B1C; font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.side .bottom { margin-top: auto; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.side .bottom a, .side .bottom button { color: var(--muted); text-decoration: none; padding: 8px 12px; font-size: .9rem; background: none; border: 0; text-align: left; cursor: pointer; }
.side .bottom a:hover, .side .bottom button:hover { color: var(--white); }

.main { padding: 36px clamp(16px, 3vw, 44px) 80px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 2rem; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.page-head .tools { display: flex; gap: 10px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 26px; }
.kpi { background: var(--panel); padding: 20px 22px; }
.kpi b { display: block; font-family: var(--display); font-size: 2rem; color: var(--white); font-weight: 700; letter-spacing: -0.02em; }
.kpi span { color: var(--muted); font-size: .88rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 22px; }
.panel h3 { margin-bottom: 16px; font-size: 1.05rem; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars div { flex: 1; background: var(--teal); min-height: 2px; border-radius: 1px 1px 0 0; opacity: .85; }
.bars div:hover { opacity: 1; }
.bars-x { display: flex; justify-content: space-between; color: var(--faint); font-size: .75rem; margin-top: 8px; }
.toplist { display: grid; gap: 12px; }
.toplist .it { display: grid; gap: 5px; font-size: .9rem; }
.toplist .it div { display: flex; justify-content: space-between; }
.toplist .track { height: 4px; background: #111A1B; border-radius: 2px; }
.toplist .track i { display: block; height: 100%; background: var(--teal); border-radius: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #070A0A; }
td { padding: 12px 14px; border-bottom: 1px solid #0F1A1B; vertical-align: middle; font-weight: 400; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #0C1314; }
td .sub { display: block; color: var(--faint); font-size: .82rem; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 6px; }
.thumb-sm { width: 96px; aspect-ratio: 16/9; border-radius: var(--r-sm); background: #050909 center/cover; border: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.ok::before { background: var(--ok); }
.status.warn::before { background: var(--warn); }
.status.off::before { background: var(--danger); }
.code { font-family: Consolas, 'Cascadia Mono', monospace; background: #071213; border: 1px solid var(--line-2); padding: 2px 8px; border-radius: var(--r-sm); color: var(--teal); font-size: .85rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 200px; min-height: 40px; }

.form-dialog { max-width: 720px; }
.form-dialog .inner { margin-top: 0; padding-top: 28px; }
.form-dialog h2 { font-size: 1.6rem; margin-bottom: 22px; }
.form-dialog .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.img-pick { display: flex; gap: 14px; align-items: center; }
.img-pick .thumb-sm { width: 140px; flex: none; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid #1D2627; border-radius: var(--r-sm); padding: 14px; max-height: 240px; overflow-y: auto; }
.secret { margin-top: 10px; }

@media (max-width: 960px) {
  .hero-land .grid { grid-template-columns: 1fr; }
  .stack { max-width: 560px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding-bottom: 24px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .two { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 14px; }
  .side nav { display: flex; overflow-x: auto; }
  .side nav button { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .side nav button.active { border-bottom-color: var(--teal); }
  .side .bottom { flex-direction: row; display: flex; }
}
@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav-links { display: none; }
  .nav-logo span { display: none; }
  .row2, .checklist { grid-template-columns: 1fr; }
  .billboard { min-height: 78vh; }
  .billboard::after { background: linear-gradient(0deg, #000 10%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.3)); }
  .rail { grid-auto-columns: 78vw; }
  .nav-right .hide-sm { display: none; }
  .chip-status { letter-spacing: .12em; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
