:root{
  --bg:#fff;--surface:#fff;--text:#000;--muted:#737373;--muted2:#a8a8a8;--line:#dbdbdb;--soft:#fafafa;
  --blue:#0095f6;--blue-dark:#1877f2;--red:#ed4956;--green:#00a884;--shadow:0 8px 30px rgba(0,0,0,.08);
  --gradient:linear-gradient(45deg,#feda75 0%,#fa7e1e 24%,#d62976 48%,#962fbf 72%,#4f5bd5 100%);
  --ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--radius:12px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--ui-font);font-size:14px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.muted,small{color:var(--muted)}.icon,.nav-svg,.action-svg,.header-svg,.mobile-svg,.tiny-svg,.reel-svg,.tab-svg,.upload-svg,.empty-svg{display:block;flex:0 0 auto}.nav-svg{width:25px;height:25px}.action-svg{width:25px;height:25px}.header-svg{width:24px;height:24px}.mobile-svg{width:24px;height:24px}.tiny-svg{width:18px;height:18px}.tab-svg{width:13px;height:13px}.upload-svg{width:54px;height:54px}.empty-svg{width:42px;height:42px}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand-word{font-size:27px;letter-spacing:-1.25px;font-weight:750}.brand-glyph{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--gradient);color:#fff;font-size:20px;font-weight:800}.sidebar{position:fixed;z-index:50;inset:0 auto 0 0;width:245px;border-right:1px solid var(--line);background:#fff;padding:31px 12px 20px;display:flex;flex-direction:column}.sidebar .brand{padding:0 12px 30px}.nav{display:flex;flex-direction:column;gap:4px;flex:1}.nav-item{width:100%;border:0;background:transparent;color:#111;display:flex;align-items:center;gap:16px;padding:12px;border-radius:8px;text-align:left;font-size:16px;transition:background .15s,transform .15s}.nav-item:hover{background:#f2f2f2}.nav-item:hover .nav-svg{transform:scale(1.05)}.nav-item.active{font-weight:700}.nav-item.active .nav-svg{stroke-width:2.6}.nav-avatar{width:25px!important;height:25px!important}.create-nav{font-size:16px}.badge{margin-left:auto;display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:10px}.logout{margin-top:2px}.app-main{min-height:100vh;margin-left:245px}.mobile-header,.mobile-nav{display:none}.global-alert{max-width:630px;margin:14px auto}.alert,.success{border-radius:9px;padding:11px 13px;font-size:13px}.alert{background:#fff0f1;color:#a61b2b;border:1px solid #ffd0d5}.success{background:#eefbf7;color:#06694f;border:1px solid #c7f1e4}
.home-grid{width:min(1000px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:minmax(0,630px) 300px;gap:56px;padding:28px 0 70px}.feed-col{min-width:0}.stories{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:8px 2px 18px}.story{flex:0 0 66px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.story small{max-width:66px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#262626;font-size:12px}.story-ring{width:66px;height:66px;border:0;border-radius:50%;padding:3px;background:var(--gradient);display:grid;place-items:center;position:relative}.story-ring::after{content:"";position:absolute;inset:2px;border:2px solid #fff;border-radius:50%;pointer-events:none}.story-avatar{width:60px!important;height:60px!important;border:2px solid #fff;z-index:1}.add-story{background:#efefef}.add-story::after{border-color:#fff}.add-story b{position:absolute;right:0;bottom:0;z-index:3;display:grid;place-items:center;width:21px;height:21px;border:2px solid #fff;border-radius:50%;background:var(--blue);color:#fff;font-size:16px}.avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#efefef;color:#444;font-weight:700}.avatar.sm{width:38px;height:38px}.avatar.lg{width:48px;height:48px}.avatar.xl{width:150px;height:150px;font-size:40px}.avatar-fallback{user-select:none}.composer-bar{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 14px}.composer-bar>button:nth-of-type(1){flex:1;border:0;background:transparent;color:var(--muted);text-align:left}.text-action{border:0;background:transparent;color:var(--blue);font-weight:700;display:flex;align-items:center;gap:4px}.post-card{border-bottom:1px solid var(--line);padding-bottom:12px;margin:0 0 12px;background:#fff}.post-head{display:flex;align-items:center;justify-content:space-between;padding:11px 4px}.user-row{display:flex;align-items:center;gap:9px;min-width:0}.post-avatar{width:34px!important;height:34px!important}.user-row>span{display:flex;flex-direction:column;min-width:0}.user-row strong{font-size:14px}.user-row small{font-size:12px}.post-menu{position:relative}.post-menu summary{list-style:none;cursor:pointer;padding:6px}.post-menu summary::-webkit-details-marker{display:none}.menu-pop{position:absolute;z-index:20;right:0;top:34px;width:170px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.menu-pop a,.menu-pop button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:11px 13px}.menu-pop a:hover,.menu-pop button:hover{background:#fafafa}.danger-link{color:#d52b3a}.post-media-wrap{position:relative;display:grid;place-items:center;background:#000;border-radius:4px;overflow:hidden;max-height:760px}.post-media{width:100%;max-height:760px;object-fit:contain;display:block;background:#000}.adult-badge{position:absolute;z-index:4;top:10px;left:10px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;font-weight:800;border-radius:5px;padding:5px 7px;letter-spacing:.04em}.sensitive-placeholder{min-height:390px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px;background:radial-gradient(circle at 30% 20%,#292929,#111 65%);color:#fff}.sensitive-placeholder p{max-width:440px;color:#cfcfcf;line-height:1.5}.sensitive-icon{display:grid;place-items:center;width:58px;height:58px;border:2px solid #fff;border-radius:50%;font-weight:900;margin-bottom:12px}.sensitive-placeholder .secondary{background:#fff}.post-body{padding:8px 4px 0}.post-actions{display:flex;align-items:center;gap:4px}.inline{display:inline}.icon-btn{display:grid;place-items:center;width:36px;height:36px;border:0;background:transparent;padding:5px;color:#000}.icon-btn:hover{opacity:.55}.like-btn.liked{color:var(--red)}.like-btn.liked .action-svg,.like-btn.liked .reel-svg{fill:currentColor}.save-btn.saved .action-svg,.save-btn.saved .reel-svg{fill:currentColor}.spacer{flex:1}.likes{font-weight:700;margin:3px 0 7px}.caption,.comments p{margin:5px 0;line-height:1.45}.rating-label{display:inline-block;margin-left:5px;border:1px solid #999;border-radius:4px;padding:1px 4px;font-size:10px;color:#555}.view-comments{color:var(--muted);margin:8px 0}.comment-form{display:flex;align-items:center;gap:10px;padding-top:8px}.comment-form input{flex:1;border:0;background:transparent;outline:0;padding:5px 0}.comment-form button{border:0;background:transparent;color:var(--blue);font-weight:700}.right-col{padding-top:26px}.profile-mini,.suggestion{display:flex;align-items:center;gap:10px}.profile-mini>div,.suggestion>div{display:flex;flex-direction:column;min-width:0}.profile-mini a,.suggestion form button,.side-title a{margin-left:auto;border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:700}.side-title{display:flex;justify-content:space-between;margin:24px 0 12px;color:var(--muted);font-size:13px}.side-title a{color:#111}.suggestion{margin:11px 0}.suggestion strong,.suggestion small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.footer-links{margin-top:30px;color:#c7c7c7;font-size:11px;line-height:1.6}
.primary,.secondary,.button-link{border:0;border-radius:8px;padding:9px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px}.primary{background:var(--blue);color:#fff}.primary:hover{background:var(--blue-dark)}.secondary{background:#efefef;color:#111}.secondary:hover{background:#dbdbdb}.wide-page{width:min(950px,calc(100% - 42px));margin:0 auto;padding:40px 0 80px}.narrow-page{width:min(650px,calc(100% - 42px));margin:0 auto;padding:42px 0 80px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.page-head h1,.reels-top h1,.settings-content h1{margin:0;font-size:28px;letter-spacing:-.5px}.page-head p,.reels-top p{margin:7px 0 0;color:var(--muted)}.explore-grid,.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.explore-item,.profile-post{position:relative;aspect-ratio:1;background:#efefef;overflow:hidden}.explore-item img,.explore-item video,.profile-post img,.profile-post video{width:100%;height:100%;object-fit:cover;display:block}.tile-stats,.profile-post>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);color:#fff;font-weight:700;opacity:0;transition:.15s}.explore-item:hover .tile-stats,.profile-post:hover>span{opacity:1}.video-mark{position:absolute;top:9px;right:9px;color:#fff}.tile-adult{left:8px;top:8px}.tile-locked{width:100%;height:100%;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;background:#181818;color:#fff}.tile-locked b{display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #fff;border-radius:50%}.tile-locked span{font-size:12px;color:#ccc}.search-box{display:flex;gap:10px}.search-input-wrap{flex:1;display:flex;align-items:center;gap:8px;background:#efefef;border-radius:8px;padding:0 11px}.search-input-wrap input{flex:1;border:0;background:transparent;outline:0;padding:10px 0}.result-user,.notification{display:flex;align-items:center;gap:11px;padding:12px 2px;border-bottom:1px solid #efefef}.result-user>div,.notification>div{display:flex;flex:1;flex-direction:column;gap:2px}.result-user>span{font-size:24px;color:var(--muted)}.empty{padding:52px 24px;text-align:center;color:var(--muted);border:1px solid var(--line);border-radius:10px;background:#fff}.empty>div{display:flex;justify-content:center;color:#222}.empty h3{color:#111;margin:12px 0 6px}.grid-empty{grid-column:1/-1;aspect-ratio:auto}
.profile-page{width:min(935px,calc(100% - 42px));margin:0 auto;padding:40px 0 80px}.profile-hero{display:flex;align-items:center;gap:80px;padding:10px 48px 40px}.profile-info{flex:1}.profile-title{display:flex;align-items:center;gap:10px}.profile-title>div{margin-right:auto}.profile-title h1{margin:0 0 3px;font-size:21px;font-weight:500}.stats{display:flex;gap:38px;margin:22px 0}.stats strong{font-weight:700}.profile-info p{line-height:1.45}.profile-tabs{border-top:1px solid var(--line);display:flex;justify-content:center;gap:55px;height:53px}.profile-tabs a{display:flex;align-items:center;gap:6px;font-size:12px;letter-spacing:.08em;color:var(--muted);border-top:1px solid transparent;margin-top:-1px}.profile-tabs a.active{border-top-color:#111;color:#111}.profile-post p{padding:15px}.messages-page{height:100vh;display:grid;grid-template-columns:350px minmax(0,1fr);background:#fff}.conversations{border-right:1px solid var(--line);overflow:auto}.chat-title{display:flex;justify-content:space-between;align-items:center;padding:28px 22px 18px}.chat-title h2{margin:0;font-size:20px}.conversation{display:flex;align-items:center;gap:10px;padding:9px 20px}.conversation:hover,.conversation.active{background:#fafafa}.conversation div{display:flex;flex-direction:column}.chat-panel{display:grid;grid-template-rows:auto 1fr auto;min-width:0}.chat-panel>header{display:flex;align-items:center;gap:10px;padding:15px 18px;border-bottom:1px solid var(--line)}.chat-panel>header div{display:flex;flex-direction:column}.chat-messages{overflow:auto;padding:20px;display:flex;flex-direction:column;gap:9px}.bubble-wrap{max-width:min(70%,600px)}.bubble-wrap.mine{align-self:flex-end;text-align:right}.bubble{padding:10px 13px;border:1px solid var(--line);border-radius:18px;line-height:1.4}.mine .bubble{background:#efefef;border-color:#efefef}.bubble-wrap small{font-size:10px}.message-form{display:flex;gap:8px;margin:12px;border:1px solid var(--line);border-radius:22px;padding:5px 7px 5px 15px}.message-form input{flex:1;border:0;outline:0}.message-form button{border:0;background:transparent;color:var(--blue);font-weight:700}.empty.small{margin:auto;border:0}
.reels-page{width:min(850px,calc(100% - 40px));margin:0 auto;padding:28px 0 70px}.reels-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.reels-feed{display:flex;flex-direction:column;gap:24px;align-items:center}.reel-card{width:min(460px,100%)}.reel-media{position:relative;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#111;color:#fff;box-shadow:0 8px 25px rgba(0,0,0,.08)}.reel-video{width:100%;height:100%;object-fit:cover;display:block}.reel-gradient{position:absolute;z-index:2;inset:auto 0 0;height:42%;background:linear-gradient(transparent,rgba(0,0,0,.72));pointer-events:none}.reel-info{position:absolute;z-index:3;left:15px;right:70px;bottom:18px}.reel-info p{margin:10px 0 6px;line-height:1.45}.reel-info small{color:#e4e4e4}.reel-author{display:flex;align-items:center;gap:8px}.reel-avatar{width:34px!important;height:34px!important;border:1.5px solid #fff}.reel-follow{display:inline}.reel-follow button{border:1px solid #fff;background:transparent;color:#fff;border-radius:7px;padding:5px 9px;font-size:12px;font-weight:700}.reel-actions{position:absolute;z-index:4;right:10px;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:11px}.reel-action-form{margin:0}.reel-action{width:52px;border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px}.reel-svg{width:28px;height:28px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.reel-action.like-btn.liked{color:#ff4e63}.reel-action.save-btn.saved .reel-svg{fill:#fff}.reel-sound{position:absolute;z-index:4;top:12px;right:12px;width:35px;height:35px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.45);color:#fff}.reel-adult{z-index:4}.reel-comment-form{display:flex;border:1px solid var(--line);border-radius:18px;margin-top:7px;padding:4px 7px 4px 12px}.reel-comment-form input{flex:1;border:0;outline:0}.reel-comment-form button{border:0;background:transparent;color:var(--blue);font-weight:700}.reel-media>.sensitive-placeholder{height:100%;min-height:0}.reel-media>.sensitive-placeholder+.reel-gradient{display:none}
.settings-page{width:min(900px,calc(100% - 42px));margin:0 auto;padding:42px 0 90px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:45px}.settings-nav{border-right:1px solid var(--line);min-height:620px;padding-right:18px}.settings-nav h2{font-size:20px;margin:0 0 20px}.settings-nav a{display:block;padding:10px;border-radius:7px}.settings-nav a:hover,.settings-nav a.active{background:#f5f5f5}.settings-content h1{margin-bottom:20px}.settings-card{border:1px solid var(--line);border-radius:10px;padding:22px}.stack{display:flex;flex-direction:column;gap:15px}.stack>label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}.stack input,.stack textarea,.stack select{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px 11px;outline:0;color:#111}.stack input:focus,.stack textarea:focus,.stack select:focus{border-color:#a8a8a8}.edit-avatar{display:flex;align-items:center;gap:16px;background:#fafafa;border-radius:9px;padding:14px}.edit-avatar>div{display:flex;flex-direction:column;gap:4px}.text-button{color:var(--blue);font-weight:700;cursor:pointer}.content-control-box{border-top:1px solid var(--line);padding-top:18px;margin-top:5px}.content-control-box h3{margin:0 0 7px}.content-control-box p{color:var(--muted);line-height:1.5}.check-line{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:8px!important;font-weight:500!important}.check-line input{width:auto!important;margin-top:3px}.check-line small{font-weight:400}.settings-note{margin-top:28px;border-top:1px solid var(--line);padding-top:20px;color:var(--muted);line-height:1.55}.settings-note h2{color:#111;font-size:18px}
.composer-modal{width:min(620px,calc(100% - 24px));max-height:calc(100vh - 24px);overflow:auto;border:0;border-radius:12px;padding:22px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.28)}.composer-modal::backdrop{background:rgba(0,0,0,.62)}.close-modal{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:28px;color:#555}.composer-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--line)}.composer-head h2{margin:0;font-size:18px}.type-switch{display:flex;background:#efefef;border-radius:8px;padding:2px}.type-switch label{cursor:pointer}.type-switch input{display:none}.type-switch span{display:block;padding:7px 10px;border-radius:6px;font-size:12px;font-weight:700}.type-switch input:checked+span{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08)}.upload-drop{min-height:180px!important;border:1px dashed #bbb!important;border-radius:10px!important;background:#fafafa!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;cursor:pointer}.upload-drop input{display:none}.upload-drop span{color:var(--muted);font-weight:400}.media-preview img,.media-preview video{width:100%;max-height:330px;object-fit:contain;background:#111;border-radius:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}.form-note{margin:0;color:#9a6700;background:#fff7db;border:1px solid #f5df9a;padding:9px;border-radius:7px;font-size:12px}.auth-page{background:#fafafa}.auth-shell{min-height:100vh;width:min(1030px,calc(100% - 32px));margin:auto;display:grid;grid-template-columns:1.15fr .65fr;align-items:center;gap:55px;padding:40px 0}.auth-showcase{display:flex;align-items:center;gap:36px}.showcase-phone{width:280px;flex:0 0 280px;height:560px;border:8px solid #111;border-radius:36px;background:#fff;padding:18px 11px;box-shadow:0 25px 70px rgba(0,0,0,.14);transform:rotate(-2deg)}.showcase-stories{display:flex;gap:8px;padding:4px 2px 13px}.showcase-stories i{width:42px;height:42px;border-radius:50%;padding:2px;background:var(--gradient)}.showcase-photo{height:380px;border-radius:3px;background:linear-gradient(150deg,#4326c8 0%,#b8258f 42%,#fb6d35 75%,#ffd77a 100%)}.showcase-actions{display:flex;gap:13px;padding:13px 2px}.showcase-copy{max-width:330px}.gradient-label{font-size:11px;font-weight:800;letter-spacing:.12em;background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}.showcase-copy h1{font-size:42px;line-height:1.02;letter-spacing:-1.7px;margin:10px 0 14px}.showcase-copy p{color:var(--muted);font-size:16px;line-height:1.55}.auth-card{background:#fff;border:1px solid var(--line);padding:32px 38px}.auth-brand{justify-content:center;margin-bottom:28px}.auth-card h2{text-align:center;margin:0 0 6px;font-size:18px}.auth-card>p.muted{text-align:center}.auth-switch{text-align:center;border-top:1px solid var(--line);padding-top:18px;margin:18px 0 0}.auth-switch a{color:var(--blue);font-weight:700}
@media(prefers-color-scheme:dark){body:not(.auth-page){--bg:#000;--surface:#000;--text:#f5f5f5;--muted:#a8a8a8;--line:#262626;--soft:#121212;background:#000;color:#f5f5f5}.sidebar,.post-card,.mobile-header,.mobile-nav,.messages-page,.chat-panel,.conversations,.settings-card,.composer-modal,.empty{background:#000;color:#f5f5f5}.nav-item,.profile-title h1,.profile-info p,.empty h3,.settings-note h2{color:#f5f5f5}.nav-item:hover,.conversation:hover,.conversation.active,.settings-nav a:hover,.settings-nav a.active{background:#121212}.composer-bar,.settings-card{border-color:#262626}.composer-bar>button:nth-of-type(1),.comment-form input,.message-form input,.reel-comment-form input{color:#f5f5f5}.menu-pop,.menu-pop a,.menu-pop button{background:#111;color:#fff;border-color:#333}.menu-pop a:hover,.menu-pop button:hover{background:#181818}.secondary{background:#363636;color:#fff}.search-input-wrap,.mine .bubble,.edit-avatar,.type-switch{background:#262626}.stack input,.stack textarea,.stack select{background:#111;color:#fff;border-color:#363636}.type-switch input:checked+span{background:#444}.story small{color:#f5f5f5}.post-media-wrap{background:#111}.footer-links{color:#555}}
@media(max-width:1100px){.sidebar{width:80px;align-items:center}.sidebar .brand-word,.nav-item span:not(.badge),.sidebar form .nav-item span{display:none}.sidebar .brand{padding:0 0 28px}.sidebar .brand-glyph{display:none}.nav-item{justify-content:center;padding:12px}.app-main{margin-left:80px}.home-grid{grid-template-columns:minmax(0,630px);justify-content:center}.right-col{display:none}.auth-shell{grid-template-columns:1fr}.auth-showcase{display:none}.auth-card{width:min(390px,100%);margin:auto}}
@media(max-width:720px){body{font-size:14px}.sidebar{display:none}.app-main{margin-left:0;padding-bottom:64px}.mobile-header{display:flex;position:sticky;z-index:45;top:0;align-items:center;justify-content:space-between;padding:9px 15px;border-bottom:1px solid var(--line);background:var(--surface);backdrop-filter:blur(10px)}.mobile-header .brand-word{font-size:24px}.mobile-header>div{display:flex;gap:16px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:60;bottom:0;left:0;right:0;padding:6px 4px max(6px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);backdrop-filter:blur(12px)}.mobile-nav a,.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:1px;border:0;background:transparent;color:var(--text);padding:2px}.mobile-nav small{font-size:9px}.mobile-nav .active .mobile-svg{stroke-width:2.8}.mobile-avatar{width:24px!important;height:24px!important}.home-grid{display:block;width:100%;padding:0}.stories{padding:12px 10px;border-bottom:1px solid var(--line)}.composer-bar{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:9px 12px}.post-card{margin:0;padding-bottom:8px}.post-head{padding:10px 12px}.post-body{padding:7px 12px}.post-media-wrap{border-radius:0}.wide-page,.narrow-page,.profile-page,.reels-page{width:100%;padding:22px 0 80px}.wide-page>.page-head,.narrow-page>.page-head{padding:0 14px}.explore-grid,.profile-grid{gap:2px}.page-head{align-items:flex-start;flex-direction:column}.page-head h1,.reels-top h1{font-size:24px}.search-box{padding:0 14px}.results{padding:0 14px}.profile-hero{padding:5px 15px 28px;gap:20px;align-items:flex-start}.avatar.xl{width:85px;height:85px;font-size:24px}.profile-title{align-items:flex-start;flex-wrap:wrap}.profile-title h1{font-size:19px}.stats{gap:12px;flex-wrap:wrap;font-size:12px;margin:16px 0}.profile-tabs{gap:35px}.messages-page{height:calc(100vh - 112px);grid-template-columns:1fr}.conversations{display:none}.chat-panel{min-height:calc(100vh - 112px)}.bubble-wrap{max-width:82%}.settings-page{width:100%;display:block;padding:22px 14px 85px}.settings-nav{display:none}.settings-card{border:0;padding:0}.edit-avatar{margin-bottom:4px}.form-grid{grid-template-columns:1fr}.reels-top{padding:0 14px}.reels-feed{gap:14px}.reel-card{width:100%}.reel-media{border-radius:0;max-height:calc(100vh - 160px)}.reel-comment-form{margin:7px 10px}.sensitive-placeholder{min-height:320px}.auth-shell{width:min(100% - 24px,420px);padding:20px 0}.auth-card{padding:28px 22px}.composer-modal{padding:18px 14px}.showcase-copy{display:none}}
/* Variáveis administráveis pelo painel */
body{background:var(--bg);color:var(--text);font-family:var(--ui-font)}
.sidebar,.post-card,.mobile-header,.mobile-nav,.messages-page,.chat-panel,.conversations,.settings-card,.composer-modal,.empty,.auth-card{background:var(--surface);color:var(--text)}
.sidebar,.post-card,.composer-bar,.settings-card,.auth-card,.menu-pop{border-color:var(--line)}
.nav-item,.profile-title h1,.profile-info p,.empty h3,.settings-note h2,.comment-form input,.message-form input,.reel-comment-form input{color:var(--text)}
.nav-item:hover,.conversation:hover,.conversation.active,.settings-nav a:hover,.settings-nav a.active{background:rgba(127,127,127,.08)}
.primary{background:var(--blue)!important}.text-action,.auth-switch a,.suggestion button,.comment-form button,.message-form button,.reel-comment-form button{color:var(--blue)!important}.like-btn.liked{color:var(--red)!important}
.brand-logo-img{width:34px;height:34px;border-radius:10px;object-fit:cover;display:block}.auth-brand .brand-logo-img{width:42px;height:42px}.mobile-header .brand-logo-img{width:30px;height:30px}.brand-glyph{border-radius:var(--radius)}
.post-media-wrap,.menu-pop,.composer-bar,.settings-card,.auth-card,.composer-modal,.empty{border-radius:var(--radius)}
/* Camada pública SEO/PWA */
.public-site{background:var(--bg);color:var(--text);font-family:var(--ui-font)}
.public-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(20px,calc((100vw - 1180px)/2));background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.public-top nav{display:flex;align-items:center;gap:16px}.public-top nav a,.public-top nav button{color:var(--text);text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}.public-top .public-cta{background:var(--blue);color:#fff;padding:9px 14px;border-radius:10px;font-weight:700}
.public-main{max-width:1180px;margin:0 auto;padding:32px 20px}.public-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;padding:48px 0}.public-hero h1{font-size:clamp(38px,6vw,76px);line-height:.98;letter-spacing:-.05em;margin:.2em 0}.public-hero p{font-size:18px;color:var(--muted);max-width:700px}.public-hero-card{border:1px solid var(--line);border-radius:24px;padding:28px;background:var(--surface)}
.public-section-head{display:flex;align-items:end;justify-content:space-between;margin:34px 0 16px}.public-section-head h2{margin:0}.public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.public-tile{background:var(--surface);min-width:0}.public-tile>a{display:block;aspect-ratio:1/1;background:#111;overflow:hidden}.public-tile img{width:100%;height:100%;object-fit:cover}.public-sensitive,.public-video-placeholder,.public-text-tile{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;padding:20px}.public-sensitive{background:#161616;color:#fff}.public-sensitive b{font-size:32px}.public-video-placeholder{background:#111;color:#fff;font-size:32px}.public-video-placeholder span{font-size:14px}.public-text-tile{background:var(--surface);color:var(--text);border:1px solid var(--line);font-weight:600}.public-tile-info{display:flex;justify-content:space-between;gap:10px;padding:10px 4px 18px;color:var(--muted);font-size:13px}.public-tile-info a{color:var(--text);font-weight:700;text-decoration:none}.public-profiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.public-profile-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:18px;text-align:center;text-decoration:none;color:var(--text)}.public-profile-card .avatar{margin:auto}.public-profile-card p{color:var(--muted);font-size:13px}.public-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:28px 0;margin-top:42px;color:var(--muted)}
.public-profile-head{display:flex;gap:26px;align-items:center;max-width:860px;margin:25px auto 40px}.public-profile-head .avatar{width:130px;height:130px;flex:none}.public-profile-copy h1{margin:0}.public-profile-copy .bio{white-space:pre-line}.public-stats{display:flex;gap:22px;color:var(--muted)}
.public-post-page{max-width:900px;margin:20px auto}.public-post-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface)}.public-post-author{display:flex;align-items:center;gap:10px;padding:14px;text-decoration:none;color:var(--text)}.public-post-media img,.public-post-media video{display:block;width:100%;max-height:78vh;object-fit:contain;background:#000}.public-post-body{padding:18px}.public-post-body p{white-space:pre-line}.public-sensitive-full{padding:70px 20px;text-align:center;background:#141414;color:#fff}.public-sensitive-full b{display:block;font-size:42px}.public-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:14px}.public-breadcrumb a{color:inherit}
@media(max-width:760px){.public-top{padding:12px 14px}.public-top nav a:first-child{display:none}.public-top .brand-word{display:none}.public-main{padding:18px 10px}.public-hero{grid-template-columns:1fr;padding:24px 4px}.public-grid{grid-template-columns:repeat(2,1fr)}.public-profiles{grid-template-columns:repeat(2,1fr)}.public-profile-head{align-items:flex-start}.public-profile-head .avatar{width:90px;height:90px}.public-stats{gap:12px;font-size:13px}}


/* Nexora 3.1.4 — experiência PWA / app móvel */
html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{-webkit-tap-highlight-color:transparent}.pwa-toast{position:fixed;z-index:10000;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:min(92vw,520px);padding:11px 15px;border-radius:999px;background:#111;color:#fff;font-size:13px;font-weight:700;box-shadow:0 12px 35px rgba(0,0,0,.25);text-align:center}.pwa-toast[hidden]{display:none}.pwa-toast.online{background:#087f5b}.pwa-toast.offline{background:#9a3412}.pwa-install-sheet{position:fixed;inset:0;z-index:10020;display:flex;align-items:flex-end;justify-content:center;padding:16px;background:rgba(0,0,0,.48);opacity:0;pointer-events:none;transition:opacity .2s ease}.pwa-install-sheet.open{opacity:1;pointer-events:auto}.pwa-install-card{position:relative;width:min(100%,480px);background:var(--surface,#fff);color:var(--text,#111);border:1px solid var(--line,#ddd);border-radius:24px;padding:26px 22px max(22px,env(safe-area-inset-bottom));box-shadow:0 30px 80px rgba(0,0,0,.3);transform:translateY(24px);transition:transform .2s ease}.pwa-install-sheet.open .pwa-install-card{transform:none}.pwa-install-card h2{margin:8px 0}.pwa-install-card p{color:var(--muted,#666);line-height:1.5}.pwa-install-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--soft,#f2f2f2);font-size:24px}.pwa-sheet-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:var(--soft,#eee);color:var(--text,#111);font-size:23px}.pwa-sheet-ok{width:100%;border:0;border-radius:12px;padding:12px 15px;background:var(--blue,#0095f6);color:#fff;font-weight:800}.is-offline [data-requires-online]{opacity:.55;pointer-events:none}
@media(max-width:720px){.mobile-header{padding-top:max(9px,env(safe-area-inset-top));padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}.mobile-nav{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right));padding-bottom:max(6px,env(safe-area-inset-bottom));}.app-main{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.messages-page{height:calc(100dvh - 112px - env(safe-area-inset-bottom))}.chat-panel{min-height:calc(100dvh - 112px - env(safe-area-inset-bottom))}.composer-modal{padding-bottom:max(18px,env(safe-area-inset-bottom))}}
@media(display-mode:standalone){html,body{min-height:100dvh;overscroll-behavior-y:none}body{min-height:100dvh}.mobile-header{position:sticky;top:0}.mobile-nav{position:fixed}.auth-page{min-height:100dvh}.app-main{min-height:100dvh}.pwa-toast{bottom:calc(86px + env(safe-area-inset-bottom))}}
html.pwa-standalone body{min-height:100dvh;overscroll-behavior-y:none}html.pwa-standalone .mobile-header{padding-top:max(10px,env(safe-area-inset-top))}html.pwa-standalone .mobile-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}
@media(hover:none) and (pointer:coarse){button,a,.nav-item,.mobile-nav a,.mobile-nav button{touch-action:manipulation}.primary,.secondary,.text-action,.comment-form button,.message-form button,.reel-comment-form button{min-height:40px}}


/* 3.1.5 — privacidade de contas, solicitações e exclusão própria */
.privacy-badge{display:inline-flex;align-items:center;gap:4px;margin-left:6px;color:var(--muted);font-size:12px;font-weight:600}.private-profile-box{border-top:1px solid var(--line);text-align:center;padding:56px 20px 72px;color:var(--text)}.private-profile-box .private-lock{font-size:38px;margin-bottom:10px}.private-profile-box h3{margin:0 0 7px}.private-profile-box p{margin:0 auto;color:var(--muted);max-width:420px;line-height:1.5}.privacy-control-box{border:1px solid var(--line);border-radius:var(--radius);padding:16px!important;margin:8px 0;background:rgba(127,127,127,.04)}.follow-form button.is-pending{background:var(--soft)!important;color:var(--text)!important;border:1px solid var(--line)}.follow-request-actions{display:flex;gap:8px;margin-top:10px}.follow-request-actions form{margin:0}.follow-request-actions button{padding:8px 14px;border-radius:8px;border:0;font-weight:700}.notification-copy{min-width:0;flex:1}.reel-delete{color:#ff6b77}.public-private-note{border:1px solid var(--line);border-radius:12px;padding:12px;background:rgba(127,127,127,.05)}
@media(max-width:720px){.private-profile-box{padding:42px 18px 70px}.follow-request-actions{flex-wrap:wrap}.follow-request-actions form{flex:1}.follow-request-actions button{width:100%}}


/* Nexora 3.1.6 — responsividade completa da interface principal */
html,body{max-width:100%;overflow-x:hidden}.app-main{min-width:0;max-width:100%;overflow-x:clip}.feed-col,.right-col,.profile-info,.settings-content,.chat-panel{min-width:0}img,video,svg,canvas{max-width:100%}.comment-form input,.message-form input,.reel-comment-form input,.search-input-wrap input{min-width:0}

/* O menu desktop nunca perde itens: a navegação central rola dentro da viewport. */
.sidebar{height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden;overscroll-behavior:contain}.sidebar .brand{flex:0 0 auto;min-width:0}.sidebar .brand-word{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-right:2px}.nav::-webkit-scrollbar{width:5px}.nav::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}.sidebar>nav~.nav-item,.sidebar>nav~form{flex:0 0 auto}.sidebar>form{margin:0}.sidebar>form .nav-item{margin:0}

/* Layout intermediário: evita feed e páginas internas espremidos em notebooks/tablets. */
@media(max-width:1250px) and (min-width:721px){.sidebar{width:80px;align-items:center}.sidebar .brand-word,.nav-item span:not(.badge),.sidebar form .nav-item span{display:none}.sidebar .brand{padding:0 0 24px}.sidebar .brand-glyph,.sidebar .brand-logo-img{display:none}.nav-item{justify-content:center;padding:11px}.app-main{margin-left:80px}.home-grid{grid-template-columns:minmax(0,630px);justify-content:center}.right-col{display:none}}

/* Em telas baixas, reduz espaços antes de recorrer à rolagem interna. */
@media(max-height:760px) and (min-width:721px){.sidebar{padding-top:16px;padding-bottom:12px}.sidebar .brand{padding-bottom:12px}.nav{gap:2px}.nav-item{padding-top:9px;padding-bottom:9px}.brand-word{font-size:24px}}
@media(max-height:580px) and (min-width:721px){.sidebar .brand{display:none}.nav-item{padding-top:8px;padding-bottom:8px}}

/* Tablet: configurações e perfil deixam de depender de largura desktop. */
@media(max-width:900px) and (min-width:721px){.settings-page{width:min(100% - 28px,760px);grid-template-columns:1fr;gap:18px;padding-top:24px}.settings-nav{min-height:0;border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}.settings-nav::-webkit-scrollbar{display:none}.settings-nav h2{margin:0 12px 0 0;white-space:nowrap}.settings-nav a{white-space:nowrap;flex:0 0 auto}.profile-hero{gap:34px;padding-left:24px;padding-right:24px}.profile-page{width:min(100% - 28px,760px)}.wide-page,.narrow-page,.reels-page{width:min(100% - 28px,760px)}}

/* Cabeçalho e navegação móvel resistem a nomes personalizados longos. */
@media(max-width:720px){.mobile-header{min-width:0}.mobile-header>.brand{min-width:0;max-width:calc(100% - 92px);overflow:hidden}.mobile-header .brand-word{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-header>div{flex:0 0 auto}.mobile-nav>*{min-width:0}.mobile-nav small{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.app-main{width:100%;overflow-x:hidden}.global-alert{margin:10px 12px}.post-head,.post-body,.composer-bar{max-width:100%}.user-row{min-width:0;max-width:calc(100% - 42px)}.user-row>span{overflow:hidden}.user-row strong,.user-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-pop{max-width:min(200px,calc(100vw - 24px))}.post-actions{max-width:100%}.comment-form{min-width:0}.comment-form input{width:0}.composer-modal{width:calc(100% - 16px);max-height:calc(100dvh - 16px);margin:auto}.composer-head{gap:8px;align-items:flex-start}.type-switch{flex:0 0 auto}.settings-content,.settings-card{min-width:0}.edit-avatar{align-items:center}.edit-avatar>div{min-width:0}.edit-avatar strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info{min-width:0}.profile-title>div{min-width:0}.profile-title h1{overflow-wrap:anywhere}.stats{row-gap:7px}.reels-top{align-items:flex-start}.reels-top .primary{flex:0 0 auto}.reel-card{max-width:100vw}.reel-info{min-width:0}.reel-info p{overflow-wrap:anywhere}}

/* Mensagens no celular: contatos permanecem acessíveis em uma faixa horizontal. */
@media(max-width:720px){.messages-page{display:flex;flex-direction:column;min-width:0;overflow:hidden}.conversations{display:flex;flex:0 0 auto;align-items:stretch;gap:2px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--line);scrollbar-width:none;padding:5px 6px}.conversations::-webkit-scrollbar{display:none}.chat-title{display:none}.conversation{flex:0 0 auto;max-width:150px;padding:7px 9px;border-radius:10px}.conversation div{min-width:0;max-width:94px}.conversation strong,.conversation small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-panel{flex:1;min-height:0;overflow:hidden}.chat-panel>header{flex:0 0 auto}.chat-messages{min-height:0;flex:1}.message-form{flex:0 0 auto;margin:8px 10px}.message-form input{width:0}.bubble-wrap{overflow-wrap:anywhere}}

/* Telefones muito estreitos. */
@media(max-width:430px){.mobile-header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.mobile-header .brand-word{font-size:21px}.mobile-header>div{gap:12px}.stories{gap:11px}.story{flex-basis:61px}.story-ring{width:61px;height:61px}.story-avatar{width:55px!important;height:55px!important}.profile-hero{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;padding:3px 12px 22px}.avatar.xl{width:76px;height:76px}.profile-title{gap:7px}.profile-title .secondary,.profile-title .primary,.profile-title .button-link{padding:8px 10px}.profile-tabs{gap:0;justify-content:space-around}.profile-tabs a{justify-content:center;min-width:0}.settings-page{padding-left:10px;padding-right:10px}.reels-top{gap:10px}.reels-top h1{font-size:22px}.reels-top .primary{padding:8px 10px}.sensitive-placeholder{padding:25px 18px}.composer-bar .text-action{padding-left:4px;padding-right:4px}}

/* PWA instalado: usa toda a área segura sem esconder controles. */
@media(display-mode:standalone){.sidebar{height:100dvh;max-height:100dvh}.messages-page{max-height:100dvh}.app-main{width:auto}body{overscroll-behavior-x:none}}

/* =========================================================
   NEXORA - CORREÇÃO MOBILE DOS REELS
   Mantém o Reel centralizado e evita corte lateral em vídeos
   que não estejam exatamente no formato vertical 9:16.
   ========================================================= */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .reels-page,
  .reels-feed {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .reel-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .reel-media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    max-height: none;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background: #000;
  }

  .reel-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
  }
}

/* =========================================================
   NEXORA 3.1.6 — INSTAGRAM-LIKE UI PACK
   Mantém o sistema leve e rápido.
   Ajusta desktop + mobile sem mexer em PHP/JS/banco.
   ========================================================= */

/* Base global mais limpa */
:root{
  --radius:12px;
  --shadow-soft:0 10px 30px rgba(0,0,0,.06);
}

body{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Ícones sempre visíveis */
.icon-btn,
.post-actions .icon-btn,
.post-menu summary{
  color:var(--text);
}
.icon-btn .action-svg,
.post-actions .action-svg,
.reel-action .reel-svg{
  stroke:currentColor;
}
.like-btn.liked{color:var(--red)!important}
.like-btn.liked .action-svg,
.like-btn.liked .reel-svg,
.save-btn.saved .action-svg,
.save-btn.saved .reel-svg{
  fill:currentColor;
}

/* =========================
   DESKTOP — igual ao clima do Instagram
   ========================= */
@media (min-width:721px){
  .sidebar{
    width:74px;
    padding:18px 10px 16px;
    align-items:center;
  }
  .sidebar .brand{
    padding:8px 0 18px;
    justify-content:center;
    width:100%;
  }
  .sidebar .brand-word,
  .sidebar .brand-glyph,
  .nav-item span:not(.badge),
  .sidebar form .nav-item span{
    display:none !important;
  }
  .sidebar .brand-logo-img{
    width:28px;
    height:28px;
    border-radius:8px;
  }
  .nav{
    width:100%;
    align-items:center;
    gap:6px;
    padding-right:0;
  }
  .nav-item{
    width:50px;
    height:50px;
    justify-content:center;
    gap:0;
    padding:0;
    border-radius:14px;
  }
  .nav-item:hover{background:#f4f4f4}
  .badge{
    position:absolute;
    top:6px;
    right:6px;
    margin-left:0;
    min-width:16px;
    height:16px;
    font-size:9px;
    padding:0 4px;
  }
  .app-main{margin-left:74px}

  .home-grid{
    width:min(1030px,calc(100% - 56px));
    grid-template-columns:minmax(0,470px) 320px;
    justify-content:center;
    gap:52px;
    padding:28px 0 72px;
  }
  .feed-col{max-width:470px}
  .right-col{padding-top:18px}
  .stories{padding:10px 0 18px}
  .composer-bar,
  .post-card{
    background:var(--surface);
  }
  .composer-bar{
    border-radius:16px;
    border:1px solid var(--line);
    box-shadow:none;
  }
  .post-card{
    border:0;
    box-shadow:none;
    margin:0 0 18px;
    padding-bottom:6px;
  }
  .post-head{padding:8px 0 10px}
  .post-body{padding:8px 0 0}
  .post-media-wrap{
    border:1px solid var(--line);
    border-radius:6px;
    background:#000;
  }
  .post-media{
    max-height:780px;
    object-fit:contain;
    object-position:center;
  }
  .post-actions{
    min-height:42px;
    gap:4px;
  }
  .icon-btn{
    width:40px;
    height:40px;
    padding:6px;
  }
  .action-svg{width:26px;height:26px}

  .wide-page,.narrow-page,.profile-page,.reels-page{
    width:min(1060px,calc(100% - 56px));
  }

  /* Reels desktop mais parecido com o Instagram */
  .reels-page{
    padding-top:22px;
  }
  .reels-top{
    max-width:720px;
    margin:0 auto 18px;
  }
  .reels-feed{
    gap:28px;
    align-items:center;
  }
  .reel-card{
    width:min(430px,100%);
    margin:0 auto;
  }
  .reel-media{
    border-radius:8px;
    background:#000;
    box-shadow:none;
  }
  .reel-video{
    object-fit:contain;
    object-position:center;
    background:#000;
  }
  .reel-actions{
    right:10px;
    bottom:18px;
  }

  /* Mensagens desktop */
  .messages-page{
    height:100vh;
    height:100dvh;
    grid-template-columns:400px minmax(0,1fr);
  }
  .conversations{
    border-right:1px solid var(--line);
    background:var(--surface);
  }
  .chat-title{
    padding:22px 18px 16px;
  }
  .conversation{
    padding:10px 18px;
    border-radius:0;
  }
  .conversation:hover,
  .conversation.active{
    background:#fafafa;
  }
  .chat-panel>header{
    padding:16px 20px;
    min-height:72px;
  }
  .chat-messages{padding:22px}
  .message-form{
    margin:14px 18px;
    border-radius:24px;
  }

  /* Perfil desktop */
  .profile-page{
    padding-top:28px;
  }
  .profile-hero{
    gap:84px;
    padding:16px 44px 34px;
    align-items:flex-start;
  }
  .avatar.xl{width:150px;height:150px}
  .profile-title h1{font-size:22px}
  .stats{gap:34px;margin:18px 0}
  .profile-tabs{gap:58px;height:50px}

  /* Explore */
  .explore-grid,.profile-grid{gap:4px}

  /* Modais/painéis */
  .menu-pop,
  .composer-modal,
  .settings-card,
  .auth-card,
  .empty{
    box-shadow:var(--shadow-soft);
  }
}

/* Tema escuro seguro */
@media (prefers-color-scheme:dark){
  body:not(.auth-page) .icon-btn,
  body:not(.auth-page) .post-actions .icon-btn,
  body:not(.auth-page) .post-menu summary,
  body:not(.auth-page) .reel-action{
    color:#f5f5f5 !important;
  }
  body:not(.auth-page) .nav-item:hover,
  body:not(.auth-page) .conversation:hover,
  body:not(.auth-page) .conversation.active{
    background:#111 !important;
  }
}

/* =========================
   MOBILE — leve e bonito
   ========================= */
@media (max-width:720px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    overscroll-behavior-x:none;
  }
  .app-main,
  .home-grid,
  .feed-col,
  .reels-page,
  .reels-feed,
  .reel-card,
  .profile-page,
  .messages-page{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:hidden;
  }

  /* remove efeitos pesados no celular */
  .mobile-header,
  .mobile-nav,
  .public-top{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  .post-card{
    margin:0;
    padding-bottom:10px;
  }
  .post-head{padding:10px 12px}
  .post-body{padding:7px 10px 0}
  .post-media-wrap{
    width:100%;
    border-radius:0;
    background:#000;
  }
  .post-media{
    width:100%;
    max-width:100%;
    max-height:82dvh;
    object-fit:contain;
    object-position:center;
    background:#000;
  }
  .post-actions{
    width:100%;
    min-height:44px;
    gap:2px;
  }
  .icon-btn{
    width:40px;
    height:40px;
    padding:7px;
    flex:0 0 40px;
  }
  .action-svg{width:27px;height:27px}
  .icon-btn:hover{opacity:1}

  /* Reels sem corte e centralizados */
  .reels-page{
    padding-left:0;
    padding-right:0;
  }
  .reels-feed{
    align-items:center;
    gap:14px;
  }
  .reel-card{
    width:100%;
    margin-left:auto;
    margin-right:auto;
  }
  .reel-media{
    width:100%;
    max-width:100%;
    aspect-ratio:9 / 16;
    max-height:none;
    margin-left:auto;
    margin-right:auto;
    overflow:hidden;
    border-radius:0;
    background:#000;
    box-shadow:none;
  }
  .reel-video{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:center center;
    background:#000;
  }
  .reel-actions{
    right:max(8px,env(safe-area-inset-right));
    bottom:16px;
    color:#fff;
  }
  .reel-action{
    color:#fff;
    text-shadow:0 1px 2px rgba(0,0,0,.6);
  }
  .reel-info{
    left:max(12px,env(safe-area-inset-left));
    right:72px;
    bottom:16px;
    color:#fff;
  }
  .reel-info strong,
  .reel-info p,
  .reel-info small{color:inherit}
  .reel-gradient{height:48%}

  /* Mensagens mobile */
  .messages-page{
    display:flex;
    flex-direction:column;
    min-height:calc(100dvh - 112px - env(safe-area-inset-bottom));
  }
  .conversations{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:6px;
    gap:4px;
    scrollbar-width:none;
  }
  .conversations::-webkit-scrollbar{display:none}
  .conversation{
    flex:0 0 auto;
    max-width:152px;
    padding:8px 10px;
    border-radius:10px;
  }
  .conversation div{max-width:96px}
  .chat-title{display:none}
  .chat-panel{flex:1;min-height:0;overflow:hidden}
  .chat-messages{flex:1;min-height:0}
  .message-form{margin:8px 10px}
  .message-form input{width:0;min-width:0}

  /* Perfil mobile */
  .profile-hero{
    display:grid;
    grid-template-columns:85px minmax(0,1fr);
    gap:16px;
    padding:6px 14px 24px;
    align-items:flex-start;
  }
  .avatar.xl{width:85px;height:85px;font-size:24px}
  .stats{
    gap:12px;
    flex-wrap:wrap;
    margin:14px 0;
  }
  .profile-tabs{
    gap:0;
    justify-content:space-around;
  }
}

@media (max-width:430px){
  .icon-btn{width:38px;height:38px;flex-basis:38px;padding:6px}
  .action-svg{width:26px;height:26px}
  .reel-info{left:10px;right:68px}
  .reel-actions{right:6px}
  .profile-hero{
    grid-template-columns:76px minmax(0,1fr);
    gap:14px;
    padding:4px 12px 20px;
  }
  .avatar.xl{width:76px;height:76px}
}

/* =========================================================
   NEXORA 3.1.6 — REELS IMERSIVO / SCROLL-SNAP
   1 Reel por tela, swipe/scroll vertical rápido e contínuo.
   ========================================================= */

.reels-page{
  position:relative;
  padding:0 !important;
  height:100dvh;
  max-height:100dvh;
  overflow:hidden;
}

.reels-top{
  position:absolute;
  z-index:35;
  top:12px;
  left:0;
  right:0;
  width:min(850px,100%);
  margin:0 auto !important;
  padding:0 16px;
  pointer-events:none;
  align-items:center;
}

.reels-top > *{pointer-events:auto}
.reels-top h1{
  color:#fff;
  font-size:22px;
  text-shadow:0 1px 4px rgba(0,0,0,.8);
}
.reels-top p{display:none}
.reels-top .primary{
  background:rgba(0,0,0,.42) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:none;
}

.reels-feed{
  width:100%;
  height:100%;
  max-height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.reels-feed::-webkit-scrollbar{display:none}

.reel-card{
  position:relative;
  width:100% !important;
  max-width:100% !important;
  height:100%;
  min-height:100%;
  margin:0 !important;
  display:grid;
  place-items:center;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  overflow:hidden;
}

.reel-media{
  height:calc(100% - 18px);
  width:auto;
  max-width:calc(100% - 20px);
  aspect-ratio:9 / 16;
  margin:auto;
  border-radius:10px;
  box-shadow:none;
  background:#000;
  flex:none;
}

.reel-video{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  background:#000;
}

.reel-comment-form{
  display:none;
  position:absolute;
  z-index:45;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(430px,calc(100% - 28px));
  margin:0 !important;
  padding:7px 9px 7px 13px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(18,18,18,.92);
  box-shadow:0 10px 30px rgba(0,0,0,.32);
}
.reel-comment-form.is-open{display:flex}
.reel-comment-form input{
  color:#fff !important;
  min-width:0;
}
.reel-comment-form input::placeholder{color:#cfcfcf}
.reel-comment-form button{color:#4ba3ff !important}

@media (min-width:721px){
  .reels-page{
    width:100% !important;
    max-width:none !important;
  }
  .reels-feed{background:var(--bg)}
  .reel-media{
    height:calc(100% - 18px);
    max-height:calc(100dvh - 18px);
  }
}

@media (max-width:720px){
  body:has(.reels-page){overflow:hidden}

  .reels-page{
    position:fixed;
    z-index:20;
    top:49px;
    right:0;
    bottom:calc(58px + env(safe-area-inset-bottom));
    left:0;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    background:#000;
  }

  .reels-feed{
    background:#000;
    scroll-behavior:smooth;
  }

  .reel-card{
    width:100% !important;
    height:100%;
    min-height:100%;
    background:#000;
  }

  .reel-media{
    width:100% !important;
    max-width:100% !important;
    height:100% !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    margin:0 !important;
    border-radius:0 !important;
  }

  .reel-video{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
  }

  .reels-top{
    top:8px;
    padding:0 12px;
  }

  .reels-top h1{font-size:20px}

  .reels-top .primary{
    padding:7px 10px;
    font-size:12px;
  }

  .reel-actions{
    right:max(8px,env(safe-area-inset-right));
    bottom:18px;
  }

  .reel-info{
    left:max(12px,env(safe-area-inset-left));
    right:72px;
    bottom:18px;
  }

  .reel-comment-form{bottom:12px}
}

@media (max-width:720px) and (display-mode:standalone){
  .reels-page{top:max(49px,env(safe-area-inset-top))}
}

/* =========================================================
   NEXORA FINAL — interface social inspirada no Instagram
   Ajustes de notificações, avatars, vídeos, perfil e performance.
   ========================================================= */

/* Avatar consistente: nunca estica e não usa mais letra gigante. */
.avatar{
  position:relative;
  flex:0 0 auto !important;
  aspect-ratio:1 / 1;
  overflow:hidden;
}
.avatar-fallback{
  display:grid !important;
  place-items:center !important;
  background:#efefef !important;
  color:#8e8e8e !important;
  border:1px solid #dbdbdb;
  line-height:1;
}
.avatar-fallback-svg{
  width:58%;
  height:58%;
  display:block;
  fill:#8e8e8e;
  stroke:#8e8e8e;
  stroke-width:1.45;
}
.notification-avatar{width:44px !important;height:44px !important;flex-basis:44px !important}

/* Barra lateral compacta no desktop. */
@media(min-width:721px){
  .sidebar{width:74px;padding:18px 10px 14px;align-items:center}
  .sidebar .brand{width:100%;justify-content:center;padding:8px 0 20px}
  .sidebar .brand-word,.sidebar .brand-glyph,.nav-item span:not(.badge),.sidebar form .nav-item span{display:none !important}
  .sidebar .brand-logo-img{width:29px;height:29px}
  .nav{width:100%;align-items:center;gap:6px;padding-right:0}
  .nav-item{position:relative;width:50px;height:50px;justify-content:center;gap:0;padding:0;border-radius:12px}
  .nav-item:hover{background:#f2f2f2}
  .app-main{margin-left:74px}
  .badge{position:absolute;top:5px;right:5px;margin:0}
}

/* Feed: mídia limpa, sem controles nativos pesados. */
.post-media-wrap.has-video{cursor:pointer}
.post-media-wrap.has-video .feed-video{user-select:none;-webkit-user-select:none}
.post-video-sound,.reel-sound{
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.62);
  color:#fff;
  -webkit-tap-highlight-color:transparent;
}
.post-video-sound{
  position:absolute;
  z-index:7;
  right:12px;
  bottom:12px;
  width:34px;
  height:34px;
}
.sound-off-icon{display:none}
.is-muted .sound-on-icon{display:none}
.is-muted .sound-off-icon{display:block}
.media-progress,.reel-progress{
  position:absolute;
  z-index:8;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:rgba(255,255,255,.22);
  overflow:hidden;
  pointer-events:none;
}
.media-progress span,.reel-progress span{
  display:block;
  width:100%;
  height:100%;
  transform:scaleX(0);
  transform-origin:left center;
  background:#fff;
  will-change:transform;
}
.post-media-wrap.video-paused::after{
  content:"";
  position:absolute;
  z-index:6;
  left:50%;
  top:50%;
  width:0;
  height:0;
  transform:translate(-40%,-50%);
  border-top:18px solid transparent;
  border-bottom:18px solid transparent;
  border-left:28px solid rgba(255,255,255,.92);
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));
  pointer-events:none;
}

/* Reels em tela cheia e troca 1 por 1. */
.reels-page{position:relative;padding:0 !important;height:100dvh;max-height:100dvh;overflow:hidden}
.reels-feed{width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.reels-feed::-webkit-scrollbar{display:none}
.reel-card{width:100% !important;max-width:100% !important;height:100%;min-height:100%;margin:0 !important;display:grid;place-items:center;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.reel-media{position:relative;background:#000}
.reel-sound{width:36px;height:36px}
.reel-progress{height:2px}

/* Notificações: lista compacta e alinhada como app social moderno. */
.notifications-page{
  width:min(630px,calc(100% - 40px));
  margin:0 auto;
  padding:28px 0 88px;
}
.notifications-head{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:0 4px 16px;
  border-bottom:1px solid var(--line);
}
.notifications-head h1{margin:0;font-size:24px;letter-spacing:-.45px}
.notifications-list{width:100%}
.notification-section-title{
  margin:0;
  padding:18px 4px 10px;
  font-size:16px;
  font-weight:750;
}
.notification-item{
  display:flex !important;
  align-items:center !important;
  gap:12px;
  width:100%;
  min-height:72px;
  padding:10px 4px;
  border-bottom:1px solid #efefef;
}
.notification-avatar-link{flex:0 0 44px;width:44px;height:44px}
.notification-item>.avatar,.notification-item>.notification-avatar-link>.avatar{flex:0 0 44px !important;width:44px !important;height:44px !important}
.notification-copy{
  display:block !important;
  flex:1 1 auto !important;
  min-width:0;
}
.notification-copy p{
  margin:0;
  color:var(--text);
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.notification-copy strong{font-weight:700}
.notification-time{color:var(--muted);white-space:nowrap;margin-left:4px;font-weight:400}
.notification-preview{
  flex:0 0 44px;
  width:44px;
  height:44px;
  border-radius:4px;
  overflow:hidden;
  background:#f2f2f2;
  display:grid;
  place-items:center;
}
.notification-preview img{width:100%;height:100%;object-fit:cover;display:block}
.notification-video-preview,.notification-text-preview{width:100%;height:100%;display:grid;place-items:center;background:#111;color:#fff}
.notification-inline-action{
  flex:0 0 auto;
  color:#0095f6;
  font-weight:700;
  font-size:13px;
  padding:8px 10px;
}
.follow-request-actions{display:flex;gap:8px;margin-top:9px}
.follow-request-actions form{margin:0}
.follow-request-actions button{min-width:86px;padding:7px 12px;border-radius:8px}
.notifications-empty{text-align:center;padding:68px 20px;color:var(--muted)}
.notifications-empty>.empty-svg{margin:0 auto 14px;width:62px;height:62px;color:var(--text);border:2px solid var(--text);border-radius:50%;padding:14px}
.notifications-empty h3{margin:0 0 7px;color:var(--text);font-size:20px}
.notifications-empty p{max-width:360px;margin:0 auto;line-height:1.45}

/* Perfil: espaçamento e grade mais próximos da referência. */
.profile-page{max-width:935px}
.profile-hero{align-items:flex-start}
.profile-info>p{max-width:520px}
.profile-grid{border-top:1px solid var(--line)}
.profile-post{background:#efefef}
.profile-post img,.profile-post video{transition:transform .15s ease}
@media(hover:hover){.profile-post:hover img,.profile-post:hover video{transform:scale(1.015)}}
.single-post-page{width:min(500px,calc(100% - 32px));padding-top:26px}
.single-post-page .post-card{margin:0 auto}

/* Tema escuro */
@media(prefers-color-scheme:dark){
  .avatar-fallback{background:#262626 !important;color:#a8a8a8 !important;border-color:#363636}
  .avatar-fallback-svg{fill:#a8a8a8;stroke:#a8a8a8}
  .notification-item{border-bottom-color:#262626}
  .notification-preview{background:#181818}
  .nav-item:hover{background:#121212}
}

/* Mobile: ocupa largura correta e evita filtros pesados. */
@media(max-width:720px){
  html,body{scroll-behavior:auto}
  .mobile-header,.mobile-nav,.public-top{-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
  .notifications-page{width:100%;padding:12px 14px calc(78px + env(safe-area-inset-bottom))}
  .notifications-head{padding:4px 0 12px;min-height:48px}
  .notifications-head h1{font-size:22px}
  .notification-section-title{padding-left:0;padding-right:0}
  .notification-item{padding:10px 0;gap:10px;min-height:68px}
  .notification-avatar-link,.notification-item>.notification-avatar-link>.avatar{width:42px !important;height:42px !important;flex-basis:42px !important}
  .notification-preview{width:42px;height:42px;flex-basis:42px}
  .notification-copy p{font-size:13.5px}
  .follow-request-actions button{min-width:78px;padding:7px 10px}

  body.page-reels{overflow:hidden}
  .page-reels .mobile-header{background:#000 !important;color:#fff;border-bottom-color:#111}
  .page-reels .mobile-header a{color:#fff}
  .page-reels .mobile-nav{background:#000 !important;color:#fff;border-top-color:#1f1f1f}
  .page-reels .mobile-nav a,.page-reels .mobile-nav button,.page-reels .mobile-nav small{color:#fff}

  .reels-page{position:fixed;z-index:20;top:49px;right:0;bottom:calc(58px + env(safe-area-inset-bottom));left:0;width:100% !important;height:auto !important;max-height:none !important;background:#000}
  .reel-card{height:100%;min-height:100%;background:#000}
  .reel-media{width:100% !important;max-width:100% !important;height:100% !important;max-height:none !important;aspect-ratio:auto !important;margin:0 !important;border-radius:0 !important;box-shadow:none}
  .reel-video{width:100%;height:100%;object-fit:contain;object-position:center;background:#000}
  .reel-actions{right:max(8px,env(safe-area-inset-right));bottom:18px}
  .reel-info{left:max(12px,env(safe-area-inset-left));right:72px;bottom:18px}
  .reel-gradient{height:50%}
  .reel-sound{top:12px;right:12px}

  .post-media{max-height:82dvh}
  .post-video-sound{right:10px;bottom:10px}
  .post-card,.notification-item,.conversation{content-visibility:auto;contain-intrinsic-size:auto 120px}
  .reel-card{content-visibility:visible}
  .nav-item,.icon-btn,.reel-action,.mobile-nav a,.mobile-nav button{transition:none !important}

  .profile-hero{padding-top:8px}
  .profile-grid{border-top:1px solid var(--line)}
  .single-post-page{width:100%;padding:0 0 78px}
}


/* =========================================================
   JETFLIX / NEXORA 3.3.1 SAFE — recursos novos sem alterar o layout base
   ========================================================= */
.user-row small{display:flex;align-items:center;gap:4px;min-width:0}
.user-row small .tiny-svg{width:13px;height:13px;flex:none}
.global-pinned-post{position:relative}
.global-pinned-post::before{content:"";position:absolute;z-index:10;left:0;top:0;width:3px;height:38px;border-radius:0 4px 4px 0;background:var(--text)}
.profile-post.is-pinned{position:relative}
.profile-pin-badge{position:absolute;z-index:8;top:8px;right:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.72);color:#fff;pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.profile-pin-badge .tiny-svg{width:15px;height:15px}
.sponsored-card{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-top:2px}
.sponsored-label{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}
.sponsored-label .tiny-svg{width:16px;height:16px}
.sponsored-body{padding-top:10px}.sponsored-title{display:block;font-size:15px;margin:0 0 5px}
.sponsored-cta{width:100%;min-height:42px;margin:10px 0 3px;padding:9px 12px;border-radius:8px;background:var(--soft);color:var(--text);font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line)}
.sponsored-actions{display:flex;align-items:center;margin-top:2px}
.profile-share-button{white-space:nowrap}
.public-profile-actions,.public-post-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.public-profile-actions button,.public-post-actions button{cursor:pointer}
@media(max-width:720px){.global-pinned-post::before{height:34px}.sponsored-card{border-top:0}.sponsored-label{font-size:11px}.sponsored-cta{min-height:40px}.profile-pin-badge{top:6px;right:6px;width:25px;height:25px}.profile-pin-badge .tiny-svg{width:14px;height:14px}.profile-title{row-gap:8px}.profile-share-button{padding:8px 10px}.public-profile-actions,.public-post-actions{width:100%}}
@media(prefers-color-scheme:dark){.sponsored-cta{background:#121212;border-color:#262626}.sponsored-cta:hover{background:#1a1a1a}.global-pinned-post::before{background:#f5f5f5}}
