/* ============================================================
   FIXEO V3 STABLE CLEAN — CSS VARIABLES & DESIGN TOKENS
   Instagram-inspired palette · Glassmorphism · Premium UI
   ============================================================ */
:root {
  /* — Instagram-inspired Brand Colors — */
  --ig-gradient: linear-gradient(45deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D,#F56040,#F77737,#FCAF45,#FFDC80);
  --ig-gradient-short: linear-gradient(135deg,#405DE6,#833AB4,#E1306C,#F77737,#FCAF45);

  --primary: #E1306C;
  --primary-dark: #C13584;
  --secondary: #833AB4;
  --accent: #F77737;
  --accent2: #FCAF45;
  --accent-blue: #405DE6;
  --accent-pink: #C13584;
  --accent-orange: #F77737;
  --accent-red: #E1306C;
  --gold: #FFD700;
  --success: #20c997;
  --danger: #ff4757;
  --warning: #ffa502;
  --info: #3742fa;

  /* — Dark Theme Base — */
  --bg-dark: #0D0D1A;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.09);
  --glass-border: rgba(255,255,255,0.12);
  --glass-border-strong: rgba(255,255,255,0.2);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.70);
  --text-muted: rgba(255,255,255,0.45);

  /* — Gradients — */
  --grad-primary: linear-gradient(135deg,#E1306C 0%,#833AB4 50%,#C13584 100%);
  --grad-warm: linear-gradient(135deg,#FCAF45 0%,#F77737 50%,#E1306C 100%);
  --grad-cool: linear-gradient(135deg,#405DE6 0%,#5851DB 30%,#833AB4 60%,#C13584 80%,#E1306C 100%);
  --grad-dark: linear-gradient(135deg,#0D0D1A 0%,#1a1a2e 50%,#16213e 100%);
  --grad-glass: linear-gradient(135deg,rgba(255,255,255,0.10) 0%,rgba(255,255,255,0.04) 100%);
  --grad-gold: linear-gradient(135deg,#FFD700 0%,#FFA500 100%);
  --grad-success: linear-gradient(135deg,#20c997 0%,#0dcaf0 100%);

  /* — Glassmorphism — */
  --glass-bg: rgba(255,255,255,0.06);
  --glass-bg-strong: rgba(255,255,255,0.12);
  --glass-blur: blur(20px);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.4);
  --neon-glow: 0 0 20px rgba(64,93,230,0.5),0 0 40px rgba(193,53,132,0.25);
  --shadow-glow: 0 0 20px rgba(225,48,108,0.4);
  --shadow-glow-gold: 0 0 20px rgba(255,215,0,0.4);

  /* — Typography — */
  --font-main: 'Cairo','Tajawal','Inter',system-ui,sans-serif;
  --font-arabic: 'Cairo','Tajawal',sans-serif;

  /* — Spacing — */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;

  /* — Border Radius — */
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px;
  --radius-xl: 32px; --radius-full: 9999px;

  /* — Transitions — */
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* — Z-index layers — */
  --z-dropdown: 100; --z-sticky: 200; --z-fixed: 300;
  --z-modal-backdrop: 400; --z-modal: 500;
  --z-toast: 600; --z-tooltip: 700;

  /* — Layout — */
  --navbar-height: 70px;
  --sidebar-width: 260px;
  --sidebar-w: 260px;
  --header-h: 70px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: #0d0d0d;
  --bg-card: rgba(255,255,255,0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --border-color: rgba(255,255,255,0.1);
}

/* Light Mode */
[data-theme="light"] {
  --bg-body: #f5f5f5;
  --bg-card: rgba(255,255,255,0.9);
  --text-primary: #0d0d0d;
  --text-secondary: rgba(0,0,0,0.6);
  --border-color: rgba(0,0,0,0.1);
}


/* ============================================================
   FIXEO V3 STABLE CLEAN — Main CSS
   Instagram-inspired · Glassmorphism · Premium
   ============================================================ */

/* ── 1. Reset & Base ─────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:var(--font-main);
  background:linear-gradient(135deg,var(--bg-dark) 0%,#1a1a2e 50%,#16213e 100%);
  color:var(--text-primary);min-height:100vh;overflow-x:hidden;
}
body[dir="rtl"]{font-family:var(--font-arabic)}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{cursor:pointer;border:none;background:none;font-family:inherit}
ul,ol{list-style:none}
input,textarea,select{font-family:inherit}

/* ── 2. Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:rgba(255,255,255,0.05)}
::-webkit-scrollbar-thumb{background:var(--ig-gradient);border-radius:6px;border:2px solid rgba(255,255,255,0.06);min-height:40px}

/* ── 3. Typography ───────────────────────────────────────── */
h1{font-size:clamp(2rem,5vw,4rem);font-weight:800;line-height:1.1}
h2{font-size:clamp(1.5rem,3vw,2.5rem);font-weight:700}
h3{font-size:clamp(1.1rem,2vw,1.5rem);font-weight:600}
h4{font-size:1.1rem;font-weight:600}
p{line-height:1.7;color:var(--text-secondary)}
.text-gradient{
  background:var(--ig-gradient);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.text-muted{color:var(--text-muted);font-size:0.85rem}

/* ── 4. Animated Background ──────────────────────────────── */
.bg-animated{
  position:fixed;inset:0;z-index:-1;
  background:
    radial-gradient(ellipse 80% 80% at 20% 20%,rgba(64,93,230,0.2) 0%,transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%,rgba(193,53,132,0.2) 0%,transparent 60%),
    linear-gradient(135deg,#0D0D1A 0%,#1a1a2e 50%,#16213e 100%);
}

/* ── 5. Logo Component ───────────────────────────────────── */
.logo-wrap{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.logo-icon{
  width:42px;height:42px;border-radius:12px;
  background:var(--ig-gradient);
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;flex-shrink:0;
  box-shadow:0 4px 15px rgba(225,48,108,0.4);
}
.logo-text{
  font-size:1.5rem;font-weight:800;letter-spacing:-0.5px;
  background:var(--ig-gradient);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}

/* ── 6. Glassmorphism Cards ──────────────────────────────── */
.glass-card{
  background:var(--bg-card);
  backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);box-shadow:var(--card-shadow);
  transition:var(--transition);
}
.glass-card:hover{
  background:var(--bg-card-hover);border-color:var(--glass-border-strong);
  transform:translateY(-4px);box-shadow:var(--neon-glow),var(--card-shadow);
}
.card{
  background:rgba(255,255,255,0.06);backdrop-filter:blur(20px);
  border:1px solid var(--glass-border);border-radius:var(--radius-lg);
  padding:var(--space-6);box-shadow:var(--card-shadow);
}
.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}
.chart-card{
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:1.25rem;
}
.chart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;flex-wrap:wrap;gap:8px}
.chart-tabs{display:flex;gap:4px}
.chart-tab{
  padding:4px 12px;font-size:0.78rem;border-radius:var(--radius-full);
  color:var(--text-muted);cursor:pointer;transition:var(--transition);border:1px solid transparent;
}
.chart-tab.active{
  background:rgba(225,48,108,0.15);color:var(--accent-red);border-color:rgba(225,48,108,0.3);
}

/* ── 7. Buttons ──────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 24px;border-radius:var(--radius-md);font-weight:600;
  font-size:0.95rem;transition:var(--transition);position:relative;overflow:hidden;
  white-space:nowrap;cursor:pointer;border:none;font-family:var(--font-main);
}
.btn-primary{
  background:var(--grad-primary);color:#fff;
  box-shadow:0 4px 15px rgba(225,48,108,0.4);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(225,48,108,0.5)}
.btn-secondary{
  background:rgba(255,255,255,0.08);border:1px solid var(--glass-border-strong);color:#fff;
}
.btn-secondary:hover{background:rgba(255,255,255,0.15);border-color:rgba(255,255,255,0.3)}
.btn-express{
  background:linear-gradient(135deg,#FCAF45,#F77737,#E1306C);color:#fff;
  box-shadow:0 4px 15px rgba(247,119,55,0.4);
}
.btn-express:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(247,119,55,0.5)}
.btn-ghost{background:transparent;border:1px solid var(--glass-border);color:var(--text-secondary)}
.btn-ghost:hover{background:rgba(255,255,255,0.08);color:#fff}
.btn-link{background:none;border:none;color:var(--accent-pink);cursor:pointer;font-size:0.85rem;padding:0}
.btn-lg{padding:14px 32px;font-size:1rem}
.btn-sm{padding:6px 14px;font-size:0.8rem}
.w-100,.w-full{width:100%}
.btn-nav{
  padding:8px 18px;border-radius:var(--radius-full);font-size:0.85rem;
  font-weight:600;transition:var(--transition);display:inline-flex;align-items:center;gap:6px;
}
.btn-nav-outline{border:1px solid var(--glass-border-strong);color:#fff}
.btn-nav-outline:hover{background:rgba(255,255,255,0.1)}
.btn-nav-primary{
  background:var(--grad-primary);color:#fff;
  box-shadow:0 2px 10px rgba(225,48,108,0.3);
}
.btn-nav-primary:hover{transform:translateY(-1px);box-shadow:0 4px 15px rgba(225,48,108,0.4)}

/* ── 8. Navbar ───────────────────────────────────────────── */
.navbar{
  position:fixed;top:0;left:0;right:0;z-index:var(--z-fixed);
  height:var(--navbar-height);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;gap:16px;
  background:rgba(13,13,26,0.85);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--glass-border);
  transition:var(--transition);
}
.navbar.scrolled{
  background:rgba(13,13,26,0.97);
  box-shadow:0 4px 20px rgba(0,0,0,0.4);
}
.navbar-brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.navbar-brand .logo-icon{width:38px;height:38px;font-size:1.1rem}
.navbar-brand .logo-text{font-size:1.4rem}
.navbar-nav{display:flex;align-items:center;gap:6px}
.nav-link{
  padding:7px 14px;border-radius:var(--radius-full);font-size:0.875rem;
  font-weight:500;color:var(--text-secondary);transition:var(--transition);
}
.nav-link:hover,.nav-link.active{color:#fff;background:rgba(255,255,255,0.1)}
.nav-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.lang-selector{
  background:rgba(255,255,255,0.08);border:1px solid var(--glass-border);
  color:#fff;padding:5px 10px;border-radius:var(--radius-full);
  font-size:0.8rem;cursor:pointer;outline:none;
}
.lang-selector option{background:#1a1a2e;color:#fff}
.lang-btn{
  padding:5px 10px;border-radius:var(--radius-full);font-size:0.78rem;font-weight:600;
  color:var(--text-muted);background:none;transition:var(--transition);
}
.lang-btn:hover,.lang-btn.active{color:#fff;background:rgba(255,255,255,0.1)}
.notif-btn{
  position:relative;width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.08);border:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;font-size:1rem;
  color:#fff;transition:var(--transition);
}
.notif-btn:hover{background:rgba(255,255,255,0.15)}
.notif-badge{
  position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;
  background:var(--accent-red);border-radius:var(--radius-full);
  font-size:0.65rem;font-weight:800;color:#fff;
  display:flex;align-items:center;justify-content:center;
  padding:0 4px;border:2px solid var(--bg-dark);
}
.hamburger{
  display:none;flex-direction:column;gap:5px;padding:6px;
  background:none;border:none;cursor:pointer;
}
.hamburger span{
  display:block;width:22px;height:2px;background:#fff;
  border-radius:2px;transition:var(--transition);
}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Mobile nav */
.mobile-nav{
  display:none;position:fixed;top:var(--navbar-height);left:0;right:0;z-index:calc(var(--z-fixed) - 1);
  background:rgba(13,13,26,0.97);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--glass-border);
  padding:16px;flex-direction:column;gap:6px;
  transform:translateY(-100%);opacity:0;transition:var(--transition);pointer-events:none;
}
.mobile-nav.open{display:flex;transform:translateY(0);opacity:1;pointer-events:all}

/* ── 9. Hero Section ─────────────────────────────────────── */
.hero{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:calc(var(--navbar-height) + 40px) 24px 80px;
  text-align:center;position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(13,13,26,0.72) 0%,rgba(13,13,26,0.55) 50%,rgba(26,26,46,0.70) 100%);
  z-index:1;pointer-events:none;
}
.hero-content{max-width:750px;margin:0 auto;position:relative;z-index:3;text-align:center}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(32,201,151,0.1);border:1px solid rgba(32,201,151,0.25);
  border-radius:var(--radius-full);padding:6px 16px;
  font-size:0.85rem;color:var(--success);margin-bottom:24px;
  animation:fadeInDown 0.6s ease;
}
.hero-badge .dot{
  width:8px;height:8px;background:var(--success);
  border-radius:50%;animation:pulse 2s infinite;flex-shrink:0;
}
.hero h1{margin-bottom:20px;animation:fadeInUp 0.7s ease 0.1s backwards}
.hero-subtitle{
  font-size:clamp(1rem,2vw,1.2rem);color:rgba(255,255,255,0.7);
  max-width:560px;margin:0 auto 32px;animation:fadeInUp 0.7s ease 0.2s backwards;text-align:center;
}

/* Search bar */
.search-bar{
  display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,0.08);
  border:1px solid var(--glass-border-strong);
  border-radius:var(--radius-xl);padding:6px 6px 6px 18px;
  max-width:580px;margin:0 auto 28px;
  backdrop-filter:blur(10px);
  animation:fadeInUp 0.7s ease 0.3s backwards;
  transition:var(--transition);
}
.search-bar:focus-within{
  border-color:rgba(225,48,108,0.5);
  box-shadow:0 0 0 3px rgba(225,48,108,0.1);
}
.search-bar input{
  flex:1;background:none;border:none;outline:none;
  color:#fff;font-size:0.95rem;padding:8px 0;
}
.search-bar input::placeholder{color:var(--text-muted)}
.search-bar span{color:var(--text-muted);font-size:1.1rem}
.search-bar button{
  background:var(--grad-primary);color:#fff;
  border:none;border-radius:calc(var(--radius-xl) - 4px);
  padding:10px 20px;font-weight:600;font-size:0.9rem;
  cursor:pointer;transition:var(--transition);white-space:nowrap;
}
.search-bar button:hover{transform:scale(1.02);box-shadow:0 4px 15px rgba(225,48,108,0.4)}

/* Hero actions */
.hero-actions{
  display:flex;align-items:center;justify-content:center;gap:14px;
  flex-wrap:wrap;margin-bottom:36px;animation:fadeInUp 0.7s ease 0.4s backwards;
}

/* Hero stats */
.hero-stats{
  display:flex;align-items:center;justify-content:center;gap:32px;
  flex-wrap:wrap;animation:fadeInUp 0.7s ease 0.5s backwards;
}
.hero-stat{text-align:center}
.hero-stat .value{font-size:2rem;font-weight:800;margin-bottom:4px}
.hero-stat .label{font-size:0.8rem;color:var(--text-muted)}

/* Floating cards */
.hero-float{
  position:absolute;background:rgba(255,255,255,0.08);z-index:3;
  backdrop-filter:blur(12px);border:1px solid var(--glass-border);
  border-radius:var(--radius-md);padding:12px 16px;
  font-size:0.85rem;z-index:1;pointer-events:none;
  animation:float 4s ease-in-out infinite;
}
.float-1{top:25%;left:5%;animation-delay:0s}
.float-2{top:30%;right:5%;animation-delay:1.5s}
.float-3{bottom:25%;left:8%;animation-delay:3s}
@media(max-width:768px){.hero-float{display:none}}

/* ── 10. Sections ────────────────────────────────────────── */
.section{padding:80px 0}
.section-sm{padding:40px 0}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.section-header{text-align:center;margin-bottom:48px}
.section-tag{
  display:inline-block;
  background:rgba(225,48,108,0.15);border:1px solid rgba(225,48,108,0.3);
  color:var(--accent-red);border-radius:var(--radius-full);
  padding:4px 16px;font-size:0.75rem;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;margin-bottom:12px;
}
.section-header h2{margin-bottom:12px}
.section-header p{color:var(--text-muted);max-width:480px;margin:0 auto}
.section-divider{
  width:100%;height:1px;
  background:linear-gradient(90deg,transparent,var(--glass-border),transparent);
  margin:0;
}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}

/* ── 11. Category Chips ──────────────────────────────────── */
.category-chips{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;
}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;border-radius:var(--radius-full);
  background:rgba(255,255,255,0.06);border:1px solid var(--glass-border);
  font-size:0.85rem;font-weight:500;color:var(--text-secondary);
  cursor:pointer;transition:var(--transition);white-space:nowrap;
  user-select:none;
}
.chip:hover{background:rgba(255,255,255,0.12);color:#fff;border-color:rgba(255,255,255,0.25)}
.chip.active{
  background:var(--grad-primary);color:#fff;border-color:transparent;
  box-shadow:0 4px 15px rgba(225,48,108,0.35);
}
.chip-icon{font-size:1rem}

/* ── 12. Artisan Cards ───────────────────────────────────── */
.artisans-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;
}
.artisan-card{
  background:rgba(255,255,255,0.05);backdrop-filter:blur(20px);
  border:1px solid var(--glass-border);border-radius:var(--radius-lg);
  overflow:hidden;cursor:pointer;transition:var(--transition);
}
.artisan-card:hover{
  transform:translateY(-6px);border-color:rgba(255,255,255,0.2);
  box-shadow:var(--neon-glow),var(--card-shadow);
}
.artisan-card-cover{
  height:90px;position:relative;overflow:hidden;
}
.artisan-card-body{padding:0 16px 16px}
.artisan-avatar-wrap{
  width:60px;height:60px;position:relative;
  margin-top:-30px;margin-bottom:10px;
}
.artisan-avatar-placeholder{
  width:60px;height:60px;border-radius:50%;
  background:var(--ig-gradient);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1.1rem;color:#fff;
  border:3px solid #1a1a2e;flex-shrink:0;
}
.artisan-avatar{
  width:60px;height:60px;border-radius:50%;object-fit:cover;
  border:3px solid #1a1a2e;
}
.availability-dot{
  position:absolute;bottom:2px;right:2px;
  width:14px;height:14px;border-radius:50%;border:2px solid #1a1a2e;
}
.availability-dot.available{background:var(--success)}
.availability-dot.busy{background:var(--warning)}
.availability-dot.offline{background:var(--text-muted)}
.artisan-name{font-weight:700;font-size:1rem;margin-bottom:4px}
.artisan-category{font-size:0.78rem;color:var(--text-muted);margin-bottom:8px}
.artisan-rating{
  display:flex;align-items:center;gap:6px;margin-bottom:10px;
  font-size:0.85rem;
}
.stars{color:#FFD700;font-size:0.85rem;letter-spacing:1px}
.artisan-trust{margin-bottom:10px}
.trust-label{
  display:flex;justify-content:space-between;align-items:center;
  font-size:0.75rem;margin-bottom:4px;
}
.trust-bar{height:5px;background:rgba(255,255,255,0.08);border-radius:999px;overflow:hidden}
.trust-fill{
  height:100%;border-radius:999px;
  background:var(--grad-primary);transition:width 0.8s ease;
}
.trust-fill.high{background:var(--grad-success)}
.trust-fill.medium{background:linear-gradient(135deg,#FCAF45,#F77737)}
.artisan-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.badge-pill{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px;border-radius:var(--radius-full);font-size:0.7rem;font-weight:600;
}
.badge-pill.success{background:rgba(32,201,151,0.15);color:var(--success);border:1px solid rgba(32,201,151,0.3)}
.badge-pill.gold{background:rgba(255,215,0,0.15);color:#FFD700;border:1px solid rgba(255,215,0,0.3)}
.badge-pill.primary{background:rgba(225,48,108,0.15);color:var(--accent-red);border:1px solid rgba(225,48,108,0.3)}
.artisan-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.artisan-price{font-weight:700;font-size:0.9rem}
.artisan-price span{font-size:0.75rem;color:var(--text-muted);font-weight:400}

/* Search filters */
.search-filters{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:14px 20px;margin-bottom:24px;
}
.filter-input,.form-control{
  background:rgba(255,255,255,0.06);border:1px solid var(--glass-border);
  color:#fff;padding:9px 14px;border-radius:var(--radius-md);
  font-size:0.87rem;outline:none;transition:var(--transition);
  font-family:var(--font-main);
}
.filter-input:focus,.form-control:focus{
  border-color:rgba(225,48,108,0.5);
  box-shadow:0 0 0 3px rgba(225,48,108,0.1);background:rgba(255,255,255,0.09);
}
.filter-input option,.form-control option{
  background:#1a1a2e;color:#fff;
}
select.form-control{
  -webkit-appearance:none;appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
  padding-right:32px;
}
select.form-control:focus{color:#fff}

.form-group{margin-bottom:16px}
.form-label{display:block;font-size:0.85rem;font-weight:600;margin-bottom:8px;color:rgba(255,255,255,0.8)}
.input-group{position:relative}
.input-group .form-control{padding-left:44px}
.input-icon{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  color:var(--text-muted);font-size:0.9rem;pointer-events:none;
}

/* Results header */
.results-header{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-bottom:20px;
}
#results-count{font-size:0.85rem;color:var(--text-muted)}

/* ── 13. How It Works Steps ──────────────────────────────── */
.steps-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:24px;text-align:center;
}
.step-card{
  background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:32px 24px;
  transition:var(--transition);
}
.step-card:hover{
  background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.2);
  transform:translateY(-4px);
}
.step-number{
  width:36px;height:36px;border-radius:50%;
  background:var(--grad-primary);color:#fff;
  font-weight:800;font-size:1rem;margin:0 auto 12px;
  display:flex;align-items:center;justify-content:center;
}
.step-icon{font-size:2rem;margin-bottom:12px}
.step-card h4{margin-bottom:8px}

/* ── 14. Feed / Before-After ─────────────────────────────── */
.feed-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:20px;
}
.feed-card{
  background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);overflow:visible;
  transition:var(--transition);position:relative;
}
.feed-card>*:first-child{border-radius:var(--radius-lg) var(--radius-lg) 0 0;overflow:hidden;}
.feed-card:hover{
  transform:translateY(-4px);border-color:rgba(255,255,255,0.2);
  box-shadow:var(--neon-glow),var(--card-shadow);
}
.feed-card-header{
  display:flex;align-items:center;gap:10px;padding:14px 16px;
  border-bottom:1px solid var(--glass-border);
}
.feed-avatar{
  width:40px;height:40px;border-radius:50%;
  background:var(--grad-primary);display:flex;align-items:center;
  justify-content:center;font-size:1.1rem;flex-shrink:0;
}
.feed-card-title{font-weight:600;font-size:0.9rem}
.feed-card-category{font-size:0.75rem;color:var(--text-muted)}

/* Before/After slider */
.before-after{
  position:relative;height:220px;overflow:hidden;cursor:ew-resize;
  background:#111;user-select:none;
}
.ba-after,.ba-before{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
}
.ba-before{
  background-size:cover;background-position:center;
  clip-path:inset(0 50% 0 0);
}
.ba-after{background-size:cover;background-position:center}
.ba-label{
  position:absolute;bottom:8px;padding:3px 10px;
  background:rgba(0,0,0,0.6);border-radius:var(--radius-full);
  font-size:0.7rem;font-weight:700;color:#fff;letter-spacing:1px;
  pointer-events:none;
}
.ba-label.before{left:8px}
.ba-label.after{right:8px}
.ba-slider{
  position:absolute;top:0;bottom:0;width:3px;background:#fff;
  left:50%;transform:translateX(-50%);z-index:5;cursor:ew-resize;pointer-events:none;
}
.ba-slider::after{
  content:'⇄';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:28px;height:28px;background:#fff;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:0.7rem;color:#333;pointer-events:all;cursor:ew-resize;
}
.ba-emojis{
  position:absolute;inset:0;display:flex;align-items:center;
  justify-content:space-around;pointer-events:none;
}

.feed-card-body{padding:14px 16px}
.feed-card-footer{
  display:flex;align-items:center;gap:14px;padding:12px 16px;
  border-top:1px solid var(--glass-border);
  position:relative;z-index:10;background:rgba(255,255,255,0.04);
}
.feed-action{
  display:flex;align-items:center;gap:5px;font-size:0.78rem;
  color:var(--text-muted);cursor:pointer;transition:var(--transition);
  background:none;border:none;
}
.feed-action:hover,.feed-action.active{color:var(--accent-red)}
.feed-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.feed-tag{
  padding:2px 8px;background:rgba(255,255,255,0.06);
  border:1px solid var(--glass-border);border-radius:var(--radius-full);
  font-size:0.7rem;color:var(--text-muted);
}

/* ── 15. Testimonials ────────────────────────────────────── */
.testimonial-card{
  background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:24px;
  transition:var(--transition);
}
.testimonial-card:hover{
  background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.2);
  transform:translateY(-4px);
}
.testimonial-quote{
  font-size:0.9rem;line-height:1.7;color:var(--text-secondary);
  margin-bottom:16px;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;
  overflow:hidden;
}
.testimonial-author{display:flex;align-items:center;gap:12px}
.testimonial-card:hover .testimonial-quote{-webkit-line-clamp:unset}

/* ── 16. Map section ─────────────────────────────────────── */
#artisan-map{height:400px;border-radius:var(--radius-lg);overflow:hidden;z-index:1}

/* ── 17. Modals ──────────────────────────────────────────── */
.modal-backdrop{
  display:none;position:fixed;inset:0;z-index:var(--z-modal-backdrop);
  background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);
}
.modal-backdrop.open{display:block}
.modal{
  display:none;position:fixed;
  top:50%;left:50%;transform:translate(-50%,-60%);
  z-index:var(--z-modal);
  max-width:520px;width:calc(100% - 32px);
  max-height:85vh;overflow-y:auto;
  background:rgba(20,20,40,0.95);backdrop-filter:blur(24px);
  border:1px solid var(--glass-border-strong);
  border-radius:var(--radius-xl);padding:28px;
  box-shadow:var(--neon-glow),0 24px 48px rgba(0,0,0,0.6);
  transition:transform 0.3s ease,opacity 0.3s ease;opacity:0;
}
.modal.open{display:block;transform:translate(-50%,-50%);opacity:1}
.modal-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:20px;
}
.modal-header h3{font-size:1.1rem;font-weight:700}
.modal-close{
  width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,0.08);color:#fff;
  font-size:0.9rem;display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
}
.modal-close:hover{background:rgba(255,255,255,0.2)}

