/* VACSTUDY COMMUNITY — responsive, theme-safe UI */
#communityScreen{color:var(--text-main)}
#communityScreen *{border-color:var(--border-color)}
.community-shell{display:grid;grid-template-columns:250px minmax(0,1fr) 285px;gap:20px;align-items:start}
.community-sidebar,.community-main,.community-rightbar{min-width:0}
.community-sidebar{background:var(--surface-color);border:1px solid var(--border-color);border-radius:22px;padding:16px;box-shadow:var(--shadow-sm);position:sticky;top:20px}
.community-profile-card{display:flex;gap:12px;align-items:center;padding:8px 8px 16px;border-bottom:1px solid var(--border-color);margin-bottom:10px}
.community-profile-card strong,.community-profile-card span{display:block}.community-profile-card strong{font-size:.94rem;color:var(--text-main)}.community-profile-card span{font-size:.72rem;color:var(--text-muted);margin-top:3px}
.community-avatar{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#2563eb;display:grid;place-items:center;font-weight:900;font-size:1.05rem;flex:0 0 auto;border:1px solid rgba(37,99,235,.15)}
:root[data-theme="dark"] .community-avatar{background:linear-gradient(135deg,#172b4d,#203b66);color:#93c5fd;border-color:rgba(96,165,250,.25)}
.community-side-link{width:100%;display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:12px;background:transparent;color:var(--text-muted);font-weight:750;text-align:left;margin:2px 0}.community-side-link:hover{background:var(--secondary);color:var(--text-main)}.community-side-link.active{background:var(--glow-primary);color:var(--primary)}
.community-sidebar-title{font-size:.68rem;font-weight:900;color:var(--text-muted);letter-spacing:.08em;margin:20px 8px 8px}.community-mini-groups{display:grid;gap:4px}.community-mini-group{border:0;display:flex;align-items:center;gap:8px;width:100%;padding:8px;border-radius:10px;cursor:pointer;background:transparent;color:var(--text-main);text-align:left}.community-mini-group:hover{background:var(--secondary)}.community-mini-group-icon{width:30px;height:30px;border-radius:9px;background:var(--secondary);display:grid;place-items:center;color:var(--primary);font-size:.78rem}.community-mini-group span:last-child{font-size:.76rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-empty-mini{font-size:.76rem;color:var(--text-muted);padding:8px}
.community-create-group{width:100%;margin-top:14px;padding:11px;border:1px dashed var(--primary)!important;border-radius:12px;background:var(--glow-primary);color:var(--primary);font-weight:800}.community-create-group:hover{transform:translateY(-1px)}
.community-topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:2px 2px 16px}.community-eyebrow{font-size:.7rem;font-weight:900;color:var(--primary);letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px}.community-topbar h1,.community-groups-header h2{font-size:1.8rem;margin:0 0 4px;color:var(--text-main)}.community-topbar p,.community-groups-header p{color:var(--text-muted);font-size:.88rem;margin:0}.community-compose-btn,.community-primary-btn{border:0;background:var(--primary);color:#fff;border-radius:12px;padding:11px 16px;font-weight:800;box-shadow:0 8px 20px rgba(37,99,235,.18);gap:8px}.community-compose-btn:hover,.community-primary-btn:hover{transform:translateY(-1px);background:var(--primary-hover)}.community-primary-btn:disabled{opacity:.65;cursor:wait;transform:none}.community-primary-btn.loading i{animation:communitySpin 1s linear infinite}
.community-stories-panel{background:var(--surface-color);border:1px solid var(--border-color);border-radius:20px;padding:14px;margin-bottom:12px;box-shadow:var(--shadow-sm)}.community-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:10px}.community-section-title strong,.community-section-title span{display:block}.community-section-title strong{font-size:.95rem;color:var(--text-main)}.community-section-title span{font-size:.7rem;color:var(--text-muted);margin-top:2px}.community-section-title button,.community-soft-btn{border:1px solid var(--border-color);background:var(--secondary);color:var(--text-main);padding:8px 11px;border-radius:10px;font-size:.72rem;font-weight:800;gap:6px}.community-section-title button:hover,.community-soft-btn:hover{border-color:var(--primary);color:var(--primary)}
.community-stories{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 3px;scrollbar-width:thin}.community-story-card{position:relative;width:110px;min-width:110px;height:164px;border:1px solid var(--border-color);border-radius:16px;overflow:hidden;background:var(--secondary);color:var(--text-main);padding:0;text-align:left;display:flex;flex-direction:column;justify-content:flex-end;cursor:pointer}.community-story-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.community-story-media{position:absolute;inset:0;background:linear-gradient(145deg,var(--secondary),var(--surface-color));overflow:hidden}.community-story-media img,.community-story-media video{width:100%;height:100%;object-fit:cover}.community-story-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.05) 35%,rgba(15,23,42,.75) 100%)}.community-story-ring{position:absolute;z-index:2;top:9px;left:9px;border:2px solid #fff;border-radius:50%;padding:2px;background:var(--primary)}.community-story-ring .community-avatar{width:30px;height:30px;border:0}.community-story-card>strong,.community-story-card>small{position:relative;z-index:3;padding:0 9px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35)}.community-story-card>strong{font-size:.72rem;line-height:1.2;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-story-card>small{font-size:.58rem;opacity:.9;margin-bottom:9px}.story-add{justify-content:center;align-items:center;background:var(--surface-color);border:1px solid var(--border-color)}.story-add .community-story-avatar-wrap{position:relative;margin-bottom:9px}.story-add .community-avatar{width:58px;height:58px;border-radius:18px}.community-story-plus{position:absolute;right:-4px;bottom:-3px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;border:2px solid var(--surface-color);font-size:.65rem}.story-add>strong,.story-add>small{color:var(--text-main);text-shadow:none;text-align:center}.story-add>small{color:var(--text-muted)}
.community-group-strip{display:flex;gap:8px;overflow:auto;padding:2px 2px 10px}.community-group-chip{border:1px solid var(--border-color);background:var(--surface-color);color:var(--text-main);padding:8px 12px;border-radius:999px;white-space:nowrap;font-size:.76rem;font-weight:750;cursor:pointer;gap:6px}.community-group-chip.active,.community-group-chip:hover{border-color:var(--primary);color:var(--primary);background:var(--glow-primary)}
.community-feed{display:grid;gap:14px}.community-post{background:var(--surface-color);border:1px solid var(--border-color);border-radius:20px;box-shadow:var(--shadow-sm);overflow:hidden;color:var(--text-main)}.community-post-head{display:flex;justify-content:space-between;gap:10px;padding:16px 18px 8px}.community-author{display:flex;gap:10px;align-items:center}.community-author .community-avatar{width:40px;height:40px;border-radius:12px}.community-author strong{display:block;font-size:.88rem;color:var(--text-main)}.community-author span{display:block;color:var(--text-muted);font-size:.7rem;margin-top:2px}.community-author em{font-style:normal;color:var(--primary);font-weight:800}.community-post-body{padding:7px 18px 14px;font-size:.9rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-main)}.community-group-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:var(--glow-primary);color:var(--primary);font-size:.65rem;font-weight:850;margin:0 18px 8px}.community-post-attachments{display:grid;grid-template-columns:1fr;gap:4px;padding:0 18px 14px;overflow:hidden}.community-attachment-image{display:block;min-width:0;min-height:0;max-height:560px;border-radius:12px;overflow:hidden;background:var(--secondary)}.community-attachment-image img{width:100%;height:100%;max-height:560px;object-fit:cover;display:block;transition:transform .35s ease}.community-attachment-image:hover img{transform:scale(1.015)}.community-attachment-video-wrap{min-width:0;overflow:hidden;border-radius:12px;background:#000}.community-attachment-video{display:block;width:100%;max-height:560px;background:#000}.community-post-attachments.media-count-2,.community-post-attachments.media-count-3,.community-post-attachments.media-count-4,.community-post-attachments.media-count-5,.community-post-attachments.media-count-6{grid-template-columns:repeat(2,minmax(0,1fr))}.community-post-attachments.media-count-3 .community-attachment-image:first-child,.community-post-attachments.media-count-3 .community-attachment-video-wrap:first-child{grid-row:span 2}.community-post-attachments.media-count-3 .community-attachment-image:first-child img,.community-post-attachments.media-count-3 .community-attachment-video-wrap:first-child video{height:100%;min-height:280px;object-fit:cover}.community-post-attachments.media-count-2 .community-attachment-image img,.community-post-attachments.media-count-4 .community-attachment-image img,.community-post-attachments.media-count-5 .community-attachment-image img,.community-post-attachments.media-count-6 .community-attachment-image img{height:260px}.community-post-attachments.media-count-2 .community-attachment-video,.community-post-attachments.media-count-4 .community-attachment-video,.community-post-attachments.media-count-5 .community-attachment-video,.community-post-attachments.media-count-6 .community-attachment-video{height:260px;object-fit:cover}.community-file-card{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--border-color);border-radius:12px;background:var(--secondary);color:var(--text-main);text-decoration:none}.community-file-card:hover{border-color:var(--primary);background:var(--glow-primary)}.community-file-card>span:nth-child(2){min-width:0;flex:1}.community-file-card strong,.community-file-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-file-card strong{font-size:.78rem}.community-file-card small{font-size:.65rem;color:var(--text-muted);margin-top:2px}.community-file-icon{width:34px;height:34px;border-radius:9px;background:var(--glow-primary);color:var(--primary);display:grid;place-items:center}.community-file-card>.fa-download{color:var(--primary)}
.community-actions{display:flex;gap:2px;padding:8px 14px;border-top:1px solid var(--border-color)}.community-action{border:0;background:transparent;padding:8px 10px;border-radius:9px;color:var(--text-muted);font-weight:750;font-size:.78rem;gap:6px}.community-action:hover,.community-action.liked{background:var(--glow-primary);color:var(--primary)}.community-comments{padding:0 16px 14px;display:none}.community-comments.open{display:block}.community-comment{padding:9px 0;border-top:1px solid var(--border-color);display:flex;gap:8px}.community-comment .community-avatar{width:30px;height:30px;border-radius:9px;font-size:.75rem}.community-comment-content{background:var(--secondary);padding:8px 10px;border-radius:12px;flex:1}.community-comment-content strong,.community-comment-content small{display:block}.community-comment-content strong{font-size:.74rem;color:var(--text-main)}.community-comment-content small{font-size:.6rem;color:var(--primary);font-weight:800}.community-comment-content p{font-size:.78rem;line-height:1.5;margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-main)}.community-reply-list{margin-left:38px}.community-comment-form{display:flex;gap:8px;margin-top:8px}.community-comment-form input{flex:1;min-width:0;border:1px solid var(--border-color);background:var(--surface-color);color:var(--text-main);border-radius:10px;padding:9px 11px;outline:none}.community-comment-form input::placeholder,.community-input::placeholder,.community-textarea::placeholder{color:var(--text-muted)}.community-comment-form button{width:38px;border:0;border-radius:10px;background:var(--primary);color:#fff}
.community-rightbar{display:grid;gap:14px;position:sticky;top:20px}.community-widget{background:var(--surface-color);border:1px solid var(--border-color);border-radius:18px;padding:15px;box-shadow:var(--shadow-sm);color:var(--text-main)}.community-widget-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.community-widget-head strong{font-size:.9rem}.community-widget-head button{border:0;background:transparent;color:var(--primary);font-size:.72rem;font-weight:800}.community-all-group{padding:10px;border-radius:12px;background:var(--secondary);margin-top:7px}.community-all-group strong{display:block;font-size:.78rem;color:var(--text-main)}.community-all-group span{display:block;color:var(--text-muted);font-size:.68rem;margin-top:3px}.community-all-group button{margin-top:7px;border:1px solid var(--border-color);background:var(--surface-color);color:var(--primary);font-size:.68rem;font-weight:800;padding:5px 8px;border-radius:8px}.community-tip{display:grid;grid-template-columns:32px 1fr;gap:8px}.community-tip>i{grid-row:span 2;color:var(--primary);font-size:1.1rem}.community-tip strong{font-size:.82rem}.community-tip p{font-size:.72rem;line-height:1.5;color:var(--text-muted);margin:0}
.community-loading{text-align:center;color:var(--text-muted);padding:55px 10px}.community-empty{text-align:center;background:var(--surface-color);border:1px dashed var(--border-color);border-radius:18px;padding:55px 20px;color:var(--text-muted)}.community-empty i{display:block;font-size:2rem;color:var(--primary);margin-bottom:10px}.community-empty strong,.community-empty span{display:block}.community-empty strong{color:var(--text-main);margin-bottom:4px}
.community-groups-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:4px 0 14px}.community-group-search{height:48px;display:flex;align-items:center;gap:10px;background:var(--surface-color);border:1px solid var(--border-color);border-radius:999px;padding:0 16px;margin-bottom:20px}.community-group-search i{color:var(--text-muted)}.community-group-search input{width:100%;border:0!important;box-shadow:none!important;background:transparent;color:var(--text-main);font-size:.9rem}.community-directory-title{font-size:.92rem;font-weight:900;margin-bottom:10px;color:var(--text-main)}.community-group-directory{display:grid;gap:12px}.community-directory-card{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:14px;background:var(--surface-color);border:1px solid var(--border-color);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow-sm);cursor:pointer}.community-directory-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-md);border-color:rgba(37,99,235,.35)}.community-directory-icon{width:62px;height:62px;border-radius:16px;background:var(--secondary);color:var(--text-muted);display:grid;place-items:center;font-size:1.45rem}.community-directory-info{min-width:0}.community-directory-info h3{font-size:.92rem;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-directory-info p{font-size:.72rem;color:var(--text-muted);margin:4px 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-directory-info span{font-size:.68rem;color:var(--text-muted)}.community-directory-info b{margin:0 5px;color:var(--border-color)}.community-directory-status{border:0;background:#effdf4;color:#16a34a;padding:8px 10px;border-radius:999px;font-size:.68rem;font-weight:850;white-space:nowrap}.community-directory-status:not(.joined){background:var(--glow-primary);color:var(--primary)}:root[data-theme="dark"] .community-directory-status.joined{background:rgba(34,197,94,.12);color:#86efac}
.community-modal{position:fixed;inset:0;background:rgba(2,6,23,.62);backdrop-filter:blur(8px);z-index:30000;display:none;align-items:center;justify-content:center;padding:20px}.community-modal.open{display:flex}.community-modal-box{width:min(640px,100%);max-height:min(88vh,850px);overflow:auto;background:var(--surface-color);border:1px solid var(--border-color);color:var(--text-main);border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.35);padding:20px}.community-post-composer-box{width:min(700px,100%)}.community-small-modal{width:min(500px,100%)}.community-modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--border-color)}.community-modal-head strong,.community-modal-head span{display:block}.community-modal-head strong{font-size:1rem;color:var(--text-main)}.community-modal-head span{font-size:.72rem;color:var(--text-muted);margin-top:3px}.community-modal-head button{border:0;background:var(--secondary);width:34px;height:34px;border-radius:10px;color:var(--text-muted)}.community-modal-head button:hover{color:var(--text-main)}.community-composer-user{display:flex;gap:10px;align-items:center;padding:16px 0 10px}.community-composer-user strong,.community-composer-user span{display:block}.community-composer-user strong{color:var(--text-main)}.community-composer-user span{font-size:.7rem;color:var(--text-muted);margin-top:2px}.community-select,.community-input{width:100%;border:1px solid var(--border-color);background:var(--secondary);color:var(--text-main);padding:11px 12px;border-radius:11px;outline:none;margin-bottom:10px}.community-select:focus,.community-input:focus{border-color:var(--primary)}.community-label{display:block;font-size:.75rem;font-weight:800;margin:12px 0 6px;color:var(--text-main)}.community-textarea{width:100%;min-height:190px;resize:vertical;border:1px solid var(--border-color);outline:0;background:var(--secondary);color:var(--text-main);border-radius:14px;padding:14px;font:inherit;line-height:1.55}.community-textarea-small{min-height:100px}.community-composer-tools{display:flex;gap:8px;margin-top:10px;padding:9px 0;border-top:1px solid var(--border-color)}.community-composer-tools button{border:0;background:transparent;color:var(--text-muted);padding:7px 9px;border-radius:9px;font-size:.75rem;font-weight:800;gap:6px}.community-composer-tools button:hover{background:var(--glow-primary);color:var(--primary)}.community-composer-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.community-composer-foot>span{font-size:.7rem;color:var(--text-muted)}.community-primary-btn.full{width:100%;margin-top:14px}.community-pending-files{display:grid;gap:8px;margin-top:10px}.community-upload-preview-head{display:flex;justify-content:space-between;align-items:center;padding:0 2px;color:var(--text-main);font-size:.78rem}.community-upload-preview-head span{color:var(--text-muted);font-size:.7rem}.community-upload-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:245px;overflow:auto;padding:2px}.community-upload-preview-item{position:relative;min-height:96px;border:1px solid var(--border-color);border-radius:13px;overflow:hidden;background:var(--secondary);box-shadow:var(--shadow-sm)}.community-upload-preview-item.is-image,.community-upload-preview-item.is-video{aspect-ratio:16/10}.community-upload-preview-item img,.community-upload-preview-item video{display:block;width:100%;height:100%;object-fit:cover}.community-upload-preview-item.is-video video{background:#000}.community-upload-preview-item.is-file{display:grid;place-items:center}.community-upload-file-icon{width:48px;height:48px;border-radius:14px;background:var(--glow-primary);color:var(--primary);display:grid;place-items:center;font-size:1.2rem}.community-upload-preview-overlay{position:absolute;left:0;right:0;bottom:0;padding:18px 9px 7px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;pointer-events:none}.community-upload-preview-overlay span,.community-upload-preview-overlay small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-upload-preview-overlay span{font-size:.69rem;font-weight:800}.community-upload-preview-overlay small{font-size:.6rem;opacity:.82;margin-top:2px}.community-upload-remove{position:absolute;top:6px;right:6px;width:28px;height:28px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(15,23,42,.72);color:#fff;display:grid;place-items:center;z-index:2;backdrop-filter:blur(8px)}.community-upload-remove:hover{background:rgba(239,68,68,.9);transform:scale(1.06)}
.community-story-create-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;margin-top:18px}.community-story-preview{height:440px;border-radius:18px;background:#0f172a;display:grid;place-items:center;overflow:hidden}.community-story-preview img,.community-story-preview video{width:100%;height:100%;object-fit:cover}.community-story-placeholder{display:grid;place-items:center;gap:9px;text-align:center;color:#94a3b8;padding:20px}.community-story-placeholder i{font-size:2rem}.community-story-create-side{display:flex;flex-direction:column}.community-story-create-side .community-composer-user{padding-top:0}.community-story-create-side input[type=file]{width:100%;padding:11px;border:1px dashed var(--border-color);border-radius:12px;background:var(--secondary);color:var(--text-main);font-size:.75rem;margin:8px 0 12px}.community-story-viewer-modal{padding:10px}.community-story-viewer-box{position:relative;width:min(470px,95vw);height:min(92vh,820px);display:flex;align-items:center;justify-content:center}.community-story-viewer-box #communityStoryViewerContent{width:100%;height:100%;border-radius:20px;overflow:hidden;background:#020617;box-shadow:0 25px 100px rgba(0,0,0,.55)}.community-story-viewer-head{position:absolute;z-index:3;top:14px;left:14px;right:14px;display:flex;align-items:center;gap:9px;color:#fff}.community-story-viewer-head .community-avatar{width:36px;height:36px;border:2px solid rgba(255,255,255,.8)}.community-story-viewer-head strong,.community-story-viewer-head span{display:block;text-shadow:0 1px 4px rgba(0,0,0,.5)}.community-story-viewer-head strong{font-size:.78rem}.community-story-viewer-head span{font-size:.62rem;opacity:.9}.community-story-viewer-head button{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:rgba(0,0,0,.35);color:#fff}.community-story-viewer-media{position:absolute;inset:0;display:grid;place-items:center}.community-story-viewer-media img,.community-story-viewer-media video{width:100%;height:100%;object-fit:contain;background:#020617}.community-story-caption{position:absolute;left:20px;right:20px;bottom:22px;background:rgba(0,0,0,.42);backdrop-filter:blur(8px);color:#fff;padding:10px 12px;border-radius:12px;font-size:.8rem;line-height:1.45}.community-story-nav{position:absolute;z-index:5;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.42);color:#fff;top:50%;transform:translateY(-50%)}.community-story-nav.prev{left:-55px}.community-story-nav.next{right:-55px}.community-story-delete{position:absolute;z-index:4;bottom:15px;right:15px;border:0;border-radius:10px;background:rgba(239,68,68,.88);color:#fff;padding:8px 11px;font-size:.7rem;font-weight:800;gap:6px}
.hidden{display:none!important}@keyframes communitySpin{to{transform:rotate(360deg)}}
@media(max-width:1180px){.community-shell{grid-template-columns:220px minmax(0,1fr)}.community-rightbar{display:none}}
@media(max-width:760px){.community-shell{grid-template-columns:1fr}.community-sidebar{position:static}.community-topbar{align-items:flex-start;flex-direction:column}.community-compose-btn{width:100%}.community-side-link{display:inline-flex;width:auto;margin-right:4px}.community-sidebar{padding:12px}.community-sidebar-title,.community-mini-groups{display:none}.community-create-group{margin-top:10px}.community-profile-card{padding-bottom:10px}.community-groups-header{align-items:flex-start;flex-direction:column}.community-directory-card{grid-template-columns:48px minmax(0,1fr);padding:12px}.community-directory-icon{width:48px;height:48px;font-size:1.1rem}.community-directory-status{grid-column:2;justify-self:start}.community-story-create-layout{grid-template-columns:1fr}.community-story-preview{height:360px}.community-story-nav.prev{left:8px}.community-story-nav.next{right:8px}.community-modal{padding:10px}.community-modal-box{padding:14px;border-radius:18px}.community-story-viewer-box{height:90vh}}


/* VACSTUDY COMMUNITY — PREMIUM UI PATCH */
#communityScreen{--community-card:var(--surface-color);color:var(--text-main)}
.community-shell{grid-template-columns:260px minmax(0,1fr) 300px;gap:22px;max-width:1540px;margin:0 auto}
.community-sidebar,.community-widget,.community-stories-panel,.community-post,.community-directory-card,.community-group-search,.community-groups-header{background:var(--community-card)!important;border-color:var(--border-color)!important;box-shadow:var(--shadow-sm)}
.community-sidebar{border-radius:24px;padding:18px;top:24px}
.community-profile-card{padding:10px 8px 18px}
.community-avatar{position:relative;width:46px;height:46px;border-radius:15px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#eaf2ff,#dbeafe);color:#2563eb;border:1px solid rgba(37,99,235,.14);box-shadow:0 5px 16px rgba(37,99,235,.10)}
.community-avatar img{width:100%;height:100%;display:block;object-fit:cover}.community-avatar span{line-height:1}
:root[data-theme="dark"] .community-avatar{background:linear-gradient(145deg,#15233d,#1e3559);color:#93c5fd;border-color:rgba(96,165,250,.22);box-shadow:0 8px 22px rgba(0,0,0,.25)}
.community-side-link{min-height:46px;border:1px solid transparent;transition:transform .22s ease,background .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease}.community-side-link:hover{transform:translateX(2px)}
.community-side-link.active{background:linear-gradient(135deg,var(--glow-primary),transparent)!important;border-color:rgba(37,99,235,.12);box-shadow:inset 3px 0 0 var(--primary)}
.community-topbar{align-items:center;margin:4px 0 20px}.community-topbar h1,.community-groups-header h2{letter-spacing:-.035em;font-size:clamp(1.8rem,2.4vw,2.35rem)}.community-topbar p,.community-groups-header p{font-size:.94rem}
.community-compose-btn,.community-primary-btn{min-height:46px;padding:0 18px;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary-hover));box-shadow:0 10px 26px var(--glow-primary)}
.community-compose-btn:hover,.community-primary-btn:hover{transform:translateY(-2px);box-shadow:0 15px 32px var(--glow-primary)}
.community-stories-panel{border-radius:22px;padding:16px}.community-story-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.community-story-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.community-group-chip{transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease}.community-group-chip:hover{transform:translateY(-1px)}
.community-post{border-radius:22px;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.community-post:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}
.community-post-head{padding:18px 20px 10px}.community-author{gap:12px}.community-author .community-avatar{width:44px;height:44px;border-radius:14px}.community-author strong{font-size:.92rem}
.community-post-body{font-size:.95rem;line-height:1.72;padding:8px 20px 16px}.community-actions{background:color-mix(in srgb,var(--surface-color) 92%,var(--secondary));padding:8px 14px}
.community-action{min-height:38px;transition:background .18s ease,color .18s ease,transform .18s ease}.community-action:hover{transform:translateY(-1px)}
.community-widget{border-radius:20px;padding:17px}.community-all-group{background:linear-gradient(145deg,var(--secondary),var(--surface-color));border:1px solid var(--border-color)}
.community-tip{display:none!important}.community-rightbar{gap:16px}.community-empty{border:1px dashed var(--border-color)!important;background:var(--surface-color)!important;border-radius:22px;min-height:220px;display:grid;place-items:center;align-content:center;gap:7px;color:var(--text-muted);text-align:center}.community-empty i{font-size:1.8rem;color:var(--primary);opacity:.8}.community-empty strong{font-size:1rem;color:var(--text-main)}
.community-group-search{border-radius:18px;padding:0 16px}.community-group-search input{background:transparent!important;color:var(--text-main)!important}
.community-directory-card{border-radius:20px!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.community-directory-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--primary)!important}
.community-modal-box{background:var(--surface-color)!important;color:var(--text-main)!important;border-color:var(--border-color)!important;box-shadow:0 28px 80px rgba(0,0,0,.25)}.community-textarea,.community-select{background:var(--surface-color)!important;color:var(--text-main)!important;border-color:var(--border-color)!important}
:root[data-theme="dark"] #communityScreen{background:transparent}:root[data-theme="dark"] .community-all-group{background:linear-gradient(145deg,#172033,#111827)}:root[data-theme="dark"] .community-actions{background:rgba(17,24,39,.72)}
@media (max-width:1200px){.community-shell{grid-template-columns:230px minmax(0,1fr)}.community-rightbar{display:none}}
@media (max-width:800px){.community-shell{display:block}.community-sidebar{position:relative;top:auto;margin-bottom:14px}.community-topbar{align-items:flex-start}.community-topbar h1,.community-groups-header h2{font-size:1.65rem}}
@media (max-width:560px){.community-topbar{display:block}.community-compose-btn{width:100%;margin-top:12px}.community-post-head{padding:15px 14px 8px}.community-post-body{padding:8px 14px 14px}.community-post-attachments{padding-left:14px;padding-right:14px}.community-actions{overflow-x:auto}}
@media (prefers-reduced-motion:reduce){.community-post,.community-side-link,.community-story-card,.community-directory-card,.community-action{transition:none!important}}

/* =========================================================
   VACSTUDY SOCIAL V3 — PROFILE / FRIENDS / BADGES
   ========================================================= */
.profile-route-root,.friend-route-root{max-width:1180px;margin:0 auto;padding:24px}
.profile-page-card,.friend-page-card{border:1px solid var(--border-color);border-radius:28px;background:var(--surface-color);box-shadow:var(--shadow-lg);overflow:hidden}
.profile-cover{height:230px;background:linear-gradient(135deg,#111827,#2563eb 55%,#f59e0b);position:relative}
.profile-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),transparent 55%)}
.profile-head{position:relative;padding:0 34px 26px;display:flex;align-items:flex-end;gap:22px;min-height:150px}
.profile-avatar-xl{width:132px;height:132px;border-radius:32px;border:6px solid var(--surface-color);background:var(--secondary);display:grid;place-items:center;font-size:3rem;font-weight:900;color:var(--primary);overflow:hidden;flex:0 0 auto;position:relative;margin-top:-66px;z-index:2}
.profile-avatar-xl img{width:100%;height:100%;object-fit:cover}
.profile-head-info{min-width:0;flex:1;padding-bottom:4px}.profile-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-name-row h1{font-size:2rem;line-height:1.1;margin:0;color:var(--text-main)}.profile-handle{color:var(--text-muted);margin-top:6px;font-size:.95rem}.profile-school{color:var(--text-muted);font-size:.92rem;margin-top:8px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:5px}
.profile-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:20px;padding:0 34px 34px}.profile-section{border:1px solid var(--border-color);border-radius:20px;padding:22px;background:var(--secondary)}.profile-section h3{margin-bottom:12px}.profile-badges{display:flex;flex-wrap:wrap;gap:8px}.profile-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;font-weight:800;font-size:.78rem;border:1px solid var(--border-color);background:var(--surface-color)}.profile-badge.verified{color:#1877f2;border-color:rgba(24,119,242,.28);background:rgba(24,119,242,.10)}.profile-badge.gold{color:#d99b00}.profile-badge.creator{color:#a855f7}.profile-badge.contributor{color:#16a34a}.profile-badge.excellent{color:#2563eb}
.profile-form{display:grid;gap:14px}.profile-form label{font-weight:800;font-size:.86rem}.profile-form input,.profile-form textarea,.profile-form select{width:100%;padding:12px 14px;border:1px solid var(--border-color);border-radius:12px;background:var(--surface-color)}.profile-form textarea{min-height:100px;resize:vertical}.profile-avatar-edit{width:110px;height:110px;border-radius:28px;overflow:hidden;background:var(--secondary);border:2px dashed var(--primary);display:grid;place-items:center;color:var(--primary);font-size:2rem;font-weight:900;cursor:pointer}.profile-avatar-edit img{width:100%;height:100%;object-fit:cover}.profile-url-box{padding:12px 14px;border-radius:12px;background:var(--secondary);border:1px solid var(--border-color);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all;color:var(--primary)}.profile-admin-panel{border:1px solid rgba(245,158,11,.35)!important;background:rgba(245,158,11,.06)!important}.profile-search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.profile-result-list{display:grid;gap:10px;margin-top:14px}.profile-result{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border-color);border-radius:16px;background:var(--surface-color)}.profile-result-info{flex:1;min-width:0}.profile-result-info strong{display:block}.profile-result-info span{display:block;color:var(--text-muted);font-size:.82rem;margin-top:3px}
.friend-page-card{padding:34px;max-width:820px;margin:30px auto}.friend-hero{text-align:center;padding:20px 10px 28px}.friend-hero .icon{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;margin:0 auto 14px;background:var(--glow-primary);color:var(--primary);font-size:1.8rem}.friend-result-card{margin-top:18px;border:1px solid var(--border-color);border-radius:20px;padding:18px;display:flex;align-items:center;gap:14px;background:var(--secondary)}.friend-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.social-author-link{display:inline-flex!important;align-items:center;gap:10px;background:transparent!important;color:inherit!important;padding:0!important;text-align:left}.social-author-link:hover .social-author-name{text-decoration:underline}.social-author-name{font-weight:850}.social-verified{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#1877f2;color:#fff;font-size:10px}.social-badges-inline{display:inline-flex;gap:4px;flex-wrap:wrap;margin-left:4px}.social-mini-badge{font-size:.68rem;padding:2px 6px;border-radius:999px;background:var(--secondary);color:var(--text-muted);border:1px solid var(--border-color);font-weight:800}
.community-story-uploading{display:grid;place-items:center;min-height:150px;background:var(--secondary);color:var(--text-muted);padding:16px;text-align:center}
@media(max-width:900px){.profile-body{grid-template-columns:1fr}.profile-head{align-items:flex-start;flex-direction:column;padding-top:20px}.profile-actions{width:100%}.profile-avatar-xl{margin-top:-72px}.friend-page-card{margin:10px}.profile-route-root{padding:12px}}
@media(max-width:600px){.profile-cover{height:170px}.profile-head{padding:0 18px 20px}.profile-body{padding:0 18px 20px}.profile-name-row h1{font-size:1.55rem}.profile-avatar-xl{width:104px;height:104px;border-radius:26px}.profile-search-row{grid-template-columns:1fr}.friend-result-card{align-items:flex-start;flex-wrap:wrap}.friend-result-actions{width:100%;margin-left:0}}
.profile-avatar-edit-inner{width:100%;height:100%;display:grid;place-items:center;overflow:hidden}.profile-avatar-edit-inner img{width:100%;height:100%;object-fit:cover}
/* VACSTUDY SOCIAL V3 — friend shortcut, larger Facebook-style avatars, sharing */
.community-add-friend-link{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:10px;padding:12px 13px;border:1px solid rgba(37,99,235,.45);border-radius:12px;background:var(--glow-primary);color:var(--primary);font-weight:850}.community-add-friend-link:hover{background:var(--primary);color:#fff;transform:translateY(-1px)}
.profile-avatar-xl{width:var(--profile-avatar-size,180px);height:var(--profile-avatar-size,180px);border-radius:36px}
.profile-avatar-edit{width:160px;height:160px;border-radius:34px}
.profile-avatar-size-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border-color);border-radius:14px;background:var(--secondary)}
.profile-avatar-size-row input[type="range"]{width:100%;accent-color:var(--primary);box-shadow:none!important}
.profile-avatar-size-value{min-width:58px;text-align:center;font-weight:850;color:var(--primary)}
.profile-activity-list{display:grid;gap:14px}
.profile-activity-card{border:1px solid var(--border-color);border-radius:18px;background:var(--surface-color);overflow:hidden}
.profile-activity-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border-color)}
.profile-activity-head .community-avatar{width:42px;height:42px;border-radius:12px}
.profile-activity-meta{min-width:0}.profile-activity-meta strong{display:block}.profile-activity-meta span{display:block;color:var(--text-muted);font-size:.76rem;margin-top:2px}
.profile-share-note{display:flex;align-items:center;gap:7px;padding:11px 16px 0;color:var(--primary);font-size:.8rem;font-weight:800}
.profile-activity-body{padding:12px 16px 16px;white-space:pre-wrap;word-break:break-word}
.profile-activity-media{padding:0 16px 16px;display:grid;gap:10px}.profile-activity-media img,.profile-activity-media video{width:100%;max-height:520px;object-fit:contain;border-radius:14px;background:var(--secondary)}
.profile-share-actions{display:flex;gap:8px;padding:0 16px 16px}
.profile-share-actions button{border:1px solid var(--border-color);background:var(--secondary);color:var(--text-main);padding:8px 11px;border-radius:10px;font-weight:800}
@media(max-width:600px){.profile-avatar-xl{width:132px;height:132px;border-radius:28px}.profile-avatar-edit{width:132px;height:132px}.profile-avatar-size-row{grid-template-columns:1fr}.profile-avatar-size-value{justify-self:end}}

