:root {
  --gold: #c8a94f;
  --gold-dark: #9f7f24;
  --gold-soft: #f4e7be;
  --gold-ultra-soft: #fffaf0;
  --white: #ffffff;
  --cream: #fffdf9;
  --line: #ead9a5;
  --text: #2d2415;
  --muted: #7d6a3b;
  --danger: #b83b3b;
  --shadow: 0 10px 30px rgba(180, 144, 52, 0.14);
  --radius: 24px;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-bg-2: #fffefc;
  --input-bg: #fffefb;
}

body.dark-mode {
  --gold: #d8b75d;
  --gold-dark: #f0d78b;
  --gold-soft: #4b3c16;
  --gold-ultra-soft: #2b2210;
  --white: #13110d;
  --cream: #17140f;
  --line: #5d4921;
  --text: #f6edd2;
  --muted: #d9c48a;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  --card-bg: rgba(24, 20, 13, 0.96);
  --card-bg-2: #1d1811;
  --input-bg: #211b13;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, #fff8df 0%, #ffffff 35%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  color: var(--text);
  overflow-x: hidden;
  scrollbar-color: auto;
  scrollbar-width: auto;
}

body {
  min-height: 100vh;
}

body.dark-mode {
  background:
    radial-gradient(circle at top right, rgba(130, 100, 26, 0.28) 0%, #111 28%),
    linear-gradient(180deg, #0f0d0a 0%, #17130e 100%);
  background-attachment: fixed;
}

body.luxury-glow {
  background:
    radial-gradient(circle at top right, rgba(255, 226, 127, 0.28) 0%, transparent 28%),
    radial-gradient(circle at bottom left, rgba(253, 231, 163, 0.18) 0%, transparent 30%),
    linear-gradient(180deg, transparent 0%, transparent 100%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: auto;
}

::-webkit-scrollbar-track {
  background: initial;
}

::-webkit-scrollbar-thumb {
  background: initial;
  border-radius: initial;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  border-bottom: 1px solid rgba(200, 169, 79, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4c670, #a57c1b);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.brand-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-gear-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 18px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.auth-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 22px;
}

.feed-area {
  display: grid;
  gap: 22px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid rgba(200, 169, 79, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-panel,
.auth-side {
  min-height: 520px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  overflow: visible;
}

.panel-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.panel-header p {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero-card,
.home-hero {
  height: 100%;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--card-bg) 88%, white),
      color-mix(in srgb, var(--gold-ultra-soft) 90%, transparent)
    ),
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.22), transparent 40%);
}

.hero-badge {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-card h2,
.home-hero h2 {
  font-size: 2.2rem;
  margin: 0 0 14px;
  line-height: 1.2;
}

.hero-card p,
.home-text {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 560px;
}

.hero-tags,
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.mini-highlight {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.monthly-winner-home-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.22), transparent 38%),
    linear-gradient(135deg, var(--card-bg), var(--gold-ultra-soft));
}

.monthly-winner-home-card::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(200, 169, 79, 0.18);
}

.monthly-winner-home-card::after {
  content: "💎";
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.6rem;
  opacity: 0.75;
}

.monthly-winner-home-decor {
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.monthly-winner-home-image-wrap {
  width: min(280px, 100%);
  height: 180px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.monthly-winner-home-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .monthly-winner-home-image-wrap {
    width: min(240px, 100%);
    height: 160px;
  }
}

.monthly-winner-home-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.monthly-winner-home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

body.dark-mode .monthly-winner-home-card {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.18), transparent 38%),
    linear-gradient(135deg, #1d1811, #2b2210);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
}

.home-cards {
  display: grid;
  gap: 14px;
}

.monthly-ranking-panel {
  margin-top: 22px;
}

.monthly-ranking-help {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 16px;
}

.monthly-ranking-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.monthly-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--gold-ultra-soft);
}

.monthly-ranking-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monthly-ranking-rank {
  min-width: 34px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-dark);
}

.monthly-ranking-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.monthly-ranking-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  flex: none;
}

.monthly-ranking-avatar-btn:hover .monthly-ranking-avatar {
  transform: scale(1.06);
}

.monthly-ranking-avatar-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.monthly-ranking-left strong {
  display: block;
  color: var(--text);
}

.monthly-ranking-left small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.monthly-ranking-likes {
  font-weight: 900;
  color: var(--gold-dark);
  white-space: nowrap;
}

body.dark-mode .monthly-ranking-row {
  background: #211b13;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .monthly-ranking-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .monthly-ranking-likes {
    margin-left: 46px;
  }
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-cols {
  grid-template-columns: 1fr 1fr;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: 1px solid #e7d7a9;
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 0.98rem;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.gold-btn,
.ghost-btn,
.link-btn,
.action-btn,
.comment-btn,
.mini-btn {
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.gold-btn {
  background: linear-gradient(135deg, #dec16c, #b1841d);
  color: white;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
}

.gold-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.mini-btn {
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.sponsor-mini-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #ead9a5;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.96);
  color: #2d2415;
  outline: none;
  resize: vertical;
}

body.luxe-page.dark-mode .sponsor-mini-form textarea {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

.link-btn {
  background: transparent;
  color: var(--gold-dark);
  font-weight: 700;
  padding: 0;
}

.switch-auth {
  margin-top: 18px;
  color: var(--muted);
}

.wide-btn {
  width: 100%;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title-wrap h2 {
  margin: 0;
  white-space: nowrap;
}

.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-top,
.profile-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-large,
.avatar-xl {
  object-fit: cover;
  background: #f8f1db;
  border: 2px solid #f0dfae;
}

.avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.avatar-xl {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.profile-bio-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats,
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-card .stats {
  grid-template-columns: 1fr 1fr;
}

.stat-box {
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  padding: 14px;
}

.stat-box span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-box small {
  color: var(--muted);
}

.stat-link {
  cursor: pointer;
  width: 100%;
  transition: 0.2s ease;
}

.stat-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-link:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}




.posts-grid {
  display: grid;
  gap: 18px;
}

.post-card {
  border: 1px solid rgba(200, 169, 79, 0.18);
  background: var(--card-bg-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(180, 144, 52, 0.08);
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 10px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eedcaa;
  background: #fbf3dd;
}

.post-user h4 {
  margin: 0 0 4px;
}

.post-user p,
.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* PHOTO DU FIL UNIQUEMENT — SANS CONTOUR */
.post-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
  justify-items: center;
}

.post-image-open-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 24px;
}

/* PHOTO DU FIL — TABLETTE */
@media (max-width: 1080px) {
  .post-gallery {
    max-width: 560px;
  }

  .post-image-open-btn {
    border-radius: 22px;
  }

  .post-image {
    max-height: 76vh;
    border-radius: 22px;
  }
}

.post-content {
  padding: 16px 18px 10px;
}

.post-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.post-description {
  margin: 0 0 14px;
  line-height: 1.6;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #fff8e5;
  border: 1px solid #edd9a0;
  color: #8d6c16;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

body.dark-mode .tag {
  background: #2b2313;
  color: #f1db9d;
  border-color: #715923;
}

.post-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 16px;
  flex-wrap: wrap;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid #ecd8a2;
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.action-btn.liked,
.action-btn.favorited {
  background: linear-gradient(135deg, #f7e7b0, #e3be5d);
  color: #6f5108;
}

.comments-box {
  padding: 0 18px 18px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.comment-item {
  background: #fffaf0;
  border: 1px solid #efdba3;
  padding: 12px;
  border-radius: 14px;
}

body.dark-mode .comment-item {
  background: #241c10;
  border-color: #6e5721;
}

.comment-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-input-wrap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-input-wrap input {
  flex: 1;
  border: 1px solid #e7d7a9;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
}

.comment-btn {
  background: linear-gradient(135deg, #e4c670, #b1841d);
  color: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 34px 10px;
  border: 1px dashed #ead8a6;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
}

.mini-post {
  border: 1px solid #edd8a0;
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.delete-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, #dec16c, #b1841d);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
  transition: 0.2s ease;
}

.delete-btn:hover {
  transform: translateY(-1px);
}

body.dark-mode .delete-btn {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
}

 
 
 
.monthly-feature-panel {
  overflow: hidden;
}

.monthly-feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.monthly-feature-card,
.sponsor-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--card-bg) 88%, white),
      color-mix(in srgb, var(--gold-ultra-soft) 92%, transparent)
    );
  box-shadow: var(--shadow);
}

.party-decor {
  font-size: 1.2rem;
  margin-bottom: 12px;
  opacity: 0.95;
}

.small-party {
  font-size: 1.1rem;
}

.monthly-winner-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.monthly-winner-content {
  margin-top: 14px;
}

.winner-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

#monthlyWinnerTitle {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

#monthlyWinnerMeta {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.sponsor-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.sponsor-card p {
  color: var(--muted);
}

.sponsor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sponsor-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--gold-ultra-soft) 84%, transparent);
}

.sponsor-preview strong {
  display: block;
  margin-bottom: 6px;
}

.sponsor-mini-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sponsor-mini-form label {
  font-weight: 700;
  color: #9f7f24;
}

.sponsor-mini-form input {
  width: 100%;
  border: 1px solid #ead9a5;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.96);
  color: #2d2415;
  outline: none;
}

.sponsor-mini-form input:focus {
  border-color: #c8a94f;
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legal-links .link-btn {
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
}

.legal-links span {
  opacity: 0.7;
}

.legal-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 24px));
  max-height: 80vh;
  overflow-y: auto;
  z-index: 999;
  background: var(--card-bg);
}

.legal-panel h2,
.legal-panel h3 {
  margin-top: 0;
}

.legal-panel p {
  color: var(--muted);
  line-height: 1.6;
}

body.show-legal {
  overflow: hidden;
}

body.show-legal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin: auto;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--text);
}

.app-settings-content {
  width: min(460px, calc(100% - 32px));
}

.app-settings-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.app-setting-row {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
}

.app-setting-row strong {
  min-width: 54px;
  text-align: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
}

.app-setting-row.setting-off {
  opacity: 0.72;
  border-style: dashed;
}

.app-setting-row.setting-off strong {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

body.dark-mode .app-setting-row {
  background: #211b13;
  border-color: #5d4921;
  color: #f6edd2;
}

.modal-content p,
.modal-content li {
  color: var(--text);
  line-height: 1.5;
}

.modal-content ul {
  padding-left: 22px;
  margin-bottom: 22px;
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gold-dark);
}

.close:hover {
  color: var(--danger);
}

.subscription-actions {
  margin-top: 24px;
}

.payment-choices {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.payment-choices button {
  width: 100%;
}



#profileEmail,
#profileModalEmail {
  display: none !important;
}



.monthly-alert-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

#monthlyAlertToggleBtn.alert-off {
  opacity: 0.75;
  border-style: dashed;
}


#monthlyAlertModal .monthly-alert-content h2 {
  width: 100%;
  margin: 0 0 14px 0;
  padding: 0 42px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.35rem;
}


#monthlyAlertModal #monthlyAlertTitle {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

#monthlyAlertModal #monthlyAlertMeta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#monthlyAlertModal .monthly-alert-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

#monthlyAlertModal .monthly-alert-actions button {
  width: 100%;
}

.monthly-contest-reminder-content {
  text-align: center;
  overflow: hidden;
}

.contest-reminder-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  font-size: 2.2rem;
  box-shadow: var(--shadow);
}

#monthlyContestReminderTitle {
  margin: 0 0 12px;
  color: var(--text);
}

#monthlyContestReminderText {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

#monthlyContestReminderModal .monthly-alert-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

#monthlyContestReminderModal .monthly-alert-actions button {
  width: 100%;
}

body.dark-mode .contest-reminder-icon {
  background: #2b2210;
  border-color: #5d4921;
}

#successMessage {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #14110a;
  color: #f6e7bd;
  border: 1px solid rgba(200, 169, 79, 0.7);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: calc(100% - 32px);
}

.password-wrap {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

.password-wrap input {
  width: 100% !important;
  padding-right: 60px !important;
  box-sizing: border-box !important;
}

.password-wrap .toggle-password {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--gold-ultra-soft) !important;
  color: var(--gold-dark) !important;

  font-size: 20px !important;
  line-height: 1 !important;

  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

.toggle-password:hover {
  background: var(--gold-soft);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.96);
}

.toggle-password:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.dark-mode .toggle-password {
  background: #2b2210;
  color: #f0d78b;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .password-wrap input {
    padding-right: 62px !important;
  }

  .password-wrap .toggle-password {
    width: 44px !important;
    height: 44px !important;
    right: 8px !important;
    z-index: 9999 !important;
  }
}

/* Croix suppression compte */
.profile-main-panel {
  position: relative;
}

.delete-account-cross {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(184, 59, 59, 0.3);
  background: #fff1f1;
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(184, 59, 59, 0.16);
  z-index: 20;
}

.delete-account-cross:hover {
  transform: rotate(90deg);
  background: #ffe1e1;
  border-color: rgba(184, 59, 59, 0.55);
}

body.dark-mode .delete-account-cross {
  background: #3a1515;
  color: #ff9b9b;
  border-color: rgba(255, 130, 130, 0.3);
}
 
 

/* Mode luxe — Light / Dark propre */
body.luxe-page {
  --luxe-bg:
    radial-gradient(circle at top right, rgba(255, 226, 127, 0.28) 0%, transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fff8e6 100%);
  --luxe-card-bg: rgba(255, 255, 255, 0.94);
  --luxe-card-bg-2: rgba(255, 250, 240, 0.96);
  --luxe-border: rgba(200, 169, 79, 0.45);
  --luxe-text: #2d2415;
  --luxe-muted: #7d6a3b;
  --luxe-input-bg: #fffefb;

  min-height: 100vh;
  margin: 0;
  background: var(--luxe-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--luxe-text);
}

body.luxe-page.dark-mode {
  --luxe-bg:
    radial-gradient(circle at top right, rgba(130, 100, 26, 0.28) 0%, #111 28%),
    linear-gradient(180deg, #0f0d0a 0%, #17130e 100%);
  --luxe-card-bg: rgba(24, 20, 13, 0.96);
  --luxe-card-bg-2: #211b13;
  --luxe-border: #5d4921;
  --luxe-text: #f6edd2;
  --luxe-muted: #d9c48a;
  --luxe-input-bg: #211b13;

  background: var(--luxe-bg);
  background-attachment: fixed;
  color: var(--luxe-text);
}

body.luxe-page .luxe-wrapper {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

body.luxe-page .luxe-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

body.luxe-page .luxe-decor {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

body.luxe-page .luxe-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  align-items: start;
}

body.luxe-page .luxe-card {
  background: var(--luxe-card-bg);
  border: 1px solid var(--luxe-border);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  align-self: start;
}

body.luxe-page .luxe-image {
  width: min(560px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg-2);
  display: block;
  margin: 0 auto;
}

body.luxe-page .luxe-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--luxe-border);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

body.luxe-page.dark-mode .luxe-badge {
  background: #2b2210;
  color: #f0d78b;
}

body.luxe-page .luxe-meta {
  color: var(--luxe-muted);
  line-height: 1.6;
}

body.luxe-page,
body.luxe-page h1,
body.luxe-page h2,
body.luxe-page h3,
body.luxe-page p,
body.luxe-page strong,
body.luxe-page div,
body.luxe-page span,
body.luxe-page label {
  color: var(--luxe-text);
}

body.luxe-page .luxe-meta,
body.luxe-page .sponsor-card p,
body.luxe-page .sponsor-preview,
body.luxe-page small {
  color: var(--luxe-muted);
}

body.luxe-page .sponsor-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg-2);
}

body.luxe-page .sponsor-mini-form label {
  color: var(--gold-dark);
}

body.luxe-page.dark-mode .sponsor-mini-form label {
  color: #f0d78b;
}

body.luxe-page .sponsor-mini-form input {
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  border-color: var(--luxe-border);
}

body.luxe-page .sponsor-mini-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

body.luxe-page .luxe-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: center;
}

