:root {
  --bg: #02060d;
  --bg-elev: #08111d;
  --bg-soft: #0c1728;
  --line: rgba(56, 189, 248, 0.16);
  --line-strong: rgba(56, 189, 248, 0.35);
  --text: #edf6ff;
  --muted: #8aa4c0;
  --accent: #38bdf8;
  --accent-deep: #2563eb;
  --accent-2: #7dd3fc;
  --danger: #ff6b7a;
  --ok: #4ade9b;
  --warn: #f5c451;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 18px 50px rgba(37, 99, 235, 0.18);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --sidebar-w: 240px;
  --content-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Atmosphere */
.public-body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(860px 480px at 92% 4%, rgba(37, 99, 235, 0.24), transparent 50%),
    linear-gradient(180deg, #010409 0%, #06101f 46%, #02060d 100%);
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(700px 360px at 0% 100%, rgba(56, 189, 248, 0.06), transparent 50%),
    var(--bg);
}

/* Landing */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 13, 0.55);
  border-bottom: 1px solid transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: grid;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - 86px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 4% -4% auto auto;
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  border-radius: 42% 58% 55% 45%;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.12)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.025) 12px,
      rgba(255, 255, 255, 0.025) 13px
    );
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.3px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: min(55vw, 520px);
  height: min(40vw, 320px);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(7deg);
  }
}

.hero-kicker {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.1s;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.2vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 11ch;
  background: linear-gradient(180deg, #ffffff 20%, #8ecfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.2s;
}

.hero-lead {
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 1.8rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.35s;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.5s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo {
  width: min(300px, 74vw);
  height: auto;
  margin: 0 0 1.1rem;
  filter: drop-shadow(0 18px 40px rgba(37, 99, 235, 0.35));
  opacity: 0;
  animation: rise 0.7s ease forwards 0.05s;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4.5rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.section > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.role-block {
  position: relative;
  padding: 1.45rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(8, 17, 29, 0.4));
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.role-block:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.role-block h3 {
  font-family: var(--display);
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
}

.role-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(460px, 100%);
  background:
    linear-gradient(180deg, rgba(12, 23, 40, 0.92), rgba(5, 12, 22, 0.94));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow), var(--shadow-glow);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 1rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.auth-card .sub {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 8, 18, 0.9);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, #5ec8f0, #2f6fe0 78%);
  color: #04101f;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}

.btn--solid {
  background: #f4f7fb;
  color: #0b1016;
  border: 0;
  box-shadow: none;
}

.btn--solid:hover {
  background: #ffffff;
}

.btn--accent {
  background: #2563eb;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn--accent:hover {
  background: #1d4ed8;
}

.btn--secondary {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

.btn--danger {
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 122, 0.35);
}

.btn--sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.84rem;
}

.btn--block {
  width: 100%;
}

.auth-links {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-links a {
  color: var(--accent);
}

.demo-hint {
  margin-top: 1.25rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-hint code {
  color: var(--accent);
  font-size: 0.8rem;
}

.captcha-field strong {
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Honeypot: oculto para humanos */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.75rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, 0.98), rgba(2, 6, 13, 0.98));
  border-right: 1px solid var(--line);
  z-index: 30;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.14), transparent 65%);
  pointer-events: none;
}

.brand--side {
  position: relative;
  padding: 0.25rem 0.35rem;
}

.brand--side .brand-mark {
  width: 40px;
  height: 40px;
}

.nav-label {
  position: relative;
  margin: 0.2rem 0.45rem 0.15rem;
  color: rgba(138, 164, 192, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.side-nav {
  display: grid;
  gap: 0.3rem;
  flex: 1;
  position: relative;
}

.side-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.side-nav a img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  flex-shrink: 0;
}

.side-nav a:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
  transform: translateX(2px);
}

.side-nav a.is-active {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.12);
  box-shadow: inset 2px 0 0 rgba(94, 200, 240, 0.85);
}

.side-foot {
  display: grid;
  gap: 0.75rem;
  position: relative;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.user-chip {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem;
}

.user-chip__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.28));
  color: #e8f7ff;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.user-chip strong {
  display: block;
  font-size: 0.92rem;
}

.user-chip small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(2, 6, 13, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h1 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
  letter-spacing: -0.02em;
}

.topbar-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

.content {
  padding: 1.15rem 1.35rem 1.75rem;
  animation: contentIn 0.35s ease;
  max-width: var(--content-max);
  width: 100%;
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 920px;
}