/* VACSTUDY cleanup: removed friend shortcut and avatar-size controls from the public UI. */
.community-add-friend-link,.profile-avatar-size-row,.profile-avatar-size-value{display:none!important}
.social-verified{width:19px;height:19px;min-width:19px;height:19px;border-radius:50%;background:#1877f2;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;box-shadow:0 0 0 1px rgba(24,119,242,.18);margin-left:5px;vertical-align:middle;flex:0 0 auto}

/* VACSTUDY Facebook-style verified + follow */
.social-name-line{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  flex-wrap:nowrap;
  vertical-align:middle;
  line-height:1.2;
}
.social-name-line .social-author-name{display:inline!important;line-height:1.2}
.social-verified{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#1877f2!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:none!important;
  vertical-align:middle!important;
  flex:0 0 20px!important;
}
.social-verified i{
  font-size:10px!important;
  line-height:1!important;
  margin:0!important;
}
.profile-name-row{
  gap:7px!important;
  align-items:center!important;
}
.profile-name-row .profile-verified{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  flex-basis:22px!important;
  font-size:12px!important;
}
.profile-follow-stats{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--text-muted);
  font-size:.9rem;
}
.profile-follow-stats strong{
  color:var(--text-main);
  font-weight:850;
}
.profile-follow-btn{
  min-width:132px;
  justify-content:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:all .18s ease;
}
.profile-follow-btn.following{
  background:var(--secondary)!important;
  color:var(--text-main)!important;
  border:1px solid var(--border-color)!important;
  box-shadow:none!important;
}
.profile-follow-btn.following:hover{
  border-color:#1877f2!important;
  color:#1877f2!important;
}
.profile-head-info .profile-name-row h1{
  display:inline-block;
}


