/* Authentication and profile styles. Colors inherit the existing BBA theme. */
.auth-box {max-width:490px;margin:0 auto;padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.auth-box h2 {margin:0 0 8px}.auth-box p {font-size:14px}
.auth-box form {display:grid;gap:16px}
.auth-box label,.bba-profile label {display:grid;gap:6px;font-weight:600;font-size:14px}
.auth-box input,.auth-box select,.bba-profile select {
 width:100%;padding:11px 12px;background:var(--bg);color:var(--ink);
 border:1px solid var(--line-strong);border-radius:7px;font:inherit;min-height:45px
}
.auth-box input:focus-visible,.auth-box select:focus-visible,.bba-profile select:focus-visible {outline:2px solid var(--ink);outline-offset:2px}
.auth-box button,.bba-profile button{cursor:pointer}
.auth-box button:disabled,.bba-profile button:disabled{opacity:.55;cursor:not-allowed}
.auth-box a:not(.btn){text-decoration:underline}
.auth-alert{color:#ee8686;white-space:pre-wrap;margin-bottom:16px}
.auth-alert[hidden]{display:none}.auth-alert-success{color:#65cfa3}
.auth-small{font-size:13px!important;line-height:1.6}
.bba-profile{max-width:960px;margin:0 auto}
.profile-head {display:flex;align-items:center;gap:22px;margin-bottom:18px}
.profile-avatar{width:96px;height:96px;flex:none;display:flex;align-items:center;justify-content:center;
 background:var(--subtle);border:1px solid var(--line-strong);color:var(--ink);
 border-radius:50%;font-weight:800;font-size:30px;letter-spacing:-.03em}
.profile-identity h2{font-size:26px;margin:0 0 4px;overflow-wrap:anywhere}
.profile-identity p{margin:0 0 5px}
.profile-avatar-label{font-size:12px;color:var(--muted)}
.profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 20px}
.profile-columns .content-card h2{font-size:19px}
.profile-columns .content-card h3{font-size:16px;margin:22px 0 6px}
.profile-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 16px;font-size:14px;overflow-wrap:anywhere}
.profile-details dt{color:var(--muted)}
.profile-details dd{margin:0;text-align:right}
.bba-profile select{margin:9px 0 14px}
.profile-stats{display:grid;gap:10px}
.profile-stats>div{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);padding:12px;border-radius:8px;font-size:13px}
.profile-stats span{color:var(--muted)}
.auth-foot{padding:24px 0;color:var(--muted);font-size:12px}
@media(max-width:740px){
 .auth-box{padding:22px 18px}
 .profile-columns{grid-template-columns:1fr}
 .profile-head{padding:20px}
 .profile-avatar{width:70px;height:70px;font-size:23px}
}

