:root {
  color-scheme: dark;
  --bg0: #070a10;
  --bg1: #0d121c;
  --card: rgba(18, 26, 40, 0.72);
  --card-b: rgba(255, 255, 255, 0.08);
  --text: #eef2f8;
  --muted: #8b9bb8;
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --ok: #4ade80;
  --radius: 20px;
  --font: "Outfit", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-screen[hidden],
#cliente-app[hidden] {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(12px);
}

.auth-shell {
  width: min(96vw, 980px);
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.06) inset;
}

@media (min-width: 820px) {
  .auth-shell {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: min(88vh, 640px);
  }
}

.auth-brand {
  position: relative;
  display: none;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(167, 139, 250, 0.16), transparent 50%),
    linear-gradient(160deg, #0f1728 0%, #0a1019 55%, #070a10 100%);
}

@media (min-width: 820px) {
  .auth-brand {
    display: flex;
    align-items: center;
  }
}

.auth-brand__glow {
  position: absolute;
  inset: 10% 5% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(40px);
  pointer-events: none;
}

.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 22rem;
}

.auth-brand__mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #0f172a;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}

.auth-brand__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.9);
}

.auth-brand__name {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-brand__tld {
  color: var(--accent);
}

.auth-brand__lead {
  margin: 0 0 1.25rem;
  color: #b8c5de;
  font-size: 0.98rem;
  line-height: 1.55;
}

.auth-brand__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.auth-brand__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-brand__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: rgba(12, 18, 28, 0.96);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.auth-card__head {
  margin: 0;
}

.auth-card__brand-mobile {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-card__brand-mobile span {
  color: var(--accent);
}

@media (min-width: 820px) {
  .auth-card__brand-mobile {
    display: none;
  }
}

.auth-card__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.auth-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-fields {
  display: grid;
  gap: 0.85rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #b8c5de;
}

.auth-footer {
  margin: 1.25rem auto 0;
  max-width: 400px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-footer strong {
  color: #9ed8e8;
  font-weight: 600;
}

.auth-card input:not(.auth-pass-input) {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c1017;
  color: var(--text);
  padding: 0.55rem 0.65rem;
}

.auth-pass-wrap {
  --pass-bg: #0c1017;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2)), var(--pass-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.auth-pass-wrap:focus-within {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-pass-wrap.is-revealed {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.15),
    0 0 0 3px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-pass-wrap .auth-pass-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.auth-pass-wrap .auth-pass-input:focus {
  outline: none;
}

.auth-pass-wrap.is-revealed .auth-pass-input {
  letter-spacing: 0.04em;
}

.auth-pass-toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.65rem 0.4rem 0.55rem;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(167, 139, 250, 0.12));
  color: #c8f4fc;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.3s ease,
    color 0.25s ease,
    box-shadow 0.3s ease;
}

.auth-pass-toggle__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transform: translateX(-100%);
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.auth-pass-toggle:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.25);
}

.auth-pass-toggle:active {
  transform: scale(0.97);
}

.auth-pass-toggle:hover .auth-pass-toggle__glow {
  opacity: 1;
  transform: translateX(0);
}

.auth-pass-toggle.is-visible {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(14, 165, 184, 0.25));
  color: #fff;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.auth-pass-toggle__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.auth-eye {
  position: relative;
  width: 26px;
  height: 16px;
  flex-shrink: 0;
}

.auth-eye__shell {
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 70% / 100%;
  overflow: hidden;
  transition: border-radius 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.auth-pass-toggle.is-visible .auth-eye__shell {
  border-radius: 50%;
}

.auth-eye__iris {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: currentColor;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    width 0.3s ease,
    height 0.3s ease,
    margin 0.3s ease;
}

.auth-pass-toggle.is-visible .auth-eye__iris {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  transform: scale(1.1);
}

.auth-eye__shine {
  position: absolute;
  top: 28%;
  left: 58%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #070a10;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.auth-pass-toggle.is-visible .auth-eye__shine {
  opacity: 0.5;
}

.auth-eye__lid {
  position: absolute;
  left: -3px;
  right: -3px;
  background: var(--pass-bg);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.auth-eye__lid--top {
  top: -3px;
  height: 58%;
  border-radius: 70% 70% 0 0;
  transform-origin: center bottom;
  transform: scaleY(0);
}

.auth-pass-toggle:not(.is-visible) .auth-eye__lid--top {
  transform: scaleY(1);
}

.auth-eye__slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 22px;
  margin: -11px 0 0 -1px;
  background: linear-gradient(180deg, transparent, #f87171, transparent);
  border-radius: 2px;
  transform: rotate(-38deg) scaleY(0);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.25s ease;
}

.auth-pass-toggle:not(.is-visible) .auth-eye__slash {
  transform: rotate(-38deg) scaleY(1);
  opacity: 1;
}

@keyframes auth-eye-blink {
  0%,
  88%,
  100% {
    transform: scaleY(0);
  }
  92% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.15);
  }
}