/* VACSTUDY FOLLOW LIST — Facebook-style, names only */
.profile-follow-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.profile-follow-stat{border:0;background:transparent;color:var(--text-muted);padding:0;cursor:pointer;font:inherit;text-align:left}
.profile-follow-stat:hover strong,.profile-follow-stat:hover span{color:var(--primary);text-decoration:underline}
.profile-follow-stat strong,.profile-follow-stat span{color:var(--text-main);font-weight:850}
.profile-follow-modal{position:fixed;inset:0;z-index:10050;display:none}
.profile-follow-modal.open{display:block}
.social-follow-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
.social-follow-modal-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 36px));overflow:hidden;background:var(--surface-color);border:1px solid var(--border-color);border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.35);display:flex;flex-direction:column}
.social-follow-modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border-color)}
.social-follow-modal-head strong{font-size:1.05rem;color:var(--text-main)}
.social-follow-modal-head button{width:34px;height:34px;border:0;border-radius:50%;background:var(--secondary);color:var(--text-muted);display:grid;place-items:center;cursor:pointer}
.social-follow-modal-head button:hover{color:var(--text-main)}
.social-follow-tabs{display:flex;border-bottom:1px solid var(--border-color);padding:0 10px}
.social-follow-tabs button{flex:1;border:0;background:transparent;color:var(--text-muted);font-weight:800;padding:12px 8px;cursor:pointer;border-bottom:3px solid transparent}
.social-follow-tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}
.social-follow-list-body{overflow:auto;padding:8px 10px 14px;min-height:180px}
.social-follow-person{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--text-main);padding:10px 8px;border-radius:12px;text-align:left;cursor:pointer}
.social-follow-person:hover{background:var(--secondary)}
.social-follow-person .community-avatar,.social-follow-person .profile-avatar-xl{width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%!important}
.social-follow-person-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.social-follow-person-info strong{font-size:.9rem;display:flex;align-items:center;gap:6px;color:var(--text-main)}
.social-follow-person-info small{font-size:.7rem;color:var(--text-muted)}
.social-follow-empty,.social-follow-loading{text-align:center;padding:42px 18px;color:var(--text-muted)}
.social-follow-error{color:var(--danger,#ef4444)}
@media(max-width:600px){.social-follow-modal-box{width:calc(100vw - 16px);max-height:calc(100vh - 18px);border-radius:16px}.social-follow-list-body{padding-left:6px;padding-right:6px}}

/* =========================================================
   VACSTUDY SOCIAL — GEN Z PROFILE REFRESH
   ========================================================= */
@keyframes vacProfileFloat{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,-6px,0) scale(1.012)}
}
@keyframes vacProfileShimmer{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes vacProfileGlow{
  0%,100%{opacity:.35;transform:scale(1)}
  50%{opacity:.72;transform:scale(1.08)}
}
@keyframes vacVerifiedPop{
  from{transform:scale(.72) rotate(-12deg);opacity:.2}
  to{transform:scale(1) rotate(0);opacity:1}
}
.profile-route-root{
  max-width:1240px!important;
  padding:30px 24px 70px!important;
  animation:vacProfileFloat .65s ease both;
}
.profile-page-card{
  position:relative;
  border-radius:30px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 34%),var(--surface-color)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.30)!important;
  overflow:hidden;
  isolation:isolate;
}
.profile-page-card::before{
  content:"";position:absolute;inset:-30%;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 18% 18%,rgba(37,99,235,.14),transparent 28%),
             radial-gradient(circle at 82% 22%,rgba(245,158,11,.10),transparent 25%);
  animation:vacProfileGlow 7s ease-in-out infinite;
}
.profile-cover{
  height:280px!important;
  background:linear-gradient(120deg,#0b1224,#1747a8 38%,#2563eb 58%,#b66b14 100%)!important;
  background-size:220% 220%!important;
  animation:vacProfileShimmer 10s ease-in-out infinite;
}
.profile-cover::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 15% 30%,rgba(255,255,255,.20) 0 2px,transparent 3px),
    radial-gradient(circle at 75% 25%,rgba(255,255,255,.16) 0 1.5px,transparent 3px),
    radial-gradient(circle at 52% 78%,rgba(255,255,255,.12) 0 2px,transparent 3px);
  background-size:90px 90px,130px 130px,110px 110px;
  opacity:.55;
}
.profile-cover::after{
  background:linear-gradient(to top,rgba(0,0,0,.82),rgba(0,0,0,.04) 72%)!important;
}
.profile-head{
  padding:0 42px 28px!important;
  gap:24px!important;
  min-height:176px!important;
}
.profile-avatar-xl{
  width:148px!important;height:148px!important;
  margin-top:-74px!important;
  border-radius:38px!important;
  border:7px solid var(--surface-color)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.12)!important;
  transition:transform .28s ease,box-shadow .28s ease!important;
}
.profile-avatar-xl:hover{
  transform:translateY(-7px) rotate(-1deg)!important;
  box-shadow:0 25px 55px rgba(0,0,0,.38),0 0 0 1px rgba(96,165,250,.35)!important;
}
.profile-head-info .profile-name-row h1{
  font-size:clamp(2rem,4vw,3rem)!important;
  letter-spacing:-.045em;
}
.profile-handle{
  font-size:.86rem!important;
  opacity:.78;
}
.profile-school{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border:1px solid var(--border-color);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  margin-top:10px!important;
}
.profile-follow-stats{
  gap:9px!important;
  margin-top:15px!important;
}
.profile-follow-stat{
  display:inline-flex!important;
  align-items:baseline;
  gap:5px;
  padding:9px 13px!important;
  border:1px solid var(--border-color)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.025)!important;
  transition:transform .2s ease,border-color .2s ease,background .2s ease!important;
}
.profile-follow-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(59,130,246,.55)!important;
  background:rgba(59,130,246,.08)!important;
  text-decoration:none!important;
}
.profile-follow-stat strong{font-size:.95rem!important}
.profile-follow-stat span{font-size:.78rem;color:var(--text-muted)!important;font-weight:700!important}
.profile-actions{padding-bottom:8px!important}
.profile-follow-btn{
  min-width:158px!important;
  min-height:46px!important;
  border-radius:14px!important;
  font-weight:900!important;
  box-shadow:0 10px 28px rgba(37,99,235,.22)!important;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important;
}
.profile-follow-btn:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 16px 35px rgba(37,99,235,.28)!important;
}
.profile-follow-btn.following{
  background:rgba(255,255,255,.075)!important;
  color:var(--text-main)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 25px rgba(0,0,0,.12)!important;
}
.profile-follow-btn.following:hover{
  color:#60a5fa!important;
  border-color:rgba(96,165,250,.55)!important;
  background:rgba(59,130,246,.09)!important;
}
.profile-follow-btn.following i{color:#60a5fa}
.profile-name-row .profile-verified,
.social-verified.profile-verified{
  width:23px!important;height:23px!important;min-width:23px!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#60a5fa,#1877f2 58%,#0757c9)!important;
  border:2px solid var(--surface-color)!important;
  box-shadow:0 5px 14px rgba(24,119,242,.36),0 0 0 1px rgba(96,165,250,.25)!important;
  font-size:11px!important;
  animation:vacVerifiedPop .35s ease both;
}
.profile-name-row .profile-verified i{font-size:11px!important;color:#fff!important}
.profile-body{padding:0 42px 42px!important;gap:24px!important}
.profile-section{
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008)),var(--secondary)!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}
.profile-section:hover{
  transform:translateY(-2px);
  border-color:rgba(96,165,250,.18)!important;
  box-shadow:0 12px 35px rgba(0,0,0,.10);
}

