/* ============================================================
   JD-EXTRAS v1.0 — estilos de jd-share, jd-progress, jd-notify
   y jd-hotkeys (paleta rápida). Un solo archivo para no sumar
   más peticiones al head.
   ============================================================ */

/* ================= JD-SHARE ================= */
.jd-share-wrap {
  position: relative;
  display: inline-flex;
  margin-left: auto;
}

.jd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(115, 103, 240, .12);
  border: 1px solid rgba(115, 103, 240, .35);
  color: #cfc8e0;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.jd-share-btn:hover {
  border-color: var(--ao-gold, #f5c842);
  color: #fff;
}

.jd-share-menu {
  position: fixed;
  right: auto;

  min-width: 200px;
  background: linear-gradient(180deg, #201a2e 0%, #17121f 100%);
  border: 1px solid rgba(245, 200, 66, .35);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6);
  padding: 6px;
  display: none;
  z-index: 200;
}

.jd-share-menu.open {
  display: block;
}

.jd-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  color: #e8e4f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.jd-share-item:hover {
  background: rgba(115, 103, 240, .18);
  color: #fff;
}

.jd-share-item i {
  font-size: 17px;
  color: var(--ao-gold, #f5c842);
}

/* ================= JD-PROGRESS ================= */
#jd-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99970;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.jd-read-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7367f0 0%, var(--ao-gold, #f5c842) 55%, #00d2ff 100%);
  box-shadow: 0 0 8px rgba(245, 200, 66, .5);
  transition: width .1s linear;
}

.jd-read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ao-muted, #9a90b8);
  border: 1px solid rgba(115, 103, 240, .3);
  border-radius: 999px;
  padding: 3px 10px;
}

#jd-back-top {
  position: fixed;
  bottom: 76px; /* deja hueco al footer XP */
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 200, 66, .45);
  background: rgba(20, 14, 32, .9);
  color: var(--ao-gold, #f5c842);
  font-size: 20px;
  cursor: pointer;
  z-index: 99960;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

#jd-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#jd-back-top:hover {
  box-shadow: 0 0 14px rgba(245, 200, 66, .4);
}

/* ================= JD-NOTIFY ================= */
#jd-notify {
  position: relative;
  display: inline-flex;
}

.jd-notify-btn {
  position: relative;
  background: none;
  border: none;
  color: #cfc8e0;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
}

.jd-notify-btn:hover {
  color: var(--ao-gold, #f5c842);
}

.jd-notify-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e65050;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.jd-notify-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: linear-gradient(180deg, #201a2e 0%, #17121f 100%);
  border: 1px solid rgba(245, 200, 66, .35);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
  display: none;
  z-index: 9000;
  overflow: hidden;
}

.jd-notify-drop.open {
  display: block;
}

.jd-notify-head {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ao-gold, #f5c842);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(245, 200, 66, .25);
}

.jd-notify-list {
  max-height: 320px;
  overflow-y: auto;
}

.jd-notify-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  text-decoration: none;
  color: #e8e4f0;
  border-bottom: 1px solid rgba(115, 103, 240, .12);
}

.jd-notify-item:hover {
  background: rgba(115, 103, 240, .14);
}

.jd-notify-item > i {
  font-size: 17px;
  color: #7367f0;
  margin-top: 2px;
}

