/* Standalone profile page; preserve existing topbar, secondary audio and routing. */
.tfw-profile-page{min-height:100vh;background:#0a0812}
.tfw-profile-main{position:relative;isolation:isolate;min-height:calc(100vh - 100px);
 padding:clamp(120px,15vh,180px) 18px 100px;overflow:hidden}
.tfw-profile-shine{position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 25% 25%,rgba(184,66,156,.2),transparent 46%),
 radial-gradient(ellipse at 82% 75%,rgba(122,70,230,.15),transparent 42%)}
.tfw-profile-shell{width:min(860px,100%);margin:0 auto}
.tfw-profile-heading{text-align:center;margin:0 auto 42px}
.tfw-profile-overline{font:900 10px/1.3 Arial;letter-spacing:.2em;color:#f6a8d8}
.tfw-profile-heading h1{margin:8px 0 15px;
 font:900 clamp(43px,7vw,83px)/.88 "Arial Black",Impact,Arial;letter-spacing:-.06em}
.tfw-profile-heading>p:last-child{color:#d7c8df;font-size:13px}
.tfw-profile-card{display:flex;align-items:center;gap:24px;flex-wrap:wrap;
 padding:clamp(24px,4vw,38px);margin-bottom:18px;
 border:1px solid rgba(255,255,255,.15);border-radius:22px;
 background:linear-gradient(140deg,rgba(33,19,43,.88),rgba(12,10,21,.89));
 box-shadow:0 22px 64px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
.tfw-profile-avatar{display:grid;place-items:center;flex:0 0 84px;width:84px;height:84px;
 border-radius:25px;border:1px solid #e897d3;
 background:linear-gradient(135deg,#9c44ba,#382d76);font-size:47px;color:#fff}
.tfw-profile-card small{display:block;margin-bottom:8px;
 font:900 9px/1.2 Arial;letter-spacing:.16em;color:#b4a4c3}
.tfw-profile-card strong{display:block;
 font:900 clamp(22px,4vw,35px)/1 Arial;color:#fff}
.tfw-profile-card p{font:400 12px/1.6 Arial;color:#bdb1c8;margin:10px 0 0}
.tfw-profile-verified{font:900 9px/1 Arial;letter-spacing:.12em;color:#dcbbe6;
 margin-left:auto;padding:9px 12px;border:1px solid rgba(255,255,255,.16);border-radius:999px}
.tfw-profile-settings{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.tfw-profile-settings h2{margin:7px 0 14px;font:900 26px/1 Arial;letter-spacing:-.03em}
.tfw-profile-settings form{display:flex;flex-direction:column;gap:18px}
.tfw-profile-toggle{display:flex;align-items:flex-start;gap:13px;
 color:#e4d6e9;font:700 13px/1.5 Arial}
.tfw-profile-toggle input{width:18px;height:18px;accent-color:#e767b9;flex:none}
.tfw-profile-button{padding:14px 18px;border-radius:11px;
 border:1px solid rgba(255,255,255,.22);background:#ffffff12;color:#fff;
 font:900 10px/1.2 Arial;letter-spacing:.12em;cursor:pointer;transition:.2s}
.tfw-profile-button:hover{border-color:#f2a2da;background:#e562b722}
.tfw-profile-button:disabled{opacity:.5;cursor:wait}
.tfw-profile-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.tfw-profile-logout{background:linear-gradient(110deg,#ca5ba9,#8057d2)}
.tfw-profile-danger{color:#ffb8bb;border-color:#ff9da055}
.tfw-profile-feedback{min-height:30px;color:#f3c8e4;font:700 12px/1.5 Arial}
.tfw-profile-feedback.error{color:#ff969f}
#profileNewsletterStatus{font-size:12px;line-height:1.5;color:#ecd0e3}
@media(max-width:700px){
 .tfw-profile-main{padding:112px 14px 55px}
 .tfw-profile-heading{margin-bottom:25px}
 .tfw-profile-settings{grid-template-columns:1fr;gap:24px}
 .tfw-profile-avatar{width:63px;height:63px;flex-basis:63px;font-size:37px;border-radius:18px}
 .tfw-profile-verified{margin:0}
 .tfw-profile-card{gap:15px;padding:21px}
}
@media(prefers-reduced-motion:reduce){.tfw-profile-page *{transition:none!important}}

/* Stable avatar silhouette and custom in-site account confirmation overlay. */
.tfw-profile-avatar svg{width:44px;height:44px;display:block;color:#ffe3f2;
 filter:drop-shadow(0 0 12px rgba(238,126,207,.2))}
.tfw-profile-avatar{background:linear-gradient(140deg,#5a347b,#292052)}
.tfw-profile-confirm{
 position:fixed;left:50%;top:50%;width:min(450px,calc(100vw - 28px));
 max-height:min(calc(100dvh - 28px),640px);margin:0;padding:0;overflow:hidden;overscroll-behavior:contain;box-sizing:border-box;
 transform:translate(-50%,-50%);border:1px solid rgba(252,149,216,.38);
 border-radius:24px;background:#120c1e;color:#fff;
 box-shadow:0 30px 110px rgba(0,0,0,.65);
 z-index:2147482000
}
.tfw-profile-confirm:not([open]){display:none!important}
.tfw-profile-confirm::backdrop{background:rgba(6,4,12,.82);backdrop-filter:blur(11px)}
.tfw-profile-confirm-glow{position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(circle at 45% 0,rgba(219,85,179,.18),transparent 65%)}
.tfw-profile-confirm-inner{position:relative;padding:clamp(25px,5vw,42px);text-align:center}
.tfw-profile-confirm-inner h2{font:900 clamp(28px,5vw,41px)/1 "Arial Black",Arial,sans-serif;
 letter-spacing:-.05em;margin:14px 0}
.tfw-profile-confirm-inner>p:not(.tfw-profile-overline){font:400 13px/1.65 Arial;
 color:#dacadd;margin:13px 0 22px}
.tfw-profile-confirm-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.tfw-profile-confirm-actions button{min-width:130px}
.tfw-profile-confirm-actions .tfw-profile-danger{background:linear-gradient(110deg,#b83c79,#822f6c);color:#fff}
.tfw-profile-confirm-actions .tfw-profile-delete-confirm{
 background:linear-gradient(110deg,#aa3154,#7b243c);border-color:#ff9aa4}
#profileConfirmStatus{font:700 11px/1.5 Arial;color:#ffb8c9;min-height:8px}
@media(max-width:700px){.tfw-profile-avatar svg{width:33px;height:33px}}

/* Top-layer HTML dialog can out-rank the site's custom cursor canvas;
   show a native cursor inside the in-site confirmation dialog. */
@media(pointer:fine){
 html.tfw-global-cursor-ready .tfw-profile-confirm,
 html.tfw-global-cursor-ready .tfw-profile-confirm *{cursor:default!important}
 html.tfw-global-cursor-ready .tfw-profile-confirm button{cursor:pointer!important}
}
.tfw-newsletter-return{margin:22px 0 0;text-align:center}
.tfw-newsletter-return a{display:inline-flex;justify-content:center;align-items:center;
 padding:12px 20px;border:1px solid rgba(255,255,255,.22);
 border-radius:999px;color:#f4c7e6;text-decoration:none;
 font:800 10px/1 Arial;letter-spacing:.1em}
.tfw-newsletter-return a:hover{border-color:#e57cbc;background:rgba(237,104,191,.08)}

/* Registration date is read-only and comes from the Supabase profile row. */
.tfw-profile-joined{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:13px}
.tfw-profile-joined span{color:#a79ab4;font:800 9px/1.4 Arial;letter-spacing:.11em}
.tfw-profile-joined time{color:#edc5e7;font:800 12px/1.4 Arial}
.tfw-support-card{display:flex;justify-content:flex-start}
.tfw-support-card>div{max-width:100%;min-width:0}
.tfw-support-card strong{overflow-wrap:anywhere;font-size:clamp(20px,3vw,32px)}
.tfw-support-card .tfw-profile-button{margin-top:16px}

/* Profile: compact device-local Streamer Mode switch. */
.tfw-streamer-card{justify-content:space-between;gap:24px;align-items:center}
.tfw-streamer-description{flex:1 1 330px;min-width:0}
.tfw-streamer-description h2{margin:6px 0 8px;font:900 clamp(19px,3vw,27px)/1.1 Arial Black,Arial,sans-serif;color:#fff}
.tfw-profile-card .tfw-streamer-description p{margin:8px 0;color:#d8c9e0;line-height:1.55}
.tfw-profile-card .tfw-streamer-description .tfw-streamer-footnote{color:#a99bb5;font-size:11px}
.tfw-streamer-control{display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none}
.tfw-streamer-control input{position:absolute;width:1px;height:1px;opacity:0}
.tfw-streamer-track{display:flex;align-items:center;width:57px;height:31px;padding:3px;border:1px solid #ca91c3;border-radius:999px;background:#32243e;transition:background .18s}
.tfw-streamer-track span{display:block;width:23px;height:23px;border-radius:50%;background:#d8c8e3;transition:transform .18s,background .18s}
.tfw-streamer-control input:checked+.tfw-streamer-track{background:linear-gradient(120deg,#e466b5,#a57cda)}
.tfw-streamer-control input:checked+.tfw-streamer-track span{transform:translateX(25px);background:#fff}
.tfw-streamer-control input:focus-visible+.tfw-streamer-track{outline:2px solid white;outline-offset:4px}
.tfw-streamer-control strong{min-width:27px;text-align:right;font:900 11px/1 Arial;color:#f5d5ee}