.stat {
  position: relative;
  padding: 0.9rem 0.85rem;
  background:
    linear-gradient(165deg, rgba(14, 28, 48, 0.95), rgba(6, 12, 22, 0.95));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  pointer-events: none;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.stat strong {
  position: relative;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff, #9fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background:
    linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(6, 12, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: var(--content-max);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.panel-head h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 0;
  letter-spacing: -0.015em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.78rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge--ok {
  background: rgba(74, 222, 155, 0.12);
  color: var(--ok);
  border-color: rgba(74, 222, 155, 0.22);
}

.badge--warn {
  background: rgba(245, 196, 81, 0.12);
  color: var(--warn);
  border-color: rgba(245, 196, 81, 0.22);
}

.badge--danger {
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.22);
}

.badge--muted {
  background: rgba(139, 155, 176, 0.12);
  color: var(--muted);
  border-color: rgba(139, 155, 176, 0.18);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.alert--ok,
.alert--success {
  background: rgba(74, 222, 155, 0.1);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 155, 0.28);
}

.alert--error {
  background: rgba(255, 107, 122, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 122, 0.28);
}

.alert-fixed {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(480px, calc(100% - 2rem));
}

/* User dashboard (KPI + license cards) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  width: 100%;
}

.kpi-card,
.kpi-card.kpi-card--row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 175, 210, 0.12);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.035), transparent 45%),
    linear-gradient(160deg, rgba(16, 28, 44, 0.92), rgba(7, 12, 22, 0.96));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 175, 210, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0.7;
}

.kpi-card__copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.kpi-card__label {
  display: block;
  margin: 0;
  color: rgba(158, 178, 202, 0.88);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-card__value,
.kpi-card strong {
  display: block;
  margin: 0;
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f4f8fc;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-variant-numeric: tabular-nums;
}

.kpi-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 175, 210, 0.16);
}

.kpi-card__icon img {
  width: 18px;
  height: 18px;
  opacity: 0.92;
}

.kpi-card__icon--ok {
  color: #5ddea0;
  background: rgba(93, 222, 160, 0.08);
  border-color: rgba(93, 222, 160, 0.24);
}

.kpi-card__icon--warn {
  color: #f0a35a;
  background: rgba(240, 163, 90, 0.08);
  border-color: rgba(240, 163, 90, 0.24);
}

.kpi-card__icon--credit {
  color: #5ddea0;
  background: rgba(93, 222, 160, 0.08);
  border-color: rgba(93, 222, 160, 0.24);
}

.dash-section {
  margin-top: 0.15rem;
  max-width: 920px;
}

.dash-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.dash-section__head h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
}

.dash-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 42ch;
}

.empty-box {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: linear-gradient(165deg, rgba(14, 28, 48, 0.92), rgba(6, 12, 22, 0.96));
  max-width: 420px;
  width: 100%;
}

.empty-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
  justify-content: start;
  width: 100%;
}

.license-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 175, 210, 0.16);
  background:
    linear-gradient(165deg, rgba(14, 26, 42, 0.96), rgba(8, 14, 24, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: none;
}

.license-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 175, 210, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.license-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.license-card__mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.license-card__mark img {
  width: 28px;
  height: 28px;
  opacity: 1;
}

.license-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  word-break: break-word;
  color: #f4f7fb;
}

.license-card__details {
  display: grid;
  gap: 0.42rem;
}

.license-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(168, 184, 206, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.license-card__meta img {
  width: 14px;
  height: 14px;
  opacity: 0.78;
  flex-shrink: 0;
}

.license-card__key {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: 0;
}

.license-card__actions form {
  margin: 0;
}

.action-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 175, 210, 0.28);
  background: transparent;
  color: rgba(232, 238, 247, 0.88);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.action-btn img {
  width: 14px;
  height: 14px;
  opacity: 0.95;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 175, 210, 0.45);
}

.action-btn--renew {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.55);
}

.action-btn--renew img {
  filter: invert(72%) sepia(42%) saturate(520%) hue-rotate(93deg) brightness(98%) contrast(92%);
}

.action-btn--renew:hover {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.75);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12), 0 0 16px rgba(34, 197, 94, 0.14);
}

.action-btn--danger {
  color: #ff7b8a;
  border-color: rgba(255, 107, 122, 0.55);
}

.action-btn--danger img {
  filter: invert(62%) sepia(38%) saturate(1200%) hue-rotate(314deg) brightness(102%) contrast(98%);
}

.action-btn--danger:hover {
  color: #fda4af;
  background: rgba(255, 107, 122, 0.08);
  border-color: rgba(255, 107, 122, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 107, 122, 0.12), 0 0 16px rgba(255, 107, 122, 0.14);
}

/* Plans page — refined */
.plans-page {
  max-width: 1080px;
}

.plans-hero {
  margin-bottom: 1.35rem;
  max-width: 34rem;
}

.plans-kicker {
  margin: 0 0 0.45rem;
  color: rgba(125, 211, 252, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.plans-hero h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.plans-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.95rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 180, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 24, 36, 0.95), rgba(8, 13, 22, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 200, 235, 0.35), transparent);
  opacity: 0.7;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.plan-card.is-featured {
  border-color: rgba(94, 200, 240, 0.34);
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.98), rgba(9, 16, 28, 0.99));
}

.plan-card.is-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120px 80px at 50% 0%, rgba(56, 189, 248, 0.1), transparent 70%);
}

.plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 1.25rem;
  position: relative;
  z-index: 1;
}

