/* ============================================================
   NAVEGACIÓN SUPERIOR / MENÚ PRINCIPAL (index.html)
   ============================================================ */
nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem clamp(1.25rem, 5vw, 3.5rem);
  font-size: .84rem;
  background: rgba(20, 16, 42, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s ease, border-color .3s ease;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: inherit;
}

nav .brand img {
  height: 38px;
  width: auto;
}

nav b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: .01em;
}

nav .links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

nav a {
  opacity: .82;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
  text-decoration: none;
  color: inherit;
}

nav a:hover {
  opacity: 1;
  color: var(--gold);
}

/* ============================================================
   ENLACE DESTACADO: CONEXIÓN INTUITIVA (BOTÓN CÁPSULA DORADO)
   ============================================================ */
nav .links .nav-highlight {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .44rem 1.15rem;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(207, 169, 104, 0.22) 0%, rgba(227, 179, 189, 0.14) 100%);
  border: 1px solid rgba(207, 169, 104, 0.6);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: 1;
  box-shadow: 0 0 16px rgba(207, 169, 104, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all .35s cubic-bezier(.2, .7, .2, 1);
  white-space: nowrap;
}

nav .links .nav-highlight .nav-star {
  color: var(--gold);
  font-size: .88rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(207, 169, 104, 0.8));
  transition: transform .35s ease;
}

nav .links .nav-highlight:hover {
  background: linear-gradient(135deg, rgba(207, 169, 104, 0.38) 0%, rgba(227, 179, 189, 0.26) 100%);
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(207, 169, 104, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1.5px) scale(1.02);
}

nav .links .nav-highlight:hover .nav-star {
  transform: rotate(35deg) scale(1.2);
}

/* ============================================================
   PERFIL DE USUARIO EN LA ESQUINA (Juan USUARIO)
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem .35rem .5rem;
  border-radius: 99px;
  border: 1px solid rgba(207, 169, 104, .4);
  background: rgba(20, 16, 42, .85);
  color: var(--mist);
  cursor: pointer;
  transition: all .25s ease;
  font-size: .8rem;
  font-family: var(--sans);
  flex-shrink: 0;
}

.user-pill:hover {
  border-color: var(--gold);
  background: rgba(207, 169, 104, .15);
  box-shadow: 0 0 16px rgba(207, 169, 104, .25);
  transform: translateY(-1px);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: var(--ink);
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(207, 169, 104, .5);
}

.user-name {
  font-weight: 500;
  letter-spacing: .02em;
}

.user-role-tag {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(207, 169, 104, .15);
  padding: .15rem .45rem;
  border-radius: 99px;
}

@media(max-width: 820px) {
  nav .links {
    display: none;
  }
  nav b {
    font-size: 1.02rem;
  }
}
@media(max-width: 640px) {
  nav .brand img {
    height: 33px;
  }
  nav b {
    font-size: .95rem;
  }
}

/* Modal de cuenta de usuario, autenticación y Mi Bitácora */
dialog#userModal {
  margin: auto;
  border: 1px solid rgba(207, 169, 104, .45);
  border-radius: 22px;
  background: linear-gradient(165deg, #1f183c, #110e24);
  color: var(--mist);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .85);
  max-width: min(94vw, 560px);
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}
dialog#userModal::backdrop {
  background: rgba(10, 8, 22, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: .85rem;
}
.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: var(--mist);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* Pestañas del modal de usuario */
.auth-tabs {
  display: flex;
  gap: .4rem;
  background: rgba(255, 255, 255, .04);
  padding: .3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  padding: .55rem .75rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--dim);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.auth-tab:hover {
  color: var(--mist);
}
.auth-tab.active {
  background: rgba(207, 169, 104, .2);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(207, 169, 104, .4);
}

.auth-pane {
  display: none;
}
.auth-pane.active {
  display: block;
}

.user-form-group {
  margin-bottom: 1rem;
}
.user-form-group label {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .38rem;
}
.user-form-group input,
.user-form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-family: var(--sans);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.user-form-group input:focus,
.user-form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(207, 169, 104, .28);
}

.pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-wrap input {
  padding-right: 4.5rem;
}
.pwd-toggle {
  position: absolute;
  right: .6rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--dim);
  border-radius: 7px;
  padding: .25rem .55rem;
  font-size: .72rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: all .2s;
}
.pwd-toggle:hover {
  color: #fff;
  border-color: var(--gold);
}

.auth-alert {
  padding: .65rem .9rem;
  border-radius: 10px;
  font-size: .83rem;
  margin-bottom: 1rem;
  display: none;
  line-height: 1.4;
}
.auth-alert.error {
  display: block;
  background: rgba(224, 75, 55, .15);
  border: 1px solid rgba(224, 75, 55, .45);
  color: #ffb8ae;
}
.auth-alert.success {
  display: block;
  background: rgba(102, 176, 103, .16);
  border: 1px solid rgba(102, 176, 103, .45);
  color: #b8f3b9;
}

