/* Rider dashboard: one glass sheet, quiet panels and a photographic identity. */
.social-profile-page{--dashboard-sheet:rgba(249,251,251,.91);--dashboard-panel:rgba(255,255,255,.72);--dashboard-edge:rgba(141,164,175,.32);--dashboard-highlight:#ffffffbf;--dashboard-shadow:0 10px 28px #243a4912;--dashboard-accent:#c61432;--dashboard-selected:#ff23450d;--dashboard-media:#e4ecef;--dashboard-button:#f8fbfc;--dashboard-button-ink:#243947}
.social-profile-page[data-profile-theme="dark"]{--dashboard-sheet:rgba(5,19,29,.89);--dashboard-panel:rgba(13,32,45,.74);--dashboard-edge:rgba(117,163,189,.25);--dashboard-highlight:#b8e3ff12;--dashboard-shadow:0 12px 32px #00000024;--dashboard-accent:#ff6176;--dashboard-selected:#ff234517;--dashboard-media:#071722;--dashboard-button:#132b39;--dashboard-button-ink:#f2f5f3}
.social-profile-reference .social-profile-header{display:grid;grid-template-columns:176px minmax(0,1fr) auto;align-items:end;gap:24px;min-height:320px;padding:64px 36px 38px;background:#06151f}
.social-profile-reference .social-cover{height:100%;bottom:0;background-position:center 48%}
.social-profile-reference .social-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#04121b00 20%,#04121b44 55%,#04121bc9 100%);pointer-events:none}
.social-profile-reference .social-avatar{position:relative;inset:auto;display:grid;place-items:center;width:176px;height:176px;border:4px solid #ffffffd9;box-shadow:0 8px 24px #0006,0 0 0 1px #fff2;background:#183540;color:#cee2e8;font-size:64px}
.social-profile-reference .social-identity{color:#fff;text-shadow:0 2px 14px #0009;padding-bottom:12px}
.social-profile-reference .social-identity h1{font-size:clamp(30px,3vw,44px);line-height:1.12;letter-spacing:-.035em}
.social-profile-reference .social-handle{color:#f0f5f7;font-size:17px;margin:8px 0}
.social-profile-reference .social-location{font-size:14px;color:#f0f5f7}
.social-profile-header .social-actions{justify-content:flex-end;gap:10px;padding-bottom:10px;max-width:470px}
.social-profile-header .social-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 17px;border-radius:12px;font-size:13px;white-space:nowrap}
.social-profile-header .social-actions svg{width:18px;height:18px}
.social-profile-page .social-share{background:var(--web-vivid-red,linear-gradient(170deg,#ff465b,#da002a 58%,#a90024));color:#fff;border:1px solid #ff6980;box-shadow:var(--web-vivid-red-shine)}
.social-profile-reference .social-profile-body{position:relative;grid-template-columns:216px minmax(0,1fr);margin:0 16px;border:1px solid var(--dashboard-edge);border-radius:20px;background:linear-gradient(145deg,var(--dashboard-highlight),transparent 38%),var(--dashboard-sheet);box-shadow:inset 0 1px var(--dashboard-highlight),var(--dashboard-shadow)}
.social-profile-reference .social-profile-rail{padding:26px 14px;border-right:1px solid var(--dashboard-edge)}
.social-profile-reference .social-profile-rail nav{gap:6px;top:24px}
.social-profile-reference .social-profile-rail a{position:relative;min-height:43px;padding:11px 12px;border-radius:9px;font-size:13px;line-height:1.3;gap:12px}
.social-profile-reference .social-profile-rail a.active{background:var(--dashboard-selected);box-shadow:inset 0 0 0 1px #ff405324;color:var(--dashboard-accent)}
.social-profile-reference .social-profile-rail a.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:#ff3152;box-shadow:0 0 10px #ff315245}
.social-profile-reference .social-profile-content{padding:24px;min-width:0}
.social-profile-reference .social-profile-intro{display:block;min-height:0;padding:0}
.social-profile-intro:has(#social-relationship:empty){display:none}
.social-profile-reference #social-relationship:not(:empty){display:block;padding:0 0 16px}
.social-profile-reference .social-identity-strip{gap:16px;padding:20px 18px;margin:0 0 18px;background:var(--dashboard-panel);border:1px solid var(--dashboard-edge);border-radius:14px;box-shadow:inset 0 1px var(--dashboard-highlight),var(--dashboard-shadow)}
.social-profile-reference .social-stats>div{position:relative;padding:0 12px 0 56px;text-align:left;border-color:var(--dashboard-edge)}
.social-profile-reference .social-stats>div:first-child{padding-left:48px}
.social-profile-reference .social-stats>div>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:30px;height:30px;color:var(--dashboard-accent);padding:5px;box-sizing:content-box;background:var(--dashboard-selected);border:1px solid var(--dashboard-edge);border-radius:50%}
.social-profile-reference .social-stats>div:first-child>svg{left:0}
.social-profile-reference .social-stats dd{font-size:26px;margin:0 0 7px;font-weight:800}
.social-profile-reference .social-stats dt{font-size:11px;line-height:1.4}
.social-profile-reference .social-stats small{font-size:13px}
.social-profile-reference .social-top-achievements{padding-left:16px;border-color:var(--dashboard-edge);flex-shrink:0}
.social-profile-reference .social-overview{gap:16px;align-items:stretch}
.social-profile-reference .social-panel,.social-profile-reference .social-recap{background:linear-gradient(145deg,var(--dashboard-highlight),transparent 55%),var(--dashboard-panel);border:1px solid var(--dashboard-edge);border-radius:14px;box-shadow:inset 0 1px var(--dashboard-highlight),var(--dashboard-shadow)}
.social-profile-reference .social-panel{padding:18px}
.social-profile-reference .social-overview>.social-panel{min-height:0}
.social-profile-reference .social-panel h2{display:flex;align-items:center;gap:10px;font-size:17px;line-height:1.4;margin-bottom:18px}
.social-profile-reference .social-panel h2>svg{width:23px;height:23px;color:var(--ink)}
.social-profile-reference .social-vehicle img,.social-profile-reference .social-vehicle-empty{height:182px;border-radius:10px;background:var(--dashboard-media);margin-bottom:12px}
.social-profile-reference .social-vehicle img{object-fit:cover}
.social-profile-reference .social-vehicle h3{font-size:17px}
.social-profile-reference .social-vehicle p{font-size:12px;line-height:1.5}
.social-profile-reference .social-primary-ride{margin:0 0 9px;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:700;line-height:1;color:var(--dashboard-accent);border-color:var(--dashboard-edge);background:var(--dashboard-selected)}
.social-profile-reference .social-vehicle-thumbs{gap:7px;margin-top:16px}
.social-profile-reference .social-vehicle-thumbs button{width:54px;height:44px;background:var(--dashboard-media);border-color:var(--dashboard-edge);border-radius:8px}
.social-profile-reference .social-vehicle-thumbs button:focus-visible{outline:2px solid var(--dashboard-accent);outline-offset:3px}
.social-profile-reference .social-country-visual{height:182px;margin-bottom:16px;border:1px solid var(--dashboard-edge);border-radius:10px;background:linear-gradient(145deg,#263c49,#071722)}
.social-profile-reference .social-country-visual img{display:block;width:100%;height:100%;object-fit:contain;padding:14px;opacity:.85;box-sizing:border-box}
.social-profile-reference #profile-countries h3{font-size:16px;margin:0 0 12px}
.social-profile-reference .social-countries{gap:7px}
.social-profile-reference .social-countries li{gap:6px;padding:6px 9px;border:1px solid var(--dashboard-edge);border-radius:20px;background:var(--dashboard-selected);font-size:11px;line-height:1.3}
.social-profile-reference .social-countries li span[aria-hidden]{font-size:19px}
.social-profile-reference .social-about{display:grid;gap:0}
.social-profile-reference .social-about>div{padding:15px 0;border-top:1px solid var(--dashboard-edge);gap:12px}
.social-profile-reference .social-about dd{font-size:13px;line-height:1.4}
.social-profile-reference .social-about a,.social-profile-reference .social-external a{color:var(--dashboard-accent)}
.social-profile-reference .social-external{display:grid;gap:0;margin-top:0}
.social-profile-reference .social-external a{display:flex;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--dashboard-edge);text-decoration:none}
.social-profile-reference .social-external a>svg:last-child{margin-left:auto;width:15px;height:15px;opacity:.7}
.social-profile-reference .social-about-bio{padding-top:16px;border-top:1px solid var(--dashboard-edge);color:var(--profile-muted);font-size:13px;line-height:1.7}
.social-profile-reference .social-recaps:has(>.social-empty){display:block}
.social-profile-reference .social-empty{width:100%;min-height:140px;background:var(--dashboard-panel);border-color:var(--dashboard-edge);border-radius:14px}
@media(max-width:1200px) and (min-width:761px){
 .social-profile-reference .social-profile-header{grid-template-columns:140px minmax(0,1fr);min-height:300px;padding:44px 28px 28px;gap:18px 24px}
 .social-profile-reference .social-avatar{width:140px;height:140px;grid-row:1/3}
 .social-profile-header .social-actions{grid-column:2;justify-content:flex-start;padding:0}
 .social-profile-reference .social-identity{padding-bottom:0}
 .social-profile-reference .social-profile-body{grid-template-columns:180px minmax(0,1fr);margin:0 12px}
 .social-profile-reference .social-profile-content{padding:18px}
 .social-profile-reference .social-stats>div,.social-profile-reference .social-stats>div:first-child{padding:0 10px;text-align:center}
 .social-profile-reference .social-stats>div>svg{display:none}
 .social-profile-reference .social-stats dd{font-size:23px}
 .social-profile-reference .social-top-achievements{display:none}
}
@media(max-width:760px){
 .social-profile-reference .social-profile-header{grid-template-columns:88px minmax(0,1fr);min-height:280px;padding:64px 20px 24px;gap:18px 16px;align-items:center}
 .social-profile-reference .social-cover{height:100%;background-position:center 45%}
 .social-profile-reference .social-avatar{position:relative;inset:auto;width:88px;height:88px;border-width:3px;font-size:36px}
 .social-profile-reference .social-identity{position:static;padding:0;min-width:0;color:#fff}
 .social-profile-reference .social-identity h1{font-size:27px;line-height:1.15}
 .social-profile-reference .social-handle{font-size:13px;color:#e5edf1}
 .social-profile-reference .social-location{font-size:12px;line-height:1.5;margin:6px 0 0;color:#e5edf1}
 .social-profile-header .social-actions{grid-column:1/-1;justify-content:flex-start;max-width:none;gap:8px;padding:0}
 .social-profile-header .social-actions .btn{min-height:42px;padding:10px 12px;font-size:12px;border-radius:10px;gap:7px;flex:1}
 .social-profile-header .social-actions svg{width:16px;height:16px}
 .social-profile-reference .social-profile-body{display:flex;margin:0 10px;border-radius:16px}
 .social-profile-reference .social-profile-rail{padding:0 12px;border-right:0}
 .social-profile-reference .social-profile-rail nav{padding:14px 0;gap:6px}
 .social-profile-reference .social-profile-rail a{min-height:38px;padding:9px 10px;font-size:12px;flex-shrink:0}
 .social-profile-reference .social-profile-content{display:contents}
 .social-profile-reference .social-profile-intro{padding:0 16px;order:1}
 .social-profile-reference .social-identity-strip{padding:16px 8px;margin:0 12px 16px;gap:12px;border-radius:12px}
 .social-profile-reference .social-stats>div,.social-profile-reference .social-stats>div:first-child{padding:0 6px;text-align:center}
 .social-profile-reference .social-stats>div>svg{display:none}
 .social-profile-reference .social-stats dd{font-size:20px;margin-bottom:6px}
 .social-profile-reference .social-stats dd:has(small){font-size:18px}
 .social-profile-reference .social-stats small{font-size:10px}
 .social-profile-reference .social-stats dt{font-size:10px}
 .social-profile-reference .social-top-achievements{border:0;padding:10px 4px 0;display:flex;align-items:center;gap:12px;max-width:none}
 .social-profile-reference .social-badge-medals{margin:0}
 .social-profile-reference .social-overview>.social-panel{margin:0 12px 14px;min-height:0}
 .social-profile-reference .social-panel{padding:16px}
 .social-profile-reference .social-panel h2{font-size:16px;gap:9px;margin-bottom:14px}
 .social-profile-reference #profile-garage .social-vehicle{display:block}
 .social-profile-reference #profile-garage .social-vehicle>img,.social-profile-reference #profile-garage .social-vehicle>.social-vehicle-empty{width:100%;height:180px;margin:0 0 12px}
 .social-profile-reference #profile-garage .social-vehicle>h3{font-size:17px;margin:0 0 7px}
 .social-profile-reference #profile-garage .social-vehicle>p{font-size:12px;margin:5px 0}
 .social-profile-reference .social-country-visual{height:155px}
 .social-profile-reference .social-section{margin:14px 12px}
 .social-profile-reference .social-trust-row{margin:0 12px 14px}
 .social-profile-content>.social-panel{margin:0 12px 14px}
}
@media(prefers-reduced-transparency:reduce){.social-profile-reference .social-profile-body{background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}.social-profile-reference .social-panel{background:var(--panel)}}

/* Profile controls must remain legible even when the surrounding app theme differs. */
.social-profile-page .social-profile-reference .btn.secondary{background:linear-gradient(155deg,var(--dashboard-highlight),transparent 65%),var(--dashboard-button);border:1px solid var(--dashboard-edge);color:var(--dashboard-button-ink);box-shadow:inset 0 1px var(--dashboard-highlight),0 4px 12px #00000012}
.social-profile-page .social-profile-reference .btn.secondary:hover:not(:disabled){border-color:var(--dashboard-accent)}
@media(min-width:1201px){.social-profile-reference .social-stats dd:has(small){font-size:clamp(20px,1.7vw,26px);white-space:nowrap}}
html[data-public-profile-theme="light"] .public-standard-nav .brand-wordmark{color:var(--ink,#293940)}
.social-profile-page[data-profile-theme="light"] .social-cover:after{background:linear-gradient(180deg,#04121b00 15%,#04121b22 55%,#04121bb3 100%)}

/* Light profiles use the existing daylight landscape; uploaded covers stay intact. */
.social-profile-page[data-profile-theme="light"] .social-cover:not(:has(img)){background-image:url('/assets/go/mountain-cockpit-daylight.webp');background-position:center 20%}
.social-profile-page[data-profile-theme="light"] .social-cover:not(:has(img)):after{background:linear-gradient(90deg,#f3faffb8,#f3faff33 60%,#f3faff10)}
.social-profile-page[data-profile-theme="light"] .social-profile-header:not(:has(.social-cover>img)) .social-identity{color:#102d3d;text-shadow:0 1px 10px #ffffffb3}
.social-profile-page[data-profile-theme="light"] .social-profile-header:not(:has(.social-cover>img)) :is(.social-handle,.social-location){color:#183c50}
html[data-public-profile-theme="light"] body:has(.social-profile-page)::before{background:linear-gradient(180deg,#f5f9fc11,#f8f9f7 95%),url('/assets/go/mountain-cockpit-daylight.webp') center 20%/cover no-repeat}
/* Keep the basemap and visited-country geometry in the same projected frame. */
.social-profile-reference .social-country-visual{position:relative}
.social-profile-reference .social-country-highlights{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);pointer-events:none;overflow:visible}
.social-country-visited{fill:#ff3152;stroke:#ff9aa9;stroke-width:1;fill-rule:evenodd}
.social-country-pin{fill:#ff3152;stroke:#fff;stroke-width:1.5}
.social-profile-reference .social-countries li{padding:5px 10px 5px 5px;gap:7px;background:var(--dashboard-panel)}
.social-profile-reference .social-country-flag{display:block;width:24px;height:24px;object-fit:cover;border-radius:50%;flex:none;box-shadow:0 0 0 1px var(--dashboard-edge)}
/* Feature icons get a consistent scale without enlarging inline button icons. */
.social-profile-reference .social-panel h2>svg,.social-profile-reference .social-section-heading h2>svg{width:30px;height:30px;stroke-width:1.6}
.social-profile-reference .social-section-heading h2{display:flex;align-items:center;gap:10px}
.social-profile-reference .social-profile-rail a>svg{width:25px;height:25px}
.social-profile-reference .social-about dt>svg,.social-profile-reference .social-external a>svg:first-child{width:26px;height:26px}
@media(max-width:760px){
 .social-profile-reference .social-panel h2>svg,.social-profile-reference .social-section-heading h2>svg{width:28px;height:28px}
 .social-profile-reference .social-profile-rail a>svg{width:23px;height:23px}
 .social-profile-reference .social-country-visual{height:172px}
}