.plan-card__tag {
  color: rgba(170, 194, 214, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.plan-card__ribbon {
  color: #0b1726;
  background: linear-gradient(135deg, #9ad8f5, #6eb6ef);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.plan-card__currency {
  color: rgba(138, 164, 192, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.plan-card__price strong {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-weight: 750;
  color: #eef7ff;
  line-height: 1;
}

.plan-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 2.2em;
  position: relative;
  z-index: 1;
}

.plan-card__list {
  list-style: none;
  margin: 0.15rem 0 0.25rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  position: relative;
  z-index: 1;
}

.plan-card__list li {
  position: relative;
  padding-left: 0.9rem;
  color: rgba(190, 210, 228, 0.88);
  font-size: 0.76rem;
  line-height: 1.35;
}

.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(94, 200, 240, 0.75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.plan-card__field {
  display: grid;
  gap: 0.3rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.plan-card__field span {
  color: rgba(138, 164, 192, 0.95);
  font-size: 0.72rem;
}

.plan-card__field input {
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 180, 210, 0.14);
  background: rgba(3, 8, 16, 0.75);
  font-size: 0.84rem;
}

.plan-card__field input:focus {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.plan-card__btn {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  width: 100%;
  border: 1px solid rgba(148, 200, 235, 0.2);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
  background: rgba(56, 189, 248, 0.08);
  color: #d9efff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.plan-card__btn:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(148, 200, 235, 0.38);
  color: #fff;
}

.plan-card.is-featured .plan-card__btn {
  background: linear-gradient(135deg, rgba(154, 216, 245, 0.95), rgba(94, 160, 230, 0.95));
  border-color: transparent;
  color: #071422;
}

.plan-card.is-featured .plan-card__btn:hover {
  filter: brightness(1.04);
  color: #041018;
}

.plans-note {
  margin: 1.1rem 0 0;
  color: rgba(138, 164, 192, 0.8);
  font-size: 0.8rem;
}

/* Modal — estilo panel sofisticado */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal [hidden],
.modal__body[hidden],
.modal__foot[hidden],
[data-confirm-step][hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151a21;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa8b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.modal__body {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem 1rem;
}

.modal-field {
  display: grid;
  gap: 0.4rem;
}

.modal-field > span {
  color: #8b98a8;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.modal-field input,
.modal-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1318;
  color: var(--text);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: rgba(120, 170, 210, 0.35);
  box-shadow: 0 0 0 3px rgba(80, 140, 190, 0.12);
}

.modal-field small {
  color: #7f8b9a;
  font-size: 0.75rem;
  line-height: 1.35;
}

.modal-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: rgba(46, 125, 78, 0.16);
  border: 1px solid rgba(74, 180, 110, 0.22);
}

.modal-cost span {
  color: #a7b7c6;
  font-size: 0.88rem;
}

.modal-cost strong {
  color: #5ddea0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-modal {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal--ghost {
  background: #1c222b;
  color: #c5d0dc;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-modal--ghost:hover {
  background: #242b36;
}

.btn-modal--solid {
  background: #f3f6f9;
  color: #0b1016;
}

.btn-modal--solid:hover {
  background: #ffffff;
}

.btn-modal--ghost-ok {
  background: transparent;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.btn-modal--ghost-ok:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.75);
  color: #86efac;
}

.btn-modal--ghost-danger {
  background: transparent;
  color: #ff7b8a;
  border: 1px solid rgba(255, 107, 122, 0.55);
}

.btn-modal--ghost-danger:hover {
  background: rgba(255, 107, 122, 0.08);
  border-color: rgba(255, 107, 122, 0.75);
  color: #fda4af;
}

.modal-confirm__text {
  margin: 0;
  color: rgba(210, 220, 232, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-confirm__text strong {
  color: #fff;
  font-weight: 700;
}

.modal-confirm__next {
  margin: 0;
  color: rgba(168, 184, 206, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-confirm__next strong {
  color: #7dd3fc;
  font-weight: 700;
}

.modal-confirm__foot {
  justify-content: flex-end;
  gap: 0.65rem;
}

.modal-confirm--result {
  min-height: 140px;
  place-items: center;
  text-align: center;
}

.modal-confirm__status {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.modal-confirm__status p {
  margin: 0;
  color: rgba(232, 238, 247, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-confirm__spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(148, 175, 210, 0.2);
  border-top-color: #7dd3fc;
  animation: modalSpin 0.75s linear infinite;
}

.modal-confirm__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.modal-confirm__icon--danger {
  color: #ff7b8a;
  border-color: rgba(255, 107, 122, 0.45);
  background: rgba(255, 107, 122, 0.08);
}

.modal-confirm__icon--ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

.license-card__actions > .action-btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent-2);
}

.empty {
  color: var(--muted);
  padding: 1rem 0;
}

@media (max-width: 980px) {
  .role-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-grid {
    /* flex cards — no grid stretch */
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 25;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.45);
  }

  .sidebar.is-open {
    transform: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .stats,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    max-width: none;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .license-card {
    max-width: 280px;
  }

  .license-card__actions {
    grid-template-columns: 1fr;
  }

  .dash-section__head {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .content,
  .topbar {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== NexEmu panel layout (LayerShield structure + celeste/azul/negro) ===== */
:root {
  --sidebar-w: 240px;
  --content-max: 1180px;
  --bg: #02060d;
  --bg-elev: #0a1422;
  --bg-soft: #0f1a2e;
  --line: rgba(56, 189, 248, 0.14);
  --accent: #38bdf8;
  --accent-deep: #2563eb;
  --accent-2: #7dd3fc;
}

.app-body {
  background-color: #02060d !important;
  background-image:
    radial-gradient(900px 420px at 100% -10%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(700px 360px at 0% 100%, rgba(56, 189, 248, 0.05), transparent 50%),
    linear-gradient(rgba(56,189,248,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 36px 36px, 36px 36px !important;
}

.app-shell { grid-template-columns: var(--sidebar-w) 1fr !important; }

.sidebar {
  background: linear-gradient(180deg, #06101f, #02060d) !important;
  border-right: 1px solid rgba(56, 189, 248, 0.12) !important;
  padding: 1.2rem .9rem 1rem !important;
  gap: 1.35rem !important;
}
.sidebar::before { display: none !important; }
.nav-label { display: none !important; }

.brand--side {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .15rem .35rem !important;
}
.brand--side .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand--side .brand-text {
  flex-direction: row;
  align-items: center;
  gap: .5rem;
}
.brand--side .brand-text strong {
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.brand--side .brand-text small {
  display: inline-flex;
  align-items: center;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #8aa4c0;
  font-size: .68rem;
  font-weight: 600;
}

.side-nav {
  gap: .35rem !important;
  padding: 0 .15rem;
  align-content: start;
}
.side-nav a {
  padding: .72rem .9rem !important;
  border-radius: 12px !important;
  color: #8aa4c0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 500;
  font-size: .94rem;
}
.side-nav a img { opacity: .8; }
.side-nav a:hover {
  background: rgba(56, 189, 248, 0.07) !important;
  color: #e8f4ff !important;
}
.side-nav a.is-active {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.side-nav a.is-active img { opacity: 1; }

.side-foot {
  border-top: 0 !important;
  gap: .65rem !important;
  padding: .15rem .15rem 0 !important;
  margin-top: auto;
}
.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  border-radius: 999px;
  padding: .72rem .9rem;
  background: rgba(8, 24, 48, 0.35);
  color: #9ad8ff;
  border: 1px solid rgba(96, 180, 230, 0.32);
  font-weight: 650;
  font-size: .88rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.35), 0 0 18px rgba(56, 189, 248, 0.18);
  box-shadow:
    0 8px 22px rgba(2, 12, 32, 0.55),
    0 2px 8px rgba(10, 40, 80, 0.35),
    inset 0 1px 0 rgba(160, 210, 255, 0.08);
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, text-shadow .2s ease;
}
.sidebar-cta img {
  width: 16px;
  height: 16px;
  opacity: .95;
  filter: invert(78%) sepia(28%) saturate(720%) hue-rotate(172deg) brightness(104%) contrast(98%);
}
.sidebar-cta:hover,
.sidebar-cta.is-active {
  color: #c8ecff;
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(14, 42, 78, 0.42);
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.45), 0 0 22px rgba(56, 189, 248, 0.28);
  box-shadow:
    0 10px 26px rgba(2, 14, 40, 0.65),
    0 0 18px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(180, 220, 255, 0.1);
  transform: none;
  filter: none;
}
.side-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: #8aa4c0;
  font-size: .88rem;
  padding: .4rem;
}
.side-logout:hover { color: #fff; }

.topbar {
  padding: .95rem 1.6rem !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1) !important;
  background: rgba(2, 6, 13, 0.86) !important;
  backdrop-filter: blur(10px);
}
.topbar h1 {
  font-size: 1.08rem !important;
  font-weight: 600;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #8aa4c0;
  font-size: .9rem;
}
.topbar-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #38bdf8, #2563eb) !important;
  border: 0 !important;
  color: #04101f !important;
  font-weight: 800;
  font-size: .82rem;
}

.content {
  max-width: var(--content-max) !important;
  width: 100% !important;
  padding: 1.45rem 1.7rem 2.4rem !important;
}

.page-head { margin-bottom: 1.35rem !important; }
.page-head h2 {
  margin: 0 0 .4rem;
  font-family: var(--font);
  font-size: 1.55rem !important;
  font-weight: 650 !important;
  letter-spacing: -.035em;
  color: #f5f8fc;
}
.page-head p {
  margin: 0;
  color: rgba(154, 174, 198, 0.92) !important;
  font-size: .92rem;
  max-width: 52ch;
  line-height: 1.45;
}

/* KPIs: llenan el ancho del content (3 columnas) */
.kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .85rem !important;
  margin-bottom: 1.45rem !important;
  max-width: none !important;
  width: 100% !important;
}
.kpi-card,
.kpi-card.kpi-card--row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
  width: auto !important;
  max-width: none !important;
  flex: unset !important;
  min-height: 96px;
  gap: 1rem;
  padding: 1.15rem 1.2rem !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 175, 210, 0.12) !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.035), transparent 45%),
    linear-gradient(160deg, rgba(16, 28, 44, 0.92), rgba(7, 12, 22, 0.96)) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2) !important;
}
.kpi-card__icon {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.kpi-card__value,
.kpi-card strong {
  font-family: var(--font) !important;
  font-size: 1.9rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
  color: #f4f8fc !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-variant-numeric: tabular-nums;
}
.kpi-card__label,
.kpi-card span:last-child,
.kpi-card div > span {
  color: rgba(158, 178, 202, 0.88) !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
}

/* Reseller KPIs */
.kpi-grid--reseller {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.kpi-card--role-gold {
  border-color: rgba(234, 179, 8, 0.22) !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 191, 36, 0.1), transparent 48%),
    linear-gradient(160deg, rgba(24, 20, 10, 0.88), rgba(7, 12, 22, 0.96)) !important;
}
.kpi-card--role-gold .kpi-card__value,
.kpi-card--role-gold strong {
  color: #fbbf24 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em !important;
}
.kpi-card--role-gold .kpi-card__label,
.kpi-card--role-gold span:last-child,
.kpi-card--role-gold div > span {
  color: rgba(251, 191, 36, 0.72) !important;
}
.kpi-card__icon--gold {
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
}

.kpi-card--active-blue {
  border-color: rgba(56, 189, 248, 0.2) !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 48%),
    linear-gradient(160deg, rgba(12, 28, 44, 0.92), rgba(7, 12, 22, 0.96)) !important;
}
.kpi-card--active-blue .kpi-card__value,
.kpi-card--active-blue strong {
  color: #eaf6ff !important;
}
.kpi-card--active-blue .kpi-card__label,
.kpi-card--active-blue span:last-child,
.kpi-card--active-blue div > span {
  color: rgba(125, 211, 252, 0.78) !important;
}
.kpi-card__icon--active {
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
}

.kpi-card--saldo-green {
  border-color: rgba(74, 222, 128, 0.22) !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(74, 222, 128, 0.12), transparent 48%),
    linear-gradient(160deg, rgba(10, 30, 22, 0.9), rgba(7, 12, 22, 0.96)) !important;
}
.kpi-card--saldo-green .kpi-card__value,
.kpi-card--saldo-green strong {
  color: #4ade80 !important;
}
.kpi-card--saldo-green .kpi-card__label,
.kpi-card--saldo-green span:last-child,
.kpi-card--saldo-green div > span {
  color: rgba(74, 222, 128, 0.78) !important;
}
.kpi-card__icon--saldo {
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid rgba(74, 222, 128, 0.28) !important;
}

.kpi-card--expired-red {
  border-color: rgba(255, 107, 122, 0.22) !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 122, 0.12), transparent 48%),
    linear-gradient(160deg, rgba(34, 14, 20, 0.9), rgba(7, 12, 22, 0.96)) !important;
}
.kpi-card--expired-red .kpi-card__value,
.kpi-card--expired-red strong {
  color: #ff7b8a !important;
}
.kpi-card--expired-red .kpi-card__label,
.kpi-card--expired-red span:last-child,
.kpi-card--expired-red div > span {
  color: rgba(255, 107, 122, 0.78) !important;
}
.kpi-card__icon--danger {
  background: rgba(255, 107, 122, 0.1) !important;
  border: 1px solid rgba(255, 107, 122, 0.28) !important;
}

@media (max-width: 1100px) {
  .kpi-grid--reseller {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.reseller-until-note {
  margin: 0 0 .85rem;
  font-size: .78rem;
  color: #8aa4c0;
  letter-spacing: 0.01em;
}
.reseller-until-note.is-expired {
  color: rgba(255, 107, 122, 0.9);
}

.dash-section {
  max-width: none !important;
  width: 100%;
}
.dash-section__head {
  max-width: none !important;
  width: 100%;
  align-items: center !important;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: linear-gradient(165deg, rgba(14, 28, 48, 0.92), rgba(6, 12, 22, 0.96));
  margin-bottom: 1rem !important;
}
.dash-section__head h2 { font-size: 1.12rem !important; margin: 0 0 .15rem !important; }
.dash-section__head p { font-size: .88rem !important; color: #8aa4c0 !important; }

.empty-box {
  max-width: 420px !important;
  width: 100% !important;
  border: 1px solid rgba(56, 189, 248, 0.14) !important;
  border-style: solid !important;
  background: linear-gradient(165deg, rgba(14, 28, 48, 0.92), rgba(6, 12, 22, 0.96)) !important;
  padding: 1.2rem 1.25rem !important;
  border-radius: 14px !important;
}

.btn--solid {
  background: #f4f7fb !important;
  color: #0b1016 !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  padding: .58rem 1.1rem;
}
.btn--solid:hover { background: #fff !important; }
.btn--sm.btn--solid { padding: .5rem 1rem; font-size: .86rem; }

/* Botón transparente con brillo al hover (Manager / CTAs) */
.btn--ghost-glow {
  background: transparent !important;
  color: rgba(232, 238, 247, 0.88) !important;
  border: 1px solid rgba(148, 175, 210, 0.35) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  padding: .52rem 1.05rem;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--ghost-glow:hover {
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.65) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.22) !important;
}
.btn--sm.btn--ghost-glow {
  padding: .46rem .95rem;
  font-size: .86rem;
}

.license-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  justify-content: start !important;
  gap: .9rem !important;
  width: 100%;
}
.license-card {
  max-width: none !important;
  background: linear-gradient(165deg, rgba(14, 26, 42, 0.96), rgba(8, 14, 24, 0.98)) !important;
  border: 1px solid rgba(148, 175, 210, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
  padding: 1.15rem 1.15rem 1.05rem !important;
}
.license-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(148, 175, 210, 0.28) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32) !important;
}
.license-card h3 { font-size: 1.35rem !important; font-weight: 700 !important; }
.badge--ok {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  letter-spacing: .06em;
  padding: .28rem .7rem !important;
}
.action-btn {
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(148, 175, 210, 0.28) !important;
  padding: .55rem .7rem !important;
  font-size: .8rem !important;
  box-shadow: none !important;
}
.action-btn--renew {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.55) !important;
  background: transparent !important;
}
.action-btn--renew:hover {
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(74, 222, 128, 0.75) !important;
}
.action-btn--danger {
  color: #ff7b8a !important;
  border-color: rgba(255, 107, 122, 0.55) !important;
  background: transparent !important;
}
.action-btn--danger:hover {
  color: #fda4af !important;
  background: rgba(255, 107, 122, 0.08) !important;
  border-color: rgba(255, 107, 122, 0.75) !important;
}

/* Pricing board — same width language as Manager */
.pricing-board { max-width: none; width: 100%; }
.pricing-board__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
  width: 100%;
  max-width: none;
}
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  padding: 1.15rem .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: linear-gradient(165deg, rgba(14, 28, 48, 0.95), rgba(6, 12, 22, 0.98));
  min-height: 100%;
  max-width: none;
}
.tier-card.is-featured {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56,189,248,.1), 0 16px 36px rgba(37,99,235,.18);
}
.tier-card.is-accent {
  border-color: rgba(99, 140, 255, 0.4);
}
.tier-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  font-size: .68rem;
  letter-spacing: .08em;
  font-weight: 700;
}
.tier-card.is-featured .tier-card__badge { color: #7dd3fc; }
.tier-card.is-accent .tier-card__badge { color: #a5b4fc; }
.tier-card h3 {
  margin: .15rem 0 0;
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -.02em;
}
.tier-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .3rem;
}
.tier-card__price strong {
  font-family: var(--display);
  font-size: 1.95rem;
  letter-spacing: -.04em;
  line-height: 1;
}
.tier-card__price span {
  color: #8aa4c0;
  font-size: .82rem;
}
.tier-card__save {
  margin: 0;
  color: #5ddea0;
  font-size: .82rem;
  font-weight: 600;
  min-height: 1.2em;
}
.tier-card__features {
  list-style: none;
  margin: .35rem 0 .55rem;
  padding: 0;
  width: 100%;
  text-align: left;
}
.tier-card__features li {
  position: relative;
  padding: .5rem 0 .5rem 1.4rem;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  color: #aeb8c6;
  font-size: .8rem;
}
.tier-card__features li:last-child { border-bottom: 1px solid rgba(56, 189, 248, 0.08); }
.tier-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .45rem;
  color: #5ddea0;
  font-weight: 700;
  font-size: .85rem;
}
.tier-card__cta {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: .72rem .85rem;
  background: #f4f7fb;
  color: #0b1016;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.tier-card__cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .pricing-board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .kpi-grid { grid-template-columns: 1fr !important; max-width: 360px; }
  .pricing-board__grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .pricing-board__grid { grid-template-columns: 1fr !important; }
  .content { padding: 1.1rem 1rem 2rem !important; }
}
/* Generador NexLicence.cfg */
.generator-board {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.generator-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 175, 210, 0.16);
  background: linear-gradient(165deg, rgba(14, 26, 42, 0.96), rgba(8, 14, 24, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.generator-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.generator-card__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.generator-card__grid--stack {
  grid-template-columns: 1fr;
  gap: .95rem;
}

.generator-card .field {
  display: grid;
  gap: .4rem;
}

.generator-card .field > span {
  color: #8aa4c0;
  font-size: .82rem;
  font-weight: 600;
}

.generator-card .field input {
  border-radius: 12px;
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid rgba(148, 175, 210, 0.16);
  padding: .72rem .9rem;
}

.generator-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.1rem;
}

.generator-card__actions--center {
  justify-content: center;
}

.generator-card__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: min(100%, 280px);
  padding: .62rem 1.25rem !important;
}