/* New dedicated follower/following pages — no black text-selection/modal look. */
.follow-route-page{
  max-width:820px;
  margin:0 auto;
  padding:34px 20px 80px;
  animation:vacProfileFloat .5s ease both;
}
.follow-route-hero{
  display:flex;align-items:center;gap:16px;margin-bottom:18px;
}
.follow-back-btn{
  width:46px;height:46px;border:1px solid var(--border-color);
  border-radius:15px;background:var(--secondary);color:var(--text-main);
  display:grid;place-items:center;cursor:pointer;transition:.2s ease;
}
.follow-back-btn:hover{transform:translateX(-3px);border-color:var(--primary);color:var(--primary)}
.follow-route-eyebrow{
  color:var(--primary);font-size:.72rem;font-weight:900;letter-spacing:.12em;
  text-transform:uppercase;margin-bottom:5px;
}
.follow-route-hero h1{margin:0;font-size:clamp(1.8rem,4vw,2.55rem);letter-spacing:-.04em}
.follow-route-hero p{margin:5px 0 0;color:var(--text-muted);font-size:.9rem}
.follow-route-card{
  border:1px solid var(--border-color);border-radius:24px;
  background:var(--surface-color);box-shadow:0 22px 65px rgba(0,0,0,.22);overflow:hidden;
}
.follow-route-card-head{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:19px 20px;border-bottom:1px solid var(--border-color);
}
.follow-route-card-head strong{display:block;font-size:1rem}
.follow-route-card-head span:not(.follow-route-pill){display:block;margin-top:3px;color:var(--text-muted);font-size:.78rem}
.follow-route-pill{
  display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;
  background:rgba(37,99,235,.10);color:#60a5fa;border:1px solid rgba(96,165,250,.2);
  font-size:.72rem;font-weight:850;
}
.follow-route-list{padding:8px}
.follow-person-row{
  width:100%;display:flex;align-items:center;gap:13px;
  padding:12px;border:1px solid transparent;border-radius:16px;
  background:transparent;color:var(--text-main);text-align:left;cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.follow-person-row:hover{
  transform:translateX(3px);
  background:rgba(59,130,246,.075);
  border-color:rgba(96,165,250,.16);
}
.follow-person-row .community-avatar{
  width:50px!important;height:50px!important;min-width:50px!important;border-radius:16px!important;
}
.follow-person-main{min-width:0;flex:1}
.follow-person-main strong{
  display:flex;align-items:center;gap:7px;font-size:.92rem;
}
.follow-person-main small{display:block;margin-top:4px;color:var(--text-muted);font-size:.72rem}
.follow-row-arrow{color:var(--text-muted);padding-right:5px;transition:transform .18s ease}
.follow-person-row:hover .follow-row-arrow{transform:translateX(3px);color:var(--primary)}
.follow-list-verified{
  width:18px;height:18px;display:inline-grid;place-items:center;border-radius:50%;
  background:linear-gradient(145deg,#60a5fa,#1877f2);color:#fff;font-size:9px;
  box-shadow:0 4px 10px rgba(24,119,242,.25);
}
.follow-route-loading,.follow-route-empty{
  min-height:250px;display:grid;place-items:center;text-align:center;padding:45px 20px;color:var(--text-muted);
}
.follow-route-loading{display:flex;flex-direction:column;gap:12px}
.follow-route-loading i{font-size:1.5rem;color:var(--primary)}
.follow-route-empty{align-content:center;gap:7px}
.follow-empty-icon{
  width:62px;height:62px;border-radius:20px;display:grid;place-items:center;
  background:rgba(59,130,246,.10);color:var(--primary);font-size:1.3rem;margin-bottom:4px;
}
.follow-route-empty strong{color:var(--text-main);font-size:1rem}
.follow-route-empty span{font-size:.8rem}
.follow-route-error .follow-empty-icon{color:var(--danger,#ef4444);background:rgba(239,68,68,.08)}

@media(max-width:760px){
  .profile-route-root{padding:15px 10px 55px!important}
  .profile-cover{height:205px!important}
  .profile-head{padding:0 18px 22px!important;display:grid!important;grid-template-columns:auto 1fr!important;gap:14px!important}
  .profile-avatar-xl{width:105px!important;height:105px!important;margin-top:-52px!important;border-radius:28px!important}
  .profile-head-info{padding:0!important;align-self:end}
  .profile-head-info .profile-name-row h1{font-size:1.65rem!important}
  .profile-actions{grid-column:1/-1;padding:0!important}
  .profile-follow-btn{width:100%!important}
  .profile-body{padding:0 18px 22px!important;grid-template-columns:1fr!important}
  .follow-route-page{padding:20px 10px 60px}
  .follow-route-card-head{align-items:flex-start;flex-direction:column}
  .follow-route-pill{display:none}
}
@media(prefers-reduced-motion:reduce){
  .profile-route-root,.profile-cover,.profile-page-card::before,.profile-name-row .profile-verified{animation:none!important}
  .profile-avatar-xl,.profile-follow-stat,.profile-follow-btn,.follow-person-row{transition:none!important}
}


/* =========================================================
   VACSTUDY PROFILE — GEN Z / VIP MOTION LAYER
   Visual-only enhancement. Keeps the existing DOM and data model.
   ========================================================= */
@keyframes vacProfileAurora{
  0%,100%{transform:translate3d(-3%,0,0) scale(1);opacity:.52}
  50%{transform:translate3d(5%,3%,0) scale(1.08);opacity:.82}
}
@keyframes vacProfileGridDrift{
  from{background-position:0 0,0 0,50% 50%}
  to{background-position:90px 70px,-70px 55px,50% 50%}
}
@keyframes vacProfileAvatarHalo{
  0%,100%{box-shadow:0 18px 42px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.12),0 0 0 0 rgba(59,130,246,0)}
  50%{box-shadow:0 24px 55px rgba(0,0,0,.38),0 0 0 1px rgba(147,197,253,.28),0 0 0 13px rgba(59,130,246,.045)}
}
@keyframes vacProfileBadgeShine{
  0%{transform:translateX(-140%) rotate(18deg)}
  55%,100%{transform:translateX(180%) rotate(18deg)}
}
@keyframes vacProfileCardIn{
  from{opacity:0;transform:translateY(14px) scale(.992)}
  to{opacity:1;transform:none}
}
@keyframes vacProfileNameGlow{
  0%,100%{filter:drop-shadow(0 0 0 rgba(59,130,246,0))}
  50%{filter:drop-shadow(0 0 16px rgba(59,130,246,.10))}
}
.profile-route-root{
  position:relative;
  isolation:isolate;
}
.profile-route-root::before,
.profile-route-root::after{
  content:"";
  position:fixed;
  width:360px;height:360px;
  border-radius:50%;
  pointer-events:none;
  z-index:-2;
  filter:blur(70px);
  opacity:.22;
}
.profile-route-root::before{
  left:-130px;top:120px;
  background:radial-gradient(circle,rgba(37,99,235,.75),transparent 68%);
  animation:vacProfileAurora 9s ease-in-out infinite;
}
.profile-route-root::after{
  right:-150px;top:420px;
  background:radial-gradient(circle,rgba(168,85,247,.5),transparent 68%);
  animation:vacProfileAurora 11s ease-in-out infinite reverse;
}
.profile-page-card{
  border:1px solid rgba(148,163,184,.16)!important;
  animation:vacProfileCardIn .7s cubic-bezier(.16,1,.3,1) both;
}
.profile-head,.profile-body{position:relative;z-index:2}
.profile-page-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  border-radius:inherit;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.055) 46%,transparent 53%);
  background-size:240% 100%;
  animation:vacProfileShimmer 8s ease-in-out infinite;
  mix-blend-mode:screen;
}
.profile-cover{
  position:relative!important;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%,rgba(96,165,250,.42),transparent 25%),
    radial-gradient(circle at 82% 18%,rgba(168,85,247,.30),transparent 24%),
    linear-gradient(125deg,#050b18 0%,#0d1b3d 32%,#1649b7 58%,#27115b 82%,#050814 100%)!important;
  background-size:140% 140%!important;
  animation:vacProfileShimmer 11s ease-in-out infinite;
}
.profile-cover::before{
  background-image:
    radial-gradient(circle,rgba(255,255,255,.28) 0 1px,transparent 1.8px),
    linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px)!important;
  background-size:76px 76px,38px 38px,38px 38px!important;
  opacity:.45!important;
  animation:vacProfileGridDrift 15s linear infinite;
}
.profile-cover::after{
  background:
    radial-gradient(circle at 50% 0%,rgba(96,165,250,.14),transparent 48%),
    linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,.08) 70%)!important;
}
.profile-avatar-xl{
  animation:vacProfileAvatarHalo 5s ease-in-out infinite;
  background:linear-gradient(145deg,var(--surface-color),var(--secondary))!important;
}
.profile-avatar-xl img{
  transition:transform .5s cubic-bezier(.16,1,.3,1),filter .35s ease;
}
.profile-avatar-xl:hover img{transform:scale(1.055);filter:saturate(1.08) contrast(1.03)}
.profile-head-info .profile-name-row h1{
  animation:vacProfileNameGlow 4.5s ease-in-out infinite;
  background:linear-gradient(100deg,var(--text-main) 0%,#fff 48%,#93c5fd 70%,var(--text-main) 100%);
  background-size:220% auto;
  -webkit-background-clip:text;background-clip:text;color:transparent!important;
  animation-name:vacProfileShimmer;
  animation-duration:7s;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
}
.profile-name-row .profile-verified,
.social-verified.profile-verified{
  position:relative;
  overflow:hidden;
}
.profile-name-row .profile-verified::after,
.social-verified.profile-verified::after{
  content:"";position:absolute;top:-40%;left:0;width:35%;height:180%;
  background:rgba(255,255,255,.7);filter:blur(3px);
  animation:vacProfileBadgeShine 3.6s ease-in-out infinite;
}
.profile-follow-stat{
  position:relative;
  overflow:hidden;
}
.profile-follow-stat::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 20%,rgba(96,165,250,.10) 48%,transparent 70%);
  transform:translateX(-100%);
  transition:transform .6s ease;
}
.profile-follow-stat:hover::before{transform:translateX(100%)}
.profile-body .profile-section:nth-child(1){animation:vacProfileCardIn .65s .08s both}
.profile-body .profile-section:nth-child(2){animation:vacProfileCardIn .65s .16s both}
.profile-body .profile-section:nth-child(3){animation:vacProfileCardIn .65s .24s both}
.profile-body .profile-section:nth-child(4){animation:vacProfileCardIn .65s .32s both}
.profile-activity-card{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important}
.profile-activity-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(0,0,0,.18);border-color:rgba(96,165,250,.25)!important}
.profile-badge{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important}
.profile-badge:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.12)}
@media(prefers-reduced-motion:reduce){
  .profile-route-root::before,.profile-route-root::after,.profile-page-card,.profile-cover,.profile-avatar-xl,
  .profile-head-info .profile-name-row h1,.profile-name-row .profile-verified::after,.social-verified.profile-verified::after,
  .profile-body .profile-section{animation:none!important}
}

