/* Phase 30 — cohesive SHALANKA top navigation, social walls and protected media. */
.p30-global-header{z-index:100;background:var(--panel,#fff);box-shadow:0 2px 14px rgba(25,41,51,.035)}
.p30-global-header .p30-topbar{min-height:59px;max-width:1440px;padding:8px 22px;gap:22px}
.p30-global-header .m-brand img{width:132px;max-height:42px;object-fit:contain}
.p30-global-header .m-top-search{margin:0 auto;min-width:190px;max-width:410px;flex:1;border-radius:10px;height:34px;background:var(--soft,#f5f6fa)}
.p30-global-header .m-top-search input{font-size:11px;height:32px;padding:6px;border:0;box-shadow:none}
.p30-right-icons{display:flex;align-items:center;gap:9px;flex:0 0 auto;position:relative}
.p30-icon,.p30-global-header #m-theme{background:var(--soft,#f5f6fa);color:var(--text,#29313c);width:34px;height:34px;border:1px solid var(--line,#eef0f2);border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;padding:0;text-decoration:none;position:relative;line-height:1}
.p30-icon:hover,.p30-icon:focus-visible{background:var(--green-light,#e9f4ef);text-decoration:none;outline-color:var(--green,#148968)}
.p30-right-icons .m-module-wrap>button{width:34px;height:34px;border-radius:11px}
.p30-nav-item{position:relative;flex:none}
.p30-nav-popover,.p30-global-header .m-module-panel{position:absolute;z-index:120;top:calc(100% + 11px);right:0;background:var(--panel,#fff);border:1px solid var(--line,#e6ebee);border-radius:14px;box-shadow:0 18px 45px rgba(25,40,55,.13);padding:13px 14px;width:268px;color:var(--text,#29313c);max-height:min(70vh,560px);overflow:auto}
.p30-nav-popover[hidden],.p30-global-header .m-module-panel[hidden]{display:none}
.p30-nav-popover h3{font-weight:650;font-size:13px;margin:4px 8px 12px}.p30-nav-popover p{font-size:12px;color:var(--muted,#667);padding:0 8px}
.p30-nav-popover>a,.p30-nav-popover>form button,.p30-nav-popover>.p30-menu-choice{display:block;text-align:left;width:100%;border:0;background:transparent;color:var(--text,#29313c);font-size:12px;font-weight:500;padding:11px 9px;border-radius:8px;text-decoration:none}
.p30-nav-popover>a:hover,.p30-nav-popover>form button:hover,.p30-nav-popover>.p30-menu-choice:hover{background:var(--soft,#f4f6f9)}
.p30-global-header .m-module-panel{width:min(530px,calc(100vw - 24px))}.p30-global-header .m-module-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.p30-global-header .m-module-links a{font-size:11px;min-height:36px;text-align:left;justify-content:flex-start;padding:8px 10px;background:transparent}.p30-global-header .m-module-links a:hover{background:var(--soft)}
.p30-avatar-btn{border-radius:50%;color:#fff;background:#6361d3;border-color:#6361d3;font-weight:700;font-size:12px}
.p30-count{position:absolute;top:-5px;right:-5px;background:#e95465;color:#fff;border-radius:20px;min-width:17px;line-height:16px;text-align:center;padding:0 3px;font-size:10px}
/* Source-video-inspired social profile and Page walls. */
.p30-wall{max-width:1300px}.p30-back{display:inline-block;margin-bottom:9px;color:var(--muted);font-size:12px}
.p30-wall-hero{padding:0;overflow:hidden;border-radius:15px;margin-bottom:20px}
.p30-cover{height:246px;overflow:hidden;background:linear-gradient(112deg,#e9e9f6,#d4d2ff 54%,#c5e8e1);position:relative}
.p30-cover img{width:100%;height:100%;object-fit:cover;display:block}
.p30-identity{display:flex;align-items:end;gap:18px;padding:0 23px 16px;min-height:100px;position:relative}
.p30-hero-avatar{width:108px;height:108px;flex:none;margin-top:-41px;border:4px solid var(--panel,#fff);border-radius:24px;display:flex;align-items:center;justify-content:center;background:#ede8ff;color:#4e4cab;font-size:34px;font-weight:700;overflow:hidden}
.p30-hero-avatar img{width:100%;height:100%;object-fit:cover}
.p30-place-logo{border-radius:25px}
.p30-hero-name{flex:1;min-width:0;padding-top:12px}.p30-hero-name h1{font-size:20px;font-weight:650;margin:0 0 5px;letter-spacing:-.03em}
.p30-hero-name p,.p30-hero-name small{font-size:11px;color:var(--muted);margin:0 0 4px;line-height:1.5}
.p30-hero-buttons{display:flex;gap:8px;align-self:center;flex-wrap:wrap;justify-content:flex-end}
.p30-hero-buttons .m-btn{padding:7px 12px;font-size:11px;font-weight:600}
.p30-wall-tabs{display:flex;align-items:center;gap:5px;border-top:1px solid var(--line);padding:0 16px;overflow-x:auto;scrollbar-width:thin}
.p30-wall-tabs a{color:var(--muted);text-decoration:none;padding:12px 16px;border-bottom:2px solid transparent;font-size:12px;white-space:nowrap;font-weight:500}
.p30-wall-tabs a.active{background:var(--soft);border-bottom-color:#6f57d4;color:#5c48bd}
.p30-wall-columns{display:grid;grid-template-columns:minmax(215px,285px) minmax(0,1fr);gap:19px;align-items:start}.p30-wall-feed{min-width:0}.p30-wall-aside .m-card{padding:17px}.p30-wall-aside p{font-size:12px}
.p30-feed-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 10px;gap:10px}.p30-feed-heading h2{margin:0;font-size:15px}.p30-feed-heading a{font-size:12px}
.p30-compose-prompt{display:flex;align-items:center;gap:10px;padding:13px 15px;margin-bottom:13px}.p30-circle-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#ece7ff;color:#5f4cc0;font-weight:700;flex:none}.p30-compose-prompt>button{flex:1;border:0;border-radius:10px;background:var(--soft);color:var(--muted);font-weight:450;text-align:left;justify-content:flex-start;padding:10px 14px;font-size:12px}.p30-prompt-shortcuts{display:flex;gap:3px}.p30-prompt-shortcuts button{border:0;background:transparent;font-size:18px;color:#49aa85;padding:5px}
.p30-compose-dialog{width:min(540px,calc(100vw - 24px));max-height:90vh;overflow-y:auto;max-width:initial;padding:0;border:0;border-radius:16px;color:var(--text);background:var(--panel);box-shadow:0 24px 80px rgba(4,14,30,.23)}
.p30-compose-dialog::backdrop{background:rgba(8,18,30,.65)}
.p30-compose-form{display:flex;flex-direction:column;padding:17px;gap:13px}.p30-compose-form>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:13px;font-size:14px}
.p30-compose-form>header button{border:0;background:var(--soft);width:28px;height:28px;border-radius:50%;font-size:18px;padding:0}
.p30-compose-person{display:flex;gap:10px;align-items:center}.p30-compose-person strong{font-size:12px}.p30-compose-person small{display:block;font-size:10px}.p30-compose-form textarea{border:0;background:transparent;font-size:13px;min-height:110px;resize:vertical}
.p30-compose-form label{font-size:12px;display:grid;gap:7px}.p30-compose-form input,.p30-compose-form select{font-size:12px;padding:9px}
.p30-attachment-tabs{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:11px}.p30-attachment-tabs button{font-size:11px;padding:7px 10px;background:var(--soft);border-color:transparent;border-radius:9px}.p30-attachment-tabs button.active{background:var(--green-light);color:var(--green)}
.p30-paid-settings{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.p30-paid-settings p{font-size:11px;color:var(--muted)}.p30-paid-settings textarea{background:var(--panel);border:1px solid var(--line);min-height:65px}
.p30-upload-preview{font-size:11px;color:var(--muted)}.p30-compose-form>footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.p30-compose-form>footer button{min-width:110px;background:#6655db!important;border-color:#6655db!important}
/* Paid posts and blogs — reveal only after an authorization check on the server. */
.p30-asset-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:16px 0;padding:0 18px}
.p30-asset{margin:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--panel)}
.p30-asset img,.p30-asset video{display:block;width:100%;max-height:360px;object-fit:contain;background:var(--soft)}
.p30-asset audio{display:block;width:100%;padding:10px}
.p30-asset-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;font-size:11px;overflow-wrap:anywhere}.p30-asset-caption span{flex:1;min-width:0}
.p30-blog-lock{margin:25px 0;border:1px solid var(--line);border-radius:13px;background:var(--soft);padding:23px}.p30-blog-lock strong{font-size:16px}.p30-blog-lock form{margin:16px 0}
/* Homepage uses original dynamic controls, but shares visual sizing and right-side dropdowns. */
.site-header.p30-home-header .header-inner{min-height:59px;max-width:1440px;padding:8px 22px;gap:22px}
.site-header.p30-home-header .brand img{width:132px;height:auto}
.site-header.p30-home-header .header-search{height:34px;max-width:410px;border-radius:10px}
.site-header.p30-home-header .header-search input{font-size:11px}
.site-header.p30-home-header .header-actions{gap:9px}
.site-header.p30-home-header .icon-btn,.site-header.p30-home-header .account-btn{width:34px;height:34px;min-width:34px;padding:0;border-radius:11px;font-size:17px;display:inline-flex;align-items:center;justify-content:center}
.site-header.p30-home-header .account-btn{width:auto;padding:0 8px}.site-header.p30-home-header .account-btn span:not(.account-avatar){font-size:11px}
.site-header.p30-home-header .p30-nav-item{position:relative}.site-header.p30-home-header .p30-nav-popover{color:var(--text);background:var(--surface,#fff)}
@media(max-width:850px){.p30-global-header .p30-topbar{gap:9px;min-height:56px;padding:8px 12px}.p30-global-header .m-brand img{width:112px}.p30-right-icons{gap:5px}.p30-global-header .m-top-search{display:none}.p30-icon{width:31px;height:31px;font-size:16px}.p30-hero-avatar{width:82px;height:82px}.p30-wall-columns{grid-template-columns:1fr}.p30-wall-aside{display:none}.p30-cover{height:190px}.p30-identity{flex-wrap:wrap;gap:10px;padding:0 15px 14px}.p30-hero-name h1{font-size:18px}.p30-hero-buttons{width:100%;justify-content:flex-start}.p30-wall-tabs a{padding:11px 12px}.site-header.p30-home-header .brand img{width:110px}.site-header.p30-home-header .header-actions{gap:5px}.site-header.p30-home-header .p30-nav-item{display:inline-flex}}
@media(max-width:500px){.p30-right-icons .p30-bell{display:none}.p30-global-header .m-brand img{width:100px}.p30-global-header .p30-topbar{gap:5px}.p30-global-header .p30-icon{width:28px;height:28px}.p30-wall-tabs{padding:0 5px}}