.auth-pass-toggle.is-visible .auth-eye__lid--top {
  animation: auth-eye-blink 4s ease-in-out infinite;
}

.auth-card button[type="submit"],
.auth-submit {
  margin-top: 0.3rem;
  border-radius: 8px;
  border: 1px solid #0ea5b7;
  background: #0891b2;
  color: #fff;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.auth-error {
  color: #fca5a5 !important;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(59, 130, 246, 0.1), transparent 45%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.35rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.65) 100%);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__logo {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(167, 139, 250, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  color: #fff;
}

.topbar__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.topbar__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.topbar__user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.topbar__logout {
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.topbar__logout:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff;
}

.topbar__logout:active {
  transform: scale(0.97);
}

.topbar__logout:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 2px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.1rem;
}

.user-meta__hello {
  font-size: 0.78rem;
  color: var(--muted);
}

.user-meta__name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.user-meta__account {
  font-size: 0.78rem;
  color: #9fb4d4;
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
}

.dias-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.12);
}

.dias-pill__n {
  font-size: 1.35rem;
  font-weight: 700;
  color: #86efac;
  line-height: 1;
}

.dias-pill__txt {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b8e9c8;
  text-transform: lowercase;
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.35rem 1.1rem 2.2rem;
}

.hero {
  margin-bottom: 1.75rem;
}

.hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, #fff 0%, #c8e8ff 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.hero__hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #6b7c94;
}

.hero__hint .mono {
  font-size: 0.72rem;
  word-break: break-all;
}

.cliente-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.cliente-sidebar {
  position: sticky;
  top: 5.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(16, 23, 36, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cliente-content {
  min-width: 0;
}

.cliente-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(16, 23, 36, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cliente-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 220px;
  min-width: 0;
}

.cliente-search__icon {
  color: rgba(34, 211, 238, 0.85);
  font-size: 1.1rem;
  line-height: 1;
}

.cliente-search__input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.65);
  color: inherit;
  font: inherit;
}

.cliente-search__input:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.cliente-toolbar__count {
  margin: 0;
  white-space: nowrap;
}

.cliente-no-results {
  grid-column: 1 / -1;
  margin: 1rem 0;
  text-align: center;
}

.cliente-menu__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: inherit;
  background: rgba(16, 23, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cliente-menu__item:hover,
.cliente-menu__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  outline: none;
}

.cliente-menu__item--saldo {
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(34, 211, 238, 0.08));
}

.cliente-menu__item.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.cliente-menu__item.is-expanded::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(34, 211, 238, 0.85);
}

.cliente-menu__item[data-cat="peliculas"].is-active:not(.is-expanded)::after {
  content: "▸";
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(34, 211, 238, 0.85);
}

.cliente-menu__icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1rem;
}

.cliente-menu__label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cliente-submenu {
  display: grid;
  gap: 0.45rem;
  margin: -0.15rem 0 0.35rem;
  padding: 0.35rem 0 0.35rem 0.65rem;
  border-left: 2px solid rgba(34, 211, 238, 0.35);
}

.cliente-submenu[hidden],
.cliente-submenu.is-collapsed {
  display: none !important;
}

.cliente-submenu__item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: inherit;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cliente-submenu__item:hover,
.cliente-submenu__item:focus-visible {
  border-color: rgba(34, 211, 238, 0.35);
  outline: none;
}

.cliente-submenu__item.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.country-filter {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.country-filter__title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.country-filter__select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 20, 31, 0.7);
  color: #cfe2ff;
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  font: inherit;
  font-size: 0.86rem;
}

.country-filter__select:hover,
.country-filter__select:focus-visible {
  border-color: rgba(34, 211, 238, 0.35);
  outline: none;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.senal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .senal-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.15rem;
  }
}

@media (max-width: 900px) {
  .cliente-layout {
    grid-template-columns: 1fr;
  }

  .cliente-sidebar {
    position: static;
  }

  .country-filter__select { font-size: 0.84rem; }
}

.senal-card {
  position: relative;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 1.15rem 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-b);
  backdrop-filter: blur(10px);
  color: inherit;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.senal-card:hover,
.senal-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(34, 211, 238, 0.15);
  outline: none;
}

.senal-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.senal-card__icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2436, #0f141d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.senal-card__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.senal-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.senal-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0f7ff;
  pointer-events: none;
}

