/* ==============================================================================
   BITTONIK PRO - DESIGN SYSTEM & STYLESHEET
   Plateforme de Créativité, Challenges, Réseau Social & Compétitions
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- PALETTE ÉNERGÉTIQUE & TONIQUE --- */
  --tonik-sunset: #FF3366;
  --tonik-coral: #FF5E3A;
  --tonik-gold: #FFB800;
  --tonik-amber: #FF9100;
  --tonik-cyan: #00E5FF;
  --tonik-teal: #00B4D8;
  --tonik-violet: #8A2BE2;
  --tonik-purple: #7928CA;
  --tonik-emerald: #10B981;
  --tonik-rose: #F43F5E;
  
  /* Surfaces & Thème Clair */
  --tonik-bg: #F8FAFD;
  --tonik-surface: #FFFFFF;
  --tonik-card: #FFFFFF;
  --tonik-card-subtle: #F1F5F9;
  --tonik-border: #E2E8F0;
  --tonik-border-subtle: rgba(15, 23, 42, 0.08);
  --tonik-text: #0F172A;
  --tonik-text-muted: #64748B;
  --tonik-text-light: #94A3B8;
  
  /* Dégradés Signature de Haute Intensité */
  --tonik-gradient-fire: linear-gradient(135deg, #FF3366 0%, #FF6A00 100%);
  --tonik-gradient-gold: linear-gradient(135deg, #FFB800 0%, #FF5E3A 100%);
  --tonik-gradient-social: linear-gradient(135deg, #8A2BE2 0%, #00E5FF 100%);
  --tonik-gradient-cyber: linear-gradient(135deg, #7928CA 0%, #FF3366 100%);
  --tonik-gradient-card-overlay: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
  
  /* Ombres & Lueurs Pro */
  --tonik-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --tonik-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --tonik-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  --tonik-shadow-glow-fire: 0 8px 25px rgba(255, 51, 102, 0.35);
  --tonik-shadow-glow-gold: 0 8px 25px rgba(255, 184, 0, 0.35);
  --tonik-shadow-glow-cyan: 0 8px 25px rgba(0, 229, 255, 0.35);

  --tonik-radius-sm: 8px;
  --tonik-radius-md: 14px;
  --tonik-radius-lg: 20px;
  --tonik-radius-xl: 28px;
  --tonik-radius-full: 9999px;
}

/* ==================== THÈME SOMBRE PRO & CONTRASTE ==================== */
.dark-mode {
  --tonik-bg: #090D16;
  --tonik-surface: #111827;
  --tonik-card: #151D30;
  --tonik-card-subtle: #1E293B;
  --tonik-border: rgba(255, 255, 255, 0.1);
  --tonik-border-subtle: rgba(255, 255, 255, 0.06);
  --tonik-text: #F8FAFC;
  --tonik-text-muted: #94A3B8;
  --tonik-text-light: #64748B;
  
  background-color: var(--tonik-bg);
  color: var(--tonik-text);
}

.dark-mode .text-muted,
.dark-mode small.text-muted,
.dark-mode .form-text {
  color: #94A3B8 !important;
}

.dark-mode .text-dark {
  color: #F8FAFC !important;
}

.dark-mode .text-secondary {
  color: #CBD5E1 !important;
}

.dark-mode .card,
.dark-mode .tonik-card,
.dark-mode .widget-card {
  background-color: var(--tonik-card) !important;
  color: var(--tonik-text) !important;
  border-color: var(--tonik-border) !important;
}

.dark-mode .card-body,
.dark-mode .card-header,
.dark-mode .card-footer {
  color: var(--tonik-text) !important;
  border-color: var(--tonik-border) !important;
}

.dark-mode .bg-white {
  background-color: var(--tonik-card) !important;
  color: var(--tonik-text) !important;
}

.dark-mode .bg-light {
  background-color: var(--tonik-card-subtle) !important;
  color: var(--tonik-text) !important;
}

.dark-mode .badge.bg-light {
  background-color: var(--tonik-card-subtle) !important;
  color: #CBD5E1 !important;
  border-color: var(--tonik-border) !important;
}

.dark-mode .display-1, 
.dark-mode .display-2, 
.dark-mode .display-3, 
.dark-mode .display-4, 
.dark-mode .display-5, 
.dark-mode .display-6 {
  color: #FFFFFF !important;
}

.dark-mode .list-group-item {
  background-color: var(--tonik-card) !important;
  color: var(--tonik-text) !important;
  border-color: var(--tonik-border) !important;
}

.dark-mode .list-group-item-action {
  color: var(--tonik-text) !important;
  background-color: transparent !important;
}

.dark-mode .list-group-item-action:hover,
.dark-mode .list-group-item-action:focus {
  background-color: var(--tonik-card-subtle) !important;
  color: var(--tonik-sunset) !important;
}

.dark-mode .list-group-item-action.active {
  background-color: rgba(255, 51, 102, 0.18) !important;
  color: var(--tonik-sunset) !important;
}

.dark-mode .dropdown-menu {
  background-color: #151D30 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .dropdown-item {
  color: #E2E8F0 !important;
}

.dark-mode .dropdown-item:hover {
  background-color: rgba(255, 51, 102, 0.15) !important;
  color: #FFFFFF !important;
}

.dark-mode .form-control, 
.dark-mode .form-select {
  background-color: #111827 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .form-control:focus, 
.dark-mode .form-select:focus {
  background-color: #161E31 !important;
  border-color: var(--tonik-sunset) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.25) !important;
}

.dark-mode .modal-content {
  background-color: #151D30 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dark-mode .table {
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Comment & review dark mode fixes */
.dark-mode .tiktok-comment-box,
.dark-mode .comment-bubble {
  background: var(--tonik-card) !important;
  color: var(--tonik-text) !important;
}

.dark-mode .comment-bubble p,
.dark-mode .comment-bubble span,
.dark-mode .comment-content {
  color: var(--tonik-text) !important;
}

.dark-mode #bittonik-review-toast .tonik-card {
  background: #151D30 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode #toast-review-author {
  color: #F8FAFC !important;
}

.dark-mode #toast-review-comment {
  color: #CBD5E1 !important;
}

/* Style UX/UI pour mentions @username */
.mention-tag, a.mention-link, .comment-mention {
  color: var(--tonik-sunset) !important;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 51, 102, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}
.mention-tag:hover, a.mention-link:hover, .comment-mention:hover {
  background: var(--tonik-sunset);
  color: #ffffff !important;
}

/* ==================== GLOBAL BASE & TYPOGRAPHY ==================== */
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--tonik-bg);
  color: var(--tonik-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tonik-text);
}

