/* ═══════════════════════════════════════════════════════════════
   LEVELUPERU · WHMCS Template 2026
   Dark-first · Electric Yellow accent · Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Backgrounds — tonal elevation, not shadows */
  --bg:         #0A0A0A;
  --bg2:        #111214;
  --bg3:        #19191C;
  --bg4:        #222326;

  /* Borders */
  --border:     #252628;
  --border-hi:  #38393C;

  /* Text */
  --text-head:  #F0F1F2;
  --text-body:  #B8BBC2;
  --text-muted: #6B6E75;
  --text-dim:   #3E4046;

  /* Brand */
  --yellow:     #FFE600;
  --yellow-bg:  rgba(255, 230, 0, 0.08);
  --yellow-dim: #7A6C00;

  /* Semantic */
  --green:      #22C55E;
  --green-bg:   rgba(34, 197, 94, 0.08);
  --red:        #EF4444;
  --red-bg:     rgba(239, 68, 68, 0.08);
  --blue:       #60A5FA;
  --blue-bg:    rgba(96, 165, 250, 0.08);
  --orange:     #FB923C;
  --orange-bg:  rgba(251, 146, 60, 0.08);

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill:9999px;

  /* Typography */
  --ff: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI Variable", "Segoe UI", sans-serif;
  --fm: ui-monospace, "Cascadia Code", "Fira Mono", "Consolas", monospace;

  /* Transitions */
  --t-fast:   80ms ease;
  --t-base:   150ms ease;
  --t-slow:   250ms ease;

  /* Layout — nav-h = outer-pad(12×2) + inner-pad(8×2) + content(36) */
  --nav-h:    80px;
  --sidebar-w:240px;
  --max-w:    1100px;
}

/* ── Light theme ─────────────────────────────────────────────── */
@media (prefers-color-scheme: light) { :root {
  --bg:        #F2F2EE;
  --bg2:       #E9E9E4;
  --bg3:       #DFDFD9;
  --bg4:       #D4D4CE;
  --border:    #CECECB;
  --border-hi: #BCBCB8;
  --text-head: #0A0A0A;
  --text-body: #383838;
  --text-muted:#7A7975;
  --text-dim:  #AEAEA9;
  --yellow:    #FFE600;
  --yellow-bg: rgba(255,230,0,0.12);
  --yellow-dim:#C8A800;
  --green:#16A34A;--green-bg:rgba(22,163,74,0.10);
  --red:#DC2626;--red-bg:rgba(220,38,38,0.10);
  --blue:#2563EB;--blue-bg:rgba(37,99,235,0.10);
  --orange:#D97706;--orange-bg:rgba(217,119,6,0.10);
  --glass-bg:rgba(255,255,255,0.58);
}}
:root[data-theme="dark"] {
  --bg:#0A0A0A;--bg2:#111214;--bg3:#19191C;--bg4:#222326;
  --border:#252628;--border-hi:#38393C;
  --text-head:#F0F1F2;--text-body:#B8BBC2;--text-muted:#6B6E75;--text-dim:#3E4046;
  --yellow:#FFE600;--yellow-bg:rgba(255,230,0,0.08);--yellow-dim:#7A6C00;
  --green:#22C55E;--green-bg:rgba(34,197,94,0.08);
  --red:#EF4444;--red-bg:rgba(239,68,68,0.08);
  --blue:#60A5FA;--blue-bg:rgba(96,165,250,0.08);
}
:root[data-theme="light"] {
  /* Fondos — crema suave, no blanco puro */
  --bg:#EFEFE9;--bg2:#E6E6E0;--bg3:#DDDDD6;--bg4:#D4D4CE;
  --border:#CACAC4;--border-hi:#B0B0A9;
  /* Textos */
  --text-head:#0A0A0A;--text-body:#2E2E2E;--text-muted:#6E6E68;--text-dim:#AEAEA9;
  /* Amarillo LEVELUPERU — mismo #FFE600 de la brand, oscurecido solo donde va en texto */
  --yellow:#FFE600;--yellow-bg:rgba(255,230,0,0.14);--yellow-dim:#C8A800;
  /* Semánticos — versiones accesibles para light */
  --green:#16A34A;--green-bg:rgba(22,163,74,0.10);
  --red:#DC2626;--red-bg:rgba(220,38,38,0.10);
  --blue:#2563EB;--blue-bg:rgba(37,99,235,0.10);
  --orange:#D97706;--orange-bg:rgba(217,119,6,0.10);
  /* Glass — más sutil en claro */
  --glass-bg:       rgba(255,255,255,0.58);
  --glass-bg-hi:    rgba(255,255,255,0.80);
  --glass-border:   rgba(0,0,0,0.08);
  --glass-border-hi:rgba(255,200,0,0.28);
  --glass-shadow:   0 4px 24px rgba(0,0,0,.10), 0 1px 0 rgba(255,255,255,.8) inset;
  --nav-bg: rgba(239,239,233,0.82);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── WHMCS 9 new-routing (rp=) SVG overrides ────────────────── */
/* Las páginas ?rp= inyectan SVGs gigantes sin contener — los limitamos */
.client-area-page svg,
.whmcs-client-area svg,
[class*="ClientArea"] svg,
main svg:not(.logo-mark svg):not(.lvl-nav svg):not(.lvl-footer svg) {
  max-width: 120px;
  max-height: 120px;
}
/* Contenedor principal de rutas ?rp= */
.whmcs-client-area,
.client-area-page,
#app,
[data-reactroot] {
  min-height: 60vh;
  padding: 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--yellow); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, [role="button"] { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Wide content containers — never scroll the body horizontally */
table, .overflow-x { overflow-x: auto; }
.overflow-x { display: block; }

/* ── Logo Mark ───────────────────────────────────────────────── */
.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5px;
  flex-shrink: 0;
}
.logo-mark span {
  display: block;
  border-radius: 2.5px;
  transition: transform var(--t-slow);
}
.logo-mark span:nth-child(1) { background: var(--yellow); }
.logo-mark span:nth-child(2) { background: transparent; border: 1.5px solid var(--yellow); }
.logo-mark span:nth-child(3) { background: transparent; border: 1.5px solid var(--yellow); }
.logo-mark span:nth-child(4) { background: var(--yellow); }

.logo-mark-sm { width: 22px; height: 22px; gap: 3px; }
.logo-mark-sm span { border-radius: 2px; }

.logo-mark-md { width: 30px; height: 30px; gap: 4px; }
.logo-mark-lg { width: 44px; height: 44px; gap: 5px; }
.logo-mark-lg span { border-radius: 4px; }

/* Hover: explode animation */
.logo-wrap:hover .logo-mark span:nth-child(1) { transform: translate(-1px, -1px); }
.logo-wrap:hover .logo-mark span:nth-child(2) { transform: translate(1px, -1px); }
.logo-wrap:hover .logo-mark span:nth-child(3) { transform: translate(-1px, 1px); }
.logo-wrap:hover .logo-mark span:nth-child(4) { transform: translate(1px, 1px); }

/* ── FLOATING NAV ─────────────────────────────────────────────── */
.lvl-nav-outer {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 12px 20px;
  pointer-events: none;
  transition: padding var(--t-slow), background var(--t-slow);
}
.lvl-nav-outer.scrolled {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.lvl-nav {
  pointer-events: all;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 16px;
  border-radius: 14px;
  background: rgba(20, 21, 24, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-radius var(--t-slow), background var(--t-slow), border-color var(--t-slow);
}
/* Nav claro — consistente con el brand */
:root[data-theme="light"] .lvl-nav {
  background: rgba(239,239,233,0.85);
  border-color: rgba(0,0,0,0.08);
}
:root[data-theme="light"] .nav-brand-text { color: #0A0A0A; }
:root[data-theme="light"] .nav-link       { color: #3A3A34; }
:root[data-theme="light"] .nav-link:hover { color: #0A0A0A; background: rgba(0,0,0,.05); }
:root[data-theme="light"] .nav-link.active { color: #0A0A0A; background: rgba(255,230,0,.18); }
:root[data-theme="light"] .nav-icon-btn   { color: #555; }
:root[data-theme="light"] .nav-icon-btn:hover { background: rgba(0,0,0,.06); color: #0A0A0A; }
:root[data-theme="light"] .nav-avatar     { background: #FFE600; color: #0A0A0A; }
:root[data-theme="light"] .nav-user       { color: #3A3A34; }
:root[data-theme="light"] .nav-user-name  { color: #3A3A34; }
/* Sidebar claro */
:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .panel.panel-default { background: rgba(255,255,255,.65) !important; border-color: rgba(0,0,0,.08) !important; }
:root[data-theme="light"] .sidebar a,
:root[data-theme="light"] .panel a            { color: #3A3A34 !important; }
:root[data-theme="light"] .sidebar .active>a,
:root[data-theme="light"] .sidebar a.active   { color: #0A0A0A !important; background: rgba(255,230,0,.15) !important; }
/* Formularios claros */
:root[data-theme="light"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .form-control {
  background: rgba(255,255,255,.9) !important;
  border-color: #CACAC4 !important;
  color: #2E2E2E !important;
}
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-success { background: #FFE600 !important; color: #0A0A0A !important; border-color: #FFE600 !important; }
:root[data-theme="light"] label        { color: #2E2E2E !important; }
.lvl-nav-outer.scrolled .lvl-nav {
  border-radius: 0;
  background: transparent;
  border: none;
  max-width: 100%;
  padding: 10px 20px;
}

/* Logo section */
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
  flex-shrink: 0; margin-right: 8px;
}
.nav-brand-text {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-head);
}

/* Nav links */
.nav-links {
  display: flex; align-items: center;
  gap: 2px; flex: 1;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-head); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav-link.active { color: var(--text-head); background: rgba(255,255,255,0.06); }
.nav-link-chevron {
  width: 12px; height: 12px; opacity: 0.5;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-link:hover .nav-link-chevron { transform: rotate(180deg); opacity: 0.8; }

/* Nav right actions */
.nav-actions {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  border: none; background: transparent;
  color: var(--text-muted);
  transition: color var(--t-base), background var(--t-base);
}
.nav-icon-btn:hover { color: var(--text-head); background: rgba(255,255,255,0.06); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow);
  color: #0A0A0A;
  font-size: 12px; font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: none;
  transition: opacity var(--t-base), transform var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.nav-cta:active { transform: translateY(0); }

/* User badge (logged in) */
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg3);
  font-size: 12px; font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base);
  text-decoration: none;
}
.nav-user:hover { border-color: var(--border-hi); background: var(--bg4); text-decoration: none; }
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #0A0A0A;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: none; background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: var(--bg);
  padding: 80px 24px 32px;
  flex-direction: column; gap: 6px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  font-size: 16px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.nav-drawer .nav-cta { margin-top: 16px; justify-content: center; padding: 14px; font-size: 14px; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .lvl-nav-outer { padding: 10px 12px; }
  .nav-brand-text { display: none; }
}

/* ── Page scaffold ───────────────────────────────────────────── */
.page-body {
  padding-top: var(--nav-h); /* space below fixed nav */
  min-height: 100vh;
}

/* Client area with sidebar */
.layout-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.sidebar {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 10px 10px 6px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
  text-decoration: none;
}
.sidebar-link:hover { color: var(--text-head); background: var(--bg3); text-decoration: none; }
.sidebar-link.active {
  color: var(--text-head); background: var(--bg3);
  border-left: 2px solid var(--yellow);
  padding-left: 8px;
}
.sidebar-link svg { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.sidebar-link.active svg { opacity: 1; color: var(--yellow); }
.sidebar-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  background: var(--yellow); color: #0A0A0A;
  border-radius: var(--r-pill);
  padding: 1px 6px; min-width: 18px; text-align: center;
}

.main-content { padding: 32px 36px; }

@media (max-width: 900px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 24px 20px; }
}

/* Container helper */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography helpers ──────────────────────────────────────── */
.page-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-head); text-wrap: balance;
  line-height: 1.1; margin-bottom: 6px;
}
.page-sub {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
}
.section-title {
  font-size: 16px; font-weight: 600; color: var(--text-head);
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.display-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-head); line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--ff); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer; transition: all var(--t-base);
  text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--yellow); color: #0A0A0A;
  border-color: var(--yellow);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); opacity: 1; }

.btn-secondary {
  background: var(--bg3); color: var(--text-body);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg4); border-color: var(--border-hi); color: var(--text-head); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text-head); border-color: var(--border-hi); }

.btn-danger {
  background: var(--red-bg); color: var(--red);
  border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn-sm { font-size: 11px; padding: 5px 10px; border-radius: var(--r-xs); }
.btn-lg { font-size: 15px; padding: 12px 24px; border-radius: var(--r-md); }
.btn-full { width: 100%; }

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Status chips ────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--r-pill);
  white-space: nowrap; line-height: 1.4;
}
.chip::before {
  content: ''; display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.chip-active   { background: var(--green-bg);  color: var(--green); }
.chip-pending  { background: var(--yellow-bg); color: var(--yellow); }
.chip-suspended{ background: var(--red-bg);    color: var(--red); }
.chip-cancelled{ background: var(--bg4);       color: var(--text-muted); }
.chip-paid     { background: var(--green-bg);  color: var(--green); }
.chip-unpaid   { background: var(--orange-bg); color: var(--orange); }
.chip-overdue  { background: var(--red-bg);    color: var(--red); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-base), background var(--t-base);
}
.card:hover { border-color: var(--border-hi); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--text-head); }
.card-body { }
.card-footer {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* KPI card */
.kpi-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--t-base);
}
.kpi-card:hover { border-color: var(--border-hi); }
.kpi-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.kpi-value { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-head); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--text-muted); }
.kpi-value.yellow { color: var(--yellow); }
.kpi-value.green  { color: var(--green); }
.kpi-value.red    { color: var(--red); }