/* V8 MEDIA COMPOSER — preview ảnh/video trực tiếp, giao diện gọn như mạng xã hội */
.community-post-composer-box{width:min(720px,calc(100vw - 28px));max-height:min(92vh,820px);overflow:auto;border-radius:22px!important;padding:0!important}
.community-post-composer-box .community-modal-head{position:sticky;top:0;z-index:4;background:var(--surface-color);padding:17px 20px;border-bottom:1px solid var(--border-color);margin:0}
.community-post-composer-box .community-composer-user{padding:17px 20px 8px;align-items:center}
.community-composer-user-meta{min-width:0}.community-composer-user-meta strong,.community-composer-user-meta span{display:block}.community-composer-user-meta strong{font-size:.92rem}.community-composer-user-meta span{font-size:.7rem;color:var(--text-muted);margin-top:2px}
.community-post-composer-box .community-select{margin:0 20px 6px;width:calc(100% - 40px);font-weight:700}
.community-post-textarea{min-height:125px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:12px 20px!important;font-size:1rem!important;resize:none}
.community-post-textarea:focus{outline:0}
.community-post-composer-box .community-composer-tools{margin:0 20px;padding:9px 0;border-top:1px solid var(--border-color);display:flex;gap:8px}
.community-post-composer-box .community-composer-tools button{flex:1;justify-content:center;border:1px solid var(--border-color);border-radius:12px;background:var(--secondary);padding:10px 12px;font-weight:800}
.community-post-composer-box .community-composer-tools button:hover{border-color:var(--primary);color:var(--primary);background:var(--glow-primary);transform:translateY(-1px)}
.community-post-composer-box .community-composer-foot{padding:10px 20px 17px;border-top:1px solid var(--border-color)}
.community-post-composer-box .community-submit-post{width:100%;justify-content:center}
.community-post-composer-box .community-avatar{width:44px;height:44px;border-radius:50%}
@media(max-width:560px){.community-upload-preview-grid{grid-template-columns:1fr}.community-post-composer-box .community-composer-tools{gap:5px}.community-post-composer-box .community-composer-tools button span{display:none}.community-post-composer-box .community-composer-tools button{font-size:1rem}.community-post-attachments.media-count-2,.community-post-attachments.media-count-3,.community-post-attachments.media-count-4,.community-post-attachments.media-count-5,.community-post-attachments.media-count-6{grid-template-columns:1fr}.community-post-attachments.media-count-3 .community-attachment-image:first-child,.community-post-attachments.media-count-3 .community-attachment-video-wrap:first-child{grid-row:auto}}