body.luxe-page .luxe-actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.luxe-page .ghost-btn {
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

body.luxe-page.dark-mode .ghost-btn {
  color: #f0d78b;
  background: rgba(24, 20, 13, 0.96);
}

body.luxe-page .ghost-btn:hover {
  transform: translateY(-1px);
}
/* Responsive */
@media (max-width: 1080px) {
  .auth-section,
  .dashboard-grid,
  .two-cols,
  .profile-page-grid,
  .home-hero-grid,
  .quick-stats-grid,
  .monthly-feature-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .monthly-winner-image {
    height: 280px;
  }
}

@media (max-width: 980px) {
  body.luxe-page .luxe-grid {
    grid-template-columns: 1fr;
  }

  body.luxe-page .luxe-image {
    width: min(420px, 100%);
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    margin: 0 auto;
  }

  body.luxe-page .luxe-actions-right {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions.open {
    display: flex;
  }

  .topbar {
    padding: 14px;
    flex-wrap: wrap;
  }

  .brand-wrap {
    flex: 1;
  }

  .main-layout {
    padding: 18px 12px 30px;
  }

  .panel {
    padding: 16px;
  }

  .hero-card h2,
  .home-hero h2 {
    font-size: 1.7rem;
  }

  .post-header,
  .comment-input-wrap {
    flex-direction: column;
  }

  .post-gallery {
  grid-template-columns: 1fr;
  max-width: 100%;
  padding: 0 10px;
  justify-items: center;
}

.post-image-open-btn {
  width: fit-content;
  max-width: 100%;
  background: transparent;
  border-radius: 20px;
}

.post-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 20px;
}

  .preview-item {
    width: min(200px, 70vw);
    border-radius: 30px;
  }

   .preview-item img {
    border-radius: 22px;
  }
}



.share-toggle-btn {
  margin-bottom: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 18px;
}

.share-toggle-btn.is-open {
  background: linear-gradient(135deg, #2d2415, #8d6c16);
  color: #fff8dc;
} 

.filter-toggle-btn {
  margin-bottom: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 18px;
}

.filter-toggle-btn.is-open {
  background: linear-gradient(135deg, #2d2415, #8d6c16);
  color: #fff8dc;
} 

/* Alerte photo du mois : image adaptée PC + mobile */
#monthlyAlertModal {
  align-items: center;
  justify-content: center;
}

#monthlyAlertModal .monthly-alert-content {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px;
  box-sizing: border-box;
}

#monthlyAlertModal .monthly-alert-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  margin: 10px auto 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

@media (max-width: 760px) {
  #monthlyAlertModal {
    padding: 10px;
  }

  #monthlyAlertModal .monthly-alert-content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 20px;
  }

  #monthlyAlertModal .monthly-alert-image {
    max-height: 42vh;
  }

  #monthlyAlertModal .monthly-alert-content h2 {
    font-size: 1.15rem;
    padding: 0 34px;
  }
}

/* Boutons dorés uniformes de l'application */
.gold-btn,
.comment-btn,
#subscribeBtn,
#stripePayBtn,
#monthlyAlertViewBtn,
#saveSponsorBtn,
#visitSponsorBtn,
#generateWinnerCouponBtn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  border: 1px solid rgba(200, 169, 79, 0.65);
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.22);
  transition: 0.2s ease;
}

.gold-btn:hover,
.comment-btn:hover,
#subscribeBtn:hover,
#stripePayBtn:hover,
#monthlyAlertViewBtn:hover,
#saveSponsorBtn:hover,
#visitSponsorBtn:hover,
#generateWinnerCouponBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(177, 132, 29, 0.28);
}

.gold-btn:disabled,
.comment-btn:disabled,
#subscribeBtn:disabled,
#stripePayBtn:disabled,
#monthlyAlertViewBtn:disabled,
#saveSponsorBtn:disabled,
#visitSponsorBtn:disabled,
#generateWinnerCouponBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Texte du fichier sélectionné dans le formulaire de publication */
#selectedFileText {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Bouton pour retirer l'image sélectionnée */
#deleteUserPostPhotoBtn {
  margin-top: 4px;
}

/* Textarea de l'espace boutique en mode luxe */
body.luxe-page .sponsor-mini-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
  resize: vertical;
}

body.luxe-page .sponsor-mini-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.mini-post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.edit-post-btn {
  margin-top: 12px;
  background: var(--card-bg);
  color: var(--gold-dark);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.edit-post-btn:hover {
  transform: translateY(-1px);
}

body.dark-mode .edit-post-btn {
  background: #211b13;
  color: #f0d78b;
  border-color: #5d4921;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.bottom-nav button {
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font-weight: 800;
  cursor: pointer;
  border-radius: 16px;
  padding: 9px 6px;
  display: grid;
  gap: 3px;
  place-items: center;
  font-size: 1rem;
}

.bottom-nav button span {
  font-size: 0.75rem;
}

.bottom-nav button:hover,
.bottom-nav button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
}

.main-layout {
  padding-bottom: 110px;
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.messages-sidebar,
.chat-panel {
  min-height: 70vh;
}

.messages-head h2 {
  margin-bottom: 4px;
}

.messages-head p {
  opacity: 0.75;
  margin-top: 0;
}

.chat-search-row {
  display: flex;
  gap: 8px;
}

.chat-search-row input {
  flex: 1;
}

.chat-search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-user-result,
.conversation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(200, 169, 79, 0.25);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.chat-user-result:hover,
.conversation-item:hover,
.conversation-item.active {
  border-color: #c8a94f;
  background: rgba(246, 231, 189, 0.55);
}

.chat-user-result img,
.conversation-item img,
.chat-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-empty-state {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0.7;
}

.chat-box {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 169, 79, 0.25);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.chat-header h3,
.chat-header p {
  margin: 0;
}

.chat-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 4px 14px;
  max-height: 58vh;
}

.chat-message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff7df;
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.chat-message.mine {
  align-self: flex-end;
  background: #f1d98a;
}

.chat-message.other {
  align-self: flex-start;
}

.chat-message small {
  display: block;
  margin-top: 4px;
  opacity: 0.65;
  font-size: 0.75rem;
}

.chat-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(200, 169, 79, 0.25);
  padding-top: 10px;
}

.chat-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-duration-select {
  width: auto;
  min-width: 140px;
  height: 46px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--input-bg);
  color: var(--text);
  font-weight: 800;
  outline: none;
}

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-form input {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-weight: 700;
}

.chat-form input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.poll-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(200, 169, 79, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.poll-message {
  display: grid;
  gap: 8px;
}

.poll-option-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-align: left;
}

.poll-option-btn.voted {
  background: #f1d98a;
  border-color: #c8a94f;
}

.photo-message-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 247, 223, 0.9);
  cursor: pointer;
}

.photo-expired {
  opacity: 0.65;
  font-style: italic;
}

.expiring-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.expiring-photo-viewer img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 20px;
  object-fit: contain;
}

.expiring-photo-viewer strong {
  color: white;
  font-size: 1.2rem;
}

.soft-separator {
  border: 0;
  border-top: 1px solid rgba(200, 169, 79, 0.25);
  margin: 18px 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 900;
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.92);
  border: 1px solid rgba(200, 169, 79, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 8px;
  display: grid;
  gap: 3px;
  place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 0;
}

.bottom-nav button span {
  font-size: 0.76rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .bottom-nav {
    width: calc(100% - 12px);
    bottom: 8px;
    gap: 4px;
    padding: 7px;
    border-radius: 28px;
  }

  .bottom-nav button {
    padding: 8px 3px;
    font-size: 0.95rem;
  }

  .bottom-nav button span {
    font-size: 0.62rem;
  }

  .bottom-notifications-badge,
  .bottom-unread-badge {
    top: 2px;
    right: 8px;
  }
}


.bottom-nav button.active {
  background: #f1d98a;
  color: #2c2410;
  font-weight: 700;
}

body {
  padding-bottom: 95px;
}

@media (max-width: 800px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-sidebar,
  .chat-panel {
    min-height: auto;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-messages {
    max-height: 55vh;
  }
}

/* Correction mode sombre barre flottante du bas */
body.dark-mode .bottom-nav {
  background: rgba(24, 20, 13, 0.94);
  border-color: #5d4921;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

body.dark-mode .bottom-nav button {
  color: #d9c48a;
}

body.dark-mode .bottom-nav button:hover,
body.dark-mode .bottom-nav button.active {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
}

body.dark-mode .bottom-nav button span {
  color: inherit;
}

/* Correction mode sombre messagerie */
body.dark-mode .chat-user-result,
body.dark-mode .conversation-item {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-user-result:hover,
body.dark-mode .conversation-item:hover,
body.dark-mode .conversation-item.active {
  background: #2b2210;
  border-color: #d8b75d;
}

body.dark-mode .chat-message {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-message.mine {
  background: #4b3c16;
  color: #f6edd2;
}

body.dark-mode .poll-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .poll-option-btn {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .poll-option-btn.voted {
  background: #4b3c16;
  border-color: #d8b75d;
}

body.dark-mode .chat-duration-select,
body.dark-mode .chat-form input {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-duration-select option {
  background: #17140f;
  color: #f6edd2;
}

body.dark-mode .chat-form input::placeholder {
  color: #d9c48a;
  opacity: 0.75;
}

body.dark-mode .chat-duration-select:focus,
body.dark-mode .chat-form input:focus {
  border-color: #d8b75d;
  box-shadow: 0 0 0 4px rgba(216, 183, 93, 0.12);
}

/* =========================
   MODE LUXE — boutiques sponsorisées
   ========================= */

body.luxe-page #luxeSponsorCard,
body.luxe-page #luxeSponsorAdminCard {
  animation: luxeFadeIn 0.25s ease;
}

@keyframes luxeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Le bon du gagnant prend toute la largeur sous les cartes */
body.luxe-page #winnerCouponBox {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}

/* Zone recherche + menu déroulant boutiques */
body.luxe-page .sponsor-chooser {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg-2);
}

body.luxe-page .sponsor-chooser label {
  font-weight: 800;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

body.luxe-page .sponsor-chooser input,
body.luxe-page .sponsor-chooser select {
  width: 100%;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
}

body.luxe-page .sponsor-chooser input:focus,
body.luxe-page .sponsor-chooser select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

/* Contenu boutique sélectionnée */
body.luxe-page #luxeSponsorContent {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

body.luxe-page #luxeSponsorContent p {
  margin: 0;
  line-height: 1.55;
  color: var(--luxe-muted);
}

body.luxe-page #luxeSponsorContent strong {
  color: var(--luxe-text);
}

body.luxe-page #luxeSponsorContent a,
body.luxe-page #winnerCouponResult a {
  color: var(--gold-dark);
  font-weight: 800;
  word-break: break-word;
}

/* Formulaire espace boutique */
body.luxe-page #luxeSponsorAdminCard .sponsor-mini-form {
  display: grid;
  gap: 10px;
}

body.luxe-page #luxeSponsorAdminCard input,
body.luxe-page #luxeSponsorAdminCard textarea {
  width: 100%;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
}

body.luxe-page #luxeSponsorAdminCard textarea {
  min-height: 90px;
  resize: vertical;
}

body.luxe-page #luxeSponsorAdminCard input:focus,
body.luxe-page #luxeSponsorAdminCard textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

/* Résultat du bon généré */
body.luxe-page #winnerCouponResult {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg);
  color: var(--luxe-text);
}

body.luxe-page #winnerCouponResult div {
  margin-top: 8px;
  line-height: 1.5;
}

body.luxe-page #winnerCouponResult b {
  color: var(--luxe-text);
}

/* Mode sombre luxe */
body.luxe-page.dark-mode .sponsor-chooser {
  background: #211b13;
  border-color: #715923;
}

body.luxe-page.dark-mode .sponsor-chooser label {
  color: #f0d78b;
}

body.luxe-page.dark-mode .sponsor-chooser input,
body.luxe-page.dark-mode .sponsor-chooser select,
body.luxe-page.dark-mode #luxeSponsorAdminCard input,
body.luxe-page.dark-mode #luxeSponsorAdminCard textarea {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.luxe-page.dark-mode #luxeSponsorContent p {
  color: #d9c48a;
}

body.luxe-page.dark-mode #luxeSponsorContent a,
body.luxe-page.dark-mode #winnerCouponResult a {
  color: #f0d78b;
}

body.luxe-page.dark-mode #winnerCouponResult {
  background: #211b13;
  border-color: #715923;
}

/* Boutons du mode luxe */
body.luxe-page #visitSponsorBtn,
body.luxe-page #generateWinnerCouponBtn,
body.luxe-page #saveSponsorBtn {
  text-align: center;
  text-decoration: none;
}

/* Suivi des bons boutique */
body.luxe-page .business-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.luxe-page #toggleShopCouponsFollowBtn {
  width: auto;
}

body.luxe-page #shopCouponsFollowBox {
  margin-top: 16px;
}

body.luxe-page #shopCouponsFollowBox label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--gold-dark);
}

body.luxe-page.dark-mode #shopCouponsFollowBox label {
  color: #f0d78b;
}

body.luxe-page #shopCouponsStatusFilter {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  font-weight: 700;
  outline: none;
}

body.luxe-page #shopCouponsStatusFilter:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

body.luxe-page .shop-coupon-row {
  padding: 14px;
  border: 1px solid var(--luxe-border);
  border-radius: 18px;
  margin-top: 10px;
  background: var(--luxe-card-bg);
}

body.luxe-page .shop-coupon-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--luxe-text);
}

body.luxe-page .shop-coupon-row div {
  margin-top: 6px;
  line-height: 1.5;
  color: var(--luxe-muted);
}

body.luxe-page .shop-coupon-row b {
  color: var(--luxe-text);
}

@media (max-width: 760px) {
  body.luxe-page .business-status-head {
    align-items: stretch;
  }

  body.luxe-page #toggleShopCouponsFollowBtn {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 760px) {
  body.luxe-page .sponsor-chooser {
    padding: 12px;
    border-radius: 18px;
  }

  body.luxe-page #winnerCouponBox {
    margin-top: 0;
  }

  body.luxe-page #luxeSponsorContent {
    font-size: 0.95rem;
  }
}

.chat-safety-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.chat-message-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  opacity: 0.85;
}

.chat-message-actions .mini-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  cursor: pointer;
}

.chat-message-actions .mini-btn:hover {
  background: rgba(200, 169, 79, 0.16);
}

.chat-message-content {
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================
   GROUPES MESSAGERIE
   ========================= */

.group-creator-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(200, 169, 79, 0.35);
  border-radius: 18px;
  background: rgba(246, 231, 189, 0.22);
}

.group-creator-box strong {
  display: block;
  margin-bottom: 10px;
}

.group-draft-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.group-draft-members p {
  width: 100%;
  margin: 0 0 4px;
}

.group-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f6e7bd;
  color: #3b2f12;
  font-size: 0.9rem;
  font-weight: 700;
}

.group-member-chip button {
  border: none;
  background: transparent;
  color: #7a1d1d;
  font-weight: 900;
  cursor: pointer;
}

/* Correction affichage résultats recherche utilisateurs */
.chat-search-results .chat-user-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  cursor: default;
}

.chat-search-results .chat-user-result img {
  width: 46px;
  height: 46px;
}

.chat-user-result-info p {
  margin: 3px 0 0;
  opacity: 0.75;
  font-size: 0.85rem;
}

.chat-user-result-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chat-user-result-actions .mini-btn,
.group-creator-box .ghost-btn,
.chat-safety-actions .ghost-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-weight: 800;
}

.chat-user-result-actions .mini-btn:hover,
.group-creator-box .ghost-btn:hover,
.chat-safety-actions .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
}

/* Conversation groupe */
.conversation-item p {
  word-break: break-word;
}

.chat-header {
  flex-wrap: wrap;
}

.chat-safety-actions {
  margin-left: auto;
}

/* Messages groupe plus lisibles */
.chat-message-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message small {
  word-break: break-word;
}

/* Mode sombre groupes */
body.dark-mode .group-creator-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .group-member-chip {
  background: #2b2210;
  color: #f6edd2;
}

body.dark-mode .group-member-chip button {
  color: #ff9b9b;
}

body.dark-mode .chat-user-result-actions .mini-btn,
body.dark-mode .group-creator-box .ghost-btn,
body.dark-mode .chat-safety-actions .ghost-btn {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .chat-search-results .chat-user-result {
    grid-template-columns: 42px 1fr;
  }

  .chat-user-result-actions {
    flex-direction: column;
  }

  .chat-user-result-actions .mini-btn {
    width: 100%;
  }

  .chat-safety-actions {
    width: 100%;
    margin-left: 0;
  }

  .chat-safety-actions .ghost-btn {
    width: 100%;
  }
}

