.settings-tabs{
display:flex;
gap:10px;
margin-bottom:25px;
}

.settings-section{
display:none;
}

.settings-section.active{
display:block;
}

.settings-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;
}

.setting-item{
display:flex;
justify-content:space-between;
align-items:center;
background:#0f172a;
padding:10px 14px;
border-radius:8px;
margin-bottom:8px;
}

.medals-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
gap:15px;
margin-top:15px;
}

.medal-card{
background:#0f172a;
border-radius:12px;
padding:10px;
text-align:center;
}

.medal-card img{
width:60px;
height:60px;
object-fit:cover;
margin-bottom:8px;
}

.settings-mail-domain-card{
background:#0f172a;
border-radius:12px;
padding:16px;
margin-top:10px;
border:1px solid rgba(255,255,255,.06);
}

.settings-mail-domain-row{
display:flex;
justify-content:space-between;
align-items:center;
gap:16px;
}

.settings-mail-domain-texts{
display:flex;
flex-direction:column;
gap:4px;
}

.settings-mail-domain-texts strong{
font-size:18px;
color:#fff;
}

.settings-mail-domain-texts span{
font-size:13px;
color:rgba(255,255,255,.62);
}

#chargesList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#chargeFieldsGroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SELECT MDT */
.settings-page select,
.settings-modal select,
.modal select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,28,45,0.9);
  color: #e6edf7;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* flèche custom */
.settings-page select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 34px;
}

/* focus */
.settings-page select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.4);
}

/* champ fermé */
.settings-page select,
.settings-modal select,
.modal select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  padding-right: 38px;
  border-radius: 12px;
  border: 1px solid rgba(76, 132, 255, 0.35);
  background: linear-gradient(180deg, rgba(32, 44, 74, 0.96), rgba(21, 30, 53, 0.96));
  color: #f4f7ff;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(59,130,246,0.15);
  cursor: pointer;
}

/* focus */
.settings-page select:focus,
.settings-modal select:focus,
.modal select:focus {
  border-color: rgba(59,130,246,0.9);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.5),
    0 0 0 4px rgba(59,130,246,0.12);
}

/* flèche custom */
.settings-page select,
.settings-modal select,
.modal select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

/* options : parfois pris en compte, parfois non */
.settings-page select option,
.settings-modal select option,
.modal select option {
  background: #0f172a;
  color: #f4f7ff;
}

.settings-fto-card{background:#0f172a;border-radius:16px;padding:18px;border:1px solid rgba(255,255,255,.06)}
.settings-fto-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}
.settings-fto-head h3{margin:0;color:#fff}
.settings-fto-head p{margin:6px 0 0;color:rgba(255,255,255,.65)}
.settings-fto-form{margin-bottom:16px;padding:16px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.settings-fto-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-fto-grid .full{grid-column:1 / -1}
.settings-fto-checkbox{display:flex;align-items:center;gap:10px;padding-top:10px;color:#fff}
.settings-fto-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.settings-fto-list{display:flex;flex-direction:column;gap:10px}
.settings-fto-item{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.settings-fto-item-title{font-weight:800;color:#fff}
.settings-fto-item-meta{margin-top:4px;font-size:12px;color:rgba(255,255,255,.62)}
.settings-fto-item-desc{margin-top:8px;font-size:13px;color:rgba(255,255,255,.82);white-space:pre-wrap}
.settings-fto-item-actions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:900px){.settings-fto-grid{grid-template-columns:1fr}.settings-fto-item{flex-direction:column}}