:root {
  --gc-ink: #07111f;
  --gc-ink-soft: #0b1626;
  --gc-ink-card: #0f1d32;
  --gc-paper: #f4f6f8;
  --gc-white: #ffffff;
  --gc-line: #e2e8f0;
  --gc-dark-line: rgba(255, 255, 255, 0.08);
  --gc-muted: #64748b;
  --gc-red: #ff3131;
  --gc-red-soft: #fff1f1;
  --gc-red-glow: rgba(255, 49, 49, 0.22);
  --gc-green: #10b981;
  --gc-green-soft: #ecfdf5;
  --gc-amber: #f59e0b;
  --gc-cyan: #06b6d4;
  --gc-sidebar: 260px;
}

* { box-sizing: border-box; }

body.admin-body {
  margin: 0;
  min-width: 320px;
  color: #1e293b;
  background: var(--gc-paper);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.915rem;
  -webkit-font-smoothing: antialiased;
}

/* Indicador de carga superior durante navegación */
.admin-body::before {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, var(--gc-red), #ff7878);
  pointer-events: none;
  transition: width 0.4s ease, opacity 0.15s ease;
}
.admin-body.admin-is-navigating::before {
  width: 82%;
  opacity: 1;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

/* ============================================================
   SIDEBAR (Estilo GoCreative con identidad PV SPORT)
   ============================================================ */
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1045;
  width: var(--gc-sidebar);
  color: #cbd5e1;
  background:
    radial-gradient(circle at 22% 4%, var(--gc-red-glow), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091625 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px 20px;
  overflow-y: auto;
}

.admin-brand {
  display: block;
  padding: 0 8px 22px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand img {
  display: block;
  max-width: 175px;
  height: auto;
  margin-bottom: 8px;
}

.admin-brand span {
  display: inline-block;
  color: #94a3b8;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 24px;
}

.admin-nav__group-label {
  margin: 16px 0 6px;
  padding: 8px 10px 4px;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 0.835rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-nav a span.nav-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.admin-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.admin-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 49, 49, 0.12);
  border-color: rgba(255, 49, 49, 0.3);
  box-shadow: inset 3px 0 var(--gc-red);
}

.admin-nav a.is-active span.nav-num {
  color: #ffffff;
  background: var(--gc-red);
  border-color: var(--gc-red);
}

.admin-sidebar__footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 18px 10px 0;
  color: #94a3b8;
  font-size: 0.74rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}
.admin-sidebar__footer a:hover {
  color: var(--gc-red);
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
}
.admin-status i {
  width: 7px;
  height: 7px;
  background: var(--gc-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

/* Botón PWA en Sidebar */
.admin-sidebar__install {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--gc-red);
  border: 1px solid var(--gc-red);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.admin-sidebar__install:not([hidden]) {
  display: inline-flex;
}
.admin-sidebar__install:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ============================================================
   MAIN CONTENT & TOPBAR (Glassmorphic GoCreative)
   ============================================================ */
.admin-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--gc-sidebar);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px clamp(18px, 3.5vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gc-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-topbar__titles {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.admin-topbar__eyebrow {
  color: var(--gc-red);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-topbar strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badge de Estado de Red */
.admin-network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-network-status i {
  width: 7px;
  height: 7px;
  background: var(--gc-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.admin-network-status.is-offline {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}
.admin-network-status.is-offline i {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

/* Botón PWA en Topbar */
.admin-install-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--gc-ink);
  border: 1px solid var(--gc-ink);
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-install-button:not([hidden]) {
  display: inline-flex;
}
.admin-install-button:hover {
  background: var(--gc-red);
  border-color: var(--gc-red);
}

/* Avatar Perfil Usuario */
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-profile:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--gc-line);
}
.admin-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--gc-ink);
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.admin-profile__copy {
  display: grid;
  text-align: left;
  line-height: 1.2;
}
.admin-profile__copy strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gc-ink);
}
.admin-profile__copy small {
  font-size: 0.66rem;
  color: var(--gc-muted);
}

/* Hamburger para móvil */
.admin-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  padding: 8px;
  background: var(--gc-ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.admin-menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 1px;
}

/* ============================================================
   ADMIN MAIN AREA & CARDS
   ============================================================ */
.admin-main {
  padding: clamp(16px, 3vw, 28px);
}

.gc-card {
  background: var(--gc-white);
  border: 1px solid var(--gc-line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gc-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.gc-hero-banner {
  background:
    radial-gradient(circle at 85% 15%, var(--gc-red-glow), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0d1b2e 100%);
  border-left: 5px solid var(--gc-red);
  border-radius: 10px;
  color: #ffffff;
  padding: 24px;
}

/* ============================================================
   PWA INSTALL SHEET (iOS / Safari modal guía)
   ============================================================ */
.admin-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.admin-install-sheet.is-visible {
  display: flex;
}
.admin-install-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.65);
  backdrop-filter: blur(4px);
  border: 0;
}
.admin-install-sheet section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 16px 20px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.admin-install-sheet__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  background: var(--gc-red);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
}
.admin-install-sheet ol {
  padding-left: 18px;
  margin: 14px 0 20px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE (Sidebar Mobile & Drawer)
   ============================================================ */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(3, 9, 16, 0.65);
  backdrop-filter: blur(2px);
}
.admin-sidebar-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .admin-content {
    margin-left: 0;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
  }
  .admin-menu-button {
    display: block;
  }
  body.admin-menu-open {
    overflow: hidden;
  }
  .admin-profile__copy {
    display: none;
  }
}

/* ============================================================
   PANTALLA DE ACCESO / LOGIN (Estilo GoCreative)
   ============================================================ */
.login-body {
  min-height: 100vh;
  margin: 0;
  color: var(--gc-ink);
  background: var(--gc-paper);
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr);
  min-height: 100vh;
}
.login-form-panel {
  display: grid;
  align-content: center;
  padding: clamp(34px, 6.5vw, 84px);
  background: var(--gc-white);
}
.login-brand {
  display: inline-block;
  width: 175px;
  margin-bottom: 38px;
  padding: 10px 14px;
  background: var(--gc-ink);
  border-radius: 8px;
}
.login-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.login-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--gc-red);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.login-kicker::before {
  width: 24px;
  height: 2px;
  content: "";
  background: var(--gc-red);
}
.login-form-panel h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--gc-ink);
}
.login-form-panel > p {
  max-width: 440px;
  margin: 14px 0 28px;
  color: var(--gc-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}
.login-form {
  max-width: 420px;
}
.password-field {
  position: relative;
}
.password-field .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}
.login-visual {
  position: relative;
  display: flex;
  align-items: end;
  padding: clamp(35px, 5vw, 75px);
  color: #ffffff;
  overflow: hidden;
  background: #07111f url('/pvsport2/public/assets/img/hero/hero-bg.jpg') center / cover no-repeat;
}
.login-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(160deg, rgba(7, 17, 31, 0.45), rgba(7, 17, 31, 0.94));
}
.login-visual::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--gc-red), #ff7878);
}
.login-visual__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.login-visual__label {
  display: block;
  margin-bottom: 12px;
  color: var(--gc-red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.login-visual h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #ffffff;
}
.login-visual p {
  max-width: 480px;
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-form-panel {
    padding: 40px 24px;
    min-height: 100vh;
  }
}