.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }

.text-xs { font-size: 0.75rem !important; }
.text-2xs, .text-\[10px\] { font-size: 0.65rem !important; }
.text-\[11px\] { font-size: 0.7rem !important; }

.rounded-xl { border-radius: var(--tonik-radius-md) !important; }
.rounded-2xl { border-radius: var(--tonik-radius-lg) !important; }
.rounded-3xl { border-radius: var(--tonik-radius-xl) !important; }

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== DÉGRADÉS & TEXT GRADIENTS ==================== */
.text-gradient-tonik, .tonik-gradient-text {
  background: var(--tonik-gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-gold {
  background: var(--tonik-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-social {
  background: var(--tonik-gradient-social);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==================== BOUTONS TONIK SIGNATURE ==================== */
.btn-tonik-primary, .btn-hero-primary, .btn-tonik-fire {
  background: var(--tonik-gradient-fire) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  border-radius: var(--tonik-radius-full);
  padding: 0.6rem 1.5rem;
  box-shadow: var(--tonik-shadow-glow-fire);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-tonik-primary:hover, .btn-hero-primary:hover, .btn-tonik-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 51, 102, 0.5);
  color: #FFFFFF !important;
}

.btn-tonik-gold, .btn-shop-neon {
  background: var(--tonik-gradient-gold) !important;
  color: #0F172A !important;
  font-weight: 700;
  border: none;
  border-radius: var(--tonik-radius-full);
  padding: 0.6rem 1.5rem;
  box-shadow: var(--tonik-shadow-glow-gold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-tonik-gold:hover, .btn-shop-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 184, 0, 0.5);
  color: #0F172A !important;
}

.btn-tonik-social {
  background: var(--tonik-gradient-social) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  border-radius: var(--tonik-radius-full);
  padding: 0.6rem 1.4rem;
  box-shadow: var(--tonik-shadow-glow-cyan);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-tonik-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.5);
  color: #FFFFFF !important;
}

.btn-tonik-outline {
  background: transparent;
  color: var(--tonik-text);
  border: 1.5px solid var(--tonik-border);
  font-weight: 600;
  border-radius: var(--tonik-radius-full);
  padding: 0.55rem 1.3rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-tonik-outline:hover {
  background: rgba(255, 51, 102, 0.08);
  border-color: var(--tonik-sunset);
  color: var(--tonik-sunset);
  transform: translateY(-1px);
}

.dark-mode .btn-tonik-outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
}

.dark-mode .btn-tonik-outline:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--tonik-sunset);
  color: #FFFFFF;
}

/* ==================== CARTES PRO & EFFET VERRE ==================== */
.card, .tonik-card {
  background-color: var(--tonik-card);
  border: 1px solid var(--tonik-border-subtle);
  border-radius: var(--tonik-radius-lg);
  box-shadow: var(--tonik-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover, .tonik-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tonik-shadow-md);
  border-color: rgba(255, 51, 102, 0.2);
}

.dark-mode .card, .dark-mode .tonik-card {
  background-color: var(--tonik-card);
  border-color: var(--tonik-border);
}

.dark-mode .card:hover, .dark-mode .tonik-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.article-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .article-img {
  transform: scale(1.03);
}

/* ==================== BADGES & TAGS ==================== */
.badge-tonik {
  background: rgba(255, 51, 102, 0.12);
  color: var(--tonik-sunset);
  border: 1px solid rgba(255, 51, 102, 0.3);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--tonik-radius-full);
}