.auth-submit-btn {
  width: 100%;
  padding: .78rem 1.4rem;
  border-radius: 99px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), #dfc088);
  color: #120d26;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 8px 24px rgba(207, 169, 104, .28);
}
.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(207, 169, 104, .42);
}
.auth-submit-btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* Mi Bitácora: Historial de sesiones del usuario */
.bitacora-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .75rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(207, 169, 104, .11), rgba(207, 169, 104, .04));
  border: 1px solid rgba(207, 169, 104, .24);
  margin-bottom: .9rem;
  font-size: .83rem;
}
.bitacora-summary strong {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
}

.bitacora-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-height: 370px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding-right: .25rem;
}
.bitacora-empty {
  text-align: center;
  padding: 2.2rem 1.2rem;
  color: var(--dim);
  font-size: .88rem;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
  border-radius: 16px;
}

.bitacora-item {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.bitacora-item:hover {
  border-color: rgba(207, 169, 104, .35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.bitacora-item-top {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.bitacora-thumb {
  width: 46px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(207, 169, 104, .4);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .2s ease;
}
.bitacora-thumb:hover {
  transform: scale(1.05);
}
.bitacora-info {
  flex: 1;
  min-width: 0;
}
.bitacora-date {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.bitacora-card-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: #fff;
  line-height: 1.15;
  margin: .12rem 0;
}
.bitacora-intent {
  font-size: .76rem;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bitacora-top-btns {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bitacora-fav-btn {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--dim);
  padding: .28rem .65rem;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .71rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .02em;
  transition: all .2s ease;
  flex-shrink: 0;
}
.bitacora-fav-btn.active,
.bitacora-fav-btn:hover {
  color: var(--gold);
  border-color: rgba(207, 169, 104, .55);
  background: rgba(207, 169, 104, .15);
}
.bitacora-del-btn {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--dim);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
  transition: all .2s ease;
  opacity: .7;
}
.bitacora-del-btn:hover {
  opacity: 1;
  color: #ffb8ae;
  border-color: rgba(224, 75, 55, .5);
  background: rgba(224, 75, 55, .15);
}

/* Caja moderna de reflexión dentro de cada ítem de la Bitácora */
.bitacora-note-area {
  margin-top: .15rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(10, 8, 22, .48);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bitacora-note-area:focus-within {
  border-color: rgba(207, 169, 104, .52);
  background: rgba(10, 8, 22, .68);
  box-shadow: 0 0 0 3px rgba(207, 169, 104, .1);
}
.bitacora-note-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #f5f0e6;
  font-family: var(--sans);
  font-size: .83rem;
  line-height: 1.55;
  padding: 0;
  resize: none;
  min-height: 46px;
  outline: none;
}
.bitacora-note-input::placeholder {
  color: rgba(244, 239, 230, .36);
}
.bitacora-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.bitacora-note-label {
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(207, 169, 104, .75);
}
.bitacora-note-save {
  background: rgba(207, 169, 104, .16);
  border: 1px solid rgba(207, 169, 104, .42);
  color: var(--gold);
  border-radius: 99px;
  padding: .26rem .85rem;
  font-size: .73rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.bitacora-note-save:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Barra de guardado en Conexión Intuitiva */
.session-save-bar {
  margin-top: .85rem;
  padding: .75rem 1.05rem;
  border-radius: 14px;
  background: rgba(207, 169, 104, .09);
  border: 1px solid rgba(207, 169, 104, .28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .82rem;
}
.session-save-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--mist);
}
.session-save-status .dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66b067;
  box-shadow: 0 0 8px #66b067;
}
.session-save-btn {
  background: rgba(207, 169, 104, .18);
  border: 1px solid rgba(207, 169, 104, .5);
  color: var(--gold);
  padding: .36rem .95rem;
  border-radius: 99px;
  font-size: .76rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .2s ease;
}
.session-save-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ============================================================
   FASE 2: FILTROS DE BITÁCORA, DIARIO EN VIVO Y GESTIÓN PERFIL
   ============================================================ */
.bitacora-filters {
  display: flex;
  gap: .38rem;
  flex-wrap: wrap;
  margin-bottom: .95rem;
  padding: .3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
}
.bitacora-filter-chip {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--dim);
  padding: .34rem .78rem;
  border-radius: 99px;
  font-size: .74rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s ease;
}
.bitacora-filter-chip:hover {
  color: var(--mist);
  background: rgba(255, 255, 255, .05);
}
.bitacora-filter-chip.active {
  background: rgba(207, 169, 104, .2);
  border-color: rgba(207, 169, 104, .5);
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(207, 169, 104, .15);
}

.bitacora-expand-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: .73rem;
  font-family: var(--sans);
  cursor: pointer;
  padding: 0;
  margin-top: .18rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .85;
}
.bitacora-expand-btn:hover {
  opacity: 1;
}

.bitacora-card-details {
  display: none;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(207, 169, 104, .06);
  border: 1px solid rgba(207, 169, 104, .2);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--mist);
}
.bitacora-card-details.open {
  display: block;
}
.bitacora-card-details blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: #fff;
  border-left: 2px solid var(--gold);
  padding-left: .65rem;
  margin-bottom: .45rem;
}