/* Dashboard modal overlay */
.modal-overlay{
  display:none;position:fixed;inset:0;z-index:var(--z-modal-backdrop);
  background:rgba(0,0,0,0.65);backdrop-filter:blur(4px);
  align-items:center;justify-content:center;
}
.modal-overlay.open{display:flex}
.modal-overlay .modal{
  position:static;transform:none;opacity:1;display:block;
  max-width:480px;width:calc(100% - 32px);
}

/* ── 18. Auth Page ───────────────────────────────────────── */
.auth-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:20px;
}
.auth-card{
  background:rgba(255,255,255,0.06);backdrop-filter:blur(24px);
  border:1px solid var(--glass-border-strong);border-radius:var(--radius-xl);
  padding:36px;max-width:440px;width:100%;
  box-shadow:var(--neon-glow),0 24px 48px rgba(0,0,0,0.5);
}
.auth-logo{text-align:center;margin-bottom:24px}
.auth-tabs{
  display:flex;background:rgba(255,255,255,0.06);
  border-radius:var(--radius-md);padding:4px;margin-bottom:24px;gap:4px;
}
.auth-tab{
  flex:1;text-align:center;padding:10px;border-radius:calc(var(--radius-md) - 2px);
  font-weight:600;font-size:0.9rem;cursor:pointer;transition:var(--transition);
  color:var(--text-muted);
}
.auth-tab.active{
  background:var(--grad-primary);color:#fff;
  box-shadow:0 4px 10px rgba(225,48,108,0.3);
}
.social-auth{display:flex;gap:12px;margin-bottom:16px}
.social-btn{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:11px;border-radius:var(--radius-md);font-weight:600;
  font-size:0.88rem;transition:var(--transition);cursor:pointer;
  border:1px solid var(--glass-border-strong);background:rgba(255,255,255,0.06);
  color:#fff;
}
.social-btn:hover{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.3)}
.social-btn.google{border-color:rgba(66,133,244,0.4)}
.social-btn.google:hover{background:rgba(66,133,244,0.12)}
.social-btn.facebook{border-color:rgba(24,119,242,0.4)}
.social-btn.facebook:hover{background:rgba(24,119,242,0.12)}
.divider{
  display:flex;align-items:center;gap:12px;margin-bottom:20px;
  font-size:0.8rem;color:var(--text-muted);
}
.divider::before,.divider::after{
  content:'';flex:1;height:1px;background:var(--glass-border);
}

/* ── 19. Dashboard Layout ────────────────────────────────── */
.dashboard-layout{
  display:flex;padding-top:var(--navbar-height);
  min-height:100vh;
}
.sidebar{
  width:var(--sidebar-width);flex-shrink:0;
  background:rgba(13,13,26,0.8);backdrop-filter:blur(20px);
  border-right:1px solid var(--glass-border);
  position:fixed;top:var(--navbar-height);bottom:0;left:0;
  overflow-y:auto;z-index:var(--z-sticky);
  padding:16px 0;
  transition:transform 0.3s ease;
}
.sidebar-mini-profile{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px 16px;
  border-bottom:1px solid var(--glass-border);margin-bottom:8px;
}
.sidebar-section-label{
  font-size:0.68rem;font-weight:700;letter-spacing:1.5px;
  text-transform:uppercase;color:var(--text-muted);
  padding:8px 20px 4px;
}
.sidebar-nav{display:flex;flex-direction:column}
.sidebar-link{
  display:flex;align-items:center;gap:10px;
  padding:10px 20px;font-size:0.875rem;color:var(--text-secondary);
  transition:var(--transition);border-radius:0;text-decoration:none;
  border-left:3px solid transparent;
}
.sidebar-link:hover{
  background:rgba(255,255,255,0.06);color:#fff;
  border-left-color:var(--glass-border);
}
.sidebar-link.active{
  background:rgba(225,48,108,0.12);color:#fff;
  border-left-color:var(--accent-red);font-weight:600;
}
.sidebar-link .icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}

.dashboard-content{
  flex:1;margin-left:var(--sidebar-width);
  padding:28px;min-width:0;
}

/* ── 20. KPI Grid ────────────────────────────────────────── */
.kpi-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;
  margin-bottom:24px;
}
.kpi-card{
  background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:16px;
  transition:var(--transition);
}
.kpi-card:hover{
  background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.2);
  transform:translateY(-3px);
}
.kpi-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.kpi-icon{
  width:40px;height:40px;border-radius:var(--radius-md);
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;
}
.kpi-value{font-size:1.5rem;font-weight:800;margin-bottom:4px}
.kpi-label{font-size:0.75rem;color:var(--text-muted)}
.kpi-trend{
  display:flex;align-items:center;gap:4px;
  font-size:0.72rem;font-weight:600;margin-top:6px;flex-wrap:wrap;
}
.kpi-trend.up{color:var(--success)}
.kpi-trend.down{color:var(--danger)}

/* ── 21. Chat Widget ─────────────────────────────────────── */
.chat-widget{
  position:fixed;bottom:24px;right:24px;z-index:var(--z-toast);
}
.chat-toggle{
  width:54px;height:54px;border-radius:50%;
  background:var(--grad-primary);color:#fff;
  font-size:1.3rem;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(225,48,108,0.4);
  border:none;cursor:pointer;transition:var(--transition);
  margin-left:auto;
}
.chat-toggle:hover{transform:scale(1.1)}
.chat-panel{
  display:none;width:300px;
  background:rgba(20,20,40,0.97);backdrop-filter:blur(24px);
  border:1px solid var(--glass-border-strong);border-radius:var(--radius-lg);
  overflow:hidden;margin-bottom:12px;
  box-shadow:var(--neon-glow),0 16px 40px rgba(0,0,0,0.5);
}
.chat-panel.open{display:flex;flex-direction:column}
.chat-header,.chat-panel-header{
  display:flex;align-items:center;gap:10px;
  padding:14px 16px;border-bottom:1px solid var(--glass-border);
  background:rgba(255,255,255,0.04);
}
.chat-messages{
  flex:1;padding:14px;overflow-y:auto;
  max-height:280px;display:flex;flex-direction:column;gap:10px;
}
.msg,.chat-message{
  max-width:80%;padding:10px 14px;border-radius:var(--radius-md);
  font-size:0.85rem;line-height:1.5;word-break:break-word;
}
.msg.sent,.chat-message.out{
  background:var(--grad-primary);color:#fff;
  align-self:flex-end;border-radius:var(--radius-md) 4px var(--radius-md) var(--radius-md);
  margin-left:auto;
}
.msg.received,.chat-message.in{
  background:rgba(255,255,255,0.08);color:#fff;
  align-self:flex-start;border-radius:4px var(--radius-md) var(--radius-md) var(--radius-md);
}
.chat-input-wrap,.chat-input-row{
  display:flex;gap:8px;padding:12px;
  border-top:1px solid var(--glass-border);
}
.chat-input{
  flex:1;background:rgba(255,255,255,0.06);
  border:1px solid var(--glass-border);color:#fff;
  padding:8px 12px;border-radius:var(--radius-md);
  font-size:0.85rem;outline:none;transition:var(--transition);
  font-family:var(--font-main);
}
.chat-input:focus{border-color:rgba(225,48,108,0.5)}
.chat-send{
  background:var(--grad-primary);color:#fff;border:none;
  border-radius:var(--radius-md);padding:8px 12px;
  cursor:pointer;font-size:0.9rem;transition:var(--transition);
}
.chat-send:hover{transform:scale(1.05)}

/* ── 22. Notification Panel ──────────────────────────────── */
.toast-container{
  position:fixed;top:84px;right:16px;z-index:var(--z-toast);
  display:flex;flex-direction:column;gap:10px;max-width:360px;
  pointer-events:none;
}
.toast{
  background:rgba(20,20,40,0.97);backdrop-filter:blur(24px);
  border:1px solid var(--glass-border-strong);border-radius:var(--radius-lg);
  padding:14px 16px;display:flex;align-items:flex-start;gap:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.4);pointer-events:all;
  animation:slideInRight 0.3s ease;min-width:0;
  max-width:360px;width:100%;
}
.toast-icon{font-size:1.2rem;flex-shrink:0;margin-top:2px}
.toast-content{flex:1;min-width:0}
.toast-title{font-weight:700;font-size:0.88rem;margin-bottom:3px;
  white-space:normal;overflow:visible;word-break:break-word;}
.toast-msg{font-size:0.8rem;color:var(--text-muted);line-height:1.4;
  word-break:break-word;overflow-wrap:break-word;}
.toast-close{
  background:none;border:none;color:var(--text-muted);
  cursor:pointer;font-size:1rem;flex-shrink:0;
  line-height:1;padding:0;
}
.toast-progress{
  height:3px;border-radius:0 0 var(--radius-lg) var(--radius-lg);
  margin:-14px -16px 0;margin-top:10px;
  animation:progress 4s linear forwards;
}
.toast.success .toast-progress{background:var(--success)}
.toast.error .toast-progress{background:var(--danger)}
.toast.warning .toast-progress{background:var(--warning)}
.toast.info .toast-progress{background:var(--info)}
.toast.success{border-color:rgba(32,201,151,0.3)}
.toast.error{border-color:rgba(255,71,87,0.3)}
.toast.warning{border-color:rgba(255,165,2,0.3)}
.toast.info{border-color:rgba(55,66,250,0.3)}