/* ── Bento grid (dashboard) ──────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.bento-1  { grid-column: span 4; }
.bento-2  { grid-column: span 6; }
.bento-3  { grid-column: span 8; }
.bento-full { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-1, .bento-2, .bento-3 { grid-column: span 12; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .bento-1 { grid-column: span 6; }
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--text-body);
  letter-spacing: 0.02em;
}
.form-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--ff); font-size: 14px;
  color: var(--text-head);
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  outline: none; width: 100%;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:hover { border-color: var(--border-hi); }
.form-input:focus { border-color: var(--yellow); background: var(--bg2); box-shadow: 0 0 0 3px var(--yellow-bg); }
.form-input.error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.form-input.valid { border-color: var(--green); }

.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--red); }

/* Password input wrapper */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 40px; }
.input-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-xs);
  transition: color var(--t-base);
}
.input-toggle:hover { color: var(--text-head); }

/* Password strength meter */
.pw-strength { display: flex; gap: 3px; margin-top: 6px; }
.pw-strength-bar {
  height: 3px; flex: 1; border-radius: 2px;
  background: var(--border);
  transition: background var(--t-slow);
}
.pw-strength[data-strength="1"] .pw-strength-bar:nth-child(1) { background: var(--red); }
.pw-strength[data-strength="2"] .pw-strength-bar:nth-child(-n+2) { background: var(--orange); }
.pw-strength[data-strength="3"] .pw-strength-bar:nth-child(-n+3) { background: var(--yellow); }
.pw-strength[data-strength="4"] .pw-strength-bar { background: var(--green); }

