/* =====================================================================
   LilianShop · DISEÑO PREMIUM
   Inspirado en el logo: monitor azul eléctrico con aro cian y la "L"
   cromada. Negro profundo, azul eléctrico, celeste y plata metálica.
   Se activa con APP_TEMA=premium (cambia también el menú a lateral).
   ===================================================================== */
:root {
  --t-bg: #04060c;
  --t-header-bg: rgba(4,6,12,.72);
  --t-header-shadow: none;
  --t-menu-bg: #060a14;
  --t-surface: linear-gradient(180deg, rgba(14,21,38,.82), rgba(9,14,27,.82));
  --t-surface-solid: #0a1020;
  --t-surface-2: #101a30;
  --t-surface-hover: #15223f;
  --t-blur: blur(14px);
  --t-border: rgba(148,173,214,.10);
  --t-border-strong: rgba(148,173,214,.18);
  --t-text: #e8eef9;
  --t-text-soft: #c3cee0;
  --t-muted: #7f8ea8;
  --t-title: #f5f8ff;
  --t-accent: #38c6ff;
  --t-money: #3ddc97;
  --t-radius: 1.1rem;
  --t-card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.7);
  --t-card-shadow-hover: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px rgba(56,198,255,.28), 0 24px 48px -18px rgba(22,119,230,.45);
  --t-glow: 0 0 0 1px rgba(56,198,255,.35), 0 10px 30px -8px rgba(56,198,255,.45);
  --t-primary-bg: linear-gradient(180deg, #2f9bff 0%, #1667e0 100%);
  --t-primary-text: #ffffff;
  --t-primary-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -6px rgba(22,119,230,.75);
  --t-active-bg: linear-gradient(90deg, rgba(56,198,255,.16), rgba(56,198,255,0));
  --t-active-text: #ffffff;
  --t-input-bg: #070c18;
  --t-ring: rgba(56,198,255,.22);
  --t-thead: rgba(148,173,214,.05);
  --t-row-hover: rgba(56,198,255,.045);

  --lp-side-w: 268px;
  --lp-cromo: linear-gradient(180deg, #ffffff 0%, #c9d6e8 55%, #8ea3bf 100%);
  --lp-electrico: linear-gradient(135deg, #38c6ff 0%, #1677e6 60%, #0b47b8 100%);
}

/* ---------- Tipografía ---------- */
body.lp, body.ls-publico {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -0.005em;
}
body h1, body h2 { letter-spacing: -0.02em; font-weight: 800; }

/* ---------- Fondo: negro profundo + luz del logo + retícula fina ---------- */
body.lp { background: var(--t-bg) !important; display: block; min-height: 100vh; }
.lp-fondo, body.ls-publico::before {
  content: '';
  position: fixed; inset: 0; z-index: -20; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(22,119,230,.22), transparent 60%),
    radial-gradient(700px 480px at -5% 30%, rgba(56,198,255,.10), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(99,102,241,.12), transparent 60%),
    linear-gradient(rgba(148,173,214,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(148,173,214,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    #04060c;
}
body.ls-publico { background: #04060c !important; }
body #particles { opacity: .45; }

/* =====================================================================
   MENÚ LATERAL
   ===================================================================== */
.lp-side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
  width: var(--lp-side-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(8,12,24,.96), rgba(5,8,16,.98));
  border-right: 1px solid rgba(148,173,214,.08);
  box-shadow: 1px 0 0 rgba(56,198,255,.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lp-marca {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
}
.lp-marca img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(56,198,255,.45)); }
.lp-marca strong {
  display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em;
  background: var(--lp-cromo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-marca small {
  display: inline-block; margin-top: .15rem; padding: .1rem .5rem; border-radius: 999px;
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #8fdcff; background: rgba(56,198,255,.10); border: 1px solid rgba(56,198,255,.22);
}
.lp-nav { flex: 1; overflow-y: auto; padding: .25rem .85rem 1rem; scrollbar-width: thin; }
.lp-sec {
  margin: 1.1rem .65rem .4rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #56647d;
}
.lp-item {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  margin: .1rem 0; padding: .62rem .75rem;
  border-radius: .7rem;
  color: #aab6cb; text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.lp-item svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; opacity: .85; }
.lp-item:hover { color: #fff; background: rgba(148,173,214,.07); }
.lp-item.activo {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(56,198,255,.18), rgba(22,119,230,.06) 70%, transparent);
  box-shadow: inset 0 0 0 1px rgba(56,198,255,.14);
}
.lp-item.activo::before {
  content: ''; position: absolute; left: -.85rem; top: 22%; bottom: 22%; width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lp-electrico);
  box-shadow: 0 0 12px rgba(56,198,255,.8);
}
.lp-item.activo svg { color: #38c6ff; opacity: 1; }

.lp-usuario {
  display: flex; align-items: center; gap: .7rem;
  margin: .75rem; padding: .75rem;
  border-radius: .9rem;
  background: rgba(148,173,214,.05);
  border: 1px solid rgba(148,173,214,.09);
}
.lp-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  font-weight: 800; color: #fff;
  background: var(--lp-electrico);
  box-shadow: 0 0 0 2px #060a14, 0 0 0 3px rgba(56,198,255,.5);
}
.lp-usuario-datos { min-width: 0; flex: 1; line-height: 1.25; }
.lp-usuario-datos strong { display: block; color: #fff; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-usuario-datos small { color: #7f8ea8; font-size: .75rem; }
.lp-usuario-saldo { color: #3ddc97; font-size: .8rem; font-weight: 700; text-decoration: none; }
.lp-salir { display: grid; place-items: center; width: 34px; height: 34px; border-radius: .6rem; color: #8b97ad; transition: .15s; }
.lp-salir svg { width: 1.1rem; height: 1.1rem; }
.lp-salir:hover { color: #fff; background: rgba(239,68,68,.18); }

/* ---------- Área principal ---------- */
.lp-main { margin-left: var(--lp-side-w); min-height: 100vh; display: flex; flex-direction: column; }
.lp-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 2rem;
  background: rgba(4,6,12,.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,173,214,.07);
}
.lp-top-titulo { flex: 1; min-width: 0; line-height: 1.2; }
.lp-top-titulo small { display: block; color: #66748d; font-size: .75rem; font-weight: 500; }
.lp-top-titulo strong {
  display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
  background: var(--lp-cromo); -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-top-acciones { display: flex; align-items: center; gap: .6rem; }
.lp-chip-saldo {
  display: flex; align-items: baseline; gap: .45rem;
  padding: .45rem .85rem; border-radius: 999px;
  color: #3ddc97; font-weight: 800; text-decoration: none;
  background: rgba(61,220,151,.08); border: 1px solid rgba(61,220,151,.25);
}
.lp-chip-saldo span { color: #7f8ea8; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lp-btn-top {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: .7rem;
  color: #fff; font-weight: 700; font-size: .875rem; text-decoration: none;
  background: var(--t-primary-bg); box-shadow: var(--t-primary-shadow);
}
.lp-btn-top svg { width: 1.05rem; height: 1.05rem; }
.lp-btn-top-sec { background: rgba(148,173,214,.08); box-shadow: inset 0 0 0 1px rgba(148,173,214,.14); }
.lp-hamb { display: grid; width: 40px; height: 40px; border: 0; border-radius: .7rem; color: #fff; background: rgba(148,173,214,.08); cursor: pointer; }
.lp-hamb svg { width: 1.3rem; height: 1.3rem; margin: auto; }
.lp-contenido { flex: 1; width: 100%; }
.lp-pie { padding: 1.5rem 2rem 2rem; text-align: center; color: #4e5a70; font-size: .8rem; }
.lp-velo { display: none; }

/* El contenido de cada pantalla ya trae su contenedor centrado; sólo afinamos el ancho */
.lp-contenido > main, .lp-contenido > div > main { max-width: 76rem; }

@media (max-width: 1023px) {
  .lp-side { transform: translateX(-100%); transition: transform .25s ease; width: min(84vw, 300px); }
  .lp-side.abierto { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .lp-velo { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .lp-velo.abierto { opacity: 1; pointer-events: auto; }
  .lp-main { margin-left: 0; }
  .lp-hamb { display: grid; }
  .lp-top { padding: .75rem 1rem; }
  .lp-top-titulo strong { font-size: 1.02rem; }
  .lp-btn-top span, .lp-chip-saldo span { display: none; }
}

/* =====================================================================
   COMPONENTES CON ACABADO PREMIUM
   ===================================================================== */
/* Tarjetas: borde con degradado (brillo del aro del logo arriba a la izquierda) */
body .card, body .btn, body .welcome-box {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(13,20,37,.9), rgba(8,13,25,.9)) padding-box,
    linear-gradient(140deg, rgba(56,198,255,.38), rgba(148,173,214,.08) 35%, rgba(148,173,214,.05) 70%, rgba(99,102,241,.25)) border-box !important;
}
body .btn { font-weight: 600; transition: transform .15s, box-shadow .15s; }
body .btn:hover { transform: translateY(-2px); }

/* Botones principales: azul eléctrico con brillo */
body .bg-white.text-black, body button.bg-white, body a.bg-white:not(.ls-btn-salir) { font-weight: 700; letter-spacing: .01em; }

/* Campos */
body input:where(:not([type=checkbox]):not([type=radio]):not([type=file])), body select, body textarea {
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
  border-radius: .7rem !important;
}

/* Tablas más limpias */
body thead th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #7f8ea8 !important; font-weight: 700; }
body tbody tr { border-color: rgba(148,173,214,.07) !important; }

/* Cifras grandes (saldo, totales) con brillo */
body .text-emerald-400.text-3xl, body .text-emerald-400.text-2xl, body .saldo-amount { text-shadow: 0 0 24px rgba(61,220,151,.35); }

/* Avisos (ventanas) */
body .ls-modal {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0c1427, #070b17) padding-box,
    linear-gradient(140deg, rgba(56,198,255,.5), rgba(148,173,214,.08) 40%, rgba(99,102,241,.35)) border-box;
}
body .ls-modal-icono { background: var(--lp-electrico); box-shadow: 0 0 0 6px rgba(4,6,12,.9), 0 0 34px rgba(56,198,255,.55); }
body .ls-modal-titulo { color: #eaf6ff; }
body .ls-modal-btn:not(.ls-modal-btn-sec) { background: var(--t-primary-bg) !important; box-shadow: var(--t-primary-shadow) !important; }

/* Login / recuperar en las páginas públicas: tarjeta oscura de vidrio */
body .form-card {
  color: #e8eef9 !important;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(13,20,37,.92), rgba(8,13,25,.92)) padding-box,
    linear-gradient(140deg, rgba(56,198,255,.5), rgba(148,173,214,.1) 40%, rgba(99,102,241,.35)) border-box !important;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 50px -10px rgba(22,119,230,.35);
}
body .form-card .text-black, body .form-card h1 { color: #f5f8ff !important; }
body .form-card .text-gray-600, body .form-card .text-gray-700, body .form-card .text-gray-500 { color: #8b98b0 !important; }
body .form-card input:where(:not([type=checkbox]):not([type=radio])) {
  background-color: #070c18 !important; color: #e8eef9 !important; border-color: rgba(148,173,214,.18) !important;
}
body .form-card .text-blue-600 { color: #38c6ff !important; }
body .user-icon { background: var(--lp-electrico) !important; box-shadow: 0 0 0 6px rgba(4,6,12,.9), 0 0 34px rgba(56,198,255,.55) !important; }
body .form-card .bg-gradient-to-r, body .form-card button[type=submit], body .form-card button:not([type=button]) { background: var(--t-primary-bg) !important; box-shadow: var(--t-primary-shadow); }

/* Encabezado de las páginas públicas */
body.ls-publico .ls-header { background: rgba(4,6,12,.7); border-bottom-color: rgba(148,173,214,.08); }
body.ls-publico .ls-btn-salir { background: var(--t-primary-bg) !important; color: #fff !important; }

/* Con el menú lateral la tabla de cuentas tiene 268px menos: escondemos columnas antes */
@media (min-width: 1024px) and (max-width: 1618px) { body.lp .hide-1350 { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1468px) { body.lp .hide-1200 { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1318px) { body.lp .hide-1050 { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1168px) { body.lp .hide-900 { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1028px) { body.lp .hide-760 { display: none !important; } }
body.lp .accounts-wrap { overflow-x: auto; }
@media (max-width: 640px) { .lp-top-titulo small { display: none; } }

/* Botón para ocultar / mostrar el menú lateral en computadora */
@media (min-width: 1024px) {
  .lp-side { transition: transform .28s cubic-bezier(.4,0,.2,1); }
  .lp-main { transition: margin-left .28s cubic-bezier(.4,0,.2,1); }
  body.lp-oculto .lp-side { transform: translateX(-100%); box-shadow: none; }
  body.lp-oculto .lp-main { margin-left: 0; }
  .lp-hamb:hover { background: rgba(56,198,255,.14); color: #38c6ff; }
}
/* si el menú está oculto, la tabla recupera las columnas que caben */
@media (min-width: 1351px) and (max-width: 1618px) { body.lp.lp-oculto .hide-1350 { display: revert !important; } }
@media (min-width: 1201px) and (max-width: 1468px) { body.lp.lp-oculto .hide-1200 { display: revert !important; } }
@media (min-width: 1051px) and (max-width: 1318px) { body.lp.lp-oculto .hide-1050 { display: revert !important; } }
@media (min-width: 1024px) and (max-width: 1168px) { body.lp.lp-oculto .hide-900 { display: revert !important; } }
@media (min-width: 1024px) and (max-width: 1028px) { body.lp.lp-oculto .hide-760 { display: revert !important; } }
