:root {
  --accent: #1E9BF0;
  --accent-dark: #0E7AC4;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: 0.3s ease;
  --error: #e53e3e;
}
[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #f0f0f0;
  --text-secondary: #aaaaaa;
  --border: #333;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; }

/* ===== PAGE LOGIN ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-logo .logo-img {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.4rem;
}
.login-logo .logo-text { font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.login-logo .logo-text span { color: var(--text); }

.verified-badge {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(40,167,69,0.12);
  color: #28a745; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px;
}
.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 42px; width: 100%; box-sizing: border-box; }
.password-toggle-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); cursor: pointer; font-size: 0.95rem;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.login-tabs { display: flex; border-bottom: 1px solid var(--border); }
.login-tab {
  flex: 1; text-align: center; padding: 16px;
  font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.login-tab.active { color: var(--accent); border-color: var(--accent); }

.login-form { padding: 24px; display: none; }
.login-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

.form-error {
  background: rgba(229,62,62,0.1); color: var(--error);
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.form-error.show { display: block; }

.form-success {
  background: rgba(30,155,240,0.1); color: var(--accent);
  padding: 10px 12px; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.form-success.show { display: block; }

.btn-primary {
  width: 100%; padding: 13px;
  background: var(--accent); color: white;
  border: none; border-radius: 30px;
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.forgot-link { display: block; text-align: center; margin-top: 14px; font-size: 0.85rem; }

/* ===== MODAL RESET ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 380px;
}
.modal-box h3 { margin-bottom: 6px; }
.modal-box p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; }
.modal-close-link { display: block; text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.show-block { display: block !important; }
/* ===== APP : HEADER ===== */
.app-header {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.app-header .logo-wrapper { display: flex; align-items: center; gap: 10px; }
.app-header .logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.app-header .logo { font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.app-header .logo span { color: var(--text); }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions i { font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); }
.notification-icon-wrap { position: relative; display: flex; align-items: center; }
.notification-item {
  background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); border-left: 3px solid transparent;
}
.notification-item.unread { border-left-color: var(--accent); background: rgba(30,155,240,0.05); }
.notification-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.notification-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.notification-delete-btn {
  background: none; border: none; color: var(--text-secondary); font-size: 0.9rem; cursor: pointer;
  padding: 2px 4px; flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s, color 0.2s;
}
.notification-delete-btn:hover { opacity: 1; color: #dc3545; }
.notification-message { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.notification-message a { color: var(--accent); }
.notification-date { font-size: 0.7rem; color: var(--text-secondary); margin-top: 6px; opacity: 0.8; }
.notification-badge {
  position: absolute; top: -6px; right: -8px; background: #e53e3e; color: white;
  font-size: 0.62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.container { max-width: 600px; margin: 0 auto; padding: 0 16px; }
body.app-body { padding-bottom: 70px; }

/* ===== APP : MENU BAS ===== */
.bottom-menu {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 6px 0 8px; z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-menu .menu-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.6rem; color: var(--text-secondary);
  cursor: pointer; padding: 2px 6px; border-radius: 8px; min-width: 50px;
  transition: color var(--transition);
}
.bottom-menu .menu-item i { font-size: 1.2rem; margin-bottom: 1px; }
.bottom-menu .menu-item .menu-icon { width: 22px; height: 22px; margin-bottom: 1px; }
.bottom-menu .menu-item.active { color: var(--accent); font-weight: 500; }

/* ===== APP : PAGES ===== */
.page { display: none; padding: 12px 0; }
.page.active { display: block; }
.page h2 { margin-bottom: 12px; }
.page-filter-date {
  padding: 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  width: 100%; margin-bottom: 12px;
}

/* ===== PUBLICATIONS ===== */
.publication {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; position: relative;
}
.pin-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FILTRE DE PÉRIODE (réutilisé app + admin) ===== */
.analytics-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; align-items:center; }
.analytics-filter select, .analytics-filter input[type="date"] {
  padding:8px 10px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:0.85rem;
}
.analytics-custom-range { display:none; gap:8px; }
.analytics-custom-range.show { display:flex; }

/* ===== STATISTIQUES BOOKMAKERS ===== */
.stats-highlight-card {
  background: linear-gradient(115deg, #0E7AC4, #1E9BF0, #2e8fff, #1E9BF0, #0E7AC4);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  color: white;
  border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.stats-big-number { font-size: 2.4rem; font-weight: 700; }
.stats-big-label { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }
.stats-subcounters {
  display: flex; justify-content: center; gap: 20px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.25);
}
.stats-subcounter { font-size: 0.9rem; font-weight: 600; }

.stats-highlight-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stats-mini-card {
  border-radius: var(--radius); padding: 18px 12px; text-align: center; box-shadow: var(--shadow);
  color: white; position: relative; overflow: hidden;
}
.stats-mini-card.taux { background: linear-gradient(135deg, #1E9BF0, #0E7AC4); }
.stats-mini-card.streak-win { background: linear-gradient(135deg, #28a745, #1e7e34); }
.stats-mini-card.streak-lose { background: linear-gradient(135deg, #dc3545, #a71d2a); }
.stats-mini-card.streak-none { background: linear-gradient(135deg, #6c757d, #495057); }
.stats-mini-card i { font-size: 1.3rem; margin-bottom: 6px; opacity: 0.9; }
.stats-mini-number { font-size: 1.7rem; font-weight: 700; }
.stats-mini-label { font-size: 0.72rem; opacity: 0.9; margin-top: 2px; }

.stats-cotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-cote-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; text-align: center;
}
.stats-cote-title { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.stats-cote-stats { font-size: 1.3rem; font-weight: 700; }
.stats-cote-legend { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }
.stats-best-badge {
  display: inline-block; background: #ffc107; color: #333; font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.stats-bookmaker-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 12px;
}
.stats-bar-track { width: 100%; height: 8px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 10px; transition: width 0.3s; }

/* ===== SCROLL VERS PUBLICATION PARTAGÉE ===== */
.pub-highlight { animation: pubPulse 2.2s ease; }
@keyframes pubPulse {
  0% { box-shadow: 0 0 0 0 rgba(30,155,240,0.5); }
  30% { box-shadow: 0 0 0 8px rgba(30,155,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,155,240,0); }
}

/* ===== POP-UP LANDING PAGE (brandée Kivscore) ===== */
.landing-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.landing-popup-overlay.show { display: flex; animation: popupOverlayFade 0.25s ease; }
.landing-popup-box {
  background: var(--surface); border-radius: 18px; max-width: 380px; width: 100%;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative;
  border: 2px solid var(--accent);
  animation: popupBoxIn 0.45s cubic-bezier(.34,1.56,.64,1) both, popupGlow 2.4s ease-in-out infinite;
}
.landing-popup-box img { width: 100%; height: auto; display: block; max-height: 220px; object-fit: cover; }
.landing-popup-box .popup-body { padding: 20px; text-align: center; }
.landing-popup-box h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--accent); }
.landing-popup-box p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.5; }
.landing-popup-box .btn-large {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white; padding: 13px 30px; border-radius: 30px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: 0 8px 20px rgba(30,155,240,0.4);
  animation: popupCtaPulse 1.8s ease-in-out infinite;
}
.landing-popup-close {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white;
  border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
@keyframes popupOverlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupBoxIn {
  0% { transform: scale(0.75); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes popupGlow {
  0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 rgba(30,155,240,0); }
  50% { box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 26px rgba(30,155,240,0.5); }
}
@keyframes popupCtaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(30,155,240,0.4); }
  50% { transform: scale(1.06); box-shadow: 0 10px 28px rgba(30,155,240,0.65); }
}

/* ===== MODALE "DERNIÈRE CHANCE" (exit-intent / bouton retour) ===== */
.exit-intent-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.68); z-index: 2100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.exit-intent-overlay.show { display: flex; animation: popupOverlayFade 0.25s ease; }
.exit-intent-wrapper {
  max-width: 380px; width: 100%; padding: 3px; border-radius: 20px;
  background: linear-gradient(135deg, #25D366, #229ED9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: popupBoxIn 0.5s cubic-bezier(.34,1.56,.64,1) both, exitBorderShift 3.5s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes exitBorderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.exit-intent-box { background: var(--surface); border-radius: 17px; overflow: hidden; position: relative; }
.exit-intent-box img { width: 100%; height: auto; display: block; max-height: 190px; object-fit: cover; }
.exit-intent-body { padding: 22px 20px; text-align: center; }
.exit-intent-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.exit-intent-body p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.55; }
.exit-intent-close {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white;
  border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}

/* Bouton "Installer l'app" : toujours visible. Si le navigateur ne propose pas
   l'installation native au moment du clic, un message de repli s'affiche. */

/* ===== MODAL COMMENTAIRES ===== */
.modal-overlay.bottom-sheet { align-items: flex-end; }
.comments-modal-box {
  background: var(--surface); width: 100%; max-width: 500px; height: 82vh;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  margin: 0 auto; padding: 0;
}
.comments-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.comments-modal-header h3 { font-size: 1.05rem; }
.comments-modal-header button {
  background: none; border: none; font-size: 1.2rem; color: var(--text-secondary); cursor: pointer;
}
#commentsModal .comments-list, #pubPickerBox .comments-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
#commentsModal .comment-image-preview,
#commentsModal .comment-error,
#commentsModal .comment-input-area { padding-left: 16px; padding-right: 16px; flex-shrink: 0; }
#commentsModal .comment-input-area { padding-bottom: 16px; padding-top: 8px; margin-top: 0; }

/* ===== TIRER POUR ACTUALISER ===== */
.pull-refresh-indicator {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-40px);
  width: 36px; height: 36px; background: var(--surface); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  color: var(--accent); z-index: 500; opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.pull-refresh-indicator.spinning i { animation: spin 0.8s linear infinite; }

/* Badge vérifié des utilisateurs (pas admin) : blanc en mode sombre pour rester visible */
[data-theme="dark"] .comment .comment-body .comment-author .verified-badge-icon {
  filter: brightness(0) invert(1);
}
.publication-header {
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.publication-header .type-badge {
  background: var(--accent); color: white; font-size: 0.6rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; text-transform: uppercase;
}
.publication-header .date { font-size: 0.7rem; color: var(--text-secondary); }
.publication-media {
  width: 100%; background: #ddd; display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 0.9rem; overflow: hidden; position: relative;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.publication-media img, .publication-media video {
  width: 100%; height: auto; display: block; object-fit: contain; max-height: 400px;
  -webkit-user-drag: none; user-drag: none;
}
.publication-body { padding: 14px 16px 16px; }
.publication-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.publication-description { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.publication-description strong, .publication-description em, .publication-description b, .publication-description i { color: var(--text); }
.publication-description blockquote, .bookmaker-card .bm-desc blockquote {
  border-left: 3px solid var(--accent); background: var(--bg); padding: 8px 12px; margin: 8px 0;
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-secondary);
}
.publication-description h3, .bookmaker-card .bm-desc h3 { font-size: 1.02rem; margin: 8px 0 4px; color: var(--text); }
.publication-description ul, .publication-description ol, .bookmaker-card .bm-desc ul, .bookmaker-card .bm-desc ol { margin: 6px 0 6px 20px; }
.publication-description a { color: var(--accent); text-decoration: underline; }
.pinned-badge {
  background: #ffc107; color: #333; font-size: 0.6rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; margin-left: 8px;
}

.coupon-code-btn {
  background: var(--accent); color: white; border: none; padding: 8px 16px;
  border-radius: 30px; font-weight: 500; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: background 0.2s; margin-bottom: 10px;
}
.coupon-code-btn:hover { background: var(--accent-dark); }

.reactions { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 8px 0 10px; flex-wrap: nowrap; overflow: hidden; }
/* Première réaction collée à gauche, dernière collée à droite ; l'espace entre les cases s'ajuste tout seul quand les compteurs grandissent (pas de défilement). */
.reactions .reaction {
  background: var(--bg); padding: 4px 10px 4px 8px; border-radius: 30px;
  display: flex; align-items: center; gap: 4px; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s; border: 1px solid transparent; flex: 0 1 auto; min-width: 0; white-space: nowrap;
}
@media (max-width: 380px) {
  .reactions .reaction { padding: 4px 7px 4px 6px; font-size: 0.78rem; gap: 3px; }
}
.reactions .reaction:hover { background: var(--border); }
.reactions .reaction .count { font-weight: 500; color: var(--text-secondary); }

.comments-section { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.comment { display: flex; gap: 10px; margin-bottom: 10px; }
.comment .avatar {
  width: 32px; height: 32px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.comment .comment-body { background: var(--bg); padding: 8px 12px; border-radius: 12px; flex: 1; }
.comment .comment-body .comment-author { font-weight: 500; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.comment .comment-body .comment-author .verified-badge-icon {
  width: 14px; height: 14px; display: inline-block; vertical-align: middle;
}
.comment .avatar-img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.comment .comment-body .comment-author .admin-badge-icon {
  width: 15px; height: 15px; display: inline-block; vertical-align: middle;
}
.comment .comment-body .comment-text { font-size: 0.85rem; margin-top: 2px; }
.comment .comment-body .comment-image {
  max-width: 100%; max-height: 150px; border-radius: 8px; margin-top: 6px;
  cursor: pointer; transition: transform 0.2s;
}
.comment .comment-body .comment-image:hover { transform: scale(1.02); }
.comment-input-area { display: flex; gap: 8px; margin-top: 8px; }
.comment-input-area input {
  flex: 1; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); outline: none;
}
.comment-input-area button {
  background: var(--accent); color: white; border: none; border-radius: 30px;
  padding: 8px 16px; font-weight: 500; cursor: pointer;
}
.comment-attach-btn {
  background: var(--bg) !important; color: var(--text-secondary) !important;
  padding: 8px 10px !important; flex-shrink: 0;
}
.comment-image-preview {
  display: none; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--bg); padding: 6px; border-radius: 10px; width: fit-content;
}
.comment-image-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.comment-image-preview button {
  background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem;
}
.share-btn {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
}
.share-btn:hover { color: var(--accent); }
.comments-toggle { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; margin-top: 4px; font-weight: 500; }
.comments-toggle:hover { text-decoration: underline; }

/* ===== MODAL IMAGE / VÉRIFICATION ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 999;
}
.modal-overlay.show { display: flex; }
.modal-image-container { max-width: 90%; max-height: 90%; position: relative; }
.modal-image-container img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.modal-close {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white;
  border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-verify-content {
  background: var(--surface); border-radius: var(--radius); max-width: 400px; width: 90%;
  padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); text-align: center;
}
.modal-verify-content h3 { margin-bottom: 12px; }
.guide-modal-illustration {
  width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 16px;
  border-radius: 14px;
}
.modal-verify-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.modal-verify-content .btn-secondary {
  background: transparent; border: 1px solid var(--border); padding: 10px 20px;
  border-radius: 30px; color: var(--text); cursor: pointer; width: 100%; margin-top: 8px;
}
.limit-progress-track {
  width: 100%; height: 10px; background: var(--bg); border-radius: 10px;
  overflow: hidden; margin-bottom: 16px;
}
.limit-progress-fill {
  height: 100%; width: 0%; border-radius: 10px;
  background: linear-gradient(90deg, #ff6b6b, #e53e3e);
  transition: width 0.8s ease-out;
}
.limit-explain-link {
  display: block; font-size: 0.85rem; color: var(--accent); text-decoration: underline;
  margin-bottom: 4px;
}

/* ===== BOOKMAKERS ===== */
.bookmaker-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.bookmaker-card .bm-image { width: 100%; background: #ddd; min-height: 120px; display: flex; align-items: center; justify-content: center; color: #777; }
.bookmaker-card .bm-image img { width: 100%; height: auto; display: block; }
.bookmaker-card .bm-body { padding: 14px 16px; }
.bookmaker-card .bm-title { font-size: 1.1rem; font-weight: 700; }
.bookmaker-card .bm-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 4px 0 10px; }
.bookmaker-card .bm-code { display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.bookmaker-card .bm-code span { font-weight: 500; }
.bookmaker-card .bm-code button { background: var(--accent); color: white; border: none; padding: 4px 12px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; }

/* ===== PARAMÈTRES ===== */
.settings-item {
  background: var(--surface); padding: 14px 16px; border-radius: var(--radius);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.settings-item .label { font-weight: 500; }
.settings-item .value { color: var(--text-secondary); font-size: 0.85rem; }
.settings-group { margin-bottom: 18px; }
.guide-highlight-btn {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: white;
  background: linear-gradient(120deg, #1E9BF0, #7b2ff7, #1E9BF0); background-size: 200% 200%;
  animation: guideBtnGradient 3s ease infinite, guideBtnPulse 2s ease-in-out infinite;
  padding: 14px 16px; border-radius: 16px; margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(30,155,240,0.4);
}
.guide-highlight-btn i.fa-play-circle { font-size: 1.6rem; }
.guide-highlight-btn strong { display: block; font-size: 0.92rem; }
.guide-highlight-btn small { display: block; font-size: 0.72rem; opacity: 0.9; font-weight: 400; }
.guide-highlight-btn span { flex: 1; }
.guide-modal-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: white;
  background: linear-gradient(120deg, #1E9BF0, #7b2ff7, #1E9BF0); background-size: 200% 200%;
  animation: guideBtnGradient 3s ease infinite, guideBtnPulse 2s ease-in-out infinite;
  padding: 12px 20px; border-radius: 30px; width: 100%; box-sizing: border-box; margin-top: 8px;
  font-weight: 700; font-size: 0.92rem; box-shadow: 0 8px 20px rgba(30,155,240,0.4);
}
.guide-new-badge {
  background: #ff3b30; color: white; font-size: 0.62rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 0.4px; white-space: nowrap;
}
@keyframes guideBtnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes guideBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.settings-group-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-secondary); margin: 0 4px 8px;
}
.settings-item-sm { padding: 10px 14px; margin-bottom: 6px; border-radius: 12px; }
.settings-item-sm .label { font-size: 0.85rem; }
.settings-item-sm .value { font-size: 0.75rem; }
.settings-item-sm#notif-permission-btn .value.granted,
.settings-item-sm#notif-permission-btn .value.denied { font-size: 0.72rem; }
.settings-logout { justify-content: center; text-align: center; margin-top: 6px; }
.toggle-switch {
  width: 40px; height: 22px; background: var(--border); border-radius: 30px;
  position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle-switch.active { background: var(--accent); }
.toggle-switch::after {
  content: ''; width: 18px; height: 18px; background: white; border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.toggle-switch.active::after { transform: translateX(18px); }

/* ===== VÉRIFICATION COMPTE ===== */
.verify-steps { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 12px; }
.verify-floating-whatsapp {
  position: fixed; bottom: 90px; right: 20px; width: 54px; height: 54px;
  background: #25D366; color: white; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(37,211,102,0.5); z-index: 50; text-decoration: none;
}
.verify-steps .step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.verify-steps .step .num {
  background: var(--accent); color: white; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.verify-steps .step .content { flex: 1; }
.verify-steps .step .content h4 { font-size: 1rem; margin-bottom: 2px; }
.verify-steps .step .content p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== LOADER ===== */
.loader { text-align: center; padding: 16px; color: var(--text-secondary); }
.loader i { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-secondary); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.reactions .reaction.active-reaction {
  background: rgba(30,155,240,0.15);
  border-color: var(--accent);
}

.logo-horizontal-img { height: 30px; width: auto; display: block; }

/* ===== LANDING PAGE ===== */
.landing { overflow-x: hidden; }
.landing-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; box-shadow: var(--shadow);
}
.landing-header .logo-wrapper { display: flex; align-items: center; gap: 10px; }
.landing-header .logo-img {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}
.landing-header .logo { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.landing-header .logo span { color: var(--text); }
.landing-header .btn-primary { padding: 9px 20px; font-size: 0.85rem; width: auto; }

.hero {
  background: linear-gradient(160deg, #1E9BF0 0%, #0E7AC4 100%);
  color: white; text-align: center; padding: 56px 20px 64px;
}
.hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 14px; font-weight: 700; }
.hero h1 .highlight { color: #ffd166; }
.hero p { font-size: 1rem; opacity: 0.92; max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.hero .hero-buttons {
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 4px; width: 100%; max-width: 440px; margin-left: auto; margin-right: auto;
}
.hero .btn-large {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0;
  background: white; color: var(--accent);
  padding: 14px 18px; border-radius: 30px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.2); white-space: nowrap;
}
@media (max-width: 380px) {
  .hero .btn-large { font-size: 0.82rem; padding: 12px 10px; gap: 5px; }
}
.hero .trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px;
}
.hero .trust-badges span {
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px;
  font-size: 0.78rem; display: flex; align-items: center; gap: 6px;
}

.stats-bar {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: 600px; margin: 28px auto 0; padding: 0 16px 4px; position: relative; z-index: 5;
}
.landing-video-frame {
  position: relative; width: 100%; max-width: 240px; aspect-ratio: 9 / 16;
  padding: 4px; box-sizing: border-box; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
}
.landing-video-frame::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, #1E9BF0, #ff6b6b, #ffd166, #28a745, #1E9BF0);
  background-size: 300% 300%; animation: landingBorderSpin 6s linear infinite;
}
.landing-video-frame video {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; border-radius: 18px; display: block; background: #000;
}
@keyframes landingBorderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.landing-signup-btn {
  display: inline-block; background: var(--accent); color: white;
  padding: 14px 36px; border-radius: 30px; font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: 0 8px 24px rgba(30,155,240,0.35);
  animation: landingPulse 1.8s ease-in-out infinite;
}
@keyframes landingPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(30,155,240,0.35); }
  50% { transform: scale(1.045); box-shadow: 0 10px 30px rgba(30,155,240,0.55); }
}

.landing-section { max-width: 600px; margin: 0 auto; padding: 48px 20px; }
.landing-section h2 { font-size: 1.4rem; text-align: center; margin-bottom: 8px; }
.landing-section .subtitle { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }

.steps { display: flex; flex-direction: column; gap: 18px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-item .step-num {
  background: var(--accent); color: white; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.step-item h4 { font-size: 1rem; margin-bottom: 2px; }
.step-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; text-align: center;
}
.feature i { font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; display: block; }
.feature h3 { font-size: 0.92rem; margin-bottom: 4px; }
.feature p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

.trust-section {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-section i { font-size: 1.8rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.trust-section p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.trust-section strong { color: var(--text); }

.faq-item {
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 16px 16px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.final-cta {
  background: linear-gradient(160deg, #1E9BF0 0%, #0E7AC4 100%);
  color: white; text-align: center; padding: 48px 20px;
}
.final-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.final-cta p { opacity: 0.9; margin-bottom: 22px; font-size: 0.92rem; }
.final-cta .btn-large {
  display: inline-block; background: white; color: var(--accent);
  padding: 14px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem; text-decoration: none;
}

.landing footer {
  text-align: center; padding: 24px 20px; color: var(--text-secondary); font-size: 0.78rem;
}
.publicite-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.publicite-banner img, .publicite-banner video {
  width: 100%; height: auto; display: block;
}
/* ===== MODAL NOTIFICATIONS PUSH ===== */
.notif-modal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1E9BF0, #0E7AC4); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin: 0 auto 16px;
}
.settings-item#notif-permission-btn .value.granted { color: #28a745; font-size: 0.8rem; font-weight: 600; }
.settings-item#notif-permission-btn .value.denied { color: #e53e3e; font-size: 0.8rem; font-weight: 600; }

/* ===== ÉDITEUR DE TEXTE ENRICHI (admin) ===== */
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding: 6px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; background: var(--bg);
}
.rte-toolbar select {
  padding: 5px 6px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.8rem;
}
.rte-toolbar button {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; font-size: 0.8rem;
}
.rte-toolbar button:hover { background: var(--border); }
.rte-color-btn {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; font-size: 0.8rem;
}
.rte-color-btn input[type="color"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.rte-editor {
  min-height: 90px; padding: 10px; border: 1px solid var(--border); border-radius: 0 0 8px 8px;
  background: var(--bg); color: var(--text); font-size: 0.9rem; line-height: 1.5; outline: none;
}
.rte-editor blockquote {
  border-left: 3px solid var(--accent); padding-left: 10px; margin: 6px 0; color: var(--text-secondary);
}

/* ===== BOUTONS BOOKMAKER (APK / Inscription) ===== */
.bm-actions-row { display: flex; gap: 8px; margin-top: 12px; }
.bm-action-btn {
  flex: 1; padding: 9px 8px; border-radius: 30px; border: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bm-action-apk { background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; }
.bm-action-signup { background: var(--accent); color: white; }

/* ===== BOUTON WHATSAPP (vérification) ===== */
.whatsapp-send-btn {
  background: #25D366; color: white; border: none; padding: 10px 18px;
  border-radius: 30px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
}
.whatsapp-send-btn:hover { background: #1ebe57; }

/* ===== BOUTONS PARAMÈTRES BRANDÉS ===== */
.settings-item-brand { color: white; border: none; }
.settings-item-brand .label i { margin-right: 8px; }
.settings-item-brand .value i { color: rgba(255,255,255,0.9); }
.settings-item-verify {
  background: linear-gradient(115deg, #0E7AC4, #1E9BF0, #2e8fff);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}
.settings-item-whatsapp { background: #25D366; }
.settings-item-telegram { background: #229ED9; }
.settings-item-install { background: var(--accent); }

/* ===== PROTECTION GLOBALE DES MÉDIAS (aucun téléchargement/copie) ===== */
img, video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* ===== BOUTON ACTUALISER (erreur de chargement) ===== */
.empty-state .retry-btn {
  margin-top: 10px; background: none; color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 14px; border-radius: 20px; font-weight: 500; font-size: 0.75rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.empty-state .retry-btn i { font-size: 0.7rem; }
.empty-state .retry-btn:hover { background: rgba(30,155,240,0.08); }

/* ===== VIGNETTE MÉDIA (admin publications) ===== */
.admin-pub-thumb {
  overflow: hidden; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background-size: cover; background-position: center; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center; background-color: #ddd;
}
.admin-pub-thumb i { color: white; text-shadow: 0 0 4px rgba(0,0,0,0.6); font-size: 1rem; }
.vcover { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #222; }
.vcover-player { width: 100%; display: block; background: #000; }
.admin-pub-thumb .vcover { position: absolute; inset: 0; border-radius: 8px; }
.admin-pub-thumb i { position: relative; z-index: 1; }
.carousel-video-item .vcover { position: absolute; inset: 0; }
.carousel-video-item .carousel-play-icon { position: relative; z-index: 1; }
.admin-pub-thumb-empty { background: var(--bg); color: var(--text-secondary); cursor: default; }
.admin-pub-thumb-empty i { color: var(--text-secondary); text-shadow: none; }

/* ===== SÉLECTEUR DE PUBLICATION (modal commentaires admin) ===== */
.pub-picker-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.9rem;
}
.pub-picker-trigger i { color: var(--text-secondary); }
.pub-picker-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.pub-picker-row:last-child { border-bottom: none; }
.pub-picker-row:hover { background: var(--bg); }

/* ===== CARROUSEL HORIZONTAL (landing) ===== */
.media-carousel {
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.media-carousel::-webkit-scrollbar { display: none; }
.media-carousel-track { display: flex; gap: 12px; padding: 4px 4px 12px; }
.carousel-item {
  flex-shrink: 0; width: 200px; height: 300px; object-fit: cover; border-radius: 14px;
  box-shadow: var(--shadow); background: #ddd;
}
.carousel-loader {
  flex-shrink: 0; width: 50px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.result-media-item { box-shadow: 0 10px 26px rgba(0,0,0,0.38); }
.interface-screenshot {
  height: 360px; width: auto; flex-shrink: 0; border-radius: 14px;
  border: 2px solid var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.landing-section.tight-top { padding-top: 12px; }

/* ===== VIGNETTE VIDÉO DU CARROUSEL (landing) ===== */
.carousel-video-item {
  overflow: hidden; background-size: cover; background-position: center; position: relative;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-play-icon {
  color: white; font-size: 2.6rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.carousel-item { cursor: pointer; }

/* ===== CTA CANAUX WHATSAPP / TELEGRAM (landing, inline) ===== */
.community-cta { text-align: center; margin: 30px auto 0; max-width: 440px; }
.community-cta-label {
  font-size: 0.85rem; font-weight: 500; opacity: 0.92; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.community-cta.on-light .community-cta-label { color: var(--text-secondary); opacity: 1; }
.community-cta-buttons { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
.community-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex: 1 1 0; min-width: 0;
  padding: 12px 16px; border-radius: 30px; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; color: white; box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: communityPulse 2.4s ease-in-out infinite; white-space: nowrap;
}
.community-btn i { font-size: 1.1rem; flex-shrink: 0; }
.community-btn-whatsapp { background: #25D366; }
.community-btn-telegram { background: #229ED9; animation-delay: 0.35s; }
@media (max-width: 380px) {
  .community-btn { font-size: 0.78rem; padding: 11px 10px; gap: 5px; }
}
@keyframes communityPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ===== BOUTONS FLOTTANTS RONDS WHATSAPP / TELEGRAM (landing) ===== */
.landing-floating-channels {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 14px; z-index: 999;
}
.landing-floating-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  animation: floatBounceIn 0.7s cubic-bezier(.34,1.56,.64,1) both, floatAttention 2.8s ease-in-out infinite;
}
.landing-floating-btn.whatsapp { background: #25D366; }
.landing-floating-btn.telegram { background: #229ED9; animation-delay: 0.15s, 1.4s; }
.landing-floating-btn::before, .landing-floating-btn::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; animation: floatRing 2.2s ease-out infinite;
}
.landing-floating-btn::after { animation-delay: 1.1s; }
.landing-floating-btn.whatsapp::before, .landing-floating-btn.whatsapp::after { color: #25D366; }
.landing-floating-btn.telegram::before, .landing-floating-btn.telegram::after { color: #229ED9; }
.landing-floating-btn .fab { position: relative; z-index: 1; }
@keyframes floatBounceIn {
  0% { transform: translateX(90px) scale(0.4); opacity: 0; }
  60% { transform: translateX(-8px) scale(1.1); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes floatRing {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes floatAttention {
  0%, 78%, 100% { transform: scale(1) rotate(0deg); }
  82% { transform: scale(1.14) rotate(-10deg); }
  86% { transform: scale(1.14) rotate(10deg); }
  90% { transform: scale(1.06) rotate(-6deg); }
  94% { transform: scale(1) rotate(0deg); }
}
@media (max-width: 420px) {
  .landing-floating-btn { width: 50px; height: 50px; font-size: 1.4rem; }
}


/* ===== VÉRIFICATION : modales "recharge obligatoire" ===== */
.verify-form-wrap { position: relative; }
.verify-form-guard { position: absolute; inset: 0; z-index: 5; cursor: pointer; background: transparent; }

.recharge-modal {
  background: var(--surface); width: 92%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  border-radius: 18px; border: 2px solid var(--accent); box-shadow: 0 20px 60px rgba(30,155,240,0.35);
  animation: rechargeIn 0.3s ease both; text-align: center;
}
@keyframes rechargeIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.recharge-modal-head { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 22px 20px 18px; }
.recharge-modal-head-alert { background: linear-gradient(135deg, #e8590c, #c92a2a); }
.recharge-icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 10px;
  animation: rechargePulse 1.8s ease-in-out infinite;
}
@keyframes rechargePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.recharge-modal-head h3 { font-size: 1.2rem; margin: 0 0 6px; color: #fff; }
.recharge-modal-head p { font-size: 0.9rem; margin: 0; opacity: 0.95; }
.recharge-modal-body { padding: 18px 18px 20px; }
.recharge-amount-box {
  background: rgba(30,155,240,0.08); border: 2px dashed var(--accent); border-radius: 14px;
  padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px;
}
.recharge-amount-box .label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.recharge-amount-box .amount { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.recharge-amount-box .amount small { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.recharge-points { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.recharge-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; line-height: 1.4; color: var(--text); }
.recharge-points li i {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.recharge-warning {
  background: rgba(220,38,38,0.1); color: #dc2626; border: 1px solid rgba(220,38,38,0.4);
  border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; font-weight: 700; margin-bottom: 14px;
}
.recharge-example-caption { font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 8px; }
.recharge-example-img {
  width: 100%; max-width: 240px; border-radius: 10px; border: 1px solid var(--border);
  display: block; margin: 0 auto 16px;
}
.recharge-btn-yes { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; margin-bottom: 10px; }
.recharge-btn-no {
  width: 100%; padding: 13px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
}
.recharge-btn-no:hover { background: rgba(30,155,240,0.08); }
.step-highlight { animation: stepFlash 1s ease-in-out 3; border-radius: 10px; }
@keyframes stepFlash { 0%,100% { background: transparent; } 50% { background: rgba(30,155,240,0.18); } }


/* ===== Modales recharge : tout tient sur UN écran, sans défilement ===== */
.recharge-modal { display: flex; flex-direction: column; max-height: 96vh; max-height: 96dvh; overflow: hidden; }
.recharge-modal-head { flex: 0 0 auto; padding: 12px 16px 10px; }
.recharge-icon { width: 40px; height: 40px; font-size: 1.15rem; margin-bottom: 6px; }
.recharge-modal-head h3 { font-size: 1.05rem; margin-bottom: 3px; }
.recharge-modal-head p { font-size: 0.8rem; }
.recharge-modal-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 12px; }
.recharge-amount-box { flex: 0 0 auto; padding: 6px 10px; margin-bottom: 8px; flex-direction: row; align-items: center; justify-content: space-between; }
.recharge-amount-box .label { font-size: 0.7rem; text-align: left; }
.recharge-amount-box .amount { font-size: 1.25rem; white-space: nowrap; }
.recharge-points { flex: 0 0 auto; gap: 5px; margin-bottom: 8px; }
.recharge-points li { font-size: 0.8rem; line-height: 1.3; gap: 8px; }
.recharge-points li i { flex: 0 0 20px; height: 20px; font-size: 0.55rem; }
.recharge-warning { flex: 0 0 auto; padding: 6px 10px; font-size: 0.8rem; margin-bottom: 8px; }
.recharge-example-caption { flex: 0 0 auto; font-size: 0.75rem; margin-bottom: 4px; }
/* L'image prend uniquement la place restante : elle rétrécit sur petit écran au lieu de faire défiler */
.recharge-example-img { flex: 1 1 0; min-height: 70px; width: auto; max-width: 100%; max-height: 260px; object-fit: contain; align-self: center; margin: 0 auto 10px; }
.recharge-btn-yes { flex: 0 0 auto; padding: 11px; font-size: 0.92rem; margin-bottom: 7px; }
.recharge-btn-no { flex: 0 0 auto; padding: 10px; font-size: 0.88rem; }


/* Voile de chargement du formulaire de vérification (bookmakers) */
.verify-loading {
  position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--radius); text-align: center;
}
.verify-loading-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; padding: 20px; }
.verify-loading-inner i { font-size: 1.8rem; color: var(--accent); }
