/* Profil et langues : composants natifs sans dépendances. */
.profile-toggle { padding:3px; width:43px; height:43px; border-radius:50%; border:1px solid #a96671; background:#2d1b1e; box-shadow:0 0 0 3px #ab505f20; }
#profileAvatar { display:flex; width:35px; height:35px; align-items:center; justify-content:center; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,#d2546e,#603139); color:#fff; font-size:13px; font-weight:750; }
#profileAvatar img { width:100%; height:100%; object-fit:cover; }
.profile-menu { min-width:180px; }
.river-account-dialog { width:min(840px,95vw); max-height:94vh; padding:28px; background:var(--panel,#1d1112); border:1px solid #654449; border-radius:16px; color:var(--text,#eee7ef); }
.river-confirm-dialog { width:min(500px,94vw); background:var(--panel,#1d1112); padding:25px; border:1px solid #a5626d; border-radius:14px; }
.account-dialog-header { display:flex; align-items:start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.account-eyebrow { color:#e97c91; letter-spacing:2px; font-weight:700; margin-bottom:4px; }
.account-dialog-header h2 { font-size:25px; margin:0; }
.account-profile-hero { display:flex; align-items:center; gap:23px; margin:20px 0; }
.account-profile-hero h3 { margin:0 0 5px; font-size:23px; }
.account-profile-hero p,.account-profile-hero small { color:var(--muted); font-size:12px; }
.river-profile-avatar { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,#b95565,#57343a); color:white; font-weight:750; overflow:hidden; border:2px solid #cf949e; }
.river-profile-avatar.large { width:95px; height:95px; font-size:30px; }
.river-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.account-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:23px 0; }
.account-stat-grid>div { border:1px solid var(--border); padding:15px; border-radius:9px; background:var(--bg); }
.account-stat-grid span { display:block; font-size:12px; color:var(--muted); margin-bottom:7px; }
.account-stat-grid strong { font-size:19px; overflow-wrap:anywhere; }
.account-profile-actions,.account-data-tools>div { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-top:20px; }
.account-photo-field { display:flex; gap:8px; flex-direction:column; }
.account-photo-field .profile-photo-preview { object-fit:cover; width:64px; height:64px; border-radius:50%; }
.account-local-limit { font-size:12px; line-height:1.6; color:var(--muted); border-top:1px solid var(--border); padding-top:18px; margin-top:23px; }
.account-data-tools { margin-top:28px; padding:20px; border:1px solid var(--border); border-radius:10px; }
.account-data-tools h3 { margin-top:0; }
.account-data-tools p { color:var(--muted); font-size:12px; }
.danger-text { color:var(--red,#ff8992); }
.river-confirm-dialog p { font-size:12px; color:var(--muted); line-height:1.7; }
.river-confirm-dialog label { margin:12px 0; }
@media(max-width:650px){ .river-account-dialog{padding:20px 16px;} .account-stat-grid{grid-template-columns:1fr 1fr;} .account-profile-hero{gap:15px;} .river-profile-avatar.large{width:76px;height:76px;font-size:24px;} .account-profile-hero h3{font-size:20px;} .account-dialog-header h2{font-size:22px;} .account-profile-actions{align-items:stretch;flex-direction:column;} .account-profile-actions button{width:100%;} }

.language-options { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:24px 0 8px; }
.language-choice { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:76px; padding:20px; background:#221516; border:1px solid #4e3a3e; border-radius:11px; color:#e9e3eb; font-size:16px; font-weight:650; text-align:left; }
@media(hover:hover){.language-choice:hover { border-color:#a95e6b; background:#29191b; }}
.language-choice.selected { border-color:#ec667c; background:#2f1d20; box-shadow:0 0 0 1px #af5665; }
.language-selected { color:#f18da1; font-size:23px; }
#riverLanguagesDialog { width:min(540px,95vw); }
@media(max-width:520px){ .language-options{grid-template-columns:1fr;gap:10px;} .language-choice{min-height:66px;padding:17px;} }

/* La devise est une préférence explicite, avec son rôle et ses limites. */
.account-main-currency small{font-size:12px;line-height:1.6;color:var(--muted);font-weight:400;margin-top:5px;}

/* La devise principale reste visible dès l’ouverture du profil. */
.river-account-dialog .profile-currency-panel{margin:18px 0;padding:16px;border:1px solid #492c31;border-radius:10px;background:#201315}.river-account-dialog .profile-currency-panel>label{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}.river-account-dialog .profile-currency-panel select{max-width:360px;width:100%}.river-account-dialog .profile-currency-panel small{margin:0;max-width:100%;line-height:1.6}

/* Liens légaux du menu du profil : même allure que les boutons du menu. */
.profile-menu .profile-menu-link { display:block; box-sizing:border-box; min-height:44px; padding:12px; border-radius:4px; color:#f1dee1; font-size:12px; line-height:1.4; text-decoration:none; }
.profile-menu .profile-menu-link:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
@media(hover:hover) { .profile-menu .profile-menu-link:hover { background:#362124; } }
.profile-menu .profile-menu-link { border-top:1px solid #3f272b; border-radius:0; }
.profile-menu .profile-menu-link:first-of-type { margin-top:4px; }