/* VACSTUDY direct share-link action — additive */
.community-actions .vac-direct-share-link{color:var(--primary);font-weight:850;position:relative}
.community-actions .vac-direct-share-link:hover{background:var(--glow-primary);color:var(--primary)}
@media(max-width:560px){.community-actions .vac-direct-share-link{flex:0 0 auto}}

/* VACSTUDY SOCIAL PROFILE UPGRADE — additive */
.social-profile-modern{overflow:hidden}.social-profile-cover{height:260px;background:radial-gradient(circle at 75% 20%,rgba(59,130,246,.55),transparent 30%),linear-gradient(135deg,#0b1220 0%,#123b87 55%,#2563eb 100%);display:flex;align-items:flex-end;padding:28px 34px}.social-cover-brand{font-size:1.05rem;font-weight:900;letter-spacing:.22em;color:#fff;opacity:.92}.social-profile-head{padding-bottom:22px}.social-profile-head .profile-avatar-xl{border-radius:36px}.profile-role-line{margin-top:8px;color:var(--text-muted);font-size:.9rem}.social-profile-tabs{display:flex;gap:2px;padding:0 28px;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);background:var(--surface-color);overflow:auto}.social-profile-tabs button{border:0;background:transparent;color:var(--text-muted);padding:16px 18px;font-weight:900;white-space:nowrap;cursor:pointer;position:relative}.social-profile-tabs button.active{color:var(--primary)}.social-profile-tabs button.active::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px;background:var(--primary)}.social-profile-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr);gap:20px;padding:24px 28px 32px}.social-profile-main{min-width:0}.social-profile-panel{display:none}.social-profile-panel.active{display:block}.social-panel-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:14px}.social-panel-kicker{font-size:.68rem;font-weight:900;letter-spacing:.13em;color:var(--primary)}.social-panel-head h2{margin:3px 0 0;font-size:1.35rem}.social-count-badge{padding:7px 10px;border-radius:999px;background:var(--glow-primary);color:var(--primary);font-size:.75rem;font-weight:900}.social-profile-side{display:grid;gap:14px;align-content:start}.social-side-card{border:1px solid var(--border-color);border-radius:18px;background:var(--secondary);padding:18px}.social-side-title{display:flex;justify-content:space-between;align-items:center;font-weight:900;margin-bottom:10px}.social-side-title i{color:var(--primary)}.social-side-card p{color:var(--text-muted);line-height:1.6;margin:0;white-space:pre-wrap}.social-side-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.social-side-stats div{padding:11px;border-radius:12px;background:var(--surface-color);border:1px solid var(--border-color)}.social-side-stats strong,.social-side-stats span{display:block}.social-side-stats strong{font-size:1.05rem}.social-side-stats span{font-size:.7rem;color:var(--text-muted);margin-top:3px}.social-copy-profile{width:100%;margin-top:10px;border:1px solid var(--border-color);background:var(--surface-color);color:var(--primary);padding:10px;border-radius:11px;font-weight:900;cursor:pointer}.social-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.social-media-tile{aspect-ratio:1;border-radius:15px;overflow:hidden;position:relative;background:var(--secondary);display:block}.social-media-tile img{width:100%;height:100%;object-fit:cover}.social-media-tile span{position:absolute;right:9px;top:9px;width:30px;height:30px;border-radius:9px;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center;opacity:0;transition:.2s}.social-media-tile:hover span{opacity:1}.social-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.social-video-tile{border:1px solid var(--border-color);border-radius:16px;overflow:hidden;background:var(--secondary)}.social-video-tile video{width:100%;height:260px;display:block;background:#000;object-fit:cover}.social-video-tile a{display:block;padding:10px 12px;color:var(--primary);font-weight:850;text-decoration:none;font-size:.8rem}.social-groups-grid{display:grid;gap:10px}.social-group-tile{width:100%;border:1px solid var(--border-color);background:var(--surface-color);color:var(--text-main);padding:13px;border-radius:15px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer}.social-group-tile:hover{border-color:var(--primary);transform:translateY(-1px)}.social-group-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--glow-primary);color:var(--primary);flex:0 0 auto}.social-group-tile>span:nth-child(2){min-width:0;flex:1}.social-group-tile strong,.social-group-tile small{display:block}.social-group-tile strong{font-size:.86rem}.social-group-tile small{color:var(--text-muted);margin-top:3px;font-size:.7rem}.social-about-grid{display:grid;gap:14px}.social-achievements-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.social-achievement{display:flex;gap:10px;padding:12px;border-radius:14px;border:1px solid var(--border-color);background:var(--surface-color)}.social-achievement>span{width:38px;height:38px;border-radius:11px;background:var(--glow-primary);color:var(--primary);display:grid;place-items:center;flex:0 0 auto}.social-achievement strong,.social-achievement small{display:block}.social-achievement small{color:var(--text-muted);margin-top:3px;font-size:.72rem}.social-personal-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;color:var(--primary);font-weight:850;text-decoration:none;word-break:break-all}.social-empty-state{min-height:180px;border:1px dashed var(--border-color);border-radius:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:6px;padding:30px;color:var(--text-muted)}.social-empty-state i{font-size:1.7rem;color:var(--primary);margin-bottom:3px}.social-empty-state strong{color:var(--text-main)}.social-empty-state span{font-size:.78rem}.social-empty-state.compact{min-height:120px}.social-profile-share-btn{white-space:nowrap}.profile-follow-stats{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}.profile-follow-stat{border:0;background:transparent;padding:0;text-align:left;color:var(--text-main);cursor:pointer}.profile-follow-stat strong{font-size:1.05rem}.profile-follow-stat span{font-size:.7rem;color:var(--text-muted);margin-left:4px}.profile-follow-btn.following{background:var(--secondary)!important;color:var(--text-main)!important;border-color:var(--border-color)!important}
@media(max-width:800px){.social-profile-content{grid-template-columns:1fr}.social-profile-side{grid-row:2}.social-profile-cover{height:190px;padding:20px}.social-profile-head{flex-wrap:wrap;align-items:flex-start;padding:0 18px 18px}.social-profile-head .profile-avatar-xl{margin-top:-48px;width:100px;height:100px;border-radius:28px}.social-profile-head .profile-actions{width:100%;padding-top:4px}.social-profile-tabs{padding:0 8px}.social-profile-tabs button{padding:14px 12px;font-size:.78rem}.social-profile-content{padding:18px 12px 26px}.social-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-video-grid{grid-template-columns:1fr}.social-achievements-grid{grid-template-columns:1fr}}

/* SOCIAL COMMENTS UPGRADE — additive only */
.community-comment-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap;margin-top:5px}.community-comment-actions .community-action{padding:5px 7px;font-size:.7rem}.community-comment-actions .community-action.danger{color:var(--danger)}
.community-comment-edited{font-size:.62rem;color:var(--text-muted);font-style:italic}.community-comment-media{margin-top:8px;max-width:320px}.community-comment-media img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:12px;cursor:zoom-in;border:1px solid var(--border-color)}
.community-comment-form{position:relative;align-items:center}.community-comment-tools{display:flex;gap:4px;align-items:center}.community-comment-tool{width:34px;height:34px;border:0;border-radius:9px;background:var(--secondary);color:var(--text-muted);cursor:pointer}.community-comment-tool:hover{background:var(--glow-primary);color:var(--primary)}.community-comment-send{width:40px!important;height:40px;flex:0 0 40px}.community-comment-preview{margin-top:8px}.community-comment-preview-card{position:relative;display:inline-flex;align-items:center;gap:8px;padding:5px 28px 5px 5px;background:var(--secondary);border:1px solid var(--border-color);border-radius:12px;font-size:.7rem;color:var(--text-muted);max-width:100%}.community-comment-preview-card img{width:58px;height:58px;object-fit:cover;border-radius:8px}.community-comment-preview-card button{position:absolute;right:5px;top:5px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff}.community-emoji-picker{display:none;position:absolute;left:4px;bottom:48px;z-index:40;grid-template-columns:repeat(10,1fr);gap:3px;padding:8px;width:min(330px,calc(100vw - 40px));background:var(--surface-color);border:1px solid var(--border-color);border-radius:14px;box-shadow:0 18px 45px rgba(0,0,0,.2)}.community-emoji-picker.open{display:grid}.community-emoji-picker button{width:27px;height:27px;background:transparent;border-radius:7px;font-size:1.05rem}.community-emoji-picker button:hover{background:var(--secondary)}.community-image-lightbox{position:fixed;inset:0;z-index:30000;background:rgba(0,0,0,.82);display:grid;place-items:center;padding:30px}.community-image-lightbox img{max-width:min(1100px,94vw);max-height:88vh;object-fit:contain;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.45)}.community-image-lightbox>button{position:absolute;right:22px;top:18px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:1.1rem}.community-reply-list .community-reply-list{margin-left:30px}
@media(max-width:640px){.community-reply-list{margin-left:24px}.community-reply-list .community-reply-list{margin-left:18px}.community-comment-actions .community-action{font-size:.66rem;padding:5px}.community-emoji-picker{grid-template-columns:repeat(8,1fr)}}
.vac-unified-share-menu{z-index:100500;min-width:240px;padding:10px;border:1px solid var(--border-color);border-radius:16px;background:var(--surface-color);box-shadow:0 18px 55px rgba(0,0,0,.24)}
.vac-unified-share-menu strong{display:block;padding:7px 10px 9px;font-size:.86rem}.vac-unified-share-menu button{display:block;width:100%;border:0;background:transparent;color:var(--text-main);text-align:left;padding:11px 10px;border-radius:10px;cursor:pointer}.vac-unified-share-menu button:hover{background:var(--secondary);color:var(--primary)}