.toggle-password {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.MENNKAHAPPSfan2-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.MENNKAHAPPSfan2-dialog-box {
  width: min(430px, 100%);
  background: var(--card-bg, #fffaf0);
  color: var(--text, #2b1a1a);
  border: 1px solid var(--line, rgba(120, 90, 30, 0.22));
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow, 0 18px 45px rgba(0, 0, 0, 0.28));
}

.MENNKAHAPPSfan2-dialog-title {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.MENNKAHAPPSfan2-dialog-message {
  margin: 0 0 16px;
  line-height: 1.5;
  font-weight: 700;
}

.MENNKAHAPPSfan2-dialog-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line, rgba(120, 90, 30, 0.22));
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font: inherit;
  outline: none;
}

.MENNKAHAPPSfan2-dialog-textarea {
  min-height: 110px;
  resize: vertical;
}

.MENNKAHAPPSfan2-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dark-mode .MENNKAHAPPSfan2-dialog-box {
  background: #201817;
  color: #fff7e6;
  border-color: rgba(255, 215, 120, 0.22);
}

.dark-mode .MENNKAHAPPSfan2-dialog-input {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e6;
}

@media (max-width: 560px) {
  .MENNKAHAPPSfan2-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONNEXION SIMPLE
   Retire la page de droite
   ========================= */

.auth-section {
  grid-template-columns: minmax(320px, 720px) !important;
  justify-content: center;
}

.auth-side {
  display: none !important;
}

.auth-panel {
  min-height: auto;
  width: 100%;
}

/* Cache le bouton Mode luxe dans l'application */
#themeGlowBtn {
  display: none !important;
}

/* =========================
   ALERTES / NOTIFICATIONS EN HAUT
   ========================= */

.fan2-dialog-overlay,
.MENNKAHAPPSfan2-dialog-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.58) !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;

  padding: calc(env(safe-area-inset-top, 0px) + 18px) 14px 14px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.fan2-dialog-box,
.MENNKAHAPPSfan2-dialog-box {
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 430px !important;

  margin: 0 auto !important;
  position: relative !important;
  transform: none !important;

  background: var(--card-bg, #fffaf0) !important;
  color: var(--text, #2d2415) !important;
  border: 1px solid var(--line, #ead9a5) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32) !important;
}

.fan2-dialog-title,
.MENNKAHAPPSfan2-dialog-title {
  display: block !important;
  margin: 0 0 12px !important;
  color: var(--gold-dark, #9f7f24) !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

.fan2-dialog-message,
.MENNKAHAPPSfan2-dialog-message {
  margin: 0 0 18px !important;
  color: var(--text, #2d2415) !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

.fan2-dialog-input,
.MENNKAHAPPSfan2-dialog-input {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid var(--line, #ead9a5) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 16px !important;
  background: var(--input-bg, #fffefb) !important;
  color: var(--text, #2d2415) !important;
  font: inherit !important;
  outline: none !important;
}

.fan2-dialog-textarea,
.MENNKAHAPPSfan2-dialog-textarea {
  min-height: 110px !important;
  resize: vertical !important;
}

.fan2-dialog-actions,
.MENNKAHAPPSfan2-dialog-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

/* Notifications simples en haut */
#successMessage,
#errorMessage,
.fan2-top-notification {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
  left: 50% !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;

  max-width: calc(100vw - 28px) !important;
  text-align: center !important;
  font-weight: 900 !important;
  border-radius: 18px !important;
  padding: 14px 22px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38) !important;
}

#successMessage {
  background: #14110a !important;
  color: #f6e7bd !important;
  border: 1px solid rgba(200, 169, 79, 0.7) !important;
}

#errorMessage {
  background: #2b1a1a !important;
  color: #fff !important;
  border: 1px solid rgba(255, 180, 180, 0.35) !important;
}

/* Mode sombre */
body.dark-mode .fan2-dialog-box,
body.dark-mode .MENNKAHAPPSfan2-dialog-box {
  background: #201817 !important;
  color: #fff7e6 !important;
  border-color: rgba(255, 215, 120, 0.22) !important;
}

body.dark-mode .fan2-dialog-title,
body.dark-mode .MENNKAHAPPSfan2-dialog-title {
  color: #f0d78b !important;
}

body.dark-mode .fan2-dialog-message,
body.dark-mode .MENNKAHAPPSfan2-dialog-message {
  color: #fff7e6 !important;
}

body.dark-mode .fan2-dialog-input,
body.dark-mode .MENNKAHAPPSfan2-dialog-input {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff7e6 !important;
  border-color: rgba(255, 215, 120, 0.22) !important;
}

@media (max-width: 560px) {
  .fan2-dialog-actions,
  .MENNKAHAPPSfan2-dialog-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .fan2-dialog-actions button,
  .MENNKAHAPPSfan2-dialog-actions button {
    width: 100% !important;
  }
}

/* =========================
   REMONTER INSCRIPTION + CGU / CGV
   ========================= */

.auth-panel {
  min-height: auto !important;
  padding-bottom: 22px !important;
}

/* Formulaire connexion */
#authForm {
  margin-bottom: 10px !important;
}

/* "Pas encore de compte ? S’inscrire" */
.switch-auth {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

/* Liens CGU / CGV */
.legal-links {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Réduit les grands espaces dans le panneau connexion */
.auth-panel .form-grid {
  gap: 12px !important;
}

/* Mobile */
@media (max-width: 760px) {
  .auth-panel {
    padding-bottom: 18px !important;
  }

  .switch-auth {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  .legal-links {
    margin-top: 6px !important;
  }
}

.auth-panel {
  display: block !important;
}

#authForm {
  display: grid !important;
  gap: 12px !important;
}

/* MUSIQUE TYPE TIKTOK — EXTRAIT 30 SECONDES */

.music-trim-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 248, 226, 0.75);
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.music-trim-box input[type="range"] {
  width: 100%;
}

.music-trim-times,
.post-music-extract-time {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.post-music-box {
  margin: 14px 18px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.post-music-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.post-music-player {
  width: 100%;
  margin-top: 8px;
}

body.dark-mode .music-trim-box,
body.dark-mode .post-music-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .post-music-title {
  color: #f6edd2;
}

/* BARRE AUDIO PUBLICATION - VERSION MENNKAHAPPSFAN2 */
.post-music-box {
  margin: 10px 18px 14px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(244, 231, 190, 0.65));
  box-shadow: 0 8px 22px rgba(180, 144, 52, 0.12);
}

.post-music-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 3px;
}

.post-music-extract-time {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.post-music-player {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  accent-color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(200, 169, 79, 0.35),
    0 4px 12px rgba(180, 144, 52, 0.12);
}

/* Chrome / Edge / Safari */
.post-music-player::-webkit-media-controls-panel {
  background:
    linear-gradient(135deg, #fff8e5, #f4e7be);
  border-radius: 999px;
}

.post-music-player::-webkit-media-controls-play-button {
  background-color: rgba(200, 169, 79, 0.25);
  border-radius: 50%;
}

.post-music-player::-webkit-media-controls-current-time-display,
.post-music-player::-webkit-media-controls-time-remaining-display {
  color: #7d5d12;
  font-size: 11px;
  font-weight: 700;
}

.post-music-player::-webkit-media-controls-timeline {
  border-radius: 999px;
  filter: sepia(0.35) saturate(1.8) hue-rotate(345deg);
}

.post-music-player::-webkit-media-controls-volume-slider {
  filter: sepia(0.35) saturate(1.8) hue-rotate(345deg);
}

/* MODE SOMBRE */
body.dark-mode .post-music-box {
  background:
    linear-gradient(135deg, rgba(33, 27, 19, 0.98), rgba(75, 60, 22, 0.55));
  border-color: rgba(216, 183, 93, 0.45);
}

body.dark-mode .post-music-title {
  color: var(--gold-dark);
}

body.dark-mode .post-music-player {
  background: #211b13;
  box-shadow:
    inset 0 0 0 1px rgba(216, 183, 93, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode .post-music-player::-webkit-media-controls-panel {
  background:
    linear-gradient(135deg, #2b2210, #4b3c16);
}

body.dark-mode .post-music-player::-webkit-media-controls-current-time-display,
body.dark-mode .post-music-player::-webkit-media-controls-time-remaining-display {
  color: #f6edd2;
}

/* Mes publications pleine largeur + cartes horizontales */
#myPublicationsPanel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

#myPostsContainer {
  display: grid !important;
  gap: 16px !important;
  width: 100% !important;
}

#myPostsContainer .mini-post {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 22px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "title actions"
    "desc actions"
    "date actions" !important;

  gap: 10px 24px !important;
  align-items: center !important;
}

#myPostsContainer .mini-post > strong {
  grid-area: title !important;
}

#myPostsContainer .mini-post > p {
  grid-area: desc !important;
  margin: 0 !important;
}

#myPostsContainer .mini-post > small {
  grid-area: date !important;
}

#myPostsContainer .mini-post > br {
  display: none !important;
}

#myPostsContainer .mini-post-actions {
  grid-area: actions !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-top: 0 !important;
}

#myPostsContainer .edit-post-btn,
#myPostsContainer .delete-btn {
  margin-top: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  #myPostsContainer .mini-post {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "desc"
      "date"
      "actions" !important;
  }

  #myPostsContainer .mini-post-actions {
    justify-content: stretch !important;
  }

  #myPostsContainer .edit-post-btn,
  #myPostsContainer .delete-btn {
    width: 100% !important;
  }
}

#appNotificationToastStack {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: 18px;
  z-index: 2147483646;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.app-notification-toast {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: color-mix(in srgb, var(--card-bg) 96%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  pointer-events: auto;
  animation: appToastIn 0.25s ease;
}

.app-notification-toast.is-leaving {
  animation: appToastOut 0.22s ease forwards;
}

.app-notification-toast img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

.app-notification-toast-text {
  min-width: 0;
}

.app-notification-toast-text strong {
  display: block;
  color: var(--gold-dark);
  font-weight: 900;
  margin-bottom: 4px;
}

.app-notification-toast-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 700;
}

.app-notification-toast-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.app-notification-toast-close:hover {
  background: var(--gold-ultra-soft);
}

body.dark-mode .app-notification-toast {
  background: rgba(24, 20, 13, 0.96);
  border-color: #5d4921;
}

body.dark-mode .app-notification-toast img {
  border-color: #5d4921;
}

@keyframes appToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 760px) {
  #appNotificationToastStack {
    left: 14px;
    right: 14px;
    width: auto;
  }
}

.ranking-profile-content {
  width: min(430px, calc(100% - 32px));
  text-align: center;
}

.ranking-profile-photo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 8px auto 14px;
  border: 2px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
}

.ranking-profile-content h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.ranking-profile-city {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.ranking-profile-city strong {
  color: var(--gold-dark);
}

.ranking-profile-bio-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
  text-align: left;
}

.ranking-profile-bio-box strong {
  color: var(--gold-dark);
}

.ranking-profile-bio-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

body.dark-mode .ranking-profile-bio-box {
  background: #211b13;
  border-color: #5d4921;
}

.coupon-proof-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

.coupon-proof-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.coupon-proof-box div {
  margin-top: 6px;
}

body.dark-mode .coupon-proof-box,
body.luxe-page.dark-mode .coupon-proof-box {
  background: #211b13;
  border-color: #5d4921;
}

.monthly-winner-home-image {
  cursor: pointer;
}

.monthly-winner-home-image:hover {
  transform: scale(1.02);
}

.monthly-winner-image-modal-content {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  text-align: center;
  overflow: auto;
}

.monthly-winner-full-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 10px auto 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
}

#monthlyWinnerFullTitle {
  margin: 0;
  color: var(--text);
}

@media (max-width: 760px) {
  .monthly-winner-image-modal-content {
    width: calc(100vw - 18px);
    padding: 18px;
    border-radius: 20px;
  }

  .monthly-winner-full-image {
    max-height: 68vh;
  }
}

.conversation-item {
  position: relative;
}

.conversation-item-text {
  min-width: 0;
}

.conversation-item.unread {
  border-color: var(--gold);
  background: var(--gold-ultra-soft);
}

.conversation-item.unread strong {
  color: var(--gold-dark);
}

.conversation-item.unread p {
  color: var(--text);
  font-weight: 800;
}

.conversation-unread-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.18);
}

#bottomMessagesBtn {
  position: relative;
}

.bottom-unread-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(200, 169, 79, 0.2);
}

.chat-message-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-message-row.mine {
  justify-content: flex-end;
}

.chat-message-row.other {
  justify-content: flex-start;
}

.chat-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
  flex: none;
  box-shadow: var(--shadow);
}

body.dark-mode .conversation-item.unread {
  background: #2b2210;
  border-color: #d8b75d;
}

body.dark-mode .chat-message-avatar {
  border-color: #5d4921;
}

.upload-status {
  display: block;
  margin-top: 8px;
  color: var(--gold-dark);
  font-weight: 800;
  line-height: 1.4;
}

.gold-btn.is-loading,
.ghost-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.gold-btn.is-loading::before {
  content: "⏳ ";
}

input:disabled,
button:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.dark-mode .upload-status {
  color: #d8b75d;
}

.big-black-diamond-btn {
  width: 82px;
  height: 58px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), #f5df8a);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  flex: none;
}

.big-black-diamond-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.black-diamond-icon {
  width: 54px;
  height: 42px;
  display: block;
}

.black-diamond-icon polygon {
  fill: #050505;
  stroke: #2a2a2a;
  stroke-width: 2;
}

.black-diamond-icon polygon:nth-child(2),
.black-diamond-icon polygon:nth-child(5) {
  fill: #151515;
}

.black-diamond-icon polygon:nth-child(3),
.black-diamond-icon polygon:nth-child(6) {
  fill: #000000;
}

.black-diamond-icon line {
  stroke: #3a3a3a;
  stroke-width: 2;
}

body.dark-mode .big-black-diamond-btn {
  background: linear-gradient(135deg, #d8b75d, #f5df8a);
  border-color: #d8b75d;
}

@media (max-width: 760px) {
  .big-black-diamond-btn {
    width: 68px;
    height: 54px;
  }

  .black-diamond-icon {
    width: 48px;
    height: 38px;
  }
}

.contest-rules-content {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.contest-rules-header {
  text-align: center;
  margin-bottom: 20px;
}

.contest-rules-diamond {
  width: 86px;
  height: 70px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}

.rules-diamond-icon {
  width: 76px;
  height: 58px;
}

.contest-rules-header h2 {
  margin: 0;
  color: var(--text);
}

.contest-rules-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.contest-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contest-rule-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 35%),
    var(--card-bg);
}

.contest-rule-card strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  margin-bottom: 10px;
}

.contest-rule-card h3 {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 1rem;
}

.contest-rule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.contest-rules-note {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--gold-ultra-soft);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

body.dark-mode .contest-rule-card {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.14), transparent 35%),
    #17140f;
  border-color: #5d4921;
}

body.dark-mode .contest-rules-note {
  background: #211b13;
}

@media (max-width: 760px) {
  .contest-rules-grid {
    grid-template-columns: 1fr;
  }
}

.notifications-layout {
  max-width: 920px;
  margin: 0 auto;
}

.notifications-panel {
  display: grid;
  gap: 16px;
}

.notifications-intro {
  margin: -6px 0 4px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.notifications-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notifications-actions .ghost-btn.is-active {
  background: var(--gold-ultra-soft);
  color: var(--gold-dark);
  border-color: var(--gold);
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(180, 144, 52, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.notification-card.unread {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 34%),
    var(--gold-ultra-soft);
}

.notification-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #f5df8a);
  font-size: 1.35rem;
  flex: none;
}

.notification-card-text {
  min-width: 0;
}

.notification-card-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.notification-card-text p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.notification-card-text small {
  display: block;
  margin-top: 5px;
  color: var(--gold-dark);
  font-weight: 800;
}

.notification-action-label {
  color: var(--gold-dark);
  font-weight: 900;
  white-space: nowrap;
}

.bottom-nav button {
  position: relative;
}

.bottom-notifications-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(200, 169, 79, 0.2);
}

.bottom-nav-alert.has-unread {
  color: var(--gold-dark);
}

body.dark-mode .notification-card {
  background: #17140f;
  border-color: #5d4921;
}

body.dark-mode .notification-card.unread {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.14), transparent 34%),
    #211b13;
  border-color: #d8b75d;
}

@media (max-width: 760px) {
  .notification-card {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .notification-action-label {
    grid-column: auto !important;
    display: inline-block !important;
    white-space: nowrap !important;
  }

  .notifications-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.share-post-btn {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--card-bg), var(--gold-ultra-soft));
}

.share-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shared-post-highlight {
  animation: sharedPostGlow 1.2s ease-in-out 2;
  border-color: var(--gold) !important;
}

@keyframes sharedPostGlow {
  0% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(200, 169, 79, 0.22);
  }

  100% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }
}

/* =====================================================
   POPUP PARTAGE PUBLICATION
===================================================== */

.share-post-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.share-post-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.share-post-box {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 22px;
  color: var(--text);
}

