/* common.css — styles partagés par index.html et pack.html
   (overlays panier/drawer, bouton flottant du chat). Ordre d'origine conservé. */
/* Panier droite - supporte tous les IDs/classes */
#cartDrawer,.cart-drawer,.drawer.drawer-right{
  position:fixed;top:0;right:0;
  width:380px;max-width:90vw;height:100%;
  background:#0f111a;
  border-left:1px solid rgba(255,255,255,0.08);
  z-index:999;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .36s cubic-bezier(.16,1,.3,1);
  box-shadow:none;
}
#cartDrawer.open,.cart-drawer.open,.drawer.drawer-right.open{
  transform:translateX(0);
  box-shadow:-20px 0 60px rgba(0,0,0,0.6);
}
/* Header doit être sous overlay */
header{z-index:100 !important;}
.drawer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 16px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:#0f111a;
  flex-shrink:0;
}
.popup-close,.drawer-header button{
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);
  color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:.2s;flex-shrink:0;
}
.popup-close:hover,.drawer-header button:hover{background:rgba(255,255,255,0.1);}
.popup-nav{flex:1;overflow-y:auto;padding:12px 8px;display:flex;flex-direction:column;gap:2px;}
.popup-footer{padding:14px 16px;border-top:1px solid rgba(255,255,255,0.06);font-size:11px;color:#5a6a85;text-align:center;background:#0f111a;flex-shrink:0;}
.drawer-body{flex:1;overflow-y:auto;padding:16px;}
.drawer-footer{padding:16px;border-top:1px solid rgba(255,255,255,0.08);background:rgba(0,0,0,0.2);}
.cart-total-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-family:Orbitron;font-weight:700;color:#fff;}
.checkout-btn{width:100%;padding:12px;background:#00f2fe;border:none;border-radius:10px;color:#0b0c10;font-family:Orbitron;font-weight:900;cursor:pointer;box-shadow:0 0 20px rgba(0,242,254,0.3);transition:.2s;}
.checkout-btn:hover{background:#fff;box-shadow:0 0 28px rgba(0,242,254,0.5);transform:translateY(-1px);}
.fab-button{transition:opacity .25s ease, transform .25s ease, visibility .25s ease;}
.fab-button.hidden-panel{opacity:0 !important;pointer-events:none !important;transform:scale(0.7) !important;visibility:hidden !important;}
.chat-panel.hidden-panel{opacity:0 !important;pointer-events:none !important;visibility:hidden !important;}
/* === ACCOUNT DROPDOWN V2 - PREMIUM RELOAD PRIME === */
.account-wrapper{position:relative !important;}
/* HEADER AUTH */
.acc-dd-label-dot{width:6px;height:6px;border-radius:50%;background:#00ff88;box-shadow:0 0 6px #00ff88;display:inline-block;}
/* BODY */
/* GUEST STATE */
/* === ACCOUNT DROPDOWN V3 - COMPACT === */
.account-wrapper{position:relative !important;}
.acc-dd-label-dot{width:5px;height:5px;border-radius:50%;background:#00ff88;box-shadow:0 0 5px #00ff88;display:inline-block;}
/* GUEST */
/* === ACCOUNT DROPDOWN V5 - CYBERPUNK NEON === */
.account-wrapper{position:relative !important;}
/* grid pattern */
.acc-dd-label-dot{width:6px;height:6px;background:#00ff88;box-shadow:0 0 8px #00ff88,0 0 14px #00ff88;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);animation:cyber-pulse 1.2s infinite alternate;}
@keyframes cyber-pulse{0%{box-shadow:0 0 6px #00ff88;}100%{box-shadow:0 0 12px #00ff88,0 0 20px #00ff88;}}

/* GUEST CYBERPUNK */
/* Panier droite */
#cartDrawer,.cart-drawer,.drawer.drawer-right{
  position:fixed;top:0;right:0;
  width:380px;max-width:90vw;height:100%;
  background:#0f111a;
  border-left:1px solid rgba(255,255,255,0.08);
  z-index:999;
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .36s cubic-bezier(.16,1,.3,1);
  overflow:hidden;
  clip-path:none !important;
}
#cartDrawer.open,.cart-drawer.open{
  transform:translateX(0);
  box-shadow:-20px 0 60px rgba(0,0,0,0.6);
}
.drawer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 16px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:#0f111a;
  flex-shrink:0;
}
.popup-close,.drawer-header button{
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);
  color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:.2s;flex-shrink:0;
  clip-path:none !important;
}
.popup-close:hover,.drawer-header button:hover{background:rgba(255,255,255,0.10);color:#fff;transform:none !important;box-shadow:none !important;}

.popup-nav{flex:1;overflow-y:auto;padding:12px 8px;display:flex;flex-direction:column;gap:2px;}
.popup-nav::-webkit-scrollbar{width:4px;}
.popup-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.12);border-radius:10px;}

.popup-footer{padding:14px 16px;border-top:1px solid rgba(255,255,255,0.06);font-size:11px;color:#5a6a85;text-align:center;background:#0f111a;flex-shrink:0;font-family:Inter,sans-serif !important;text-transform:none !important;letter-spacing:0 !important;}
/* === FAB CHAT — même design que le FAB du Compte (draggable conservé) === */
.fab-button{
  position:fixed !important;
  bottom:calc(88px + env(safe-area-inset-bottom)) !important;
  right:max(16px,env(safe-area-inset-right)) !important;
  left:auto !important;
  top:auto !important;
  width:58px !important;
  height:58px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#00f2fe,#7928ca) !important;
  color:#04121a !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:grab !important;
  z-index:1002 !important;
  box-shadow:0 10px 26px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.18) inset,0 0 26px rgba(0,242,254,.35) !important;
  touch-action:none !important;
  user-select:none !important;
  transition:transform .2s cubic-bezier(.2,.9,.3,1.3),box-shadow .2s,opacity .25s ease,visibility .25s ease !important;
}
@media(min-width:941px){.fab-button{right:28px !important;bottom:28px !important}}
.fab-button::before{content:"";position:absolute;inset:-6px;border-radius:50%;border:1.5px solid rgba(0,242,254,.5);opacity:0;animation:rpFabPulse 2.8s ease-out infinite;pointer-events:none}
@keyframes rpFabPulse{0%{transform:scale(.88);opacity:.7}70%,100%{transform:scale(1.25);opacity:0}}
.fab-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fab-button:hover{transform:translateY(-2px) !important}
.fab-button:active{cursor:grabbing !important;transform:scale(.92) !important}
.fab-button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.fab-button[aria-expanded="true"]{transform:rotate(90deg) !important;background:linear-gradient(135deg,#1b2233,#12141d) !important;color:#00f2fe !important;box-shadow:0 10px 26px rgba(0,0,0,.5),0 0 0 1.5px rgba(0,242,254,.55) inset !important}
.fab-button[aria-expanded="true"]::before{animation:none}
.fab-button.dragging{transition:none !important;cursor:grabbing !important;z-index:1003 !important}
@media(prefers-reduced-motion:reduce){.fab-button,.fab-button::before{transition:none !important;animation:none}}
.chat-panel{ z-index:1001 !important; }