/* Select */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6E75' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Textarea */
.form-textarea { min-height: 100px; resize: vertical; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table.lvl {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
table.lvl thead tr { border-bottom: 1px solid var(--border); }
table.lvl thead th {
  padding: 10px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: left; white-space: nowrap;
  background: var(--bg2);
}
table.lvl thead th:first-child { border-radius: var(--r-lg) 0 0 0; }
table.lvl thead th:last-child  { border-radius: 0 var(--r-lg) 0 0; }
table.lvl tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
table.lvl tbody tr:last-child { border-bottom: none; }
table.lvl tbody tr:hover { background: var(--bg3); }
table.lvl td {
  padding: 12px 16px; color: var(--text-body);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
table.lvl td.strong { color: var(--text-head); font-weight: 500; }
table.lvl tfoot td {
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-weight: 600; color: var(--text-head);
  background: var(--bg2);
}

/* ── Alerts / Banners ────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.55;
  border: 1px solid transparent;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-warn { background: var(--yellow-bg); color: var(--text-body); border-color: rgba(255,230,0,0.2); }
.alert-warn svg { color: var(--yellow); }
.alert-success { background: var(--green-bg); color: var(--text-body); border-color: rgba(34,197,94,0.2); }
.alert-success svg { color: var(--green); }
.alert-error { background: var(--red-bg); color: var(--text-body); border-color: rgba(239,68,68,0.2); }
.alert-error svg { color: var(--red); }
.alert-info { background: var(--blue-bg); color: var(--text-body); border-color: rgba(96,165,250,0.2); }
.alert-info svg { color: var(--blue); }

/* Renewal banner (sticky, full-width) */
.renewal-banner {
  background: var(--yellow-bg);
  border-bottom: 1px solid rgba(255,230,0,0.15);
  padding: 10px var(--container-px, 24px);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-body);
}
.renewal-banner strong { color: var(--yellow); }
.renewal-banner .btn-sm { margin-left: auto; flex-shrink: 0; }

/* ── Toast notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-size: 13px; color: var(--text-body);
  max-width: 340px; pointer-events: all;
  animation: toastIn 0.25s ease forwards;
}
.toast.out { animation: toastOut 0.2s ease forwards; }
.toast-icon { flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--blue); }
.toast-warn    { border-left: 3px solid var(--yellow); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(6px); }
}

/* ── Skeleton loader ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--bg3) 0%, var(--bg4) 40%, var(--bg3) 80%);
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 40%; margin-bottom: 12px; }
.skeleton-card {
  height: 100px; border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

/* ── Invoice layout ──────────────────────────────────────────── */
.invoice-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px;
  max-width: 680px;
}
.invoice-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.invoice-num {
  font-family: var(--fm); font-size: 13px; color: var(--yellow);
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.invoice-title { font-size: 24px; font-weight: 700; color: var(--text-head); }
.invoice-meta { font-size: 12px; color: var(--text-muted); line-height: 2; text-align: right; }
.invoice-to { margin-bottom: 24px; }
.invoice-to-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.invoice-to-name { font-size: 15px; font-weight: 600; color: var(--text-head); }
.invoice-total-row {
  display: flex; justify-content: flex-end;
  padding: 16px 0; gap: 40px;
}
.invoice-total-label { font-size: 12px; color: var(--text-muted); }
.invoice-total-value { font-size: 22px; font-weight: 700; color: var(--text-head); font-variant-numeric: tabular-nums; }
.invoice-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* MercadoPago button */
.btn-mp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #009EE3; color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: var(--r-md);
  border: none; cursor: pointer;
  transition: opacity var(--t-base), transform var(--t-base);
  text-decoration: none;
}
.btn-mp:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-mp-logo {
  width: 24px; height: 24px; background: #fff;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Auth split layout ───────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: linear-gradient(145deg, #0D0E10 0%, #111316 100%);
  border-right: 1px solid var(--border);
  padding: 48px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: 'LVL';
  position: absolute; bottom: -20px; left: -10px;
  font-size: 200px; font-weight: 900; letter-spacing: -0.06em;
  color: rgba(255,230,0,0.04); line-height: 1;
  pointer-events: none; user-select: none;
}
.auth-brand-content { margin-top: auto; }
.auth-brand h2 {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-head); line-height: 1.1;
  text-wrap: balance; margin-bottom: 12px;
}
.auth-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.auth-form-pane {
  padding: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.auth-form-inner { width: 100%; max-width: 380px; }
.auth-form-title { font-size: 22px; font-weight: 700; color: var(--text-head); margin-bottom: 6px; }
.auth-form-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

@media (max-width: 700px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-pane { padding: 32px 24px; }
}

/* ── Checkout steps ──────────────────────────────────────────── */
.checkout-steps {
  display: flex; align-items: center;
  margin-bottom: 32px; gap: 0;
}
.step {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
}
.step:not(:last-child)::after {
  content: ''; display: block; flex: 1;
  height: 1px; background: var(--border); margin: 0 8px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); flex-shrink: 0;
  transition: all var(--t-base);
}
.step.active .step-num {
  background: var(--yellow); border-color: var(--yellow);
  color: #0A0A0A;
}
.step.done .step-num {
  background: var(--green-bg); border-color: var(--green);
  color: var(--green);
}
.step-label { font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--text-head); }
.step.done .step-label { color: var(--green); }

/* ── Ticket thread ───────────────────────────────────────────── */
.ticket-message {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ticket-message:last-child { border-bottom: none; }
.ticket-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0;
}
.ticket-avatar.staff { background: var(--yellow-bg); color: var(--yellow); border-color: rgba(255,230,0,0.2); }
.ticket-msg-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.ticket-msg-name { font-size: 13px; font-weight: 600; color: var(--text-head); }
.ticket-msg-time { font-size: 11px; color: var(--text-muted); }
.ticket-msg-body { font-size: 13px; color: var(--text-body); line-height: 1.65; }

/* ── Page hero (logged-out home) ─────────────────────────────── */
.home-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(255,230,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--yellow);
  border: 1px solid rgba(255,230,0,0.25);
  border-radius: var(--r-pill); padding: 4px 12px;
  margin-bottom: 20px;
}
.home-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-head); text-wrap: balance;
  line-height: 1.06; margin-bottom: 16px;
}
.home-hero h1 em { font-style: normal; color: var(--yellow); }
.home-hero p {
  font-size: 16px; color: var(--text-muted); max-width: 520px;
  margin: 0 auto 32px; line-height: 1.7;
}
.home-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Preloader ───────────────────────────────────────────────── */
#lvl-loader {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.35s ease;
}
#lvl-loader.hidden { opacity: 0; pointer-events: none; }
.loader-mark {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; width: 36px; height: 36px;
}
.loader-mark span { border-radius: 3px; }
.loader-mark span:nth-child(1) { background: var(--yellow); animation: loaderPulse 1.2s ease-in-out infinite; }
.loader-mark span:nth-child(2) { background: transparent; border: 1.5px solid var(--yellow); animation: loaderPulse 1.2s ease-in-out infinite 0.15s; }
.loader-mark span:nth-child(3) { background: transparent; border: 1.5px solid var(--yellow); animation: loaderPulse 1.2s ease-in-out infinite 0.3s; }
.loader-mark span:nth-child(4) { background: var(--yellow); animation: loaderPulse 1.2s ease-in-out infinite 0.45s; }

@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.loader-bar {
  width: 80px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%; background: var(--yellow);
  animation: loaderFill 1.2s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ── Reveal animations ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────────────── */
.lvl-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-text { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-dim); text-decoration: none; transition: color var(--t-base); }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 11px; color: var(--text-dim); }