.generator-card__submit img {
  width: 16px;
  height: 16px;
  opacity: .9;
}

.generator-card__hint {
  margin: 0;
  color: #8aa4c0;
  font-size: .82rem;
  max-width: 48ch;
}

.generator-guide {
  padding: 1.25rem 1.35rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 175, 210, 0.14);
  background: linear-gradient(165deg, rgba(14, 26, 42, 0.9), rgba(8, 14, 24, 0.96));
  text-align: center;
}

.generator-guide h3 {
  margin: 0 0 .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(232, 238, 247, 0.95);
}

.generator-guide h3 img {
  width: 18px;
  height: 18px;
  opacity: .85;
}

.generator-guide > p {
  margin: 0 auto .95rem;
  max-width: 42ch;
  color: rgba(168, 184, 206, 0.9);
  font-size: .88rem;
  line-height: 1.5;
}

.generator-guide__exes {
  margin: 0 auto 1.05rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .42rem;
  justify-items: center;
}

.generator-guide__exes li {
  margin: 0;
  padding: 0;
  color: #f4f7fb;
  font-size: .95rem;
  letter-spacing: 0.01em;
  border-bottom: 0;
}

.generator-guide__exes strong {
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  color: #f4f7fb;
}

.generator-guide__note {
  margin: 0;
  padding: .95rem 0 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  border-top: 1px solid rgba(148, 175, 210, 0.12);
  text-align: left;
}

