*{box-sizing:border-box}body{margin:0;background:#090c12;color:#f5f6f8;font-family:Arial, sans-serif}a{color:inherit;text-decoration:none}button{cursor:pointer}.side{position:fixed;inset:0 auto 0 0;width:245px;border-right:1px solid #252b36;padding:28px 16px;background:#090c12;z-index:10}.brand{font:700 25px Georgia,serif;display:block;margin:0 0 40px}.side nav{display:flex;flex-direction:column;gap:8px}.side nav a,.side button{display:block;padding:13px 12px;border:0;border-radius:10px;background:none;color:white;text-align:left;font-size:16px}.side nav a:hover,.side button:hover{background:#1b2230}.side form{margin:0}.main{margin-left:245px;min-height:100vh;display:grid;grid-template-columns:minmax(420px,630px) 280px;gap:55px;justify-content:center;padding:28px 30px}.feed{width:100%}.stories{display:flex;gap:15px;overflow:auto;padding:10px 4px 20px;border-bottom:1px solid #252b36}.story{display:flex;flex:0 0 72px;align-items:center;flex-direction:column;gap:6px;font-size:12px}.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #d62976;background:#273141;padding:2px}.letter{display:grid;place-items:center}.story .avatar{width:68px;height:68px;border:3px solid transparent;background:linear-gradient(#090c12,#090c12) padding-box,linear-gradient(45deg,#ffd76a,#ff315f,#962fbf) border-box}.story small{max-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer{display:flex;align-items:center;gap:12px;margin:15px 0;padding:12px;border-bottom:1px solid #252b36;color:#aab2bf}.composer span{flex:1;border:1px solid #394354;border-radius:25px;padding:12px}.composer b{font-size:24px}.post{padding:12px 0 18px;border-bottom:1px solid #252b36}.post header{display:flex;align-items:center;gap:10px;padding:0 3px 10px;font-weight:bold}.post header span{margin-left:auto}.media{width:100%;max-height:760px;object-fit:contain;background:#000;display:block}.actions{display:flex;gap:18px;padding:8px 2px}.actions button,.actions a{background:none;border:0;color:white;font-size:27px}.likes{font-size:13px}.caption{font-size:13px;line-height:1.5}.comments p{font-size:12px;color:#cbd2dc}.comment{display:flex;border-top:1px solid #252b36;padding-top:8px}.comment input,.search input{flex:1;min-width:0;background:transparent;border:0;color:white;padding:10px}.comment button{background:none;border:0;color:#3797f0}.right{padding-top:25px}.right>div,.right>p{display:flex;align-items:center;gap:10px;margin-bottom:18px}.right a{font-size:13px}.right>div a{margin-left:auto;color:#3797f0}.right h4{color:#9da7b5}.right small{color:#8993a2}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.authbox,.panel{width:min(430px,100%);padding:30px;background:#111722;border:1px solid #293342;border-radius:16px}.authbox{text-align:center}.authbox h1{font:700 32px Georgia,serif}.authbox h2{font-size:22px}.stack{display:flex;flex-direction:column;gap:12px}.stack input,.stack textarea,.bioedit input{width:100%;padding:13px;background:#1b2432;border:1px solid #384456;border-radius:9px;color:white}.stack textarea{min-height:90px}.btn{display:inline-block;background:#3797f0;color:white;border:0;border-radius:9px;padding:12px 18px;font-weight:bold}.authbox p{font-size:13px;color:#abb4c2}.authbox p a,.empty a{color:#3797f0}.error,.flash{background:#492630;color:#ffdbe2;padding:10px;border-radius:8px}.flash{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:40}.empty{text-align:center;padding:45px 15px;background:#111722;border:1px solid #293342;border-radius:14px;color:#aeb8c7}.profile{width:min(900px,100%);margin:auto}.profilehead{display:flex;gap:40px;padding:30px 6%;align-items:center;border-bottom:1px solid #293342}.profilehead>.avatar{width:130px;height:130px}.profilehead h1{font-size:22px;font-weight:500}.stats{display:flex;gap:25px}.stats span{display:flex;gap:5px}.profilehead p{color:#cbd2dc}.outline{display:inline-block;border:1px solid #566274;padding:10px;border-radius:8px;margin-left:8px}.bioedit{display:flex;gap:8px}.bioedit button{background:#293342;color:white;border:0;border-radius:8px;padding:9px}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:16px}.tiles img,.tiles video{width:100%;aspect-ratio:1;object-fit:cover}.search{display:flex;gap:8px}.reels{width:min(500px,100%);margin:auto}.reels article{margin:20px 0;background:#111722;border-radius:12px;overflow:hidden;padding-bottom:12px}.reels video{width:100%;height:min(75vh,750px);object-fit:cover}.reels b,.reels p{margin:10px;display:block}.mhead,.bottom{display:none}.panel{width:100%}@media(max-width:1100px){.main{grid-template-columns:minmax(0,630px)}.right{display:none}}@media(max-width:760px){.side{display:none}.mhead{height:58px;position:sticky;top:0;z-index:20;background:#090c12;border-bottom:1px solid #252b36;display:flex;align-items:center;justify-content:space-between;padding:0 15px}.mhead .brand{font-size:22px;margin:0}.mhead>a:last-child{font-size:25px}.main{display:block;margin:0;padding:0 0 70px}.stories{padding:12px 10px}.composer{margin:0;padding:12px 10px}.post{padding:10px 0}.post header{padding:0 11px 10px}.media{max-height:76vh}.actions,.likes,.caption,.comments,.comment{margin-left:11px;margin-right:11px}.right{display:none}.bottom{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:62px;background:#090c12;border-top:1px solid #252b36;align-items:center;justify-content:space-around}.bottom a{font-size:28px}.profilehead{padding:20px 12px;gap:16px}.profilehead>.avatar{width:88px;height:88px}.profilehead h1{font-size:18px}.stats{justify-content:space-between;gap:6px;font-size:12px}.stats span{display:flex;flex-direction:column;text-align:center}.tiles{gap:2px}.reels article{border-radius:0}.reels video{height:calc(100dvh - 125px)}.panel{border-radius:0;border-left:0;border-right:0}.flash{width:90%;text-align:center}}
/* Instagram-inspired create flow */
.create-wrap{grid-column:1/-1;width:min(100%,760px);margin:18px auto 50px;display:flex;flex-direction:column;align-items:center}
.create-card{width:100%;overflow:hidden;background:#111722;border:1px solid #303a49;border-radius:16px;box-shadow:0 22px 70px #0007}
.create-title{height:58px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;border-bottom:1px solid #2b3442;padding:0 14px}
.create-title>a{font-size:32px;color:#dce3ed;line-height:1;text-align:left}
.create-title h1{font-size:16px;text-align:center;margin:0;font-weight:700}
.create-tabs{display:flex;border-bottom:1px solid #2b3442}
.create-tabs a{flex:1;text-align:center;padding:15px 10px;color:#9da9ba;font-size:14px;font-weight:700;position:relative}
.create-tabs a.active{color:#fff}
.create-tabs a.active:after{content:"";position:absolute;bottom:0;left:22%;right:22%;height:3px;background:#3797f0;border-radius:3px 3px 0 0}
.create-form{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);min-height:430px}
.upload-drop{margin:18px;min-height:390px;border:1.5px dashed #536176;border-radius:12px;background:radial-gradient(ellipse at center,#202d40 0%,#141d2a 65%,#111722 100%);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;cursor:pointer;transition:.2s}
.upload-drop.dragover{border-color:#48b7ff;background:#172d45}
.upload-symbol{font-size:66px;line-height:1;color:#dce7f5;margin-bottom:18px}
.upload-drop h2{font-size:19px;margin:0 0 9px}
.upload-drop p{color:#9ba8b9;font-size:13px;line-height:1.5;margin:0 0 22px}
.upload-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.select-media{background:#3797f0;color:#fff;border-radius:8px;padding:11px 17px;font-weight:700;font-size:13px;box-shadow:0 5px 18px #1678ca44}
.create-details{padding:23px 20px 18px;border-left:1px solid #2b3442;display:flex;flex-direction:column;gap:13px}
.caption-label{font-size:14px;font-weight:700;display:flex;justify-content:space-between}
.caption-label span{font-size:11px;color:#8996a8;font-weight:400}
.create-details textarea,.create-details input{width:100%;min-height:150px;resize:vertical;background:#0c121b;border:1px solid #303b4b;border-radius:9px;padding:13px;color:#f5f7fa;outline:none;font:14px/1.5 Arial}
.create-details input{min-height:48px}
.create-details textarea:focus,.create-details input:focus{border-color:#3797f0}
.create-hint{font-size:11px;color:#8491a3;margin-top:auto;padding:12px 0;border-top:1px solid #2b3442}
.publish-btn{width:100%;margin-top:4px}
.upload-preview{position:relative;margin:18px;min-height:390px;background:#05080d;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.upload-preview[hidden]{display:none}
.upload-preview img,.upload-preview video{display:none;max-width:100%;max-height:540px;object-fit:contain}
.upload-preview.has-image img{display:block}
.upload-preview.has-video video{display:block}
.remove-media{position:absolute;right:12px;top:12px;border:0;border-radius:50%;width:34px;height:34px;background:#000b;color:#fff;font-size:25px}
.create-foot{font-size:10px;letter-spacing:1.5px;color:#748194;margin-top:25px}
@media(max-width:760px){.create-wrap{margin:0 auto 25px;padding:0 0 18px;width:100%}.create-card{border-radius:0;border-left:0;border-right:0}.create-form{display:flex;flex-direction:column;min-height:0}.upload-drop{min-height:310px;margin:12px}.upload-preview{min-height:310px;margin:12px}.create-details{border-left:0;border-top:1px solid #2b3442;padding:18px 15px}.create-details textarea{min-height:105px}.create-foot{margin:15px}.create-title{height:54px}}

/* ===== TÜRKTagram full visual refresh ===== */
:root{--bg:#080b11;--surface:#111722;--surface2:#171f2c;--line:#273243;--muted:#98a5b7;--text:#f4f6fa;--blue:#3797f0;--pink:#e1306c;--radius:18px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.45}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
.side{width:250px;padding:30px 18px;background:rgba(8,11,17,.96);border-right:1px solid var(--line);backdrop-filter:blur(18px)}
.brand{font-family:Inter,Arial,sans-serif;font-size:25px;font-weight:850;letter-spacing:-1.1px;margin:0 0 42px;padding:0 12px;color:#fff}
.side nav{gap:8px}
.side nav a,.side button{display:flex;align-items:center;gap:16px;padding:14px 15px;border-radius:13px;font-size:15px;font-weight:600;color:#e4e9f1;transition:background .18s,transform .18s}
.side nav a:hover,.side button:hover{background:#192231;transform:translateX(2px)}
.side nav a:first-child{font-weight:800}
.main{margin-left:250px;min-height:100vh;grid-template-columns:minmax(0,640px) 300px;gap:54px;justify-content:center;padding:34px 34px 70px}
.feed{width:100%;max-width:640px}
.stories{gap:18px;padding:8px 2px 23px;border-bottom:1px solid var(--line);margin-bottom:20px}
.story{flex:0 0 76px;font-size:12px;color:#e7ebf2}
.story .avatar{width:72px;height:72px;padding:3px;border:3px solid transparent;background:linear-gradient(var(--bg),var(--bg)) padding-box,linear-gradient(45deg,#ffcf43,#ff315f,#9b36d4) border-box}
.avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#293448;border:1px solid #39475c;padding:2px}
.composer{margin:0 0 20px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--muted);box-shadow:0 8px 24px #0002}
.composer span{border:1px solid #344155;background:#0d131d;padding:11px 16px}
.composer b{color:#fff}
.post{margin:0 0 24px;padding:0 0 20px;border:1px solid var(--line);border-radius:17px;background:var(--surface);overflow:hidden;box-shadow:0 12px 35px #0003}
.post header{padding:13px 15px;gap:11px}
.post header .avatar{width:40px;height:40px}
.post header span{margin-left:auto;color:#aab5c4;letter-spacing:2px}
.media{display:block;width:100%;max-height:760px;object-fit:contain;background:#05070b}
.actions{display:flex;align-items:center;gap:17px;padding:12px 15px 4px}
.actions button,.actions a{font-size:26px;line-height:1;color:#f4f6fa;background:none;border:0;padding:0}
.likes,.caption,.comments,.comment{margin-left:15px;margin-right:15px}
.likes{display:block;font-size:13px;margin-top:5px}
.caption{font-size:14px;margin-top:8px;margin-bottom:8px}
.comments{color:#c1c9d5;font-size:13px}
.comment{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:10px}
.comment input{flex:1;min-width:0;border:0;background:transparent;color:#fff;outline:0}
.comment button{border:0;background:transparent;color:#58a9fa;font-weight:700}
.right{position:sticky;top:30px;height:max-content;padding-top:12px;color:#dce3ed}
.right>div{display:flex;align-items:center;gap:12px;font-size:13px}
.right>div a{margin-left:auto;color:#5daafa;font-size:12px;font-weight:700}
.right h4{color:#aab5c4;margin:30px 0 15px}
.right p{display:flex;align-items:center;gap:10px;font-size:13px}
.right p .avatar{width:35px;height:35px}
.right small{display:block;margin-top:28px;color:#69778b;letter-spacing:1.3px}
.panel,.profile,.create-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 40px #0003}
.panel{padding:25px}
.panel h1,.panel h2{margin-top:0}
.stack{display:flex;flex-direction:column;gap:13px}
.stack input,.stack textarea,.search input,.bioedit input{width:100%;border:1px solid #344155;background:#0c121b;color:#fff;border-radius:11px;padding:13px 14px;outline:none}
.stack input:focus,.stack textarea:focus,.search input:focus,.bioedit input:focus{border-color:var(--blue)}
.btn{border:0;border-radius:11px;padding:12px 18px;background:linear-gradient(110deg,#3797f0,#1678d2);color:#fff;font-weight:750;box-shadow:0 7px 20px #1678d233}
.btn:hover{filter:brightness(1.08)}
.empty{padding:60px 22px;text-align:center;border:1px solid var(--line);background:var(--surface);border-radius:18px;color:var(--muted)}
.empty h2{color:#fff}
.search{display:flex;gap:10px;margin:15px 0 20px}
.search input{flex:1;min-width:0}
.profile{padding:30px}
.profilehead{display:flex;gap:30px;align-items:center;padding-bottom:28px;border-bottom:1px solid var(--line)}
.profilehead>.avatar{width:130px;height:130px;border:4px solid #343f52;padding:4px}
.profilehead h1{font-size:23px;margin:0 0 14px}
.stats{display:flex;gap:30px;color:#aeb9c8}
.stats b{color:#fff}
.bioedit{display:flex;gap:8px;margin-top:12px}
.bioedit button{border:0;border-radius:9px;padding:10px 15px;background:#26364c;color:white}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:25px}
.tiles a{aspect-ratio:1;background:#151e2a;overflow:hidden}
.tiles img,.tiles video{width:100%;height:100%;object-fit:cover}
.reels{width:min(100%,560px);margin:auto}
.reels h1{font-size:23px}
.reels article{position:relative;margin:18px 0 28px;border-radius:18px;overflow:hidden;background:#000;min-height:400px}
.reels video{display:block;width:100%;max-height:780px;object-fit:contain}
.reels article b,.reels article p{position:relative;display:block;padding:0 16px}
.mhead,.bottom{display:none}
.auth{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 50% 0%,#1c2a40 0%,#080b11 58%)}
.authbox{width:min(100%,420px);padding:38px 34px;border:1px solid #2c394b;border-radius:22px;background:#111722;box-shadow:0 28px 90px #0008;text-align:center}
.authbox h1{font-size:32px;letter-spacing:-1.2px;margin:0 0 35px}
.authbox h2{font-size:21px;margin:0 0 20px}
.authbox p{color:#aab5c4;font-size:13px;margin-top:22px}
.authbox p a{color:#59aaff;font-weight:700}
.flash,.error{padding:12px 16px;margin:15px auto;border-radius:10px;background:#34202a;color:#ffb7c9;max-width:640px}
.create-wrap{max-width:820px;margin:12px auto 50px}
.create-card{background:#111722}
.create-title{height:62px}
.create-title h1{font-size:17px}
.create-tabs a{padding:17px}
.upload-drop{background:radial-gradient(ellipse at center,#1c2a3d,#101722 70%);border-color:#44536a}
.upload-drop h2{font-size:20px}
.create-details textarea,.create-details input{background:#0a1019;border-color:#303d50}
.create-foot{color:#718096}
.bottom{display:none}
@media(max-width:1100px){.main{grid-template-columns:minmax(0,640px);padding:26px 28px}.right{display:none}}
@media(max-width:760px){
 body{font-size:14px}
 .side{display:none}
 .mhead{position:sticky;top:0;z-index:20;height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:rgba(8,11,17,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
 .mhead .brand{font-size:22px;margin:0;padding:0}
 .mhead>a:last-child{font-size:23px}
 .main{margin:0;display:block;min-height:calc(100vh - 112px);padding:0 0 75px}
 .feed{max-width:none}
 .stories{padding:13px 13px 17px;margin:0 0 10px;gap:13px}
 .story{flex-basis:70px}
 .story .avatar{width:66px;height:66px}
 .composer{margin:10px 12px 14px;padding:10px;border-radius:14px}
 .post{border-radius:0;border-left:0;border-right:0;margin:0 0 12px;padding-bottom:15px}
 .post header{padding:11px 13px}
 .media{max-height:none;width:100%;aspect-ratio:auto;object-fit:contain}
 .actions{padding:12px 14px 3px}
 .likes,.caption,.comments,.comment{margin-left:14px;margin-right:14px}
 .right{display:none}
 .bottom{position:fixed;z-index:30;left:0;right:0;bottom:0;height:62px;display:flex;align-items:center;justify-content:space-around;background:rgba(8,11,17,.97);border-top:1px solid var(--line);backdrop-filter:blur(18px);padding-bottom:env(safe-area-inset-bottom)}
 .bottom a{font-size:25px;display:grid;place-items:center;width:20%;height:100%;color:#f5f6fa}
 .panel{border-radius:0;border-left:0;border-right:0;padding:20px 15px}
 .profile{border:0;border-radius:0;padding:18px 14px;background:transparent;box-shadow:none}
 .profilehead{gap:18px;padding-bottom:22px}
 .profilehead>.avatar{width:92px;height:92px}
 .profilehead h1{font-size:18px}
 .stats{gap:14px;font-size:12px}
 .tiles{gap:2px;margin:12px -14px 0}
 .auth{padding:15px}
 .authbox{padding:30px 22px;border-radius:18px}
 .authbox h1{font-size:29px}
 .create-wrap{width:100%;margin:0 auto 20px;padding:0}
 .create-card{border-radius:0;border-left:0;border-right:0}
 .create-title{height:55px}
 .create-form{display:flex;flex-direction:column}
 .upload-drop{min-height:310px;margin:12px}
 .upload-preview{min-height:310px;margin:12px}
 .create-details{border-left:0;border-top:1px solid var(--line);padding:17px 14px}
 .create-details textarea{min-height:100px}
 .create-foot{margin:16px;text-align:center}
 .reels{width:100%;padding:0 10px}
 .reels article{border-radius:14px}
}

/* Profile photo + story music controls */
.avatar-upload{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}
.avatar-upload label{display:flex;flex-direction:column;gap:7px;color:#b9c5d5;font-size:13px}
.avatar-upload input{max-width:230px;color:#dce5f0;font-size:12px}
.music-picker{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;margin:12px 0;border:1px solid #34445a;border-radius:13px;background:linear-gradient(120deg,#18263a,#111a27);color:#f5f7fb;font-weight:700}
.music-picker span{display:flex;flex-direction:column;gap:4px}
.music-picker small{font-size:11px;color:#9eacc0;font-weight:400}
.music-picker input{max-width:220px;font-size:12px;color:#dbe5f2}
.story-viewer{width:min(100% - 24px,520px);min-height:70vh;margin:22px auto;padding:14px;background:#05070b;border:1px solid #273243;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.story-viewer header{width:100%;display:flex;align-items:center;gap:10px}
.story-viewer header .avatar{width:38px;height:38px}
.story-viewer header a{margin-left:auto;color:#fff}
.story-viewer>img,.story-viewer>video{max-width:100%;max-height:68vh;object-fit:contain;border-radius:10px}
.story-viewer>p{align-self:flex-start;color:#f4f6fa}
.story-audio{width:100%;display:flex;flex-direction:column;gap:8px;color:#dbe5f2;font-size:13px}
.story-audio audio{width:100%}
@media(max-width:760px){.story-viewer{width:100%;min-height:calc(100vh - 135px);margin:0;border-radius:0;border-left:0;border-right:0}.avatar-upload{align-items:flex-start}.music-picker{align-items:flex-start;flex-direction:column}.music-picker input{max-width:100%}}

/* User-selectable light theme */
.theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:11px 13px!important;margin:10px 4px;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface2)!important;color:var(--text)!important;font-size:13px!important;font-weight:700!important;white-space:nowrap}
.mhead-actions{display:flex;align-items:center;gap:12px}
.mhead-actions .theme-toggle{margin:0;padding:8px 11px!important;min-width:42px}
body[data-theme="light"]{--bg:#f5f6f8;--surface:#fff;--surface2:#f0f2f5;--line:#e1e4e9;--muted:#687386;--text:#17191d;background:var(--bg);color:var(--text)}
body[data-theme="light"] .side{background:rgba(255,255,255,.96);border-color:var(--line)}
body[data-theme="light"] .side nav a,body[data-theme="light"] .side button{color:#20242b}
body[data-theme="light"] .side nav a:hover,body[data-theme="light"] .side button:hover{background:#edf0f4}
body[data-theme="light"] .brand{color:#17191d}
body[data-theme="light"] .mhead,body[data-theme="light"] .bottom{background:rgba(255,255,255,.97);border-color:var(--line)}
body[data-theme="light"] .mhead-actions>a,body[data-theme="light"] .bottom a{color:#17191d}
body[data-theme="light"] .post,body[data-theme="light"] .panel,body[data-theme="light"] .profile,body[data-theme="light"] .create-card,body[data-theme="light"] .composer,body[data-theme="light"] .empty{background:#fff;border-color:#e2e5ea;color:#20242b;box-shadow:0 8px 26px #18243a0b}
body[data-theme="light"] .post header span,body[data-theme="light"] .comments,body[data-theme="light"] .create-foot{color:#687386}
body[data-theme="light"] .post .actions button,body[data-theme="light"] .post .actions a,body[data-theme="light"] .empty h2,body[data-theme="light"] .stats b{color:#17191d}
body[data-theme="light"] .likes,body[data-theme="light"] .caption,body[data-theme="light"] .profile p{color:#252a33}
body[data-theme="light"] .stack input,body[data-theme="light"] .stack textarea,body[data-theme="light"] .search input,body[data-theme="light"] .bioedit input,body[data-theme="light"] .create-details textarea,body[data-theme="light"] .create-details input{background:#fff;color:#17191d;border-color:#d8dde5}
body[data-theme="light"] .upload-drop{background:linear-gradient(135deg,#f7f9fc,#edf2f8);border-color:#d6dce6;color:#242a34}
body[data-theme="light"] .upload-drop h2,body[data-theme="light"] .upload-drop p{color:#242a34}
body[data-theme="light"] .create-tabs{border-color:#e2e5ea}
body[data-theme="light"] .create-tabs a{color:#4d5869}
body[data-theme="light"] .create-tabs a.active{color:#1976d2;border-color:#1976d2}
body[data-theme="light"] .profilehead,body[data-theme="light"] .comment{border-color:#e2e5ea}
body[data-theme="light"] .stats{color:#687386}
body[data-theme="light"] .auth{background:radial-gradient(ellipse at 50% 0%,#e6edf8 0%,#f5f6f8 60%)}
body[data-theme="light"] .authbox{background:#fff;border-color:#e1e5eb;box-shadow:0 20px 65px #18243a12}
body[data-theme="light"] .authbox h1,body[data-theme="light"] .authbox h2{color:#17191d}
body[data-theme="light"] .authbox p{color:#687386}
body[data-theme="light"] .theme-toggle{background:#eef1f5!important;color:#20242b!important;border-color:#dce1e8!important}
body[data-theme="light"] .music-picker{background:linear-gradient(120deg,#f2f5fa,#fff);border-color:#dce2ea;color:#20242b}
body[data-theme="light"] .music-picker small{color:#687386}
body[data-theme="light"] .story-viewer{background:#fff;border-color:#e1e5eb}
body[data-theme="light"] .story-viewer header a,body[data-theme="light"] .story-viewer>p,body[data-theme="light"] .story-audio{color:#20242b}
body[data-theme="light"] .right{color:#20242b}
body[data-theme="light"] .right h4{color:#687386}
body[data-theme="light"] .flash{background:#fff0f3;color:#9d2447}
@media(max-width:760px){body[data-theme="light"] .post{background:#fff}body[data-theme="light"] .bottom{background:rgba(255,255,255,.97)}}

/* Licensed searchable music picker */
.music-picker{display:block;padding:0;border:0;background:none;margin:10px 0}
.music-open{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:15px 16px;border:1px solid #34445a;border-radius:13px;background:linear-gradient(120deg,#18263a,#111a27);color:#fff;font-weight:750}
.music-open small{display:block;color:#9eacc0;font-size:11px;font-weight:400}
.chosen-track{margin-top:9px;padding:12px 14px;border-radius:10px;background:#173d2c;color:#b7f3d2;font-size:13px}
.music-modal[hidden],.chosen-track[hidden]{display:none}
.music-modal{position:fixed;inset:0;z-index:1000;background:#000b;display:grid;place-items:center;padding:15px}
.music-dialog{width:min(100%,520px);max-height:min(82vh,760px);display:flex;flex-direction:column;background:#151d29;border:1px solid #344155;border-radius:18px;padding:17px;box-shadow:0 25px 90px #0009}
.music-dialog header{display:flex;justify-content:space-between;align-items:center;font-size:18px;margin-bottom:15px}
.music-dialog header button{border:0;background:none;color:#fff;font-size:20px}
.music-dialog>input{padding:13px 15px;border:1px solid #3a4960;border-radius:11px;background:#0b121d;color:#fff;outline:none}
.music-results{overflow:auto;min-height:150px;padding:8px 0}
.music-results>p{color:#9eacc0;font-size:13px;text-align:center;padding:20px}
.music-result{display:flex;align-items:center;gap:10px;padding:12px 3px;border-bottom:1px solid #2c3747}
.music-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.music-meta b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-meta small{font-size:11px;color:#9eacc0}
.music-result button{border:0;border-radius:9px;padding:8px 11px;background:#27364a;color:#fff;font-size:12px}
.music-result .select-track{background:#3797f0;font-weight:700}
.music-dialog footer{border-top:1px solid #2c3747;padding-top:12px;color:#8e9bae;font-size:10px}
body[data-theme="light"] .music-open{background:#f0f4fa;color:#20242b;border-color:#dce2ea}
body[data-theme="light"] .music-open small{color:#687386}
body[data-theme="light"] .music-dialog{background:#fff;border-color:#e1e5eb}
body[data-theme="light"] .music-dialog header button{color:#20242b}
body[data-theme="light"] .music-dialog>input{background:#f7f8fa;color:#20242b;border-color:#d8dde5}
body[data-theme="light"] .music-meta small,body[data-theme="light"] .music-dialog footer{color:#687386}
body[data-theme="light"] .music-result{border-color:#e4e7ec}
body[data-theme="light"] .music-result .preview-track{background:#e8edf4;color:#20242b}


/* V7 — modern desktop navigation + app-like mobile layout */
.side{display:flex;flex-direction:column;width:258px;padding:28px 18px 20px}
.side .brand{display:flex;align-items:center;gap:10px;margin:2px 8px 42px;font-size:25px;letter-spacing:-1.2px}
.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:linear-gradient(135deg,#ffb347,#f13b75 55%,#8c45dc);color:white;font-size:27px;line-height:1}
.brand-accent{background:linear-gradient(90deg,#ff8a4c,#e83e85);-webkit-background-clip:text;background-clip:text;color:transparent}
.nav-label{padding:0 13px 10px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:1.5px}
.side .main-nav{gap:7px}
.side .main-nav a,.side .nav-bottom button{display:flex;align-items:center;gap:15px;min-height:50px;padding:10px 14px;border:1px solid transparent;border-radius:14px;color:var(--text);font-size:14px;font-weight:650;transition:background .18s,border-color .18s,transform .18s}
.side .main-nav a:hover,.side .nav-bottom button:hover{background:var(--surface2);transform:translateX(2px)}
.side .main-nav a.active{background:linear-gradient(100deg,rgba(225,48,108,.16),rgba(55,151,240,.08));border-color:rgba(225,48,108,.2);font-weight:800}
.nav-icon{width:27px;display:inline-grid;place-items:center;font-size:23px;line-height:1}
.nav-dot{width:6px;height:6px;margin-left:auto;border-radius:50%;background:#e1306c}
.nav-bottom{margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}
.side .nav-bottom button{width:100%;background:none;text-align:left}
.logout-form{margin:5px 0 0}
.side .logout-button{color:#ff8a9e!important}
.mhead,.bottom{display:none}
.main{margin-left:258px}
body[data-theme="light"] .side .main-nav a,body[data-theme="light"] .side .nav-bottom button{color:var(--text)}
body[data-theme="light"] .side .main-nav a.active{background:linear-gradient(100deg,#fff0f4,#eef5ff);border-color:#f4d7e1}

/* Phone: compact app header, floating-feel tab bar, full-width content */
@media(max-width:760px){
 body{font-size:14px;padding-bottom:env(safe-area-inset-bottom)}
 .side{display:none}
 .mhead{display:flex;position:sticky;top:0;z-index:60;height:60px;padding:0 17px;align-items:center;justify-content:space-between;background:rgba(9,12,18,.91);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
 .mhead .brand{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:850;letter-spacing:-1px;margin:0}
 .mhead .brand-mark{width:31px;height:31px;border-radius:10px;font-size:23px}
 .mhead-actions{display:flex;align-items:center;gap:9px}
 .mhead-actions>a,.mhead-actions>button{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:var(--surface2);border:1px solid var(--line);color:var(--text);font-size:19px}
 .mhead-actions .theme-toggle{margin:0!important;padding:0!important;min-width:39px!important}
 .main{display:block;margin:0;min-height:calc(100dvh - 130px);padding:0 0 92px}
 .feed{width:100%;max-width:none}
 .stories{padding:15px 13px 17px;margin:0 0 8px;gap:13px;border-bottom:1px solid var(--line)}
 .story{flex:0 0 69px;gap:6px}
 .story .avatar{width:64px;height:64px}
 .story small{font-size:11px;color:var(--muted)}
 .composer{margin:10px 12px 15px;padding:11px 12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 5px 18px #00000012}
 .composer span{background:var(--surface2);border-color:var(--line);font-size:13px}
 .post{margin:0 0 12px;padding:0 0 15px;background:var(--surface);border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0}
 .post header{padding:12px 14px 11px;font-size:13px}
 .post header .avatar{width:38px;height:38px}
 .media{display:block;width:100%;max-height:76dvh;object-fit:contain;background:#050608}
 .actions{display:flex;gap:17px;padding:11px 14px 3px}
 .actions button,.actions a{font-size:25px}
 .likes,.caption,.comments,.comment{margin-left:14px;margin-right:14px}
 .caption{font-size:13px;line-height:1.55}
 .comment{padding:7px 0}
 .comment input{font-size:13px}
 .bottom{display:flex;position:fixed;z-index:80;left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));height:66px;align-items:center;justify-content:space-around;padding:5px 5px;background:rgba(20,25,35,.94);border:1px solid rgba(255,255,255,.12);border-radius:21px;box-shadow:0 10px 35px #0008;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
 .bottom>a,.bottom>form{display:flex;flex:1;min-width:0;height:54px;align-items:center;justify-content:center;flex-direction:column;gap:1px;border:0;background:none;color:#9ca8ba}
 .bottom>a span,.bottom>form button span{font-size:22px;line-height:26px}
 .bottom small{font-size:9px;font-weight:650;letter-spacing:-.1px}
 .bottom>a.active{color:#ff6b98}
 .bottom>a.active span{filter:drop-shadow(0 0 7px #e1306c66)}
 .bottom>form button{display:flex;width:100%;height:54px;align-items:center;justify-content:center;flex-direction:column;gap:1px;padding:0;border:0;background:none;color:#9ca8ba}
 .bottom>form button small{font-size:9px}
 .profilehead{padding:20px 14px;gap:14px}
 .profilehead>.avatar{width:84px;height:84px}
 .profilehead h1{font-size:17px}
 .stats{gap:4px;font-size:11px}
 .tiles{gap:2px}
 .reels article{border-radius:0}
 .reels video{height:calc(100dvh - 145px)}
 .panel{margin:10px 10px;border-radius:17px;border:1px solid var(--line);padding:18px}
 .flash{width:calc(100% - 28px);top:70px}
 .create-wrap{width:100%;padding:0 0 20px}
 .create-card{border-radius:0;border-left:0;border-right:0}
 .create-title{height:55px}
 .upload-drop,.upload-preview{min-height:280px}
 .music-modal{padding:10px}
 .music-dialog{max-height:84dvh;border-radius:19px;padding:15px}
 body[data-theme="light"] .mhead{background:rgba(255,255,255,.92);border-bottom-color:var(--line)}
 body[data-theme="light"] .bottom{background:rgba(255,255,255,.93);border-color:#dfe3e9;box-shadow:0 8px 30px #18243a22}
 body[data-theme="light"] .bottom>a,body[data-theme="light"] .bottom>form button{color:#687386}
 body[data-theme="light"] .bottom>a.active{color:#d92e6e}
 body[data-theme="light"] .post{background:#fff}
}
@media(min-width:761px){.mhead,.bottom{display:none!important}}

/* V8 upload and profile controls */
.avatar-upload{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}
.avatar-pick{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);color:var(--text);font-size:13px;font-weight:700;cursor:pointer}
.avatar-pick input{max-width:190px;font-size:11px}
.reels-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 18px}
.reels-heading h1{margin:0}
.create-tabs{display:grid;grid-template-columns:repeat(3,1fr)}
.create-tabs a{text-align:center}
.upload-drop .select-media{font-size:14px}
@media(max-width:760px){
 .avatar-upload{align-items:stretch;flex-direction:column}
 .avatar-pick{justify-content:center;min-height:46px}
 .avatar-pick input{max-width:65%;font-size:12px}
 .reels-heading{padding:16px 14px}
 .reels-heading .btn{font-size:12px;padding:10px 12px}
 .create-tabs a{font-size:14px;padding:13px 5px}
}


/* V9 polish: true light palette and story-empty state */
body[data-theme="light"]{background:#f5f6fa!important;color:#202532!important}
body[data-theme="light"] .main,body[data-theme="light"] .feed,body[data-theme="light"] .profile{color:#202532}
body[data-theme="light"] .post,body[data-theme="light"] .panel,body[data-theme="light"] .create-card,body[data-theme="light"] .create-wrap{background:#fff;color:#202532}
body[data-theme="light"] .post header,body[data-theme="light"] .post .caption,body[data-theme="light"] .post .likes,body[data-theme="light"] .comments,body[data-theme="light"] .profilehead,body[data-theme="light"] .create-title,body[data-theme="light"] .create-tabs{color:#202532}
body[data-theme="light"] .create-card h1,body[data-theme="light"] .create-card h2,body[data-theme="light"] .create-card p,body[data-theme="light"] .create-title a{color:#202532}
body[data-theme="light"] .upload-drop{background:#f7f8fc!important;border-color:#dce2ec!important;color:#202532!important}
body[data-theme="light"] .upload-drop h2,body[data-theme="light"] .upload-drop p{color:#202532!important}
body[data-theme="light"] .create-details,body[data-theme="light"] .create-details label{color:#202532}
body[data-theme="light"] .create-details textarea,body[data-theme="light"] .bioedit input,body[data-theme="light"] .comment input,body[data-theme="light"] .search input{background:#f7f8fb;color:#202532;border-color:#dce2ec}
body[data-theme="light"] .create-tabs a{color:#5f6878}
body[data-theme="light"] .create-tabs a.active{color:#1976d2}
body[data-theme="light"] .avatar-pick{background:#f2f4f8;color:#202532;border:1px solid #dce2ec}
body[data-theme="light"] .right,body[data-theme="light"] .right small,body[data-theme="light"] .right h4{color:#5f6878}
body[data-theme="light"] .empty{background:#fff;color:#202532;border-color:#e1e5eb}
body[data-theme="light"] .actions button,body[data-theme="light"] .actions a{color:#202532}
body[data-theme="light"] .mhead{color:#202532}
body[data-theme="light"] .mhead-actions>a,body[data-theme="light"] .mhead-actions>button{background:#f0f2f6;color:#202532;border-color:#dce1e8}
body[data-theme="light"] .bottom{color:#202532}
@media(max-width:760px){
 .create-card{width:100%;overflow:hidden}
 .upload-drop{margin:12px!important;min-height:270px!important;padding:25px 14px!important}
 .upload-drop .select-media{max-width:100%;white-space:normal;text-align:center}
 .create-details{padding:16px!important}
 .avatar-upload{display:flex;flex-wrap:wrap;gap:10px}
 .avatar-pick{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:12px}
 .avatar-pick input{max-width:180px}
 .mhead-actions .theme-toggle{font-size:0!important}
}

/* V10 logo signature */
.brand-copy{display:flex;flex-direction:column;gap:3px;line-height:1}
.brand-copy>span{white-space:nowrap}
.brand-copy small{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:9px;font-weight:800;letter-spacing:2.1px;color:var(--muted);line-height:1.2}
.mhead .brand-copy small{font-size:8px;letter-spacing:1.7px}
body[data-theme="light"] .brand-copy small{color:#778195}
@media(max-width:760px){.mhead .brand{gap:8px}.mhead .brand-copy{gap:4px}}


/* V12: profile upload, visible theme switch, refined messaging */
.avatar-placeholder{display:grid!important;place-items:center;background:linear-gradient(145deg,#273247,#111827)!important;border:2px solid #53627a!important;color:#dce5f2!important;padding:0!important}
.avatar-placeholder svg{width:48%;height:48%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profilehead>.avatar-placeholder{width:112px;height:112px}
.avatar-upload{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}
.avatar-pick{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:12px;background:var(--surface2);border:1px solid var(--line);color:var(--text);font-size:13px;font-weight:700;cursor:pointer}
.avatar-pick input{max-width:190px;font-size:12px}
.theme-toggle .theme-symbol{font-size:19px;line-height:1}
.theme-toggle .theme-label{font-size:13px}
.mhead-actions .theme-toggle{font-size:16px!important}
.mobile-message svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.message-icon{font-size:22px!important;transform:rotate(0deg)}
body[data-theme="dark"] .mhead-actions .theme-toggle{background:linear-gradient(145deg,#242c3b,#111722)!important;border-color:#46536a!important;color:#ffe08a!important;box-shadow:0 3px 12px #0007}
body[data-theme="light"] .mhead-actions .theme-toggle{background:linear-gradient(145deg,#fff,#e9edf5)!important;border-color:#cbd3df!important;color:#39465b!important;box-shadow:0 3px 12px #25334a18}
body[data-theme="dark"] .mhead-actions .mobile-message{background:linear-gradient(145deg,#293448,#151c29);border-color:#48566c;color:#f7f9ff;box-shadow:0 3px 12px #0007}
body[data-theme="light"] .mhead-actions .mobile-message{background:linear-gradient(145deg,#fff,#edf1f7);border-color:#d7deea;color:#263246}
body[data-theme="dark"] .bottom{background:rgba(12,16,24,.96);border-color:#394457;box-shadow:0 10px 35px #000a}
body[data-theme="dark"] .bottom>a,body[data-theme="dark"] .bottom>form button{color:#b7c1d1}
body[data-theme="dark"] .bottom>a.active{color:#ff4b91}
body[data-theme="dark"] .post,body[data-theme="dark"] .panel,body[data-theme="dark"] .empty{background:#121925;color:#f3f5fa;border-color:#2b3545}
body[data-theme="dark"] .composer{background:#121925;border-color:#2b3545;color:#f3f5fa}
body[data-theme="dark"] .composer span{background:#1a2433;border-color:#3b485d;color:#e9edf5}
body[data-theme="dark"] .profilehead,body[data-theme="dark"] .profilehead h1,body[data-theme="dark"] .stats{color:#f3f5fa}
body[data-theme="dark"] .avatar-pick{background:#1b2636;border-color:#46536a;color:#f3f5fa}
@media(max-width:760px){
 .mhead-actions .theme-toggle{min-width:42px!important;width:42px;height:42px;padding:0!important;display:grid!important;place-items:center}
 .mhead-actions .theme-toggle .theme-label{display:none}
 .mhead-actions .theme-toggle .theme-symbol{font-size:22px}
 .mhead-actions .mobile-message{width:42px;height:42px;border-radius:13px}
 .profilehead>.avatar-placeholder{width:96px;height:96px}
 .avatar-pick{width:100%;justify-content:center}
 .avatar-pick input{max-width:65%;flex:1}
 .bottom .message-icon{font-size:23px!important}
 body[data-theme="dark"] .main{background:#090d14}
 body[data-theme="dark"] .mhead{background:rgba(8,12,19,.97);border-bottom-color:#2a3444}
}


/* V13 profile layout correction — keep avatar circular and picker clean */
.profilehead{align-items:flex-start}
.profilehead>.avatar{display:block;flex:0 0 112px;width:112px;height:112px;min-width:112px;max-width:112px;aspect-ratio:1/1;border-radius:50%;object-fit:cover}
.profilehead>.avatar-placeholder{display:grid;flex:0 0 112px;width:112px;height:112px;min-width:112px;max-width:112px;aspect-ratio:1/1;border-radius:50%}
.profilehead>div{flex:1;min-width:0}
.avatar-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0}
.avatar-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:190px;padding:12px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface2);color:var(--text);font-size:14px;font-weight:750;cursor:pointer;overflow:hidden}
.avatar-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:100px}
.avatar-upload .btn{min-height:48px}
body[data-theme="light"] .avatar-pick{background:#f0f3f8;border-color:#d6deea;color:#202938}
body[data-theme="dark"] .avatar-pick{background:#202b3b;border-color:#4a5a72;color:#f4f7fc}
body[data-theme="dark"] .avatar-upload .btn{background:linear-gradient(110deg,#278be9,#1468c4);color:#fff}
@media(max-width:760px){
 .profile{width:100%;padding:0 14px}
 .profilehead{display:flex;align-items:flex-start;gap:14px;padding:22px 4px 20px}
 .profilehead>.avatar,.profilehead>.avatar-placeholder{flex:0 0 92px!important;width:92px!important;height:92px!important;min-width:92px!important;max-width:92px!important;border-radius:50%!important;aspect-ratio:1/1}
 .profilehead>div{flex:1;min-width:0}
 .profilehead h1{margin:0 0 13px;font-size:19px;overflow-wrap:anywhere}
 .stats{display:flex;justify-content:space-between;gap:5px;width:100%;font-size:12px}
 .stats span{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px}
 .avatar-upload{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:9px}
 .avatar-pick{width:100%;min-width:0;min-height:48px}
 .avatar-upload .btn{width:100%;min-height:48px}
 .bioedit{display:flex;flex-direction:column;width:100%;gap:8px}
 .bioedit input{width:100%;min-width:0}
 .bioedit button{min-height:45px}
 body[data-theme="dark"] .profilehead{color:#f3f6fc}
 body[data-theme="dark"] .stats{color:#d0d8e5}
}


/* V13 — redesigned profile page */
.profile-modern{max-width:860px;margin:28px auto 60px;border-radius:26px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:0 22px 70px rgba(0,0,0,.10)}
.profile-cover{height:154px;position:relative;overflow:hidden;background:linear-gradient(115deg,#121b2c 0%,#263e5e 45%,#8b2c63 100%)}
.profile-cover:before,.profile-cover:after{content:"";position:absolute;border-radius:50%;filter:blur(2px)}
.profile-cover:before{width:360px;height:240px;right:8%;top:-150px;background:rgba(255,255,255,.12)}
.profile-cover:after{width:280px;height:220px;left:5%;bottom:-180px;background:rgba(255,65,133,.38)}
.cover-glow{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent);transform:skewX(-20deg) scale(1.5)}
.cover-label{position:absolute;right:24px;bottom:18px;color:#fff9;font-size:10px;font-weight:800;letter-spacing:2.3px}
.profile-card{padding:0 34px 32px}
.profile-top{display:flex;align-items:flex-start;gap:26px;margin-top:-56px;position:relative}
.profile-avatar-wrap{position:relative;flex:0 0 132px;width:132px;height:132px;border-radius:50%;padding:5px;background:var(--surface);box-shadow:0 8px 28px #0003}
.profile-avatar-wrap>.avatar{display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;flex:none!important;border-radius:50%!important;object-fit:cover!important;padding:0!important;border:3px solid transparent!important;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(135deg,#ffb347,#f13b75 55%,#8c45dc) border-box!important}
.profile-avatar-wrap>.avatar-placeholder{display:grid!important;place-items:center}
.profile-avatar-wrap>.avatar-placeholder svg{width:46%;height:46%}
.online-indicator{position:absolute;right:11px;bottom:10px;width:17px;height:17px;border:3px solid var(--surface);border-radius:50%;background:#32c985}
.profile-main{flex:1;min-width:0;padding-top:64px}
.profile-title-row{display:flex;align-items:center;gap:10px}
.profile-title-row h1{margin:0;font-size:25px;font-weight:800;letter-spacing:-.7px;color:var(--text)}
.profile-handle{margin:4px 0 0;color:var(--muted);font-size:13px}
.profile-check{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:linear-gradient(135deg,#f43f86,#9b55e8);color:white;font-size:12px;font-weight:900}
.profile-stats{display:flex;gap:0;margin:22px 0 18px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-stats>div{display:flex;align-items:baseline;gap:6px;flex:1}
.profile-stats b{font-size:19px;color:var(--text)}
.profile-stats span{font-size:12px;color:var(--muted)}
.profile-actions form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.profile-actions .btn,.profile-actions .outline{min-height:43px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:10px 17px;font-size:13px;font-weight:750}
.profile-actions .outline{border:1px solid var(--line);background:var(--surface2);color:var(--text);margin:0}
.avatar-upload{display:flex;flex-wrap:wrap;gap:9px;margin:0}
.avatar-pick{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:43px;padding:10px 14px;border-radius:12px;background:var(--surface2);border:1px solid var(--line);color:var(--text);font-size:12px;font-weight:750;cursor:pointer;overflow:hidden}
.avatar-pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;max-width:none;font-size:0}
.pick-icon{font-size:17px;color:#f04b8b}
.avatar-save{min-height:43px!important;padding:10px 15px!important;border-radius:12px!important}
.profile-bio{margin:20px 0 22px;padding:18px 20px;border-radius:16px;background:var(--surface2);border:1px solid var(--line)}
.profile-bio>p{margin:0 0 10px;color:var(--text);font-size:14px;line-height:1.6}
.profile-bio .bio-muted{color:var(--muted)}
.profile-bio .bioedit{display:flex;gap:9px;margin-top:10px}
.profile-bio .bioedit input{flex:1;min-width:0;padding:12px 14px;border-radius:11px;background:var(--bg);border:1px solid var(--line);color:var(--text)}
.profile-bio .bioedit button{border:0;border-radius:11px;padding:0 15px;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:12px;font-weight:750}
.profile-content-head{display:flex;align-items:center;justify-content:space-between;padding:15px 2px;border-bottom:1px solid var(--line)}
.profile-content-head h2{margin:0;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.profile-content-head span{font-size:21px;color:#ef4b91}
.profile-modern .tiles{margin-top:12px;gap:8px}
.profile-modern .tiles>a{position:relative;overflow:hidden;border-radius:12px;aspect-ratio:1;background:var(--surface2)}
.profile-modern .tiles>a img,.profile-modern .tiles>a video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.profile-modern .tiles>a:hover img,.profile-modern .tiles>a:hover video{transform:scale(1.04)}
.tile-video{position:absolute;right:10px;top:10px;color:white;text-shadow:0 1px 5px #000}
.profile-empty{grid-column:1/-1;min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);text-align:center;padding:24px}
.profile-empty>span{font-size:35px;color:#e94b8c}
.profile-empty b{font-size:17px;color:var(--text)}
.profile-empty p{margin:0;font-size:13px}
.profile-empty .btn{margin-top:8px}
body[data-theme="light"] .profile-modern{background:#fff;border-color:#e3e7ee}
body[data-theme="light"] .profile-cover{background:linear-gradient(115deg,#263c5b,#5b6695 55%,#d56c9d)}
body[data-theme="dark"] .profile-modern{background:#111925;border-color:#2b3749}
body[data-theme="dark"] .profile-bio{background:#192333}
body[data-theme="dark"] .profile-bio .bioedit input{background:#0d1420;color:#f5f7fb}
@media(max-width:760px){
 .profile-modern{width:calc(100% - 20px);margin:15px auto 30px;border-radius:20px}
 .profile-cover{height:105px}
 .cover-label{right:14px;bottom:12px;font-size:8px;letter-spacing:1.5px}
 .profile-card{padding:0 15px 22px}
 .profile-top{gap:13px;margin-top:-43px;align-items:flex-start}
 .profile-avatar-wrap{flex-basis:88px;width:88px;height:88px;padding:4px}
 .online-indicator{width:14px;height:14px;right:5px;bottom:5px;border-width:2px}
 .profile-main{padding-top:49px}
 .profile-title-row h1{font-size:19px;overflow-wrap:anywhere}
 .profile-handle{font-size:11px}
 .profile-check{width:17px;height:17px;font-size:10px}
 .profile-stats{margin:16px 0 13px;padding:12px 0}
 .profile-stats>div{flex-direction:column;gap:0;align-items:center}
 .profile-stats b{font-size:17px}
 .profile-stats span{font-size:10px}
 .profile-actions .avatar-upload{display:grid;grid-template-columns:1fr;gap:8px}
 .profile-actions .avatar-pick,.profile-actions .avatar-save{width:100%;justify-content:center}
 .profile-actions .btn,.profile-actions .outline{min-height:40px}
 .profile-bio{padding:13px;margin:16px 0;border-radius:13px}
 .profile-bio .bioedit{flex-direction:column}
 .profile-bio .bioedit button{min-height:42px}
 .profile-modern .tiles{gap:4px}
 .profile-modern .tiles>a{border-radius:6px}
 .profile-empty{min-height:185px}
}

.upload-limit:after{content:" · Fotoğraf/video 250 MB’a kadar";}


/* V21 brand refresh — CSS-only safe override */
.brand{display:flex!important;align-items:center;gap:12px;text-decoration:none!important;margin:0 0 34px!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.brand-mark{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#1b2a3d,#0b1421);border:1px solid rgba(201,169,110,.45);box-shadow:0 7px 20px rgba(4,12,22,.22),inset 0 1px rgba(255,255,255,.12);color:#f4f0e7!important;font-size:0!important}
.brand-mark svg{width:31px;height:31px;display:block}
.brand-copy{display:flex!important;flex-direction:column;gap:4px;line-height:1}
.brand-copy>span{font-size:25px;font-weight:850;letter-spacing:-1.15px;color:#f1f4f7!important;white-space:nowrap}
.brand-accent{background:none!important;color:#c9a96e!important;-webkit-text-fill-color:#c9a96e!important}
.brand-copy small{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;font-size:8px!important;font-weight:800!important;letter-spacing:2.2px!important;color:#8794a5!important;line-height:1.2}
.mhead .brand{gap:9px;margin:0!important}
.mhead .brand-mark{width:42px;height:42px;flex-basis:42px;border-radius:13px}
.mhead .brand-mark svg{width:28px;height:28px}
.mhead .brand-copy>span{font-size:22px}
.mhead .brand-copy small{font-size:7px!important;letter-spacing:1.6px!important}
body[data-theme="light"] .brand-copy>span{color:#172235!important}
body[data-theme="light"] .brand-copy small{color:#68778a!important}
body[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#263b54,#101c2b);border-color:#c9a96e}
@media(max-width:760px){.mhead .brand{gap:8px}.mhead .brand-mark{width:40px;height:40px;flex-basis:40px}.mhead .brand-copy>span{font-size:20px;letter-spacing:-.8px}.mhead .brand-copy small{font-size:6.5px!important;letter-spacing:1.25px!important}}
