/* =============================================================
   Albasy Marketplace — Premium Effects Layer
   DA v2 : 60% blanc / 30% jaune #FFD600 / 10% vert
   Dépendances : alb-design-system, alb-mobile-first, alb-animations
   ============================================================= */

/* ─── 1. TOKENS EFFETS ─────────────────────────────────────── */
:root {
    --alb-glass-bg      : rgba(255, 255, 255, 0.18);
    --alb-glass-border  : rgba(255, 255, 255, 0.35);
    --alb-glass-blur    : blur(20px) saturate(180%);
    --alb-glow-yellow   : 0 0 32px rgba(255, 214, 0, 0.55);
    --alb-glow-green    : 0 0 32px rgba(0, 200, 83, 0.45);
    --alb-glow-white    : 0 0 40px rgba(255, 255, 255, 0.8);
    --alb-tilt-rx       : 0deg;
    --alb-tilt-ry       : 0deg;
    --alb-glare-x       : 50%;
    --alb-glare-y       : 50%;
    --alb-glare-opacity : 0;
    --alb-aurora-speed  : 8s;
    --alb-skeleton-base : #F0F0F0;
    --alb-skeleton-shine: #E0E0E0;
}

/* ─── 2. GLASSMORPHISM ─────────────────────────────────────── */
.alb-glass {
    background   : var(--alb-glass-bg) !important;
    backdrop-filter        : var(--alb-glass-blur);
    -webkit-backdrop-filter: var(--alb-glass-blur);
    border       : 1px solid var(--alb-glass-border) !important;
    box-shadow   : 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

.alb-glass-dark {
    background   : rgba(26, 26, 46, 0.72) !important;
    backdrop-filter        : blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border       : 1px solid rgba(255, 255, 255, 0.1) !important;
    color        : #fff !important;
}

.alb-glass-yellow {
    background   : rgba(255, 214, 0, 0.15) !important;
    backdrop-filter        : var(--alb-glass-blur);
    -webkit-backdrop-filter: var(--alb-glass-blur);
    border       : 1px solid rgba(255, 214, 0, 0.35) !important;
}

/* ─── 2b. AURORA + GLASS COMBO — glass inside aurora context ─ */
/* When an element has both alb-aurora-bg and needs glass children,
   apply alb-glass only to inner elements, not on aurora itself.
   This rule ensures aurora bg always wins over glass bg */
.alb-aurora-bg.alb-glass {
    background: linear-gradient(-45deg,
        rgba(255,214,0,.85) 0%,
        rgba(255,249,196,.9) 25%,
        rgba(232,245,233,.9) 50%,
        rgba(255,255,255,.95) 70%,
        rgba(255,214,0,.85) 100%
    ) !important;
    background-size: 400% 400% !important;
    animation: alb-aurora var(--alb-aurora-speed, 8s) ease infinite !important;
}

/* Page-header aurora — add breathing room */
.alb-page-header.alb-aurora-bg {
    padding: 2.5rem 1.5rem !important;
    border-radius: 14px;
    margin-bottom: 2rem;
}

/* ─── 3. AURORA / GRADIENT ANIMÉ ──────────────────────────── */
@keyframes alb-aurora {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes alb-aurora-rotate {
    0%   { transform: rotate(0deg)   scale(1); }
    50%  { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.alb-aurora-bg {
    position  : relative;
    background: linear-gradient(-45deg,
        rgba(255,214,0,0.18) 0%,
        rgba(255,249,196,0.35) 25%,
        rgba(232,245,233,0.25) 50%,
        #FFFFFF 70%,
        rgba(255,214,0,0.18) 100%
    ); /* v5.5.1 fix: opacités réduites, plus de jaune plein */
    background-size: 400% 400%;
    animation : alb-aurora var(--alb-aurora-speed, 8s) ease infinite;
    overflow  : hidden;
}

.alb-aurora-bg::before {
    content  : '';
    position : absolute;
    inset    : 0; /* v5.5.1 fix: était -50%, débordait du conteneur */
    background: radial-gradient(ellipse at 30% 50%, rgba(255,214,0,.12) 0%, transparent 55%),
                radial-gradient(ellipse at 70% 50%, rgba(0,200,83,.08)  0%, transparent 55%);
    animation: none; /* v5.5.1 fix: rotation infinie désactivée */
    pointer-events: none;
}

/* Header aurora compact */
.alb-aurora-header {
    background: linear-gradient(135deg,
        #FFD600 0%,
        #FFF176 40%,
        #E8F5E9 70%,
        #FFFFFF 100%
    );
    background-size: 200% 200%;
    animation : alb-aurora 6s ease infinite;
}

/* ─── 4. 3D TILT CARD ──────────────────────────────────────── */
.alb-tilt {
    transform-style : preserve-3d;
    transform       : perspective(900px)
                      rotateX(var(--alb-tilt-rx))
                      rotateY(var(--alb-tilt-ry));
    transition      : transform 0.1s ease, box-shadow 0.3s ease;
    will-change     : transform;
    position        : relative;
    overflow        : hidden;
}

.alb-tilt:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), var(--alb-glow-yellow);
}

/* Glare overlay — injecté par JS */
.alb-tilt-glare {
    position      : absolute;
    inset         : 0;
    background    : radial-gradient(
        circle at var(--alb-glare-x) var(--alb-glare-y),
        rgba(255,255,255,0.6) 0%,
        transparent 60%
    );
    opacity       : var(--alb-glare-opacity);
    pointer-events: none;
    border-radius : inherit;
    transition    : opacity 0.2s ease;
    z-index       : 2;
}

/* Inner content lifted in Z */
.alb-tilt > *:not(.alb-tilt-glare) {
    transform : translateZ(12px);
}

/* ─── 5. SKELETON SHIMMER ──────────────────────────────────── */
@keyframes alb-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.alb-skeleton,
.alb-skeleton-text,
.alb-skeleton-card {
    background     : linear-gradient(
        90deg,
        var(--alb-skeleton-base)  25%,
        var(--alb-skeleton-shine) 50%,
        var(--alb-skeleton-base)  75%
    );
    background-size: 200% 100%;
    animation      : alb-shimmer 1.4s infinite;
    border-radius  : 8px;
    color          : transparent;
    pointer-events : none;
    user-select    : none;
}

.alb-skeleton-text  { height: 1em;   width: 80%; display: block; margin-bottom: .4em; }
.alb-skeleton-text.alb-sk-short  { width: 45%; }
.alb-skeleton-text.alb-sk-full   { width: 100%; }

.alb-skeleton-card {
    min-height    : 180px;
    border-radius : 14px;
}

/* Skeleton avatar */
.alb-skeleton-avatar {
    width         : 44px;
    height        : 44px;
    border-radius : 50%;
    flex-shrink   : 0;
    background    : linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation     : alb-shimmer 1.4s infinite;
}

/* Skeleton grid — 1 col mobile, 2-3 col desktop */
.alb-skeleton-grid {
    display              : grid;
    grid-template-columns: 1fr;
    gap                  : 1rem;
}
@media (min-width: 600px) {
    .alb-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .alb-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 6. GRADIENT TEXT ─────────────────────────────────────── */
.alb-text-gradient {
    background          : linear-gradient(135deg, #FFD600 0%, #F9A825 50%, #00C853 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

.alb-text-gradient-dark {
    background          : linear-gradient(135deg, #1A1A2E 0%, #212121 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* ─── 7. GLOW EFFECTS ──────────────────────────────────────── */
.alb-glow-yellow { box-shadow: var(--alb-glow-yellow); }
.alb-glow-green  { box-shadow: var(--alb-glow-green) ; }

.alb-btn-glow {
    position  : relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alb-btn-glow::after {
    content       : '';
    position      : absolute;
    inset         : -4px;
    border-radius : inherit;
    background    : inherit;
    filter        : blur(12px);
    opacity       : 0;
    z-index       : -1;
    transition    : opacity 0.3s ease;
}

.alb-btn-glow:hover::after { opacity: 0.5; }

.alb-btn-glow:hover {
    transform  : translateY(-3px);
    box-shadow : 0 12px 40px rgba(255, 214, 0, 0.5);
}

/* ─── 8. MAGNETIC BUTTON ───────────────────────────────────── */
.alb-btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.2s ease !important;
    will-change: transform;
}

.alb-btn-magnetic:hover {
    box-shadow: 0 16px 48px rgba(255, 214, 0, 0.45);
}

/* ─── 9. STAGGER 3D GRID ENTRANCE ─────────────────────────── */
@keyframes alb-stagger-3d {
    from {
        opacity  : 0;
        transform: perspective(600px) rotateX(20deg) translateY(30px) scale(0.94);
    }
    to {
        opacity  : 1;
        transform: perspective(600px) rotateX(0deg) translateY(0) scale(1);
    }
}

.alb-stagger-3d > * {
    opacity  : 0;
    animation: alb-stagger-3d 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Delays pour 8 enfants */
.alb-stagger-3d > *:nth-child(1) { animation-delay: 0.05s; }
.alb-stagger-3d > *:nth-child(2) { animation-delay: 0.12s; }
.alb-stagger-3d > *:nth-child(3) { animation-delay: 0.19s; }
.alb-stagger-3d > *:nth-child(4) { animation-delay: 0.26s; }
.alb-stagger-3d > *:nth-child(5) { animation-delay: 0.33s; }
.alb-stagger-3d > *:nth-child(6) { animation-delay: 0.40s; }
.alb-stagger-3d > *:nth-child(7) { animation-delay: 0.47s; }
.alb-stagger-3d > *:nth-child(8) { animation-delay: 0.54s; }

/* ─── 10. PAGE / SECTION TRANSITIONS ──────────────────────── */
@keyframes alb-page-in {
    from {
        opacity  : 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity  : 1;
        transform: translateY(0)    scale(1);
    }
}

@keyframes alb-page-out {
    from {
        opacity  : 1;
        transform: translateY(0)     scale(1);
    }
    to {
        opacity  : 0;
        transform: translateY(-16px) scale(0.98);
    }
}

.alb-page-enter {
    animation: alb-page-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.alb-page-exit {
    animation: alb-page-out 0.25s ease both;
}

/* Section slide-in from sides */
@keyframes alb-slide-left {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes alb-slide-right {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alb-slide-left  { animation: alb-slide-left  0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.alb-slide-right { animation: alb-slide-right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ─── 11. FLOATING BADGES / TAGS ──────────────────────────── */
@keyframes alb-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-6px); }
}

@keyframes alb-float-rotate {
    0%, 100% { transform: translateY(0)   rotate(-3deg); }
    50%       { transform: translateY(-8px) rotate(3deg);  }
}

.alb-float        { animation: alb-float        3s ease-in-out infinite; }
.alb-float-rotate { animation: alb-float-rotate 4s ease-in-out infinite; }

/* Floating badge pill */
.alb-badge-float {
    display      : inline-flex;
    align-items  : center;
    gap          : .35rem;
    padding      : .35rem .85rem;
    border-radius: 9999px;
    font-size    : .78rem;
    font-weight  : 700;
    box-shadow   : 0 4px 16px rgba(0,0,0,0.12);
    animation    : alb-float 2.5s ease-in-out infinite;
}

.alb-badge-float-yellow {
    background: #FFD600;
    color      : #1A1A2E;
}

.alb-badge-float-green {
    background: #00C853;
    color      : #fff;
}

/* ─── 12. NEON BORDER PULSE ─────────────────────────────────  */
@keyframes alb-neon-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,214,0,.4),  0 0 24px rgba(255,214,0,.2); }
    50%       { box-shadow: 0 0 16px rgba(255,214,0,.8), 0 0 48px rgba(255,214,0,.4); }
}

.alb-neon-border {
    border    : 2px solid #FFD600;
    animation : alb-neon-pulse 2.4s ease-in-out infinite;
}

/* ─── 13. MORPHING BLOB ────────────────────────────────────── */
@keyframes alb-blob-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    33%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    66%       { border-radius: 40% 60% 30% 70% / 40% 50% 70% 30%; }
}

.alb-blob {
    animation : alb-blob-morph 8s ease-in-out infinite;
    background: linear-gradient(135deg, #FFD600, #FFF176);
}

/* ─── 14. COUNTER BADGE BOUNCE ─────────────────────────────── */
@keyframes alb-badge-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.5); }
    60%  { transform: scale(0.85); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.alb-badge-updated {
    animation: alb-badge-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 15. PROGRESS RING ─────────────────────────────────────── */
.alb-progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.alb-progress-ring-circle {
    fill            : none;
    stroke          : #FFD600;
    stroke-linecap  : round;
    stroke-dashoffset: var(--alb-ring-offset, 0);
    transition      : stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 16. SPOTLIGHT HOVER ──────────────────────────────────── */
.alb-spotlight {
    position: relative;
    overflow: hidden;
}

.alb-spotlight::before {
    content   : '';
    position  : absolute;
    width     : 200px;
    height    : 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,214,0,.2) 0%, transparent 70%);
    transform : translate(-50%, -50%);
    left      : var(--alb-spot-x, 50%);
    top       : var(--alb-spot-y, 50%);
    pointer-events: none;
    opacity   : 0;
    transition: opacity 0.3s ease;
}

.alb-spotlight:hover::before { opacity: 1; }

/* ─── 17. PARTICLES CANVAS ─────────────────────────────────── */
.alb-particle-bg { position: relative; overflow: hidden; }

.alb-particles-canvas {
    position      : absolute;
    inset         : 0;
    pointer-events: none;
    opacity       : 0.35;
    z-index       : 0;
}

.alb-particle-bg > *:not(.alb-particles-canvas) { position: relative; z-index: 1; }

/* ─── 18. CONFETTI CANVAS ──────────────────────────────────── */
.alb-confetti-canvas {
    position      : fixed;
    inset         : 0;
    pointer-events: none;
    z-index       : 9999;
}

/* ─── 19. CARD FLIP 3D ─────────────────────────────────────── */
.alb-flip-card {
    perspective: 1000px;
}

.alb-flip-card-inner {
    position         : relative;
    width            : 100%;
    height           : 100%;
    transform-style  : preserve-3d;
    transition       : transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alb-flip-card:hover .alb-flip-card-inner,
.alb-flip-card.is-flipped .alb-flip-card-inner {
    transform: rotateY(180deg);
}

.alb-flip-front,
.alb-flip-back {
    position          : absolute;
    inset             : 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius     : inherit;
}

.alb-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #FFD600, #FFF176);
    display   : flex;
    align-items: center;
    justify-content: center;
}

/* ─── 20. REDUCED MOTION OVERRIDES ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .alb-aurora-bg,
    .alb-aurora-bg::before,
    .alb-aurora-header,
    .alb-float,
    .alb-float-rotate,
    .alb-badge-float,
    .alb-blob,
    .alb-neon-border,
    .alb-skeleton,
    .alb-skeleton-text,
    .alb-skeleton-card,
    .alb-skeleton-avatar {
        animation: none !important;
    }

    .alb-tilt {
        transform: none !important;
    }

    .alb-stagger-3d > * {
        animation: none !important;
        opacity  : 1 !important;
    }

    .alb-page-enter,
    .alb-page-exit,
    .alb-slide-left,
    .alb-slide-right {
        animation: none !important;
        opacity  : 1 !important;
        transform: none !important;
    }

    .alb-flip-card-inner {
        transition: none !important;
    }
}

/* =============================================================
   AUTO-APPLICATION — Effets appliqués sur TOUTES les classes DA
   Sans toucher chaque template individuellement.
   ============================================================= */

/* ─── A. PAGE HEADERS → Aurora animé sur toutes les pages ──── */
.alb-page-header {
    background   : linear-gradient(-45deg, #FFD600 0%, #FFF9C4 25%, #E8F5E9 55%, #FFFFFF 75%, #FFD600 100%) !important;
    background-size: 400% 400% !important;
    animation    : alb-aurora 9s ease infinite !important;
    padding      : 2.75rem 1.5rem !important;
    border-radius: var(--alb-radius-lg, 16px);
    margin-bottom: 2rem;
    overflow     : hidden;
    position     : relative;
    text-align   : center;
}

/* Lueur radiale derrière le header */
.alb-page-header::before {
    content  : '';
    position : absolute;
    inset    : -40%;
    background: radial-gradient(ellipse at 35% 50%, rgba(255,214,0,.4) 0%, transparent 55%),
                radial-gradient(ellipse at 65% 50%, rgba(0,200,83,.25) 0%, transparent 55%);
    animation: alb-aurora-rotate 14s linear infinite;
    pointer-events: none;
    z-index  : 0;
}

.alb-page-header > * { position: relative; z-index: 1; }

/* ─── B. TITRES → Gradient text sur toutes les pages ────────── */
.alb-page-title,
.ape-page-title {
    background          : linear-gradient(135deg, #1A1A2E 0%, #424242 60%, #1A1A2E 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* Titres des sections */
.alb-lc__section-title,
.alb-card-header h2,
.acd-card-header h3,
.acd-content-header h3 {
    background          : linear-gradient(135deg, #1A1A2E 0%, #616161 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* ─── C. CARDS → Effet verre léger sur toutes les pages ─────── */
.alb-card,
.acd-card,
.alb-zone-card,
.alb-top-product-item,
.ape-order-card,
.acd-order-row,
.alb-lc__redeem-card {
    background  : rgba(255, 255, 255, 0.88);
    backdrop-filter       : blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border      : 1px solid rgba(255, 255, 255, 0.65);
    box-shadow  : 0 4px 24px rgba(0, 0, 0, 0.06),
                  inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition  : transform 0.2s ease, box-shadow 0.3s ease;
}

.alb-card:hover,
.acd-card:hover,
.alb-zone-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.10),
                0 0 0 1px rgba(255,214,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ─── D. STAT CARDS → Glass + prêt pour tilt JS ─────────────── */
.alb-stat-card,
.acd-stat-card:not([class*="alb-glass"]) {
    background  : rgba(255, 255, 255, 0.88);
    backdrop-filter       : blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border      : 1px solid rgba(255, 255, 255, 0.65);
    box-shadow  : 0 4px 24px rgba(0, 0, 0, 0.05),
                  inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ─── E. BOUTONS PRIMAIRES → Glow aura sur toutes les pages ─── */
.alb-btn.alb-btn-primary,
.ape-btn.ape-btn-primary,
.acd-btn-primary {
    position : relative;
    overflow : visible;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease;
}

.alb-btn.alb-btn-primary::after,
.ape-btn.ape-btn-primary::after,
.acd-btn-primary::after {
    content      : '';
    position     : absolute;
    inset        : -4px;
    border-radius: inherit;
    background   : #FFD600;
    filter       : blur(14px);
    opacity      : 0;
    z-index      : -1;
    transition   : opacity 0.3s ease;
}

.alb-btn.alb-btn-primary:hover::after,
.ape-btn.ape-btn-primary:hover::after,
.acd-btn-primary:hover::after { opacity: 0.5; }

.alb-btn.alb-btn-primary:hover,
.ape-btn.ape-btn-primary:hover,
.acd-btn-primary:hover {
    transform : translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 214, 0, 0.5);
}

/* ─── F. GRILLES → Classe stagger-3d ajoutée via JS ─────────── */
/* Les grilles reçoivent la classe via initAutoEffects() en JS   */
/* Ici on s'assure que les enfants directs ont overflow visible   */
.alb-zones-grid,
.acd-badges-grid,
.ape-orders-full-list {
    overflow: visible;
}

/* ─── G. SECTION ENTRÉE → Animation douce sur page load ─────── */
[class*="-page"].alb-fade-in,
[class*="-page"][class*="alb-fade"] {
    animation: alb-page-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ─── H. EMPTY STATES → Plus visuels ────────────────────────── */
.alb-empty-state,
.ape-empty-state,
.acd-empty-state {
    background  : linear-gradient(135deg, rgba(255,214,0,.06) 0%, rgba(255,255,255,1) 100%);
    border      : 2px dashed rgba(255,214,0,.4);
    border-radius: 16px;
    padding     : 3rem 2rem;
}

.alb-empty-state i,
.ape-empty-state i,
.acd-empty-state i {
    color : #FFD600;
    filter: drop-shadow(0 4px 12px rgba(255,214,0,.5));
    animation: alb-float 3s ease-in-out infinite;
}

/* ─── I. BADGES → Float animé ───────────────────────────────── */
.alb-badge,
.ape-order-badge,
.acd-badge-item {
    animation: alb-float 3.5s ease-in-out infinite;
    animation-delay: calc(var(--badge-i, 0) * 0.3s);
}

/* ─── J. ICÔNE DE STAT ─────────────────────────────────────── */
.acd-stat-icon,
.alb-kpi-icon {
    animation: alb-float 4s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ─── K. REDUCED MOTION — tout désactiver ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    .alb-page-header,
    .alb-page-header::before,
    .alb-empty-state i, .ape-empty-state i, .acd-empty-state i,
    .alb-badge, .ape-order-badge, .acd-badge-item,
    .acd-stat-icon, .alb-kpi-icon,
    [class*="-page"].alb-fade-in {
        animation: none !important;
    }
    .alb-btn.alb-btn-primary:hover,
    .ape-btn.ape-btn-primary:hover,
    .acd-btn-primary:hover {
        transform: none;
    }
}

/* ─── CATEGORIES SLIDER — fashion portrait cards ─────────── */

/* Wrapper */
.alb-cat-slider-wrap {
    position: relative;
    padding-bottom: 52px; /* room for controls */
    margin: 0 -4px; /* compensate track padding */
}

/* Overflow container */
.alb-cat-slider {
    overflow: hidden;
}

/* Scrollable track */
.alb-cat-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 10px;
}
.alb-cat-track::-webkit-scrollbar { display: none; }

/* Individual slide — portrait 2/3 ratio */
.alb-cat-slide {
    scroll-snap-align: start;
    flex: 0 0 calc(25% - 11px); /* 4 visible on desktop */
    min-width: 180px;
    max-width: 280px;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease;
    background: #1A1A2E;
}
.alb-cat-slide:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

/* Image area — fills top 80% */
.alb-cat-slide-media {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.alb-cat-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.alb-cat-slide:hover .alb-cat-slide-img {
    transform: scale(1.08);
}
.alb-cat-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #FFF9C4 0%, #FFD600 60%, #D4B800 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(26,26,46,0.5);
}

/* Gradient scrim over image */
.alb-cat-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(26,26,46,0.65) 100%
    );
    pointer-events: none;
}

/* Count badge — top right pill */
.alb-cat-slide-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    color: #1A1A2E;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    white-space: nowrap;
}

/* Caption strip — frosted glass at bottom */
.alb-cat-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 14px;
    background: rgba(26,26,46,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.alb-cat-slide-name {
    color: #fff;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    letter-spacing: 0.2px;
}
.alb-cat-slide-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD600;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
}
.alb-cat-slide:hover .alb-cat-slide-cta {
    opacity: 1;
    transform: translateX(0);
}
.alb-cat-slide-cta i { font-size: 10px; }

/* Controls row */
.alb-cat-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}
.alb-cs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: #fff;
    color: #1A1A2E;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.alb-cs-arrow:hover {
    background: #1A1A2E;
    border-color: #1A1A2E;
    color: #FFD600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.alb-cs-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.alb-cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.alb-cs-dot.active {
    background: #1A1A2E;
    width: 20px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .alb-cat-slide { flex: 0 0 calc(33.333% - 10px); }
}
@media (max-width: 768px) {
    .alb-cat-slide { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 480px) {
    .alb-cat-slide { flex: 0 0 72%; min-width: 0; }
    .alb-cat-controls { gap: 8px; }
}

/* Legacy grid kept for possible direct use elsewhere */
.alb-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}
@media (min-width: 600px)  { .alb-categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .alb-categories-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1280px) { .alb-categories-grid { grid-template-columns: repeat(6, 1fr); } }

.alb-cat-card {
    position: relative; display: block; border-radius: 14px; overflow: hidden;
    aspect-ratio: 1; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.alb-cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.alb-cat-img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; display:block; }
.alb-cat-card:hover .alb-cat-img { transform: scale(1.08); }
.alb-cat-svg-placeholder {
    width:100%; height:100%;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD600 100%);
    display: flex; align-items: center; justify-content: center;
}
.alb-cat-svg-placeholder i { color: #1A1A2E; opacity: 0.8; font-size: 2.5rem; }
.alb-cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
    transition: background .3s ease;
}
.alb-cat-card:hover .alb-cat-overlay { background: linear-gradient(to top, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.2) 55%); }
.alb-cat-name { color:#fff; font-family:'Playfair Display',serif; font-size:.95rem; font-weight:700; margin:0 0 .2rem; }
.alb-cat-count { color:rgba(255,255,255,.7); font-size:.75rem; font-family:'DM Sans',sans-serif; }
.alb-cat-cta { color:#FFD600; font-size:.75rem; font-weight:600; margin-top:.35rem; opacity:0; transform:translateY(4px); transition:opacity .2s ease, transform .2s ease; }
.alb-cat-card:hover .alb-cat-cta { opacity:1; transform:translateY(0); }

/* =============================================================
   PREMIUM EFFECTS v2 — Luxury Fashion Marketplace
   Added: holographic, gold glow, frost hover, morphing blob,
   modal transitions, bottom sheet, order timeline, price drop
   ============================================================= */

/* ─── HOLOGRAPHIC SHIMMER — premium product badge ─────────── */
.alb-holographic {
    position: relative;
    overflow: hidden;
}
.alb-holographic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,214,0,0.12) 30%,
        rgba(0,200,83,0.08) 40%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,214,0,0.12) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    animation: alb-holo-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes alb-holo-shine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── GOLD GLOW — luxury CTA / premium elements ──────────── */
.alb-gold-glow {
    box-shadow: 0 0 0 1px rgba(255,214,0,0.3),
                0 4px 16px rgba(255,214,0,0.2),
                0 8px 32px rgba(255,214,0,0.1);
    transition: box-shadow 0.4s ease;
}
.alb-gold-glow:hover {
    box-shadow: 0 0 0 2px rgba(255,214,0,0.5),
                0 8px 24px rgba(255,214,0,0.35),
                0 16px 48px rgba(255,214,0,0.15);
}

/* ─── FROST HOVER — glassmorphism on hover ────────────────── */
.alb-frost-hover {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.alb-frost-hover:hover {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ─── MORPHING BLOB — animated background shape ──────────── */
.alb-morph-bg {
    position: relative;
    overflow: hidden;
}
.alb-morph-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    background: linear-gradient(135deg,
        rgba(255,214,0,0.12) 0%,
        rgba(0,200,83,0.06) 50%,
        rgba(255,214,0,0.08) 100%
    );
    animation: alb-morph 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes alb-morph {
    0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; transform: rotate(0deg) scale(1); }
    33%      { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; transform: rotate(120deg) scale(1.05); }
    66%      { border-radius: 45% 55% 60% 40% / 60% 45% 55% 45%; transform: rotate(240deg) scale(0.95); }
}

/* ─── MODAL TRANSITIONS — smooth enter/exit ──────────────── */
.alb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}
.alb-modal-overlay.active {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: all;
}
.alb-modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
    max-width: 540px;
    width: 92%;
    background: var(--alb-white, #fff);
    border-radius: var(--alb-radius-xl, 28px);
    box-shadow: var(--alb-shadow-xl);
    padding: 2rem;
}
.alb-modal-overlay.active .alb-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ─── BOTTOM SHEET — mobile drawer ────────────────────────── */
.alb-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: var(--alb-white, #fff);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1.5rem 2rem;
}
.alb-bottom-sheet.active {
    transform: translateY(0);
}
.alb-bottom-sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--alb-gray-300, #BDBDBD);
    margin: 12px auto 16px;
}

/* ─── ORDER TIMELINE — animated step progress ────────────── */
.alb-timeline {
    position: relative;
    padding-left: 28px;
}
.alb-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--alb-gray-200, #E0E0E0);
}
.alb-timeline-step {
    position: relative;
    padding: 0 0 24px 20px;
    opacity: 0;
    transform: translateX(-10px);
    animation: alb-timeline-in 0.4s ease forwards;
}
.alb-timeline-step:nth-child(1) { animation-delay: 0s; }
.alb-timeline-step:nth-child(2) { animation-delay: 0.15s; }
.alb-timeline-step:nth-child(3) { animation-delay: 0.3s; }
.alb-timeline-step:nth-child(4) { animation-delay: 0.45s; }
.alb-timeline-step:nth-child(5) { animation-delay: 0.6s; }
.alb-timeline-step::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--alb-gray-300);
    border: 3px solid var(--alb-white, #fff);
    box-shadow: 0 0 0 2px var(--alb-gray-200);
    transition: all 0.3s ease;
}
.alb-timeline-step.completed::before {
    background: var(--alb-green, #00C853);
    box-shadow: 0 0 0 2px var(--alb-green-light, #E8F5E9),
                0 0 12px rgba(0,200,83,0.3);
}
.alb-timeline-step.active::before {
    background: var(--alb-yellow, #FFD600);
    box-shadow: 0 0 0 2px var(--alb-yellow-light),
                0 0 12px rgba(255,214,0,0.3);
    animation: alb-pulse-dot 2s ease infinite;
}
@keyframes alb-timeline-in {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes alb-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px var(--alb-yellow-light), 0 0 12px rgba(255,214,0,0.3); }
    50%      { box-shadow: 0 0 0 4px var(--alb-yellow-pale), 0 0 20px rgba(255,214,0,0.45); }
}

/* ─── PRICE DROP — attention animation ────────────────────── */
.alb-price-drop {
    display: inline-block;
    animation: alb-price-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
    color: var(--alb-danger, #F44336);
}
@keyframes alb-price-bounce {
    0%   { transform: scale(1.4) rotate(-3deg); opacity: 0; }
    50%  { transform: scale(0.95) rotate(1deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ─── NOTIFICATION BELL SHAKE ─────────────────────────────── */
.alb-bell-shake {
    animation: alb-bell 0.8s ease;
    transform-origin: top center;
}
@keyframes alb-bell {
    0%   { transform: rotate(0); }
    15%  { transform: rotate(14deg); }
    30%  { transform: rotate(-12deg); }
    45%  { transform: rotate(8deg); }
    60%  { transform: rotate(-5deg); }
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

/* ─── FLOATING LABEL — form input ─────────────────────────── */
.alb-float-field {
    position: relative;
    margin-bottom: 1.25rem;
}
.alb-float-field input,
.alb-float-field textarea,
.alb-float-field select {
    width: 100%;
    padding: 1.1rem 1rem 0.5rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--alb-gray-200);
    border-radius: var(--alb-radius-sm, 8px);
    background: var(--alb-white, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--alb-font-body);
}
.alb-float-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--alb-text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    font-family: var(--alb-font-body);
}
.alb-float-field input:focus,
.alb-float-field textarea:focus,
.alb-float-field select:focus {
    border-color: var(--alb-yellow);
    box-shadow: 0 0 0 3px var(--alb-yellow-glow2);
    outline: none;
}
.alb-float-field input:focus + label,
.alb-float-field input:not(:placeholder-shown) + label,
.alb-float-field textarea:focus + label,
.alb-float-field textarea:not(:placeholder-shown) + label,
.alb-float-field select:focus + label {
    top: 0.45rem;
    transform: translateY(0);
    font-size: 0.72rem;
    color: var(--alb-yellow-dark);
    font-weight: 600;
}

/* ─── SCROLL PROGRESS BAR ─────────────────────────────────── */
.alb-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--alb-yellow), var(--alb-green));
    z-index: 999999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ─── LUXURY CARD LIFT — enhanced hover for product cards ── */
.alb-card-lift {
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
}
.alb-card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12),
                0 0 0 1px rgba(255,214,0,0.1);
}

/* ─── BADGE GLOW — vendor trust indicators ────────────────── */
.alb-badge-glow-gold {
    box-shadow: 0 0 0 2px rgba(255,214,0,0.3),
                0 0 12px rgba(255,214,0,0.2);
    animation: alb-glow-pulse-gold 2.5s ease infinite;
}
@keyframes alb-glow-pulse-gold {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255,214,0,0.3), 0 0 12px rgba(255,214,0,0.2); }
    50%      { box-shadow: 0 0 0 4px rgba(255,214,0,0.4), 0 0 20px rgba(255,214,0,0.35); }
}
.alb-badge-glow-green {
    box-shadow: 0 0 0 2px rgba(0,200,83,0.3),
                0 0 12px rgba(0,200,83,0.2);
    animation: alb-glow-pulse-green 2.5s ease infinite;
}
@keyframes alb-glow-pulse-green {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0,200,83,0.3), 0 0 12px rgba(0,200,83,0.2); }
    50%      { box-shadow: 0 0 0 4px rgba(0,200,83,0.4), 0 0 20px rgba(0,200,83,0.35); }
}