.generator-guide__note li {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  color: rgba(168, 184, 206, 0.9);
  font-size: .86rem;
  line-height: 1.55;
}

.generator-guide__note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 175, 210, 0.55);
}

.generator-guide__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 6px;
  padding: .08rem .35rem;
}

@media (max-width: 820px) {
  .generator-card__grid,
  .generator-card__grid--two { grid-template-columns: 1fr; }
}
.generator-board--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Centro de Descargas */
.downloads-board {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  max-width: none;
}

.dl-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(148, 175, 210, 0.14);
  background: linear-gradient(165deg, rgba(14, 26, 42, 0.92), rgba(7, 12, 22, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.dl-table__caption {
  padding: 0.85rem 1.1rem 0.55rem;
  color: #9ad8ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.25);
}

.dl-table {
  width: 100%;
  border-collapse: collapse;
}

.dl-table th,
.dl-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.dl-table thead th {
  background: rgba(236, 244, 255, 0.96);
  color: #0b1522;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 0;
}

.dl-table tbody td {
  border-top: 1px solid rgba(148, 175, 210, 0.1);
  color: rgba(210, 222, 236, 0.92);
  font-size: 0.9rem;
}

.dl-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.dl-table__name {
  font-weight: 650;
  color: #f2f7fc;
}

.dl-table__meta {
  color: rgba(154, 216, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 600;
}

.dl-table--simple td:last-child,
.dl-table td:nth-child(n+3) {
  width: 1%;
  white-space: nowrap;
}

.dl-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 7.5rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 180, 230, 0.38);
  background: rgba(8, 24, 48, 0.4);
  color: #9ad8ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.28);
  box-shadow: 0 6px 16px rgba(2, 12, 32, 0.45);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dl-btn img {
  width: 13px;
  height: 13px;
  filter: invert(78%) sepia(28%) saturate(720%) hue-rotate(172deg) brightness(104%) contrast(98%);
}

.dl-btn:hover {
  color: #c8ecff;
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(14, 42, 78, 0.5);
  box-shadow: 0 8px 20px rgba(2, 14, 40, 0.55), 0 0 14px rgba(37, 99, 235, 0.14);
}

.dl-btn--disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .dl-split { grid-template-columns: 1fr; }
  .dl-table-wrap { overflow-x: auto; }
  .dl-table { min-width: 640px; }
  .dl-table--simple { min-width: 0; }
}

/* Badge ACTIVA en Manager */
.license-card .badge--ok {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  font-weight: 750 !important;
  font-size: .7rem !important;
  letter-spacing: .07em !important;
  box-shadow: none;
  padding: .28rem .7rem !important;
}
.license-card.is-active {
  border-color: rgba(74, 222, 128, 0.34) !important;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.05), 0 14px 34px rgba(0, 0, 0, 0.28) !important;
}
.license-card.is-active:hover {
  border-color: rgba(74, 222, 128, 0.48) !important;
}
.license-card .badge--warn {
  background: transparent !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  font-weight: 700 !important;
  font-size: .68rem !important;
  letter-spacing: .07em !important;
}
/* License detail modal + clickable cards */
.license-card--clickable {
  cursor: pointer;
}
.license-card--clickable:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}
.license-card.is-expired {
  border-color: rgba(255, 107, 122, 0.28) !important;
}
.license-card .badge--danger {
  background: transparent !important;
  color: #ff7b8a !important;
  border-color: rgba(255, 107, 122, 0.45) !important;
  font-weight: 700 !important;
  font-size: .68rem !important;
  letter-spacing: .07em !important;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
}
.modal-meta .mono {
  color: #7dd3fc;
  font-size: .82rem;
}
.modal-lock-box {
  display: grid;
  gap: .65rem;
}
.modal-lock-note {
  margin: 0;
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  font-size: .82rem;
  line-height: 1.4;
}
.btn-modal--gold {
  width: 100%;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-modal--gold:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}