/* ── Utility helpers ─────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-muted { color: var(--text-muted); }
.text-head  { color: var(--text-head); }
.text-yellow { color: var(--yellow); }
.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.fw-600   { font-weight: 600; }
.fw-700   { font-weight: 700; }
.mono     { font-family: var(--fm); }
.divider  { height: 1px; background: var(--border); margin: 20px 0; }
.w-full   { width: 100%; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Print styles ────────────────────────────────────────────── */
@media print {
  .lvl-nav-outer, .sidebar, .lvl-footer,
  .btn-mp, .invoice-actions .btn-ghost,
  .renewal-banner, #lvl-loader { display: none !important; }
  body { background: #fff; color: #000; }
  .invoice-box { border: none; padding: 0; box-shadow: none; }
  .invoice-title, .invoice-to-name { color: #000; }
  table.lvl td, table.lvl th { border: 1px solid #ccc; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   BOOTSTRAP 3 COMPATIBILITY — Overrides Bootstrap with our tokens
   (Bootstrap CSS is loaded via includes/head.tpl as WHMCS base)
   ════════════════════════════════════════════════════════════════ */

/* Layout wrappers (sidebar + main) */
.lvl-content-wrap { padding: 24px; max-width: var(--max-w); margin: 0 auto; }
.lvl-content-wrap.has-sidebar { display: flex; gap: 24px; align-items: flex-start; }
.lvl-sidebar { width: 220px; flex-shrink: 0; }
.lvl-main { flex: 1; min-width: 0; }
.lvl-page-header { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.lvl-page-title { font-size: 22px; font-weight: 700; color: var(--text-head); margin: 0; }
.lvl-page-title .lvl-page-desc,
.lvl-page-title small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.lvl-subheader { font-size: 16px; font-weight: 600; color: var(--text-head); margin: 20px 0 12px; }
@media (max-width: 900px) {
  .lvl-content-wrap.has-sidebar { flex-direction: column; }
  .lvl-sidebar { width: 100%; }
  .lvl-content-wrap { padding: 16px; }
}

/* Bootstrap body/typography reset (dark override) */
body { background-color: var(--bg) !important; color: var(--text-body) !important;
       font-family: var(--ff) !important; }
a { color: var(--yellow); }
a:hover { color: var(--yellow); opacity: 0.8; }
h1,h2,h3,h4,h5,h6 { color: var(--text-head); font-family: var(--ff); }
p { color: var(--text-body); }
label { color: var(--text-body); font-size: 13px; }
small { color: var(--text-muted); }
hr { border-color: var(--border); }

/* form-control (Bootstrap input) → our form-input style */
.form-control {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text-body) !important;
  font-family: var(--ff) !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  display: block; width: 100%; box-sizing: border-box;
}
.form-control:focus {
  border-color: var(--yellow) !important;
  background: var(--bg2) !important;
  box-shadow: 0 0 0 3px var(--yellow-bg) !important;
  outline: none !important;
  color: var(--text-head) !important;
}
.form-control::placeholder { color: var(--text-dim) !important; }
.input-lg { font-size: 15px !important; padding: 12px 16px !important; }
.has-error .form-control { border-color: var(--red) !important; }
.has-success .form-control { border-color: var(--green) !important; }
.has-warning .form-control { border-color: var(--orange) !important; }
.help-block { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Bootstrap alerts → our alert tokens */
.alert {
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--border) !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
}
.alert-danger, .alert-error { background: var(--red-bg) !important; border-color: rgba(239,68,68,0.25) !important; color: var(--text-body) !important; }
.alert-warning { background: var(--yellow-bg) !important; border-color: rgba(255,230,0,0.25) !important; color: var(--text-body) !important; }
.alert-success { background: var(--green-bg) !important; border-color: rgba(34,197,94,0.25) !important; color: var(--text-body) !important; }
.alert-info { background: var(--blue-bg) !important; border-color: rgba(96,165,250,0.25) !important; color: var(--text-body) !important; }

/* Bootstrap buttons */
.btn-default {
  background: var(--bg3) !important; border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important; color: var(--text-body) !important;
  font-family: var(--ff) !important; font-size: 13px !important; font-weight: 500 !important;
  padding: 7px 14px !important; cursor: pointer;
  transition: all 0.15s !important; display: inline-flex; align-items: center; gap: 6px;
}
.btn-default:hover, .btn-default:focus { background: var(--bg4) !important; border-color: var(--border-hi) !important; color: var(--text-head) !important; text-decoration: none !important; }
.btn-success { background: var(--green) !important; border-color: var(--green) !important; color: #0A0A0A !important; font-weight: 600 !important; }
.btn-success:hover { opacity: 0.88 !important; }
.btn-danger { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.btn-block { display: flex !important; width: 100% !important; justify-content: center; }
.btn-lg { font-size: 15px !important; padding: 12px 20px !important; }
.btn-xs, .btn-sm { font-size: 11px !important; padding: 5px 10px !important; }

/* Bootstrap panels → our card style */
.panel, .panel-default, .panel-primary { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; margin-bottom: 16px; }
.panel-heading { padding: 10px 16px !important; border-bottom: 1px solid var(--border) !important; background: var(--bg3) !important; border-radius: var(--r-lg) var(--r-lg) 0 0 !important; }
.panel-title { font-size: 13px !important; font-weight: 600 !important; color: var(--text-head) !important; margin: 0 !important; }
.panel-body { padding: 16px !important; color: var(--text-body) !important; }
.panel-footer { padding: 10px 16px !important; border-top: 1px solid var(--border) !important; background: var(--bg3) !important; border-radius: 0 0 var(--r-lg) var(--r-lg) !important; }
.panel-sidebar .panel-heading { background: transparent !important; }

/* Bootstrap list-group */
.list-group { border-radius: var(--r-md) !important; overflow: hidden; border: none !important; }
.list-group-item {
  background: transparent !important; border: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 9px 14px !important; color: var(--text-body) !important;
  font-size: 13px !important; display: block; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.list-group-item:last-child { border-bottom: none !important; }
.list-group-item:hover { background: var(--bg3) !important; color: var(--text-head) !important; }
.list-group-item.active { background: var(--bg3) !important; color: var(--yellow) !important; border-left: 2px solid var(--yellow) !important; }
.list-group-item.disabled { opacity: 0.45; pointer-events: none; }
.list-group-item .badge { float: right; background: var(--bg4); color: var(--text-muted); }

/* Bootstrap labels/badges */
.label {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.4;
}
.badge { background: var(--bg4); color: var(--text-muted); border-radius: var(--r-pill); padding: 2px 8px; font-size: 10px; font-weight: 600; }
.label-default, .label-placeholder { background: var(--bg4); color: var(--text-muted); }
.label-primary { background: var(--yellow-bg); color: var(--yellow); }
.label-success, .label-active { background: var(--green-bg) !important; color: var(--green) !important; }
.label-danger, .label-suspended, .label-terminated { background: var(--red-bg) !important; color: var(--red) !important; }
.label-warning, .label-pending { background: var(--yellow-bg) !important; color: var(--yellow) !important; }
.label-info { background: var(--blue-bg); color: var(--blue); }

/* Bootstrap progress */
.progress { background: var(--bg3) !important; border-radius: var(--r-pill) !important; height: 8px !important; margin-bottom: 12px; overflow: hidden; box-shadow: none !important; }
.progress-bar { background: var(--yellow) !important; height: 100%; transition: width 0.3s; }
.progress-bar-danger  { background: var(--red) !important; }
.progress-bar-warning { background: var(--orange) !important; }
.progress-bar-success { background: var(--green) !important; }

/* Bootstrap table */
.table { color: var(--text-body) !important; }
.table th { color: var(--text-muted) !important; font-size: 11px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border) !important; background: var(--bg2); }
.table td { border-top: 1px solid var(--border) !important; color: var(--text-body) !important; font-size: 13px; }
.table-striped > tbody > tr:nth-child(odd) > td { background: rgba(255,255,255,0.02) !important; }
.table > thead > tr > th, .table > tbody > tr > td { border-color: var(--border) !important; }
.table-responsive { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

/* Bootstrap modals */
.modal-content { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important; }
.modal-header { padding: 14px 20px !important; border-bottom: 1px solid var(--border) !important; background: var(--bg3) !important; border-radius: var(--r-lg) var(--r-lg) 0 0 !important; }
.modal-title { font-size: 15px !important; font-weight: 600 !important; color: var(--text-head) !important; }
.modal-body { padding: 20px !important; color: var(--text-body) !important; }
.modal-footer { padding: 12px 20px !important; border-top: 1px solid var(--border) !important; background: var(--bg3) !important; display: flex; gap: 8px; justify-content: flex-end; border-radius: 0 0 var(--r-lg) var(--r-lg) !important; }
.modal-backdrop { background: rgba(0,0,0,0.7) !important; }

/* Bootstrap nav tabs */
.nav-tabs { border-bottom: 1px solid var(--border) !important; }
.nav-tabs > li > a { color: var(--text-muted) !important; border: none !important; border-bottom: 2px solid transparent !important; padding: 10px 16px !important; font-size: 13px; background: transparent !important; transition: color 0.15s; }
.nav-tabs > li > a:hover { color: var(--text-head) !important; background: transparent !important; border-color: transparent !important; }
.nav-tabs > li.active > a { color: var(--yellow) !important; border-bottom-color: var(--yellow) !important; background: transparent !important; }

/* Bootstrap navbar (six's secondary navbar — we hide it; we use our own) */
#nav { display: none !important; }
#header { display: none !important; }

/* Bootstrap wells */
.well { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; box-shadow: none !important; }

/* Bootstrap dropdown menus */
.dropdown-menu { background: var(--bg2) !important; border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important; padding: 4px !important; }
.dropdown-menu > li > a { color: var(--text-body) !important; padding: 7px 12px !important; font-size: 13px; border-radius: var(--r-xs); display: block; }
.dropdown-menu > li > a:hover, .dropdown-menu > .active > a { background: var(--bg3) !important; color: var(--text-head) !important; }

/* Checkbox/radio */
.checkbox label, .radio label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* Input group */
.input-group .form-control { border-radius: var(--r-sm) 0 0 var(--r-sm) !important; }
.input-group-btn > .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }

/* Bootstrap close btn */
button.close, .close { background: none !important; border: none !important; color: var(--text-muted) !important; opacity: 1 !important; font-size: 18px; cursor: pointer; }
button.close:hover, .close:hover { color: var(--text-head) !important; }

/* Bootstrap breadcrumb */
ol.breadcrumb { background: transparent !important; padding: 0 !important; margin: 8px 0 0 !important; display: flex; gap: 6px; list-style: none; flex-wrap: wrap; font-size: 12px; }
ol.breadcrumb > li { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
ol.breadcrumb > li > a { color: var(--text-dim); text-decoration: none; }
ol.breadcrumb > li > a:hover { color: var(--text-muted); }
ol.breadcrumb > li + li::before { content: '/'; color: var(--text-dim); padding: 0; }
ol.breadcrumb > .active { color: var(--text-muted); }

/* Bootstrap grid body background */
.row { margin-left: -12px; margin-right: -12px; }
.row::after { content: ''; display: table; clear: both; }
[class*="col-"] { padding-left: 12px; padding-right: 12px; }
.container-fluid { padding: 0 16px; }

/* Six-specific UI elements */
.logincontainer { max-width: 500px; margin: 32px auto; padding: 0; }
.header-lined { padding: 20px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.header-lined h1 { font-size: 20px; font-weight: 700; color: var(--text-head); margin: 0; }
.header-lined h1 small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.sub-heading { margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sub-heading span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sub-heading-borderless { margin: 16px 0 8px; }
.sub-heading-borderless span { font-size: 12px; color: var(--text-muted); }
/* Verification banner — override Bootstrap columns para nuestro diseño */
.verification-banner,
.email-verification {
  background: rgba(96,165,250,0.08);
  border-bottom: 1px solid rgba(96,165,250,0.18);
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-body);
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.verification-banner .container,
.email-verification .container { width: 100%; max-width: var(--max-w); margin: 0 auto; }
.verification-banner .row,
.email-verification .row { display: flex; align-items: center; gap: 10px; width: 100%; }
/* Ocultar col-xs offsets que rompen layout en nuestro template */
.verification-banner [class*="col-xs-push"],
.verification-banner [class*="col-sm-push"],
.verification-banner [class*="col-xs-pull"],
.verification-banner [class*="col-sm-pull"] { display: none; }
/* Reposicionar el botón de cierre */
.verification-banner .close,
.email-verification .close { margin-left: auto; opacity: 0.6; }
.verification-banner .close:hover { opacity: 1; }
/* Botón "reenviar email" */
.btn-resend-verify-email {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-resend-verify-email:hover { background: var(--bg4); }
.margin-bottom { margin-bottom: 16px; }
.top-margin-10 { margin-top: 10px; }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--yellow) !important; }
.font-weight-bold { font-weight: 600; }
.pull-right { float: right; }
.pull-left { float: left; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Tiles (six clientareahome) */
.tiles { margin-bottom: 24px; }
.tile a { display: block; padding: 20px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); text-align: center; text-decoration: none; transition: all 0.15s; margin-bottom: 8px; }
.tile a:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.tile .icon { font-size: 22px; color: var(--text-muted); margin-bottom: 8px; }
.tile .stat { font-size: 32px; font-weight: 800; color: var(--text-head); line-height: 1; font-variant-numeric: tabular-nums; }
.tile .title { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.highlight { height: 3px; border-radius: 0 0 4px 4px; margin-top: 10px; }
.bg-color-blue { background: var(--blue); }
.bg-color-green { background: var(--green); }
.bg-color-red { background: var(--red); }
.bg-color-gold { background: var(--yellow); }
.home-kb-search { position: relative; }
.home-kb-search .fas { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }

/* Service item */
.div-service-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
.div-service-item:hover { background: var(--bg3); }
.div-service-status { min-width: 80px; }
.div-service-name { flex: 1; }
.div-service-name .font-weight-bold { font-size: 13px; font-weight: 600; color: var(--text-head); display: block; }
.div-service-name .text-domain { font-size: 12px; color: var(--text-muted); display: block; }
.div-service-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-view-details { white-space: nowrap; }

/* Section#main-body from six's structure (we use our layout, hide six's section nav) */
section#main-menu { display: none !important; }
#home-banner { display: none !important; }
.home-shortcuts { display: none !important; }

/* Six providerPreLinking (social login) */
.social-signin-btns { display: flex; flex-direction: column; gap: 8px; }
.providerLinkingFeedback { margin: 8px 0; font-size: 13px; color: var(--text-body); }

/* Form group utility */
.form-group { margin-bottom: 14px; }
.form-group .control-label { font-size: 13px; color: var(--text-body); margin-bottom: 4px; display: block; }
.form-horizontal .control-label { padding-top: 8px; }
.required-field { color: var(--red); }

/* ── DataTables & WHMCS tables — comprehensive dark override ── */

/* Wrapper base */
.dataTables_wrapper { color: var(--text-body); font-size: 13px; }
.dataTables_wrapper .dataTables_info { color: var(--text-muted) !important; font-size: 12px; padding-top: 10px; }

/* Controls — length + filter */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--text-muted) !important; margin-bottom: 10px; }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { color: var(--text-muted) !important; font-size: 12px; }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg3) !important;
  border: 1px solid var(--border-hi) !important;
  color: var(--text-body) !important;
  border-radius: var(--r-sm) !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  outline: none !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 2px rgba(255,230,0,.12) !important;
}

/* Table itself */
table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
  border-radius: var(--r-md) !important;
  overflow: hidden !important;
}

/* THEAD */
table.dataTable thead tr { background: var(--bg3) !important; border-bottom: 1px solid var(--border-hi) !important; }
table.dataTable thead th,
table.dataTable thead td {
  color: var(--text-muted) !important;
  background: var(--bg3) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--border-hi) !important;
  border-right: none !important;
  border-left: none !important;
  white-space: nowrap;
}
table.dataTable thead th:hover { color: var(--text-head) !important; }

/* Sorting icons — sin el icono negro por defecto */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-image: none !important;
  cursor: pointer;
}
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
  font-family: inherit; font-size: 10px; margin-left: 4px;
  opacity: .4; color: var(--text-muted);
}
table.dataTable thead .sorting::after       { content: ' ↕'; }
table.dataTable thead .sorting_asc::after   { content: ' ↑'; opacity: .8; color: var(--yellow); }
table.dataTable thead .sorting_desc::after  { content: ' ↓'; opacity: .8; color: var(--yellow); }

/* TBODY rows */
table.dataTable tbody tr {
  background: var(--bg2) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: background var(--t-fast);
}
table.dataTable tbody tr:hover,
table.dataTable tbody tr.odd:hover,
table.dataTable tbody tr.even:hover {
  background: var(--bg3) !important;
}
table.dataTable tbody tr.odd  { background: var(--bg2) !important; }
table.dataTable tbody tr.even { background: rgba(255,255,255,.02) !important; }

/* TBODY cells */
table.dataTable tbody td,
table.dataTable tbody th {
  color: var(--text-body) !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  border-top: none !important;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle !important;
}
table.dataTable tbody td a { color: var(--yellow) !important; text-decoration: none; }
table.dataTable tbody td a:hover { color: #fff !important; text-decoration: underline; }
table.dataTable tbody .dataTables_empty {
  color: var(--text-muted) !important;
  text-align: center !important;
  padding: 32px !important;
  font-size: 13px !important;
}

/* Pagination */
.dataTables_paginate { padding-top: 10px !important; }
.dataTables_paginate .paginate_button {
  background: var(--bg3) !important;
  border: 1px solid var(--border-hi) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text-body) !important;
  padding: 4px 10px !important;
  margin: 0 2px !important;
  font-size: 12px !important;
  cursor: pointer;
  transition: background var(--t-fast);
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
  background: var(--yellow-bg) !important;
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
}
.dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: var(--bg4) !important;
  color: var(--text-head) !important;
}
.dataTables_paginate .paginate_button.disabled {
  opacity: .35 !important;
  cursor: not-allowed !important;
}