.badge-gold {
  background: var(--tonik-gradient-gold);
  color: #0F172A;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--tonik-radius-full);
}

.badge-tag {
  background: rgba(0, 229, 255, 0.08);
  color: var(--tonik-teal);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--tonik-radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.badge-tag:hover {
  background: var(--tonik-teal);
  color: #FFFFFF;
  border-color: var(--tonik-teal);
}

/* ==================== SOCIAL FEED ARCHITECTURE (3 COLONNES) ==================== */
.social-feed-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 0.75rem;
}

/* Stories & Challenges Horizontal Carousel */
.stories-carousel-wrapper {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stories-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.story-item {
  position: relative;
  flex: 0 0 115px;
  height: 175px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--tonik-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--tonik-shadow-md);
}

.story-item img.story-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.story-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 2px;
  background: var(--tonik-gradient-fire);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.story-avatar-ring.gold {
  background: var(--tonik-gradient-gold);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}

.story-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #090d16;
}

.story-title {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Boîte de création de Post (Quoi de neuf ?) */
.create-post-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--tonik-shadow-sm);
  transition: border-color 0.2s ease;
}

.create-post-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.create-post-input {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  color: var(--tonik-text);
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-mode .create-post-input {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.create-post-input:hover {
  background: rgba(15, 23, 42, 0.08);
}
.dark-mode .create-post-input:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==================== SOCIAL POST CARD ==================== */
.social-post-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tonik-shadow-sm);
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-post-card:hover {
  box-shadow: var(--tonik-shadow-md);
}

.post-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tonik-sunset);
}