.share-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.share-post-head strong {
  display: block;
  font-size: 1.25rem;
  color: var(--gold-dark);
}

.share-post-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.share-post-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.share-post-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.share-post-preview span {
  font-size: 1.4rem;
}

.share-post-preview p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-weight: 800;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.share-option-btn {
  min-height: 86px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.18), transparent 42%),
    var(--card-bg-2);
  color: var(--text);
  border-radius: 18px;
  padding: 12px 8px;
  display: grid;
  gap: 7px;
  place-items: center;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.share-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.share-option-btn span:first-child,
.share-option-btn::first-letter {
  font-size: 1.3rem;
}

.share-option-btn span {
  font-size: 0.82rem;
  line-height: 1.15;
}

.share-internal-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.share-internal-box > strong {
  display: block;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.share-internal-box > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.share-internal-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.share-internal-search input {
  margin: 0;
}

.share-internal-search .gold-btn {
  width: auto;
  white-space: nowrap;
}

.share-internal-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.share-internal-user {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card-bg-2);
  color: var(--text);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.share-internal-user:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.share-internal-user img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.share-internal-user strong {
  display: block;
}

.share-internal-user small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.share-internal-user em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

.share-internal-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--gold-ultra-soft);
  text-align: center;
  font-weight: 800;
}

.share-post-btn {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 40%),
    var(--card-bg);
}

.share-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shared-post-highlight {
  animation: sharedPostGlow 1.2s ease-in-out 2;
  border-color: var(--gold) !important;
}

@keyframes sharedPostGlow {
  0% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(200, 169, 79, 0.28);
  }

  100% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }
}

@media (max-width: 720px) {
  .share-post-box {
    padding: 18px;
    border-radius: 22px;
  }

  .share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .share-internal-search {
    grid-template-columns: 1fr;
  }

  .share-internal-search .gold-btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-option-btn {
    min-height: 78px;
  }

  .share-internal-user {
    grid-template-columns: auto 1fr;
  }

  .share-internal-user em {
    grid-column: 2;
  }
}

.trends-home-card {
  width: 100%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 120, 0, 0.18), transparent 38%),
    var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.trends-home-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.trends-home-text strong {
  display: block;
  color: var(--text);
}

.trends-home-text p {
  margin: 12px 0 0;
  font-size: 1.2rem;
}

.trends-home-fire {
  min-width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background:
    radial-gradient(circle, rgba(255, 170, 0, 0.25), transparent 65%),
    var(--gold-ultra-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .trends-home-fire {
    min-width: 62px;
    height: 62px;
    font-size: 2.6rem;
    border-radius: 20px;
  }
}

.trends-block h3 {
  margin-bottom: 12px;
}

.trend-row {
  cursor: pointer;
}

.trend-row:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.trend-row em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

/* =========================
   TENDANCES UNIQUEMENT — affichage propre + images réduites
   ========================= */

#trendsPage .trends-block {
  width: 100%;
  max-width: 760px;
  margin-bottom: 26px;
}

#trendsPage #trendsLooksList,
#trendsPage #trendsColorsList,
#trendsPage #trendsItemsList,
#trendsPage #trendsProfilesList {
  display: grid;
  gap: 10px;
  width: 100%;
}

#trendsPage .trend-row {
  width: 100% !important;
  min-height: 76px;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  text-align: left !important;
  overflow: hidden !important;
}

#trendsPage .trend-rank {
  width: 26px;
  min-width: 26px;
  text-align: center;
  font-weight: 900;
  color: var(--text);
}

#trendsPage .trend-thumb {
  width: 72px !important;
  height: 92px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  display: block !important;
}

#trendsPage .trend-avatar {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  display: block !important;
}

#trendsPage .trend-color-dot,
#trendsPage .trend-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

#trendsPage .trend-info {
  flex: 1;
  min-width: 0;
}

#trendsPage .trend-info strong,
#trendsPage .trend-info small {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#trendsPage .trend-info small {
  color: var(--muted);
  font-size: 0.88rem;
}

#trendsPage .trend-row em {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

/* Mode sombre Tendances */
body.dark-mode #trendsPage .trend-row {
  background: #211b13 !important;
  border-color: #5d4921 !important;
  color: #f6edd2 !important;
}

body.dark-mode #trendsPage .trend-rank,
body.dark-mode #trendsPage .trend-info strong {
  color: #f6edd2 !important;
}

body.dark-mode #trendsPage .trend-info small {
  color: #d9c48a !important;
}

body.dark-mode #trendsPage .trend-row em {
  color: #f0d78b !important;
}

body.dark-mode #trendsPage .trend-color-dot,
body.dark-mode #trendsPage .trend-icon {
  background: #2b2210;
  border-color: #5d4921;
}

/* Tablette */
@media (max-width: 980px) {
  #trendsPage .trends-block {
    max-width: 680px;
  }

  #trendsPage .trend-thumb {
    width: 66px !important;
    height: 84px !important;
    min-width: 66px !important;
    max-width: 66px !important;
  }
}

/* Téléphone */
@media (max-width: 760px) {
  #trendsPage .trends-block {
    max-width: 100%;
  }

  #trendsPage .trend-row {
    min-height: 68px;
    gap: 9px !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
  }

  #trendsPage .trend-thumb {
    width: 54px !important;
    height: 70px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    border-radius: 12px !important;
  }

  #trendsPage .trend-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  #trendsPage .trend-rank {
    width: 22px;
    min-width: 22px;
  }

  #trendsPage .trend-info strong {
    font-size: 0.95rem;
  }

  #trendsPage .trend-info small {
    font-size: 0.8rem;
  }
}

/* =========================
   TENDANCES UNIQUEMENT — vraies couleurs des pastilles
   ========================= */

#trendsPage .trend-row[data-trend-open="color"] .trend-color-dot {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(200, 169, 79, 0.45) !important;
}

/* Couleurs principales */
#trendsPage .trend-row[data-trend-value="blanc"] .trend-color-dot {
  background: #ffffff !important;
}

#trendsPage .trend-row[data-trend-value="noir"] .trend-color-dot {
  background: #050505 !important;
}

#trendsPage .trend-row[data-trend-value="gris"] .trend-color-dot {
  background: #808080 !important;
}

#trendsPage .trend-row[data-trend-value="rouge"] .trend-color-dot {
  background: #d71920 !important;
}

#trendsPage .trend-row[data-trend-value="rose"] .trend-color-dot {
  background: #ff7eb6 !important;
}

#trendsPage .trend-row[data-trend-value="bleu"] .trend-color-dot {
  background: #1e63ff !important;
}

#trendsPage .trend-row[data-trend-value="vert"] .trend-color-dot {
  background: #1f9d55 !important;
}

#trendsPage .trend-row[data-trend-value="jaune"] .trend-color-dot {
  background: #ffd400 !important;
}

#trendsPage .trend-row[data-trend-value="orange"] .trend-color-dot {
  background: #ff8a00 !important;
}

#trendsPage .trend-row[data-trend-value="violet"] .trend-color-dot {
  background: #7b2cff !important;
}

#trendsPage .trend-row[data-trend-value="beige"] .trend-color-dot {
  background: #d8c29d !important;
}

#trendsPage .trend-row[data-trend-value="marron"] .trend-color-dot {
  background: #7a4a25 !important;
}

#trendsPage .trend-row[data-trend-value="doré"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="dore"] .trend-color-dot {
  background: linear-gradient(135deg, #fff1a8, #c8a94f, #8a6613) !important;
}

#trendsPage .trend-row[data-trend-value="argent"] .trend-color-dot {
  background: linear-gradient(135deg, #ffffff, #c9c9c9, #777777) !important;
}

/* Couleurs libres fréquentes */
#trendsPage .trend-row[data-trend-value="kaki"] .trend-color-dot {
  background: #6b6f2a !important;
}

#trendsPage .trend-row[data-trend-value="camel"] .trend-color-dot {
  background: #c19a6b !important;
}

#trendsPage .trend-row[data-trend-value="bordeaux"] .trend-color-dot {
  background: #6d071a !important;
}

#trendsPage .trend-row[data-trend-value="marine"] .trend-color-dot {
  background: #001f4d !important;
}

#trendsPage .trend-row[data-trend-value="turquoise"] .trend-color-dot {
  background: #30d5c8 !important;
}

#trendsPage .trend-row[data-trend-value="crème"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="creme"] .trend-color-dot {
  background: #fff4d6 !important;
}

/* Blanc visible en mode clair et sombre */
#trendsPage .trend-row[data-trend-value="blanc"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="crème"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="creme"] .trend-color-dot {
  border: 1px solid #d8cda9 !important;
}

/* Empêche le mode sombre d’écraser les vraies couleurs */
body.dark-mode #trendsPage .trend-row[data-trend-open="color"] .trend-color-dot {
  border-color: rgba(240, 215, 139, 0.65) !important;
}

/* =========================
   TENDANCES UNIQUEMENT — bloquer à 5 cartes visibles
   Looks les plus likés + Profils qui montent
   ========================= */

#trendsPage #trendsLooksList > .trend-row:nth-of-type(n+6),
#trendsPage #trendsProfilesList > .trend-row:nth-of-type(n+6) {
  display: none !important;
}

/* Sécurité : ces deux blocs restent propres même avec beaucoup de données */
#trendsPage #trendsLooksList,
#trendsPage #trendsProfilesList {
  overflow: hidden !important;
}

/* =========================
   TENDANCES PC UNIQUEMENT
   Agrandir légèrement :
   Looks les plus likés + Profils qui montent
   ========================= */

@media (min-width: 981px) {
  #trendsPage #trendsLooksList,
  #trendsPage #trendsProfilesList {
    max-width: 860px;
  }

  #trendsPage #trendsLooksList > .trend-row,
  #trendsPage #trendsProfilesList > .trend-row {
    min-height: 92px !important;
    padding: 14px 18px !important;
    gap: 16px !important;
    border-radius: 22px !important;
  }

  #trendsPage #trendsLooksList .trend-thumb {
    width: 86px !important;
    height: 110px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    border-radius: 16px !important;
  }

  #trendsPage #trendsProfilesList .trend-avatar {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  #trendsPage #trendsLooksList .trend-info strong,
  #trendsPage #trendsProfilesList .trend-info strong {
    font-size: 1.08rem;
  }

  #trendsPage #trendsLooksList .trend-info small,
  #trendsPage #trendsProfilesList .trend-info small {
    font-size: 0.94rem;
  }
}

/* =========================
   PROFIL — Mes publications fermé / ouvert
   ========================= */

#myPostsContainer.my-publications-closed {
  display: none !important;
}

#myPublicationsPanel .section-title-wrap {
  cursor: pointer;
}

#toggleMyPublicationsBtn {
  margin-left: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #toggleMyPublicationsBtn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}

/* =========================
   PROFIL — photo de profil cliquable en plein écran
   ========================= */

#profileAvatar,
#profileModalAvatar {
  cursor: zoom-in;
}

#profileAvatar:focus,
#profileModalAvatar:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* =========================
   FIL — avatar auteur cliquable en plein écran
   ========================= */

#postsContainer .post-avatar-open-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 50%;
  cursor: zoom-in;
  display: inline-flex;
  flex: none;
}

#postsContainer .post-avatar-open-btn img {
  display: block;
}

#postsContainer .post-avatar-open-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.notification-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.notification-delete-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 59, 59, 0.35);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-delete-btn:hover {
  background: var(--danger);
  color: #ffffff;
}

body.dark-mode .notification-delete-btn {
  background: #211b13;
  color: #ffb4b4;
  border-color: #7a4444;
}

body.dark-mode .notification-delete-btn:hover {
  background: #7a2222;
  color: #ffffff;
}

@media (max-width: 760px) {
  .notification-card-actions {
    grid-column: auto !important;
    justify-self: end !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: max-content !important;
  }

  .notification-delete-btn {
    display: inline-flex !important;
    flex: none !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

/* POPUP PHOTO DU FIL — PC TABLETTE MOBILE */
.feed-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.feed-image-lightbox.is-open {
  display: flex;
}

.feed-image-lightbox-content {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

#feedImageLightboxImg {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.feed-image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #2d2415;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.feed-image-lightbox-title {
  max-width: 90%;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

body.feed-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .feed-image-lightbox {
    padding: 12px;
  }

  .feed-image-lightbox-content {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  #feedImageLightboxImg {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 18px;
  }

  .feed-image-lightbox-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

/* PROFILS EN LIGNE — AU-DESSUS DE PARTAGER UNE TENUE */
.feed-online-profiles {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 4px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-online-profiles::-webkit-scrollbar {
  display: none;
}

.feed-online-profile-btn {
  flex: 0 0 auto;
  width: 72px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--text);
}

.feed-online-avatar-wrap {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin: 0 auto 6px;
}

.feed-online-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f8f3e3;
  border: 2px solid #f0dfae;
  box-shadow: 0 8px 20px rgba(180, 144, 52, 0.16);
}

.feed-online-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #31c46b;
  border: 2px solid var(--card-bg);
}

.feed-online-name {
  display: block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

.feed-online-profile-btn:hover .feed-online-avatar {
  transform: scale(1.06);
}

.feed-online-profile-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 18px;
}

body.dark-mode .feed-online-avatar {
  background: #211b13;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .feed-online-profiles {
    gap: 12px;
    margin-bottom: 12px;
    padding: 6px 2px 4px;
  }

  .feed-online-profile-btn {
    width: 64px;
  }

  .feed-online-avatar-wrap,
  .feed-online-avatar {
    width: 56px;
    height: 56px;
  }

  .feed-online-name {
    max-width: 64px;
    font-size: 0.72rem;
  }
}

/* BOUTON MESSAGE — FENÊTRE PROFIL */
.ranking-profile-message-btn {
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;
  font-size: 1rem;
}

.ranking-profile-message-btn.hidden {
  display: none !important;
}

/* Correction profil mobile : éviter l'affichage coupé */
@media (max-width: 760px) {
  .profile-page-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .profile-main-panel,
  .profile-card,
  #profilePage .panel {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .profile-top,
  .profile-modal-head {
    flex-wrap: wrap;
    align-items: center;
  }

  .profile-top > div,
  .profile-modal-head > div {
    min-width: 0;
    max-width: 100%;
  }

  .profile-top h3,
  .profile-modal-head h3,
  .profile-bio-text,
  #profileFavoriteText {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-card .stats,
  .stats {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .stat-box {
    min-width: 0;
  }

  .stat-box span,
  .stat-box small {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .avatar-large,
  .avatar-xl {
    flex: none;
  }

  .delete-account-cross {
    top: 10px;
    right: 10px;
  }
}

/* Correction titre profil mobile : ne plus couper "mois" */
@media (max-width: 760px) {
  .section-title-wrap {
    align-items: flex-start;
    gap: 8px;
  }

  .section-title-wrap h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100%;
    line-height: 1.25;
  }

  .section-line {
    min-width: 24px;
    flex: 1;
  }
}

/* PROFIL — APERÇU PHOTO PLUS PETIT PC / PORTABLE / TABLETTE */
#profileAvatar.avatar-large,
#profileAvatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

#profileModalAvatar.avatar-xl,
#profileModalAvatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: 18px !important;
  object-fit: cover !important;
}

/* TABLETTE / PETIT PC PORTABLE */
@media (max-width: 1080px) {
  #profileAvatar.avatar-large,
  #profileAvatar {
    width: 52px !important;
    height: 52px !important;
  }

  #profileModalAvatar.avatar-xl,
  #profileModalAvatar {
    width: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
  }
}

:root {
  --gold: #c8a94f;
  --gold-dark: #9f7f24;
  --gold-soft: #f4e7be;
  --gold-ultra-soft: #fffaf0;
  --white: #ffffff;
  --cream: #fffdf9;
  --line: #ead9a5;
  --text: #2d2415;
  --muted: #7d6a3b;
  --danger: #b83b3b;
  --shadow: 0 10px 30px rgba(180, 144, 52, 0.14);
  --radius: 24px;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-bg-2: #fffefc;
  --input-bg: #fffefb;
}

body.dark-mode {
  --gold: #d8b75d;
  --gold-dark: #f0d78b;
  --gold-soft: #4b3c16;
  --gold-ultra-soft: #2b2210;
  --white: #13110d;
  --cream: #17140f;
  --line: #5d4921;
  --text: #f6edd2;
  --muted: #d9c48a;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  --card-bg: rgba(24, 20, 13, 0.96);
  --card-bg-2: #1d1811;
  --input-bg: #211b13;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, #fff8df 0%, #ffffff 35%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  color: var(--text);
  overflow-x: hidden;
  scrollbar-color: auto;
  scrollbar-width: auto;
}