/* ── Bootstrap panels (filtros "Ver", panels laterales) ───────── */
.panel {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}
.panel-heading {
  background: var(--bg3) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  color: var(--text-head) !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}
.panel-heading .glyphicon,
.panel-heading .fa { color: var(--yellow); margin-right: 6px; }
.panel-body { color: var(--text-body) !important; padding: 14px 16px !important; }

/* Filtro "Ver" — radio buttons */
.panel-body .radio,
.panel-body .checkbox { color: var(--text-body) !important; margin: 4px 0 !important; }
.panel-body .radio label,
.panel-body .checkbox label {
  color: var(--text-body) !important;
  font-size: 13px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-left: 0 !important;
}
.panel-body .radio input[type=radio],
.panel-body .checkbox input[type=checkbox] {
  accent-color: var(--yellow);
  width: 14px; height: 14px;
  flex-shrink: 0;
  position: static !important;
  margin: 0 !important;
}
/* Badge con el count (el 0 junto a Abierto, Respondido, etc.) */
.panel-body .badge {
  background: var(--bg4) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  padding: 2px 7px !important;
  border-radius: var(--r-pill) !important;
  float: right;
}

/* ── Bootstrap .table complementario (WHMCS usa ambos) ────────── */
.table { color: var(--text-body) !important; border-color: var(--border) !important; }
.table > thead > tr > th {
  color: var(--text-muted) !important;
  background: var(--bg3) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  border-bottom: 1px solid var(--border-hi) !important;
  padding: 11px 14px !important;
}
.table > tbody > tr > td {
  border-top: 1px solid var(--border) !important;
  color: var(--text-body) !important;
  font-size: 13px;
  vertical-align: middle;
  padding: 12px 14px !important;
}
.table > tbody > tr:hover > td { background: var(--bg3) !important; }
.table-striped > tbody > tr:nth-child(odd) > td { background: rgba(255,255,255,.02) !important; }
.table > thead > tr > th,
.table > tbody > tr > td { border-color: var(--border) !important; }
.table-responsive { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════════
   LEVELUPERU 2026 — GLASS SYSTEM + TABLE NUCLEAR OVERRIDE
   Glassmorphism dark + yellow accent · máxima especificidad
   ══════════════════════════════════════════════════════════════ */

/* ── Glass mixin tokens ──────────────────────────────────────── */
:root {
  --glass-bg:        rgba(17, 18, 20, 0.72);
  --glass-bg-hi:     rgba(25, 25, 28, 0.85);
  --glass-border:    rgba(255, 255, 255, 0.07);
  --glass-border-hi: rgba(255, 230, 0,  0.18);
  --glass-blur:      blur(18px) saturate(160%);
  --glass-shadow:    0 4px 32px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.04) inset;
}