/* ─── STEP PROGRESS — checkout/verification ───────────────── */
.alb-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 0;
}
.alb-step-progress__item {
    display: flex;
    align-items: center;
    flex: 1;
}
.alb-step-progress__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--alb-font-body);
    border: 2px solid var(--alb-gray-200);
    background: var(--alb-white);
    color: var(--alb-text-muted);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
}
.alb-step-progress__line {
    flex: 1;
    height: 2px;
    background: var(--alb-gray-200);
    position: relative;
    overflow: hidden;
}
.alb-step-progress__line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--alb-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}
.alb-step-progress__item.completed .alb-step-progress__circle {
    background: var(--alb-green);
    border-color: var(--alb-green);
    color: white;
    box-shadow: 0 0 12px rgba(0,200,83,0.3);
}
.alb-step-progress__item.completed .alb-step-progress__line::after {
    transform: scaleX(1);
}
.alb-step-progress__item.active .alb-step-progress__circle {
    background: var(--alb-yellow);
    border-color: var(--alb-yellow);
    color: var(--alb-dark);
    box-shadow: 0 0 16px rgba(255,214,0,0.35);
    animation: alb-pulse-dot 2s ease infinite;
}

/* ─── REDUCED MOTION — respect user preferences ──────────── */
@media (prefers-reduced-motion: reduce) {
    .alb-holographic::after,
    .alb-morph-bg::before,
    .alb-timeline-step,
    .alb-badge-glow-gold,
    .alb-badge-glow-green,
    .alb-step-progress__item.active .alb-step-progress__circle {
        animation: none;
    }
    .alb-frost-hover:hover,
    .alb-card-lift:hover {
        transform: none;
    }
    .alb-modal-content,
    .alb-bottom-sheet {
        transition-duration: 0.01s;
    }
}