body {
  min-height: 100vh;
}

body.dark-mode {
  background:
    radial-gradient(circle at top right, rgba(130, 100, 26, 0.28) 0%, #111 28%),
    linear-gradient(180deg, #0f0d0a 0%, #17130e 100%);
  background-attachment: fixed;
}

body.luxury-glow {
  background:
    radial-gradient(circle at top right, rgba(255, 226, 127, 0.28) 0%, transparent 28%),
    radial-gradient(circle at bottom left, rgba(253, 231, 163, 0.18) 0%, transparent 30%),
    linear-gradient(180deg, transparent 0%, transparent 100%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: auto;
}

::-webkit-scrollbar-track {
  background: initial;
}

::-webkit-scrollbar-thumb {
  background: initial;
  border-radius: initial;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  border-bottom: 1px solid rgba(200, 169, 79, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4c670, #a57c1b);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.brand-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-gear-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 18px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.auth-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 22px;
}

.feed-area {
  display: grid;
  gap: 22px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid rgba(200, 169, 79, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-panel,
.auth-side {
  min-height: 520px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  overflow: visible;
}

.panel-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.panel-header p {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero-card,
.home-hero {
  height: 100%;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--card-bg) 88%, white),
      color-mix(in srgb, var(--gold-ultra-soft) 90%, transparent)
    ),
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.22), transparent 40%);
}

.hero-badge {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-card h2,
.home-hero h2 {
  font-size: 2.2rem;
  margin: 0 0 14px;
  line-height: 1.2;
}

.hero-card p,
.home-text {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 560px;
}

.hero-tags,
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.mini-highlight {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.monthly-winner-home-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.22), transparent 38%),
    linear-gradient(135deg, var(--card-bg), var(--gold-ultra-soft));
}

.monthly-winner-home-card::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(200, 169, 79, 0.18);
}

.monthly-winner-home-card::after {
  content: "💎";
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1.6rem;
  opacity: 0.75;
}

.monthly-winner-home-decor {
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.monthly-winner-home-image-wrap {
  width: min(280px, 100%);
  height: 180px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.monthly-winner-home-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .monthly-winner-home-image-wrap {
    width: min(240px, 100%);
    height: 160px;
  }
}

.monthly-winner-home-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.monthly-winner-home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

body.dark-mode .monthly-winner-home-card {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.18), transparent 38%),
    linear-gradient(135deg, #1d1811, #2b2210);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
}

.home-cards {
  display: grid;
  gap: 14px;
}

.monthly-ranking-panel {
  margin-top: 22px;
}

.monthly-ranking-help {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 16px;
}

.monthly-ranking-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.monthly-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--gold-ultra-soft);
}

.monthly-ranking-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monthly-ranking-rank {
  min-width: 34px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-dark);
}

.monthly-ranking-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.monthly-ranking-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  flex: none;
}

.monthly-ranking-avatar-btn:hover .monthly-ranking-avatar {
  transform: scale(1.06);
}

.monthly-ranking-avatar-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.monthly-ranking-left strong {
  display: block;
  color: var(--text);
}

.monthly-ranking-left small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.monthly-ranking-likes {
  font-weight: 900;
  color: var(--gold-dark);
  white-space: nowrap;
}

body.dark-mode .monthly-ranking-row {
  background: #211b13;
  border-color: #5d4921;
}



@media (max-width: 760px) {
  .monthly-ranking-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .monthly-ranking-likes {
    margin-left: 46px;
  }
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-cols {
  grid-template-columns: 1fr 1fr;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: 1px solid #e7d7a9;
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 0.98rem;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.gold-btn,
.ghost-btn,
.link-btn,
.action-btn,
.comment-btn,
.mini-btn {
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.gold-btn {
  background: linear-gradient(135deg, #dec16c, #b1841d);
  color: white;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
}

.gold-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.mini-btn {
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.sponsor-mini-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #ead9a5;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.96);
  color: #2d2415;
  outline: none;
  resize: vertical;
}

body.luxe-page.dark-mode .sponsor-mini-form textarea {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

.link-btn {
  background: transparent;
  color: var(--gold-dark);
  font-weight: 700;
  padding: 0;
}

.switch-auth {
  margin-top: 18px;
  color: var(--muted);
}

.wide-btn {
  width: 100%;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title-wrap h2 {
  margin: 0;
  white-space: nowrap;
}

.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-top,
.profile-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-large,
.avatar-xl {
  object-fit: cover;
  background: #f8f1db;
  border: 2px solid #f0dfae;
}

.avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.avatar-xl {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.profile-bio-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats,
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-card .stats {
  grid-template-columns: 1fr 1fr;
}

.stat-box {
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  padding: 14px;
}

.stat-box span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-box small {
  color: var(--muted);
}

.stat-link {
  cursor: pointer;
  width: 100%;
  transition: 0.2s ease;
}

.stat-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-link:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}




.posts-grid {
  display: grid;
  gap: 18px;
}

.post-card {
  border: 1px solid rgba(200, 169, 79, 0.18);
  background: var(--card-bg-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(180, 144, 52, 0.08);
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 10px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eedcaa;
  background: #fbf3dd;
}

.post-user h4 {
  margin: 0 0 4px;
}

.post-user p,
.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* PHOTO DU FIL UNIQUEMENT — SANS CONTOUR */
.post-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
  justify-items: center;
}

.post-image-open-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 24px;
}

/* PHOTO DU FIL — TABLETTE */
@media (max-width: 1080px) {
  .post-gallery {
    max-width: 560px;
  }

  .post-image-open-btn {
    border-radius: 22px;
  }

  .post-image {
    max-height: 76vh;
    border-radius: 22px;
  }
}

.post-content {
  padding: 16px 18px 10px;
}

.post-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.post-description {
  margin: 0 0 14px;
  line-height: 1.6;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #fff8e5;
  border: 1px solid #edd9a0;
  color: #8d6c16;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

body.dark-mode .tag {
  background: #2b2313;
  color: #f1db9d;
  border-color: #715923;
}

.post-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 16px;
  flex-wrap: wrap;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid #ecd8a2;
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}

.action-btn.liked,
.action-btn.favorited {
  background: linear-gradient(135deg, #f7e7b0, #e3be5d);
  color: #6f5108;
}

.comments-box {
  padding: 0 18px 18px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.comment-item {
  background: #fffaf0;
  border: 1px solid #efdba3;
  padding: 12px;
  border-radius: 14px;
}

body.dark-mode .comment-item {
  background: #241c10;
  border-color: #6e5721;
}

.comment-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-input-wrap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-input-wrap input {
  flex: 1;
  border: 1px solid #e7d7a9;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
}

.comment-btn {
  background: linear-gradient(135deg, #e4c670, #b1841d);
  color: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 34px 10px;
  border: 1px dashed #ead8a6;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
}

.mini-post {
  border: 1px solid #edd8a0;
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.delete-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, #dec16c, #b1841d);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
  transition: 0.2s ease;
}

.delete-btn:hover {
  transform: translateY(-1px);
}

body.dark-mode .delete-btn {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
}

 
 
 
.monthly-feature-panel {
  overflow: hidden;
}

.monthly-feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.monthly-feature-card,
.sponsor-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--card-bg) 88%, white),
      color-mix(in srgb, var(--gold-ultra-soft) 92%, transparent)
    );
  box-shadow: var(--shadow);
}

.party-decor {
  font-size: 1.2rem;
  margin-bottom: 12px;
  opacity: 0.95;
}

.small-party {
  font-size: 1.1rem;
}

.monthly-winner-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.monthly-winner-content {
  margin-top: 14px;
}

.winner-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

#monthlyWinnerTitle {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

#monthlyWinnerMeta {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.sponsor-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.sponsor-card p {
  color: var(--muted);
}

.sponsor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sponsor-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--gold-ultra-soft) 84%, transparent);
}

.sponsor-preview strong {
  display: block;
  margin-bottom: 6px;
}

.sponsor-mini-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sponsor-mini-form label {
  font-weight: 700;
  color: #9f7f24;
}

.sponsor-mini-form input {
  width: 100%;
  border: 1px solid #ead9a5;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.96);
  color: #2d2415;
  outline: none;
}

.sponsor-mini-form input:focus {
  border-color: #c8a94f;
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legal-links .link-btn {
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
}

.legal-links span {
  opacity: 0.7;
}

.legal-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 24px));
  max-height: 80vh;
  overflow-y: auto;
  z-index: 999;
  background: var(--card-bg);
}

.legal-panel h2,
.legal-panel h3 {
  margin-top: 0;
}

.legal-panel p {
  color: var(--muted);
  line-height: 1.6;
}

body.show-legal {
  overflow: hidden;
}

body.show-legal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin: auto;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--text);
}

.app-settings-content {
  width: min(460px, calc(100% - 32px));
}

.app-settings-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.app-setting-row {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
}

.app-setting-row strong {
  min-width: 54px;
  text-align: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
}

.app-setting-row.setting-off {
  opacity: 0.72;
  border-style: dashed;
}

.app-setting-row.setting-off strong {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

body.dark-mode .app-setting-row {
  background: #211b13;
  border-color: #5d4921;
  color: #f6edd2;
}

.modal-content p,
.modal-content li {
  color: var(--text);
  line-height: 1.5;
}

.modal-content ul {
  padding-left: 22px;
  margin-bottom: 22px;
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gold-dark);
}

.close:hover {
  color: var(--danger);
}

.subscription-actions {
  margin-top: 24px;
}

.payment-choices {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.payment-choices button {
  width: 100%;
}



#profileEmail,
#profileModalEmail {
  display: none !important;
}



.monthly-alert-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

#monthlyAlertToggleBtn.alert-off {
  opacity: 0.75;
  border-style: dashed;
}


#monthlyAlertModal .monthly-alert-content h2 {
  width: 100%;
  margin: 0 0 14px 0;
  padding: 0 42px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.35rem;
}


#monthlyAlertModal #monthlyAlertTitle {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

#monthlyAlertModal #monthlyAlertMeta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#monthlyAlertModal .monthly-alert-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

#monthlyAlertModal .monthly-alert-actions button {
  width: 100%;
}

.monthly-contest-reminder-content {
  text-align: center;
  overflow: hidden;
}

.contest-reminder-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  font-size: 2.2rem;
  box-shadow: var(--shadow);
}

#monthlyContestReminderTitle {
  margin: 0 0 12px;
  color: var(--text);
}

#monthlyContestReminderText {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

#monthlyContestReminderModal .monthly-alert-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

#monthlyContestReminderModal .monthly-alert-actions button {
  width: 100%;
}

body.dark-mode .contest-reminder-icon {
  background: #2b2210;
  border-color: #5d4921;
}

#successMessage {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #14110a;
  color: #f6e7bd;
  border: 1px solid rgba(200, 169, 79, 0.7);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: calc(100% - 32px);
}

.password-wrap {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

.password-wrap input {
  width: 100% !important;
  padding-right: 60px !important;
  box-sizing: border-box !important;
}

.password-wrap .toggle-password {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--gold-ultra-soft) !important;
  color: var(--gold-dark) !important;

  font-size: 20px !important;
  line-height: 1 !important;

  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;

  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

.toggle-password:hover {
  background: var(--gold-soft);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.96);
}

.toggle-password:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.dark-mode .toggle-password {
  background: #2b2210;
  color: #f0d78b;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .password-wrap input {
    padding-right: 62px !important;
  }

  .password-wrap .toggle-password {
    width: 44px !important;
    height: 44px !important;
    right: 8px !important;
    z-index: 9999 !important;
  }
}

/* Croix suppression compte */
.profile-main-panel {
  position: relative;
}

.delete-account-cross {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(184, 59, 59, 0.3);
  background: #fff1f1;
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(184, 59, 59, 0.16);
  z-index: 20;
}

.delete-account-cross:hover {
  transform: rotate(90deg);
  background: #ffe1e1;
  border-color: rgba(184, 59, 59, 0.55);
}

body.dark-mode .delete-account-cross {
  background: #3a1515;
  color: #ff9b9b;
  border-color: rgba(255, 130, 130, 0.3);
}
 
 

/* Mode luxe — Light / Dark propre */
body.luxe-page {
  --luxe-bg:
    radial-gradient(circle at top right, rgba(255, 226, 127, 0.28) 0%, transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fff8e6 100%);
  --luxe-card-bg: rgba(255, 255, 255, 0.94);
  --luxe-card-bg-2: rgba(255, 250, 240, 0.96);
  --luxe-border: rgba(200, 169, 79, 0.45);
  --luxe-text: #2d2415;
  --luxe-muted: #7d6a3b;
  --luxe-input-bg: #fffefb;

  min-height: 100vh;
  margin: 0;
  background: var(--luxe-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--luxe-text);
}

body.luxe-page.dark-mode {
  --luxe-bg:
    radial-gradient(circle at top right, rgba(130, 100, 26, 0.28) 0%, #111 28%),
    linear-gradient(180deg, #0f0d0a 0%, #17130e 100%);
  --luxe-card-bg: rgba(24, 20, 13, 0.96);
  --luxe-card-bg-2: #211b13;
  --luxe-border: #5d4921;
  --luxe-text: #f6edd2;
  --luxe-muted: #d9c48a;
  --luxe-input-bg: #211b13;

  background: var(--luxe-bg);
  background-attachment: fixed;
  color: var(--luxe-text);
}

body.luxe-page .luxe-wrapper {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

body.luxe-page .luxe-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

body.luxe-page .luxe-decor {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

body.luxe-page .luxe-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  align-items: start;
}

body.luxe-page .luxe-card {
  background: var(--luxe-card-bg);
  border: 1px solid var(--luxe-border);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  align-self: start;
}

body.luxe-page .luxe-image {
  width: min(560px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg-2);
  display: block;
  margin: 0 auto;
}

body.luxe-page .luxe-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--luxe-border);
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

body.luxe-page.dark-mode .luxe-badge {
  background: #2b2210;
  color: #f0d78b;
}

body.luxe-page .luxe-meta {
  color: var(--luxe-muted);
  line-height: 1.6;
}

body.luxe-page,
body.luxe-page h1,
body.luxe-page h2,
body.luxe-page h3,
body.luxe-page p,
body.luxe-page strong,
body.luxe-page div,
body.luxe-page span,
body.luxe-page label {
  color: var(--luxe-text);
}

body.luxe-page .luxe-meta,
body.luxe-page .sponsor-card p,
body.luxe-page .sponsor-preview,
body.luxe-page small {
  color: var(--luxe-muted);
}

body.luxe-page .sponsor-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg-2);
}

body.luxe-page .sponsor-mini-form label {
  color: var(--gold-dark);
}

body.luxe-page.dark-mode .sponsor-mini-form label {
  color: #f0d78b;
}

body.luxe-page .sponsor-mini-form input {
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  border-color: var(--luxe-border);
}

body.luxe-page .sponsor-mini-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

body.luxe-page .luxe-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: center;
}

body.luxe-page .luxe-actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.luxe-page .ghost-btn {
  border: 1px solid var(--luxe-border);
  background: var(--luxe-card-bg);
  color: var(--gold-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

body.luxe-page.dark-mode .ghost-btn {
  color: #f0d78b;
  background: rgba(24, 20, 13, 0.96);
}

body.luxe-page .ghost-btn:hover {
  transform: translateY(-1px);
}
/* Responsive */
@media (max-width: 1080px) {
  .auth-section,
  .dashboard-grid,
  .two-cols,
  .profile-page-grid,
  .home-hero-grid,
  .quick-stats-grid,
  .monthly-feature-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .monthly-winner-image {
    height: 280px;
  }
}

@media (max-width: 980px) {
  body.luxe-page .luxe-grid {
    grid-template-columns: 1fr;
  }

  body.luxe-page .luxe-image {
    width: min(420px, 100%);
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    margin: 0 auto;
  }

  body.luxe-page .luxe-actions-right {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions.open {
    display: flex;
  }

  .topbar {
    padding: 14px;
    flex-wrap: wrap;
  }

  .brand-wrap {
    flex: 1;
  }

  .main-layout {
    padding: 18px 12px 30px;
  }

  .panel {
    padding: 16px;
  }

  .hero-card h2,
  .home-hero h2 {
    font-size: 1.7rem;
  }

  .post-header,
  .comment-input-wrap {
    flex-direction: column;
  }

  .post-gallery {
  grid-template-columns: 1fr;
  max-width: 100%;
  padding: 0 10px;
  justify-items: center;
}

.post-image-open-btn {
  width: fit-content;
  max-width: 100%;
  background: transparent;
  border-radius: 20px;
}

.post-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 20px;
}

   #imagePreviewContainer .preview-item {
    width: 96px;
    height: 120px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
  }

  #imagePreviewContainer .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
  }

   #imagePreviewContainer .preview-label {
    display: none;
  }
}