.notif-panel{
  position:fixed;top:var(--navbar-height);right:16px;
  width:360px;max-height:calc(100vh - var(--navbar-height) - 32px);
  background:rgba(15,15,35,0.97);backdrop-filter:blur(24px);
  border:1px solid var(--glass-border-strong);border-radius:var(--radius-lg);
  z-index:var(--z-toast);overflow:hidden;
  box-shadow:var(--neon-glow),0 16px 40px rgba(0,0,0,0.5);
  display:none;flex-direction:column;
}
.notif-panel.open{display:flex}
.notif-panel-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px;border-bottom:1px solid var(--glass-border);flex-shrink:0;
}
.notif-panel-body{overflow-y:auto;flex:1}
.notif-item{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 16px;border-bottom:1px solid var(--glass-border);
  cursor:pointer;transition:var(--transition);
}
.notif-item:hover{background:rgba(255,255,255,0.05)}
.notif-item.unread{background:rgba(225,48,108,0.06)}
.notif-item-icon{font-size:1.2rem;flex-shrink:0;margin-top:2px}
.notif-item-content{flex:1;min-width:0}
.notif-item-title{font-weight:700;font-size:0.85rem;margin-bottom:3px;
  word-break:break-word;overflow-wrap:break-word;}
.notif-item-body{font-size:0.78rem;color:var(--text-muted);line-height:1.4;
  word-break:break-word;overflow-wrap:break-word;}
.notif-item-time{font-size:0.7rem;color:var(--text-muted);flex-shrink:0;margin-top:2px}

/* ── 23. Comparator Bar ──────────────────────────────────── */
.comparator-bar{
  position:fixed;bottom:0;left:0;right:0;z-index:var(--z-sticky);
  background:rgba(20,20,40,0.97);backdrop-filter:blur(20px);
  border-top:1px solid var(--glass-border-strong);
  padding:14px 24px;display:flex;align-items:center;gap:16px;
  transform:translateY(100%);transition:var(--transition);flex-wrap:wrap;
}
.comparator-bar.visible{transform:translateY(0)}
.comparator-slots{display:flex;gap:10px;flex:1;flex-wrap:wrap}
.comparator-slot{
  width:60px;height:60px;border-radius:var(--radius-md);
  background:rgba(255,255,255,0.06);border:2px dashed var(--glass-border);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);font-size:1.2rem;transition:var(--transition);
}
.comparator-slot.filled{
  background:rgba(225,48,108,0.1);border:2px solid rgba(225,48,108,0.3);
  color:#fff;font-size:0.75rem;
}

/* ── 24. Express Banner ──────────────────────────────────── */
.express-banner{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  background:linear-gradient(135deg,rgba(247,119,55,0.15),rgba(225,48,108,0.15));
  border:1px solid rgba(247,119,55,0.3);border-radius:var(--radius-lg);
  padding:18px 24px;
}
.express-icon{font-size:2rem}
.express-text{flex:1;min-width:0}
.express-text h3{font-size:1rem;font-weight:700;margin-bottom:4px}
.express-text p{font-size:0.85rem;color:var(--text-muted)}

/* ── 25. Booking Progress ────────────────────────────────── */
.booking-progress{
  display:flex;align-items:center;justify-content:space-between;
  position:relative;gap:4px;
}
.booking-progress::before{
  content:'';position:absolute;top:18px;left:20px;right:20px;height:2px;
  background:rgba(255,255,255,0.1);z-index:0;
}
.progress-step{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  position:relative;z-index:1;flex:1;min-width:0;
}
.step-circle{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,0.08);border:2px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;
  font-size:0.8rem;font-weight:700;transition:var(--transition);flex-shrink:0;
}
.progress-step.done .step-circle{background:var(--success);border-color:var(--success);color:#fff}
.progress-step.active .step-circle{background:var(--grad-primary);border-color:transparent;color:#fff}
.step-label{font-size:0.7rem;color:var(--text-muted);text-align:center;word-break:break-word}
.progress-step.done .step-label,.progress-step.active .step-label{color:rgba(255,255,255,0.8)}

/* ── 26. Gamification ────────────────────────────────────── */
.badge-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:12px;
}
.badge-item{
  text-align:center;padding:12px 8px;
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  border-radius:var(--radius-md);transition:var(--transition);cursor:default;
}
.badge-item:hover{transform:translateY(-3px);background:rgba(255,255,255,0.08)}
.badge-item.locked{opacity:0.35;filter:grayscale(1)}
.badge-icon{font-size:1.5rem;margin-bottom:6px}
.badge-name{font-size:0.7rem;font-weight:600;color:rgba(255,255,255,0.8)}
.badge-rarity{font-size:0.6rem;color:var(--text-muted);margin-top:2px}
.badge-rarity.legendary{color:#FFD700}
.badge-rarity.rare{color:var(--accent-blue)}
.badge-rarity.uncommon{color:var(--success)}
.badge-rarity.special{color:var(--accent)}

.xp-bar-wrap{
  height:8px;background:rgba(255,255,255,0.08);border-radius:999px;overflow:hidden;
}
.xp-bar{
  height:100%;border-radius:999px;
  background:var(--ig-gradient);transition:width 0.8s ease;
}
.xp-value{
  font-size:1.1rem;font-weight:800;
  background:var(--ig-gradient);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.missions-list{display:flex;flex-direction:column;gap:12px}
.mission-item{
  display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  border-radius:var(--radius-md);padding:12px;
}
.mission-item.done{opacity:0.7}
.mission-icon{font-size:1.3rem;flex-shrink:0}
.mission-info{flex:1;min-width:0}
.mission-title{font-size:0.85rem;font-weight:600;margin-bottom:3px}
.mission-desc{font-size:0.75rem;color:var(--text-muted);margin-bottom:6px}
.mission-progress-bar{
  height:5px;background:rgba(255,255,255,0.08);border-radius:999px;overflow:hidden;
}
.mission-progress-fill{
  height:100%;border-radius:999px;
  background:var(--grad-primary);transition:width 0.5s ease;
}
.mission-xp{font-size:0.8rem;color:var(--accent2);font-weight:700;flex-shrink:0}
.leaderboard-list{display:flex;flex-direction:column;gap:8px}
.lb-item{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;border-radius:var(--radius-md);
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  transition:var(--transition);
}
.lb-item:hover{background:rgba(255,255,255,0.08)}
.lb-rank{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:0.85rem;flex-shrink:0;
}
.lb-rank.gold{background:rgba(255,215,0,0.2);color:#FFD700}
.lb-rank.silver{background:rgba(192,192,192,0.2);color:#C0C0C0}
.lb-rank.bronze{background:rgba(205,127,50,0.2);color:#CD7F32}
.lb-rank.default{background:rgba(255,255,255,0.08);color:var(--text-muted)}
.lb-avatar{font-size:1.2rem;flex-shrink:0}
.lb-info{flex:1;min-width:0}
.lb-name{font-size:0.85rem;font-weight:600}
.lb-city{font-size:0.72rem;color:var(--text-muted)}
.lb-xp{font-size:0.85rem;font-weight:700;color:var(--accent2);flex-shrink:0}

/* ── 27. Availability Grid ───────────────────────────────── */
.avail-slot{
  height:30px;border-radius:6px;transition:var(--transition);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:0.7rem;
}
.avail-slot.free{background:rgba(32,201,151,0.2);color:var(--success)}
.avail-slot.taken{background:rgba(255,71,87,0.15);color:var(--danger)}
.availability-grid{overflow-x:auto}

/* ── 28. Portfolio Grid ──────────────────────────────────── */
.portfolio-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;
}
.portfolio-item{
  border-radius:var(--radius-md);overflow:hidden;
  aspect-ratio:1;position:relative;background:rgba(255,255,255,0.04);
  border:1px solid var(--glass-border);transition:var(--transition);
}
.portfolio-item:hover{transform:scale(1.03);border-color:rgba(255,255,255,0.25)}
.portfolio-item img{width:100%;height:100%;object-fit:cover}

/* ── 29. Toggle Switch ───────────────────────────────────── */
.toggle-switch{position:relative;display:inline-block;width:44px;height:24px}
.toggle-switch input{opacity:0;width:0;height:0}
.toggle-slider{
  position:absolute;cursor:pointer;inset:0;
  background:rgba(255,255,255,0.15);border-radius:34px;
  transition:0.3s;
}
.toggle-slider::before{
  content:"";position:absolute;width:18px;height:18px;
  left:3px;bottom:3px;background:#fff;border-radius:50%;transition:0.3s;
}
.toggle-switch input:checked + .toggle-slider{background:var(--success)}
.toggle-switch input:checked + .toggle-slider::before{transform:translateX(20px)}

/* ── 30. Avatar Ring ─────────────────────────────────────── */
.avatar-ring{
  border-radius:50%;padding:2px;
  background:var(--ig-gradient);display:inline-flex;
}
.avatar-ring img{border-radius:50%;border:2px solid var(--bg-dark)}

/* ── 31. Reviews ─────────────────────────────────────────── */
.reviews-list{display:flex;flex-direction:column;gap:16px}
.review-card{
  background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:16px;
  transition:var(--transition);
}
.review-card:hover{background:rgba(255,255,255,0.07)}
.review-header{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.review-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}
.review-name{font-weight:700;font-size:0.9rem}
.review-date{font-size:0.75rem;color:var(--text-muted)}

/* ── 32. Table ───────────────────────────────────────────── */
.jobs-table{width:100%;border-collapse:collapse}
.jobs-table thead th{
  padding:12px 16px;font-size:0.78rem;font-weight:700;
  text-transform:uppercase;letter-spacing:0.5px;
  color:var(--text-muted);text-align:left;
  border-bottom:1px solid var(--glass-border);background:rgba(255,255,255,0.03);
}
.jobs-table td{padding:12px 16px;font-size:0.85rem;border-bottom:1px solid rgba(255,255,255,0.04)}
.jobs-table tr:hover td{background:rgba(255,255,255,0.03)}

/* ── 33. Tags/Filter Chips ───────────────────────────────── */
.tag-list{display:flex;flex-wrap:wrap;gap:6px}
.tag{
  padding:4px 10px;background:rgba(255,255,255,0.06);
  border:1px solid var(--glass-border);border-radius:var(--radius-full);
  font-size:0.78rem;color:var(--text-secondary);
}
.filter-chip{
  padding:6px 14px;background:rgba(255,255,255,0.06);
  border:1px solid var(--glass-border);border-radius:var(--radius-full);
  font-size:0.82rem;color:var(--text-secondary);cursor:pointer;
  transition:var(--transition);
}
.filter-chip:hover,.filter-chip.active{
  background:rgba(225,48,108,0.15);border-color:rgba(225,48,108,0.35);
  color:#fff;
}

/* ── 34. Alerts ──────────────────────────────────────────── */
.alert{padding:14px 16px;border-radius:var(--radius-md);margin-bottom:16px;font-size:0.88rem}
.alert-warning{background:rgba(255,165,2,0.12);border:1px solid rgba(255,165,2,0.3);color:var(--warning)}

/* ── 35. Type Cards (Auth) ───────────────────────────────── */
.type-card{text-align:center;border-radius:var(--radius-md);padding:14px;
  border:2px solid transparent;transition:var(--transition);cursor:pointer}
.type-card.selected{border-color:var(--accent-pink)}

/* ── 36. Password strength ───────────────────────────────── */
.password-strength{margin-top:8px}

/* ── 37. Star Rating Input ───────────────────────────────── */
.star-input{display:flex;flex-direction:row-reverse;gap:4px}
.star-input input{display:none}
.star-input label{font-size:1.5rem;color:var(--text-muted);cursor:pointer;transition:var(--transition)}
.star-input label:hover,.star-input label:hover ~ label,.star-input input:checked ~ label{color:#FFD700}

/* ── 38. Artisan Profile Page ────────────────────────────── */
.profile-hero{
  padding:calc(var(--navbar-height) + 32px) 0 48px;
  background:linear-gradient(135deg,rgba(64,93,230,0.15),rgba(225,48,108,0.15));
}
.profile-cover{
  height:220px;border-radius:var(--radius-xl);
  background:var(--ig-gradient);margin-bottom:0;
  position:relative;overflow:visible;
}
.profile-avatar-wrap{
  position:absolute;bottom:-32px;left:32px;
}
.profile-avatar{
  width:96px;height:96px;border-radius:50%;
  border:4px solid #1a1a2e;object-fit:cover;
  background:var(--grad-primary);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:2rem;color:#fff;
}

/* ── 39. Footer ──────────────────────────────────────────── */
footer{
  background:rgba(10,10,20,0.97);border-top:1px solid var(--glass-border);
  padding:60px 0 24px;
}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;
  gap:32px;margin-bottom:48px;
}
.footer-brand{}
.footer-desc{font-size:0.88rem;color:var(--text-muted);margin:12px 0 20px;max-width:280px;line-height:1.6}
.social-links{display:flex;gap:10px}
.social-link{
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.08);border:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;font-size:1rem;
  transition:var(--transition);
}
.social-link:hover{background:var(--grad-primary);border-color:transparent}
.footer-links h4{margin-bottom:16px;font-size:0.9rem}
.footer-links ul{display:flex;flex-direction:column;gap:8px}
.footer-links a{
  font-size:0.85rem;color:var(--text-muted);
  transition:var(--transition);
}
.footer-links a:hover{color:#fff}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  padding-top:24px;border-top:1px solid var(--glass-border);
  font-size:0.82rem;color:var(--text-muted);
}

/* ── 40. Back to Top ─────────────────────────────────────── */
.back-to-top{
  position:fixed;bottom:90px;right:24px;z-index:var(--z-sticky);
  width:42px;height:42px;border-radius:50%;
  background:var(--grad-primary);color:#fff;
  display:none;align-items:center;justify-content:center;
  font-size:1.1rem;box-shadow:0 4px 15px rgba(225,48,108,0.4);
  transition:var(--transition);
}
.back-to-top.visible{display:flex}
.back-to-top:hover{transform:translateY(-3px)}

/* ── 41. Spinner ─────────────────────────────────────────── */
.spinner{
  display:inline-block;border:2px solid rgba(255,255,255,0.2);
  border-top-color:#fff;border-radius:50%;
  animation:spin 0.8s linear infinite;
}

/* ── 42. HR ──────────────────────────────────────────────── */
.hr{height:1px;background:var(--glass-border);margin:20px 0}

/* ── 43. Flex utilities ──────────────────────────────────── */
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-center{display:flex;align-items:center;justify-content:center}

/* ── 44. Availability status ─────────────────────────────── */
.availability-status{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 12px;border-radius:var(--radius-full);
  font-size:0.78rem;font-weight:600;
}
.availability-status.online{
  background:rgba(32,201,151,0.15);color:var(--success);
  border:1px solid rgba(32,201,151,0.3);
}
.availability-status.offline{
  background:rgba(108,117,125,0.15);color:var(--text-muted);
  border:1px solid rgba(108,117,125,0.3);
}

/* ── 45. Badges Showcase ─────────────────────────────────── */
.badges-showcase{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px;
}

/* ── 46. Requests cards ──────────────────────────────────── */
.requests-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;
}
.request-card{
  background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);padding:18px;transition:var(--transition);
}
.request-card:hover{background:rgba(255,255,255,0.09)}
.request-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 10px;border-radius:var(--radius-full);
  font-size:0.72rem;font-weight:700;margin-bottom:10px;
}
.request-badge.express{
  background:rgba(247,119,55,0.15);color:var(--accent);
  border:1px solid rgba(247,119,55,0.3);
}
.request-badge.normal{
  background:rgba(64,93,230,0.15);color:var(--accent-blue);
  border:1px solid rgba(64,93,230,0.3);
}

/* ── 47. Animations ──────────────────────────────────────── */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeInDown{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:0.7}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes progress{from{width:100%}to{width:0%}}

/* ── 48. Responsive ──────────────────────────────────────── */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .grid-2,.grid-3{grid-template-columns:1fr}
}
@media(max-width:768px){
  .navbar-nav{display:none}
  .hamburger{display:flex}
  .dashboard-content{margin-left:0;padding:16px}
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .footer-grid{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .hero-stats{gap:16px}
  .artisans-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
  .feed-grid{grid-template-columns:1fr}
  .comparator-bar{flex-wrap:wrap;gap:10px}
  .auth-card{padding:24px 20px}
  .section{padding:48px 0}
  .chat-widget{bottom:16px;right:16px}
  .chat-panel{width:calc(100vw - 32px)}
}
@media(max-width:480px){
  .nav-actions .btn-nav{display:none}
  .nav-actions .notif-btn{display:flex}
  .hero{padding:calc(var(--navbar-height) + 20px) 16px 60px}
  .kpi-grid{grid-template-columns:1fr 1fr}
  .search-bar{padding:4px 4px 4px 12px}
  .search-bar button{padding:8px 14px;font-size:0.82rem}
  .booking-progress{gap:2px}
  .step-circle{width:28px;height:28px;font-size:0.72rem}
  .step-label{font-size:0.62rem}
  .toast-container{left:16px;right:16px;max-width:none}
  .toast{max-width:none}
}


/* ═══════════════════════════════════════════════════════════
   FIXEO V3 FINAL STABLE — PATCH FIXES
   Tasks 1-7: Hero overlay, Feed z-index, Scrollbars,
   Search dropdowns, Services filter, Button harmony
   ═══════════════════════════════════════════════════════════ */

/* ── SEARCH FILTERS ENHANCED ─────────────────────────────── */
.search-filters{
  display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;align-items:center;
}
.search-filters .filter-input,.search-filters .form-control{
  background:rgba(255,255,255,0.08)!important;
  border:1px solid rgba(255,255,255,0.18)!important;
  color:#fff!important;border-radius:var(--radius-md)!important;
  padding:10px 14px!important;font-size:0.87rem!important;
  min-width:130px;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 12px center!important;
  padding-right:32px!important;
}
.search-filters .filter-input:focus,.search-filters .form-control:focus{
  outline:none!important;border-color:var(--primary)!important;
  box-shadow:0 0 0 3px rgba(225,48,108,0.2)!important;
}
.search-filters select option{
  background:#1a1a2e!important;color:#fff!important;padding:10px!important;
}

/* ── BEFORE-AFTER SLIDER ENHANCED ────────────────────────── */
.before-after-slider{
  position:relative;height:220px;overflow:hidden;
  cursor:ew-resize;user-select:none;border-radius:0;
}
.before-img,.after-img-div{
  position:absolute;top:0;left:0;width:100%;height:100%;
  background-size:cover!important;background-position:center!important;
}
.slider-handle{
  position:absolute;top:0;bottom:0;width:3px;background:#fff;
  left:50%;transform:translateX(-50%);z-index:10;cursor:ew-resize;
  pointer-events:none;
}
.slider-handle::after{
  content:'⇄';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:32px;height:32px;background:#fff;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:0.75rem;color:#333;pointer-events:all;cursor:ew-resize;
  box-shadow:0 2px 8px rgba(0,0,0,0.4);
}
.before-label,.after-label{
  position:absolute;bottom:10px;padding:4px 12px;
  background:rgba(0,0,0,0.7);border-radius:var(--radius-full);
  font-size:0.7rem;font-weight:700;color:#fff;letter-spacing:1px;
  pointer-events:none;z-index:8;
}
.before-label{left:10px}
.after-label{right:10px}

/* ── SERVICES SECTION ENHANCED ──────────────────────────── */
.category-chips{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;
}
.chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 18px;border-radius:var(--radius-full);
  background:rgba(255,255,255,0.07);border:1px solid var(--glass-border);
  cursor:pointer;transition:var(--transition);font-size:0.88rem;
  white-space:nowrap;user-select:none;
}
.chip:hover{background:rgba(255,255,255,0.14);border-color:rgba(255,255,255,0.3);color:#fff;transform:translateY(-2px)}
.chip.active{background:var(--grad-primary);border-color:transparent;color:#fff;font-weight:700;box-shadow:var(--shadow-glow)}
.chip-icon{font-size:1.1rem}

/* Services city filter bar */
.services-filter-bar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:20px;padding-top:20px;border-top:1px solid var(--glass-border);
}
.city-filter-select{
  background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);
  color:#fff;border-radius:var(--radius-md);padding:10px 14px;
  font-size:0.87rem;cursor:pointer;min-width:140px;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;
}
.city-filter-select option{background:#1a1a2e;color:#fff;}
.city-filter-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(225,48,108,0.2)}