/* Player profile layout — BBA black/white theme. */
.profile-subtitle { margin:0; font-size:15px; }
.profile-eyebrow { font-size:11px; font-weight:800; letter-spacing:.14em; color:var(--muted); margin-bottom:6px; }
.bba-profile .profile-head { padding:28px; }
.bba-profile .profile-head .profile-avatar { width:106px;height:106px;font-size:32px; }
.profile-country-line { font-weight:600; color:var(--ink); font-size:15px; }
.profile-country-line span:first-child { color:var(--muted); }
.profile-member-line { color:var(--muted);font-size:13px; }
.profile-identity .profile-avatar-label { display:block; margin-top:10px; }
.profile-section { margin:28px 0; }
.profile-section .section-head { margin-bottom:14px; }
.profile-rank-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:15px; }
.profile-rank-card { border:1px solid var(--line); border-radius:var(--radius); padding:23px; background:var(--surface); }
.profile-rank-format { color:var(--muted); display:block; font-size:11px; font-weight:800;letter-spacing:.1em; margin-bottom:16px; }
.profile-rank-card strong { display:block; font-size:24px; letter-spacing:-.02em; margin-bottom:8px; }
.profile-rank-card p { font-size:13px; line-height:1.6; margin:0; }
.profile-settings { padding:28px; }
.profile-settings h2 { font-size:23px;margin-bottom:6px; }
.profile-settings .profile-details { max-width:600px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); margin:23px 0; }
.profile-settings .profile-details dd { text-align:left; font-weight:600; }
.profile-country-settings { border-top:1px solid var(--line); padding-top:22px; }
.profile-country-settings label { font-size:15px; margin-bottom:4px; }
.profile-country-settings p { margin-bottom:12px; }
.profile-country-controls { display:flex; gap:12px; align-items:center; }
.profile-country-controls select { margin:0; width:min(100%,390px); }
.profile-country-controls button { white-space:nowrap; }
.profile-bottom { display:flex; gap:20px; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding-top:22px; margin:28px 0 16px; }
.profile-bottom .btn { flex-shrink:0; }
.profile-recovery { display:flex;gap:12px;flex-wrap:wrap;align-items:center; margin-top:15px; }
.profile-recovery[hidden], .bba-profile [data-details][hidden] { display:none!important; }
.bba-profile [data-profile-status][hidden] { display:none!important; }
@media(max-width:800px) {
 .profile-rank-grid { grid-template-columns:1fr; }
 .profile-rank-card { padding:17px 20px; }
 .profile-rank-format { margin-bottom:7px; }
 .profile-rank-card strong { font-size:20px; }
}
@media(max-width:550px) {
 .bba-profile .profile-head { padding:18px;gap:16px; }
 .bba-profile .profile-head .profile-avatar { width:70px;height:70px;font-size:22px; }
 .profile-identity h2 { font-size:21px; }
 .profile-settings { padding:20px; }
 .profile-country-controls { flex-direction:column;align-items:stretch; }
 .profile-country-controls select { width:100%; }
 .profile-bottom { align-items:stretch;flex-direction:column; }
 .profile-bottom .btn {align-self:flex-start;}
}

/* BBA account settings */
.settings-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;align-items:start;max-width:1100px;margin:auto}
.settings-sidebar{position:sticky;top:96px;display:grid;gap:4px}
.settings-sidebar a{padding:11px 13px;color:var(--nav-ink);font-size:14px;font-weight:650;border-radius:7px}
.settings-sidebar a:hover,.settings-sidebar a:focus-visible{background:var(--hover);color:var(--ink)}
.settings-main{min-width:0}
.settings-main [hidden]{display:none!important}
.settings-panel{padding:28px;margin:0 0 20px}
.settings-panel h2{font-size:23px;margin-bottom:6px}
.settings-panel>p{font-size:14px}
.settings-panel h3{font-size:17px;margin:0 0 12px}
.settings-panel form{border-top:1px solid var(--line);padding-top:24px;margin-top:24px;display:grid;gap:10px;max-width:620px}
.settings-panel label{font-weight:650;font-size:13px;color:var(--ink)}
.settings-panel input,.settings-panel select{
  border:1px solid var(--line-strong);border-radius:7px;min-height:44px;
  background:var(--bg);color:var(--ink);font:inherit;font-size:14px;
  padding:10px 12px;width:100%;
}
.settings-panel input:focus-visible,.settings-panel select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.settings-panel form .btn{justify-self:start;margin-top:6px}
.settings-panel button:disabled{opacity:.55;cursor:not-allowed}
.settings-panel .auth-small{margin:0}
.settings-feedback{font-size:13px;margin:4px 0 0;color:#ef9393}
.settings-feedback.is-success{color:#65cfa3}
.settings-warning{background:var(--subtle);border:1px solid var(--line);border-radius:8px;padding:15px;margin-top:20px;font-size:13px}
.settings-warning p{font-size:13px;margin:5px 0 0}
.settings-danger h3{color:#e99595}
.settings-panel .btn-danger{background:transparent;border-color:#c35050;color:#ee9a9a}
.settings-panel .btn-danger:hover{background:#69272722}
.settings-eyebrow{font-size:13px;color:var(--muted);margin-bottom:10px}
.settings-eyebrow a{text-decoration:underline}
@media(max-width:800px){
  .settings-layout{grid-template-columns:1fr;gap:15px}
  .settings-sidebar{position:static;display:flex;overflow-x:auto;gap:6px;padding-bottom:6px}
  .settings-sidebar a{white-space:nowrap;border:1px solid var(--line)}
}
@media(max-width:550px){.settings-panel{padding:20px}.settings-panel form{gap:9px}}