.modal-field input[readonly] {
  opacity: .72;
  cursor: not-allowed;
  border-color: rgba(255,255,255,.06);
}
/* Tiempo restante en license card */
.license-card__time {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0.1rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 175, 210, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.license-card__time-main {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.license-card__time-num {
  margin: 0;
  font-family: var(--font);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f4f8fc;
}

.license-card__time-label {
  color: rgba(168, 184, 206, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.license-card__time-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 175, 210, 0.12);
  overflow: hidden;
}

.license-card__time-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  transition: width 0.35s ease;
}

.license-card__time--ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(74, 222, 128, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}
.license-card__time--ok .license-card__time-num { color: #4ade80; }

.license-card__time--warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(251, 191, 36, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}
.license-card__time--warn .license-card__time-num { color: #fbbf24; }

.license-card__time--danger {
  color: #ff7b8a;
  border-color: rgba(255, 107, 122, 0.22);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 107, 122, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}
.license-card__time--danger .license-card__time-num { color: #ff7b8a; }

/* legacy countdown (por si queda en cache) */
.license-card__countdown { display: none !important; }

/* Admin users / roles / prices */
.badge--role-admin {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.28);
}
.badge--role-reseller {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
}
.badge--role-user {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.22);
}
.panel-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  max-width: 52rem;
}
.users-row--reseller td:first-child {
  box-shadow: inset 3px 0 0 #fbbf24;
}
.users-row--admin td:first-child {
  box-shadow: inset 3px 0 0 #60a5fa;
}
.users-row--user td:first-child {
  box-shadow: inset 3px 0 0 #64748b;
}
.user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 220px;
}
.credit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.credit-form input[type="number"] {
  width: 5.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: inherit;
  font-size: 0.85rem;
}
.credit-form input[type="text"] {
  width: 7rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: inherit;
  font-size: 0.85rem;
}
.price-input {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.price-input input {
  width: 7rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: inherit;
}
.rules-list {
  margin: 0;
  padding: 0 0 0.5rem 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}
.rules-list strong {
  color: var(--text, #e8eef7);
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
/* ===== Landing fantasy (NexEmu) ===== */
.public-body.landing-page {
  background: #03060d;
  overflow-x: clip;
}

.landing {
  --ld-gold: #d4af6a;
  --ld-gold-soft: rgba(212, 175, 106, 0.55);
  --ld-cyan: #5ec8ff;
  --ld-display: "Cinzel", "Syne", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(2, 6, 13, 0.88), rgba(2, 6, 13, 0.45));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 106, 0.18);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 14px rgba(94, 200, 255, 0.45));
  animation: ldPulse 4.5s ease-in-out infinite;
}