.share-toggle-btn {
  margin-bottom: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 18px;
}

.share-toggle-btn.is-open {
  background: linear-gradient(135deg, #2d2415, #8d6c16);
  color: #fff8dc;
} 

.filter-toggle-btn {
  margin-bottom: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 18px;
}

.filter-toggle-btn.is-open {
  background: linear-gradient(135deg, #2d2415, #8d6c16);
  color: #fff8dc;
} 

/* Alerte photo du mois : image adaptée PC + mobile */
#monthlyAlertModal {
  align-items: center;
  justify-content: center;
}

#monthlyAlertModal .monthly-alert-content {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px;
  box-sizing: border-box;
}

#monthlyAlertModal .monthly-alert-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  margin: 10px auto 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

@media (max-width: 760px) {
  #monthlyAlertModal {
    padding: 10px;
  }

  #monthlyAlertModal .monthly-alert-content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 20px;
  }

  #monthlyAlertModal .monthly-alert-image {
    max-height: 42vh;
  }

  #monthlyAlertModal .monthly-alert-content h2 {
    font-size: 1.15rem;
    padding: 0 34px;
  }
}

/* Boutons dorés uniformes de l'application */
.gold-btn,
.comment-btn,
#subscribeBtn,
#stripePayBtn,
#monthlyAlertViewBtn,
#saveSponsorBtn,
#visitSponsorBtn,
#generateWinnerCouponBtn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  border: 1px solid rgba(200, 169, 79, 0.65);
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.22);
  transition: 0.2s ease;
}

.gold-btn:hover,
.comment-btn:hover,
#subscribeBtn:hover,
#stripePayBtn:hover,
#monthlyAlertViewBtn:hover,
#saveSponsorBtn:hover,
#visitSponsorBtn:hover,
#generateWinnerCouponBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(177, 132, 29, 0.28);
}

.gold-btn:disabled,
.comment-btn:disabled,
#subscribeBtn:disabled,
#stripePayBtn:disabled,
#monthlyAlertViewBtn:disabled,
#saveSponsorBtn:disabled,
#visitSponsorBtn:disabled,
#generateWinnerCouponBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Texte du fichier sélectionné dans le formulaire de publication */
#selectedFileText {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Bouton pour retirer l'image sélectionnée */
#deleteUserPostPhotoBtn {
  margin-top: 4px;
}

/* Textarea de l'espace boutique en mode luxe */
body.luxe-page .sponsor-mini-form textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
  resize: vertical;
}

body.luxe-page .sponsor-mini-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

.mini-post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.edit-post-btn {
  margin-top: 12px;
  background: var(--card-bg);
  color: var(--gold-dark);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.edit-post-btn:hover {
  transform: translateY(-1px);
}

body.dark-mode .edit-post-btn {
  background: #211b13;
  color: #f0d78b;
  border-color: #5d4921;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--card-bg) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.bottom-nav button {
  border: none;
  background: transparent;
  color: var(--gold-dark);
  font-weight: 800;
  cursor: pointer;
  border-radius: 16px;
  padding: 9px 6px;
  display: grid;
  gap: 3px;
  place-items: center;
  font-size: 1rem;
}

.bottom-nav button span {
  font-size: 0.75rem;
}

.bottom-nav button:hover,
.bottom-nav button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
}

.main-layout {
  padding-bottom: 110px;
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.messages-sidebar,
.chat-panel {
  min-height: 70vh;
}

.messages-head h2 {
  margin-bottom: 4px;
}

.messages-head p {
  opacity: 0.75;
  margin-top: 0;
}

.chat-search-row {
  display: flex;
  gap: 8px;
}

.chat-search-row input {
  flex: 1;
}

.chat-search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-user-result,
.conversation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(200, 169, 79, 0.25);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.chat-user-result:hover,
.conversation-item:hover,
.conversation-item.active {
  border-color: #c8a94f;
  background: rgba(246, 231, 189, 0.55);
}

.chat-user-result img,
.conversation-item img,
.chat-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-empty-state {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0.7;
}

.chat-box {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 169, 79, 0.25);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.chat-header h3,
.chat-header p {
  margin: 0;
}

.chat-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 4px 14px;
  max-height: 58vh;
}

.chat-message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff7df;
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.chat-message.mine {
  align-self: flex-end;
  background: #f1d98a;
}

.chat-message.other {
  align-self: flex-start;
}

.chat-message small {
  display: block;
  margin-top: 4px;
  opacity: 0.65;
  font-size: 0.75rem;
}

.chat-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(200, 169, 79, 0.25);
  padding-top: 10px;
}

.chat-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-duration-select {
  width: auto;
  min-width: 140px;
  height: 46px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--input-bg);
  color: var(--text);
  font-weight: 800;
  outline: none;
}

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-form input {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-weight: 700;
}

.chat-form input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.poll-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(200, 169, 79, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.poll-message {
  display: grid;
  gap: 8px;
}

.poll-option-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-align: left;
}

.poll-option-btn.voted {
  background: #f1d98a;
  border-color: #c8a94f;
}

.photo-message-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 247, 223, 0.9);
  cursor: pointer;
}

.photo-expired {
  opacity: 0.65;
  font-style: italic;
}

.expiring-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.expiring-photo-viewer img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 20px;
  object-fit: contain;
}

.expiring-photo-viewer strong {
  color: white;
  font-size: 1.2rem;
}

.soft-separator {
  border: 0;
  border-top: 1px solid rgba(200, 169, 79, 0.25);
  margin: 18px 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 900;
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.92);
  border: 1px solid rgba(200, 169, 79, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 8px;
  display: grid;
  gap: 3px;
  place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 0;
}

.bottom-nav button span {
  font-size: 0.76rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .bottom-nav {
    width: calc(100% - 12px);
    bottom: 8px;
    gap: 4px;
    padding: 7px;
    border-radius: 28px;
  }

  .bottom-nav button {
    padding: 8px 3px;
    font-size: 0.95rem;
  }

  .bottom-nav button span {
    font-size: 0.62rem;
  }

  .bottom-notifications-badge,
  .bottom-unread-badge {
    top: 2px;
    right: 8px;
  }
}


.bottom-nav button.active {
  background: #f1d98a;
  color: #2c2410;
  font-weight: 700;
}

body {
  padding-bottom: 95px;
}

@media (max-width: 800px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-sidebar,
  .chat-panel {
    min-height: auto;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-messages {
    max-height: 55vh;
  }
}

/* Correction mode sombre barre flottante du bas */
body.dark-mode .bottom-nav {
  background: rgba(24, 20, 13, 0.94);
  border-color: #5d4921;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

body.dark-mode .bottom-nav button {
  color: #d9c48a;
}

body.dark-mode .bottom-nav button:hover,
body.dark-mode .bottom-nav button.active {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
}

body.dark-mode .bottom-nav button span {
  color: inherit;
}

/* Correction mode sombre messagerie */
body.dark-mode .chat-user-result,
body.dark-mode .conversation-item {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-user-result:hover,
body.dark-mode .conversation-item:hover,
body.dark-mode .conversation-item.active {
  background: #2b2210;
  border-color: #d8b75d;
}

body.dark-mode .chat-message {
  background: #211b13;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-message.mine {
  background: #4b3c16;
  color: #f6edd2;
}

body.dark-mode .poll-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .poll-option-btn {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .poll-option-btn.voted {
  background: #4b3c16;
  border-color: #d8b75d;
}

body.dark-mode .chat-duration-select,
body.dark-mode .chat-form input {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.dark-mode .chat-duration-select option {
  background: #17140f;
  color: #f6edd2;
}

body.dark-mode .chat-form input::placeholder {
  color: #d9c48a;
  opacity: 0.75;
}

body.dark-mode .chat-duration-select:focus,
body.dark-mode .chat-form input:focus {
  border-color: #d8b75d;
  box-shadow: 0 0 0 4px rgba(216, 183, 93, 0.12);
}

/* =========================
   MODE LUXE — boutiques sponsorisées
   ========================= */

body.luxe-page #luxeSponsorCard,
body.luxe-page #luxeSponsorAdminCard {
  animation: luxeFadeIn 0.25s ease;
}

@keyframes luxeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Le bon du gagnant prend toute la largeur sous les cartes */
body.luxe-page #winnerCouponBox {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}

/* Zone recherche + menu déroulant boutiques */
body.luxe-page .sponsor-chooser {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg-2);
}

body.luxe-page .sponsor-chooser label {
  font-weight: 800;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

body.luxe-page .sponsor-chooser input,
body.luxe-page .sponsor-chooser select {
  width: 100%;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
}

body.luxe-page .sponsor-chooser input:focus,
body.luxe-page .sponsor-chooser select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

/* Contenu boutique sélectionnée */
body.luxe-page #luxeSponsorContent {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

body.luxe-page #luxeSponsorContent p {
  margin: 0;
  line-height: 1.55;
  color: var(--luxe-muted);
}

body.luxe-page #luxeSponsorContent strong {
  color: var(--luxe-text);
}

body.luxe-page #luxeSponsorContent a,
body.luxe-page #winnerCouponResult a {
  color: var(--gold-dark);
  font-weight: 800;
  word-break: break-word;
}

/* Formulaire espace boutique */
body.luxe-page #luxeSponsorAdminCard .sponsor-mini-form {
  display: grid;
  gap: 10px;
}

body.luxe-page #luxeSponsorAdminCard input,
body.luxe-page #luxeSponsorAdminCard textarea {
  width: 100%;
  border: 1px solid var(--luxe-border);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 0.96rem;
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  outline: none;
}

body.luxe-page #luxeSponsorAdminCard textarea {
  min-height: 90px;
  resize: vertical;
}

body.luxe-page #luxeSponsorAdminCard input:focus,
body.luxe-page #luxeSponsorAdminCard textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

/* Résultat du bon généré */
body.luxe-page #winnerCouponResult {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed var(--luxe-border);
  background: var(--luxe-card-bg);
  color: var(--luxe-text);
}

body.luxe-page #winnerCouponResult div {
  margin-top: 8px;
  line-height: 1.5;
}

body.luxe-page #winnerCouponResult b {
  color: var(--luxe-text);
}

/* Mode sombre luxe */
body.luxe-page.dark-mode .sponsor-chooser {
  background: #211b13;
  border-color: #715923;
}

body.luxe-page.dark-mode .sponsor-chooser label {
  color: #f0d78b;
}

body.luxe-page.dark-mode .sponsor-chooser input,
body.luxe-page.dark-mode .sponsor-chooser select,
body.luxe-page.dark-mode #luxeSponsorAdminCard input,
body.luxe-page.dark-mode #luxeSponsorAdminCard textarea {
  background: #17140f;
  color: #f6edd2;
  border-color: #5d4921;
}

body.luxe-page.dark-mode #luxeSponsorContent p {
  color: #d9c48a;
}

body.luxe-page.dark-mode #luxeSponsorContent a,
body.luxe-page.dark-mode #winnerCouponResult a {
  color: #f0d78b;
}

body.luxe-page.dark-mode #winnerCouponResult {
  background: #211b13;
  border-color: #715923;
}

/* Boutons du mode luxe */
body.luxe-page #visitSponsorBtn,
body.luxe-page #generateWinnerCouponBtn,
body.luxe-page #saveSponsorBtn {
  text-align: center;
  text-decoration: none;
}

/* Suivi des bons boutique */
body.luxe-page .business-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.luxe-page #toggleShopCouponsFollowBtn {
  width: auto;
}

body.luxe-page #shopCouponsFollowBox {
  margin-top: 16px;
}

body.luxe-page #shopCouponsFollowBox label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--gold-dark);
}

body.luxe-page.dark-mode #shopCouponsFollowBox label {
  color: #f0d78b;
}

body.luxe-page #shopCouponsStatusFilter {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--luxe-border);
  background: var(--luxe-input-bg);
  color: var(--luxe-text);
  font-weight: 700;
  outline: none;
}

body.luxe-page #shopCouponsStatusFilter:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.12);
}

body.luxe-page .shop-coupon-row {
  padding: 14px;
  border: 1px solid var(--luxe-border);
  border-radius: 18px;
  margin-top: 10px;
  background: var(--luxe-card-bg);
}

body.luxe-page .shop-coupon-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--luxe-text);
}

body.luxe-page .shop-coupon-row div {
  margin-top: 6px;
  line-height: 1.5;
  color: var(--luxe-muted);
}

body.luxe-page .shop-coupon-row b {
  color: var(--luxe-text);
}

@media (max-width: 760px) {
  body.luxe-page .business-status-head {
    align-items: stretch;
  }

  body.luxe-page #toggleShopCouponsFollowBtn {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 760px) {
  body.luxe-page .sponsor-chooser {
    padding: 12px;
    border-radius: 18px;
  }

  body.luxe-page #winnerCouponBox {
    margin-top: 0;
  }

  body.luxe-page #luxeSponsorContent {
    font-size: 0.95rem;
  }
}

.chat-safety-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.chat-message-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  opacity: 0.85;
}

.chat-message-actions .mini-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  cursor: pointer;
}

.chat-message-actions .mini-btn:hover {
  background: rgba(200, 169, 79, 0.16);
}

.chat-message-content {
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================
   GROUPES MESSAGERIE
   ========================= */

.group-creator-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(200, 169, 79, 0.35);
  border-radius: 18px;
  background: rgba(246, 231, 189, 0.22);
}

.group-creator-box strong {
  display: block;
  margin-bottom: 10px;
}

.group-draft-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.group-draft-members p {
  width: 100%;
  margin: 0 0 4px;
}

.group-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f6e7bd;
  color: #3b2f12;
  font-size: 0.9rem;
  font-weight: 700;
}

.group-member-chip button {
  border: none;
  background: transparent;
  color: #7a1d1d;
  font-weight: 900;
  cursor: pointer;
}

/* Correction affichage résultats recherche utilisateurs */
.chat-search-results .chat-user-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  cursor: default;
}

.chat-search-results .chat-user-result img {
  width: 46px;
  height: 46px;
}

.chat-user-result-info p {
  margin: 3px 0 0;
  opacity: 0.75;
  font-size: 0.85rem;
}

.chat-user-result-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chat-user-result-actions .mini-btn,
.group-creator-box .ghost-btn,
.chat-safety-actions .ghost-btn {
  border: 1px solid rgba(200, 169, 79, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-weight: 800;
}

.chat-user-result-actions .mini-btn:hover,
.group-creator-box .ghost-btn:hover,
.chat-safety-actions .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(177, 132, 29, 0.2);
}

/* Conversation groupe */
.conversation-item p {
  word-break: break-word;
}

.chat-header {
  flex-wrap: wrap;
}

.chat-safety-actions {
  margin-left: auto;
}

/* Messages groupe plus lisibles */
.chat-message-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message small {
  word-break: break-word;
}

/* Mode sombre groupes */
body.dark-mode .group-creator-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .group-member-chip {
  background: #2b2210;
  color: #f6edd2;
}

body.dark-mode .group-member-chip button {
  color: #ff9b9b;
}

body.dark-mode .chat-user-result-actions .mini-btn,
body.dark-mode .group-creator-box .ghost-btn,
body.dark-mode .chat-safety-actions .ghost-btn {
  background: linear-gradient(135deg, #d8b75d, #9f7f24);
  color: #17140f;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .chat-search-results .chat-user-result {
    grid-template-columns: 42px 1fr;
  }

  .chat-user-result-actions {
    flex-direction: column;
  }

  .chat-user-result-actions .mini-btn {
    width: 100%;
  }

  .chat-safety-actions {
    width: 100%;
    margin-left: 0;
  }

  .chat-safety-actions .ghost-btn {
    width: 100%;
  }
}