.senal-card__play svg {
  width: 14px;
  height: 14px;
  opacity: 0.95;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state a {
  color: var(--accent);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.35rem;
  font-size: 0.78rem;
  color: #5c6b82;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.foot__link {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}

.foot__link:hover {
  text-decoration: underline;
}

.foot__muted {
  opacity: 0.85;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 0;
}

.player-sound-hint {
  margin: 0;
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-sound-hint strong {
  color: #e2e8f0;
}

.player-modal[hidden] {
  display: none;
}

.player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(4px);
}

.player-modal__panel {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  background: #070b12;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.player-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #101826;
}

.player-modal__header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  flex-shrink: 0;
}

.player-modal__lista {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(25, 34, 53, 0.95);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.32rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.player-modal__lista:hover,
.player-modal__lista:focus-visible {
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
  outline: none;
}

.player-modal__lista-scrim {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: rgba(0, 0, 0, 0.5);
}

.player-modal__lista-scrim[hidden] {
  display: none !important;
}

.player-modal__lista-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  width: min(22rem, 92vw);
  display: flex;
  flex-direction: column;
  background: #0c111c;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
}

.player-modal__lista-panel[hidden] {
  display: none !important;
}

.player-modal__lista-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.player-modal__lista-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.player-modal__lista-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.player-modal__lista-filter input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #3b82f6;
  cursor: pointer;
}

.player-modal__lista-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-modal__lista-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(25, 34, 53, 0.95);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.player-modal__lista-close:hover,
.player-modal__lista-close:focus-visible {
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
  outline: none;
}

.player-modal__lista-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0.45rem 0.75rem;
}

.player-modal__lista-empty {
  margin: 0.75rem 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

.player-modal__lista-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  cursor: pointer;
}

.player-modal__lista-row:hover,
.player-modal__lista-row:focus-visible {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  outline: none;
}

.player-modal__lista-row.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}

.player-modal__lista-row-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a2436;
}

.player-modal__lista-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-modal__lista-row-name {
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-modal__header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #192235;
  color: #d8e2f2;
  border-radius: 9px;
  padding: 0.38rem 0.62rem;
  font: inherit;
  cursor: pointer;
}

.player-modal__close:hover,
.player-modal__close:focus-visible {
  border-color: rgba(34, 211, 238, 0.5);
  outline: none;
}

.player-modal__error {
  margin: 0;
  padding: 1.25rem 1rem;
  color: #fca5a5;
  text-align: center;
  background: rgba(127, 29, 29, 0.18);
  border-bottom: 1px solid rgba(248, 113, 113, 0.2);
}

.player-modal__error p {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.player-modal__retry {
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.player-modal__retry:hover,
.player-modal__retry:focus-visible {
  background: rgba(34, 211, 238, 0.22);
  border-color: rgba(34, 211, 238, 0.7);
  outline: none;
}

.player-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.player-modal__loading[hidden] {
  display: none !important;
}

.player-modal__loading-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.player-modal__loading-ring {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 3px solid rgba(34, 211, 238, 0.18);
  border-top-color: #22d3ee;
  animation: player-spin 0.85s linear infinite;
}

@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}

.player-modal__stage {
  background: #000;
  --plyr-color-main: #22d3ee;
  --plyr-video-background: #000;
  flex: 1;
  min-height: 0;
}

.player-modal__stage .plyr {
  width: 100%;
  height: 100%;
}

.player-modal__stage .plyr__controls {
  z-index: 8;
  pointer-events: auto;
}

.player-modal__stage .plyr__control,
.player-modal__stage .plyr__volume {
  pointer-events: auto;
}

.player-modal__stage .plyr__control svg {
  fill: currentColor;
}

.player-modal__stage .plyr__video-wrapper {
  min-height: 100%;
}

.player-modal__stage .plyr__progress__container,
.player-modal__stage .plyr__time,
.player-modal__stage .plyr__menu,
.player-modal__stage [data-plyr="pip"],
.player-modal__stage [data-plyr="settings"],
.player-modal__stage [data-plyr="airplay"] {
  display: none !important;
}

.player-modal__stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tras F5 con sesión de reproductor: sin parpadeo de grilla hasta reabrir (script en HTML). */
html.iptv-reopen-cliente body {
  min-height: 100vh;
  background: #070b12;
}

html.iptv-reopen-cliente body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: #070b12;
  pointer-events: none;
}

.cliente-menu__item--adult {
  margin-top: 0.35rem;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: rgba(244, 114, 182, 0.06);
}

.cliente-menu__item--adult.is-unlocked {
  border-color: rgba(244, 114, 182, 0.45);
}

.cliente-menu__item--adult.is-active {
  background: rgba(244, 114, 182, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.35);
}

.cliente-menu__badge {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.85;
}

.adult-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.adult-pin-modal[hidden] {
  display: none !important;
}

.adult-pin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(4px);
}

.adult-pin-modal__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  background: linear-gradient(165deg, rgba(24, 18, 32, 0.98), rgba(12, 16, 28, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.adult-pin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.adult-pin-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.adult-pin-modal__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.adult-pin-modal__hint {
  margin: 0 0 1rem;
}

.adult-pin-modal__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.adult-pin-modal__input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.adult-pin-modal__error {
  margin: 0.65rem 0 0;
  color: #fda4af;
  font-size: 0.85rem;
}

.adult-pin-modal__submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.adult-pin-modal__submit:hover,
.adult-pin-modal__submit:focus-visible {
  filter: brightness(1.06);
}