/* ── HERO SEARCH ENHANCED ────────────────────────────────── */
.search-bar{
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.25);
  border-radius:var(--radius-xl);padding:6px 6px 6px 18px;
  margin-bottom:24px;backdrop-filter:blur(10px);
  max-width:640px;margin-left:auto;margin-right:auto;
  box-shadow:0 8px 32px rgba(0,0,0,0.3);
}
.search-bar input{
  flex:1;background:none;border:none;outline:none;
  color:#fff;font-size:0.95rem;min-width:0;
}
.search-bar input::placeholder{color:rgba(255,255,255,0.55)}
.search-bar button{
  background:var(--grad-primary);color:#fff;border:none;
  border-radius:var(--radius-xl);padding:10px 20px;
  font-size:0.9rem;font-weight:600;white-space:nowrap;cursor:pointer;
  transition:var(--transition);
}
.search-bar button:hover{opacity:0.9;transform:scale(1.02)}

/* Hero search with service selector */
.search-bar-wrap{
  max-width:700px;margin:0 auto 24px;
  display:flex;flex-direction:column;gap:8px;
}
.search-bar-row{
  display:flex;align-items:center;gap:8px;flex-wrap:nowrap;
}
.search-service-select{
  background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.25);
  color:#fff;border-radius:var(--radius-xl);padding:10px 16px;
  font-size:0.88rem;cursor:pointer;white-space:nowrap;
  -webkit-appearance:none;appearance:none;flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center;padding-right:28px;
  backdrop-filter:blur(10px);
}
.search-service-select option{background:#1a1a2e;color:#fff}
.search-service-select:focus{outline:none;border-color:var(--primary)}
@media(max-width:600px){
  .search-bar-row{flex-wrap:wrap}
  .search-service-select{width:100%}
}

/* ── FEED ACTIONS FIX ────────────────────────────────────── */
.feed-action{
  display:flex;align-items:center;gap:5px;font-size:0.82rem;
  color:rgba(255,255,255,0.65);cursor:pointer;transition:var(--transition);
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-md);padding:6px 12px;font-weight:500;
}
.feed-action:hover{color:#fff;background:rgba(225,48,108,0.15);border-color:rgba(225,48,108,0.4)}
.feed-action.liked,.feed-action.active{color:var(--accent-red);background:rgba(225,48,108,0.15);border-color:rgba(225,48,108,0.4)}
.feed-action-btn-link{
  display:inline-flex;align-items:center;gap:5px;
  font-size:0.82rem;color:var(--accent-red);
  text-decoration:none;font-weight:600;padding:6px 12px;
  border-radius:var(--radius-md);border:1px solid rgba(225,48,108,0.4);
  background:rgba(225,48,108,0.1);transition:var(--transition);
}
.feed-action-btn-link:hover{background:rgba(225,48,108,0.25);color:#fff}

/* Firefox scrollbar */
*{scrollbar-width:thick;scrollbar-color:var(--primary) rgba(255,255,255,0.05)}

/* ── DROPDOWN ALWAYS VISIBLE ─────────────────────────────── */
select{
  color:#fff!important;
  background-color:rgba(26,26,46,0.95)!important;
}
select:focus{outline:2px solid var(--primary)!important;outline-offset:2px!important}
.form-control{
  background:rgba(255,255,255,0.07)!important;
  border:1px solid rgba(255,255,255,0.15)!important;
  color:#fff!important;border-radius:var(--radius-md)!important;
  padding:10px 14px!important;
}
.form-control:focus{
  border-color:var(--primary)!important;
  box-shadow:0 0 0 3px rgba(225,48,108,0.18)!important;
  outline:none!important;
}

/* ── BUTTON HARMONY ──────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border-radius:var(--radius-xl);font-size:0.9rem;
  font-weight:600;cursor:pointer;transition:var(--transition);
  border:none;text-decoration:none;white-space:nowrap;
}
.btn-sm{padding:7px 14px;font-size:0.82rem!important}
.btn-lg{padding:14px 28px;font-size:1rem}
.btn-primary{background:var(--grad-primary);color:#fff;box-shadow:0 4px 15px rgba(225,48,108,0.3)}
.btn-primary:hover{opacity:0.92;transform:translateY(-1px);box-shadow:0 6px 20px rgba(225,48,108,0.45)}
.btn-secondary{background:rgba(255,255,255,0.09);border:1px solid rgba(255,255,255,0.2);color:#fff}
.btn-secondary:hover{background:rgba(255,255,255,0.16);border-color:rgba(255,255,255,0.35)}
.btn-express{background:linear-gradient(135deg,#FCAF45,#F77737,#E1306C);color:#fff;animation:none}
.btn-express:hover{opacity:0.92;transform:translateY(-2px)}

/* ── V3 COMPLETE PATCHES ───────────────────────────────── */
/* Notification panel improvements */
.notif-panel{
  width:min(380px,calc(100vw - 32px)) !important;
  max-height:calc(100vh - var(--navbar-height) - 24px) !important;
}
.notif-panel-body{overflow-y:auto;flex:1;min-height:0;}
.notif-item-title{white-space:normal!important;overflow:visible!important;word-break:break-word;}
.notif-item-body{white-space:normal!important;overflow:visible!important;word-break:break-word;}
.toast-title{white-space:normal!important;overflow:visible!important;word-break:break-word;}

/* Hero search bar: single unified bar */
.search-bar-wrap{max-width:740px;margin:0 auto 28px;text-align:center;}
.search-bar-unified{
  display:flex;align-items:center;gap:8px;flex-wrap:nowrap;
  background:rgba(255,255,255,0.09);
  border:1.5px solid rgba(255,255,255,0.18);
  border-radius:var(--radius-xl);
  padding:6px 6px 6px 14px;
  backdrop-filter:blur(12px);
  transition:border-color .25s,box-shadow .25s;
  max-width:740px;
  box-shadow:0 4px 24px rgba(0,0,0,0.25);
}
.search-bar-unified:focus-within{
  border-color:rgba(225,48,108,0.5);
  box-shadow:0 0 0 3px rgba(225,48,108,0.12),0 4px 24px rgba(0,0,0,0.25);
}
.search-bar-unified select{
  background:transparent!important;border:none!important;
  color:#fff!important;font-size:.88rem!important;
  padding:8px 6px!important;flex-shrink:0;
  min-width:0;max-width:160px;
  cursor:pointer;
}
.search-bar-unified select option{background:#1a1a2e!important;color:#fff!important;}
.search-bar-unified .divider-v{
  width:1px;height:26px;background:rgba(255,255,255,0.18);flex-shrink:0;
}
.search-bar-unified input{
  flex:1;background:none!important;border:none!important;outline:none!important;
  color:#fff!important;font-size:.93rem!important;padding:8px 0!important;
  min-width:0;
}
.search-bar-unified input::placeholder{color:rgba(255,255,255,0.5);}
.search-bar-unified .btn-search{
  background:var(--grad-primary);color:#fff;
  border:none;border-radius:calc(var(--radius-xl) - 4px);
  padding:10px 20px;font-weight:700;font-size:.88rem;
  cursor:pointer;transition:var(--transition);white-space:nowrap;
  flex-shrink:0;
}
.search-bar-unified .btn-search:hover{opacity:.9;transform:scale(1.02);}

/* Artisan profile header: photo visible + buttons aligned */
.profile-info-bar{
  display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-xl);
  padding:20px 24px;
  margin-top:16px;
}
.profile-avatar-large{
  width:90px;height:90px;border-radius:50%;
  object-fit:cover;border:3px solid var(--primary);
  flex-shrink:0;background:var(--grad-primary);
}
.profile-meta{flex:1;min-width:0;}
.profile-meta h1{font-size:1.35rem;margin-bottom:4px;}
.profile-actions-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;
}
.profile-price-display{
  font-size:1.6rem;font-weight:800;
  background:var(--ig-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  white-space:nowrap;
}

/* Upload photo button */
.photo-upload-btn{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.75rem;padding:5px 10px;
  background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);
  border-radius:20px;color:#fff;cursor:pointer;
  transition:var(--transition);margin-top:6px;
}
.photo-upload-btn:hover{background:rgba(225,48,108,0.2);border-color:rgba(225,48,108,0.4);}

/* Auth form: phone login toggle */
.auth-method-toggle{
  display:flex;gap:0;border:1px solid rgba(255,255,255,0.15);
  border-radius:var(--radius-md);overflow:hidden;margin-bottom:18px;
}
.auth-method-btn{
  flex:1;padding:9px 8px;background:transparent;
  border:none;color:rgba(255,255,255,0.6);font-size:.82rem;cursor:pointer;
  transition:var(--transition);font-weight:600;
}
.auth-method-btn.active{background:var(--grad-primary);color:#fff;}

/* Legal modal content */
.legal-modal-content{max-height:70vh;overflow-y:auto;padding:8px 0;}
.legal-modal-content h3{font-size:1rem;margin:20px 0 8px;color:var(--accent-pink);}
.legal-modal-content h4{font-size:.9rem;margin:16px 0 6px;color:rgba(255,255,255,.8);}
.legal-modal-content p{font-size:.85rem;color:rgba(255,255,255,.7);line-height:1.7;margin-bottom:10px;}
.legal-modal-content ul{padding-left:20px;margin-bottom:10px;}
.legal-modal-content ul li{font-size:.85rem;color:rgba(255,255,255,.7);line-height:1.7;}

/* Content pages (FAQ, Contact) */
.content-modal-body{font-size:.88rem;color:rgba(255,255,255,.75);line-height:1.8;}
.faq-item{border-bottom:1px solid rgba(255,255,255,.08);padding:14px 0;}
.faq-question{font-weight:700;font-size:.9rem;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  color:#fff;transition:color .2s;}
.faq-question:hover{color:var(--accent-pink);}
.faq-answer{font-size:.85rem;color:rgba(255,255,255,.65);margin-top:8px;
  display:none;line-height:1.7;}
.faq-item.open .faq-answer{display:block;}
.faq-item.open .faq-question{color:var(--accent-pink);}

/* Contact form */
.contact-form-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-lg);padding:20px;}

/* Responsive mobile fixes */
@media(max-width:680px){
  .search-bar-unified{flex-wrap:wrap;border-radius:var(--radius-lg);padding:8px;}
  .search-bar-unified select{max-width:100%;width:100%;}
  .search-bar-unified input{width:100%;}
  .search-bar-unified .btn-search{width:100%;justify-content:center;}
  .search-bar-unified .divider-v{display:none;}
  .profile-info-bar{flex-direction:column;}
  .profile-actions-row{flex-wrap:wrap;}
  .profile-price-display{font-size:1.3rem;}
}


/* ── FIXEO CUSTOM: DASHBOARD GAMIFICATION + PUBLIC TRUST ── */
.dashboard-gamification{
  margin-top:40px;
}
.dashboard-gamification .gamification-header{
  text-align:center;
  margin-bottom:25px;
}
.dashboard-gamification .gamification-header h2{
  font-size:1.3rem;
  margin-bottom:6px;
}
.dashboard-gamification .gamification-header p{
  margin:0;
  color:var(--text-muted);
  font-size:.92rem;
}
.dashboard-gamification .xp-bar{
  width:100%;
  height:8px;
  background:rgba(255,255,255,0.1);
  border-radius:10px;
  overflow:hidden;
  margin-top:10px;
}
.dashboard-gamification .xp-fill{
  width:57%;
  height:100%;
  background:linear-gradient(90deg,#ff4ecd,#9b5cff);
  transition:width 1s ease;
}
.dashboard-gamification .xp-level-text{
  margin-top:10px;
  font-size:.8rem;
  color:rgba(255,255,255,.6);
}
.dashboard-gamification .gamification-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.dashboard-gamification .gamification-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  padding:20px;
  border-radius:16px;
}
.dashboard-gamification .gamification-card h3{
  font-size:1rem;
  margin-bottom:14px;
}
.dashboard-gamification .leaderboard{
  margin-top:20px;
}
.dashboard-gamification .badges-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.dashboard-gamification .badge-item{
  min-width:0;
}
.dashboard-gamification .gamification-mission-list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:12px;
  color:rgba(255,255,255,.82);
  font-size:.9rem;
}
.dashboard-gamification .gamification-mission-list li::marker{
  color:#f472b6;
}
.artisan-trust{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}
.artisan-trust .badge{
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  font-weight:600;
}
.artisan-trust .badge.verified{
  color:#4ade80;
}
.artisan-trust .badge.level{
  color:#facc15;
}
.artisan-trust .badge.score{
  color:#f472b6;
}
@media (max-width: 900px){
  .dashboard-gamification .badges-grid{
    grid-template-columns:repeat(3,1fr);
  }
}
@media (max-width: 768px){
  .dashboard-gamification .gamification-grid{
    grid-template-columns:1fr;
  }
  .dashboard-gamification .badges-grid{
    grid-template-columns:repeat(2,1fr);
  }
}


/* ================================================================
   FIXEO V10 — HEADER UNIFIED (header-unified.css)
   Centralisation complète · Hover effects · Dropdowns · Sticky
   Dashboard/Admin conditionnels · Responsive hamburger
   Chargé EN DERNIER dans tous les <head>
   ================================================================ */

/* ── 1. NAVBAR CONTAINER ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-fixed, 300);
  height: var(--navbar-height, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  background: rgba(13, 13, 26, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  will-change: background;
}

/* Scrolled state — opaque + stronger shadow */
.navbar.scrolled {
  background: rgba(13, 13, 26, 0.97) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

/* Hero visible = slight transparency boost */
.navbar.hero-visible:not(.scrolled) {
  background: rgba(13, 13, 26, 0.78);
}

/* ── 2. LOGO ─────────────────────────────────────────────────── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.navbar-brand:hover { opacity: 0.85; }
.navbar-brand .logo-icon {
  width: 38px; height: 38px;
  font-size: 1.1rem;
  background: var(--grad-primary, linear-gradient(135deg,#E1306C,#833AB4));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.navbar-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--ig-gradient-short, linear-gradient(135deg,#405DE6,#833AB4,#E1306C,#F77737,#FCAF45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 3. DESKTOP NAV LINKS ────────────────────────────────────── */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

/* Base nav-link */
.navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

/* Underline slide-in indicator */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--grad-primary, linear-gradient(135deg,#E1306C,#833AB4));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect */
.navbar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.navbar-nav .nav-link:hover::after {
  width: 60%;
}

/* Active state */
.navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(225, 48, 108, 0.14);
}
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* Dashboard link — subtle teal accent */
.navbar-nav .nav-link[data-role="dashboard"]:hover,
.navbar-nav .nav-link[data-role="dashboard"].active {
  color: var(--success, #20c997);
  background: rgba(32, 201, 151, 0.10);
}
.navbar-nav .nav-link[data-role="dashboard"]::after {
  background: linear-gradient(135deg, #20c997, #0dcaf0);
}

/* Admin link — gold accent */
.navbar-nav .nav-link[data-role="admin"] {
  color: rgba(252, 175, 69, 0.85);
}
.navbar-nav .nav-link[data-role="admin"]:hover {
  color: var(--gold, #FFD700);
  background: rgba(252, 175, 69, 0.12);
}
.navbar-nav .nav-link[data-role="admin"]::after {
  background: linear-gradient(135deg, #FCAF45, #FFD700);
}

/* ── 4. DROPDOWN MENUS ───────────────────────────────────────── */
.nav-has-dropdown {
  position: relative;
}

/* Arrow indicator on parent link */
.nav-has-dropdown > .nav-link .nav-arrow {
  display: inline-block;
  font-size: 0.6rem;
  margin-left: 2px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.nav-has-dropdown:hover > .nav-link .nav-arrow,
.nav-has-dropdown.open > .nav-link .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: rgba(13, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: calc(var(--z-fixed, 300) + 10);
}

/* Open state (hover or JS .open) */
.nav-has-dropdown:hover > .nav-dropdown,
.nav-has-dropdown.open > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.845rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}
.nav-dropdown-item:hover {
  color: #fff;
  background: rgba(225, 48, 108, 0.14);
  transform: translateX(3px);
}
.nav-dropdown-item .dd-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 8px;
}

/* ── 5. NAV ACTIONS (right side) ─────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Quick Search Button */
.btn-quick-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.845rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-quick-search:hover {
  background: rgba(225, 48, 108, 0.22);
  border-color: rgba(225, 48, 108, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.28);
}
.btn-quick-search .bqs-icon { font-size: 0.95rem; }

/* Language selector */
.lang-selector {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-selector:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}
.lang-selector option { background: #1a1a2e; color: #fff; }

/* Notification button */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.notif-btn:hover {
  background: rgba(225, 48, 108, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.22);
}
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  background: var(--accent-red, #E1306C);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.65rem; font-weight: 800; color: #fff;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-dark, #0D0D1A);
}
.notif-badge.has-notif {
  display: flex;
}

/* CTA buttons */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.845rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-nav-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.80);
}
.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.40);
  color: #fff;
  transform: translateY(-1px);
}
.btn-nav-primary {
  background: var(--grad-primary, linear-gradient(135deg,#E1306C,#833AB4));
  border: 1px solid transparent;
  color: #fff;
}
.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(225, 48, 108, 0.42);
  filter: brightness(1.08);
}

/* User avatar chip (logged-in state) */
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  cursor: pointer;
  transition: background 0.22s ease;
}
.nav-user-chip:hover { background: rgba(255, 255, 255, 0.12); }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.nav-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 6. HAMBURGER BUTTON ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.22s ease;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.12); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 7. MOBILE NAV DRAWER ────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height, 70px);
  left: 0;
  right: 0;
  z-index: calc(var(--z-fixed, 300) + 30);
  background: rgba(13, 13, 26, 0.985);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px 16px 20px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s ease;
  max-height: calc(100vh - var(--navbar-height, 70px));
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--navbar-height, 70px) 0 0 0;
  z-index: calc(var(--z-fixed, 300) + 20);
  background: rgba(5, 8, 18, 0.38);
  border: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile nav links */
