/* Profil et abonnement (revue du 14/11/2026, voir js/profil.js et js/retours.js). */

/* En-tête (toutes les pages) : MateCoins à gauche, couronne (abonnement) à droite. */
.gm-hdr-coins { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08); background: #1C2944; cursor: pointer; display: grid; place-items: center; padding: 0; z-index: 2;
  transition: transform .15s ease, background .15s; }
.gm-coin-glyph { color: #FC8C15; font: 700 20px/1 Poppins, sans-serif; }
.gm-hdr-coins:hover { background: #22304A; }
.gm-hdr-coins:active { transform: translateY(-50%) scale(.92); }
.gm-hdr-coins.off .gm-coin-glyph { color: #7D8AA3; } .gm-hdr-coins.off { opacity: .55; }
.gm-hdr-crown { position: absolute !important; right: 16px; left: auto !important; top: 50%; transform: translateY(-50%); margin: 0 !important; z-index: 2; cursor: pointer; }

/* Préférences > Notifications : interrupteurs On / Off. */
.gm-notifs { display: flex; flex-direction: column; gap: 10px; width: 100%; font-family: Poppins, sans-serif; }
.gm-notifs .gn-intro { margin: 0 0 2px; color: #AAB6CA; font-size: 13px; }
.gn-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07); cursor: pointer; }
.gn-row .gc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gn-row .gc-txt b { color: #F5F7FB; font-size: 14px; font-weight: 600; }
.gn-row .gc-txt small { color: #AAB6CA; font-size: 12px; line-height: 1.35; }
.gn-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.gn-state { font-style: normal; font-size: 12px; font-weight: 600; color: #AAB6CA; min-width: 22px; text-align: right; }
.gn-switch { position: relative; width: 44px; height: 26px; flex: none; }
.gn-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.gn-switch i { position: absolute; inset: 0; border-radius: 999px; background: #34445F; transition: background .15s; }
.gn-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gn-switch input:checked + i { background: linear-gradient(90deg, #37A7EE, #2E76EB); }
.gn-switch input:checked + i::after { transform: translateX(18px); }
.gn-row:has(input:checked) .gn-state { color: #37A7EE; }

/* Gérer mon abonnement : page compacte (même esprit que la page MateCoins). */
.gm-sub-host > :not(#gm-sub) { display: none !important; }
#gm-sub { width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px;
  font-family: Poppins, sans-serif; color: #F5F7FB; }
#gm-sub h1 { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.gs-card { border-radius: 18px; padding: 16px 18px; background: #1A2742; border: 1px solid rgba(255, 255, 255, .07); }
.gs-card.gs-plus { border-color: rgba(55, 167, 238, .45); }
.gs-card.gs-max { border-color: rgba(252, 140, 21, .45); }
.gs-plan { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 12px; border-radius: 999px;
  background: rgba(170, 182, 202, .16); color: #C9D2E0; }
.gs-plus .gs-plan { background: rgba(55, 167, 238, .18); color: #7EC8F5; }
.gs-max .gs-plan { background: rgba(252, 140, 21, .18); color: #FFB366; }
.gs-card dl { margin: 12px 0 0; display: flex; flex-direction: column; }
.gs-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.gs-card dl > div:first-child { border-top: 0; }
.gs-card dt { color: #AAB6CA; font-size: 13.5px; }
.gs-card dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.gs-card dd small { font-weight: 400; color: #AAB6CA; font-size: 12px; }
.gs-btn { border: 0; border-radius: 14px; padding: 12px 18px; font: 600 14px Poppins, sans-serif; cursor: pointer; color: #fff;
  background: linear-gradient(90deg, #37A7EE, #2E76EB); }
.gs-btn.max { background: linear-gradient(90deg, #FC8C15, #FA6E0C); }
.gs-btn:disabled { opacity: .6; }
.gs-sub { margin: 4px 0 0; color: #AAB6CA; font-size: 13px; }
.gs-offers { display: flex; flex-direction: column; gap: 10px; }
.gs-offer { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #1A2742; border: 1px solid rgba(255, 255, 255, .07); }
.gs-offer.gs-plus { border-color: rgba(55, 167, 238, .35); } .gs-offer.gs-max { border-color: rgba(252, 140, 21, .35); }
.gs-usage h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.gs-use { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.gs-use:first-of-type { border-top: 0; }
.gs-use > span { color: #AAB6CA; } .gs-use > b { text-align: right; } .gs-use > small { grid-column: 1 / -1; color: #7D8AA3; font-size: 12px; margin-top: -2px; }
.gs-use.off b { color: #7D8AA3; font-weight: 500; }
.gs-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; display: block; margin-top: 4px; }
.gs-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #37A7EE, #2E76EB); }
.gs-max .gs-bar > i { background: linear-gradient(90deg, #FC8C15, #FA6E0C); }