.jd-notify-item.is-new > i {
  color: var(--ao-gold, #f5c842);
}

.jd-notify-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jd-notify-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jd-notify-item.is-new .jd-notify-title::after {
  content: '●';
  color: #00d2ff;
  font-size: 9px;
  margin-left: 6px;
  vertical-align: middle;
}

.jd-notify-meta {
  font-size: 12px;
  color: var(--ao-muted, #9a90b8);
}

.jd-notify-empty {
  padding: 18px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: var(--ao-muted, #9a90b8);
  text-align: center;
}

/* ================= JD-HOTKEYS (paleta) ================= */
#jd-palette {
  position: fixed;
  inset: 0;
  z-index: 99985;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(8, 5, 14, .75);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

#jd-palette.open {
  opacity: 1;
  visibility: visible;
}

.jd-palette-box {
  width: min(560px, calc(100vw - 28px));
  background: linear-gradient(180deg, #221b33 0%, #171021 100%);
  border: 1px solid var(--ao-gold, #f5c842);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 20px rgba(245, 200, 66, .15);
  overflow: hidden;
}

.jd-palette-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(245, 200, 66, .25);
}

.jd-palette-input-row > i {
  color: var(--ao-gold, #f5c842);
  font-size: 18px;
}

.jd-palette-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
}

.jd-palette-input::placeholder {
  color: var(--ao-muted, #9a90b8);
}

.jd-palette-input-row kbd {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--ao-muted, #9a90b8);
  border: 1px solid rgba(154, 144, 184, .4);
  border-radius: 5px;
  padding: 2px 6px;
}

.jd-palette-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.jd-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e8e4f0;
  cursor: pointer;
}

.jd-palette-item i {
  font-size: 18px;
  color: #7367f0;
}

.jd-palette-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, .35);
  border-radius: 999px;
  padding: 1px 8px;
}

.jd-palette-item:hover,
.jd-palette-item.active {
  background: rgba(115, 103, 240, .2);
}

.jd-palette-item.active i {
  color: var(--ao-gold, #f5c842);
}

.jd-palette-empty {
  padding: 22px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  color: var(--ao-muted, #9a90b8);
}

/* Botón de peligro del jd-confirm */
.jd-confirm-danger {
  border-color: rgba(230, 80, 80, .7) !important;
  color: #ff9a9a !important;
}

@media (prefers-reduced-motion: reduce) {
  #jd-palette,
  #jd-back-top {
    transition: none;
  }
}
.jd-promo-box{display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 14px;border-radius:10px;background:linear-gradient(135deg,rgba(245,200,66,.12),rgba(245,200,66,.06));border:1px solid rgba(245,200,66,.4);border-style:dashed;}
.jd-promo-code{font-family:'Orbitron',monospace;font-size:1.1rem;font-weight:800;color:#f5c842;letter-spacing:.15em;flex:1;text-align:center;text-shadow:0 0 12px rgba(245,200,66,.4);}
.jd-promo-copy{background:rgba(245,200,66,.15);border:1px solid rgba(245,200,66,.4);color:#f5c842;border-radius:8px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;font-size:1rem;}
.jd-promo-copy:hover{background:rgba(245,200,66,.3);border-color:#f5c842;transform:scale(1.1);}
.jd-promo-badge{margin-left:auto;font-family:'Orbitron',monospace;font-size:.55rem;font-weight:800;letter-spacing:.15em;padding:3px 8px;border-radius:20px;background:linear-gradient(90deg,#f5c842,#ffb300);color:#1a0d2e;}
.jd-promo-box{position:relative;display:flex;align-items:center;gap:8px;margin:10px 0 8px;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(245,200,66,.1),rgba(245,200,66,.04));border:2px dashed rgba(245,200,66,.5);overflow:hidden;}
.jd-promo-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,rgba(245,200,66,.08),transparent 70%);pointer-events:none;animation:promoGlow 3s ease-in-out infinite;}
@keyframes promoGlow{0%,100%{opacity:.5}50%{opacity:1}}
.jd-promo-code{font-family:'Orbitron',monospace;font-size:1.2rem;font-weight:900;color:#f5c842;letter-spacing:.2em;flex:1;text-align:center;text-shadow:0 0 16px rgba(245,200,66,.5);position:relative;z-index:1;user-select:all;}
.jd-promo-copy{position:relative;z-index:1;background:rgba(245,200,66,.15);border:1px solid rgba(245,200,66,.5);color:#f5c842;border-radius:8px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;font-size:1rem;}
.jd-promo-copy:hover{background:rgba(245,200,66,.3);border-color:#f5c842;transform:scale(1.1);}
.jd-promo-copy.copied{background:rgba(86,202,0,.2);border-color:#56ca00;color:#56ca00;}
.jd-promo-instr{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);font-family:'Rajdhani',sans-serif;font-size:.85rem;color:rgba(255,255,255,.6);margin-bottom:10px;}
.jd-promo-instr i{color:#7367f0;flex-shrink:0;margin-top:2px;}
.jd-promo-canjear{width:100%;padding:9px;border-radius:9px;background:rgba(115,103,240,.12);border:1px solid rgba(115,103,240,.35);color:#a89cf0;font-family:'Cinzel',serif;font-size:.8rem;font-weight:700;letter-spacing:.08em;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:7px;}
.jd-promo-canjear:hover{background:rgba(115,103,240,.22);border-color:#7367f0;color:#fff;}
.jd-promo-steps{margin-top:10px;animation:csFadeIn .25s ease;}
.jd-promo-steps__inner{display:flex;flex-direction:column;gap:8px;}
.jd-promo-step{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);}
.jd-promo-step__num{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#7367f0,#a855f7);color:#fff;font-family:'Orbitron',monospace;font-size:.65rem;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.jd-promo-step__txt{font-family:'Rajdhani',sans-serif;font-size:.88rem;color:rgba(255,255,255,.75);line-height:1.4;}
.jd-promo-step__txt strong{color:#f5c842;}