.landing-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.landing-brand strong {
  font-family: var(--ld-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.landing-brand small {
  color: var(--ld-gold);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-nav__links {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
}

.landing-nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 246, 255, 0.78);
  transition: color 0.2s ease;
}

.landing-nav__links a:hover {
  color: var(--ld-cyan);
}

.landing-nav__actions {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
  flex-wrap: nowrap;
}

.btn-ld {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-ld--lg {
  padding: 0.9rem 1.45rem;
  font-size: 0.92rem;
}

.btn-ld--ghost {
  background: rgba(3, 8, 16, 0.55);
  border-color: var(--ld-gold-soft);
  color: #f3e6c8;
}

.btn-ld--ghost:hover {
  border-color: var(--ld-gold);
  transform: translateY(-1px);
}

.btn-ld--glow {
  background: linear-gradient(180deg, rgba(22, 70, 120, 0.55), rgba(8, 24, 48, 0.85));
  border-color: rgba(94, 200, 255, 0.65);
  color: #eaf7ff;
  box-shadow: 0 0 0 1px rgba(94, 200, 255, 0.15), 0 0 28px rgba(56, 189, 248, 0.22);
}

.btn-ld--glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(94, 200, 255, 0.35), 0 0 36px rgba(56, 189, 248, 0.38);
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.04);
  animation: ldKen 18s ease-in-out infinite alternate;
}