.post-media-box {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-media-box img, .post-media-box video {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.post-actions-bar {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tonik-border);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--tonik-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 51, 102, 0.08);
  color: var(--tonik-sunset);
}

/* ==================== TIKTOK / REELS VERTICAL FEED ==================== */
.tiktok-feed-wrapper {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

.tiktok-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 85vh;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.tiktok-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-actions-overlay {
  position: absolute;
  right: 12px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.tiktok-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tiktok-action-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 51, 102, 0.8);
}

.tiktok-action-counter {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin-top: -12px;
}

.tiktok-bottom-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 70px;
  z-index: 10;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==================== SPLIT AUTH MODERN CONTAINER ==================== */
.auth-split-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-split-card {
  width: 100%;
  max-width: 980px;
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--tonik-shadow-lg);
}

/* ==================== SECONDARY CONCOURS SUBNAV ==================== */
.tonik-subnav {
  background: var(--tonik-surface);
  border-bottom: 1px solid var(--tonik-border);
  position: sticky;
  top: 60px;
  z-index: 40;
  padding: 0.5rem 1rem;
}

.tonik-subnav-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tonik-subnav-pills::-webkit-scrollbar { display: none; }

.tonik-subnav-link {
  color: var(--tonik-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tonik-subnav-link:hover {
  color: var(--tonik-sunset);
  background: rgba(255, 51, 102, 0.08);
}

.tonik-subnav-link.active {
  background: var(--tonik-sunset);
  color: #FFFFFF !important;
  box-shadow: var(--tonik-shadow-glow-fire);
}

/* ==================== PRO FOOTER ==================== */
.tonik-footer {
  background: var(--tonik-card);
  border-top: 1px solid var(--tonik-border);
  color: var(--tonik-text-muted);
}

.tonik-footer a.hover-tonik {
  transition: color 0.2s ease;
}
.tonik-footer a.hover-tonik:hover {
  color: var(--tonik-sunset) !important;
}

.social-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tonik-card-subtle);
  color: var(--tonik-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--tonik-border);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-icon-pill:hover {
  transform: translateY(-2px);
  background: var(--tonik-sunset);
  color: #FFFFFF !important;
  border-color: var(--tonik-sunset);
}

/* ==================== MOBILE BOTTOM BAR ==================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1040;
  padding: 0 0.5rem;
}

.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-link i {
  font-size: 1.25rem;
}

.mobile-bottom-link.active, .mobile-bottom-link:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

.mobile-bottom-create-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tonik-gradient-fire);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--tonik-shadow-glow-fire);
  text-decoration: none;
  transform: translateY(-10px);
  border: 2px solid #0f172a;
}

/* Ruban Sponsor */
#sponsor-marquee {
  --spacing: 2.5rem;
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-content {
  display: flex;
  width: max-content;
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--spacing);
  padding: 0 var(--spacing);
  animation: scroll-left 25s linear infinite;
  will-change: transform;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* ==================== CARTES & COMPOSANTS TONIK PREMIUM ==================== */
.tonik-auth-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-lg);
  box-shadow: var(--tonik-shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
}

.tonik-form-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-lg);
  box-shadow: var(--tonik-shadow-md);
  padding: 2rem;
}

.tonik-article-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tonik-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tonik-shadow-lg);
  border-color: rgba(255, 51, 102, 0.3);
}

.tonik-article-card .article-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tonik-article-card:hover .article-img {
  transform: scale(1.03);
}

.tonik-reader {
  max-width: 820px;
  margin: 0 auto;
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-lg);
  box-shadow: var(--tonik-shadow-md);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .tonik-reader {
    padding: 1.25rem;
    border-radius: var(--tonik-radius-md);
  }
}