/* ── Glass panel base — aplica a .panel + elementos WHMCS ──── */
.panel,
.portlet,
.widget,
.box,
.lvl-card {
  background:          var(--glass-bg)     !important;
  backdrop-filter:     var(--glass-blur)   !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border:  1px solid   var(--glass-border) !important;
  border-radius:       var(--r-lg)         !important;
  box-shadow:          var(--glass-shadow) !important;
  color:               var(--text-body)    !important;
}
.panel-heading {
  background:    rgba(255,255,255,.04) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color:         var(--text-head) !important;
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  padding:       11px 16px !important;
  font-size:     11px !important;
  font-weight:   700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}
.panel-body {
  padding: 14px 16px !important;
  color:   var(--text-body) !important;
}

/* ── Glass table wrapper ─────────────────────────────────────── */
.dataTables_wrapper,
.table-responsive,
div[class*="dataTables"] {
  background: transparent !important;
}

/* Contenedor visual alrededor de la tabla (si lo hay) */
.dataTables_wrapper > .row:first-child,
.dataTables_wrapper > .row:last-child {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  padding: 10px 14px !important;
  margin: 0 !important;
}
.dataTables_wrapper > .row:first-child {
  border-bottom: none !important;
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
}
.dataTables_wrapper > .row:last-child {
  border-top: none !important;
  border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-muted) !important;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info { color: var(--text-muted) !important; font-size: 12px !important; }

/* ── NUCLEAR TABLE OVERRIDE — pisa cualquier theme de six ───── */
/* Aplica a toda tabla dentro del wrapper, con especificidad máxima */
div.dataTables_wrapper table,
div.dataTables_wrapper table thead,
div.dataTables_wrapper table tbody,
div.dataTables_wrapper table tfoot,
div.dataTables_wrapper table tr,
div.dataTables_wrapper table th,
div.dataTables_wrapper table td,
.table,
.table thead,
.table tbody,
.table tr,
.table th,
.table td {
  background-color: transparent !important;
}

/* Ahora reponemos colores específicos */
div.dataTables_wrapper table { background: var(--bg2) !important; border: 1px solid var(--glass-border) !important; border-radius: 0 0 var(--r-lg) var(--r-lg) !important; overflow: hidden; }

div.dataTables_wrapper table thead tr,
div.dataTables_wrapper table thead th {
  background: var(--bg3) !important;
  color:       var(--text-muted) !important;
  font-size:   11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  padding:    12px 14px !important;
  border-bottom: 1px solid var(--border-hi) !important;
  border-right:  none !important;
  border-left:   none !important;
  white-space: nowrap;
}

/* Sorting icons — reemplaza los triángulos negros */
div.dataTables_wrapper table thead th.sorting::after      { content: ' ↕'; color: var(--text-dim); font-size: 9px; margin-left: 4px; }
div.dataTables_wrapper table thead th.sorting_asc::after  { content: ' ↑'; color: var(--yellow);   font-size: 9px; margin-left: 4px; }
div.dataTables_wrapper table thead th.sorting_desc::after { content: ' ↓'; color: var(--yellow);   font-size: 9px; margin-left: 4px; }
div.dataTables_wrapper table thead th.sorting,
div.dataTables_wrapper table thead th.sorting_asc,
div.dataTables_wrapper table thead th.sorting_desc { background-image: none !important; }

/* TBODY rows */
div.dataTables_wrapper table tbody tr {
  background:    var(--bg2) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: background var(--t-fast);
}
div.dataTables_wrapper table tbody tr.odd  { background: var(--bg2) !important; }
div.dataTables_wrapper table tbody tr.even { background: rgba(255,255,255,.018) !important; }
div.dataTables_wrapper table tbody tr:hover,
div.dataTables_wrapper table tbody tr.odd:hover,
div.dataTables_wrapper table tbody tr.even:hover { background: var(--bg3) !important; }

div.dataTables_wrapper table tbody td,
div.dataTables_wrapper table tbody th {
  color:          var(--text-body) !important;
  padding:        13px 14px !important;
  font-size:      13px !important;
  border-top:     none !important;
  border-bottom:  1px solid var(--border) !important;
  vertical-align: middle !important;
}
div.dataTables_wrapper table tbody td a { color: var(--yellow) !important; text-decoration: none; font-weight: 500; }
div.dataTables_wrapper table tbody td a:hover { color: #fff !important; }

/* Empty state */
div.dataTables_wrapper table tbody td.dataTables_empty,
div.dataTables_wrapper table tbody tr td:only-child {
  background:  var(--bg2) !important;
  color:       var(--text-muted) !important;
  text-align:  center !important;
  padding:     40px 20px !important;
  font-size:   13px !important;
  border:      none !important;
  font-style:  italic;
}

/* Bootstrap .table fix (para las que no son DataTables) */
.table > thead > tr > th {
  background:     var(--bg3) !important;
  color:          var(--text-muted) !important;
  border-bottom:  1px solid var(--border-hi) !important;
  font-size:      11px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .07em !important;
  padding:        12px 14px !important;
}
.table > tbody > tr { background: transparent !important; }
.table > tbody > tr > td {
  background:    transparent !important;
  color:         var(--text-body) !important;
  border-top:    1px solid var(--border) !important;
  padding:       12px 14px !important;
  vertical-align: middle !important;
}
.table > tbody > tr:hover > td { background: var(--bg3) !important; }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: rgba(255,255,255,.02) !important; }

/* ── Panel "Ver" / filtro lateral — glass refinado ──────────── */
.panel-body .radio label,
.panel-body .checkbox label {
  color:       var(--text-body) !important;
  font-size:   13px !important;
  display:     flex !important;
  align-items: center !important;
  gap:         8px !important;
  padding:     4px 0 !important;
  cursor:      pointer;
  transition:  color var(--t-fast);
}
.panel-body .radio label:hover,
.panel-body .checkbox label:hover { color: var(--text-head) !important; }
.panel-body .radio input[type=radio],
.panel-body .checkbox input[type=checkbox] {
  accent-color:  var(--yellow) !important;
  width: 14px; height: 14px;
  flex-shrink: 0;
  position: static !important;
  margin: 0 !important;
}
.panel-body .badge {
  background:    var(--bg4) !important;
  color:         var(--text-muted) !important;
  font-size:     10px !important;
  padding:       2px 7px !important;
  border-radius: var(--r-pill) !important;
  min-width:     20px;
  text-align:    center;
  float: right;
  font-weight: 600;
}

/* ── Paginación glassmorphism ─────────────────────────────────── */
.dataTables_paginate .paginate_button {
  background:    rgba(255,255,255,.06) !important;
  border:        1px solid var(--glass-border) !important;
  border-radius: var(--r-sm) !important;
  color:         var(--text-body) !important;
  padding:       5px 11px !important;
  margin:        0 2px !important;
  font-size:     12px !important;
  cursor: pointer;
  backdrop-filter: blur(4px) !important;
  transition:    background var(--t-fast), color var(--t-fast);
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
  background:  var(--yellow-bg) !important;
  border-color: var(--yellow) !important;
  color:        var(--yellow) !important;
  font-weight:  700 !important;
}
.dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  background: rgba(255,255,255,.1) !important;
  color:      var(--text-head) !important;
}
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
  opacity: .3 !important; cursor: default !important;
  background: transparent !important;
}

/* ── Select / input glass ─────────────────────────────────────── */
.dataTables_wrapper select,
.dataTables_wrapper input[type=search] {
  background:    rgba(255,255,255,.06) !important;
  border:        1px solid var(--glass-border-hi) !important;
  color:         var(--text-body) !important;
  border-radius: var(--r-sm) !important;
  padding:       5px 10px !important;
  font-size:     12px !important;
  font-family:   var(--ff) !important;
  backdrop-filter: blur(4px);
  outline: none !important;
  transition: border-color var(--t-base);
}
.dataTables_wrapper input[type=search]:focus {
  border-color: var(--yellow) !important;
  box-shadow:   0 0 0 3px rgba(255,230,0,.12) !important;
}

/* ── Product details page (clientareaproductdetails.tpl) ────── */
.product-details { padding: 0; }
.product-status {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-lg) !important;
  padding: 24px !important; margin-bottom: 16px !important;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.product-status .product-icon .fa-stack { font-size: 1.4em; }