.landing-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 12, 0.94) 0%, rgba(2, 5, 12, 0.78) 38%, rgba(2, 5, 12, 0.35) 68%, rgba(2, 5, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.25) 0%, transparent 28%, rgba(2, 5, 12, 0.75) 100%);
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(2.8rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 300px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.landing-eyebrow {
  margin: 0 0 1rem;
  color: var(--ld-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: ldRise 0.8s ease forwards 0.1s;
}

.landing-eyebrow::before,
.landing-eyebrow::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ld-gold));
}

.landing-eyebrow::after {
  background: linear-gradient(90deg, var(--ld-gold), transparent);
}

.landing-title {
  margin: 0 0 1rem;
  font-family: var(--ld-display);
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f7fbff;
  text-shadow: 0 0 40px rgba(94, 200, 255, 0.35), 0 10px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: ldRise 0.85s ease forwards 0.22s;
}

.landing-lead {
  margin: 0 0 1.8rem;
  max-width: 34ch;
  color: rgba(210, 226, 244, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.55;
  opacity: 0;
  animation: ldRise 0.85s ease forwards 0.36s;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: ldRise 0.85s ease forwards 0.48s;
}

.landing-rail {
  position: relative;
  border: 1px solid rgba(212, 175, 106, 0.42);
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.72), rgba(3, 7, 16, 0.5));
  backdrop-filter: blur(12px);
  padding: 1.15rem 1rem 1rem;
  display: grid;
  gap: 0;
  box-shadow:
    inset 0 0 0 1px rgba(94, 200, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 22px 55px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: ldRise 0.9s ease forwards 0.55s;
}

.landing-rail::before,
.landing-rail::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(212, 175, 106, 0.85);
  pointer-events: none;
}

.landing-rail::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.landing-rail::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.landing-rail__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0.45rem;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.16);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.landing-rail__item:last-child {
  border-bottom: 0;
}

.landing-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ld-cyan);
  filter: drop-shadow(0 0 10px rgba(94, 200, 255, 0.45));
  flex-shrink: 0;
}

.landing-ico svg {
  width: 40px;
  height: 40px;
  display: block;
}

.landing-rail__item strong {
  display: block;
  font-family: var(--ld-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eef7ff;
}

.landing-rail__item div > span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(170, 192, 214, 0.9);
  font-size: 0.82rem;
}

.landing-emu {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.2rem 0 3.8rem;
}

.landing-divider {
  width: min(420px, 70%);
  height: 1px;
  margin: 0 auto 1.6rem;
  background: linear-gradient(90deg, transparent, var(--ld-gold), transparent);
  position: relative;
}

.landing-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--ld-gold);
  background: rgba(212, 175, 106, 0.25);
}

.landing-emu h2 {
  margin: 0 0 0.45rem;
  text-align: center;
  font-family: var(--ld-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-gold);
}

.landing-emu__intro {
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  max-width: 46ch;
}

.landing-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.landing-specs li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(94, 200, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.88), rgba(5, 10, 20, 0.4));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-specs li:hover {
  border-color: rgba(94, 200, 255, 0.4);
  transform: translateY(-2px);
}

.landing-specs strong {
  display: block;
  font-family: var(--ld-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.landing-specs span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-foot {
  margin-top: auto;
  padding: 1.2rem;
  text-align: center;
  color: rgba(138, 164, 192, 0.7);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes ldRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ldKen {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 0, 0);
  }
}

@keyframes ldPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(94, 200, 255, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(94, 200, 255, 0.7));
  }
}

@media (max-width: 900px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-nav__links {
    display: none;
  }

  .landing-hero__inner {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: calc(100vh - 74px);
  }

  .landing-hero__bg img {
    object-position: 80% center;
  }

  .landing-rail {
    max-width: 420px;
  }

  .landing-title {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .landing-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-nav__actions .btn-ld--ghost {
    display: none;
  }

  .landing-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