/* =========================================================
   VACSTUDY PROFILE FINAL — cleaner social profile proportions
   ========================================================= */
.profile-route-root{width:100%;max-width:1180px;margin:0 auto;padding:4px 0 56px;}
.social-profile-modern{border-radius:26px!important;overflow:hidden;background:var(--surface-color);border:1px solid var(--border-color);box-shadow:var(--shadow-lg);}
.social-profile-cover{height:220px!important;padding:24px 30px!important;background:radial-gradient(circle at 78% 18%,rgba(96,165,250,.48),transparent 28%),linear-gradient(135deg,#0b1220 0%,#123b87 55%,#2563eb 100%)!important;}
.social-cover-brand{font-size:.78rem!important;letter-spacing:.22em!important;opacity:.72!important;}
.social-profile-head{display:grid!important;grid-template-columns:132px minmax(0,1fr) auto;align-items:end!important;gap:20px!important;padding:0 30px 22px!important;min-height:150px;}
.social-profile-head .profile-avatar-xl{width:132px!important;height:132px!important;margin-top:-58px;border-radius:32px!important;border:5px solid var(--surface-color);box-shadow:0 14px 34px rgba(0,0,0,.22);}
.profile-head-info{padding:0!important;min-width:0;}
.profile-name-row{gap:8px!important;}
.profile-name-row h1{font-size:clamp(1.7rem,3vw,2.35rem)!important;letter-spacing:-.035em;line-height:1.08!important;max-width:100%;}
.profile-name-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;max-height:50px;overflow:hidden;}
.profile-name-badges .profile-badge{font-size:.66rem!important;padding:5px 8px!important;}
.profile-handle{font-size:.82rem!important;margin-top:7px!important;}
.profile-role-line{font-size:.82rem!important;margin-top:6px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.profile-follow-stats{gap:18px!important;margin-top:14px!important;}
.profile-follow-stat{display:flex!important;align-items:baseline;gap:4px;padding:0!important;}
.profile-follow-stat strong{font-size:1rem!important;}
.profile-follow-stat span{margin:0!important;font-size:.68rem!important;}
.profile-actions{justify-content:flex-end;align-items:center;padding:0!important;max-width:360px;}
.profile-actions .btn{min-height:40px;border-radius:12px!important;padding:9px 13px!important;font-weight:850;white-space:nowrap;}
.social-profile-tabs{padding:0 22px!important;min-height:56px;}
.social-profile-tabs button{padding:15px 16px!important;font-size:.78rem!important;}
.social-profile-content{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)!important;gap:18px!important;padding:20px 22px 28px!important;}
.social-profile-main{min-width:0;}
.social-profile-panel{min-width:0;}
.social-panel-head{margin-bottom:12px!important;}
.social-panel-head h2{font-size:1.2rem!important;}
.social-side-card{border-radius:16px!important;padding:15px!important;}
.social-side-card p{font-size:.82rem!important;}
.social-side-stats{gap:8px!important;}
.social-side-stats div{padding:10px!important;}
.social-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;}
.social-video-grid{gap:10px!important;}
.social-achievements-grid{gap:8px!important;}