.product-status .fa-stack-2x { color: var(--yellow-bg) !important; }
.product-status .fa-stack-1x { color: var(--yellow) !important; }
.product-status h3 { color: var(--text-head) !important; font-size: 17px !important; font-weight: 700 !important; margin: 10px 0 2px !important; }
.product-status h4 { color: var(--text-muted) !important; font-size: 12px !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: .07em; }
.product-status-text { text-align: center; margin-top: 8px; }
.product-status-active    .product-status-text { color: var(--green) !important; }
.product-status-suspended .product-status-text { color: var(--orange) !important; }
.product-status-cancelled .product-status-text { color: var(--red) !important; }
.product-actions-wrapper { margin-top: 14px !important; }
.product-actions-wrapper .col-xs-12 { margin-bottom: 6px !important; }
/* Los botones de acción del servicio */
.product-actions-wrapper .btn-success { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.product-actions-wrapper .btn-primary { background: var(--yellow) !important; border-color: var(--yellow) !important; color: #0A0A0A !important; }
.product-actions-wrapper .btn-danger  { background: var(--red-bg) !important; border-color: var(--red) !important; color: var(--red) !important; }
/* Encabezados de detalles tipo "Fecha de registro" */
.product-details h4 { color: var(--text-muted) !important; font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .07em !important; margin: 14px 0 4px !important; }
/* Tablas dentro de product-details */
.product-info-box { background: var(--glass-bg) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--r-lg) !important; overflow: hidden !important; }
.product-info-box .product-info-box-row { border-bottom: 1px solid var(--border) !important; }
.product-info-box .product-info-box-value { color: var(--text-head) !important; font-size: 13px !important; font-weight: 500 !important; }

/* ── Service tab nav (pestañas del servicio) ──────────────── */
.nav-tabs { border-bottom: 1px solid var(--border) !important; margin-bottom: 20px !important; }
.nav-tabs > li > a {
  color: var(--text-muted) !important; background: transparent !important;
  border: none !important; border-bottom: 2px solid transparent !important;
  padding: 9px 16px !important; font-size: 13px !important; font-weight: 600 !important;
  border-radius: 0 !important; transition: color var(--t-base), border-color var(--t-base) !important;
}
.nav-tabs > li > a:hover { color: var(--text-head) !important; border-bottom-color: var(--border-hi) !important; background: transparent !important; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: var(--yellow) !important; background: transparent !important;
  border: none !important; border-bottom: 2px solid var(--yellow) !important;
}
.tab-content { padding-top: 4px; }

/* ── Alertas WHMCS (Bootstrap) ───────────────────────────── */
.alert {
  border-radius: var(--r-lg) !important; border: 1px solid !important;
  font-size: 13px !important; padding: 12px 16px !important;
}
.alert-success { background: var(--green-bg) !important; border-color: var(--green) !important; color: var(--green) !important; }
.alert-warning { background: rgba(255,230,0,.06) !important; border-color: rgba(255,230,0,.3) !important; color: var(--text-head) !important; }
.alert-danger  { background: var(--red-bg) !important; border-color: var(--red) !important; color: var(--red) !important; }
.alert-info    { background: var(--blue-bg) !important; border-color: var(--blue) !important; color: var(--blue) !important; }
.alert .btn-xs { font-size: 11px !important; padding: 4px 10px !important; border-radius: var(--r-sm) !important; }
.alert .pull-right { float: right; margin-left: 16px; }

/* ── Status labels adicionales ───────────────────────────── */
.status-active,   .label-active    { background: var(--green-bg)  !important; color: var(--green)   !important; border: 1px solid var(--green)  !important; }
.status-suspended,.label-suspended  { background: var(--orange-bg) !important; color: var(--orange)  !important; border: 1px solid var(--orange) !important; }
.status-cancelled,.label-cancelled,.label-terminated { background: var(--red-bg) !important; color: var(--red) !important; border: 1px solid var(--red) !important; }
.status-pending,  .label-pending    { background: var(--blue-bg)   !important; color: var(--blue)    !important; border: 1px solid var(--blue)   !important; }
.status-fraud,    .label-fraud      { background: var(--red-bg)    !important; color: var(--red)     !important; border: 1px solid var(--red)    !important; }

/* ── Renewal/Upgrade prominente ──────────────────────────── */
.renewal-info {
  background: rgba(255,230,0,.04) !important;
  border: 1px solid rgba(255,230,0,.15) !important;
  border-radius: var(--r-md) !important; padding: 12px 16px !important;
  margin-bottom: 14px !important; font-size: 13px;
}

/* ── Corrección Bootstrap columns dentro del template ────── */
.row { margin-left: -12px !important; margin-right: -12px !important; }
[class*="col-"] { padding-left: 12px !important; padding-right: 12px !important; }

/* ── Flash message global ────────────────────────────────── */
.alert-success.flashmsg {
  position: fixed; top: calc(var(--nav-h) + 12px); right: 20px; z-index: 9999;
  min-width: 240px; max-width: 380px;
  animation: lvl-slidedown .25s ease both;
}
@keyframes lvl-slidedown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Six's #registration form */
#registration .sub-heading { margin-top: 24px; }

/* Auth brand logo (within auth-brand div) */
.auth-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }

/* WHMCS required attribution text (visible but subtle, per WHMCS license terms) */
.lvl-main > p[style*="text-align:center"],
.page-body > p[style*="text-align:center"] {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.lvl-main > p[style*="text-align:center"] a,
.page-body > p[style*="text-align:center"] a {
  color: var(--text-dim);
  text-decoration: none;
}
.lvl-main > p[style*="text-align:center"] a:hover,
.page-body > p[style*="text-align:center"] a:hover {
  color: var(--text-muted);
}

/* Estilos del carrito/dominio: ver
   templates/orderforms/standard_cart/css/custom.css
   (ese archivo carga despues de all.min.css y si gana la cascada). */


/* ══════════════════════════════════════════════════════════════════════
   PORTAL DEL CLIENTE — componentes de los templates stock de `six`
   ----------------------------------------------------------------------
   82 de 95 .tpl son copia de `six`. Heredan el tema oscuro porque main.css
   carga despues del CSS de six (header.tpl L18 -> L21), pero estos
   componentes propios de WHMCS no estaban cubiertos.

   Afecta: dominios, servicios, tickets, detalle de dominio/servicio.
   ══════════════════════════════════════════════════════════════════════ */

/* ── .table-list — la lista principal (dominios, tickets, servicios) ── */
.table-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
}
.table-container + .table-container { margin-top: 16px; }

.table.table-list { margin: 0 !important; background: transparent !important; }
.table-list > thead > tr > th {
  background: rgba(255,255,255,.03) !important;
  border-bottom: 1px solid var(--border) !important;
  border-top: none !important;
  color: var(--text-dim) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 14px !important;
  white-space: nowrap;
}
.table-list > tbody > tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.table-list > tbody > tr:last-child { border-bottom: none; }
/* Las filas son clicables (onclick en el <tr>) — que se note */
.table-list > tbody > tr[onclick] { cursor: pointer; }
.table-list > tbody > tr:hover > td { background: rgba(255,230,0,.04) !important; }
.table-list > tbody > tr > td {
  background: transparent !important;
  border-top: none !important;
  color: var(--text-body) !important;
  font-size: 13px !important;
  padding: 13px 14px !important;
  vertical-align: middle !important;
}
.table-list > tbody > tr > td a { color: var(--text-head); text-decoration: none; }
.table-list > tbody > tr > td a:hover { color: var(--yellow); }
.table-list input[type=checkbox] { accent-color: var(--yellow); width: 14px; height: 14px; }
/* Estado vacio / cargando */
#tableLoading { color: var(--text-muted); padding: 28px 0; }
#tableLoading .fa-spinner { color: var(--yellow); }
.table-list .dataTables_empty { color: var(--text-dim) !important; padding: 28px !important; }

/* ── Badges de estado — completar los que faltaban ─────────────────── */
.label.status,
span.label.status {
  border-radius: var(--r-pill) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .03em;
  padding: 4px 11px !important;
  display: inline-block;
  white-space: nowrap;
}
/* Servicios / dominios */
.status-terminated, .label-terminated,
.status-expired,    .label-expired    { background: var(--red-bg)    !important; color: var(--red)    !important; border: 1px solid var(--red)    !important; }
/* Tickets */
.status-open,       .label-open       { background: var(--green-bg)  !important; color: var(--green)  !important; border: 1px solid var(--green)  !important; }
.status-answered,   .label-answered   { background: var(--blue-bg)   !important; color: var(--blue)   !important; border: 1px solid var(--blue)   !important; }
.status-customer-reply, .label-customer-reply,
.status-inprogress, .label-inprogress { background: rgba(255,230,0,.10) !important; color: var(--yellow) !important; border: 1px solid rgba(255,230,0,.45) !important; }
.status-onhold,     .label-onhold     { background: var(--orange-bg) !important; color: var(--orange) !important; border: 1px solid var(--orange) !important; }
.status-closed,     .label-closed     { background: var(--bg4)       !important; color: var(--text-muted) !important; border: 1px solid var(--border-hi) !important; }
/* Estado con color propio del admin (style inline) — solo el fondo */
.status-custom { background: rgba(255,255,255,.05) !important; }

