/* --- MyBrain Design System v2.0 : Ultra-Modern Dark Theme, Glassmorphism & Micro-animations --- */
:root {
  --bg-main: #060911;
  --bg-surface: #0c1120;
  --bg-card: rgba(16, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 36, 64, 0.88);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.55);
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.3);
  --accent: #14b8a6;
  --accent-glow: rgba(20, 184, 166, 0.3);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 24px var(--primary-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(236, 72, 153, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 280px;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.brand-icon img {
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-status.online {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.06) 100%);
  color: #fff;
  border-color: var(--border-active);
  box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.2);
}

.nav-item .icon {
  font-size: 1.25rem;
}

.pill-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.pill-badge.pill-pink {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.alert-counter {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: white;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.alert-counter.show {
  opacity: 1;
  transform: scale(1);
}

.alert-counter.warning { background: var(--warning); color: #000; }
.alert-counter.info { background: var(--info); color: #000; }

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  box-shadow: 0 0 12px var(--primary-glow);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}

.user-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* --- Main Canvas --- */
.main-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.topbar {
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(8, 12, 22, 0.7);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.topbar-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-actions,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-stat,
.quick-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar-stat.highlight,
.quick-stat-pill.pink {
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

.topbar-clock,
.clock-display {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--primary-light);
  white-space: nowrap;
}

.btn-icon,
.btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.btn-icon:hover,
.btn-refresh:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.content-container {
  padding: 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTION CUISINE & 700 RECETTES
   ========================================================================== */
.cuisine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  width: 400px;
  transition: border-color 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-bar input {
  background: transparent;
  border: none;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.diet-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
}

.pill.strict {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.pill.highlight {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.4);
  color: #5eead4;
}

.collection-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.col-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.col-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.col-tab.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: white;
  box-shadow: var(--glow-primary);
}

.col-count {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.protein-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-subfilter {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-subfilter:hover { background: rgba(255, 255, 255, 0.08); }
.btn-subfilter.active {
  background: white;
  color: black;
  border-color: white;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.recipe-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}

.recipe-img-box {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.recipe-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-img-box img {
  transform: scale(1.05);
}

.recipe-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  border: 1px solid var(--border-glass);
}

.recipe-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.recipe-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.recipe-macros-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.macro-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.recipe-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-cook-store {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.12);
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-cook-store:hover {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 15px var(--accent-glow);
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.btn-page {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
  background: var(--primary);
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-weight: 700;
  color: var(--text-muted);
}


/* ==========================================================================
   SECTION FRIGO & RESTES
   ========================================================================== */
.frigo-hero-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(16, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.frigo-hero-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #bae6fd;
  margin-bottom: 6px;
}

.frigo-hero-content p {
  color: var(--text-muted);
  max-width: 600px;
}

.frigo-stat-bubble {
  background: rgba(10, 15, 28, 0.85);
  border: 2px solid var(--info);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.bubble-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.bubble-txt {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--info);
  font-weight: 700;
  margin-top: 4px;
}

.add-leftover-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.add-leftover-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.leftover-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.leftover-form input[type="text"] {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  outline: none;
}

.qty-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qty-select-wrapper label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.qty-select-wrapper input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 12px;
  width: 90px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  text-align: center;
}

.btn-primary {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--glow-primary);
}

.fridge-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.fridge-meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.fridge-meal-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.fridge-meal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.meal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.portions-badge {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.portions-badge.empty {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.meal-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.meal-actions-row {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.btn-eat-portion {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-eat-portion:hover {
  background: var(--info);
  color: black;
}


/* ==========================================================================
   SECTION STOCK & SCANNER
   ========================================================================== */
.stock-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.stock-stats-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-box {
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.stat-box.green { border-left: 4px solid var(--success); }
.stat-box.orange { border-left: 4px solid var(--warning); }
.stat-box.red { border-left: 4px solid var(--danger); }

.stat-box .num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.stat-box .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-scan-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.2s ease;
}

.btn-scan-ticket:hover {
  transform: translateY(-2px);
}

.shopping-list-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.shopping-items-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-tag {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.custom-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
}

.filter-pills-bar {
  display: flex;
  gap: 8px;
}

.pill-filter {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pill-filter.active { background: white; color: black; }
.pill-filter.danger.active { background: var(--danger); color: white; }
.pill-filter.warning.active { background: var(--warning); color: black; }
.pill-filter.success.active { background: var(--success); color: white; }

.stock-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.stock-table th {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.stock-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.badge-alert {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-alert.vert { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-alert.orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-alert.rouge { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn-qty:hover { background: var(--primary); }


/* ==========================================================================
   SECTION ENTRETIEN NISRINE (TIMERS)
   ========================================================================== */
.timers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.timer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.timer-card.urgent {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.timer-card.warning {
  border-color: rgba(245, 158, 11, 0.6);
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.timer-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.timer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.timer-badge.ok { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.timer-badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.timer-badge.urgent { background: rgba(239, 68, 68, 0.2); color: #f87171; animation: pulseBadge 1.5s infinite; }

.countdown-digits {
  font-family: monospace;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  margin: 14px 0;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn-reset-task {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-task:hover {
  background: var(--primary);
}


/* ==========================================================================
   SECTION CYCLE 3D & TRANSITION PILULE J-20
   ========================================================================== */
.pill-transition-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(16, 23, 42, 0.85) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.15);
}

.pill-header-row {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}

.pill-badge-giant {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #090d16;
  border: 3px solid var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--secondary-glow);
  flex-shrink: 0;
}

.days-big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.days-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}

.pill-info-col h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbcfe8;
  margin-bottom: 6px;
}

.pill-info-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.pill-action-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.today-focus-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.btn-pill-step {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill-step:hover {
  filter: brightness(1.2);
}

.pill-advice-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.95rem;
  border-left: 4px solid var(--secondary);
  line-height: 1.45;
}

.cycle-3d-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  margin-bottom: 36px;
}

.canvas-3d-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.three-viewport {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, #11172a 0%, #060911 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.three-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.three-state-desc {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--primary-light);
  margin-top: 12px;
  text-align: center;
}

.cycle-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cycle-wheel-mini {
  margin: 16px 0;
}

.day-center-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #090d16;
  border: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--primary-glow);
}

.d-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }
.d-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.d-phase { font-size: 0.75rem; color: var(--primary-light); font-weight: 700; }

.cycle-slider-box {
  width: 100%;
  margin: 16px 0;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.phase-selector-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-phase-select {
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-phase-select.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-light);
}

.tips-master-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.tips-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.tips-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tip-filter {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-tip-filter.active { background: white; color: black; }

.tips-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tip-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}


/* ==========================================================================
   SECTION WORKOUTS
   ========================================================================== */
.workout-profiles-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.athlete-card {
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.athlete-card.active {
  border-color: var(--border-active);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 23, 42, 0.8));
  box-shadow: var(--shadow-lg);
}

.ath-avatar {
  font-size: 2.6rem;
}

.ath-info strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: block;
}

.ath-badge {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
}

.ath-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.workout-timer-strip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.big-chrono {
  font-family: monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.timer-controls {
  display: flex;
  gap: 10px;
}

.btn-chrono {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn-chrono:hover { background: var(--primary); }

.sessions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.session-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.session-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.session-block-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.session-block-duration {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.exercise-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.ex-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
}

.ex-title-flex {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ex-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(14px);
}

.modal-content,
.modal-card {
  position: relative;
  background: #0f172a !important;
  border: 1px solid rgba(99, 102, 241, 0.5) !important;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 94%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(99, 102, 241, 0.25);
  z-index: 110;
  color: #fff;
}

.scan-modal-box { max-width: 580px; }

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.scan-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 16px;
  resize: vertical;
}

.scan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.btn-close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.scan-results {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.9rem;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .cycle-3d-layout {
    grid-template-columns: 1fr;
  }
  .workout-profiles-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
  }
  .topbar {
    padding: 14px 20px;
  }
  .content-container {
    padding: 16px;
  }
}


/* ==========================================================================
   MYBRAIN v2.5 ENHANCEMENTS : STOCK CRUD, 3D MANNEQUIN, TV 55", CANDLE
   ========================================================================== */

/* Nav Intimacy Button */
.nav-item.nav-intimacy {
  border-left: 3px solid #e11d48;
}
.nav-item.nav-intimacy.active {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.22) 0%, rgba(225, 29, 72, 0.05) 100%);
  color: #fda4af;
}
.nav-badge.tv-badge {
  background: rgba(225, 29, 72, 0.25);
  color: #f43f5e;
  border: 1px solid rgba(225, 29, 72, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Period Declaration Card */
.period-declaration-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(30, 27, 46, 0.7) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.period-decl-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.period-calendar-icon {
  font-size: 2.4rem;
  background: rgba(225, 29, 72, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 29, 72, 0.4);
}
.period-decl-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.date-input-group label {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.period-countdown-badge {
  background: rgba(225, 29, 72, 0.25);
  border: 1px solid #f43f5e;
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}
.period-countdown-badge .p-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fda4af;
  line-height: 1;
}
.period-countdown-badge .p-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Stock CRUD Enhancements */
.btn-add-stock-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: var(--transition-fast);
}
.btn-add-stock-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.stock-form-modal {
  max-width: 650px;
  width: 90%;
}
.stock-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.stock-form-grid .full-width {
  grid-column: span 2;
}
.stock-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-form-grid label {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.stock-form-grid input[type="text"],
.stock-form-grid input[type="number"],
.stock-form-grid select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--danger);
  font-weight: 600;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.stock-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-action-edit, .btn-action-delete {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.btn-action-edit:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary-light);
}
.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--danger);
  color: var(--danger);
}

/* Entretien Nisrine : Bouton Reset All */
.entretien-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--bg-glass);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}
.btn-reset-all {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition-fast);
}
.btn-reset-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Mannequin 3D d'Exercice */
.mannequin-showcase-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-glass);
}
.mannequin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.mannequin-exercise-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-ex-demo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.btn-ex-demo.active, .btn-ex-demo:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary-light);
  color: #fff;
  font-weight: 600;
}
.mannequin-viewport {
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at center, rgba(30, 34, 54, 0.6) 0%, rgba(12, 14, 24, 0.95) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.mannequin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

/* Astuce Detail Modal */
.tip-detail-modal {
  max-width: 580px;
  width: 90%;
}
.tip-modal-body {
  margin-top: 16px;
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   MODULE SOIRÉE INTIME & MODE TV 55 POUCES (LG WebOS)
   ========================================================================== */
.intimacy-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #4c0519 0%, #1f1020 50%, #0d0612 100%);
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 40px rgba(225, 29, 72, 0.2);
}
.intimacy-banner-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #ffe4e6;
  margin-bottom: 6px;
}
.intimacy-banner-text p {
  color: #fca5a5;
  font-size: 0.95rem;
}
.btn-tv-fullscreen {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  transition: var(--transition-fast);
}
.btn-tv-fullscreen:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 26px rgba(225, 29, 72, 0.6);
}

