:root {
  --bg:#f4f6fb; --surface:#fff; --surface2:#f8f9fd; --line:#e5e9f2;
  --text:#111827; --muted:#697386; --purple:#6a47f5; --purple2:#8d6cff;
  --blue:#3b82f6; --green:#19b988; --orange:#f59e0b; --pink:#e95d9a;
  --shadow:0 18px 45px rgba(44,38,98,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(#f8f9ff,#f3f5fb);color:var(--text)}
button,input,select{font:inherit} button{cursor:pointer}
.app{display:grid;grid-template-columns:170px 1fr;min-height:100vh}
.sidebar{background:rgba(255,255,255,.97);border-right:1px solid var(--line);padding:14px 12px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:9px;padding:8px 8px 18px;font-size:20px;font-weight:950;letter-spacing:-.04em}
.brandmark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#7e60ff,#4a25eb);display:grid;place-items:center;color:#fff;font-weight:950;box-shadow:0 8px 18px rgba(106,71,245,.24)}
.brand span{color:var(--purple)}
.nav{display:grid;gap:4px}
.nav button{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:10px;color:#2d3850;font-weight:720;font-size:13px}
.nav button:hover,.nav button.active{background:#eeeaff;color:#4932c7}
.nav .ico{display:inline-grid;width:22px;height:22px;place-items:center;margin-right:7px;border-radius:7px;background:#f6f4ff;color:#5d43dd}
.legacyPromo{position:absolute;left:12px;right:12px;bottom:70px;background:linear-gradient(150deg,#f1edff,#faf9ff);border:1px solid #e2dcff;border-radius:15px;padding:12px}
.legacyPromo strong{display:block;font-size:13px;margin:7px 0 4px}.legacyPromo p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.userMini{position:absolute;left:12px;right:12px;bottom:13px;border-top:1px solid var(--line);padding-top:10px;display:flex;align-items:center;gap:8px}
.userMini img{width:32px;height:32px;border-radius:10px;object-fit:cover}.main{min-width:0}
.topbar{height:56px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px;position:sticky;top:0;z-index:40}
.search{width:min(410px,46vw);display:flex;align-items:center;gap:8px;background:#f4f6fb;border:1px solid #edf0f6;border-radius:999px;padding:8px 12px;color:#8791a2}.search input{border:0;background:transparent;outline:0;width:100%;font-size:12px}
.topRight{display:flex;align-items:center;gap:8px}.topBtn{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:11px}.profileTop{display:flex;align-items:center;gap:8px;border:0;background:transparent;font-weight:800}.profileTop img{width:31px;height:31px;border-radius:50%;object-fit:cover}
.page{display:none;padding:14px;max-width:1320px;margin:0 auto}.page.active{display:block}.homegrid{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:10px}.heroCard{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.banner{height:122px;background-image:url('assets/asset-1232f5f331c0.webp');background-size:cover;background-position:center}.heroInfo{padding:0 12px 12px}.identity{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:-46px}.avatarWrap{display:flex;align-items:end;gap:10px}.avatar{width:94px;height:94px;border-radius:50%;border:5px solid #fff;object-fit:cover;background:#ddd}.nameBlock{padding-bottom:5px}.nameBlock h1{font-size:23px;margin:0}.nameBlock p{margin:3px 0 0;color:var(--muted);font-size:12px}.edit{border:0;background:linear-gradient(135deg,#7758ff,#5f3df0);color:#fff;padding:9px 16px;border-radius:10px;font-weight:800}.bioRow{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:8px}.bio{font-size:12px;color:#445067;line-height:1.5}.stats{display:flex;gap:6px}.stat{background:#f7f8fc;border:1px solid #edf0f5;border-radius:10px;padding:7px 10px;text-align:center;min-width:62px}.stat b{display:block;font-size:13px}.stat span{font-size:9px;color:var(--muted)}
.modebar{margin-top:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px}.modebar small{display:block;font-weight:800;margin-bottom:7px}.modes{display:flex;gap:6px;overflow:auto}.mode{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-weight:750;font-size:11px;white-space:nowrap}.mode.active{background:linear-gradient(135deg,#7658ff,#5f3df0);color:#fff;border-color:transparent}
.myplace{margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px}.mpHead{display:flex;justify-content:space-between;align-items:end;margin-bottom:8px}.mpHead h2{font-size:21px;margin:0}.mpHead p{margin:2px 0 0;color:var(--muted);font-size:10px}.homeIcon{width:35px;height:35px;border-radius:11px;background:#f0ecff;color:#5f43df;display:grid;place-items:center;font-size:19px;margin-right:8px}.roomsHead,.miniHead{display:flex;justify-content:space-between;align-items:center;margin:7px 0}.roomsHead b,.miniHead b{font-size:12px}.view{border:0;background:transparent;color:#5f43df;font-size:10px;font-weight:850}
.roomRow{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.room{min-width:0}.room img{width:100%;height:70px;border-radius:10px;object-fit:cover;display:block;border:1px solid #e8eaf0}.room b{display:block;font-size:10px;margin-top:4px}.room span{font-size:8px;color:var(--muted)}.createRoom{height:70px;border:1px dashed #d8d3f7;border-radius:10px;background:#f8f6ff;color:#5f43df;display:grid;place-items:center;text-align:center;font-size:10px;font-weight:800}
.peopleCard{margin-top:8px;border:1px solid #edf0f5;border-radius:12px;padding:8px}.peopleRow{display:flex;gap:0;align-items:center}.personDot{width:30px;height:30px;border-radius:50%;border:2px solid #fff;margin-left:-5px;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:900}.personDot:first-child{margin-left:0}.personDot:nth-child(1){background:#20283b}.personDot:nth-child(2){background:#d07a69}.personDot:nth-child(3){background:#8d6cff}.personDot:nth-child(4){background:#2fa274}.personDot:nth-child(5){background:#486fc8}
.lowerGrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:8px}.miniCard{border:1px solid #edf0f5;border-radius:12px;padding:9px;min-height:128px;background:#fff}.continueItem{display:flex;gap:7px;align-items:center;margin-top:7px}.fileIcon{width:24px;height:24px;border-radius:7px;background:#edf3ff;display:grid;place-items:center;font-size:12px}.continueItem b{font-size:9px;display:block}.continueItem span{font-size:8px;color:var(--muted)}.mediaCrop{width:100%;height:77px;border-radius:10px;object-fit:cover}.updatePreview{display:flex;gap:8px;align-items:flex-start}.updatePreview img{width:31px;height:31px;border-radius:50%;object-fit:cover}.updatePreview b{font-size:9px}.updatePreview p{font-size:9px;color:#4d586e;margin:2px 0}
.sideRail{display:grid;gap:9px;align-content:start}.railCard{background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px;box-shadow:0 8px 22px rgba(44,38,98,.04)}.railCard h3{font-size:12px;margin:0}.quickGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.quick{border:0;background:#f7f6ff;border-radius:10px;padding:8px 4px;color:#5139d2;font-size:9px;font-weight:750}.quick i{display:block;font-style:normal;font-size:18px;margin-bottom:5px}.earn{font-size:23px;font-weight:950;margin-top:9px}.earnSub{font-size:9px;color:var(--muted)}.earnBtns{display:flex;gap:6px;margin-top:8px}.earnBtns button{flex:1;border:0;border-radius:9px;padding:7px 4px;font-size:9px;font-weight:800}.receive{background:#eeeaff;color:#5137d2}.send{background:#f5f7fa;color:#344054}
.eventItem,.notifItem{display:grid;grid-template-columns:36px 1fr;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #f0f2f6}.eventItem:last-child,.notifItem:last-child{border-bottom:0}.date{background:#f4f5f9;border-radius:9px;text-align:center;padding:4px;font-size:8px;color:#4a5568}.date b{font-size:11px}.eventItem b,.notifItem b{display:block;font-size:9px}.eventItem span,.notifItem span{font-size:8px;color:var(--muted)}
.mobileNav{display:none}.modal{display:none;position:fixed;inset:0;background:rgba(17,24,39,.42);z-index:100;place-items:center;padding:18px}.modal.open{display:grid}.modalBox{width:min(560px,100%);background:#fff;border-radius:20px;padding:18px;box-shadow:0 28px 80px rgba(17,24,39,.28)}.modalBox h2{margin:0 0 8px}.modalBox p{color:var(--muted);line-height:1.6}.modalActions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.modalActions button{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:10px;font-weight:800}.modalActions .primary{background:var(--purple);color:#fff;border:0}
@media(max-width:1050px){.app{grid-template-columns:150px 1fr}.homegrid{grid-template-columns:1fr}.sideRail{grid-template-columns:repeat(2,1fr)}.roomRow{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{display:none}.page{padding:10px 10px 78px}.topbar{height:54px}.search{width:55vw}.homegrid{display:block}.banner{height:112px;border-radius:14px 14px 0 0}.heroCard{border-radius:16px}.identity{align-items:start}.avatar{width:82px;height:82px}.nameBlock h1{font-size:19px}.stats{display:none}.bioRow{display:block}.modebar{margin-top:8px}.roomRow{display:flex;overflow:auto}.room{min-width:88px}.createRoom{min-width:88px}.sideRail{display:none}.lowerGrid{grid-template-columns:1fr 1fr}.lowerGrid .miniCard:last-child{grid-column:1/-1}.mobileNav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:6px max(6px,env(safe-area-inset-bottom));z-index:50;box-shadow:0 -10px 25px rgba(44,38,98,.08)}.mobileNav button{border:0;background:transparent;padding:7px 2px;color:#5f6879;font-size:9px;font-weight:750;border-radius:9px}.mobileNav button.active{background:#f0ecff;color:#5137d2}}
.pageShell{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:10px}.pageMain{min-width:0}.pageHero{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;box-shadow:var(--shadow);margin-bottom:10px}.pageHeroTop{display:flex;justify-content:space-between;gap:14px;align-items:center}.pageHero h2{margin:0;font-size:22px;letter-spacing:-.03em}.pageHero p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.55;max-width:700px}.heroAction{border:0;background:linear-gradient(135deg,#7658ff,#5f3df0);color:#fff;padding:9px 13px;border-radius:10px;font-weight:800;font-size:11px}
.metricRow{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.metricBox{border:1px solid #edf0f5;border-radius:12px;background:#fafbfe;padding:9px}.metricBox b{display:block;font-size:18px}.metricBox span{font-size:9px;color:var(--muted)}.contentCard{background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px;box-shadow:0 8px 22px rgba(44,38,98,.04)}.cardHead{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.cardHead h3{margin:0;font-size:12px}.cardHead p{margin:2px 0 0;color:var(--muted);font-size:9px}.softBtn{border:0;background:#f0ecff;color:#5138d2;padding:7px 9px;border-radius:9px;font-size:9px;font-weight:800}.compactGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.compactGrid.two{grid-template-columns:repeat(2,1fr)}.compactTile{border:1px solid #edf0f5;border-radius:12px;background:#fbfcff;padding:10px;min-height:92px}.compactTile h4{margin:0 0 5px;font-size:11px}.compactTile p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}.compactTile strong{font-size:18px}
.avatarRow{display:flex;align-items:center}.avatarSm{width:30px;height:30px;border-radius:50%;border:2px solid #fff;margin-left:-5px;display:grid;place-items:center;color:#fff;font-size:9px;font-weight:900}.avatarSm:first-child{margin-left:0}.avatarSm:nth-child(1){background:#1f2937}.avatarSm:nth-child(2){background:#d07868}.avatarSm:nth-child(3){background:#7257dd}.avatarSm:nth-child(4){background:#2a9a75}.avatarSm:nth-child(5){background:#4a75ce}.feedCard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:8px}.feedTop{display:flex;justify-content:space-between;gap:10px;align-items:center}.feedUser{display:flex;align-items:center;gap:8px}.feedUser .ava{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:900}.feedCard p{font-size:10px;color:#4c586e;line-height:1.55}.feedMedia{height:120px;border-radius:11px;background:linear-gradient(135deg,#dce6ff,#ece7ff 50%,#dbf4ec);display:grid;place-items:center;color:#4f40c9;font-weight:850;font-size:12px}.feedActions{display:flex;gap:6px;margin-top:7px}.feedActions button{flex:1;border:0;background:#f7f8fb;border-radius:8px;padding:6px;font-size:8px;font-weight:800}.featureList{display:grid;gap:7px}.featureItem{border:1px solid #edf0f5;background:#fff;border-radius:11px;padding:9px;display:flex;justify-content:space-between;gap:10px;align-items:center}.featureItem .left{display:flex;gap:8px;align-items:center}.featureItem .ico2{width:30px;height:30px;border-radius:9px;background:#f0ecff;display:grid;place-items:center;color:#553bd5}.featureItem b{font-size:10px}.featureItem span{display:block;font-size:8px;color:var(--muted);margin-top:2px}
.roomVisual{height:94px;border-radius:11px;background:linear-gradient(135deg,#e2e9ff,#f0e9ff);display:grid;place-items:center;font-size:28px}.roomTile{border:1px solid #edf0f5;border-radius:13px;padding:8px;background:#fff}.roomTile h4{margin:7px 0 3px;font-size:11px}.roomTile p{margin:0;color:var(--muted);font-size:8px}.timeline{display:grid;gap:8px}.timeItem{border-left:3px solid #ded8ff;padding-left:9px}.timeItem b{display:block;font-size:10px}.timeItem span{font-size:8px;color:var(--muted)}.moneyBar{height:9px;background:#edf0f6;border-radius:99px;overflow:hidden}.moneyBar span{display:block;height:100%;background:linear-gradient(90deg,#6b4bf5,#9c82ff);border-radius:99px}.badge2{font-size:8px;font-weight:900;padding:4px 6px;border-radius:999px;background:#f0ecff;color:#5138d2}.rightStats{display:grid;grid-template-columns:1fr 1fr;gap:6px}.rightStat{border:1px solid #edf0f5;background:#fbfcff;border-radius:10px;padding:8px}.rightStat b{display:block;font-size:14px}.rightStat span{font-size:8px;color:var(--muted)}
@media(max-width:1050px){.pageShell{grid-template-columns:1fr}.pageShell>.sideRail{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.pageShell{display:block}.pageShell>.sideRail{display:none}.metricRow{grid-template-columns:repeat(2,1fr)}.compactGrid,.compactGrid.two{grid-template-columns:1fr 1fr}.pageHero{border-radius:15px}}
@media(max-width:520px){.compactGrid,.compactGrid.two{grid-template-columns:1fr}.metricRow{grid-template-columns:1fr 1fr}}


/* Profile Atmosphere creator */
.atmospherePanel{position:relative;overflow:hidden}
.atmospherePanel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#6a47f5,#22d3ee,#f472b6);pointer-events:none}
.atmosphereSwitches{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.atmosphereSwitches label{background:#f8f7ff;border:1px solid #e7e2ff;border-radius:999px;padding:8px 10px;font-size:9px;font-weight:800}
.atmosphereControlGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.atmosphereControlGrid>label,.atmosphereScene>label,.atmosphereColors label{display:grid;gap:5px;font-size:9px;font-weight:850;color:#4b5563}
.atmosphereControlGrid select,.atmosphereControlGrid input:not([type="range"]),.atmosphereScene select,.atmosphereScene input:not([type="color"]){width:100%;border:1px solid #e2e6ef;background:#fff;border-radius:9px;padding:8px;font-size:10px;color:#273044}
.atmosphereControlGrid input[type="range"]{width:100%}
.atmosphereControlGrid label>span{font-size:8px;color:var(--muted);font-weight:700}
.atmosphereSubhead{display:flex;justify-content:space-between;align-items:end;margin:16px 0 8px;padding-top:12px;border-top:1px solid #edf0f5}
.atmosphereSubhead b{display:block;font-size:11px}.atmosphereSubhead span{display:block;margin-top:2px;font-size:8px;color:var(--muted)}
.atmosphereScenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.atmosphereScene{border:1px solid #e8eaf2;background:linear-gradient(145deg,#fff,#fafaff);border-radius:13px;padding:9px;display:grid;gap:8px}
.atmosphereSceneHead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.atmosphereSceneHead b{font-size:10px}.atmosphereSceneHead input{width:92px;border:1px solid #e2e6ef;border-radius:8px;padding:6px;font-size:9px}
.atmosphereColors{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.atmosphereColors input[type="color"]{width:100%;height:32px;border:1px solid #e2e6ef;border-radius:8px;background:#fff;padding:2px}
.designer2Preview[data-atmosphere-motion="DRIFT"] .designer2PreviewBg{animation:profileAtmosphereDrift 14s ease-in-out infinite alternate}
.designer2Preview[data-atmosphere-motion="AURORA"] .designer2PreviewBg{animation:profileAtmosphereAurora 10s ease-in-out infinite alternate}
.designer2Preview[data-atmosphere-motion="PULSE"] .designer2PreviewBg{animation:profileAtmospherePulse 6s ease-in-out infinite}
.designer2Preview[data-atmosphere-motion="PARALLAX"] .designer2PreviewBg{animation:profileAtmosphereParallax 12s ease-in-out infinite alternate}
.designer2Preview[data-atmosphere-motion="FLOAT"] .designer2PreviewBg{animation:profileAtmosphereFloat 11s ease-in-out infinite alternate}
.designer2Preview[data-atmosphere-motion="GLOW"] .designer2PreviewBg{animation:profileAtmosphereGlow 7s ease-in-out infinite alternate}
.designer2Preview[data-section-motion="FLOAT"] .designer2Identity,.designer2Preview[data-section-motion="FLOAT"] .designer2RoomRow,.designer2Preview[data-section-motion="FLOAT"] .designer2Player{animation:profileSectionFloat 5s ease-in-out infinite alternate}
@keyframes profileAtmosphereDrift{from{transform:scale(1.05) translate3d(-1%,0,0)}to{transform:scale(1.1) translate3d(1.5%,-1%,0)}}
@keyframes profileAtmosphereAurora{from{transform:scale(1.05) rotate(-1deg);filter:saturate(1)}to{transform:scale(1.11) rotate(1deg);filter:saturate(1.18)}}
@keyframes profileAtmospherePulse{0%,100%{transform:scale(1.05);filter:saturate(1)}50%{transform:scale(1.09);filter:saturate(1.22)}}
@keyframes profileAtmosphereParallax{from{background-position:42% 50%;transform:scale(1.06)}to{background-position:58% 47%;transform:scale(1.1)}}
@keyframes profileAtmosphereFloat{from{transform:scale(1.06) translateY(0)}to{transform:scale(1.09) translateY(-2%)}}
@keyframes profileAtmosphereGlow{from{filter:saturate(1) brightness(1)}to{filter:saturate(1.25) brightness(1.08)}}
@keyframes profileSectionFloat{from{transform:translateY(0)}to{transform:translateY(-3px)}}
@media(max-width:760px){.atmosphereControlGrid,.atmosphereScenes{grid-template-columns:1fr}.atmosphereSwitches{display:grid}.designer2Preview[data-atmosphere-motion="PARALLAX"] .designer2PreviewBg{animation:none}}
@media(prefers-reduced-motion:reduce){.designer2Preview .designer2PreviewBg,.designer2Preview .designer2Identity,.designer2Preview .designer2RoomRow,.designer2Preview .designer2Player{animation:none!important;transition:none!important}}
