/* Tunexa Profiles / Black Edition V9
   Scoped to public profile and dashboard profile editor. Does not change auth logic. */
:root{--tn9-border:#303037;--tn9-surface:#111114;--tn9-text:#f2f2f3;--tn9-muted:#a0a0a9}
body.dashboard-page:has(.profile-editor-layout){background:#070708!important}
body.dashboard-page .profile-page-head{max-width:1160px;gap:20px;border-bottom:1px solid #26262c!important;padding-bottom:26px!important;margin-bottom:28px!important}
body.dashboard-page .profile-page-head>div>span{color:#96969e!important;font:600 11px ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.15em!important}
body.dashboard-page .profile-page-head h2{font-size:clamp(34px,3.5vw,51px)!important;font-weight:480!important;line-height:1.12!important;letter-spacing:-.06em!important;margin:15px 0 12px!important}
body.dashboard-page .profile-page-head p{font-size:14px!important;line-height:1.7!important;color:#9999a4!important}
body.dashboard-page .profile-page-head .app-page-head__actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.dashboard-page .profile-page-head .pill{border-radius:999px!important;padding:12px 20px!important;min-height:43px;font-size:12px!important;letter-spacing:0!important;text-transform:none!important}
body.dashboard-page .profile-editor-layout{width:min(100%,1160px);display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.3fr);gap:24px;align-items:start}
body.dashboard-page .profile-editor-card{position:sticky;top:25px;border:1px solid #34343d!important;border-radius:18px!important;background:#121216!important;overflow:hidden;box-shadow:0 22px 65px #0007!important}
body.dashboard-page .profile-editor-card.has-profile-background{background:linear-gradient(180deg,rgba(7,7,10,.38),rgba(8,8,12,.92)),var(--editor-profile-background) center/cover!important}
body.dashboard-page .profile-editor-card__cover{height:190px!important;min-height:190px!important;background:#1a1a20!important;overflow:hidden}
body.dashboard-page .profile-editor-card__cover.has-custom-banner{background:#0b0b0d!important}
body.dashboard-page .profile-editor-card__cover>img{width:100%;height:100%;object-fit:cover}
body.dashboard-page .profile-editor-card__cover>span{font:600 10px ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.07em!important;color:#eee!important;text-shadow:0 1px 9px #000!important}
body.dashboard-page .profile-editor-card__identity{gap:16px!important;padding:21px!important;align-items:center}
body.dashboard-page .profile-editor-name{font-size:clamp(22px,2.5vw,31px)!important;letter-spacing:-.05em!important;line-height:1.16!important}
body.dashboard-page .profile-editor-card__status{padding:0 21px 21px!important;margin:0!important;font-size:13px!important;line-height:1.65!important;color:#c4c4cd!important}
body.dashboard-page .profile-editor-card__badges{padding:0 21px 20px!important;gap:7px!important}
body.dashboard-page .profile-editor-card__badges .social-badge-chip{border-radius:9px!important;background:#1b1b20!important;border:1px solid #303038!important;color:#c7c7ce!important;font-size:10px!important}
body.dashboard-page .profile-settings-section{padding:28px!important;border-radius:18px!important;background:#121216!important;border:1px solid #303039!important}
body.dashboard-page .profile-settings-section>.app-section__head{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid #2a2a32}
body.dashboard-page .profile-settings-section>.app-section__head h2{font-size:23px!important;letter-spacing:-.04em}
body.dashboard-page .profile-settings-form{display:grid;gap:23px!important}
body.dashboard-page .profile-field{display:grid;gap:9px}
body.dashboard-page .profile-field>span,body.dashboard-page .profile-field>label{font:600 11px ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.06em!important;color:#d3d3d9!important;text-transform:none!important}
body.dashboard-page .profile-field small,body.dashboard-page .profile-media-setting small{font-size:11px!important;color:#90919c!important;line-height:1.65!important}
body.dashboard-page .profile-field :is(input,select){height:52px!important;border-radius:12px!important;background:#0c0c10!important;border:1px solid #383841!important;color:#eee!important;font-size:13px!important;padding:0 15px!important}
body.dashboard-page .profile-field :is(input,select):focus{outline:2px solid #8e8f99!important;outline-offset:2px;box-shadow:none!important}
body.dashboard-page .profile-field--username>div{display:flex;align-items:center;min-width:0;border:1px solid #393941!important;border-radius:12px!important;background:#0c0c10!important;overflow:hidden}
body.dashboard-page .profile-field--username>div>span{padding:0 0 0 14px!important;min-width:0;color:#777984!important;font:500 11px ui-monospace,SFMono-Regular,monospace!important;white-space:nowrap}
body.dashboard-page .profile-field--username>div input{border:0!important;flex:1;min-width:0;padding:0 12px!important;background:transparent!important;outline:0!important}
body.dashboard-page .profile-field--username>div:focus-within{outline:2px solid #8e8f99!important;outline-offset:2px}
body.dashboard-page .profile-customization-grid{gap:14px!important}
body.dashboard-page .profile-media-settings{display:grid;gap:12px!important}
body.dashboard-page .profile-media-setting{padding:17px!important;display:flex;align-items:center;gap:16px;border:1px solid #32323b!important;border-radius:13px!important;background:#17171b!important}
body.dashboard-page .profile-media-setting__preview{flex-shrink:0;border:1px solid #36363f!important;overflow:hidden;border-radius:10px!important}
body.dashboard-page .profile-media-setting label:not(.profile-check){flex:1;min-width:0}
body.dashboard-page .profile-media-setting label>span{font-size:13px!important;font-weight:600!important;color:#efeff2!important}
body.dashboard-page .profile-media-setting input[type=file]{width:100%;max-width:100%;font-size:11px!important;color:#a4a5b0!important}
body.dashboard-page .profile-media-setting--wide{display:flex}
body.dashboard-page .profile-privacy-box{border:1px solid #34343d!important;border-radius:16px!important;background:#0b0b0e!important;overflow:hidden;margin-top:4px}
body.dashboard-page .profile-privacy-box>.tn9-privacy-heading{padding:24px!important;border-bottom:1px solid #2d2d35!important;background:radial-gradient(ellipse 72% 200% at 95% 0,rgba(90,90,102,.14),transparent 80%),#141419!important}
body.dashboard-page .tn9-privacy-heading>span{display:flex;align-items:center;justify-content:space-between;font:600 11px ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.14em!important;color:#a8a8b1!important}
body.dashboard-page .tn9-privacy-heading>span i{font-size:16px;font-style:normal;letter-spacing:0;color:#787985}
body.dashboard-page .tn9-privacy-heading h3{margin:13px 0 9px;color:#f0f0f2;font-size:20px;font-weight:550;letter-spacing:-.04em}
body.dashboard-page .tn9-privacy-heading p{font-size:12px!important;line-height:1.6;color:#94949e!important;margin:0!important}
body.dashboard-page .profile-privacy-box .profile-check{display:flex;align-items:center;gap:17px;padding:19px 24px!important;border-bottom:1px solid #292930!important;background:transparent!important;cursor:pointer}
body.dashboard-page .profile-privacy-box .profile-check:last-child{border-bottom:0!important}
body.dashboard-page .profile-privacy-box .profile-check:hover{background:#16161b!important}
body.dashboard-page .profile-check input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;display:block;width:41px!important;height:23px!important;min-width:41px!important;border:1px solid #50505a!important;border-radius:25px!important;background:#24242b!important;position:relative;flex:0 0 41px;cursor:pointer;margin:0!important}
body.dashboard-page .profile-check input[type=checkbox]::before{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#999ba7;box-shadow:none!important;transition:transform .2s,background .2s}
body.dashboard-page .profile-check input[type=checkbox]:checked{background:#dddddf!important;border-color:#dddddf!important}
body.dashboard-page .profile-check input[type=checkbox]:checked::before{transform:translateX(17px);left:3px!important;background:#101014!important}
body.dashboard-page .profile-check input[type=checkbox]:focus-visible{outline:2px solid #a3a4b0;outline-offset:3px}
body.dashboard-page .profile-check b{font-size:13px!important;line-height:1.4;color:#f1f1f3!important}
body.dashboard-page .profile-check small{font-size:11px!important;line-height:1.45!important;color:#888994!important}
body.dashboard-page .profile-check--remove{border:0!important;padding:0!important;background:transparent!important;white-space:nowrap}
body.dashboard-page .profile-check--remove input[type=checkbox]{width:30px!important;min-width:30px!important;height:18px!important}
body.dashboard-page .profile-check--remove input[type=checkbox]::before{width:10px;height:10px}
body.dashboard-page .profile-check--remove input[type=checkbox]:checked::before{transform:translateX(11px)}
body.dashboard-page .profile-settings-form>.pill--accent{min-height:54px!important;font-size:13px!important;font-weight:650!important;letter-spacing:0!important;text-transform:none!important}
body.dashboard-page .spotify-integration-section,body.dashboard-page .profile-badges-section{margin-top:24px!important;border-radius:18px!important;background:#121216!important}
body.dashboard-page .spotify-integration-card{border-color:#35353e!important;border-radius:14px!important;background:#16161a!important}
body.dashboard-page .social-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.dashboard-page .social-badge-grid article{border-radius:13px!important;background:#18181d!important;border-color:#303038!important}
/* Public profile: keep member's own media / banner / Spotify but make UI fit Black Edition. */
body .tx-p4{--p4-surface:rgba(17,17,21,.91)!important;--p4-solid:#0c0c10!important;--p4-line:rgba(245,245,250,.10)!important;--p4-line-2:rgba(245,245,250,.19)!important;--p4-soft:#bbbcc6!important;--p4-text:#f2f2f4!important;--p4-dim:#999aa5!important;--p4-r:17px!important;color:#f4f4f6!important}
body .tx-p4:not(.has-custom-background){background:radial-gradient(ellipse 38% 40% at 65% 0%,#24242c44,transparent 90%),#080809!important}
body .tx-p4.has-custom-background:before{background:linear-gradient(180deg,#09090a77,#070709dc 82%),var(--profile-background-image) center/cover no-repeat!important;filter:saturate(.85)!important}
body .tx-p4 .social-profile-hero{padding-top:55px!important}
body .tx-p4 .social-profile-cover{border:1px solid #383841!important;border-bottom:0!important;border-radius:18px 18px 0 0!important;min-height:195px!important}
body .tx-p4 .social-profile-card{width:calc(100% - 32px)!important;margin:-49px auto 0!important;padding:30px!important;border:1px solid #33333c!important;border-radius:17px!important;background:rgba(14,14,18,.92)!important;backdrop-filter:blur(24px)!important;box-shadow:0 18px 70px #0009!important}
body .tx-p4 .social-profile-card__name h1{font-weight:560!important;letter-spacing:-.045em!important}
body .tx-p4 .social-profile-meta span{background:#1a1a2055!important;border-color:#33333c!important}
body .tx-p4 .social-profile-actions .pill{border-radius:999px!important;min-height:40px!important;padding:0 20px!important}
body .tx-p4 .social-profile-content{margin-top:24px!important;gap:18px!important}
body .tx-p4 .social-profile-section,body .tx-p4 .public-badges-card,body .tx-p4 .spotify-now-card{background:rgba(16,16,20,.9)!important;border:1px solid #33333b!important;border-radius:17px!important;padding:24px!important}
body .tx-p4 .social-profile-section__head h2{font-size:20px!important;font-weight:550!important;letter-spacing:-.035em!important}
body .tx-p4 .lvl-ach article,body .tx-p4 .public-achievement-grid article,body .tx-p4 .public-badges-card article.social-badge{background:#1b1b2055!important;border-color:#373740!important;border-radius:13px!important}
body .tx-p4 .lvl-ach h3,body .tx-p4 .public-achievement-grid h3{color:#ededf1!important;font-weight:550!important}
body .tx-p4 .lvl-ach p,body .tx-p4 .public-achievement-grid p{color:#9d9da9!important}
body .tx-p4 .lvl-ach em{color:#aeb1bd!important}
body .tx-p4 .spotify-now-card{border-color:#3c3c46!important}
body .tx-p4 .spotify-now-card::before,body .tx-p4 .spotify-now-card::after{display:none!important}
body .tx-p4 .social-profile-cover__shade{background:linear-gradient(180deg,transparent 50%,rgba(8,8,12,.65))!important}
@media(min-width:780px){body .tx-p4.tx-p4--single .social-profile-content{grid-template-columns:minmax(0,1fr)!important}body .tx-p4.tx-p4--single .social-profile-main{max-width:none}}
@media(max-width:1150px){body.dashboard-page .profile-editor-layout{grid-template-columns:minmax(0,1fr)!important}body.dashboard-page .profile-editor-card{position:relative;top:auto}body.dashboard-page .profile-editor-card__cover{height:210px!important}}
@media(max-width:700px){body.dashboard-page .profile-page-head{flex-direction:column;align-items:stretch}body.dashboard-page .profile-page-head .app-page-head__actions{justify-content:flex-start}body.dashboard-page .profile-editor-card__identity{padding:17px!important}body.dashboard-page .profile-settings-section{padding:20px!important}body.dashboard-page .profile-media-setting,body.dashboard-page .profile-media-setting--wide{flex-wrap:wrap}body.dashboard-page .profile-media-setting__preview{max-width:100%}body.dashboard-page .profile-customization-grid{grid-template-columns:1fr!important}body.dashboard-page .social-badge-grid{grid-template-columns:1fr!important}body .tx-p4 .social-profile-card{width:calc(100% - 12px)!important;padding:19px!important;margin:-32px auto 0!important}body .tx-p4 .social-profile-content{grid-template-columns:1fr!important}body .tx-p4 .social-profile-section,body .tx-p4 .public-badges-card,body .tx-p4 .spotify-now-card{padding:18px!important}body .tx-p4 .lvl-ach{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){body.dashboard-page .profile-check input[type=checkbox]::before{transition:none!important}}

/* Neutral fallback appearance: avoid legacy lime highlights on empty avatars and default covers. */
body.dashboard-page .profile-editor-card .social-avatar,
body .tx-p4 .social-avatar{background:radial-gradient(ellipse at 30% 15%,rgba(130,130,147,.18),transparent 65%),#15151b!important;border-color:#45454d!important;box-shadow:0 12px 30px #0007!important}
body.dashboard-page .profile-editor-card .social-avatar>span,
body .tx-p4 .social-avatar>span{color:#f1f1f3!important;font-weight:600!important}
body .tx-p4 .social-profile-cover:not(.has-custom-banner):not(.lvl-banner){background:radial-gradient(ellipse 55% 90% at 76% 0%,rgba(86,86,96,.19),transparent 82%),#111115!important}
body.dashboard-page .profile-service-mini i,body.dashboard-page .profile-visibility.is-public{background:#202025!important;border-color:#45454f!important;color:#c5c5d0!important;box-shadow:none!important}
body.dashboard-page .profile-editor-card__identity small{color:#96969e!important}
body.dashboard-page .profile-editor-card__badges i{background:#dbdbe0!important;color:#101013!important}