.tonik-post-composer {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-md);
  box-shadow: var(--tonik-shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.tonik-post-composer textarea {
  width: 100%;
  background: transparent;
  border: none;
  resize: none;
  color: var(--tonik-text);
  font-size: 1.05rem;
  outline: none;
  min-height: 100px;
}

.tonik-profile-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-lg);
  box-shadow: var(--tonik-shadow-md);
  overflow: hidden;
}

.tonik-stat-box {
  background: var(--tonik-surface);
  border: 1px solid var(--tonik-border);
  border-radius: var(--tonik-radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tonik-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--tonik-sunset);
}

.tonik-floating-add {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tonik-gradient-fire);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--tonik-radius-full);
  box-shadow: var(--tonik-shadow-glow-fire);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tonik-floating-add:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 51, 102, 0.5);
  color: #FFFFFF !important;
}

@media (max-width: 576px) {
  .tonik-floating-add {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== FACEBOOK-LIKE NAVBAR & TABS ==================== */
.tonik-fb-navbar {
  background: var(--tonik-surface);
  border-bottom: 1px solid var(--tonik-border);
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.dark-mode .tonik-fb-navbar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tonik-fb-navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tonik-fb-navbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 620px;
  height: 58px;
  margin: 0 auto;
}

.tonik-fb-navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.tonik-fb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 48px;
  padding: 0 0.75rem;
  color: var(--tonik-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.tonik-fb-tab span.tab-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 0.35rem;
  display: none;
}
@media (min-width: 1280px) {
  .tonik-fb-tab span.tab-label {
    display: inline;
  }
  .tonik-fb-tab {
    font-size: 1.05rem;
    padding: 0 0.85rem;
  }
}
.tonik-fb-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--tonik-sunset);
}
.dark-mode .tonik-fb-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}
.tonik-fb-tab.active {
  color: var(--tonik-sunset) !important;
}
.dark-mode .tonik-fb-tab.active {
  color: #38bdf8 !important;
}
.tonik-fb-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 3px;
  background: var(--tonik-sunset);
  border-radius: 3px 3px 0 0;
}
.dark-mode .tonik-fb-tab.active::after {
  background: #38bdf8;
}

.tonik-nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tonik-text-muted);
  background: var(--tonik-card-subtle);
  border: 1px solid var(--tonik-border-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}
.tonik-nav-icon-btn:hover {
  background: var(--tonik-border);
  color: var(--tonik-sunset);
  transform: scale(1.04);
}
.dark-mode .tonik-nav-icon-btn {
  background: #1e293b;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .tonik-nav-icon-btn:hover {
  background: #334155;
  color: #38bdf8;
}
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--tonik-sunset);
  border-radius: 3px 3px 0 0;
}
.dark-mode .tonik-nav-tab.active::after {
  background: #38bdf8;
}

/* Discreet Ayiti Link */
.tonik-ayiti-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tonik-ayiti-badge:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
  transform: translateY(-1px);
}
.dark-mode .tonik-ayiti-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.dark-mode .tonik-ayiti-badge:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

/* ==================== DEVELOP-STRUCTURE FOOTER ==================== */
.develop-footer {
  background-color: #f1f5f9;
  color: #475569;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
}
.dark-mode .develop-footer {
  background-color: #0d121f;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.develop-footer-strip1 {
  background-color: #e2e8f0;
  padding: 0.85rem 1rem;
}
.dark-mode .develop-footer-strip1 {
  background-color: #111827;
}

.develop-footer-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.85rem;
}
.develop-footer-links a:hover {
  color: var(--tonik-sunset);
}
.dark-mode .develop-footer-links a {
  color: #cbd5e1;
}
.dark-mode .develop-footer-links a:hover {
  color: #38bdf8;
}

.develop-footer-separator {
  color: #94a3b8;
  opacity: 0.5;
  margin: 0 0.25rem;
}
.dark-mode .develop-footer-separator {
  color: #64748b;
}