.mobile-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: #fff;
  background: rgba(225, 48, 108, 0.13);
}
.mobile-nav .nav-link[data-role="dashboard"] { color: rgba(32, 201, 151, 0.85); }
.mobile-nav .nav-link[data-role="admin"] { color: rgba(252, 175, 69, 0.85); }

/* Mobile section divider */
.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 4px;
}

/* Mobile quick-search */
.mobile-nav .btn-quick-search {
  width: 100%;
  justify-content: center;
  margin: 6px 0;
}

/* Mobile auth buttons */
.mobile-nav-auth {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.mobile-nav-auth .btn-nav {
  flex: 1;
  justify-content: center;
}

/* ── 8. VISIBILITY RULES — Dashboard / Admin ─────────────────── */
/* Hidden by default — JS reveals based on auth state */
[data-auth="logged-in"],
[data-auth="admin"] {
  display: none !important;
}
/* When body carries correct state class */
body.is-logged-in [data-auth="logged-in"] {
  display: flex !important;
}
body.is-logged-in [data-auth="guest"] {
  display: none !important;
}
body.is-admin [data-auth="admin"] {
  display: flex !important;
}
/* For inline-block elements (links) */
body.is-logged-in a[data-auth="logged-in"],
body.is-logged-in button[data-auth="logged-in"] {
  display: inline-flex !important;
}
body.is-admin a[data-auth="admin"],
body.is-admin button[data-auth="admin"] {
  display: inline-flex !important;
}
/* Mobile variants */
body.is-logged-in .mobile-nav a[data-auth="logged-in"] { display: flex !important; }
body.is-admin .mobile-nav a[data-auth="admin"] { display: flex !important; }

/* ── 9. STICKY TRANSPARENT TRANSITION ───────────────────────── */
/* When hero section is in view, header appears lighter */
@media (min-width: 769px) {
  .navbar:not(.scrolled) .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
  }
}

/* ── 10. RESPONSIVE BREAKPOINTS ──────────────────────────────── */

/* Tablet: hide some text */
@media (max-width: 1100px) {
  .btn-quick-search .bqs-text { display: none; }
  .btn-quick-search { padding: 8px 12px; }
  .btn-quick-search .bqs-icon { font-size: 1.05rem; }
  .navbar-nav { gap: 2px; }
  .navbar-nav .nav-link { padding: 8px 11px; }
}

/* Mobile: switch to hamburger */
@media (max-width: 768px) {
  .navbar-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .btn-quick-search .bqs-text { display: none; }
  .btn-quick-search { padding: 8px 11px; }
  .btn-nav-outline { display: none; }
  .lang-selector { display: none; }
  .mobile-nav { display: flex; }
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Very small screens */
@media (max-width: 400px) {
  .navbar { padding: 0 14px; }
  .navbar-brand .logo-text { display: none; }
}

/* ── 11. SKIP-LINK ACCESSIBILITY ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary, #E1306C);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ── 12. FOCUS-VISIBLE RING ──────────────────────────────────── */
.navbar-nav .nav-link:focus-visible,
.btn-quick-search:focus-visible,
.notif-btn:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--primary, #E1306C);
  outline-offset: 2px;
}


/* FIXEO — GLOBAL MOBILE HEADER V1 — fxgh2 */
.fixeo-gh-mobile {
  display: none;
  width: 100%;
}

/* ── V2-C3B: FIRST-PAINT FLASH PREVENTION ──────────────────────
   body.fixeo-gh-enabled is written in HTML before any JS runs.
   At first paint the new .fixeo-gh-mobile bar is NOT yet in the DOM
   (it's injected by mount() at DCL). Without these rules the legacy
   .hamburger and .navbar-toggle remain visible on mobile for the
   ~3-4 seconds it takes 600KB of sync JS to finish executing.
   These rules kill all legacy mobile-menu triggers the instant the
   first byte of CSS is parsed — no flash window at all.
   Only hide controls that fixeo-header-global.js REPLACES.
   The new .fixeo-gh-menu button is inside .fixeo-gh-mobile which
   is display:none until mount() shows it, so hiding .hamburger here
   does not leave the user without a menu button.
 ────────────────────────────────────────────────────────────── */