.toggle-password {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.MENNKAHAPPSfan2-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.MENNKAHAPPSfan2-dialog-box {
  width: min(430px, 100%);
  background: var(--card-bg, #fffaf0);
  color: var(--text, #2b1a1a);
  border: 1px solid var(--line, rgba(120, 90, 30, 0.22));
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow, 0 18px 45px rgba(0, 0, 0, 0.28));
}

.MENNKAHAPPSfan2-dialog-title {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.MENNKAHAPPSfan2-dialog-message {
  margin: 0 0 16px;
  line-height: 1.5;
  font-weight: 700;
}

.MENNKAHAPPSfan2-dialog-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line, rgba(120, 90, 30, 0.22));
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font: inherit;
  outline: none;
}

.MENNKAHAPPSfan2-dialog-textarea {
  min-height: 110px;
  resize: vertical;
}

.MENNKAHAPPSfan2-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dark-mode .MENNKAHAPPSfan2-dialog-box {
  background: #201817;
  color: #fff7e6;
  border-color: rgba(255, 215, 120, 0.22);
}

.dark-mode .MENNKAHAPPSfan2-dialog-input {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e6;
}

@media (max-width: 560px) {
  .MENNKAHAPPSfan2-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONNEXION SIMPLE
   Retire la page de droite
   ========================= */

.auth-section {
  grid-template-columns: minmax(320px, 720px) !important;
  justify-content: center;
}

.auth-side {
  display: none !important;
}

.auth-panel {
  min-height: auto;
  width: 100%;
}

/* Cache le bouton Mode luxe dans l'application */
#themeGlowBtn {
  display: none !important;
}

/* =========================
   ALERTES / NOTIFICATIONS EN HAUT
   ========================= */

.fan2-dialog-overlay,
.MENNKAHAPPSfan2-dialog-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(0, 0, 0, 0.58) !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;

  padding: calc(env(safe-area-inset-top, 0px) + 18px) 14px 14px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.fan2-dialog-box,
.MENNKAHAPPSfan2-dialog-box {
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 430px !important;

  margin: 0 auto !important;
  position: relative !important;
  transform: none !important;

  background: var(--card-bg, #fffaf0) !important;
  color: var(--text, #2d2415) !important;
  border: 1px solid var(--line, #ead9a5) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32) !important;
}

.fan2-dialog-title,
.MENNKAHAPPSfan2-dialog-title {
  display: block !important;
  margin: 0 0 12px !important;
  color: var(--gold-dark, #9f7f24) !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

.fan2-dialog-message,
.MENNKAHAPPSfan2-dialog-message {
  margin: 0 0 18px !important;
  color: var(--text, #2d2415) !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

.fan2-dialog-input,
.MENNKAHAPPSfan2-dialog-input {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid var(--line, #ead9a5) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 16px !important;
  background: var(--input-bg, #fffefb) !important;
  color: var(--text, #2d2415) !important;
  font: inherit !important;
  outline: none !important;
}

.fan2-dialog-textarea,
.MENNKAHAPPSfan2-dialog-textarea {
  min-height: 110px !important;
  resize: vertical !important;
}

.fan2-dialog-actions,
.MENNKAHAPPSfan2-dialog-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

/* Notifications simples en haut */
#successMessage,
#errorMessage,
.fan2-top-notification {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
  left: 50% !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;

  max-width: calc(100vw - 28px) !important;
  text-align: center !important;
  font-weight: 900 !important;
  border-radius: 18px !important;
  padding: 14px 22px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38) !important;
}

#successMessage {
  background: #14110a !important;
  color: #f6e7bd !important;
  border: 1px solid rgba(200, 169, 79, 0.7) !important;
}

#errorMessage {
  background: #2b1a1a !important;
  color: #fff !important;
  border: 1px solid rgba(255, 180, 180, 0.35) !important;
}

/* Mode sombre */
body.dark-mode .fan2-dialog-box,
body.dark-mode .MENNKAHAPPSfan2-dialog-box {
  background: #201817 !important;
  color: #fff7e6 !important;
  border-color: rgba(255, 215, 120, 0.22) !important;
}

body.dark-mode .fan2-dialog-title,
body.dark-mode .MENNKAHAPPSfan2-dialog-title {
  color: #f0d78b !important;
}

body.dark-mode .fan2-dialog-message,
body.dark-mode .MENNKAHAPPSfan2-dialog-message {
  color: #fff7e6 !important;
}

body.dark-mode .fan2-dialog-input,
body.dark-mode .MENNKAHAPPSfan2-dialog-input {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff7e6 !important;
  border-color: rgba(255, 215, 120, 0.22) !important;
}

@media (max-width: 560px) {
  .fan2-dialog-actions,
  .MENNKAHAPPSfan2-dialog-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .fan2-dialog-actions button,
  .MENNKAHAPPSfan2-dialog-actions button {
    width: 100% !important;
  }
}

/* =========================
   REMONTER INSCRIPTION + CGU / CGV
   ========================= */

.auth-panel {
  min-height: auto !important;
  padding-bottom: 22px !important;
}

/* Formulaire connexion */
#authForm {
  margin-bottom: 10px !important;
}

/* "Pas encore de compte ? S’inscrire" */
.switch-auth {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

/* Liens CGU / CGV */
.legal-links {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Réduit les grands espaces dans le panneau connexion */
.auth-panel .form-grid {
  gap: 12px !important;
}

/* Mobile */
@media (max-width: 760px) {
  .auth-panel {
    padding-bottom: 18px !important;
  }

  .switch-auth {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }

  .legal-links {
    margin-top: 6px !important;
  }
}

.auth-panel {
  display: block !important;
}

#authForm {
  display: grid !important;
  gap: 12px !important;
}

/* MUSIQUE TYPE TIKTOK — EXTRAIT 30 SECONDES */

.music-trim-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 248, 226, 0.75);
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.music-trim-box input[type="range"] {
  width: 100%;
}

.music-trim-times,
.post-music-extract-time {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.post-music-box {
  margin: 14px 18px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 169, 79, 0.25);
}

.post-music-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.post-music-player {
  width: 100%;
  margin-top: 8px;
}

body.dark-mode .music-trim-box,
body.dark-mode .post-music-box {
  background: #211b13;
  border-color: #5d4921;
}

body.dark-mode .post-music-title {
  color: #f6edd2;
}

/* BARRE AUDIO PUBLICATION - VERSION MENNKAHAPPSFAN2 */
.post-music-box {
  margin: 10px 18px 14px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(200, 169, 79, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(244, 231, 190, 0.65));
  box-shadow: 0 8px 22px rgba(180, 144, 52, 0.12);
}

.post-music-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 3px;
}

.post-music-extract-time {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.post-music-player {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 999px;
  background: var(--gold-ultra-soft);
  accent-color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(200, 169, 79, 0.35),
    0 4px 12px rgba(180, 144, 52, 0.12);
}

/* Chrome / Edge / Safari */
.post-music-player::-webkit-media-controls-panel {
  background:
    linear-gradient(135deg, #fff8e5, #f4e7be);
  border-radius: 999px;
}

.post-music-player::-webkit-media-controls-play-button {
  background-color: rgba(200, 169, 79, 0.25);
  border-radius: 50%;
}

.post-music-player::-webkit-media-controls-current-time-display,
.post-music-player::-webkit-media-controls-time-remaining-display {
  color: #7d5d12;
  font-size: 11px;
  font-weight: 700;
}

.post-music-player::-webkit-media-controls-timeline {
  border-radius: 999px;
  filter: sepia(0.35) saturate(1.8) hue-rotate(345deg);
}

.post-music-player::-webkit-media-controls-volume-slider {
  filter: sepia(0.35) saturate(1.8) hue-rotate(345deg);
}

/* MODE SOMBRE */
body.dark-mode .post-music-box {
  background:
    linear-gradient(135deg, rgba(33, 27, 19, 0.98), rgba(75, 60, 22, 0.55));
  border-color: rgba(216, 183, 93, 0.45);
}

body.dark-mode .post-music-title {
  color: var(--gold-dark);
}

body.dark-mode .post-music-player {
  background: #211b13;
  box-shadow:
    inset 0 0 0 1px rgba(216, 183, 93, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode .post-music-player::-webkit-media-controls-panel {
  background:
    linear-gradient(135deg, #2b2210, #4b3c16);
}

body.dark-mode .post-music-player::-webkit-media-controls-current-time-display,
body.dark-mode .post-music-player::-webkit-media-controls-time-remaining-display {
  color: #f6edd2;
}

/* Mes publications pleine largeur + cartes horizontales */
#myPublicationsPanel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

#myPostsContainer {
  display: grid !important;
  gap: 16px !important;
  width: 100% !important;
}

#myPostsContainer .mini-post {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 22px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "title actions"
    "desc actions"
    "date actions" !important;

  gap: 10px 24px !important;
  align-items: center !important;
}

#myPostsContainer .mini-post > strong {
  grid-area: title !important;
}

#myPostsContainer .mini-post > p {
  grid-area: desc !important;
  margin: 0 !important;
}

#myPostsContainer .mini-post > small {
  grid-area: date !important;
}

#myPostsContainer .mini-post > br {
  display: none !important;
}

#myPostsContainer .mini-post-actions {
  grid-area: actions !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-top: 0 !important;
}

#myPostsContainer .edit-post-btn,
#myPostsContainer .delete-btn {
  margin-top: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  #myPostsContainer .mini-post {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "desc"
      "date"
      "actions" !important;
  }

  #myPostsContainer .mini-post-actions {
    justify-content: stretch !important;
  }

  #myPostsContainer .edit-post-btn,
  #myPostsContainer .delete-btn {
    width: 100% !important;
  }
}

#appNotificationToastStack {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: 18px;
  z-index: 2147483646;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.app-notification-toast {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: color-mix(in srgb, var(--card-bg) 96%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  pointer-events: auto;
  animation: appToastIn 0.25s ease;
}

.app-notification-toast.is-leaving {
  animation: appToastOut 0.22s ease forwards;
}

.app-notification-toast img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

.app-notification-toast-text {
  min-width: 0;
}

.app-notification-toast-text strong {
  display: block;
  color: var(--gold-dark);
  font-weight: 900;
  margin-bottom: 4px;
}

.app-notification-toast-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 700;
}

.app-notification-toast-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.app-notification-toast-close:hover {
  background: var(--gold-ultra-soft);
}

body.dark-mode .app-notification-toast {
  background: rgba(24, 20, 13, 0.96);
  border-color: #5d4921;
}

body.dark-mode .app-notification-toast img {
  border-color: #5d4921;
}

@keyframes appToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 760px) {
  #appNotificationToastStack {
    left: 14px;
    right: 14px;
    width: auto;
  }
}

.ranking-profile-content {
  width: min(430px, calc(100% - 32px));
  text-align: center;
}

.ranking-profile-photo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 8px auto 14px;
  border: 2px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
}

.ranking-profile-content h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.ranking-profile-city {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.ranking-profile-city strong {
  color: var(--gold-dark);
}

.ranking-profile-bio-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
  text-align: left;
}

.ranking-profile-bio-box strong {
  color: var(--gold-dark);
}

.ranking-profile-bio-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

body.dark-mode .ranking-profile-bio-box {
  background: #211b13;
  border-color: #5d4921;
}

.coupon-proof-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

.coupon-proof-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.coupon-proof-box div {
  margin-top: 6px;
}

body.dark-mode .coupon-proof-box,
body.luxe-page.dark-mode .coupon-proof-box {
  background: #211b13;
  border-color: #5d4921;
}

.monthly-winner-home-image {
  cursor: pointer;
}

.monthly-winner-home-image:hover {
  transform: scale(1.02);
}

.monthly-winner-image-modal-content {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  text-align: center;
  overflow: auto;
}

.monthly-winner-full-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 10px auto 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  box-shadow: var(--shadow);
}

#monthlyWinnerFullTitle {
  margin: 0;
  color: var(--text);
}

@media (max-width: 760px) {
  .monthly-winner-image-modal-content {
    width: calc(100vw - 18px);
    padding: 18px;
    border-radius: 20px;
  }

  .monthly-winner-full-image {
    max-height: 68vh;
  }
}

.conversation-item {
  position: relative;
}

.conversation-item-text {
  min-width: 0;
}

.conversation-item.unread {
  border-color: var(--gold);
  background: var(--gold-ultra-soft);
}

.conversation-item.unread strong {
  color: var(--gold-dark);
}

.conversation-item.unread p {
  color: var(--text);
  font-weight: 800;
}

.conversation-unread-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 0 4px rgba(200, 169, 79, 0.18);
}

#bottomMessagesBtn {
  position: relative;
}

.bottom-unread-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(200, 169, 79, 0.2);
}

.chat-message-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-message-row.mine {
  justify-content: flex-end;
}

.chat-message-row.other {
  justify-content: flex-start;
}

.chat-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
  flex: none;
  box-shadow: var(--shadow);
}

body.dark-mode .conversation-item.unread {
  background: #2b2210;
  border-color: #d8b75d;
}

body.dark-mode .chat-message-avatar {
  border-color: #5d4921;
}

.upload-status {
  display: block;
  margin-top: 8px;
  color: var(--gold-dark);
  font-weight: 800;
  line-height: 1.4;
}

.gold-btn.is-loading,
.ghost-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.gold-btn.is-loading::before {
  content: "⏳ ";
}

input:disabled,
button:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.dark-mode .upload-status {
  color: #d8b75d;
}

.big-black-diamond-btn {
  width: 82px;
  height: 58px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), #f5df8a);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  flex: none;
}

.big-black-diamond-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.black-diamond-icon {
  width: 54px;
  height: 42px;
  display: block;
}

.black-diamond-icon polygon {
  fill: #050505;
  stroke: #2a2a2a;
  stroke-width: 2;
}

.black-diamond-icon polygon:nth-child(2),
.black-diamond-icon polygon:nth-child(5) {
  fill: #151515;
}

.black-diamond-icon polygon:nth-child(3),
.black-diamond-icon polygon:nth-child(6) {
  fill: #000000;
}

.black-diamond-icon line {
  stroke: #3a3a3a;
  stroke-width: 2;
}

body.dark-mode .big-black-diamond-btn {
  background: linear-gradient(135deg, #d8b75d, #f5df8a);
  border-color: #d8b75d;
}

@media (max-width: 760px) {
  .big-black-diamond-btn {
    width: 68px;
    height: 54px;
  }

  .black-diamond-icon {
    width: 48px;
    height: 38px;
  }
}

.contest-rules-content {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.contest-rules-header {
  text-align: center;
  margin-bottom: 20px;
}

.contest-rules-diamond {
  width: 86px;
  height: 70px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}

.rules-diamond-icon {
  width: 76px;
  height: 58px;
}

.contest-rules-header h2 {
  margin: 0;
  color: var(--text);
}

.contest-rules-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.contest-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contest-rule-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 35%),
    var(--card-bg);
}

.contest-rule-card strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  margin-bottom: 10px;
}

.contest-rule-card h3 {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 1rem;
}

.contest-rule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.contest-rules-note {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--gold-ultra-soft);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

body.dark-mode .contest-rule-card {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.14), transparent 35%),
    #17140f;
  border-color: #5d4921;
}

body.dark-mode .contest-rules-note {
  background: #211b13;
}

@media (max-width: 760px) {
  .contest-rules-grid {
    grid-template-columns: 1fr;
  }
}

.notifications-layout {
  max-width: 920px;
  margin: 0 auto;
}

.notifications-panel {
  display: grid;
  gap: 16px;
}

.notifications-intro {
  margin: -6px 0 4px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.notifications-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notifications-actions .ghost-btn.is-active {
  background: var(--gold-ultra-soft);
  color: var(--gold-dark);
  border-color: var(--gold);
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(180, 144, 52, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.notification-card.unread {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 34%),
    var(--gold-ultra-soft);
}

.notification-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #f5df8a);
  font-size: 1.35rem;
  flex: none;
}

.notification-card-text {
  min-width: 0;
}

.notification-card-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.notification-card-text p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.notification-card-text small {
  display: block;
  margin-top: 5px;
  color: var(--gold-dark);
  font-weight: 800;
}

.notification-action-label {
  color: var(--gold-dark);
  font-weight: 900;
  white-space: nowrap;
}

.bottom-nav button {
  position: relative;
}

.bottom-notifications-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(200, 169, 79, 0.2);
}

.bottom-nav-alert.has-unread {
  color: var(--gold-dark);
}

body.dark-mode .notification-card {
  background: #17140f;
  border-color: #5d4921;
}

body.dark-mode .notification-card.unread {
  background:
    radial-gradient(circle at top right, rgba(216, 183, 93, 0.14), transparent 34%),
    #211b13;
  border-color: #d8b75d;
}

@media (max-width: 760px) {
  .notification-card {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .notification-action-label {
    grid-column: auto !important;
    display: inline-block !important;
    white-space: nowrap !important;
  }

  .notifications-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.share-post-btn {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--card-bg), var(--gold-ultra-soft));
}

.share-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shared-post-highlight {
  animation: sharedPostGlow 1.2s ease-in-out 2;
  border-color: var(--gold) !important;
}