@media (max-width:900px){
  .profile-route-root{padding:0 10px 46px;}
  .social-profile-head{grid-template-columns:104px minmax(0,1fr)!important;align-items:end!important;gap:14px!important;padding:0 18px 18px!important;}
  .social-profile-head .profile-avatar-xl{width:104px!important;height:104px!important;margin-top:-44px;border-radius:26px!important;}
  .profile-actions{grid-column:1/-1;width:100%;max-width:none;justify-content:flex-start;padding-top:2px!important;}
  .social-profile-content{grid-template-columns:1fr!important;}
  .social-profile-side{grid-row:auto!important;}
}

@media (max-width:600px){
  .profile-route-root{padding:0 6px 36px;}
  .social-profile-modern{border-radius:20px!important;}
  .social-profile-cover{height:155px!important;padding:18px!important;}
  .social-profile-head{grid-template-columns:82px minmax(0,1fr)!important;gap:11px!important;padding:0 14px 15px!important;}
  .social-profile-head .profile-avatar-xl{width:82px!important;height:82px!important;margin-top:-34px;border-width:4px!important;border-radius:22px!important;}
  .profile-name-row h1{font-size:1.38rem!important;}
  .profile-name-badges{max-height:42px;margin-top:5px;}
  .profile-name-badges .profile-badge{font-size:.6rem!important;padding:4px 6px!important;}
  .profile-handle{font-size:.74rem!important;}
  .profile-role-line{font-size:.72rem!important;}
  .profile-follow-stats{gap:12px!important;margin-top:9px!important;}
  .profile-follow-stat strong{font-size:.9rem!important;}
  .profile-follow-stat span{font-size:.61rem!important;}
  .profile-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:7px!important;}
  .profile-actions .btn{width:100%;padding:8px 7px!important;font-size:.72rem!important;min-height:38px;}
  .social-profile-tabs{padding:0 4px!important;overflow-x:auto;scrollbar-width:none;}
  .social-profile-tabs::-webkit-scrollbar{display:none;}
  .social-profile-tabs button{padding:13px 11px!important;font-size:.7rem!important;}
  .social-profile-content{padding:14px 10px 22px!important;}
  .social-side-card{padding:13px!important;}
  .social-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important;}
}

/* Messenger -> Profile navigation polish */
.social-back-to-chat{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;padding:10px 14px;border:1px solid var(--border-color);border-radius:12px;background:var(--surface-color);color:var(--text-main);font-weight:850;cursor:pointer;box-shadow:var(--shadow-sm);}
.social-back-to-chat:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-1px);}
#profileRouteRoot{position:relative;z-index:10;min-width:0;}

/* V5 profile composition: calmer proportions and clearer hierarchy */
.social-profile-modern{max-width:1180px;margin:0 auto;}
.social-profile-head{grid-template-columns:120px minmax(0,1fr) auto!important;gap:20px!important;align-items:end!important;}
.social-profile-head .profile-head-info{min-width:0;}
.social-profile-head .profile-name-row h1{font-size:clamp(2rem,4vw,3.5rem);line-height:.98;letter-spacing:-.045em;max-width:760px;}
.social-profile-head .profile-name-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;}
.social-profile-head .profile-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:360px;}
.social-profile-content{grid-template-columns:minmax(0,1.6fr) minmax(250px,.6fr)!important;align-items:start;}
@media(max-width:800px){.social-profile-head{grid-template-columns:1fr!important;align-items:start!important;gap:12px!important;}.social-profile-head .profile-actions{justify-content:stretch;max-width:none;}.social-profile-head .profile-actions>*{flex:1 1 160px;}.social-profile-head .profile-name-row h1{font-size:clamp(1.8rem,9vw,2.6rem);}.social-profile-content{grid-template-columns:1fr!important;}}
.social-profile-head{display:grid!important;}
@media(max-width:800px){.social-profile-head{display:grid!important;}}