.intimacy-step-card {
  background: rgba(24, 18, 32, 0.7);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.step-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(225, 29, 72, 0.25);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.5);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.intimacy-step-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}
.game-instruction {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Preparation Columns */
.prep-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}
.prep-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}
.prep-col .col-header {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fda4af;
}
.checklist-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}
.check-item input[type="checkbox"] {
  accent-color: #e11d48;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Game Card Display (Format TV) */
.game-actions-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.btn-game-action {
  flex: 1;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-game-action.truth {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}
.btn-game-action.dare {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
}
.btn-game-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.game-card-display {
  background: linear-gradient(145deg, #1c1426 0%, #0c0812 100%);
  border: 2px solid rgba(225, 29, 72, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: var(--transition-normal);
}
.card-prompt-type {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fda4af;
  margin-bottom: 16px;
}
.card-prompt-text {
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  max-width: 800px;
}

/* Kamasutra Grid */
.kamasutra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.kama-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
}
.kama-card:hover {
  border-color: rgba(225, 29, 72, 0.6);
  background: rgba(225, 29, 72, 0.05);
  transform: translateY(-3px);
}
.kama-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.kama-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffe4e6;
}
.kama-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.kama-badge {
  background: rgba(225, 29, 72, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}
.kama-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
}
.kama-meta-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
  color: #fda4af;
  margin-bottom: 10px;
}

/* Candle Overlay Mode */
.candle-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #080306;
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.candle-overlay.active {
  display: flex;
}
.btn-close-candle {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}
.candle-glow-center {
  position: relative;
  width: 80px;
  height: 200px;
  margin-bottom: 30px;
}
.candle-body {
  width: 60px;
  height: 140px;
  background: linear-gradient(to right, #e2e8f0, #cbd5e1);
  border-radius: 8px 8px 4px 4px;
  position: absolute;
  bottom: 0;
  left: 10px;
  box-shadow: 0 0 30px rgba(251, 146, 60, 0.4);
}
.candle-wick {
  width: 4px;
  height: 16px;
  background: #334155;
  position: absolute;
  top: 48px;
  left: 38px;
}
.candle-flame {
  width: 28px;
  height: 50px;
  background: radial-gradient(ellipse at bottom, #fef08a 0%, #f97316 60%, transparent 90%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  position: absolute;
  top: 10px;
  left: 26px;
  box-shadow: 0 0 50px #fb923c, 0 0 100px #ea580c;
  animation: flicker 1.8s infinite ease-in-out alternate;
}
@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
  50% { transform: scale(1.08) rotate(1deg); opacity: 1; filter: drop-shadow(0 0 18px #f59e0b); }
  100% { transform: scale(0.96) rotate(-2deg); opacity: 0.9; }
}
.candle-message h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fed7aa;
  margin-bottom: 12px;
}
.candle-message p {
  font-size: 1.2rem;
  color: #fdba74;
  max-width: 600px;
}

/* TV MODE ACTIVE CLASSE */
body.tv-mode-active {
  font-size: 120%;
}
body.tv-mode-active .sidebar {
  display: none;
}
body.tv-mode-active .app-layout {
  grid-template-columns: 1fr;
}
body.tv-mode-active .game-card-display .card-prompt-text {
  font-size: 2.2rem;
}
body.tv-mode-active .btn-game-action {
  font-size: 1.4rem;
  padding: 24px;
}


/* ==========================================================================
   MYBRAIN v2.6 : FERTILITY GAUGE, WORKOUT LIVE PLAYER, ANATOMY LABELS
   ========================================================================== */

/* Profil Nisrine & Sayfoouu */
.couple-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
.couple-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 1px;
}
.couple-info {
  display: flex;
  flex-direction: column;
}
.couple-info strong {
  font-size: 0.88rem;
  color: #fff;
}
.couple-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Bandeau Statut Fertilité & Ovulation */
.fertility-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(30, 27, 46, 0.8) 100%);
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.2);
  transition: var(--transition-normal);
}
.fertility-status-card.ovulation-active {
  border-color: #f43f5e;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(67, 18, 40, 0.85) 100%);
  animation: pulse-border 2.5s infinite ease-in-out;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 25px rgba(244, 63, 94, 0.3); }
  50% { box-shadow: 0 0 45px rgba(244, 63, 94, 0.6); }
}
.fertility-icon {
  font-size: 2.8rem;
  background: rgba(236, 72, 153, 0.2);
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fertility-details {
  flex: 1;
}
.fertility-badge {
  display: inline-block;
  background: #f43f5e;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.fertility-details h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}
.fertility-details p {
  font-size: 0.9rem;
  color: #fda4af;
  margin-bottom: 10px;
}
.fertility-markers {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.fertility-markers strong {
  color: #fff;
}
.fertility-gauge-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 18px;
  padding: 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}
.fertility-gauge-box .gauge-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #f43f5e;
  line-height: 1;
}
.fertility-gauge-box .gauge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Légendes Anatomiques Claires sur le Viewport 3D */
.three-viewport {
  position: relative;
}
.anatomy-overlay-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.anat-tag {
  position: absolute;
  background: rgba(18, 20, 32, 0.85);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #fed7aa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.anat-tag.tag-uterus { top: 28%; left: 45%; transform: translate(-50%, -50%); }
.anat-tag.tag-tube-left { top: 18%; left: 16%; }
.anat-tag.tag-tube-right { top: 18%; right: 16%; }
.anat-tag.tag-ovary-right { top: 48%; right: 12%; border-color: #facc15; color: #fef08a; }
.anat-tag.tag-cervix { bottom: 18%; left: 45%; transform: translate(-50%, 0); }

/* Bouton Lancer la Séance sur les Cartes de Workout */
.btn-start-session-now {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition-fast);
}
.btn-start-session-now:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Modale Lecteur d'Entraînement en Direct (Workout Player) */
.workout-player-box {
  max-width: 900px;
  width: 92%;
  background: linear-gradient(145deg, #161826 0%, #0e101a 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.player-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.player-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-top: 4px;
}
.player-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  transition: width 0.3s ease;
}
.player-exercise-counter {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.player-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.player-ex-info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}
.player-ex-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.player-chrono-circle {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 3px solid #6366f1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}
.player-chrono-circle.rest-phase {
  border-color: #10b981;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}
.player-timer-digits {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.player-timer-phase {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a5b4fc;
  margin-top: 6px;
}
.player-coach-cue {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #ec4899;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #fce7f3;
}
.player-mannequin-viewport {
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at center, rgba(30, 34, 54, 0.7) 0%, rgba(12, 14, 24, 0.95) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.player-controls-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}


/* ==========================================================================
   MYBRAIN v3.0 : TYPOGRAPHY, REDESIGNED CUISINE HUB, DICES & 3D KAMASUTRA
   ========================================================================== */

/* TYPOGRAPHIE & LISIBILITÉ ULTRA-PRO */
:root {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, .section-title, .kama-title, .recipe-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   HUB CUISINE ENTIÈREMENT RÉORGANISÉ (ÉPURÉ, HORIZONTAL & INTUITIF)
   ========================================================================== */

.cuisine-hero-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(145deg, rgba(26, 29, 45, 0.7) 0%, rgba(15, 17, 28, 0.85) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.cuisine-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.cuisine-search-box {
  flex: 1;
  position: relative;
  min-width: 280px;
}

.cuisine-search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px 14px 44px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.cuisine-search-box input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.cuisine-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.cuisine-diet-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.diet-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.diet-pill.green {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
}

.diet-pill.purple {
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
}

/* Grille Horizontale des 8 Collections */
.collections-grid-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collections-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  font-weight: 700;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
}

.col-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.col-card-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.col-card-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(236, 72, 153, 0.2) 100%);
  border-color: #818cf8;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.col-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.col-card-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.col-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.col-card-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.col-card-btn.active .col-card-badge {
  background: #6366f1;
  color: #fff;
}

/* Filtre Protéines en Barre Horizontale Dédiée */
.protein-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.protein-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.protein-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-protein-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-protein-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-protein-pill.active {
  background: #f43f5e;
  border-color: #fb7185;
  color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   JEU DES DÉS DU DÉSIR & GAGES COQUINS (MODE TV 55")
   ========================================================================== */

.dice-game-section {
  background: linear-gradient(135deg, rgba(30, 24, 48, 0.85) 0%, rgba(16, 14, 28, 0.95) 100%);
  border: 2px solid rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.dice-game-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.dice-game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.dice-turn-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-turn-pill {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-turn-pill.active {
  background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.5);
}

.dice-trio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 800px) {
  .dice-trio-container {
    grid-template-columns: 1fr;
  }
}

.die-card {
  background: rgba(18, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.die-card.rolling {
  animation: dice-shake 0.6s infinite ease-in-out;
  border-color: #ec4899;
}

@keyframes dice-shake {
  0% { transform: translate(1px, 1px) rotate(0deg) scale(1); }
  20% { transform: translate(-2px, -2px) rotate(-3deg) scale(1.04); }
  40% { transform: translate(-3px, 0px) rotate(3deg) scale(1.02); }
  60% { transform: translate(3px, 2px) rotate(0deg) scale(1.05); }
  80% { transform: translate(1px, -1px) rotate(2deg) scale(1.03); }
  100% { transform: translate(-1px, 1px) rotate(-1deg) scale(1); }
}

.die-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.die-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.die-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.die-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  min-height: 2.2rem;
}

.dice-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-roll-dice-giant {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 18px 36px;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.45);
  transition: var(--transition-fast);
}

.btn-roll-dice-giant:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.65);
  filter: brightness(1.1);
}

.dice-result-banner {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 1.15rem;
  color: #fed7aa;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.dice-result-banner.show {
  display: block;
}

/* ==========================================================================
   SIMULATEUR 3D DU KAMASUTRA (MANNEQUINS DE COUPLE EN MOUVEMENT)
   ========================================================================== */

.kamasutra-3d-section {
  background: linear-gradient(145deg, #131422 0%, #0d0e17 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.kama-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.kama-pos-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-kama-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-kama-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-kama-pill.active {
  background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
  border-color: #f43f5e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.kama-3d-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 950px) {
  .kama-3d-layout {
    grid-template-columns: 1fr;
  }
}

.kama-viewport-box {
  width: 100%;
  height: 420px;
  background: radial-gradient(circle at center, rgba(30, 26, 52, 0.8) 0%, rgba(10, 11, 18, 0.95) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.kama-viewport-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.kama-floating-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.kama-ctrl-group {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-kama-ctrl {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-kama-ctrl:hover {
  background: rgba(255, 255, 255, 0.15);
}

.kama-legend-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-sayfoouu {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-nisrine {
  color: #f43f5e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kama-details-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kama-details-badge {
  display: inline-block;
  background: rgba(236, 72, 153, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  width: fit-content;
}

.kama-details-title {
  font-size: 1.5rem;
  color: #fff;
}

.kama-details-subtitle {
  font-size: 0.9rem;
  color: #fda4af;
  font-weight: 600;
}

.kama-details-desc {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.kama-point-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #ec4899;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fed7aa;
}

.kama-point-box strong {
  color: #fff;
}

.kama-tips-box {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.kama-tips-box strong {
  color: #a5b4fc;
}


/* ==========================================================================
   MYBRAIN v3.1 : MODÈLES 3D HUMAINS RÉALISTES DU KAMASUTRA
   ========================================================================== */

.kama-real-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 950px) {
  .kama-real-layout {
    grid-template-columns: 1fr;
  }
}

.kama-real-img-container {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(236, 72, 153, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  background: #0d0e17;
}

.kama-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

.kama-real-img-container:hover .kama-real-img {
  transform: scale(1.02);
}

.kama-real-overlay-top {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.kama-real-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kama-real-tag.tag-pink {
  border-color: rgba(236, 72, 153, 0.5);
  color: #fda4af;
}

.kama-real-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-fast);
}

.kama-real-zoom-btn:hover {
  background: #ec4899;
  border-color: #f43f5e;
}

/* Vignette d'image dans les cartes de la grille Kamasutra */
.kama-card-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kama-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kama-card:hover .kama-card-thumb img {
  transform: scale(1.05);
}


/* ==========================================================================
   ENCYCLOPÉDIE KAMASUTRA (+105 POSITIONS DU MONDE)
   ========================================================================== */

.kama-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kama-search-box {
  flex: 1;
  position: relative;
  min-width: 280px;
}

.kama-search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 12px 18px 12px 42px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.kama-search-box input:focus {
  outline: none;
  border-color: #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
  background: rgba(0, 0, 0, 0.6);
}

.kama-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #fda4af;
  pointer-events: none;
}

.kama-count-pill {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f43f5e;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ==========================================================================
   MODULE GOOGLE SHEETS : TOPBAR & MODALE
   ========================================================================== */

.topbar-btn-sheets {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-btn-sheets:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.topbar-btn-sheets.synced {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.topbar-btn-sheets.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.topbar-btn-sheets.syncing {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

.topbar-btn-sheets .sheets-icon {
  font-size: 1rem;
}

.sheets-status-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.sheets-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.sheets-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.sheets-dot.disconnected {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.sheets-dot.syncing {
  background: #6366f1;
  box-shadow: 0 0 10px #6366f1;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.sheets-help-accordion summary::-webkit-details-marker {
  display: none;
}

/* ==========================================================================
   PERFORMANCES MODERNES & OPTIMISATION CORE WEB VITALS
   ========================================================================== */
.recipe-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.recipe-img-box img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* BANDEAU LISTE DES COURSES - DESIGN HAUTE LISIBILITÉ & ÉLÉGANCE */
.shopping-summary-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.shopping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 12px;
}

.shopping-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.shopping-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.shop-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f8fafc;
  transition: all 0.2s ease;
}

.shop-tag:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  background: rgba(40, 53, 76, 0.95);
}

.shop-tag.tag-rouge {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.shop-tag.tag-rouge:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* TABLEAU DES STOCKS ULTRA ERGONOMIQUE & LISIBLE */
.table-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.styled-table thead tr {
  background: rgba(30, 41, 59, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.styled-table th {
  padding: 14px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

.styled-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.styled-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.styled-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.styled-table td {
  padding: 13px 16px;
  vertical-align: middle;
}

/* BADGES D'ÉTAT NEON */
.badge-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-alert.vert {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-alert.orange {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-alert.rouge {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  animation: pulse-danger 2s infinite ease-in-out;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ACTIONS DE LIGNE */
.stock-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action-edit, .btn-action-delete {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-action-edit:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  transform: scale(1.08);
}

/* ==========================================================================
   SÉLECTEUR DE PORTIONS DYNAMIQUE & ÉTAPES PAS-À-PAS
   ========================================================================== */
.servings-selector-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.servings-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.servings-pills-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-serving-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-serving-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.btn-serving-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  transform: scale(1.04);
}

.ingredients-styled-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.ingredients-styled-list li {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ing-scaled-qty {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.instructions-styled-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instructions-styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: background 0.2s ease;
}

.instructions-styled-list li:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   BOUTON & MODALE D'IMPORTATION DE RECETTES VIDÉO (TIKTOK / INSTAGRAM)
   ========================================================================== */
.btn-import-video-recipe {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: #fef08a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-import-video-recipe:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.45) 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.btn-icon-sparkle {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(254, 240, 138, 0.8));
  animation: pulse-sparkle 2s infinite ease-in-out;
}

@keyframes pulse-sparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.import-recipe-modal-content {
  max-width: 780px !important;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
}

.import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

/* ==========================================================================
   MODULE 3D SPECTACULAIRE : ACTION OU VÉRITÉ 3D & ZAPPING ÉLÉGANT
   ========================================================================== */
.intimacy-3d-stage {
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0.95) 75%), #090d16 !important;
  border: 1px solid rgba(236, 72, 153, 0.4) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 35px rgba(236, 72, 153, 0.2);
  padding: 30px !important;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

.intimacy-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.deck-mode-selector {
  display: flex;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  gap: 6px;
}

.btn-deck-mode {
  background: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-deck-mode small {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.btn-deck-mode.active {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-deck-mode[data-mode="dare"].active {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ARÈNE DU JEU AVEC CARTE 3D & BOUTONS FLÉCHÉS ZAP */
.card-3d-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 10px 0 28px 0;
  position: relative;
}

/* Boutons Zapper 3D Latéraux */
.btn-zap-3d {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  min-width: 90px;
}

.btn-zap-3d .zap-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.btn-zap-3d:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #38bdf8;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-zap-3d:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Le Wrapper de la Carte 3D */
.card-3d-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 680px;
  min-height: 310px;
  display: flex;
}

.card-3d {
  width: 100%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 35px 65px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(236, 72, 153, 0.35);
}

/* Animations de transition de zapping */
.card-3d.zap-left {
  animation: zapSlideLeft 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-3d.zap-right {
  animation: zapSlideRight 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes zapSlideLeft {
  0% { opacity: 0; transform: translateX(60px) rotateY(-18deg) scale(0.92); }
  100% { opacity: 1; transform: translateX(0) rotateY(0deg) scale(1); }
}

@keyframes zapSlideRight {
  0% { opacity: 0; transform: translateX(-60px) rotateY(18deg) scale(0.92); }
  100% { opacity: 1; transform: translateX(0) rotateY(0deg) scale(1); }
}

.card-3d-face {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.card-glass-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.card-category-chip {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-index-counter {
  font-family: monospace;
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-illustration-icon {
  font-size: 2.8rem;
  text-align: center;
  margin: 6px 0 12px 0;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-core-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  margin: 12px 0 24px 0;
  padding: 0 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.card-target-avatar {
  font-weight: 700;
  color: #fbcfe8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-vibe-tag {
  color: #fda4af;
  font-weight: 600;
  font-style: italic;
}

/* ==========================================================================
   BOUTONS 3D SPECTACULAIRES (EFFET NÉON, PROFONDEUR & ÉLÉVATION)
   ========================================================================== */
.intimacy-3d-controls-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.btn-3d-action {
  position: relative;
  border: none;
  border-radius: 20px;
  padding: 16px 22px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.btn-3d-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.btn-3d-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.btn-3d-emoji {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.btn-3d-labels strong {
  display: block;
  font-size: 1.02rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.btn-3d-labels small {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Style Bouton Vérité 3D (Indigo & Violet Électrique) */
.btn-3d-truth {
  background: linear-gradient(145deg, #6366f1 0%, #4338ca 100%);
  box-shadow: 0 10px 0 #312e81, 0 14px 25px rgba(99, 102, 241, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-3d-truth:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 #312e81, 0 20px 35px rgba(99, 102, 241, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-3d-truth:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 #312e81, 0 6px 12px rgba(99, 102, 241, 0.4);
}

/* Style Bouton Gage 3D (Rose Fluo & Carmin Sensuel) */
.btn-3d-dare {
  background: linear-gradient(145deg, #f43f5e 0%, #be123c 100%);
  box-shadow: 0 10px 0 #881337, 0 14px 25px rgba(244, 63, 94, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-3d-dare:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 #881337, 0 20px 35px rgba(244, 63, 94, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-3d-dare:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 #881337, 0 6px 12px rgba(244, 63, 94, 0.4);
}

/* Style Bouton Aléatoire 3D (Ambre & Or Royal) */
.btn-3d-random {
  background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 0 #78350f, 0 14px 25px rgba(245, 158, 11, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-3d-random:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 #78350f, 0 20px 35px rgba(245, 158, 11, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-3d-random:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 #78350f, 0 6px 12px rgba(245, 158, 11, 0.35);
}

.tv-keyboard-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 18px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   LES DÉS DU DÉSIR 3D HAUTE DÉFINITION & ARÈNE THREE.JS WEBGL
   ========================================================================== */
.dice-game-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0.96) 75%), #060913;
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-xl, 24px);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 45px rgba(236, 72, 153, 0.18);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.dice-game-section.theme-cyber {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.18) 0%, rgba(10, 15, 30, 0.97) 75%), #030712;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(6, 182, 212, 0.25);
}

.dice-game-section.theme-diamond {
  background: radial-gradient(circle at 50% 0%, rgba(234, 179, 8, 0.18) 0%, rgba(12, 12, 18, 0.98) 75%), #050508;
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(234, 179, 8, 0.2);
}

.dice-game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}

.dice-header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .dice-header-controls {
    align-items: flex-start;
    width: 100%;
  }
}

.dice-turn-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.dice-settings-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dice-theme-selector {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.btn-dice-theme {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-dice-theme:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dice-theme.active {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

.theme-cyber .btn-dice-theme.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.theme-diamond .btn-dice-theme.active {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

.btn-dice-sound-toggle {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.btn-dice-sound-toggle:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: #ec4899;
}

/* ==========================================================================
   ARÈNE 3D WEBGL THREE.JS
   ========================================================================== */
.dice-3d-arena-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  background: radial-gradient(ellipse at 50% 60%, rgba(20, 24, 45, 0.95) 0%, rgba(6, 9, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .dice-3d-arena-wrapper {
    height: 330px;
  }
}

.dice-3d-canvas-container {
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
}

.dice-3d-canvas-container:active {
  cursor: grabbing;
}

.dice-3d-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.dice-3d-overlay-hints {
  position: absolute;
  top: 14px;
  left: 16px;
  pointer-events: none;
  z-index: 5;
}

.dice-3d-hint-tag {
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fda4af;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dice-3d-floating-actions {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.btn-dice-floating {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-dice-floating:hover {
  background: rgba(236, 72, 153, 0.35);
  border-color: #ec4899;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   LES 3 CARTES DU TRIO SYNCHRONISÉES AVEC LES DÉS 3D
   ========================================================================== */
.dice-trio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .dice-trio-container {
    grid-template-columns: 1fr;
  }
}

.die-card-3d-sync {
  position: relative;
  background: linear-gradient(145deg, rgba(26, 32, 53, 0.85) 0%, rgba(13, 18, 35, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

.die-card-3d-sync:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.die-card-3d-sync.rolling {
  animation: diePulseGlow 0.6s infinite alternate ease-in-out;
  border-color: #ec4899;
}

@keyframes diePulseGlow {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.03); filter: brightness(1.25); box-shadow: 0 0 25px rgba(236, 72, 153, 0.5); }
}

.die-card-badge-top {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fda4af;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.die-icon {
  font-size: 3rem;
  margin: 6px 0 10px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.die-card-3d-sync:hover .die-icon {
  transform: scale(1.18) rotate(6deg);
}

.die-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.die-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  min-height: 38px;
}

.die-reroll-hint {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.die-card-3d-sync:hover .die-reroll-hint {
  opacity: 1;
  background: #ec4899;
  color: #fff;
}

/* ==========================================================================
   BOUTON GÉANT DE LANCER & CHRONOMÈTRE SENSUEL
   ========================================================================== */
.dice-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.btn-roll-dice-giant {
  background: linear-gradient(145deg, #ec4899 0%, #be185d 100%);
  border: none;
  border-radius: 32px;
  padding: 18px 42px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 0 #831843, 0 20px 40px rgba(236, 72, 153, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.02em;
}

.theme-cyber .btn-roll-dice-giant {
  background: linear-gradient(145deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 12px 0 #1e3a8a, 0 20px 40px rgba(6, 182, 212, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.theme-diamond .btn-roll-dice-giant {
  background: linear-gradient(145deg, #facc15 0%, #ca8a04 100%);
  color: #000;
  box-shadow: 0 12px 0 #854d0e, 0 20px 40px rgba(250, 204, 21, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.btn-roll-dice-giant:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 0 #831843, 0 26px 50px rgba(236, 72, 153, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.theme-cyber .btn-roll-dice-giant:hover {
  box-shadow: 0 16px 0 #1e3a8a, 0 26px 50px rgba(6, 182, 212, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.theme-diamond .btn-roll-dice-giant:hover {
  box-shadow: 0 16px 0 #854d0e, 0 26px 50px rgba(250, 204, 21, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.btn-roll-dice-giant:active {
  transform: translateY(8px);
  box-shadow: 0 4px 0 #831843, 0 8px 20px rgba(236, 72, 153, 0.4);
}

.dice-key-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  letter-spacing: 0.05em;
}

/* Bandeau Résultat */
.dice-result-banner {
  display: none;
  width: 100%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%);
  border: 1px solid rgba(236, 72, 153, 0.5);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

.dice-result-banner.show {
  display: block;
}

.dice-result-content {
  font-size: 1.18rem;
  color: #f8fafc;
  line-height: 1.6;
  text-align: center;
}

/* Module Chronomètre Sensuel */
.dice-timer-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.dice-timer-display {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dice-timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 7;
}

.dice-timer-progress {
  fill: none;
  stroke: #ec4899;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s linear;
}

.dice-timer-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.dice-timer-controls {
  display: flex;
  gap: 10px;
}

.btn-timer-action {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-timer-action:hover {
  background: #ec4899;
  border-color: #ec4899;
  transform: scale(1.04);
}

/* Historique des Lancers */
.dice-history-drawer {
  width: 100%;
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 8px;
}

.dice-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.btn-history-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-history-clear:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.dice-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.dice-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.dice-history-item strong {
  color: #f8fafc;
}

.dice-history-empty {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  padding: 8px 0;
}

/* ==========================================================================
   MODULE 1 : AMBIANCE SENSORIELLE (SPOTIFY & MIXEUR SONORE)
   ========================================================================== */
.btn-sensor-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-sensor-toggle:hover,
.btn-sensor-toggle.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(99, 102, 241, 0.3));
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.35);
}

.sensor-ambiance-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 30, 0.95));
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

@media (max-width: 900px) {
  .sensor-ambiance-panel {
    grid-template-columns: 1fr;
  }
}

.sensor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.spotify-tabs-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-spot-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-spot-pill:hover,
.btn-spot-pill.active {
  background: #1db954;
  border-color: #1db954;
  color: #000;
  font-weight: 700;
}

.spotify-embed-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.soundscape-tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .soundscape-tracks-grid {
    grid-template-columns: 1fr;
  }
}

.soundscape-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-soundscape-toggle {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-soundscape-toggle.active {
  color: #38bdf8;
}

.btn-soundscape-toggle.active .snd-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.soundscape-vol {
  width: 100%;
  accent-color: #38bdf8;
  height: 4px;
  cursor: pointer;
}

/* ==========================================================================
   MODULE 2 : SYNERGIE CYCLE / LIBIDO & DÎNER ROMANTIQUE
   ========================================================================== */
.intimacy-synergy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 850px) {
  .intimacy-synergy-row {
    grid-template-columns: 1fr;
  }
}

.synergy-card {
  background: linear-gradient(145deg, rgba(20, 26, 48, 0.85), rgba(12, 16, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.card-cycle-libido {
  border-color: rgba(236, 72, 153, 0.3);
}

.card-romantic-dinner {
  border-color: rgba(245, 158, 11, 0.3);
}

.synergy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.libido-score-badge {
  background: linear-gradient(135deg, #ec4899, #ef4444);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.synergy-libido-meter {
  margin-bottom: 14px;
}

.libido-meter-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.libido-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #ec4899, #ef4444);
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.synergy-advice-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #ec4899;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #fda4af;
  line-height: 1.45;
}

.btn-mini-refresh {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fed7aa;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mini-refresh:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.romantic-menu-trio {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.romantic-dish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dish-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  min-width: 65px;
  text-align: center;
}

.dish-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

/* ==========================================================================
   MODULE 3 : NIVEAUX DE TEMPÉRATURE & SCÉNARIOS DES DÉS
   ========================================================================== */
.dice-temperature-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.temperature-level-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-temp-level {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.btn-temp-level .temp-labels {
  display: flex;
  flex-direction: column;
}

.btn-temp-level .temp-labels strong {
  font-size: 0.82rem;
}

.btn-temp-level .temp-labels small {
  font-size: 0.68rem;
  color: #94a3b8;
}

.btn-temp-level:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-temp-level.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(139, 92, 246, 0.35));
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}

.btn-temp-level.active .temp-labels small {
  color: #fda4af;
}

.auto-escalate-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-escalate-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fda4af;
  cursor: pointer;
}

.toggle-escalate-label input {
  display: none;
}

.toggle-escalate-custom {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  transition: all 0.25s ease;
}

.toggle-escalate-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.toggle-escalate-label input:checked + .toggle-escalate-custom {
  background: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.toggle-escalate-label input:checked + .toggle-escalate-custom::after {
  transform: translateX(16px);
}

.escalate-counter {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Tiroir Scénarios */
.btn-roleplay-open {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-roleplay-open:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(139, 92, 246, 0.4));
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.roleplay-drawer {
  background: radial-gradient(ellipse at 50% 30%, rgba(30, 20, 50, 0.95), rgba(10, 10, 25, 0.98));
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.roleplay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.roleplay-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}

.roleplay-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 8px 0;
}

.roleplay-intro {
  color: #fda4af;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.roleplay-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .roleplay-roles-grid {
    grid-template-columns: 1fr;
  }
}

.rp-role-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.rp-role-his {
  border-left: 3px solid #38bdf8;
}

.rp-role-her {
  border-left: 3px solid #ec4899;
}

.rp-role-box h5 {
  margin: 0 0 6px 0;
  font-size: 0.88rem;
}

.rp-role-his h5 {
  color: #38bdf8;
}

.rp-role-her h5 {
  color: #ec4899;
}

.rp-role-box p {
  margin: 0;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.roleplay-footer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.roleplay-footer-box em {
  color: #fed7aa;
}

/* ==========================================================================
   MODULE 4 : SIMULATEUR 3D MANNEQUINS & PARCOURS KAMASUTRA
   ========================================================================== */
.btn-kama-flow {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-kama-flow:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.kama-flow-panel {
  background: radial-gradient(ellipse at 50% 20%, rgba(20, 24, 45, 0.95), rgba(8, 12, 25, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.kama-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.kama-flow-acts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 850px) {
  .kama-flow-acts-grid {
    grid-template-columns: 1fr;
  }
}

.kama-flow-act-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.25s ease;
}

.kama-flow-act-card:hover {
  border-color: #ec4899;
  transform: translateY(-2px);
}

.flow-act-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.flow-act-1 .flow-act-badge {
  background: #3b82f6;
}

.flow-act-2 .flow-act-badge {
  background: #ec4899;
}

.flow-act-3 .flow-act-badge {
  background: #8b5cf6;
}

.flow-act-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.flow-act-desc {
  font-size: 0.8rem;
  color: #fda4af;
  margin: 0;
  line-height: 1.4;
}

.flow-act-transition {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
  border-left: 2px solid #8b5cf6;
}

.kama-view-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.btn-kama-view {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kama-view.active {
  background: #ec4899;
  color: #fff;
  font-weight: 700;
}

.btn-kama-fav-toggle {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-kama-fav-toggle.favorited {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.btn-kama-fav-toggle:hover {
  transform: scale(1.15);
}

.kama-3d-mannequin-viewport {
  width: 100%;
  height: 100%;
  min-height: 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 25, 50, 0.95), rgba(5, 8, 16, 0.98));
}

.kama-3d-mannequin-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.kama-3d-controls-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.btn-kama-3d-sub {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.btn-kama-3d-sub:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #fff;
}

.kama-card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.kama-card-fav-btn:hover {
  transform: scale(1.2);
}

.kama-card-fav-btn.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

/* ==========================================================================
   BLUEPRINTS / SCHÉMAS 3D VECTORIELS DU KAMASUTRA (+105 POSITIONS)
   ========================================================================== */
.kama-blueprint-card {
  width: 100%;
  height: 100%;
  min-height: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.blueprint-overlay-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.blueprint-cat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  backdrop-filter: blur(6px);
}

.blueprint-angle-tag {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fda4af;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.kama-blueprint-svg {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: block;
}

.blueprint-caption {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(10, 15, 30, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Encadrés de Rôles et Guide Décomposé */
.kama-metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: #94a3b8;
}

.kama-metric-pill strong {
  color: #f8fafc;
}

.kama-metric-pill span {
  color: #38bdf8;
  font-weight: 700;
}

.kama-role-item {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid;
}

.kama-role-item.role-his {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.kama-role-item.role-her {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.25);
}

.kama-role-item .role-header {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.kama-role-item.role-his .role-header {
  color: #38bdf8;
}

.kama-role-item.role-her .role-header {
  color: #fda4af;
}

.kama-role-item p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
}

.kama-step-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.kama-step-item strong {
  color: #fdba74;
}

.kama-card-quick-roles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.76rem;
  border-left: 3px solid #ec4899;
}

.kama-card-quick-roles .his-tag {
  color: #38bdf8;
  font-weight: 600;
}

/* ===================================================================
   NOUVEAUX MODULES : FINANCES, FOYER 3D, ROMANCE, IA & TV 55"
   =================================================================== */

/* 1. MÉTÉO 3D CANVAS EN ARRIÈRE-PLAN */
.weather-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* 2. BOUTONS IA & TV DE LA TOPBAR */
.btn-topbar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #f1f5f9;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.btn-topbar-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 8px #a855f7;
  animation: pulseGlow 1.5s infinite;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* 3. FINANCES & BUDGET (50/30/20, PRORATA & TRÉSORERIE) */
.finance-hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.finance-hero-left h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 8px 0 4px 0;
}
.finance-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.f-stat-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-width: 170px;
}
.f-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.f-stat-val {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}
.f-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.f-progress-fill { height: 100%; border-radius: 10px; }
.f-progress-fill.green { background: #10b981; }
.f-progress-fill.yellow { background: #f59e0b; }
.f-progress-fill.cyan { background: #06b6d4; }

.finance-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .finance-grid-row { grid-template-columns: 1fr; }
}

.split-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid var(--border-glass);
}
.btn-split-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
}
.btn-split-toggle.active {
  background: var(--primary);
  color: #fff;
}

.split-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.split-user-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid;
}
.split-user-box.sayfoouu {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.05);
}
.split-user-box.nisrine {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.05);
}
.split-user-avatar { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.split-user-pct { font-size: 0.82rem; color: var(--text-muted); }
.split-user-amount { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 6px 0; }
.split-reste-vivre {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vacation-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.vac-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border: 1px solid var(--border-glass);
}
.vacation-total-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cashflow-chart-container {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  padding: 10px;
  margin-top: 14px;
}
.cashflow-svg { width: 100%; height: 100%; }

/* 4. FOYER & TÂCHES 3D (ROUE, RPG & ENTRETIEN) */
.foyer-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .foyer-hero-grid { grid-template-columns: 1fr; }
}
.wheel-3d-viewport {
  width: 100%;
  height: 240px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(8, 12, 24, 0.9) 70%);
  border-radius: var(--radius-md);
  margin: 14px 0;
}
.wheel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn-spin-wheel {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.wheel-result-banner {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid #8b5cf6;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rpg-scores-display {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-glass);
}
.rpg-user-score { text-align: center; }
.rpg-name { font-size: 0.85rem; color: var(--text-muted); display: block; }
.rpg-pts { font-size: 1.6rem; color: #fff; font-weight: 800; }
.rpg-shop-list { display: flex; flex-direction: column; gap: 8px; }
.rpg-shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}
.btn-buy-reward {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid #ec4899;
  color: #fda4af;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.foyer-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .foyer-subgrid { grid-template-columns: 1fr; }
}

.maintenance-item, .inventory-item, .plant-item, .warranty-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

/* 5. ROMANCE, BUCKET LIST & DATES */
.romance-hero-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.romance-kpi-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.romance-kpi-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  min-width: 120px;
}
.kpi-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.kpi-label { font-size: 0.72rem; color: var(--text-muted); display: block; }
.kpi-val { font-size: 1.05rem; font-weight: 800; margin-top: 2px; }

.romance-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .romance-grid-row { grid-template-columns: 1fr; }
}

.bucket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.bucket-item.done {
  opacity: 0.6;
  text-decoration: line-through;
  border-color: #10b981;
}

.date-filters-bar {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.date-card-hero {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.date-hero-icon { font-size: 2.5rem; }
.date-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-quiz-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-quiz-option:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}

/* 6. MODALE ASSISTANT VOCAL (ORB ANIMÉ) */
.voice-orb-box {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-orb {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}
.voice-mic-icon { font-size: 1.8rem; z-index: 2; }
.voice-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #a855f7;
  animation: waveExpand 2s infinite linear;
}
.voice-wave.wave-2 { animation-delay: 0.6s; }
.voice-wave.wave-3 { animation-delay: 1.2s; }
@keyframes waveExpand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.voice-transcript-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.95rem;
  color: #e2e8f0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.voice-suggestions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-voice-suggest {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
}

/* 7. BRIEFING MATINAL TV & BATCH COOKING */
.briefing-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.briefing-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.brief-icon { font-size: 1.6rem; }
.briefing-quote-card {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.batch-flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.batch-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border-glass);
}
.batch-time-badge {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* 8. MODE CINÉMA TV (OLED PURE BLACK) */
body.cinema-mode-active {
  background: #000000 !important;
}
body.cinema-mode-active .sidebar,
body.cinema-mode-active .topbar {
  opacity: 0.15;
  transition: opacity 0.3s;
}
body.cinema-mode-active .sidebar:hover,
body.cinema-mode-active .topbar:hover {
  opacity: 1;
}