/* Caja Editorial de Reflexión Personal en Vivo (Conexión Intuitiva) */
.live-journal-box {
  margin-top: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(32, 25, 62, .75), rgba(16, 12, 34, .88));
  border: 1px solid rgba(207, 169, 104, .3);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.live-journal-box:focus-within {
  border-color: rgba(207, 169, 104, .62);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38), 0 0 0 3px rgba(207, 169, 104, .12);
}
.live-journal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.live-journal-title {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.live-fav-pill {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--mist);
  border-radius: 99px;
  padding: .28rem .82rem;
  font-size: .73rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.live-fav-pill.active,
.live-fav-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(207, 169, 104, .16);
}
.live-journal-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  border-radius: 12px;
  background: rgba(10, 8, 22, .58);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f8f4ec;
  font-family: var(--sans);
  font-size: .9rem;
  line-height: 1.6;
  padding: .85rem 1rem;
  resize: none;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.live-journal-textarea::placeholder {
  color: rgba(244, 239, 230, .38);
}
.live-journal-textarea:focus {
  border-color: rgba(207, 169, 104, .5);
  background: rgba(10, 8, 22, .78);
}
.live-journal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.live-journal-hint {
  font-size: .74rem;
  color: var(--dim);
  letter-spacing: .02em;
}

/* Acordeones en Mi Cuenta y Mapa de Elementos */
details.profile-accordion {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  margin-bottom: .85rem;
  padding: .7rem 1rem;
  transition: border-color .2s ease;
}
details.profile-accordion:hover {
  border-color: rgba(207, 169, 104, .32);
}
details.profile-accordion summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--mist);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.profile-accordion summary::-webkit-details-marker {
  display: none;
}
details.profile-accordion summary::after {
  content: '▾';
  color: var(--gold);
  transition: transform .2s;
}
details.profile-accordion[open] summary::after {
  transform: rotate(180deg);
}
details.profile-accordion .acc-body {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ============================================================
   FASE 3: MAPA PERSONAL DE ELEMENTOS, EXPORTACIÓN Y CTA ADMIN
   ============================================================ */
.bitacora-export-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(207, 169, 104, .12);
  border: 1px solid rgba(207, 169, 104, .42);
  color: var(--gold);
  border-radius: 99px;
  padding: .34rem .88rem;
  font-size: .73rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.bitacora-export-btn:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(207, 169, 104, .28);
}

.bitacora-stats-acc {
  background: rgba(207, 169, 104, .05);
  border-color: rgba(207, 169, 104, .22);
}
.stats-deck-progress {
  margin-bottom: .9rem;
}
.stats-deck-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--mist);
  margin-bottom: .35rem;
}
.stats-deck-hd strong {
  color: var(--gold);
}
.stats-bar-track {
  inline-size: 100%;
  block-size: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: clip;
}
.stats-bar-fill {
  block-size: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}
.stats-bar-fill.gold   { background: linear-gradient(90deg, var(--gold), #f3d9a4); }
.stats-bar-fill.Agua   { background: linear-gradient(90deg, #4fa3d1, #8ad2f8); }
.stats-bar-fill.Aire   { background: linear-gradient(90deg, #b8c2dc, #e4ebfa); }
.stats-bar-fill.Fuego  { background: linear-gradient(90deg, #e05b45, #f59c7e); }
.stats-bar-fill.Tierra { background: linear-gradient(90deg, #68b06a, #a6df9e); }

.stats-elem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
  margin-bottom: .8rem;
}
.stats-elem-card {
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.stats-elem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  margin-bottom: .32rem;
}
.stats-elem-name {
  font-weight: 500;
  color: #fff;
}
.stats-elem-count {
  color: var(--dim);
  font-size: .72rem;
}
.stats-insight {
  font-size: .78rem;
  color: var(--mist);
  background: rgba(255, 255, 255, .03);
  border-left: 2px solid var(--gold);
  padding: .45rem .7rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.45;
}

.admin-panel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(207, 169, 104, .22), rgba(227, 179, 189, .14));
  border: 1px solid var(--gold);
  color: #fff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: all .25s ease;
}
.admin-panel-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(207, 169, 104, .28);
  color: var(--gold);
}