.develop-footer-socials a {
  color: #64748b;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.develop-footer-socials a:hover {
  color: var(--tonik-sunset);
  transform: translateY(-2px);
  background: rgba(255, 51, 102, 0.12);
}
.dark-mode .develop-footer-socials a {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
}
.dark-mode .develop-footer-socials a:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.develop-footer-strip2 {
  background-color: #f8fafd;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}
.dark-mode .develop-footer-strip2 {
  background-color: #0f172a;
}

.develop-footer-strip3 {
  background-color: #e2e8f0;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid #cbd5e1;
}
.dark-mode .develop-footer-strip3 {
  background-color: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== CHALLENGE & CONCOURS CARDS ==================== */
.challenge-card {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tonik-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tonik-shadow-lg);
  border-color: rgba(255, 51, 102, 0.4);
}

.challenge-cover {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #090d16;
}

.challenge-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.challenge-card:hover .challenge-cover img {
  transform: scale(1.05);
}

.challenge-badge-live {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.challenge-prize-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   INTERACTIONS & TIKTOK-LIKE COMMENTS (v2.0)
   ========================================================================== */

/* Heart Pop & Like Animation */
@keyframes tonikHeartPop {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.35) rotate(-5deg);
  }
  50% {
    transform: scale(0.9) rotate(3deg);
  }
  75% {
    transform: scale(1.15) rotate(0deg);
  }
  100% {
    transform: scale(1);
  }
}

.heart-pop {
  animation: tonikHeartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.btn-like-heart {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--tonik-card-subtle);
  border: 1px solid var(--tonik-border);
  color: var(--tonik-text-muted);
}

.btn-like-heart:hover {
  border-color: #ff3b5c;
  color: #ff3b5c;
  transform: translateY(-1px);
}

.btn-like-heart.liked {
  background: var(--tonik-sunset) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(255, 94, 58, 0.4);
}

.btn-like-heart.liked .fa-heart {
  color: #ffffff !important;
}

/* TikTok-Like Comment Section */
.tiktok-comment-box {
  background: var(--tonik-card);
  border: 1px solid var(--tonik-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tiktok-comment-input {
  background: var(--tonik-card-subtle) !important;
  color: var(--tonik-text) !important;
  border: 1.5px solid var(--tonik-border) !important;
  border-radius: 16px !important;
  resize: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tiktok-comment-input:focus {
  border-color: var(--tonik-accent, #ff5e3a) !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.15) !important;
}

.comment-bubble {
  position: relative;
  transition: background-color 0.2s ease;
}

.comment-bubble:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tiktok-reply-box {
  background: var(--tonik-card);
  border: 1px dashed var(--tonik-border);
  border-radius: 14px;
  padding: 10px;
}

@media (max-width: 576px) {
  .tiktok-comment-item {
    margin-bottom: 0.85rem !important;
  }
  .tiktok-comment-item.ms-4,
  .tiktok-comment-item.ms-md-5 {
    margin-left: 1rem !important;
    padding-left: 0.5rem !important;
  }
  .btn-like-heart {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}

/* ==================== TONIK THEME COMPATIBILITY UTILITIES ==================== */
.table-tonik {
  color: var(--tonik-text) !important;
  --bs-table-color: var(--tonik-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--tonik-border);
  --bs-table-hover-bg: rgba(0, 0, 0, 0.03);
  --bs-table-hover-color: var(--tonik-text);
}

.dark-mode .table-tonik {
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-hover-color: #F8FAFC;
}

.table-tonik th {
  color: var(--tonik-text-muted);
  border-bottom: 1px solid var(--tonik-border) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-tonik td {
  border-bottom: 1px solid var(--tonik-border) !important;
}

.tonik-box-subtle {
  background: var(--tonik-card-subtle) !important;
  border: 1px solid var(--tonik-border) !important;
  color: var(--tonik-text) !important;
  border-radius: var(--tonik-radius-md);
}