@keyframes sharedPostGlow {
  0% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(200, 169, 79, 0.22);
  }

  100% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }
}

/* =====================================================
   POPUP PARTAGE PUBLICATION
===================================================== */

.share-post-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.share-post-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.share-post-box {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 22px;
  color: var(--text);
}

.share-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.share-post-head strong {
  display: block;
  font-size: 1.25rem;
  color: var(--gold-dark);
}

.share-post-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.share-post-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.share-post-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: var(--gold-ultra-soft);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.share-post-preview span {
  font-size: 1.4rem;
}

.share-post-preview p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-weight: 800;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.share-option-btn {
  min-height: 86px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.18), transparent 42%),
    var(--card-bg-2);
  color: var(--text);
  border-radius: 18px;
  padding: 12px 8px;
  display: grid;
  gap: 7px;
  place-items: center;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.share-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.share-option-btn span:first-child,
.share-option-btn::first-letter {
  font-size: 1.3rem;
}

.share-option-btn span {
  font-size: 0.82rem;
  line-height: 1.15;
}

.share-internal-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.share-internal-box > strong {
  display: block;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.share-internal-box > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.share-internal-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.share-internal-search input {
  margin: 0;
}

.share-internal-search .gold-btn {
  width: auto;
  white-space: nowrap;
}

.share-internal-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.share-internal-user {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card-bg-2);
  color: var(--text);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.share-internal-user:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.share-internal-user img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.share-internal-user strong {
  display: block;
}

.share-internal-user small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.share-internal-user em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

.share-internal-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--gold-ultra-soft);
  text-align: center;
  font-weight: 800;
}

.share-post-btn {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 79, 0.16), transparent 40%),
    var(--card-bg);
}

.share-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shared-post-highlight {
  animation: sharedPostGlow 1.2s ease-in-out 2;
  border-color: var(--gold) !important;
}

@keyframes sharedPostGlow {
  0% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(200, 169, 79, 0.28);
  }

  100% {
    box-shadow: 0 0 0 rgba(200, 169, 79, 0);
  }
}

@media (max-width: 720px) {
  .share-post-box {
    padding: 18px;
    border-radius: 22px;
  }

  .share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .share-internal-search {
    grid-template-columns: 1fr;
  }

  .share-internal-search .gold-btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-option-btn {
    min-height: 78px;
  }

  .share-internal-user {
    grid-template-columns: auto 1fr;
  }

  .share-internal-user em {
    grid-column: 2;
  }
}

.trends-home-card {
  width: 100%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 120, 0, 0.18), transparent 38%),
    var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.trends-home-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.trends-home-text strong {
  display: block;
  color: var(--text);
}

.trends-home-text p {
  margin: 12px 0 0;
  font-size: 1.2rem;
}

.trends-home-fire {
  min-width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background:
    radial-gradient(circle, rgba(255, 170, 0, 0.25), transparent 65%),
    var(--gold-ultra-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .trends-home-fire {
    min-width: 62px;
    height: 62px;
    font-size: 2.6rem;
    border-radius: 20px;
  }
}

.trends-block h3 {
  margin-bottom: 12px;
}

.trend-row {
  cursor: pointer;
}

.trend-row:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.trend-row em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

/* =========================
   TENDANCES UNIQUEMENT — affichage propre + images réduites
   ========================= */

#trendsPage .trends-block {
  width: 100%;
  max-width: 760px;
  margin-bottom: 26px;
}

#trendsPage #trendsLooksList,
#trendsPage #trendsColorsList,
#trendsPage #trendsItemsList,
#trendsPage #trendsProfilesList {
  display: grid;
  gap: 10px;
  width: 100%;
}

#trendsPage .trend-row {
  width: 100% !important;
  min-height: 76px;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  text-align: left !important;
  overflow: hidden !important;
}

#trendsPage .trend-rank {
  width: 26px;
  min-width: 26px;
  text-align: center;
  font-weight: 900;
  color: var(--text);
}

#trendsPage .trend-thumb {
  width: 72px !important;
  height: 92px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  display: block !important;
}

#trendsPage .trend-avatar {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1px solid var(--line) !important;
  background: var(--input-bg) !important;
  display: block !important;
}

#trendsPage .trend-color-dot,
#trendsPage .trend-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--gold-ultra-soft);
}

#trendsPage .trend-info {
  flex: 1;
  min-width: 0;
}

#trendsPage .trend-info strong,
#trendsPage .trend-info small {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#trendsPage .trend-info small {
  color: var(--muted);
  font-size: 0.88rem;
}

#trendsPage .trend-row em {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-weight: 900;
  color: var(--gold-dark);
}

/* Mode sombre Tendances */
body.dark-mode #trendsPage .trend-row {
  background: #211b13 !important;
  border-color: #5d4921 !important;
  color: #f6edd2 !important;
}

body.dark-mode #trendsPage .trend-rank,
body.dark-mode #trendsPage .trend-info strong {
  color: #f6edd2 !important;
}

body.dark-mode #trendsPage .trend-info small {
  color: #d9c48a !important;
}

body.dark-mode #trendsPage .trend-row em {
  color: #f0d78b !important;
}

body.dark-mode #trendsPage .trend-color-dot,
body.dark-mode #trendsPage .trend-icon {
  background: #2b2210;
  border-color: #5d4921;
}

/* Tablette */
@media (max-width: 980px) {
  #trendsPage .trends-block {
    max-width: 680px;
  }

  #trendsPage .trend-thumb {
    width: 66px !important;
    height: 84px !important;
    min-width: 66px !important;
    max-width: 66px !important;
  }
}

/* Téléphone */
@media (max-width: 760px) {
  #trendsPage .trends-block {
    max-width: 100%;
  }

  #trendsPage .trend-row {
    min-height: 68px;
    gap: 9px !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
  }

  #trendsPage .trend-thumb {
    width: 54px !important;
    height: 70px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    border-radius: 12px !important;
  }

  #trendsPage .trend-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  #trendsPage .trend-rank {
    width: 22px;
    min-width: 22px;
  }

  #trendsPage .trend-info strong {
    font-size: 0.95rem;
  }

  #trendsPage .trend-info small {
    font-size: 0.8rem;
  }
}

/* =========================
   TENDANCES UNIQUEMENT — vraies couleurs des pastilles
   ========================= */

#trendsPage .trend-row[data-trend-open="color"] .trend-color-dot {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(200, 169, 79, 0.45) !important;
}

/* Couleurs principales */
#trendsPage .trend-row[data-trend-value="blanc"] .trend-color-dot {
  background: #ffffff !important;
}

#trendsPage .trend-row[data-trend-value="noir"] .trend-color-dot {
  background: #050505 !important;
}

#trendsPage .trend-row[data-trend-value="gris"] .trend-color-dot {
  background: #808080 !important;
}

#trendsPage .trend-row[data-trend-value="rouge"] .trend-color-dot {
  background: #d71920 !important;
}

#trendsPage .trend-row[data-trend-value="rose"] .trend-color-dot {
  background: #ff7eb6 !important;
}

#trendsPage .trend-row[data-trend-value="bleu"] .trend-color-dot {
  background: #1e63ff !important;
}

#trendsPage .trend-row[data-trend-value="vert"] .trend-color-dot {
  background: #1f9d55 !important;
}

#trendsPage .trend-row[data-trend-value="jaune"] .trend-color-dot {
  background: #ffd400 !important;
}

#trendsPage .trend-row[data-trend-value="orange"] .trend-color-dot {
  background: #ff8a00 !important;
}

#trendsPage .trend-row[data-trend-value="violet"] .trend-color-dot {
  background: #7b2cff !important;
}

#trendsPage .trend-row[data-trend-value="beige"] .trend-color-dot {
  background: #d8c29d !important;
}

#trendsPage .trend-row[data-trend-value="marron"] .trend-color-dot {
  background: #7a4a25 !important;
}

#trendsPage .trend-row[data-trend-value="doré"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="dore"] .trend-color-dot {
  background: linear-gradient(135deg, #fff1a8, #c8a94f, #8a6613) !important;
}

#trendsPage .trend-row[data-trend-value="argent"] .trend-color-dot {
  background: linear-gradient(135deg, #ffffff, #c9c9c9, #777777) !important;
}

/* Couleurs libres fréquentes */
#trendsPage .trend-row[data-trend-value="kaki"] .trend-color-dot {
  background: #6b6f2a !important;
}

#trendsPage .trend-row[data-trend-value="camel"] .trend-color-dot {
  background: #c19a6b !important;
}

#trendsPage .trend-row[data-trend-value="bordeaux"] .trend-color-dot {
  background: #6d071a !important;
}

#trendsPage .trend-row[data-trend-value="marine"] .trend-color-dot {
  background: #001f4d !important;
}

#trendsPage .trend-row[data-trend-value="turquoise"] .trend-color-dot {
  background: #30d5c8 !important;
}

#trendsPage .trend-row[data-trend-value="crème"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="creme"] .trend-color-dot {
  background: #fff4d6 !important;
}

/* Blanc visible en mode clair et sombre */
#trendsPage .trend-row[data-trend-value="blanc"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="crème"] .trend-color-dot,
#trendsPage .trend-row[data-trend-value="creme"] .trend-color-dot {
  border: 1px solid #d8cda9 !important;
}

/* Empêche le mode sombre d’écraser les vraies couleurs */
body.dark-mode #trendsPage .trend-row[data-trend-open="color"] .trend-color-dot {
  border-color: rgba(240, 215, 139, 0.65) !important;
}

/* =========================
   TENDANCES UNIQUEMENT — bloquer à 5 cartes visibles
   Looks les plus likés + Profils qui montent
   ========================= */

#trendsPage #trendsLooksList > .trend-row:nth-of-type(n+6),
#trendsPage #trendsProfilesList > .trend-row:nth-of-type(n+6) {
  display: none !important;
}

/* Sécurité : ces deux blocs restent propres même avec beaucoup de données */
#trendsPage #trendsLooksList,
#trendsPage #trendsProfilesList {
  overflow: hidden !important;
}

/* =========================
   TENDANCES PC UNIQUEMENT
   Agrandir légèrement :
   Looks les plus likés + Profils qui montent
   ========================= */

@media (min-width: 981px) {
  #trendsPage #trendsLooksList,
  #trendsPage #trendsProfilesList {
    max-width: 860px;
  }

  #trendsPage #trendsLooksList > .trend-row,
  #trendsPage #trendsProfilesList > .trend-row {
    min-height: 92px !important;
    padding: 14px 18px !important;
    gap: 16px !important;
    border-radius: 22px !important;
  }

  #trendsPage #trendsLooksList .trend-thumb {
    width: 86px !important;
    height: 110px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    border-radius: 16px !important;
  }

  #trendsPage #trendsProfilesList .trend-avatar {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  #trendsPage #trendsLooksList .trend-info strong,
  #trendsPage #trendsProfilesList .trend-info strong {
    font-size: 1.08rem;
  }

  #trendsPage #trendsLooksList .trend-info small,
  #trendsPage #trendsProfilesList .trend-info small {
    font-size: 0.94rem;
  }
}

/* =========================
   PROFIL — Mes publications fermé / ouvert
   ========================= */

#myPostsContainer.my-publications-closed {
  display: none !important;
}

#myPublicationsPanel .section-title-wrap {
  cursor: pointer;
}

#toggleMyPublicationsBtn {
  margin-left: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #toggleMyPublicationsBtn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}

/* =========================
   PROFIL — photo de profil cliquable en plein écran
   ========================= */

#profileAvatar,
#profileModalAvatar {
  cursor: zoom-in;
}

#profileAvatar:focus,
#profileModalAvatar:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* =========================
   FIL — avatar auteur cliquable en plein écran
   ========================= */

#postsContainer .post-avatar-open-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 50%;
  cursor: zoom-in;
  display: inline-flex;
  flex: none;
}

#postsContainer .post-avatar-open-btn img {
  display: block;
}

#postsContainer .post-avatar-open-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.notification-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.notification-delete-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 59, 59, 0.35);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-delete-btn:hover {
  background: var(--danger);
  color: #ffffff;
}

body.dark-mode .notification-delete-btn {
  background: #211b13;
  color: #ffb4b4;
  border-color: #7a4444;
}

body.dark-mode .notification-delete-btn:hover {
  background: #7a2222;
  color: #ffffff;
}

@media (max-width: 760px) {
  .notification-card-actions {
    grid-column: auto !important;
    justify-self: end !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: max-content !important;
  }

  .notification-delete-btn {
    display: inline-flex !important;
    flex: none !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

/* POPUP PHOTO DU FIL — PC TABLETTE MOBILE */
.feed-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.feed-image-lightbox.is-open {
  display: flex;
}

.feed-image-lightbox-content {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

#feedImageLightboxImg {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.feed-image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #2d2415;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.feed-image-lightbox-title {
  max-width: 90%;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

body.feed-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .feed-image-lightbox {
    padding: 12px;
  }

  .feed-image-lightbox-content {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  #feedImageLightboxImg {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 18px;
  }

  .feed-image-lightbox-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

/* PROFILS EN LIGNE — AU-DESSUS DE PARTAGER UNE TENUE */
.feed-online-profiles {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 4px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-online-profiles::-webkit-scrollbar {
  display: none;
}

.feed-online-profile-btn {
  flex: 0 0 auto;
  width: 72px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--text);
}

.feed-online-avatar-wrap {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin: 0 auto 6px;
}

.feed-online-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #f8f3e3;
  border: 2px solid #f0dfae;
  box-shadow: 0 8px 20px rgba(180, 144, 52, 0.16);
}

.feed-online-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #31c46b;
  border: 2px solid var(--card-bg);
}

.feed-online-name {
  display: block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

.feed-online-profile-btn:hover .feed-online-avatar {
  transform: scale(1.06);
}

.feed-online-profile-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 18px;
}

body.dark-mode .feed-online-avatar {
  background: #211b13;
  border-color: #5d4921;
}

@media (max-width: 760px) {
  .feed-online-profiles {
    gap: 12px;
    margin-bottom: 12px;
    padding: 6px 2px 4px;
  }

  .feed-online-profile-btn {
    width: 64px;
  }

  .feed-online-avatar-wrap,
  .feed-online-avatar {
    width: 56px;
    height: 56px;
  }

  .feed-online-name {
    max-width: 64px;
    font-size: 0.72rem;
  }
}

/* BOUTON MESSAGE — FENÊTRE PROFIL */
.ranking-profile-message-btn {
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;
  font-size: 1rem;
}

.ranking-profile-message-btn.hidden {
  display: none !important;
}

/* Correction profil mobile : éviter l'affichage coupé */
@media (max-width: 760px) {
  .profile-page-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .profile-main-panel,
  .profile-card,
  #profilePage .panel {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .profile-top,
  .profile-modal-head {
    flex-wrap: wrap;
    align-items: center;
  }

  .profile-top > div,
  .profile-modal-head > div {
    min-width: 0;
    max-width: 100%;
  }

  .profile-top h3,
  .profile-modal-head h3,
  .profile-bio-text,
  #profileFavoriteText {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-card .stats,
  .stats {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .stat-box {
    min-width: 0;
  }

  .stat-box span,
  .stat-box small {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .avatar-large,
  .avatar-xl {
    flex: none;
  }

  .delete-account-cross {
    top: 10px;
    right: 10px;
  }
}

/* Correction titre profil mobile : ne plus couper "mois" */
@media (max-width: 760px) {
  .section-title-wrap {
    align-items: flex-start;
    gap: 8px;
  }

  .section-title-wrap h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: 100%;
    line-height: 1.25;
  }

  .section-line {
    min-width: 24px;
    flex: 1;
  }
}

/* PROFIL — APERÇU PHOTO PLUS PETIT PC / PORTABLE / TABLETTE */
#profileAvatar.avatar-large,
#profileAvatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

#profileModalAvatar.avatar-xl,
#profileModalAvatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: 18px !important;
  object-fit: cover !important;
}

/* TABLETTE / PETIT PC PORTABLE */
@media (max-width: 1080px) {
  #profileAvatar.avatar-large,
  #profileAvatar {
    width: 52px !important;
    height: 52px !important;
  }

  #profileModalAvatar.avatar-xl,
  #profileModalAvatar {
    width: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
  }
}

/* APERÇU PHOTO AVANT PUBLICATION — TABLETTE */
@media (min-width: 761px) and (max-width: 1080px) {
  #imagePreviewContainer .preview-item {
    width: 120px;
    height: 150px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    overflow: hidden;
  }

  #imagePreviewContainer .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
  }

  #imagePreviewContainer .preview-label {
    display: none;
  }
}