/* ── Tickets: numero, asunto, sin leer ─────────────────────────────── */
.ticket-number {
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.ticket-subject { color: var(--text-body); font-weight: 500; }
.ticket-subject.unread,
.table-list a:hover .ticket-subject { color: var(--text-head); }
.ticket-subject.unread {
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}
/* Punto amarillo para los no leidos */
.ticket-subject.unread::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.table-list td a.border-left { border-left: none !important; padding-left: 0 !important; }

/* ── Tabs (detalle de servicio y de dominio) ───────────────────────── */
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }
.tab-content > .tab-pane.fade { opacity: 0; transition: opacity .15s linear; }
.tab-content > .tab-pane.fade.in,
.tab-content > .tab-pane.fade.active { opacity: 1; }

/* ── Dropdown de acciones por fila (dominios) ──────────────────────── */
.btn-group { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:last-child)  { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn + .btn { margin-left: -1px; }

.dropdown-toggle {
  background: var(--bg3) !important;
  border: 1px solid var(--border-hi) !important;
  color: var(--text-body) !important;
}
.dropdown-toggle:hover,
.btn-group.open .dropdown-toggle {
  background: var(--bg4) !important;
  border-color: var(--yellow) !important;
  color: var(--yellow) !important;
}
.caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px dashed currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.dropdown-menu {
  background: rgba(20,20,23,.97) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-hi) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.6) !important;
  padding: 6px !important;
  min-width: 190px;
}
.dropdown-menu > li > a {
  border-radius: var(--r-sm);
  color: var(--text-body) !important;
  font-size: 13px;
  padding: 8px 12px !important;
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: rgba(255,255,255,.07) !important;
  color: var(--text-head) !important;
}
.dropdown-menu .divider { background: var(--border) !important; margin: 5px 0 !important; }
.dropdown-menu > .disabled > a { color: var(--text-dim) !important; opacity: .5; }

/* ── Acciones masivas (checkbox + "aplicar a seleccionados") ───────── */
.setBulkAction { cursor: pointer; }
.btn-group .setBulkAction:hover { color: var(--yellow) !important; }

/* ── Indicador SSL en la lista de dominios ─────────────────────────── */
.ssl-info img { max-width: 18px; height: auto; opacity: .9; }
.ssl-info img:hover { opacity: 1; }

/* ── Glyphicons heredados (six los usa en dominios) ────────────────── */
.table-list .glyphicon { color: var(--text-muted); font-size: 12px; }
.table-list .glyphicon-globe { color: var(--yellow); }

/* ── Tooltips de Bootstrap en tema oscuro ──────────────────────────── */
.tooltip-inner {
  background: #16161a !important;
  border: 1px solid var(--border-hi);
  color: var(--text-head) !important;
  font-size: 11.5px;
  border-radius: var(--r-sm) !important;
  padding: 6px 10px !important;
}
.tooltip.top .tooltip-arrow    { border-top-color: #16161a !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: #16161a !important; }
.tooltip.left .tooltip-arrow   { border-left-color: #16161a !important; }
.tooltip.right .tooltip-arrow  { border-right-color: #16161a !important; }

/* ── La lista nunca debe desbordar el body en movil ────────────────── */
@media (max-width: 767px) {
  .table-container { border-radius: var(--r-lg); }
  .table-list > thead > tr > th,
  .table-list > tbody > tr > td { padding: 10px !important; font-size: 12px !important; }
  .ticket-number { display: block; margin-bottom: 2px; }
}


/* ══════════════════════════════════════════════════════════════════════
   MIS DOMINIOS — clientareadomains.tpl
   ══════════════════════════════════════════════════════════════════════ */

.dom-page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.dom-page-title { color: var(--text-head); font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.dom-page-sub   { color: var(--text-muted); font-size: 13px; margin: 5px 0 0; }
.dom-page-header .btn-primary { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ── Barra de busqueda ── */
.dom-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.dom-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  flex: 1 1 260px; max-width: 340px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.dom-search:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,230,0,.10); }
.dom-search svg   { color: var(--text-dim); flex-shrink: 0; }
.dom-search input {
  background: none; border: none; outline: none; width: 100%;
  color: var(--text-head); font-family: var(--ff); font-size: 13.5px;
}
.dom-search input::placeholder { color: var(--text-dim); }
.dom-count { color: var(--text-dim); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Grid ── */
.dom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 14px;
}

.dom-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 16px 18px 14px;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.dom-card:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.dom-card[hidden] { display: none; }

/* Franja de estado */
.dom-card-stripe { position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--border-hi); }
.dom-card--active    .dom-card-stripe { background: var(--green); }
.dom-card--pending   .dom-card-stripe { background: var(--blue); }
.dom-card--expired   .dom-card-stripe,
.dom-card--cancelled .dom-card-stripe { background: var(--red); }
.dom-card--expiring  .dom-card-stripe { background: var(--yellow); }

.dom-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dom-card-flags { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dom-ssl img { width: 17px; height: auto; display: block; }

/* Checkbox propio */
.dom-check { position: relative; display: flex; margin: 0; cursor: pointer; }
.dom-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.dom-check span {
  width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid var(--border-hi); background: transparent;
  display: block; transition: background var(--t-fast), border-color var(--t-fast);
}
.dom-check:hover span { border-color: var(--text-muted); }
.dom-check input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.dom-check input:checked + span::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 8px; border: solid #0A0A0A;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dom-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,230,0,.25); }

/* Nombre */
.dom-card-name {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-head); font-size: 15.5px; font-weight: 700;
  text-decoration: none; word-break: break-all; line-height: 1.3;
  transition: color var(--t-fast);
}
.dom-card-name:hover, .dom-card-name:focus { color: var(--yellow); text-decoration: none; }
.dom-card-name svg { color: var(--text-dim); flex-shrink: 0; }
.dom-card-name:hover svg { color: var(--yellow); }

/* Aviso de vencimiento proximo */
.dom-card-warn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,230,0,.09); border: 1px solid rgba(255,230,0,.3);
  border-radius: var(--r-sm); color: var(--yellow);
  font-size: 11px; font-weight: 700; padding: 4px 9px;
  margin-top: 10px; align-self: flex-start;
}

/* Fechas */
.dom-card-meta { display: flex; gap: 22px; margin: 14px 0 0; }
.dom-card-meta dt {
  color: var(--text-dim); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin: 0 0 2px;
}
.dom-card-meta dd {
  color: var(--text-body); font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; margin: 0;
}

/* Autorrenovacion */
.dom-card-renew {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.dom-card-renew svg { flex-shrink: 0; }
.dom-card-renew--on  { color: var(--green); }
.dom-card-renew--off { color: var(--text-dim); }

/* Acciones */
.dom-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.dom-btn-manage {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-radius: var(--r-sm); color: var(--text-body);
  font-size: 12.5px; font-weight: 700; padding: 8px 12px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.dom-btn-manage:hover, .dom-btn-manage:focus {
  background: var(--yellow); border-color: var(--yellow);
  color: #0A0A0A; text-decoration: none;
}
.dom-more .dropdown-toggle { padding: 8px 11px; border-radius: var(--r-sm); }

/* Sin resultados */
.dom-noresults { color: var(--text-dim); font-size: 13.5px; text-align: center; padding: 34px 0; }

/* ── Barra de acciones masivas ── */
.dom-bulk {
  position: sticky; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  background: rgba(20,20,23,.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  padding: 10px 18px; margin: 20px auto 0; width: fit-content;
}
.dom-bulk[hidden] { display: none; }
.dom-bulk-count { color: var(--text-body); font-size: 12.5px; }
.dom-bulk-count strong { color: var(--yellow); font-variant-numeric: tabular-nums; }

/* ── Estado vacio ── */
.dom-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 54px 24px; color: var(--text-muted);
}
.dom-empty svg { color: var(--yellow); margin-bottom: 16px; }
.dom-empty h3  { color: var(--text-head); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.dom-empty p   { margin: 0 0 20px; max-width: 350px; font-size: 13.5px; }

@media (max-width: 575px) {
  .dom-grid { grid-template-columns: 1fr; }
  .dom-page-header { align-items: flex-start; }
  .dom-card-meta { gap: 16px; }
}