body.fixeo-gh-enabled .hamburger,
body.fixeo-gh-enabled .mobile-menu-toggle,
body.fixeo-gh-enabled .navbar-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  body.fixeo-gh-enabled .fixeo-gh-original-node,
  body.fixeo-gh-enabled .fixeo-gh-legacy-drawer,
  body.fixeo-gh-enabled .fixeo-gh-legacy-backdrop {
    display: none !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-mobile {
    display: block !important;
  }

  body.fixeo-gh-enabled .navbar.fixeo-gh-host,
  body.fixeo-gh-enabled .site-header.fixeo-gh-shell {
    isolation: isolate;
    z-index: 1200;
  }

  body.fixeo-gh-enabled .navbar.fixeo-gh-host {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: initial !important;
    align-items: stretch !important;
    min-height: 60px !important;
  }

  body.fixeo-gh-enabled .site-header.fixeo-gh-shell {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
  }

  body.fixeo-gh-enabled .fixeo-gh-shell--synthetic {
    position: sticky;
    top: 0;
    z-index: 1200;
  }

  body.fixeo-gh-enabled .fixeo-gh-shell--synthetic .fixeo-gh-shell-inner {
    padding: 0;
  }

  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.94), rgba(12, 18, 32, 0.82));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.fixeo-gh-enabled .fixeo-gh-brand {
    min-width: 0;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(225,48,108,0.96), rgba(64,93,230,0.92));
    color: #fff;
    box-shadow: 0 10px 20px rgba(131, 58, 180, 0.24);
    font-size: 1rem;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-text {
    display: block;
    font-size: 1.08rem;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-sub {
    display: block;
    font-size: 0.68rem;
    line-height: 1;
    color: rgba(255,255,255,0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.fixeo-gh-enabled .fixeo-gh-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  body.fixeo-gh-enabled .fixeo-gh-icon-btn,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 16px rgba(0,0,0,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.fixeo-gh-enabled .fixeo-gh-icon-btn {
    padding: 0;
    cursor: pointer;
  }

  body.fixeo-gh-enabled .fixeo-gh-icon {
    font-size: 1rem;
    line-height: 1;
  }

  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1201; /* above bar (1200) — ensures tap target is never covered */
  }

  body.fixeo-gh-enabled .fixeo-gh-avatar {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(
  110deg,
  #f05a2a 0%,
  #e1306c 48%,
  #8a3ffc 100%
);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  body.fixeo-gh-enabled .fixeo-gh-menu {
    padding: 0;
    gap: 3px;
    flex-direction: column;
  }

  body.fixeo-gh-enabled .fixeo-gh-menu-line {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    opacity: 0.92;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.fixeo-gh-enabled .fixeo-gh-menu.is-open .fixeo-gh-menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  body.fixeo-gh-enabled .fixeo-gh-menu.is-open .fixeo-gh-menu-line:nth-child(2) {
    opacity: 0;
  }

  body.fixeo-gh-enabled .fixeo-gh-menu.is-open .fixeo-gh-menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  body.fixeo-gh-enabled .fixeo-gh-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(225, 48, 108, 0.96);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
  }

  body.fixeo-gh-enabled .fixeo-gh-badge:empty {
    display: none;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer {
    position: fixed;
    top: calc(60px + env(safe-area-inset-top, 0px) + 8px);
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    z-index: 1250;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(10,15,27,0.98), rgba(10,15,27,0.94));
    box-shadow: 0 24px 54px rgba(0,0,0,0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.fixeo-gh-enabled .fixeo-gh-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1240;
    border: 0;
    background: rgba(4, 8, 16, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.fixeo-gh-enabled .fixeo-gh-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-group + .fixeo-gh-drawer-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-label {
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.46);
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link,
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link:hover,
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta:hover {
    background: rgba(255,255,255,0.06);
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-cta {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-cta.is-primary {
    background: linear-gradient(135deg, rgba(225,48,108,0.92), rgba(131,58,180,0.92));
    border-color: transparent;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-panel {
    position: fixed;
    top: calc(60px + env(safe-area-inset-top, 0px) + 8px);
    right: calc(12px + env(safe-area-inset-right, 0px));
    width: min(280px, calc(100vw - 24px));
    z-index: 1260;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(10,15,27,0.98), rgba(10,15,27,0.94));
    box-shadow: 0 20px 40px rgba(0,0,0,0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.84rem;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-item + .fixeo-gh-notif-item {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    background: linear-gradient(135deg, #E1306C, #833AB4);
    box-shadow: 0 0 0 5px rgba(225,48,108,0.14);
    flex: 0 0 8px;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-empty {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.68);
  }
}

@media (max-width: 600px) {
  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    gap: 10px;
  }

  body.fixeo-gh-enabled .fixeo-gh-actions {
    gap: 7px;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-text {
    font-size: 1.04rem;
  }
}

@media (max-width: 390px) {
  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-icon,
  body.fixeo-gh-enabled .fixeo-gh-icon-btn,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    width: 36px;
    height: 36px;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-icon {
    flex-basis: 36px;
  }

  body.fixeo-gh-enabled .fixeo-gh-brand-sub {
    display: none;
  }
}

@media (max-width: 360px) {
  body.fixeo-gh-enabled .fixeo-gh-brand-text {
    font-size: 0.98rem;
  }

  body.fixeo-gh-enabled .fixeo-gh-actions {
    gap: 6px;
  }
}

@media (min-width: 769px) {
  .fixeo-gh-mobile,
  .fixeo-gh-shell--synthetic {
    display: none !important;
  }
  /* V2-C5A: hide hamburger menu portal on desktop — was adding ~344px phantom block to page height */
  #fixeo-gh-menu-portal {
    display: none !important;
  }
}

/* ── IA refonte additions (2026-05-04) ─────────────────────────── */
/* Drawer compte: user avatar initial circle */
body.fixeo-gh-enabled .fixeo-gh-drawer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E1306C, #833AB4);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex: 0 0 28px;
}

/* Drawer compte: highlight row */
body.fixeo-gh-enabled .fixeo-gh-drawer-compte-user {
  background: rgba(225,48,108,0.08);
  border-radius: 14px;
}

/* Drawer lang: pill row */
body.fixeo-gh-enabled .fixeo-gh-drawer-lang-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}

body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
/* ────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   FIXEO GH DRAWER — PREMIUM POLISH v2 (fxgh2)
   Append-only. Fixes: overflow, density, hierarchy, CTA anchor.
   Root causes fixed:
   1. No max-height → drawer overflowed by 160px on vh=844
   2. Link rows 49px → compacted to 44px rendered
   3. Group gaps 28px → 20px per separator
   4. Language section heavy → compact inline row
   5. Drawer missing premium identity header
   6. Primary CTA ("Publier une demande") must be anchored/visible
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── 1. DRAWER: max-height + scroll guard ─────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer {
    /* Safe scrollable region: from top of drawer to bottom of safe area */
    max-height: calc(100dvh - 68px - 16px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    /* Tighter top offset — navbar is 60px, give 8px breathing room */
    top: calc(60px + env(safe-area-inset-top, 0px) + 8px) !important;
    /* Slightly tighter side margins for more content width */
    left: calc(10px + env(safe-area-inset-left, 0px)) !important;
    right: calc(10px + env(safe-area-inset-right, 0px)) !important;
    /* Deeper premium glass */
    background: linear-gradient(
      175deg,
      rgba(12, 16, 30, 0.99) 0%,
      rgba(10, 13, 24, 0.97) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    border-radius: 22px !important;
    padding: 6px 6px 12px !important;
  }

  /* ── 2. DRAWER HEADER — branding strip ──────────────────────
     Injected via ::before pseudo — no DOM change needed.
     Shows Fixeo name + tagline at top of drawer. */
  body.fixeo-gh-enabled .fixeo-gh-drawer::before {
    content: '';
    display: block;
    height: 3px;
    margin: 0 12px 10px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      rgba(225, 48, 108, 0.7) 0%,
      rgba(131, 58, 180, 0.5) 50%,
      rgba(64, 93, 230, 0.3) 100%
    );
  }

  /* ── 3. GROUPS — compact spacing ────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-group {
    padding: 0 10px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-group + .fixeo-gh-drawer-group {
    margin-top: 4px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  /* ── 4. SECTION LABELS — lighter, tighter ───────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-label {
    margin-bottom: 4px !important;
    padding: 0 2px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    color: rgba(255, 255, 255, 0.36) !important;
    text-transform: uppercase !important;
  }

  /* ── 5. LINKS — compact 44px touch targets ──────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-link,
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta {
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    gap: 10px !important;
    transition: background 0.14s ease, color 0.14s ease !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.96) !important;
  }

  /* ── 6. PRIMARY CTA — "Publier une demande" ─────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta.is-primary {
    min-height: 46px !important;
    padding: 0 16px !important;
    font-weight: 700 !important;
    font-size: 0.93rem !important;
    color: #fff !important;
    background: linear-gradient(
      135deg,
      rgba(225, 48, 108, 0.94) 0%,
      rgba(131, 58, 180, 0.92) 100%
    ) !important;
    border: 1px solid rgba(225, 48, 108, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.22) !important;
    justify-content: center !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-cta.is-primary:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 10px 28px rgba(225, 48, 108, 0.30) !important;
  }

  /* Secondary CTAs (Connexion / Inscription / Je suis artisan) */
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta:not(.is-primary) {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600 !important;
    justify-content: center !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-cta:not(.is-primary):hover {
    background: rgba(255, 255, 255, 0.09) !important;
  }

  /* ── 7. COMPTE GROUP — auth user highlight ──────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-compte-user {
    background: linear-gradient(
      135deg,
      rgba(225, 48, 108, 0.10),
      rgba(131, 58, 180, 0.08)
    ) !important;
    border: 1px solid rgba(225, 48, 108, 0.16) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 4px !important;
  }

  /* Logout link — subtle red danger tone */
  body.fixeo-gh-enabled #fixeo-gh-drawer-logout {
    color: rgba(255, 100, 100, 0.78) !important;
    font-size: 0.88rem !important;
  }

  body.fixeo-gh-enabled #fixeo-gh-drawer-logout:hover {
    color: rgba(255, 100, 100, 0.96) !important;
    background: rgba(255, 60, 60, 0.07) !important;
  }

  /* ── 8. LANGUAGE ROW — compact, no label ───────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-lang {
    margin-top: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  /* Hide label above lang row — pill buttons self-describe */
  body.fixeo-gh-enabled .fixeo-gh-drawer-lang .fixeo-gh-drawer-label {
    display: none !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-row {
    padding: 2px 2px 0 !important;
    gap: 6px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn {
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.52) !important;
    letter-spacing: 0.06em !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: rgba(255, 255, 255, 0.86) !important;
  }

  /* Active lang btn */
  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn[data-active="true"],
  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn.active {
    background: rgba(225, 48, 108, 0.18) !important;
    border-color: rgba(225, 48, 108, 0.30) !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* ── 9. SCROLL FADE INDICATOR ───────────────────────────────── */
  /* Subtle bottom gradient hint that there's more content when scrollable */
  body.fixeo-gh-enabled .fixeo-gh-drawer::after {
    content: '';
    position: sticky;
    bottom: 0;
    display: block;
    height: 24px;
    margin: -24px -6px 0;
    background: linear-gradient(
      to top,
      rgba(10, 13, 24, 0.85) 0%,
      transparent 100%
    );
    pointer-events: none;
    border-radius: 0 0 22px 22px;
  }

  /* ── 10. SAFE AREA BOTTOM GUARD ─────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-group:last-child {
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── 320px micro layout ──────────────────────────────────────── */
@media (max-width: 320px) {
  body.fixeo-gh-enabled .fixeo-gh-drawer {
    left: 8px !important;
    right: 8px !important;
    padding: 6px 4px 10px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link,
  body.fixeo-gh-enabled .fixeo-gh-drawer-cta {
    font-size: 0.88rem !important;
    padding: 7px 10px !important;
    min-height: 42px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-lang-btn {
    height: 28px !important;
    font-size: 0.72rem !important;
  }
}
/* END fxgh2 premium polish */

/* ── ⚡ Mon Espace Fixeo — premium drawer CTA — fxgh-espace ── */
body.fixeo-gh-enabled .fixeo-gh-drawer-espace {
  background: linear-gradient(135deg, rgba(225,48,108,0.18), rgba(131,58,180,0.22)) !important;
  border: 1px solid rgba(225,48,108,0.42) !important;
  box-shadow: 0 0 16px rgba(225,48,108,0.14), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  margin-top: 6px !important;
  transition: background .2s, box-shadow .2s, transform .15s !important;
}
body.fixeo-gh-enabled .fixeo-gh-drawer-espace:hover,
body.fixeo-gh-enabled .fixeo-gh-drawer-espace:active {
  background: linear-gradient(135deg, rgba(225,48,108,0.30), rgba(131,58,180,0.34)) !important;
  box-shadow: 0 0 24px rgba(225,48,108,0.26) !important;
  transform: translateY(-1px);
}

/* ── ⚡ Avatar workspace state — logged-in shortcut ── fxgh-espace-avatar ── */
body.fixeo-gh-enabled .fixeo-gh-avatar--espace {
  background: linear-gradient(135deg, #E1306C 0%, #833AB4 100%);
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.55), 0 0 20px rgba(131, 58, 180, 0.30);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
body.fixeo-gh-enabled .fixeo-gh-avatar-link:hover .fixeo-gh-avatar--espace,
body.fixeo-gh-enabled .fixeo-gh-avatar-link:active .fixeo-gh-avatar--espace {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(225, 48, 108, 0.70), 0 0 28px rgba(131, 58, 180, 0.45);
}

/* ══════════════════════════════════════════════════════════════
   FIXEO GH DRAWER — PREMIUM NAVIGATION V3 (fxgh-nav3)
   Append-only. CSS namespace: fixeo-gh-di / fixeo-gh-drawer-link--*
   Implements:
     1. Icon normalization (fixeo-gh-di span)
     2. Active state (fixeo-gh-drawer-link--active)
     3. Enterprise premium entry (fixeo-gh-drawer-link--enterprise)
     4. Section label refinement
     5. Typography hierarchy improvement
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Icon normalization ─────────────────────────────────── */
/* All drawer item icons are wrapped in .fixeo-gh-di for consistent
   width, alignment and visual weight across all icon families.    */
body.fixeo-gh-enabled .fixeo-gh-di {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  /* Prevent emoji font-size inheritance oddities */
  font-style: normal;
}

/* ── 2. Active navigation state ───────────────────────────── */
/* Current page link — subtle, premium, not aggressive */
body.fixeo-gh-enabled .fixeo-gh-drawer-link--active {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  position: relative;
}

/* Left accent bar on active item */
body.fixeo-gh-enabled .fixeo-gh-drawer-link--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, rgb(72, 100, 255), rgba(72, 100, 255, 0.60));
}

/* ── 3. Enterprise premium entry ──────────────────────────── */
/* Subtle upgrade over a regular nav link — same destination,
   higher perceived value. No glow, no animation.              */
body.fixeo-gh-enabled .fixeo-gh-drawer-link--enterprise {
  color: rgb(72, 100, 255) !important;
  font-weight: 700 !important;
  background: rgba(72, 100, 255, 0.08) !important;
  border: 1px solid rgba(72, 100, 255, 0.18) !important;
  border-radius: 12px !important;
  margin-top: 4px !important;
}

body.fixeo-gh-enabled .fixeo-gh-drawer-link--enterprise:hover {
  background: rgba(72, 100, 255, 0.14) !important;
  color: rgb(110, 135, 255) !important;
}

/* Active enterprise link (when on entreprises.html) */
body.fixeo-gh-enabled .fixeo-gh-drawer-link--enterprise.fixeo-gh-drawer-link--active {
  background: rgba(72, 100, 255, 0.16) !important;
  border-color: rgba(72, 100, 255, 0.32) !important;
  color: rgb(130, 155, 255) !important;
}

/* Active state accent bar color for enterprise: indigo */
body.fixeo-gh-enabled .fixeo-gh-drawer-link--enterprise.fixeo-gh-drawer-link--active::before {
  background: linear-gradient(180deg, rgb(72, 100, 255), rgba(72, 100, 255, 0.50));
}

/* ── 4. Section label typography refinement ───────────────── */
/* Slightly more refined label — tighter, more air above group  */
@media (max-width: 768px) {
  body.fixeo-gh-enabled .fixeo-gh-drawer-group {
    padding-top: 2px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px 2px !important;
    margin-bottom: 6px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.11em !important;
    color: rgba(255, 255, 255, 0.30) !important;
  }

  /* Thin rule before label (replaces top border on group) */
  body.fixeo-gh-enabled .fixeo-gh-drawer-group + .fixeo-gh-drawer-group > .fixeo-gh-drawer-label::before {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    display: none; /* keep it clean — border-top on group is enough */
  }

  /* ── 5. Typography hierarchy ────────────────────────────── */
  /* Regular nav links: slightly lighter weight for inactive state */
  body.fixeo-gh-enabled .fixeo-gh-drawer-link:not(.fixeo-gh-drawer-link--active):not(.fixeo-gh-drawer-cta):not(.fixeo-gh-drawer-link--enterprise):not(.fixeo-gh-drawer-compte-user):not(.fixeo-gh-drawer-espace) {
    font-weight: 450 !important;
    color: rgba(255, 255, 255, 0.72) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link:not(.fixeo-gh-drawer-link--active):not(.fixeo-gh-drawer-cta):not(.fixeo-gh-drawer-link--enterprise):not(.fixeo-gh-drawer-compte-user):not(.fixeo-gh-drawer-espace):hover {
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* ── 6. Touch target consistency ────────────────────────── */
  /* All items exactly 44px — WCAG AA touch target             */
  body.fixeo-gh-enabled .fixeo-gh-di {
    width: 22px !important;
    font-size: 0.94rem !important;
    opacity: 0.80;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link--active .fixeo-gh-di,
  body.fixeo-gh-enabled .fixeo-gh-drawer-link:hover .fixeo-gh-di {
    opacity: 1;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-link--enterprise .fixeo-gh-di {
    opacity: 0.90;
  }
}
/* END fxgh-nav3 */

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL MOBILE MENU — PLATFORM GATEWAY V4
   Namespace: fixeo-gh-gateway-*
   Activation class: .fixeo-gh-drawer--gateway

   Architecture:
   Navigation courte
   → Client
   → Artisan
   → Entreprise
   → Découvrir
   → Compte

   Language selector intentionally omitted from V4 until the
   multilingual experience is production-ready.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── DRAWER CANVAS ────────────────────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-drawer.fixeo-gh-drawer--gateway {
    padding: 7px 7px 14px !important;

    background:
      radial-gradient(
        ellipse 80% 38% at 12% 0%,
        rgba(225,48,108,.075),
        transparent 72%
      ),
      radial-gradient(
        ellipse 70% 34% at 100% 100%,
        rgba(64,93,230,.055),
        transparent 74%
      ),
      linear-gradient(
        175deg,
        rgba(13,16,30,.995),
        rgba(8,11,22,.985)
      ) !important;

    border:
      1px solid rgba(255,255,255,.09) !important;

    border-radius:24px !important;

    box-shadow:
      0 32px 75px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.055) !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-drawer.fixeo-gh-drawer--gateway::before {
    height:2px;

    margin:
      0
      13px
      12px;

    background:
      linear-gradient(
        90deg,
        rgba(225,48,108,.85),
        rgba(131,58,180,.58) 50%,
        rgba(64,93,230,.28),
        transparent
      );
  }


  /* ── COMMON GROUP ─────────────────────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-group {
    padding:
      0
      8px !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-group +
  .fixeo-gh-drawer-group {
    margin-top:9px !important;

    padding-top:13px !important;

    border-top:
      1px solid rgba(255,255,255,.06) !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-label {
    margin:
      0
      0
      8px !important;

    padding:
      0
      2px !important;

    color:
      rgba(255,255,255,.30) !important;

    font-size:.61rem !important;
    font-weight:800 !important;

    letter-spacing:.13em !important;
    line-height:1.2;

    text-transform:uppercase;
  }


  /* ════════════════════════════════════════════════════════════
     SHORT NAVIGATION
     ════════════════════════════════════════════════════════════ */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-grid {
    display:grid;

    grid-template-columns:
      repeat(2,minmax(0,1fr));

    gap:6px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item {
    position:relative;

    display:flex;
    align-items:center;

    gap:9px;

    min-width:0;
    min-height:43px;

    padding:
      8px
      10px !important;

    border-radius:12px !important;

    border:
      1px solid rgba(255,255,255,.065);

    background:
      rgba(255,255,255,.025);

    color:
      rgba(240,244,252,.70) !important;

    font-size:.78rem !important;
    font-weight:650 !important;

    text-decoration:none;

    transition:
      background .15s ease,
      border-color .15s ease,
      color .15s ease;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item:hover,
  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item:active {
    background:
      rgba(255,255,255,.055);

    border-color:
      rgba(255,255,255,.11);

    color:#fff !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item
  .fixeo-gh-di {
    width:19px !important;

    font-size:.88rem !important;

    opacity:.66;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item.fixeo-gh-drawer-link--active {
    background:
      linear-gradient(
        135deg,
        rgba(225,48,108,.08),
        rgba(131,58,180,.045)
      ) !important;

    border-color:
      rgba(225,48,108,.16);

    color:#fff !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item.fixeo-gh-drawer-link--active::before {
    display:none;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item.fixeo-gh-drawer-link--active::after {
    content:'';

    position:absolute;

    top:8px;
    right:8px;

    width:5px;
    height:5px;

    border-radius:50%;

    background:#ff76a8;

    box-shadow:
      0 0 9px rgba(225,48,108,.55);
  }


  /* ════════════════════════════════════════════════════════════
     PLATFORM GATEWAY STACK
     ════════════════════════════════════════════════════════════ */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-stack {
    display:flex;
    flex-direction:column;

    gap:8px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card {
    position:relative;

    overflow:hidden;

    padding:
      15px
      14px
      14px;

    border-radius:17px;

    border:
      1px solid rgba(255,255,255,.075);

    background:
      rgba(255,255,255,.025);

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.025);
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card::before {
    content:'';

    position:absolute;

    inset:
      0
      auto
      0
      0;

    width:2px;

    opacity:.70;
  }


  /* Client */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--client {
    background:
      radial-gradient(
        ellipse 65% 90% at 0% 0%,
        rgba(225,48,108,.075),
        transparent 74%
      ),
      rgba(255,255,255,.025);
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--client::before {
    background:
      linear-gradient(
        180deg,
        #E1306C,
        rgba(131,58,180,.32),
        transparent
      );
  }


  /* Artisan */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan {
    background:
      radial-gradient(
        ellipse 65% 90% at 0% 0%,
        rgba(131,58,180,.075),
        transparent 74%
      ),
      rgba(255,255,255,.025);
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan::before {
    background:
      linear-gradient(
        180deg,
        #a86df4,
        rgba(225,48,108,.25),
        transparent
      );
  }


  /* Enterprise */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--enterprise {
    background:
      radial-gradient(
        ellipse 68% 90% at 0% 0%,
        rgba(64,93,230,.09),
        transparent 74%
      ),
      rgba(255,255,255,.025);
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--enterprise::before {
    background:
      linear-gradient(
        180deg,
        #6077ff,
        rgba(64,93,230,.22),
        transparent
      );
  }


  /* ── Gateway heading ─────────────────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card-head {
    display:flex;
    align-items:flex-start;

    gap:11px;

    margin-bottom:11px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-symbol {
    width:33px;
    height:33px;

    flex:0 0 33px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:10px;

    border:
      1px solid rgba(255,255,255,.075);

    background:
      rgba(255,255,255,.035);

    color:
      rgba(255,255,255,.80);

    font-size:.86rem;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card-copy {
    min-width:0;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-kicker {
    display:block;

    margin-bottom:3px;

    color:
      rgba(255,255,255,.30);

    font-size:.52rem;
    font-weight:850;

    letter-spacing:.11em;

    text-transform:uppercase;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-title {
    margin:0;

    color:#fff;

    font-size:.91rem;
    font-weight:820;

    line-height:1.25;

    letter-spacing:-.01em;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-desc {
    margin:
      4px
      0
      0;

    color:
      rgba(225,231,244,.45);

    font-size:.68rem;

    line-height:1.48;
  }


  /* ── Main gateway actions ────────────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action {
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    width:100%;

    min-height:42px;

    padding:
      9px
      12px !important;

    border-radius:12px !important;

    text-decoration:none;

    font-family:inherit;

    font-size:.76rem !important;
    font-weight:780 !important;

    cursor:pointer;

    transition:
      transform .14s ease,
      filter .14s ease,
      border-color .14s ease,
      background .14s ease;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action::after {
    content:'→';

    flex:0 0 auto;

    opacity:.62;

    font-size:.85rem;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action:hover,
  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action:active {
    transform:translateY(-1px);
  }


  /* Client = only dominant CTA */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--client {
    border:
      1px solid rgba(225,48,108,.25) !important;

    background:
      linear-gradient(
        135deg,
        #E1306C,
        #833AB4
      ) !important;

    color:#fff !important;

    box-shadow:
      0 8px 22px rgba(225,48,108,.18);
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--client:hover {
    filter:brightness(1.07);
  }


  /* Artisan = secondary strategic gateway */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--artisan {
    border:
      1px solid rgba(168,109,244,.18) !important;

    background:
      rgba(131,58,180,.075) !important;

    color:
      rgba(237,220,255,.90) !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--artisan:hover {
    background:
      rgba(131,58,180,.13) !important;

    border-color:
      rgba(168,109,244,.27) !important;
  }


  /* Enterprise = institutional gateway */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--enterprise {
    border:
      1px solid rgba(96,119,255,.20) !important;

    background:
      rgba(64,93,230,.075) !important;

    color:
      rgba(190,202,255,.93) !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action--enterprise:hover {
    background:
      rgba(64,93,230,.13) !important;

    border-color:
      rgba(96,119,255,.30) !important;
  }


  /* ── Secondary contextual links ──────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-sublinks {
    display:flex;
    flex-wrap:wrap;

    align-items:center;

    gap:
      6px
      13px;

    margin-top:9px;

    padding:
      0
      2px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-sublink {
    position:relative;

    display:inline-flex;
    align-items:center;

    min-height:26px;

    padding:0 !important;

    color:
      rgba(225,231,244,.45) !important;

    font-size:.65rem !important;
    font-weight:650 !important;

    text-decoration:none;

    background:none !important;

    border:0 !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-sublink:hover {
    color:
      rgba(255,255,255,.82) !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-sublink +
  .fixeo-gh-gateway-sublink::before {
    content:'';

    width:3px;
    height:3px;

    margin-right:10px;

    border-radius:50%;

    background:
      rgba(255,255,255,.18);
  }


  /* ════════════════════════════════════════════════════════════
     DISCOVER FIXEO
     ════════════════════════════════════════════════════════════ */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-discover {
    display:grid;

    grid-template-columns:1fr;

    gap:3px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-discover-link {
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    min-height:36px;

    padding:
      6px
      4px !important;

    border-radius:9px !important;

    background:none !important;

    color:
      rgba(225,231,244,.52) !important;

    font-size:.72rem !important;
    font-weight:600 !important;

    text-decoration:none;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-discover-link::after {
    content:'›';

    color:
      rgba(255,255,255,.20);

    font-size:.92rem;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-discover-link:hover {
    padding-left:
      8px !important;

    background:
      rgba(255,255,255,.025) !important;

    color:
      rgba(255,255,255,.82) !important;
  }


  /* ════════════════════════════════════════════════════════════
     ACCOUNT
     ════════════════════════════════════════════════════════════ */

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-account-actions {
    display:grid;

    grid-template-columns:
      1fr
      1fr;

    gap:7px;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-account-link {
    min-height:40px !important;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:7px;

    padding:
      8px
      10px !important;

    border-radius:11px !important;

    border:
      1px solid rgba(255,255,255,.075) !important;

    background:
      rgba(255,255,255,.026) !important;

    color:
      rgba(240,244,252,.68) !important;

    font-size:.72rem !important;
    font-weight:700 !important;

    text-decoration:none;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-gateway-account-link:hover {
    border-color:
      rgba(255,255,255,.13) !important;

    background:
      rgba(255,255,255,.055) !important;

    color:#fff !important;
  }


  /* Logged-in user remains premium, but no competition
     with the client marketplace CTA. */

  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-compte-user {
    min-height:42px !important;

    margin-bottom:6px !important;

    background:
      linear-gradient(
        135deg,
        rgba(225,48,108,.075),
        rgba(131,58,180,.055)
      ) !important;

    border:
      1px solid rgba(225,48,108,.12) !important;

    box-shadow:none !important;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-espace {
    margin-top:0 !important;

    min-height:42px !important;

    background:
      rgba(255,255,255,.032) !important;

    border:
      1px solid rgba(255,255,255,.075) !important;

    box-shadow:none !important;

    color:
      rgba(240,244,252,.78) !important;
  }


  /* ── NO LANGUAGE SURFACE IN V4 ───────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-lang {
    display:none !important;
  }


  /* ── FINAL SAFE AREA ─────────────────────────────────────── */

  body.fixeo-gh-enabled
  .fixeo-gh-drawer--gateway
  .fixeo-gh-drawer-group:last-child {
    padding-bottom:
      calc(
        6px +
        env(safe-area-inset-bottom,0px)
      ) !important;
  }
}


/* ── Small devices ─────────────────────────────────────────── */

@media (max-width: 360px) {

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card {
    padding:
      13px
      12px;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-title {
    font-size:.87rem;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-desc {
    font-size:.65rem;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item {
    font-size:.73rem !important;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-account-actions {
    grid-template-columns:1fr;
  }
}


/* ── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-action,

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-nav-item,

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-discover-link {
    transition:none !important;

    transform:none !important;
  }
}

/* END FIXEO MOBILE MENU PLATFORM GATEWAY V4 */

/* ══════════════════════════════════════════════════════════════
   FIXEO MOBILE GATEWAY V4 — ARTISAN SUBLINK ALIGNMENT
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan
  .fixeo-gh-gateway-sublinks {
    display:grid;
    grid-template-columns:auto auto;
    justify-content:start;
    align-items:center;
    gap:8px 18px;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan
  .fixeo-gh-gateway-sublink {
    white-space:nowrap;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan
  .fixeo-gh-gateway-sublink +
  .fixeo-gh-gateway-sublink::before {
    display:none;
  }
}

@media (max-width: 340px) {

  body.fixeo-gh-enabled
  .fixeo-gh-gateway-card--artisan
  .fixeo-gh-gateway-sublinks {
    grid-template-columns:1fr;
    gap:3px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL HEADER V5A — UNIVERSAL MOBILE SHELL
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /*
   * Historical headers remain available for desktop
   * but never compete with the canonical mobile shell.
   */
  body.fixeo-gh-enabled
  .fixeo-gh-source-shell {
    display:none !important;
  }


  /*
   * Canonical mobile header.
   * Independent from .navbar / .site-header page CSS.
   */
  body.fixeo-gh-enabled
  .fixeo-gh-universal-shell {
    display:block !important;

    position:sticky !important;
    top:0 !important;

    width:100% !important;

    margin:0 !important;
    padding:0 !important;

    z-index:1200 !important;

    background:transparent !important;

    isolation:isolate;
  }


  body.fixeo-gh-enabled
  .fixeo-gh-universal-inner {
    width:100% !important;
    max-width:none !important;

    margin:0 !important;
    padding:0 !important;
  }
}


@media (min-width:769px) {

  body.fixeo-gh-enabled
  .fixeo-gh-universal-shell {
    display:none !important;
  }

}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL HEADER V5B.2
   PREMIUM STICKY DRAWER CONTROL
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Persistent top control ─────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-control {
    position: sticky;
    top: 0;
    z-index: 8;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 48px;
    margin: 0 -2px 8px;
    padding: 7px 8px 8px;

    background:
      linear-gradient(
        180deg,
        rgba(12,16,30,.985) 0%,
        rgba(12,16,30,.965) 76%,
        rgba(12,16,30,.90) 100%
      );

    border-bottom: 1px solid rgba(255,255,255,.07);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }


  /* ── FIXEO identity ─────────────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-control-brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-left: 4px;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-control-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;

    background: #ff6b9d;

    box-shadow:
      0 0 0 4px rgba(225,48,108,.08),
      0 0 12px rgba(225,48,108,.45);
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-control-title {
    color: rgba(255,255,255,.58);

    font-size: .64rem;
    font-weight: 800;

    letter-spacing: .13em;
    text-transform: uppercase;

    white-space: nowrap;
  }


  /* ── Close control ──────────────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-drawer-close {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;

    flex: 0 0 auto;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    margin: 0 !important;
    padding: 5px 10px !important;

    border-radius: 10px !important;

    border: 1px solid rgba(255,255,255,.09) !important;

    background: rgba(255,255,255,.045) !important;

    color: rgba(255,255,255,.72) !important;

    font-family: inherit;
    font-size: .72rem !important;
    font-weight: 700 !important;

    cursor: pointer;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035) !important;

    transition:
      background .15s ease,
      border-color .15s ease,
      color .15s ease !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-close:hover,
  body.fixeo-gh-enabled .fixeo-gh-drawer-close:active {
    background: rgba(255,255,255,.085) !important;
    border-color: rgba(255,255,255,.15) !important;
    color: #fff !important;
    transform: none !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: rgba(255,255,255,.88);

    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-close-label {
    line-height: 1;
  }


  /*
   * The V4 accent line remains the visual entrance signal.
   * Keep it tighter now that the drawer has its own control bar.
   */
  body.fixeo-gh-enabled .fixeo-gh-drawer::before {
    margin-bottom: 4px !important;
  }

}


@media (max-width: 340px) {

  body.fixeo-gh-enabled .fixeo-gh-drawer-close {
    padding: 5px 8px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-close-label {
    display: none;
  }

  body.fixeo-gh-enabled .fixeo-gh-drawer-close-icon {
    width: 20px;
    height: 20px;
  }

}


@media (prefers-reduced-motion: reduce) {

  body.fixeo-gh-enabled .fixeo-gh-drawer-close {
    transition: none !important;
  }

}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL HEADER V5B.3
   PREMIUM MOBILE COMMAND BAR
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Canonical command bar ───────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    min-height: 62px !important;

    padding-left:
      calc(14px + env(safe-area-inset-left, 0px)) !important;

    padding-right:
      calc(14px + env(safe-area-inset-right, 0px)) !important;

    gap: 12px !important;

    background:
      linear-gradient(
        180deg,
        rgba(11,14,26,.975) 0%,
        rgba(10,13,24,.955) 100%
      ) !important;

    border-bottom:
      1px solid rgba(255,255,255,.065) !important;

    box-shadow:
      0 10px 34px rgba(0,0,0,.20),
      inset 0 1px 0 rgba(255,255,255,.025) !important;

    backdrop-filter:
      saturate(135%) blur(18px) !important;

    -webkit-backdrop-filter:
      saturate(135%) blur(18px) !important;
  }


  /* ── FIXEO identity ──────────────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-brand {
    gap: 8px !important;
  }

  body.fixeo-gh-enabled .fixeo-logo-img {
    display: block;

    width: auto !important;
    height: 27px !important;
    max-width: 112px;

    object-fit: contain;

    filter:
      drop-shadow(0 2px 8px rgba(225,48,108,.10));
  }


  /* ── Actions rail ────────────────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-actions {
    gap: 6px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-icon-btn,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    width: 39px !important;
    height: 39px !important;

    border-radius: 13px !important;

    border:
      1px solid rgba(255,255,255,.075) !important;

    background:
      rgba(255,255,255,.035) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 5px 14px rgba(0,0,0,.12) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
      background .15s ease,
      border-color .15s ease,
      transform .15s ease,
      box-shadow .15s ease !important;
  }


  /* ── RAFI — product intelligence control ─────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-search {
    background:
      linear-gradient(
        145deg,
        rgba(75,120,255,.095),
        rgba(75,120,255,.035)
      ) !important;

    border-color:
      rgba(105,145,255,.20) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 0 18px rgba(72,100,255,.055) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-search .fixeo-gh-icon {
    opacity: .90;
    filter:
      drop-shadow(0 0 5px rgba(110,155,255,.20));
  }


  /* ── Notifications — quiet by default ────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-notif {
    background:
      rgba(255,255,255,.032) !important;

    border-color:
      rgba(255,255,255,.07) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif .fixeo-gh-icon {
    opacity: .78;
    filter: none !important;
  }

  /*
   * Notification importance comes from the badge,
   * not from permanently glowing the bell.
   */
  body.fixeo-gh-enabled .fixeo-gh-badge:not(:empty) {
    box-shadow:
      0 0 0 2px rgba(11,14,26,.96),
      0 3px 10px rgba(225,48,108,.28) !important;
  }


  /* ── Account — premium but no longer dominant ────────────── */
  body.fixeo-gh-enabled .fixeo-gh-avatar {
    background:
      linear-gradient(
        145deg,
        rgba(225,48,108,.88),
        rgba(131,58,180,.82)
      ) !important;

    color: rgba(255,255,255,.96) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.13) !important;

    font-size: .84rem !important;
    font-weight: 800 !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-avatar--espace {
    background:
      linear-gradient(
        145deg,
        rgba(225,48,108,.90),
        rgba(131,58,180,.86)
      ) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.14),
      0 5px 15px rgba(131,58,180,.12) !important;

    font-size: .92rem !important;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-avatar-link:hover
  .fixeo-gh-avatar--espace,

  body.fixeo-gh-enabled
  .fixeo-gh-avatar-link:active
  .fixeo-gh-avatar--espace {
    transform: none !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 6px 18px rgba(131,58,180,.17) !important;
  }


  /* ── Menu — structural control ───────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-menu {
    background:
      rgba(255,255,255,.040) !important;

    border-color:
      rgba(255,255,255,.085) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-menu-line {
    width: 15px !important;
    height: 1.6px !important;

    background:
      rgba(255,255,255,.88) !important;
  }

  /*
   * Open state: subtle FIXEO signal.
   * The control remains structural, not a large glowing CTA.
   */
  body.fixeo-gh-enabled .fixeo-gh-menu.is-open {
    background:
      rgba(225,48,108,.075) !important;

    border-color:
      rgba(225,48,108,.18) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 0 18px rgba(225,48,108,.055) !important;
  }


  /* ── Unified interaction ─────────────────────────────────── */
  body.fixeo-gh-enabled .fixeo-gh-icon-btn:hover,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link:hover {
    background:
      rgba(255,255,255,.065) !important;

    border-color:
      rgba(255,255,255,.12) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-icon-btn:active,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link:active {
    transform: scale(.96);
  }

}


@media (max-width: 380px) {

  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    padding-left:
      calc(11px + env(safe-area-inset-left, 0px)) !important;

    padding-right:
      calc(11px + env(safe-area-inset-right, 0px)) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-actions {
    gap: 5px !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-icon-btn,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    width: 37px !important;
    height: 37px !important;
  }

  body.fixeo-gh-enabled .fixeo-logo-img {
    height: 25px !important;
  }

}


@media (prefers-reduced-motion: reduce) {

  body.fixeo-gh-enabled .fixeo-gh-icon-btn,
  body.fixeo-gh-enabled .fixeo-gh-avatar-link {
    transition: none !important;
  }

}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL HEADER V5B.5
   Account control visual hierarchy refinement
   ══════════════════════════════════════════════════════════════ */

@media (max-width:768px){

  body.fixeo-gh-enabled .fixeo-gh-avatar{
    background:
      linear-gradient(
        135deg,
        rgba(240,90,42,.92) 0%,
        rgba(225,48,108,.92) 48%,
        rgba(138,63,252,.90) 100%
      ) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 5px 16px rgba(225,48,108,.22) !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-avatar--espace{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 5px 16px rgba(225,48,108,.24),
      0 0 12px rgba(131,58,180,.12) !important;
  }

  body.fixeo-gh-enabled
  .fixeo-gh-avatar-link:hover
  .fixeo-gh-avatar--espace,
  body.fixeo-gh-enabled
  .fixeo-gh-avatar-link:active
  .fixeo-gh-avatar--espace{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 7px 20px rgba(225,48,108,.30),
      0 0 16px rgba(131,58,180,.17) !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL HEADER V5B — MOBILE STICKY LOCK
   Canonical mobile header remains visible while scrolling.
   Applies uniformly to navbar, site-header and synthetic hosts.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  body.fixeo-gh-enabled .navbar.fixeo-gh-host,
  body.fixeo-gh-enabled .site-header.fixeo-gh-shell,
  body.fixeo-gh-enabled .fixeo-gh-shell--synthetic {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;

    transform: none !important;
    translate: none !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    position: relative !important;
    top: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL MOBILE HEADER V5B — VIEWPORT LOCK
   Canonical mobile header remains visible during page scroll.
   The legacy host keeps the layout height; .fixeo-gh-mobile
   becomes viewport-fixed and independent from page header behavior.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Keep the original header host as a layout spacer */
  body.fixeo-gh-enabled .navbar.fixeo-gh-host,
  body.fixeo-gh-enabled .site-header.fixeo-gh-shell,
  body.fixeo-gh-enabled .fixeo-gh-shell--synthetic {
    position: relative !important;
    top: auto !important;

    min-height:
      calc(60px + env(safe-area-inset-top, 0px)) !important;

    z-index: auto !important;
  }

  /* Canonical FIXEO mobile header:
     permanently attached to the viewport */
  body.fixeo-gh-enabled .fixeo-gh-mobile {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    z-index: 1300 !important;

    transform: none !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;

    isolation: isolate;
  }

  /* Drawer / notification remain above the fixed header */
  body.fixeo-gh-enabled .fixeo-gh-drawer {
    z-index: 1350 !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-backdrop {
    z-index: 1340 !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-notif-panel {
    z-index: 1360 !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FIXEO GLOBAL MOBILE HEADER V5B.2
   FINAL FIXED LAYER CONTRACT
   Header always remains ABOVE scrolling page content.
   Page content can never paint over the canonical mobile header.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Canonical header becomes a true viewport layer ─────── */
  body.fixeo-gh-enabled .navbar.fixeo-gh-host,
  body.fixeo-gh-enabled .site-header.fixeo-gh-shell,
  body.fixeo-gh-enabled .fixeo-gh-shell--synthetic {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 2147483000 !important;

    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    overflow: visible !important;
    isolation: isolate !important;

    margin: 0 !important;
  }


  /* ── Keep page below the fixed header ───────────────────── */
  body.fixeo-gh-enabled {
    padding-top:
      calc(
        60px +
        env(safe-area-inset-top, 0px)
      ) !important;
  }


  /* ── Mobile bar always paints above page content ────────── */
  body.fixeo-gh-enabled .fixeo-gh-mobile {
    position: relative !important;
    z-index: 2 !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-mobile-bar {
    position: relative !important;
    z-index: 3 !important;

    background:
      linear-gradient(
        180deg,
        rgba(11, 15, 29, .985) 0%,
        rgba(11, 15, 29, .965) 100%
      ) !important;

    backdrop-filter: blur(20px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(145%) !important;

    box-shadow:
      0 1px 0 rgba(255,255,255,.06),
      0 14px 34px rgba(0,0,0,.22) !important;
  }


  /* ── Menu portal remains above the header/page when opened ─ */
  #fixeo-gh-menu-portal {
    position: relative !important;
    z-index: 2147483600 !important;
  }


  /* ── Drawer remains the absolute highest interactive layer ─ */
  body.fixeo-gh-enabled .fixeo-gh-drawer {
    z-index: 2147483640 !important;
  }

  body.fixeo-gh-enabled .fixeo-gh-backdrop {
    z-index: 2147483500 !important;
  }
}

/* Smart Navigation V1. Scoped to the existing shared drawer; no workspace layout changes. */
body.fixeo-smart-navigation #fixeo-gh-menu-portal{display:block!important;position:relative!important;z-index:2147483600!important}
#fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer{position:fixed!important;inset:12px 12px auto!important;margin:0 0 0 auto!important;width:min(1040px,calc(100% - 24px))!important;max-width:1040px!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box!important;padding:24px!important;border:1px solid #DEDCD5!important;border-radius:24px!important;background:#F7F7F5!important;color:#0B0B0C!important;box-shadow:0 28px 100px #0B0B0C30!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scroll-padding:80px 20px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease;z-index:2147483640!important;isolation:isolate;text-align:start;line-height:1.45}
#fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer::before{display:none!important}
#fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
body.fixeo-smart-navigation #fixeo-gh-menu-portal>.fixeo-gh-backdrop{display:block!important;position:fixed!important;inset:0!important;background:rgba(11,11,12,.38)!important;backdrop-filter:blur(5px);z-index:2147483500!important;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s}
body.fixeo-smart-navigation #fixeo-gh-menu-portal>.fixeo-gh-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}
#fixeo-navigation-drawer.sn-drawer *{box-sizing:border-box;min-width:0;-webkit-text-fill-color:currentColor!important;letter-spacing:normal;text-shadow:none}
#fixeo-navigation-drawer.sn-drawer :is(p,h2,small,strong,span,a,button){color:inherit!important}
#fixeo-navigation-drawer.sn-drawer :is(a,button,summary,select){font-family:inherit;font-size:1rem!important;line-height:1.45!important;min-height:44px!important;text-decoration:none!important;white-space:normal!important;touch-action:manipulation}
#fixeo-navigation-drawer.sn-drawer :is(a,button,summary,select):focus-visible{outline:3px solid #9C772D!important;outline-offset:3px!important}
#fixeo-navigation-drawer.sn-drawer .sn-top{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-24px;margin:-4px 0 24px;padding:4px 0 16px;background:#F7F7F5;z-index:5;border-bottom:1px solid #DAD9D2;gap:16px}
#fixeo-navigation-drawer.sn-drawer .sn-brand{display:flex;gap:10px;align-items:center;font-size:1.2rem;letter-spacing:.12em}
#fixeo-navigation-drawer.sn-drawer .sn-brand img{width:32px;height:32px;flex:none}
#fixeo-navigation-drawer.sn-drawer .sn-close{width:44px!important;height:44px!important;padding:10px!important;min-width:44px!important;border:1px solid #DAD9D2!important;background:#fff!important;display:flex!important;align-items:center;justify-content:center;border-radius:50%!important;cursor:pointer;flex:none}
#fixeo-navigation-drawer.sn-drawer .sn-close svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none}
#fixeo-navigation-drawer.sn-drawer .sn-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.8fr);gap:48px}
#fixeo-navigation-drawer.sn-drawer .sn-intro{display:flex;flex-direction:column;align-items:stretch}
#fixeo-navigation-drawer.sn-drawer .sn-eyebrow{font-size:.8rem;margin:0 0 12px;color:#57595C!important}
#fixeo-navigation-drawer.sn-drawer h2{font-size:clamp(1.65rem,3vw,2.5rem)!important;font-weight:650;letter-spacing:-.04em;line-height:1.12;margin:0 0 24px;max-width:12ch}
#fixeo-navigation-drawer.sn-drawer .sn-rafi{display:flex!important;align-items:center;justify-content:space-between;gap:14px;background:#0B0B0C!important;color:white!important;border:1px solid #0B0B0C!important;border-radius:14px!important;padding:16px!important;font-weight:650!important;box-shadow:none!important}
#fixeo-navigation-drawer.sn-drawer .sn-rafi span{color:inherit!important}
#fixeo-navigation-drawer.sn-drawer .sn-hint{font-size:1rem!important;color:#57595C!important;margin:12px 0 28px}
#fixeo-navigation-drawer.sn-drawer .sn-arrow{font-size:1.15rem;flex:none;transition:transform .15s;display:inline-block}
#fixeo-navigation-drawer.sn-drawer .sn-link{display:flex!important;align-items:center;justify-content:space-between;gap:12px!important;background:transparent!important;border:0!important;border-radius:8px!important;padding:10px 8px!important;margin:0!important;font-weight:500!important;box-shadow:none!important;width:100%;cursor:pointer;text-align:start}
#fixeo-navigation-drawer.sn-drawer .sn-link:hover{background:#ECEBE6!important}
#fixeo-navigation-drawer.sn-drawer .sn-link[aria-current=page]{background:#FBE8BD!important;font-weight:650!important}
#fixeo-navigation-drawer.sn-drawer .sn-link[aria-current=page] .sn-arrow{width:6px;height:6px;border-radius:50%;background:currentColor;font-size:0}
#fixeo-navigation-drawer.sn-drawer .sn-spaces>p,#fixeo-navigation-drawer.sn-drawer .sn-account>p{font-size:.85rem!important;color:#57595C!important;margin:0 0 8px}
#fixeo-navigation-drawer.sn-drawer .sn-spaces>div{display:flex;flex-wrap:wrap;border:1px solid #DAD9D2;border-radius:12px;overflow:hidden}
#fixeo-navigation-drawer.sn-drawer .sn-spaces a{flex:1;justify-content:center!important;font-size:.875rem!important;padding:10px 7px!important;border-radius:0!important;background:white!important}
#fixeo-navigation-drawer.sn-drawer .sn-spaces .sn-arrow{display:none}
#fixeo-navigation-drawer.sn-drawer .sn-account{border-top:1px solid #DAD9D2;padding-top:20px;margin-top:24px}
#fixeo-navigation-drawer.sn-drawer .sn-account small{display:block;color:#57595C!important;font-size:.875rem!important;margin-top:10px}
#fixeo-navigation-drawer.sn-drawer .sn-signout{background:none;border:0;text-align:start;text-decoration:underline!important;padding:8px;cursor:pointer}
#fixeo-navigation-drawer.sn-drawer .sn-universes{display:block!important;border:0!important;margin:0!important;padding:0!important;background:transparent!important;position:static!important;width:auto!important}
#fixeo-navigation-drawer.sn-drawer .sn-universe{border-bottom:1px solid #DAD9D2;background:transparent;border-radius:0;margin:0;padding:0}
#fixeo-navigation-drawer.sn-drawer .sn-universe:first-child{border-top:1px solid #DAD9D2}
#fixeo-navigation-drawer.sn-drawer .sn-universe>summary{display:flex;align-items:center;gap:16px;padding:17px 0!important;cursor:pointer;list-style:none;font-weight:500!important;border-radius:0!important;position:relative}
#fixeo-navigation-drawer.sn-drawer .sn-universe>summary::-webkit-details-marker{display:none}
#fixeo-navigation-drawer.sn-drawer .sn-universe>summary::after{display:none!important}
#fixeo-navigation-drawer.sn-drawer .sn-number{font-size:.75rem;font-variant-numeric:tabular-nums;color:#57595C!important;align-self:flex-start;padding-top:4px}
#fixeo-navigation-drawer.sn-drawer .sn-summary-copy{flex:1}
#fixeo-navigation-drawer.sn-drawer .sn-summary-copy strong{display:block;font-weight:600!important;font-size:1.125rem!important}
#fixeo-navigation-drawer.sn-drawer .sn-summary-copy small{display:block;font-size:.875rem!important;color:#57595C!important;margin-top:3px}
#fixeo-navigation-drawer.sn-drawer .sn-plus{font-size:1.5rem;font-weight:400;flex:none;transition:transform .15s}
#fixeo-navigation-drawer.sn-drawer details[open]>summary .sn-plus{transform:none}
#fixeo-navigation-drawer.sn-drawer .sn-destinations{padding:0 0 16px 28px}
#fixeo-navigation-drawer.sn-drawer .sn-future{padding:12px 8px;display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:1rem;color:#57595C!important}
#fixeo-navigation-drawer.sn-drawer .sn-future small{font-size:.75rem!important;border:1px solid #DAD9D2;padding:3px 7px;border-radius:6px;flex:none;max-width:45%}
#fixeo-navigation-drawer.sn-drawer .sn-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #DAD9D2;margin-top:24px;padding-top:16px}
#fixeo-navigation-drawer.sn-drawer .sn-language{display:flex;align-items:center;gap:14px;font-size:.875rem}
#fixeo-navigation-drawer.sn-drawer .sn-language select{width:auto;max-width:100%;padding:8px 28px 8px 12px;background:#fff;border:1px solid #DAD9D2;border-radius:10px;color:#0B0B0C;appearance:auto}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences{position:static!important;color:#0B0B0C!important;margin:0!important;background:transparent!important}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences summary{padding:10px 0!important}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences[open] label{position:static!important;display:flex!important;background:#fff!important;padding:10px;gap:10px}
body.fixeo-smart-navigation .sn-desktop-toggle{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:10px 14px;border:1px solid #DAD9D2;background:#F7F7F5;color:#0B0B0C;border-radius:12px;font:600 14px/1.4 inherit;cursor:pointer;flex:none}
body.fixeo-smart-navigation .sn-desktop-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
body.fixeo-smart-navigation .sn-desktop-toggle:focus-visible{outline:3px solid #9C772D;outline-offset:3px}
body.fixeo-smart-navigation .sn-header .ns-signature-links{display:none!important}
body.fixeo-smart-navigation .sn-header .nav-links{display:none!important}
body.fixeo-smart-navigation .sn-header .nav-actions{margin-inline-start:auto!important}
html[dir=rtl] #fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer{margin:0 auto 0 0!important}
html[dir=rtl] #fixeo-navigation-drawer.sn-drawer .sn-arrow{transform:scaleX(-1)}
html[dir=rtl] #fixeo-navigation-drawer.sn-drawer .sn-destinations{padding:0 28px 16px 0}
@media(max-width:768px){
 #fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer{inset:0!important;margin:0!important;width:100%!important;max-width:100%!important;max-height:100svh!important;max-height:100dvh!important;padding:calc(12px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px))!important;border:0!important;border-radius:0!important}
 #fixeo-navigation-drawer.sn-drawer .sn-top{top:calc(-12px - env(safe-area-inset-top,0px));padding-top:calc(8px + env(safe-area-inset-top,0px));margin-bottom:18px;padding-bottom:10px}
 #fixeo-navigation-drawer.sn-drawer .sn-layout{display:flex;flex-direction:column;gap:24px}
 #fixeo-navigation-drawer.sn-drawer .sn-intro{display:contents}
 #fixeo-navigation-drawer.sn-drawer .sn-eyebrow,#fixeo-navigation-drawer.sn-drawer h2,#fixeo-navigation-drawer.sn-drawer .sn-hint{display:none}
 #fixeo-navigation-drawer.sn-drawer .sn-rafi{order:0;padding:14px 16px!important}
 #fixeo-navigation-drawer.sn-drawer .sn-spaces{order:1;margin-top:-8px}
 #fixeo-navigation-drawer.sn-drawer .sn-universes{order:2}
 #fixeo-navigation-drawer.sn-drawer .sn-account{order:3;display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;padding-top:16px}
 #fixeo-navigation-drawer.sn-drawer .sn-account>p{width:100%;margin:0}
 #fixeo-navigation-drawer.sn-drawer .sn-account a{flex:1;min-width:100px;padding:8px 0!important}
 #fixeo-navigation-drawer.sn-drawer .sn-account small{width:100%;margin:0}
 #fixeo-navigation-drawer.sn-drawer .sn-universe>summary{padding:13px 0!important;gap:12px}
 #fixeo-navigation-drawer.sn-drawer .sn-summary-copy strong{font-size:1.0625rem!important}
 #fixeo-navigation-drawer.sn-drawer .sn-summary-copy small{display:none}
 #fixeo-navigation-drawer.sn-drawer .sn-destinations{padding-inline:0!important}
 #fixeo-navigation-drawer.sn-drawer .sn-settings{margin-top:16px}
 #fixeo-navigation-drawer.sn-drawer .sn-future{flex-wrap:wrap}
 #fixeo-navigation-drawer.sn-drawer .sn-language{flex-wrap:wrap}
 body.fixeo-smart-navigation .sn-desktop-toggle{display:none!important}
}
@media(prefers-reduced-motion:reduce){#fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer,#fixeo-navigation-drawer.sn-drawer *,body.fixeo-smart-navigation #fixeo-gh-menu-portal>.fixeo-gh-backdrop{transition:none!important;scroll-behavior:auto!important}}
html[data-fixeo-reduced-motion=true] #fixeo-navigation-drawer.sn-drawer *{transition:none!important}

#fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer::after{display:none!important}
#fixeo-navigation-drawer.sn-drawer .sn-close svg{display:block!important;opacity:1!important;visibility:visible!important}
#fixeo-navigation-drawer.sn-drawer .sn-settings>.sn-preferences-host{max-width:100%}

/* Keep reading order and visual order aligned, including enlarged text. */
#fixeo-navigation-drawer.sn-drawer .sn-layout{gap:24px 48px;align-items:start}
#fixeo-navigation-drawer.sn-drawer .sn-universes{grid-column:2;grid-row:1 / span 2}
#fixeo-navigation-drawer.sn-drawer .sn-account{grid-column:1;grid-row:2;width:100%;margin-top:0}
#fixeo-navigation-drawer.sn-drawer .sn-spaces a{flex:1 1 5rem!important;overflow-wrap:normal!important;word-break:normal!important}
#fixeo-navigation-drawer.sn-drawer .sn-preferences-host{flex:0 1 auto;min-width:0!important}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences{width:auto!important;min-width:0!important;max-width:100%!important}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences summary{position:static!important;min-width:0!important;width:auto!important;max-width:100%!important;white-space:normal!important;padding:10px 0!important}
#fixeo-navigation-drawer.sn-drawer .ns-interface-preferences[open]>label{position:static!important;inset:auto!important;min-width:0!important;width:100%!important;max-width:100%!important}
@media(max-width:768px){#fixeo-navigation-drawer.sn-drawer .sn-layout{align-items:stretch}}

/* Smart Navigation Final Polish: public navigation only, existing owner and routes retained. */
body.fixeo-smart-navigation .sn-header>.navbar-nav{display:none!important}
@media(min-width:769px){
 body.fixeo-smart-navigation .sn-header{gap:16px!important;min-height:68px!important;height:auto!important;padding-block:10px!important;align-items:center!important}
 body.fixeo-smart-navigation .sn-header>:is(.navbar-brand,.ns-brand){flex:none!important;margin:0!important}
 body.fixeo-smart-navigation .sn-header .nav-actions{display:flex!important;align-items:center!important;gap:10px!important;flex:none!important;min-width:0!important}
 body.fixeo-smart-navigation .sn-header .nav-actions>:is(a,button,select,.m1-language,.nav-has-dropdown){flex:none!important}
 body.fixeo-smart-navigation .sn-header .nav-actions :is(a,button){white-space:nowrap!important}
 #fixeo-gh-menu-portal #fixeo-navigation-drawer.sn-drawer{display:flex!important;flex-direction:column;overflow:hidden!important}
 #fixeo-navigation-drawer.sn-drawer .sn-top{position:relative;top:auto;flex:none;margin-top:0;margin-bottom:20px}
 #fixeo-navigation-drawer.sn-drawer .sn-layout{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding:12px;gap:32px;padding:4px 8px 8px 4px;align-items:start}
 #fixeo-navigation-drawer.sn-drawer .sn-overview{grid-column:1;grid-row:1;align-self:start}
 #fixeo-navigation-drawer.sn-drawer .sn-overview-fits{position:sticky;top:4px}
 #fixeo-navigation-drawer.sn-drawer .sn-account{margin-top:24px}
 #fixeo-navigation-drawer.sn-drawer .sn-universes{grid-column:2;grid-row:1}
 #fixeo-navigation-drawer.sn-drawer .sn-settings{flex:none;margin-top:16px}
}
@media(min-width:769px) and (max-width:1000px){
 body.fixeo-smart-navigation .sn-header #register-btn{display:none!important}
 body.fixeo-smart-navigation .sn-header{padding-inline:16px!important;gap:12px!important}
}
#fixeo-navigation-drawer.sn-drawer .sn-summary-copy small{font-size:1rem!important;line-height:1.45;font-weight:450!important;color:#57595C!important}
#fixeo-navigation-drawer.sn-drawer .sn-universe>summary:hover,#fixeo-navigation-drawer.sn-drawer .sn-universe>summary:focus-visible{background:#ECEBE6}
#fixeo-navigation-drawer.sn-drawer .sn-universe[open]>summary .sn-summary-copy strong{font-weight:700!important}
#fixeo-navigation-drawer.sn-drawer .sn-plus{display:grid;place-items:center;width:24px;height:24px;font-size:1.4rem;line-height:1;color:#0B0B0C!important}
#fixeo-navigation-drawer.sn-drawer .sn-expand{font-size:.55rem}
#fixeo-navigation-drawer.sn-drawer .sn-collapse{display:none}
#fixeo-navigation-drawer.sn-drawer details[open]>summary .sn-expand{display:none}
#fixeo-navigation-drawer.sn-drawer details[open]>summary .sn-collapse{display:block}
#fixeo-navigation-drawer.sn-drawer :is(.sn-eyebrow,.sn-spaces>p,.sn-account>p,.sn-account small,.sn-spaces a,.sn-language){font-size:.9375rem!important}
@media(max-width:768px){#fixeo-navigation-drawer.sn-drawer .sn-overview{display:contents}}
@media(min-width:769px){
 #fixeo-navigation-drawer.sn-drawer h2{font-size:clamp(1.65rem,2.5vw,2rem)!important;margin-bottom:20px}
 #fixeo-navigation-drawer.sn-drawer .sn-hint{margin-bottom:12px}
 #fixeo-navigation-drawer.sn-drawer .sn-account{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;margin-top:16px;padding-top:12px}
 #fixeo-navigation-drawer.sn-drawer .sn-account>p,#fixeo-navigation-drawer.sn-drawer .sn-account>small{grid-column:1 / -1}
}
@media(min-width:769px){
 #fixeo-navigation-drawer.sn-drawer h2{max-width:none}
 #fixeo-navigation-drawer.sn-drawer .sn-account .sn-arrow{display:none}
}


/* ================================================================
   FIXEO V17 — AUTH GLOBAL CSS (css/auth-global.css)
   Styles pour le user-box dans #auth-container
   + Renforcement des règles data-auth
   ================================================================ */

/* ── USER BOX (dans #auth-container) ────────────────────────── */
.fixeo-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixeo-avatar {
  width: 36px;
  height: 36px;
  background: var(--grad-primary, linear-gradient(135deg, #E1306C, #833AB4));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.fixeo-user-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
}

.fixeo-user-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.fixeo-user-role {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.fixeo-logout-btn {
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.30);
  color: rgba(255, 255, 255, 0.80);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.fixeo-logout-btn:hover {
  background: rgba(225, 48, 108, 0.25);
  border-color: rgba(225, 48, 108, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

/* ── RENFORCEMENT RÈGLES data-auth ───────────────────────────── */
/*
   Ces règles garantissent que la visibilité est correcte
   même si header-unified.css n'est pas encore chargé.
*/
[data-auth="logged-in"] { display: none !important; }
[data-auth="admin"]     { display: none !important; }

body.is-logged-in [data-auth="logged-in"] { display: flex   !important; }
body.is-logged-in [data-auth="guest"]     { display: none   !important; }
body.is-admin     [data-auth="admin"]     { display: flex   !important; }

/* Liens et boutons */
body.is-logged-in a[data-auth="logged-in"],
body.is-logged-in button[data-auth="logged-in"] {
  display: inline-flex !important;
}
body.is-admin a[data-auth="admin"],
body.is-admin button[data-auth="admin"] {
  display: inline-flex !important;
}

/* Mobile */
body.is-logged-in .mobile-nav a[data-auth="logged-in"] { display: flex !important; }
body.is-admin     .mobile-nav a[data-auth="admin"]      { display: flex !important; }

/* Divs (nav-has-dropdown) */
body.is-logged-in div[data-auth="logged-in"] { display: flex !important; }

/* ================================================================
   FIXEO V18 — GLOBAL AUTH HEADER IDs (brief v18)
   Styles pour : #header-avatar, #header-username,
                 #logout-btn, #login-btn, #register-btn
   + sidebar-mini-profile dynamique
   ================================================================ */

/* ── AVATAR HEADER ───────────────────────────────────────────────── */
#header-avatar {
  width: 35px;
  height: 35px;
  background: var(--grad-primary, linear-gradient(135deg, #E1306C, #833AB4));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.18s ease;
}

#header-avatar:hover {
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.35);
  transform: scale(1.06);
}

#header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── NOM UTILISATEUR HEADER ──────────────────────────────────────── */
#header-username {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ── BOUTON DÉCONNEXION ──────────────────────────────────────────── */
#logout-btn {
  transition: background 0.22s ease, color 0.22s ease;
}

/* ── BOUTONS CONNEXION/INSCRIPTION ───────────────────────────────── */
/* La visibilité est gérée par JS + data-auth, mais on ajoute
   une sécurité CSS pour les pages qui n'ont pas encore le body class */
body.is-logged-in #login-btn,
body.is-logged-in #register-btn {
  display: none !important;
}

body:not(.is-logged-in) #logout-btn {
  display: none !important;
}

/* ── SIDEBAR MINI-PROFILE DYNAMIQUE ─────────────────────────────── */
#sidebar-avatar {
  transition: box-shadow 0.22s ease;
}

#sidebar-avatar:hover {
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.30);
}

#sidebar-username {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

#sidebar-role {
  font-size: 0.72rem;
  color: var(--accent2, rgba(255, 255, 255, 0.55));
}

/* ── .dashboard-header (si utilisé en remplacement du brief) ────── */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.dashboard-header .avatar {
  width: 35px;
  height: 35px;
  background: #0070ba;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

/* ================================================================
   FIXEO V18 — GLOBAL AUTH HEADER (brief v18)
   Styles pour #global-avatar, #global-username, #global-role
   + .header-global + .avatar (compatibilité brief)
   ================================================================ */

/* ── AVATAR GLOBAL (id="global-avatar") ─────────────────────────── */
#global-avatar {
  width: 35px;
  height: 35px;
  background: var(--grad-primary, linear-gradient(135deg, #E1306C, #833AB4));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.18s ease;
}

#global-avatar:hover {
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.35);
  transform: scale(1.06);
}

#global-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── NOM GLOBAL (id="global-username") ───────────────────────────── */
#global-username {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── RÔLE GLOBAL (id="global-role") ─────────────────────────────── */
#global-role {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.50);
  display: block;
}

/* ── CLASSE .avatar (brief v18) ─────────────────────────────────── */
.avatar {
  width: 35px;
  height: 35px;
  background: #0070ba;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

/* ── CLASSE .header-global (brief v18) ──────────────────────────── */
.header-global {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── CSS body classes pour global-username / global-avatar ──────── */
body.is-logged-in #global-username {
  display: inline-block !important;
}

body:not(.is-logged-in) #global-role {
  display: none !important;
}
