@import"https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap";.promo-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1rem;animation:promoFadeIn .3s ease}@keyframes promoFadeIn{0%{opacity:0}to{opacity:1}}@keyframes promoSlideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.promo-modal{background:var(--bg-secondary);border-radius:20px;padding:2rem 1.75rem;max-width:400px;width:100%;text-align:center;position:relative;box-shadow:0 24px 64px #0000004d;animation:promoSlideUp .35s ease .1s both}.promo-close{position:absolute;top:.75rem;right:.75rem;background:none;border:none;color:var(--text-muted);font-size:1.5rem;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.promo-close:hover{background:var(--border-color)}.promo-horse{font-size:3.5rem;margin-bottom:.5rem;animation:promoBounce .6s ease .4s both}@keyframes promoBounce{0%{transform:scale(.3);opacity:0}50%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}.promo-title{font-family:var(--font-display);font-size:1.4rem;color:var(--text-primary);margin-bottom:.6rem}.promo-message{color:var(--text-secondary);font-size:.9rem;line-height:1.5;margin-bottom:1.5rem}.promo-buttons{display:flex;gap:.75rem;margin-bottom:1rem}.promo-store-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1rem;border-radius:12px;font-weight:700;font-size:.88rem;text-decoration:none;transition:transform .15s,box-shadow .15s}.promo-store-btn:hover{transform:translateY(-1px);box-shadow:0 4px 16px #0003}.promo-store-btn svg{width:18px;height:18px;flex-shrink:0}.promo-store-btn.ios{background:#000;color:#fff}.promo-store-btn.android{background:var(--brand-teal);color:#fff}.promo-dismiss{background:none;border:none;color:var(--text-muted);font-size:.82rem;cursor:pointer;padding:.4rem .75rem;border-radius:6px;transition:color .2s}.promo-dismiss:hover{color:var(--text-secondary)}.layout{display:flex;min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;background:var(--bg-secondary);border-right:1px solid var(--border-color);display:flex;flex-direction:column;justify-content:space-between;padding:1.25rem;z-index:50;transition:background var(--transition)}.sidebar-logo{display:block;margin-bottom:1.5rem;text-decoration:none}.sidebar-logo img{width:52px;height:52px;border-radius:14px;transition:transform var(--transition)}.sidebar-logo img:hover{transform:scale(1.08) rotate(-3deg)}.sidebar-nav{display:flex;flex-direction:column;gap:.25rem}.nav-item{display:flex;align-items:center;gap:.85rem;padding:.75rem 1rem;border-radius:12px;text-decoration:none;color:var(--text-secondary);font-family:var(--font-display);font-weight:600;font-size:1.05rem;transition:all var(--transition)}.nav-item svg{width:22px;height:22px;flex-shrink:0}.nav-item:hover{background:var(--badge-bg);color:var(--text-primary)}.nav-item.active{background:var(--badge-bg);color:var(--brand-teal)}.sidebar-bottom{display:flex;flex-direction:column;gap:.5rem}.theme-btn{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;border:1px solid var(--border-color);background:var(--bg-card);cursor:pointer;font-size:1.15rem;transition:all var(--transition)}.theme-btn:hover{transform:rotate(20deg) scale(1.1)}.logout-btn{display:flex;align-items:center;gap:.85rem;padding:.75rem 1rem;border-radius:12px;border:none;background:none;color:var(--text-muted);font-family:var(--font-display);font-weight:600;font-size:1rem;cursor:pointer;transition:all var(--transition)}.logout-btn svg{width:22px;height:22px}.logout-btn:hover{background:#e85d751a;color:#e85d75}.login-btn{background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff!important;border-radius:12px}.login-btn:hover{opacity:.9;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan))!important;color:#fff!important}.main-content{margin-left:240px;flex:1;min-height:100vh;max-width:680px;width:100%;border-right:1px solid var(--border-color);padding-bottom:2rem}.top-bar{display:flex;justify-content:flex-end;align-items:center;padding:.65rem 1rem;position:sticky;top:0;background:var(--bg-primary);z-index:40;border-bottom:1px solid var(--border-color)}.notif-bell{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--bg-secondary);text-decoration:none;color:var(--text-secondary);transition:background .2s,color .2s}.notif-bell:hover{background:var(--brand-teal);color:#fff}.notif-bell svg{width:20px;height:20px}.notif-badge{position:absolute;top:-2px;right:-4px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;min-width:18px;height:18px;padding:0 4px;border-radius:10px;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--bg-primary);animation:notifPop .3s ease}@keyframes notifPop{0%{transform:scale(0)}70%{transform:scale(1.2)}to{transform:scale(1)}}.mobile-nav{display:none;position:fixed;bottom:0;left:0;right:0;background:var(--bg-secondary);border-top:1px solid var(--border-color);padding:.5rem 0;justify-content:space-around;z-index:50}.mobile-nav-item{display:flex;align-items:center;justify-content:center;padding:.6rem;border-radius:10px;color:var(--text-muted);text-decoration:none;transition:color var(--transition)}.mobile-nav-item svg{width:24px;height:24px}.mobile-nav-item.active{color:var(--brand-teal)}@media(max-width:900px){.sidebar{display:none}.main-content{margin-left:0;max-width:100%;padding-bottom:5rem;border-right:none}.mobile-nav{display:flex}}@media(min-width:901px)and (max-width:1100px){.sidebar{width:72px;align-items:center;padding:1rem .5rem}.sidebar-logo img{width:42px;height:42px}.nav-item span,.logout-btn span{display:none}.nav-item,.logout-btn{justify-content:center;padding:.75rem}.main-content{margin-left:72px}}.neigh-card{padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);transition:background var(--transition)}.neigh-card:hover{background:var(--glow)}.renneigh-indicator{font-size:.82rem;color:var(--text-muted);padding:0 0 .5rem 3.5rem}.renneigh-indicator a{color:var(--text-muted);font-weight:600;text-decoration:none}.renneigh-indicator a:hover{text-decoration:underline}.neigh-body{display:flex;gap:.85rem}.neigh-avatar{flex-shrink:0;text-decoration:none}.neigh-avatar img{width:46px;height:46px;border-radius:50%;object-fit:cover}.avatar-placeholder{width:46px;height:46px;border-radius:50%;background:var(--badge-bg);display:flex;align-items:center;justify-content:center;font-size:1.3rem}.neigh-content{flex:1;min-width:0}.neigh-header{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.neigh-username{font-family:var(--font-display);font-weight:700;font-size:.95rem;color:var(--text-primary);text-decoration:none}.neigh-username:hover{text-decoration:underline}.tier-badge{font-size:.7rem;font-family:var(--font-display);font-weight:600;padding:.1rem .45rem;border-radius:6px;text-transform:capitalize}.tier-foal{background:#e0e0e0;color:#555}.tier-pony{background:#c8e6c9;color:#2e7d32}.tier-mustang{background:#bbdefb;color:#1565c0}.tier-thoroughbred{background:#e1bee7;color:#7b1fa2}.tier-unicorn{background:linear-gradient(135deg,#f8bbd0,#b3e5fc);color:#6a1b9a}.founding-badge{font-size:.85rem}.neigh-time{font-size:.82rem;color:var(--text-muted)}.neigh-location{font-size:.78rem;color:var(--text-muted);margin-top:.15rem}.reply-indicator{font-size:.82rem;color:var(--text-muted);margin-top:.15rem}.reply-indicator a{color:var(--brand-teal);text-decoration:none}.neigh-text{margin-top:.35rem;font-size:.95rem;line-height:1.55;color:var(--text-primary);word-wrap:break-word;overflow-wrap:break-word}.neigh-text .mention{color:var(--brand-teal);text-decoration:none;font-weight:600}.neigh-text .hashtag{color:var(--brand-blue);text-decoration:none}.neigh-text .link{color:var(--brand-teal);text-decoration:underline}.quoted-neigh-card{display:block;margin-top:.65rem;padding:.75rem;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-secondary);text-decoration:none;color:inherit;transition:background .15s}.quoted-neigh-card:hover{background:var(--badge-bg)}.quoted-neigh-card.quoted-deleted{color:var(--text-muted);font-size:.85rem;font-style:italic}.quoted-header{margin-bottom:.25rem}.quoted-username{font-family:var(--font-display);font-weight:700;font-size:.85rem;color:var(--text-primary)}.quoted-text{font-size:.85rem;color:var(--text-secondary);line-height:1.45}.quoted-media{margin-top:.5rem;width:100%;max-height:200px;object-fit:cover;border-radius:8px}.neigh-poll{margin-top:.65rem;display:flex;flex-direction:column;gap:.4rem}.poll-option{position:relative;display:flex;align-items:center;justify-content:space-between;padding:.6rem .85rem;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card);cursor:pointer;font-size:.9rem;color:var(--text-primary);overflow:hidden;transition:border-color .15s,background .15s;text-align:left;font-family:var(--font-body)}.poll-option:not(.voted):hover{border-color:var(--brand-teal);background:#1a9fb00d}.poll-option.voted{cursor:default}.poll-option.my-vote{border-color:var(--brand-teal)}.poll-bar{position:absolute;inset:0;background:var(--brand-teal);opacity:.12;border-radius:10px;transition:width .4s ease}.poll-option-text{position:relative;z-index:1;font-weight:500}.poll-pct{position:relative;z-index:1;font-family:var(--font-display);font-weight:700;font-size:.85rem;color:var(--text-muted)}.poll-voting{font-size:.8rem;color:var(--text-muted)}.poll-info{font-size:.78rem;color:var(--text-muted);padding-top:.25rem}.neigh-media{margin-top:.65rem;border-radius:14px;overflow:hidden;border:1px solid var(--border-color);position:relative}.neigh-media img,.neigh-media video{width:100%;max-height:500px;object-fit:cover;display:block}.neigh-gallery{position:relative}.gallery-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:5px}.gallery-dot{width:7px;height:7px;border-radius:50%;background:#ffffff73;cursor:pointer;transition:background .15s}.gallery-dot.active{background:#fffffff2}.gallery-badge{position:absolute;top:8px;right:8px;background:#0000008c;color:#fff;font-size:.72rem;font-weight:700;padding:.15rem .45rem;border-radius:8px}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;border:none;background:#00000080;color:#fff;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.gallery-arrow:hover{background:#000000bf}.gallery-prev{left:6px}.gallery-next{right:6px}.reaction-summary{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.5rem}.reaction-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:12px;background:var(--badge-bg);font-size:.8rem;font-family:var(--font-display);font-weight:600;color:var(--text-secondary);border:1px solid transparent}.reaction-chip.mine{border-color:var(--brand-teal);color:var(--brand-teal)}.neigh-actions{display:flex;gap:.25rem;margin-top:.65rem}.reaction-wrapper{position:relative}.reaction-picker{position:absolute;bottom:100%;left:0;margin-bottom:6px;display:flex;gap:2px;padding:6px 8px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:24px;box-shadow:var(--card-shadow-hover);z-index:20;animation:pickerIn .15s ease}@keyframes pickerIn{0%{opacity:0;transform:translateY(6px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.picker-btn{width:36px;height:36px;border:none;background:none;border-radius:50%;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.picker-btn:hover{background:var(--badge-bg);transform:scale(1.25)}.picker-btn.selected{background:var(--badge-bg);outline:2px solid var(--brand-teal);outline-offset:-2px}.action-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;border-radius:20px;border:none;background:none;color:var(--text-muted);font-size:.85rem;cursor:pointer;text-decoration:none;transition:all var(--transition)}.action-btn:hover{background:var(--badge-bg)}.action-btn.active{color:var(--brand-orange)}.action-btn:disabled{opacity:.5;cursor:default}.action-btn span{font-family:var(--font-display);font-weight:600}.overflow-wrapper{position:relative;margin-left:auto}.overflow-btn{background:var(--badge-bg);border:1px solid var(--border-color);color:var(--text-muted);font-size:1.1rem;cursor:pointer;padding:.2rem .55rem;border-radius:8px;line-height:1;letter-spacing:2px;transition:all var(--transition)}.overflow-btn:hover{background:var(--bg-secondary);color:var(--text-primary);border-color:var(--text-muted)}.overflow-menu{position:absolute;top:100%;right:0;margin-top:4px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;box-shadow:var(--card-shadow-hover);z-index:50;min-width:180px;overflow:hidden;animation:pickerIn .12s ease}.overflow-menu button{display:flex;align-items:center;gap:.5rem;width:100%;padding:.65rem .85rem;border:none;background:none;color:var(--text-primary);font-size:.88rem;font-weight:600;cursor:pointer;text-align:left;font-family:var(--font-body);transition:background .1s}.overflow-menu button:hover{background:var(--badge-bg)}.overflow-menu button:not(:last-child){border-bottom:1px solid var(--border-color)}.overflow-menu .overflow-danger{color:#e85d75}.overflow-menu .overflow-danger:hover{background:#e85d7514}.who-carroted-btn{font-size:.8rem!important;color:#22c55e!important;font-weight:700!important}.carrot-users-panel{margin-top:.5rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:.65rem;animation:pickerIn .15s ease}.carrot-users-loading{display:flex;align-items:center;gap:.5rem;padding:.5rem;color:var(--text-muted);font-size:.85rem}.carrot-group{margin-bottom:.35rem}.carrot-group-header{font-size:.8rem;font-weight:800;color:var(--text-muted);padding:.3rem .4rem;text-transform:capitalize}.carrot-user-row{display:flex;align-items:center;gap:.5rem;padding:.4rem .55rem;border-radius:8px;text-decoration:none;color:inherit;transition:background .1s}.carrot-user-row:hover{background:var(--badge-bg)}.carrot-user-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.carrot-user-avatar-ph{font-size:1.1rem}.carrot-user-name{flex:1;font-size:.88rem;font-weight:600;color:var(--text-primary)}.carrot-user-emoji{font-size:1rem}.animated-reactions{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.5rem}.animated-reaction-chip{display:inline-flex;align-items:center;gap:.2rem;padding:.2rem .5rem;border-radius:14px;background:var(--bg-secondary);border:1px solid var(--border-color);font-size:.95rem;cursor:default}.ar-count{font-size:.75rem;font-weight:700;color:var(--text-muted)}.report-overlay{position:fixed;inset:0;background:#0000008c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.report-modal{background:var(--bg-secondary);border-radius:16px;width:100%;max-width:440px;max-height:85vh;overflow-y:auto;padding:1.25rem;box-shadow:0 24px 64px #0000004d}.report-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.85rem}.report-header h3{font-family:var(--font-display);color:var(--text-primary);font-size:1.15rem;margin:0}.report-close{background:none;border:none;font-size:1.4rem;color:var(--text-muted);cursor:pointer}.report-preview{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:10px;padding:.65rem .85rem;margin-bottom:.85rem}.report-preview-user{font-family:var(--font-display);font-weight:700;font-size:.82rem;color:var(--text-muted);display:block;margin-bottom:.2rem}.report-preview p{font-size:.88rem;color:var(--text-primary);margin:0;line-height:1.4}.report-label{display:block;font-size:.82rem;font-weight:700;color:var(--text-muted);margin-bottom:.45rem;text-transform:uppercase;letter-spacing:.03em}.report-reasons{margin-bottom:.85rem}.report-reason-btn{display:flex;align-items:center;gap:.6rem;width:100%;padding:.55rem .75rem;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-card);color:var(--text-primary);font-size:.88rem;cursor:pointer;margin-bottom:.35rem;text-align:left;font-family:var(--font-body);transition:border-color .12s,background .12s}.report-reason-btn:hover{background:var(--badge-bg)}.report-reason-btn.selected{border-color:#4b7bec;background:#4b7bec14;color:#4b7bec;font-weight:600}.report-radio{width:16px;height:16px;border-radius:50%;border:2px solid var(--border-color);flex-shrink:0;transition:all .12s}.report-radio.checked{border-color:#4b7bec;background:#4b7bec}.report-note{width:100%;padding:.6rem .75rem;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-primary);color:var(--text-primary);font-family:var(--font-body);font-size:.9rem;resize:vertical;outline:none;box-sizing:border-box}.report-note:focus{border-color:#4b7bec}.report-char-count{text-align:right;font-size:.75rem;color:var(--text-muted);margin:.2rem 0 .85rem}.report-actions{display:flex;gap:.65rem}.report-cancel{flex:1;padding:.6rem;border:1px solid var(--border-color);border-radius:20px;background:var(--bg-card);color:var(--text-primary);font-family:var(--font-display);font-weight:600;font-size:.9rem;cursor:pointer}.report-cancel:hover{background:var(--badge-bg)}.report-submit{flex:1;padding:.6rem;border:none;border-radius:20px;background:#4b7bec;color:#fff;font-family:var(--font-display);font-weight:700;font-size:.9rem;cursor:pointer;transition:opacity .15s}.report-submit:hover:not(:disabled){opacity:.9}.report-submit:disabled{opacity:.5;cursor:default}.stories-bar{border-bottom:1px solid var(--border-color);background:var(--bg-card);padding:.65rem 0}.stories-bar-loading{display:flex;align-items:center;justify-content:center;height:100px}.stories-bar-scroll{display:flex;overflow-x:auto;gap:0;padding:0 .75rem;scrollbar-width:none}.stories-bar-scroll::-webkit-scrollbar{display:none}.story-circle{display:flex;flex-direction:column;align-items:center;width:72px;flex-shrink:0;background:none;border:none;cursor:pointer;padding:.15rem 0;position:relative;font-family:var(--font-body)}.story-circle-ring{width:64px;height:64px;border-radius:50%;padding:2.5px;display:flex;align-items:center;justify-content:center}.story-circle-ring.unviewed{background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}.story-circle-ring.viewed{border:2px solid var(--border-color);background:none}.story-circle-inner{width:56px;height:56px;border-radius:50%;overflow:hidden;border:2.5px solid var(--bg-card);background:var(--bg-secondary)}.story-circle-avatar{width:100%;height:100%;object-fit:cover}.story-circle-plus{position:absolute;bottom:18px;right:6px;width:20px;height:20px;border-radius:50%;background:var(--brand-teal);border:2px solid var(--bg-card);color:#fff;font-size:14px;font-weight:700;line-height:16px;text-align:center;display:flex;align-items:center;justify-content:center}.story-circle-name{margin-top:3px;font-size:.68rem;font-weight:600;color:var(--text-secondary);max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.story-viewer-overlay{position:fixed;inset:0;z-index:9999;background:#000000eb;display:flex;align-items:center;justify-content:center;animation:storyFadeIn .2s ease}@keyframes storyFadeIn{0%{opacity:0}to{opacity:1}}.story-viewer-container{position:relative;width:100%;max-width:420px;height:100vh;max-height:780px;background:#000;border-radius:16px;overflow:hidden;-webkit-user-select:none;user-select:none}@media(max-width:480px){.story-viewer-container{max-width:100%;max-height:100vh;border-radius:0}}.story-viewer-media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.story-media-content{width:100%;height:100%;object-fit:contain}.story-video-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:#fff;font-size:.85rem}.story-viewer-top{position:absolute;top:0;left:0;right:0;padding:12px 12px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.5),transparent);z-index:10}.story-progress-row{display:flex;gap:3px;margin-bottom:10px}.story-progress-segment{flex:1;height:2.5px;border-radius:2px;overflow:hidden;position:relative}.story-progress-bg{position:absolute;inset:0;background:#ffffff4d;border-radius:2px}.story-progress-fill{position:absolute;top:0;left:0;height:100%;background:#fff;border-radius:2px;transition:none}.story-viewer-header{display:flex;align-items:center;justify-content:space-between}.story-viewer-user-info{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.story-viewer-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}.story-viewer-username{color:#fff;font-weight:700;font-size:.85rem;font-family:var(--font-display)}.story-viewer-time{color:#ffffff80;font-size:.75rem}.story-viewer-header-buttons{display:flex;align-items:center;gap:4px}.story-viewer-views{color:#ffffffb3;font-size:.78rem;font-weight:600;padding:4px 8px}.story-viewer-icon-btn{background:none;border:none;color:#fff;font-size:1.25rem;cursor:pointer;padding:4px 8px;opacity:.85;transition:opacity .2s}.story-viewer-icon-btn:hover{opacity:1}.story-viewer-close-btn{font-size:1.4rem;font-weight:300}.story-tap-zones{position:absolute;inset:0;z-index:5;display:flex}.story-tap-left,.story-tap-right{flex:1;cursor:pointer}.story-tap-left{cursor:w-resize}.story-tap-right{cursor:e-resize}.story-menu-overlay{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;background:#0006}.story-menu{background:var(--bg-card);border-radius:14px;padding:.5rem;min-width:180px;box-shadow:0 12px 40px #00000080}.story-menu-item{display:block;width:100%;padding:.75rem 1rem;border:none;background:none;border-radius:10px;color:var(--text-primary);font-family:var(--font-display);font-weight:600;font-size:.9rem;cursor:pointer;text-align:left;transition:background .15s}.story-menu-item:hover{background:var(--glow)}.story-menu-danger{color:#e85d75}.story-menu-danger:hover{background:#e85d7514}.story-caption{position:absolute;bottom:100px;left:0;right:0;padding:.75rem 1rem;text-align:center;color:#fff;font-size:.95rem;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.7);z-index:8;pointer-events:none}.story-reaction-feedback{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:20;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;font-size:.85rem;font-weight:700;pointer-events:none;animation:reactionPop .3s ease}.story-reaction-feedback-emoji{font-size:3rem;filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}@keyframes reactionPop{0%{transform:translate(-50%,-50%) scale(.5);opacity:0}60%{transform:translate(-50%,-50%) scale(1.15);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.story-viewer-bottom{position:absolute;bottom:0;left:0;right:0;z-index:12;padding:1rem;background:linear-gradient(to top,rgba(0,0,0,.6),transparent)}.story-reactions-row{display:flex;align-items:center;gap:8px}.story-reactions-list{display:flex;gap:4px;flex:1}.story-reaction-btn{background:#ffffff1f;border:none;border-radius:50%;width:40px;height:40px;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,background .15s}.story-reaction-btn:hover{background:#ffffff38;transform:scale(1.15)}.story-message-btn{background:#ffffff1f;border:none;border-radius:50%;width:40px;height:40px;font-size:1.15rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.story-message-btn:hover{background:#ffffff38}.story-reply-row{display:flex;align-items:center;gap:8px}.story-reply-cancel{background:none;border:none;color:#ffffffb3;font-size:1.1rem;cursor:pointer;padding:4px}.story-reply-input{flex:1;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);border-radius:24px;padding:.6rem 1rem;color:#fff;font-family:var(--font-body);font-size:.9rem;outline:none}.story-reply-input::placeholder{color:#ffffff73}.story-reply-input:focus{border-color:var(--brand-cyan)}.story-reply-send{background:var(--brand-teal);border:none;border-radius:20px;padding:.55rem 1rem;color:#fff;font-family:var(--font-display);font-weight:700;font-size:.85rem;cursor:pointer;transition:background .15s}.story-reply-send:hover{background:var(--brand-cyan)}.story-reply-send:disabled{opacity:.4;cursor:default}.story-composer-overlay{position:fixed;inset:0;z-index:9999;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;animation:storyFadeIn .2s ease}.story-composer-modal{background:var(--bg-card);border-radius:18px;width:90%;max-width:400px;max-height:85vh;overflow:hidden;box-shadow:0 20px 60px #0006}.story-composer-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border-color)}.story-composer-header h3{font-family:var(--font-display);font-weight:700;font-size:1.1rem;color:var(--text-primary)}.story-composer-close{background:none;border:none;color:var(--text-muted);font-size:1.3rem;cursor:pointer;padding:4px}.story-composer-pick{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2.5rem 1.5rem}.story-composer-pick-btn{background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));border:none;border-radius:14px;color:#fff;font-family:var(--font-display);font-weight:700;font-size:1rem;padding:.85rem 1.5rem;cursor:pointer;transition:transform .15s,box-shadow .15s}.story-composer-pick-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px #1a9fb04d}.story-composer-hint{font-size:.82rem;color:var(--text-muted)}.story-composer-preview{display:flex;flex-direction:column}.story-composer-media{width:100%;max-height:400px;object-fit:contain;background:#000}.story-composer-caption{padding:.85rem 1.25rem;border:none;border-top:1px solid var(--border-color);background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:.9rem;outline:none}.story-composer-caption::placeholder{color:var(--text-muted)}.story-composer-caption:focus{background:var(--glow)}.story-composer-actions{display:flex;gap:.5rem;padding:1rem 1.25rem;border-top:1px solid var(--border-color)}.story-composer-change{flex:1;padding:.65rem;border:1px solid var(--border-color);border-radius:10px;background:none;color:var(--text-secondary);font-family:var(--font-display);font-weight:600;font-size:.88rem;cursor:pointer;transition:background .15s}.story-composer-change:hover{background:var(--glow)}.story-composer-post{flex:2;padding:.65rem;border:none;border-radius:10px;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;font-family:var(--font-display);font-weight:700;font-size:.9rem;cursor:pointer;transition:transform .15s,box-shadow .15s}.story-composer-post:hover{transform:translateY(-1px);box-shadow:0 4px 14px #1a9fb04d}.story-composer-post:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}.feed-page{min-height:100vh}.feed-header{position:sticky;top:0;z-index:10;background:var(--bg-primary);border-bottom:1px solid var(--border-color);padding:1rem 1.25rem;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:rgba(var(--bg-primary-rgb, 240, 250, 251),.85)}[data-theme=dark] .feed-header{background:#0c1a1ed9}.feed-header h1{font-family:var(--font-display);font-size:1.35rem;font-weight:700;color:var(--text-primary);margin-bottom:.75rem}.feed-tabs{display:flex;gap:0;border-radius:10px;overflow:hidden;border:1px solid var(--border-color)}.feed-tab{flex:1;padding:.5rem 1rem;border:none;background:none;font-family:var(--font-display);font-weight:600;font-size:.9rem;color:var(--text-muted);cursor:pointer;transition:all var(--transition)}.feed-tab.active{background:var(--badge-bg);color:var(--brand-teal)}.feed-tab:hover:not(.active){background:var(--glow)}.feed-error{text-align:center;padding:2rem;color:#e85d75}.feed-error button{margin-top:.75rem;padding:.5rem 1.25rem;border-radius:10px;border:1px solid #e85d75;background:none;color:#e85d75;font-family:var(--font-display);font-weight:600;cursor:pointer}.feed-loading{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:.75rem;color:var(--text-muted)}.feed-end,.feed-empty{text-align:center;padding:2.5rem 1rem;color:var(--text-muted);font-family:var(--font-display);font-size:1rem}.login-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1rem}.login-card{width:100%;max-width:420px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:20px;padding:2.5rem 2rem;box-shadow:var(--card-shadow);text-align:center}.login-logo img{width:72px;height:72px;border-radius:18px;margin-bottom:1.25rem}.login-card h1{font-family:var(--font-display);font-size:1.6rem;font-weight:700;color:var(--text-primary);margin-bottom:.35rem}.login-subtitle{color:var(--text-muted);font-size:.95rem;margin-bottom:1.5rem}.login-tabs{display:flex;gap:0;border-radius:10px;overflow:hidden;border:1px solid var(--border-color);margin-bottom:1.5rem}.login-tab{flex:1;padding:.55rem;border:none;background:none;font-family:var(--font-display);font-weight:600;font-size:.9rem;color:var(--text-muted);cursor:pointer;transition:all var(--transition)}.login-tab.active{background:var(--badge-bg);color:var(--brand-teal)}.login-form{display:flex;flex-direction:column;gap:1rem;text-align:left}.form-group label{display:block;font-family:var(--font-display);font-weight:600;font-size:.85rem;color:var(--text-secondary);margin-bottom:.35rem}.form-group input{width:100%;padding:.75rem 1rem;border-radius:12px;border:1.5px solid var(--border-color);background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:.95rem;outline:none;transition:all var(--transition)}.form-group input:focus{border-color:var(--brand-cyan);box-shadow:0 0 0 3px var(--glow)}.form-group input::placeholder{color:var(--text-muted)}.form-error{background:#e85d751a;color:#e85d75;padding:.65rem 1rem;border-radius:10px;font-size:.9rem;font-weight:500}.login-submit{width:100%;padding:.85rem;border-radius:12px;border:none;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;font-family:var(--font-display);font-weight:700;font-size:1.05rem;cursor:pointer;transition:all var(--transition);margin-top:.5rem}.login-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px #1a9fb04d}.login-submit:disabled{opacity:.6;cursor:default}.gif-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.gif-modal{background:var(--bg-secondary);border-radius:16px;width:100%;max-width:480px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 64px #0000004d}.gif-header{display:flex;justify-content:space-between;align-items:center;padding:.85rem 1rem;border-bottom:1px solid var(--border-color)}.gif-header h3{font-family:var(--font-display);color:var(--text-primary);font-size:1.1rem;margin:0}.gif-close{background:none;border:none;font-size:1.5rem;color:var(--text-muted);cursor:pointer}.gif-search{position:relative;padding:.65rem}.gif-search input{width:100%;padding:.55rem 2rem .55rem .75rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary);font-size:.9rem;outline:none;box-sizing:border-box}.gif-search input:focus{border-color:var(--brand-teal)}.gif-clear{position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-muted);font-size:1.2rem;cursor:pointer}.gif-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;min-height:200px;max-height:55vh}.gif-item{background:var(--bg-primary);border:none;padding:0;cursor:pointer;border-radius:6px;overflow:hidden;aspect-ratio:1;transition:transform .15s}.gif-item:hover{transform:scale(1.03)}.gif-item img{width:100%;height:100%;object-fit:cover;display:block}.gif-loading,.gif-loading-more{grid-column:1 / -1;display:flex;justify-content:center;padding:2rem}.gif-empty{grid-column:1 / -1;text-align:center;padding:3rem 1rem;color:var(--text-muted);font-size:.9rem}.compose-page{min-height:100vh}.compose-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);position:sticky;top:0;background:var(--bg-primary);z-index:10}.compose-header h1{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--text-primary)}.compose-submit{padding:.55rem 1.35rem;border-radius:20px;border:none;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;font-family:var(--font-display);font-weight:700;font-size:.95rem;cursor:pointer;transition:all var(--transition)}.compose-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 20px #1a9fb04d}.compose-submit:disabled{opacity:.5;cursor:default}.compose-body{padding:1.25rem}.compose-body textarea{width:100%;border:none;background:none;color:var(--text-primary);font-family:var(--font-body);font-size:1.1rem;line-height:1.6;resize:none;outline:none}.compose-body textarea::placeholder{color:var(--text-muted)}.compose-footer{display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;border-top:1px solid var(--border-color);margin-top:.75rem}.compose-tools{display:flex;gap:.5rem}.tool-btn{width:38px;height:38px;border-radius:10px;border:1px solid var(--border-color);background:var(--bg-card);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition);color:var(--text-primary)}.tool-btn:hover:not(:disabled){background:var(--badge-bg);transform:scale(1.08)}.tool-btn:disabled{opacity:.35;cursor:not-allowed}.tool-btn.tool-active{background:var(--brand-teal);color:#fff;border-color:var(--brand-teal)}.gif-tool-btn{font-size:.72rem;font-family:var(--font-display);font-weight:800;letter-spacing:.03em}.char-count{font-family:var(--font-display);font-weight:600;font-size:.85rem;color:var(--text-muted)}.char-count.warning{color:var(--brand-amber)}.char-count.over{color:#e85d75}.compose-media-preview{position:relative;margin-top:1rem;border-radius:14px;overflow:hidden;border:1px solid var(--border-color)}.compose-media-preview img,.compose-media-preview video{width:100%;max-height:400px;object-fit:cover;display:block}.remove-media{position:absolute;top:.5rem;right:.5rem;width:32px;height:32px;border-radius:50%;border:none;background:#000000a6;color:#fff;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}.compose-poll{margin-top:1rem;border:1px solid var(--border-color);border-radius:14px;padding:1rem;background:var(--bg-secondary)}.poll-editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;font-family:var(--font-display);font-weight:700;color:var(--text-primary)}.poll-close{background:none;border:none;color:var(--text-muted);font-size:1.3rem;cursor:pointer}.poll-option-row{display:flex;gap:.5rem;margin-bottom:.5rem}.poll-option-row input{flex:1;padding:.55rem .75rem;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-primary);color:var(--text-primary);font-size:.9rem;outline:none;font-family:var(--font-body)}.poll-option-row input:focus{border-color:var(--brand-teal)}.poll-remove-opt{width:32px;height:32px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-card);color:var(--text-muted);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.poll-remove-opt:hover{background:#e85d751a;color:#e85d75}.poll-add-opt{width:100%;padding:.5rem;border:1px dashed var(--border-color);border-radius:10px;background:none;color:var(--brand-teal);font-family:var(--font-display);font-weight:600;font-size:.85rem;cursor:pointer;margin-bottom:.65rem;transition:background .15s}.poll-add-opt:hover{background:#1a9fb00d}.poll-duration{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-muted)}.poll-duration select{padding:.35rem .5rem;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-primary);color:var(--text-primary);font-size:.85rem}.compose-error{margin-top:1rem;background:#e85d751a;color:#e85d75;padding:.65rem 1rem;border-radius:10px;font-size:.9rem}.profile-page{min-height:100vh}.profile-loading,.profile-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:.75rem;color:var(--text-muted)}.profile-banner{height:180px;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));overflow:hidden}.profile-banner img{width:100%;height:100%;object-fit:cover}.profile-info{padding:0 1.25rem 1.25rem;border-bottom:1px solid var(--border-color)}.profile-avatar-row{display:flex;align-items:flex-end;justify-content:space-between;margin-top:-40px;margin-bottom:.75rem}.profile-avatar img{width:84px;height:84px;border-radius:50%;border:4px solid var(--bg-primary);object-fit:cover}.avatar-placeholder-lg{width:84px;height:84px;border-radius:50%;border:4px solid var(--bg-primary);background:var(--badge-bg);display:flex;align-items:center;justify-content:center;font-size:2rem}.follow-btn{padding:.5rem 1.35rem;border-radius:20px;border:1.5px solid var(--brand-teal);background:none;color:var(--brand-teal);font-family:var(--font-display);font-weight:700;font-size:.9rem;cursor:pointer;transition:all var(--transition)}.follow-btn:hover{background:var(--brand-teal);color:#fff}.follow-btn.following{background:var(--badge-bg);border-color:var(--border-color);color:var(--text-secondary)}.follow-btn.following:hover{border-color:#e85d75;color:#e85d75;background:#e85d751a}.profile-username{font-family:var(--font-display);font-size:1.45rem;font-weight:700;color:var(--text-primary);margin-bottom:.25rem}.profile-bio{color:var(--text-secondary);font-size:.95rem;line-height:1.5;margin-top:.5rem;margin-bottom:.75rem}.profile-stats{display:flex;gap:1.5rem;margin-top:.75rem}.stat{display:flex;gap:.3rem;font-size:.9rem}.stat strong{font-family:var(--font-display);font-weight:700;color:var(--text-primary)}.stat span{color:var(--text-muted)}.profile-neighs-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border-color)}.profile-neighs-header h2{font-family:var(--font-display);font-size:1.1rem;font-weight:700;color:var(--text-primary)}.profile-empty{text-align:center;padding:3rem 1rem;color:var(--text-muted);font-family:var(--font-display)}.detail-page{min-height:100vh}.detail-loading,.detail-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:.75rem;color:var(--text-muted)}.back-link{color:var(--brand-teal);text-decoration:none;font-family:var(--font-display);font-weight:600}.detail-header{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);position:sticky;top:0;background:var(--bg-primary);z-index:10}.back-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--text-primary);text-decoration:none;transition:background var(--transition)}.back-btn:hover{background:var(--badge-bg)}.back-btn svg{width:20px;height:20px}.detail-header h1{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--text-primary)}.reply-input-area{padding:1rem 1.25rem;border-bottom:1px solid var(--border-color)}.reply-input-area textarea{width:100%;padding:.75rem 1rem;border-radius:12px;border:1.5px solid var(--border-color);background:var(--input-bg);color:var(--text-primary);font-family:var(--font-body);font-size:.95rem;resize:none;outline:none;transition:border-color var(--transition);margin-bottom:.65rem}.reply-input-area textarea:focus{border-color:var(--brand-cyan)}.reply-input-area textarea::placeholder{color:var(--text-muted)}.reply-submit{padding:.5rem 1.25rem;border-radius:20px;border:none;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;font-family:var(--font-display);font-weight:700;font-size:.9rem;cursor:pointer;transition:all var(--transition)}.reply-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 16px #1a9fb04d}.reply-submit:disabled{opacity:.5;cursor:default}.replies-header{padding:.75rem 1.25rem;border-bottom:1px solid var(--border-color)}.replies-header h2{font-family:var(--font-display);font-size:1rem;font-weight:700;color:var(--text-primary)}.no-replies{text-align:center;padding:2.5rem 1rem;color:var(--text-muted);font-family:var(--font-display)}.settings-page{max-width:600px;margin:0 auto;padding:1.5rem 1rem}.settings-title{font-family:var(--font-display);font-size:1.75rem;color:var(--text-primary);margin-bottom:1.25rem}.settings-edit-profile-btn{display:flex;align-items:center;width:100%;padding:1rem;background:var(--brand-teal);color:#fff;border:none;border-radius:12px;cursor:pointer;text-align:left;gap:.75rem;margin-bottom:1rem;transition:opacity .2s}.settings-edit-profile-btn:hover{opacity:.9}.settings-edit-icon{font-size:1.25rem}.settings-edit-text{flex:1;display:flex;flex-direction:column;gap:.15rem}.settings-edit-text strong{font-size:1rem}.settings-edit-text span{font-size:.8rem;opacity:.85}.settings-chevron{font-size:1.25rem;opacity:.7}.settings-badge{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border-radius:10px;margin-bottom:1.25rem}.settings-badge.founding{background:linear-gradient(135deg,#f59e0b20,#eab30820);border:1px solid #f59e0b40}.badge-emoji{font-size:1.5rem}.settings-badge strong{display:block;color:var(--text-primary);font-size:.95rem}.settings-badge span{color:var(--text-muted);font-size:.8rem}.settings-section{margin-bottom:1.5rem}.settings-section-title{font-family:var(--font-display);font-size:1.1rem;color:var(--text-primary);margin-bottom:.5rem;padding-bottom:.35rem;border-bottom:1px solid var(--border-color)}.settings-item{display:flex;align-items:center;justify-content:space-between;padding:.85rem 0;border-bottom:1px solid var(--border-color);gap:1rem}.settings-item-info{flex:1}.settings-item-title{display:block;color:var(--text-primary);font-size:.95rem;font-weight:500}.settings-item-desc{display:block;color:var(--text-muted);font-size:.78rem;margin-top:.2rem;line-height:1.3}.toggle-switch{position:relative;display:inline-block;width:48px;height:26px;flex-shrink:0}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--text-muted);border-radius:26px;transition:.3s}.toggle-slider:before{content:"";position:absolute;height:20px;width:20px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s;box-shadow:0 1px 3px #0003}.toggle-switch input:checked+.toggle-slider{background:var(--brand-teal)}.toggle-switch input:checked+.toggle-slider:before{transform:translate(22px)}.toggle-switch input:disabled+.toggle-slider{opacity:.5;cursor:not-allowed}.settings-link{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--border-color);color:var(--brand-cyan);text-decoration:none;font-size:.95rem;transition:opacity .2s}.settings-link:hover{opacity:.8}.settings-logout-btn{width:100%;padding:.85rem;background:#ef4444;color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;margin-top:.5rem;transition:opacity .2s}.settings-logout-btn:hover{opacity:.9}.edit-profile-page{max-width:600px;margin:0 auto;padding:1.5rem 1rem}.edit-profile-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem}.edit-profile-header h1{font-family:var(--font-display);font-size:1.5rem;color:var(--text-primary);margin:0}.edit-profile-back{background:none;border:none;color:var(--brand-teal);cursor:pointer;font-size:.95rem;padding:.3rem 0}.edit-profile-loading{text-align:center;padding:3rem;color:var(--text-muted)}.edit-profile-error{background:#ef444420;border:1px solid #ef444460;color:#ef4444;padding:.65rem .85rem;border-radius:8px;margin-bottom:1rem;font-size:.88rem}.edit-profile-success{background:#22c55e20;border:1px solid #22c55e60;color:#22c55e;padding:.65rem .85rem;border-radius:8px;margin-bottom:1rem;font-size:.88rem}.edit-avatar-section{display:flex;align-items:center;gap:1.25rem;margin-bottom:1.5rem;padding:1rem;background:var(--bg-secondary);border-radius:12px}.edit-avatar-preview{width:80px;height:80px;border-radius:50%;overflow:hidden;flex-shrink:0;border:3px solid var(--brand-teal)}.edit-avatar-img{width:100%;height:100%;object-fit:cover}.edit-avatar-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);font-size:2rem}.edit-avatar-actions{display:flex;flex-direction:column;gap:.5rem}.edit-avatar-upload-btn{background:var(--brand-teal);color:#fff;border:none;border-radius:8px;padding:.5rem 1rem;font-size:.85rem;font-weight:600;cursor:pointer;text-align:center;transition:opacity .2s}.edit-avatar-upload-btn:hover{opacity:.9}.edit-avatar-remove-btn{background:none;border:1px solid #ef444480;color:#ef4444;border-radius:8px;padding:.4rem 1rem;font-size:.8rem;cursor:pointer;transition:background .2s}.edit-avatar-remove-btn:hover{background:#ef444415}.edit-form{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.edit-field label{display:block;color:var(--text-muted);font-size:.82rem;font-weight:600;margin-bottom:.3rem;text-transform:uppercase;letter-spacing:.03em}.edit-field input{width:100%;padding:.65rem .85rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:.95rem;outline:none;transition:border .2s;box-sizing:border-box}.edit-field input:focus{border-color:var(--brand-teal)}.edit-field input::placeholder{color:var(--text-muted);opacity:.6}.edit-field-row{display:flex;gap:.75rem}.edit-field-row .edit-field{flex:1}.edit-save-btn{width:100%;padding:.85rem;background:var(--brand-teal);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:opacity .2s}.edit-save-btn:hover{opacity:.9}.edit-save-btn:disabled{opacity:.5;cursor:not-allowed}.prods-page{max-width:600px;margin:0 auto;padding:1.5rem 1rem}.prods-title{font-family:var(--font-display);font-size:1.75rem;color:var(--text-primary);margin-bottom:1rem}.prods-summary{background:var(--bg-card);border-radius:14px;padding:1rem;margin-bottom:1.25rem;box-shadow:var(--card-shadow)}.prods-stats-row{display:flex;justify-content:space-around;margin-bottom:.85rem;padding-bottom:.85rem;border-bottom:1px solid var(--border-color)}.prods-stat{display:flex;flex-direction:column;align-items:center;gap:.15rem}.prods-stat-value{font-family:var(--font-display);font-size:1.5rem;font-weight:700;color:var(--text-primary)}.prods-stat-label{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.prods-filters{display:flex;gap:.5rem;flex-wrap:wrap}.prods-filter-chip{padding:.4rem .85rem;border-radius:20px;border:1px solid var(--border-color);background:var(--bg-primary);color:var(--text-muted);font-size:.82rem;font-weight:500;cursor:pointer;transition:all .2s}.prods-filter-chip.active{background:var(--brand-teal);color:#fff;border-color:var(--brand-teal)}.prods-filter-chip:hover:not(.active){border-color:var(--brand-teal);color:var(--text-secondary)}.prods-loading{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem 0;color:var(--text-muted)}.prods-empty{text-align:center;padding:3rem 1rem}.prods-empty-emoji{font-size:3rem;display:block;margin-bottom:.75rem}.prods-empty-title{font-family:var(--font-display);font-size:1.25rem;color:var(--text-primary);margin-bottom:.4rem}.prods-empty-desc{color:var(--text-muted);font-size:.88rem;line-height:1.5}.prods-section-header{font-family:var(--font-display);font-size:.85rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;padding:.75rem 0 .4rem;margin-top:.5rem;border-bottom:1px solid var(--border-color);margin-bottom:.5rem}.prod-card{background:var(--bg-card);border-radius:12px;padding:1rem;margin-bottom:.65rem;box-shadow:var(--card-shadow);transition:box-shadow .2s}.prod-card:hover{box-shadow:var(--card-shadow-hover)}.prod-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem}.prod-user-info{display:flex;flex-direction:column;text-decoration:none}.prod-username{font-weight:700;color:var(--text-primary);font-size:.95rem}.prod-combo-badge{margin-left:.35rem;font-size:.85rem}.prod-display-name{color:var(--text-muted);font-size:.82rem}.prod-time{color:var(--text-muted);font-size:.78rem;white-space:nowrap}.prod-combo-indicator{background:#fff3e0;color:#e65100;padding:.45rem .65rem;border-radius:8px;font-size:.8rem;margin-bottom:.5rem;font-weight:500}[data-theme=dark] .prod-combo-indicator{background:#e65100aa;color:#fff3e0}.prod-streak-risk{display:flex;align-items:center;gap:.5rem;background:#fef3c7;border-left:3px solid #f59e0b;padding:.5rem .65rem;border-radius:0 8px 8px 0;margin-bottom:.5rem;font-size:.82rem}.prod-streak-risk strong{display:block;color:#92400e;font-size:.82rem}.prod-streak-risk span:last-child{margin-left:auto}.prod-streak-risk div span{color:#b45309;font-size:.78rem}[data-theme=dark] .prod-streak-risk{background:#78350f;border-left-color:#f59e0b}[data-theme=dark] .prod-streak-risk strong{color:#fde68a}[data-theme=dark] .prod-streak-risk div span{color:#fbbf24}.prod-streak-badges{display:flex;gap:.5rem;margin-bottom:.6rem;flex-wrap:wrap}.streak-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.3rem .6rem;border-radius:16px;font-size:.78rem;font-weight:600}.streak-badge.current{background:#ff6b3520;color:#ea580c}.streak-badge.best{background:#f59e0b20;color:#d97706}[data-theme=dark] .streak-badge.current{background:#ea580c30;color:#fb923c}[data-theme=dark] .streak-badge.best{background:#d9770630;color:#fbbf24}.prod-back-btn{width:100%;padding:.65rem;border-radius:10px;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-primary);font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.35rem}.prod-back-btn:hover:not(.disabled):not(:disabled){background:var(--brand-teal);color:#fff;border-color:var(--brand-teal)}.prod-back-btn.disabled{opacity:.5;cursor:not-allowed}.prod-cooldown{font-size:.75rem;color:var(--text-muted);margin-left:.35rem}.prod-btn-loading{color:var(--text-muted)}.notifs-page{max-width:600px;margin:0 auto;padding:1.5rem 1rem}.notifs-title{font-family:var(--font-display);font-size:1.75rem;color:var(--text-primary);margin-bottom:1rem}.notifs-loading{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem 0;color:var(--text-muted)}.notifs-empty{text-align:center;padding:3rem 1rem;color:var(--text-muted)}.notifs-empty-emoji{font-size:3rem;display:block;margin-bottom:.75rem}.notifs-empty-sub{font-size:.85rem;margin-top:.25rem}.notif-link{text-decoration:none;color:inherit;display:block}.notif-card{display:flex;gap:.75rem;padding:.85rem 1rem;background:var(--bg-card);border-radius:10px;margin-bottom:.5rem;box-shadow:var(--card-shadow);transition:box-shadow .2s,transform .15s;cursor:pointer}.notif-link:hover .notif-card,.notif-card:hover{box-shadow:var(--card-shadow-hover);transform:translateY(-1px)}.notif-icon{font-size:1.35rem;flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--badge-bg);border-radius:50%}.notif-body{flex:1;min-width:0}.notif-text{color:var(--text-primary);font-size:.9rem;line-height:1.4;margin-bottom:.15rem}.notif-preview{color:var(--text-muted);font-size:.8rem;line-height:1.35;margin-bottom:.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notif-time{color:var(--text-muted);font-size:.72rem}.notifs-load-more{display:block;width:100%;padding:.7rem;margin-top:.5rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:10px;color:var(--text-secondary);font-size:.88rem;font-weight:600;cursor:pointer;transition:background .2s}.notifs-load-more:hover{background:var(--brand-teal);color:#fff;border-color:var(--brand-teal)}.tf-page{max-width:600px;margin:0 auto;padding:1.5rem 1rem}.tf-title{font-family:var(--font-display);font-size:1.75rem;color:var(--text-primary);margin-bottom:1rem}.tf-stats-card{background:var(--bg-card);border-radius:14px;padding:1.25rem;margin-bottom:1.25rem;box-shadow:var(--card-shadow)}.tf-stats-row{display:flex;justify-content:space-around;margin-bottom:.85rem}.tf-stat{display:flex;flex-direction:column;align-items:center;gap:.1rem}.tf-stat-value{font-family:var(--font-display);font-size:1.5rem;font-weight:700;color:var(--text-primary)}.tf-stat-label{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.tf-league{display:flex;align-items:center;gap:.75rem;padding:.65rem .85rem;border-radius:10px;border:1px solid}.tf-league-emoji{font-size:1.75rem}.tf-league strong{display:block;font-size:.95rem}.tf-percentile{display:block;font-size:.78rem;color:var(--text-muted)}.tf-loading{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem 0;color:var(--text-muted)}.tf-error{text-align:center;padding:2rem;color:#ef4444}.tf-error button{margin-top:.75rem;padding:.5rem 1.25rem;background:var(--brand-teal);color:#fff;border:none;border-radius:8px;cursor:pointer}.tf-empty{text-align:center;padding:3rem 1rem}.tf-empty-emoji{font-size:3rem;display:block;margin-bottom:.75rem}.tf-empty-title{font-family:var(--font-display);font-size:1.2rem;color:var(--text-primary)}.tf-empty-desc{color:var(--text-muted);font-size:.88rem;margin-top:.3rem}.tf-friends-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.5rem}.tf-friend-card{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;background:var(--bg-card);border-radius:12px;box-shadow:var(--card-shadow);text-decoration:none;color:inherit;transition:box-shadow .2s,transform .15s}.tf-friend-card:hover{box-shadow:var(--card-shadow-hover);transform:translateY(-1px)}.tf-rank{font-family:var(--font-display);font-size:1.1rem;font-weight:700;color:var(--brand-amber);min-width:36px;text-align:center}.tf-friend-info{flex:1;display:flex;flex-direction:column}.tf-friend-name{font-weight:600;color:var(--text-primary);font-size:.95rem}.tf-mutual-badge{display:inline-block;margin-left:.5rem;font-size:.7rem;font-weight:700;background:#22c55e20;color:#16a34a;padding:.15rem .45rem;border-radius:6px;vertical-align:middle}[data-theme=dark] .tf-mutual-badge{background:#16a34a30;color:#4ade80}.tf-mutual-rank{font-size:.78rem;color:var(--text-muted);margin-top:.1rem}.tf-friend-chevron{color:var(--text-muted);font-size:1.25rem}.tf-section{margin-bottom:1rem}.tf-section-toggle{width:100%;padding:.75rem 1rem;background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary);font-family:var(--font-display);font-size:.95rem;font-weight:600;cursor:pointer;text-align:left;transition:background .2s}.tf-section-toggle:hover{background:var(--bg-secondary)}.tf-leaderboard{margin-top:.5rem;display:flex;flex-direction:column;gap:.35rem}.tf-lb-empty{text-align:center;padding:1.5rem;color:var(--text-muted);font-size:.88rem}.tf-lb-entry{display:flex;align-items:center;gap:.65rem;padding:.6rem .85rem;background:var(--bg-card);border-radius:8px;text-decoration:none;color:inherit;transition:background .15s}.tf-lb-entry:hover{background:var(--bg-secondary)}.tf-lb-rank{min-width:30px;text-align:center;font-weight:700;font-size:.9rem}.tf-lb-name{flex:1;color:var(--text-primary);font-weight:500;font-size:.9rem}.tf-lb-points{color:var(--text-muted);font-size:.82rem;font-weight:600}.tf-lb-tier{font-size:1.1rem}.tf-edit-btn{display:block;width:100%;padding:.75rem;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;border:none;border-radius:12px;font-family:var(--font-display);font-weight:700;font-size:.95rem;cursor:pointer;margin-bottom:1rem;transition:transform .15s,box-shadow .15s}.tf-edit-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px #1a9fb04d}.tfe-panel{background:var(--bg-card);border-radius:14px;padding:1.25rem;margin-bottom:1.25rem;box-shadow:var(--card-shadow)}.tfe-header h2{font-family:var(--font-display);font-size:1.2rem;color:var(--text-primary);margin:0 0 .25rem}.tfe-header p{color:var(--text-muted);font-size:.85rem;margin:0 0 1rem}.tfe-slots{display:flex;flex-direction:column;gap:.65rem;margin-bottom:1rem}.tfe-slot{display:flex;align-items:center;gap:.65rem}.tfe-rank{font-family:var(--font-display);font-weight:700;font-size:1.05rem;color:var(--brand-amber);min-width:32px;text-align:center}.tfe-slot-input{flex:1;position:relative}.tfe-selected{display:flex;align-items:center;justify-content:space-between;padding:.5rem .65rem;background:var(--bg-secondary);border:1px solid var(--brand-teal);border-radius:10px}.tfe-selected-user{display:flex;align-items:center;gap:.5rem}.tfe-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.tfe-avatar-ph{font-size:1.2rem}.tfe-selected-name{font-weight:600;font-size:.9rem;color:var(--text-primary)}.tfe-clear{background:none;border:none;font-size:1.1rem;color:var(--text-muted);cursor:pointer;padding:.2rem .4rem;border-radius:6px}.tfe-clear:hover{color:#e85d75;background:#e85d751a}.tfe-search-wrap{position:relative}.tfe-search-input{width:100%;padding:.55rem .75rem;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-primary);color:var(--text-primary);font-size:.9rem;outline:none;box-sizing:border-box;font-family:var(--font-body)}.tfe-search-input:focus{border-color:var(--brand-teal)}.tfe-search-input:disabled{opacity:.5}.tfe-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;box-shadow:var(--card-shadow-hover);z-index:100;max-height:240px;overflow-y:auto}.tfe-dropdown-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.55rem .75rem;border:none;background:none;color:var(--text-primary);font-size:.9rem;font-weight:600;cursor:pointer;text-align:left;font-family:var(--font-body);transition:background .1s}.tfe-dropdown-item:hover{background:var(--badge-bg)}.tfe-dropdown-name{color:var(--text-muted);font-weight:400;font-size:.82rem}.tfe-dropdown-loading{padding:.75rem;text-align:center;color:var(--text-muted);font-size:.85rem}.tfe-actions{display:flex;gap:.65rem}.tfe-save{flex:1;padding:.65rem;background:linear-gradient(135deg,var(--brand-teal),var(--brand-cyan));color:#fff;border:none;border-radius:10px;font-family:var(--font-display);font-weight:700;font-size:.92rem;cursor:pointer;transition:transform .15s}.tfe-save:hover:not(:disabled){transform:translateY(-1px)}.tfe-save:disabled{opacity:.5;cursor:default}.tfe-cancel{padding:.65rem 1rem;background:var(--bg-secondary);color:var(--text-secondary);border:1px solid var(--border-color);border-radius:10px;font-family:var(--font-display);font-weight:600;font-size:.92rem;cursor:pointer}.tfe-cancel:hover{background:var(--badge-bg)}.tfe-msg{margin-top:.75rem;padding:.55rem .85rem;border-radius:10px;font-size:.85rem;text-align:center}.tfe-msg-ok{background:#22c55e1a;color:#16a34a}.tfe-msg-err{background:#e85d751a;color:#e85d75}:root{--brand-cyan: #2cc5d4;--brand-teal: #1a9fb0;--brand-blue: #2a7dc6;--brand-amber: #f5a623;--brand-orange: #e8873a;--brand-brown: #8b5e3c;--font-display: "Fredoka", sans-serif;--font-body: "Nunito", sans-serif;--transition: .3s cubic-bezier(.4, 0, .2, 1)}:root{--bg-primary: #f0fafb;--bg-secondary: #ffffff;--bg-card: #ffffff;--text-primary: #1a2e35;--text-secondary: #4a6670;--text-muted: #7a9aa5;--border-color: rgba(26, 159, 176, .12);--card-shadow: 0 8px 32px rgba(26, 159, 176, .08), 0 2px 8px rgba(0,0,0,.04);--card-shadow-hover: 0 16px 48px rgba(26, 159, 176, .14), 0 4px 12px rgba(0,0,0,.06);--glow: rgba(44, 197, 212, .06);--input-bg: #f5fbfc;--badge-bg: rgba(44, 197, 212, .1)}[data-theme=dark]{--bg-primary: #0c1a1e;--bg-secondary: #12282e;--bg-card: #162d34;--text-primary: #e8f4f6;--text-secondary: #a0c4cc;--text-muted: #6a949e;--border-color: rgba(44, 197, 212, .12);--card-shadow: 0 8px 32px rgba(0, 0, 0, .3), 0 2px 8px rgba(44, 197, 212, .05);--card-shadow-hover: 0 16px 48px rgba(44, 197, 212, .1), 0 4px 12px rgba(0,0,0,.4);--glow: rgba(44, 197, 212, .04);--input-bg: #1a3640;--badge-bg: rgba(44, 197, 212, .08)}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:var(--font-body);background:var(--bg-primary);color:var(--text-primary);line-height:1.6;overflow-x:hidden;transition:background var(--transition),color var(--transition)}a{color:inherit}.spinner{width:32px;height:32px;border:3px solid var(--border-color);border-top-color:var(--brand-teal);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* ===== HERDS PAGE ===== */
.herds-page { max-width: 680px; margin: 0 auto; padding: 20px; }
.herds-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.herds-header h1 { font-size: 24px; font-weight: bold; margin: 0; }
.herds-create-btn { background: var(--primary, #7c3aed); color: #fff; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 600; cursor: pointer; font-size: 14px; }
.herds-create-btn:hover { opacity: 0.9; }
.herds-search { margin-bottom: 12px; }
.herds-search-input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 15px; box-sizing: border-box; }
.herds-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.herds-tab { flex: 1; text-align: center; padding: 10px; background: none; border: none; color: var(--text-secondary); font-weight: 600; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.herds-tab.active { color: var(--primary, #7c3aed); border-bottom-color: var(--primary, #7c3aed); }
.herds-loading { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.herds-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.herds-list { display: flex; flex-direction: column; gap: 12px; }
.herd-card { display: block; text-decoration: none; color: inherit; background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border); transition: transform 0.15s; }
.herd-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.herd-card-header { display: flex; align-items: center; gap: 12px; }
.herd-card-icon { width: 50px; height: 50px; border-radius: 25px; background: var(--primary-bg, rgba(124,58,237,0.1)); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; flex-shrink: 0; }
.herd-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }
.herd-card-info { flex: 1; min-width: 0; }
.herd-card-name { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.herd-lock { font-size: 12px; }
.herd-card-members { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.herd-role-badge { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.herd-role-owner { background: #FFD700; }
.herd-role-moderator { background: var(--primary, #7c3aed); }
.herd-role-member { background: #34C759; }
.herd-card-desc { font-size: 14px; color: var(--text-secondary); margin-top: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.herd-card-stats { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }

/* ===== HERD DETAIL PAGE ===== */
.herd-detail-page { max-width: 680px; margin: 0 auto; padding: 20px; }
.herd-detail-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.herd-detail-nav h1 { margin: 0; font-size: 22px; }
.herd-detail-info { background: var(--card-bg); border-radius: 12px; padding: 20px; border: 1px solid var(--border); margin-bottom: 20px; }
.herd-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.herd-detail-desc { font-size: 15px; line-height: 1.5; margin: 12px 0; }
.herd-detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.join-btn { background: var(--primary, #7c3aed); color: #fff; border: none; padding: 10px 24px; border-radius: 20px; font-weight: 600; cursor: pointer; }
.leave-btn { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); padding: 10px 24px; border-radius: 20px; font-weight: 600; cursor: pointer; }
.herd-feed h2 { font-size: 18px; margin-bottom: 12px; }

/* ===== PASTURES PAGE ===== */
.pastures-page { max-width: 680px; margin: 0 auto; padding: 20px; }
.pastures-header-card { text-align: center; background: var(--card-bg); border-radius: 16px; padding: 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.pastures-header-card h1 { font-size: 22px; margin: 12px 0 8px; }
.pastures-header-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.4; margin: 0; }
.pastures-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pasture-card { background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.pasture-info-row { display: flex; justify-content: space-between; align-items: flex-start; }
.pasture-info { flex: 1; }
.pasture-name-row { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.pasture-default-badge { background: #22c55e; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.pasture-meta { font-size: 14px; color: var(--text-secondary); margin-top: 4px; margin-left: 28px; }
.pasture-actions { display: flex; gap: 8px; }
.pasture-edit-btn, .pasture-delete-btn { width: 36px; height: 36px; border-radius: 18px; border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.pasture-edit-btn { background: var(--border); }
.pasture-delete-btn { background: #fee2e2; }
.pasture-edit-row { display: flex; gap: 8px; align-items: center; }
.pasture-edit-input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 16px; }
.pasture-edit-row button, .pasture-create-form button { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; font-weight: 600; }
.pasture-save-btn { background: #22c55e !important; color: #fff !important; border: none !important; }
.pasture-create-btn { display: block; width: 100%; padding: 16px; background: #22c55e; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; text-align: center; }
.pasture-create-btn:hover { opacity: 0.9; }
.pasture-create-form { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* ===== HERD COMPOSE ===== */
.herd-compose { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.herd-compose-input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg, #fff); color: var(--text); font-size: 15px; font-family: inherit; resize: vertical; min-height: 80px; box-sizing: border-box; }
.herd-compose-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.herd-compose-count { font-size: 13px; color: var(--text-secondary); }

/* ===== HERD BANNER ===== */
.herd-banner { width: 100%; height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.05)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.herd-banner img { width: 100%; height: 100%; object-fit: cover; }
.herd-banner-placeholder { opacity: 0.5; }

/* ===== HERD RULES ===== */
.herd-rules { margin-top: 12px; background: var(--bg, rgba(0,0,0,0.03)); border-radius: 10px; padding: 2px; }
.herd-rules summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.herd-rules p { padding: 0 12px 12px; font-size: 14px; line-height: 1.5; margin: 0; color: var(--text-secondary); }

/* ===== HERD INVITE & MEMBERS PANEL ===== */
.herd-invite-panel, .herd-members-panel, .pasture-members-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.herd-invite-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.herd-invite-header h3 { margin: 0; font-size: 16px; }
.herd-invite-header button { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-secondary); padding: 4px 8px; }
.herd-invite-results { display: flex; flex-direction: column; gap: 2px; max-height: 350px; overflow-y: auto; }
.herd-invite-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.herd-invite-row:last-child { border-bottom: none; }
.herd-invite-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.herd-invite-avatar { width: 40px; height: 40px; border-radius: 20px; background: rgba(124,58,237,0.1); display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.herd-invite-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ===== PASTURE ADD SECTION ===== */
.pasture-add-section { background: var(--bg, rgba(0,0,0,0.02)); border-radius: 10px; padding: 12px; margin-bottom: 12px; border: 1px dashed var(--border); }
.pasture-card-active { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }

/* ===== DETAIL LOADING/ERROR ===== */
.detail-loading { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.detail-error { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.detail-error a { color: var(--primary, #7c3aed); }

/* ===== FEED REFRESH BUTTON ===== */
.feed-refresh-btn { background: none; border: 1px solid var(--border); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.feed-refresh-btn:hover:not(:disabled) { background: var(--card-bg); color: var(--text); border-color: var(--text-secondary); transform: rotate(180deg); }
.feed-refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== HERD DETAIL — REDESIGN ===== */
.herd-detail-page { max-width: 680px; margin: 0 auto; }

/* Hero banner with overlay */
.hd-hero { position: relative; border-radius: 0 0 16px 16px; overflow: hidden; margin-bottom: 0; }
.hd-hero-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hd-hero-gradient { height: 120px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.hd-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.2) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 20px; }
.hd-back { color: #fff; text-decoration: none; font-size: 22px; position: absolute; top: 12px; left: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: 50%; backdrop-filter: blur(4px); transition: background 0.2s; }
.hd-back:hover { background: rgba(0,0,0,0.5); }
.hd-hero-text { color: #fff; }
.hd-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.hd-lock { font-size: 14px; vertical-align: middle; }
.hd-stats-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.85); flex-wrap: wrap; }
.hd-stat strong { font-weight: 700; color: #fff; }
.hd-stat-dot { opacity: 0.5; }
.hd-role { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.hd-role-owner { background: rgba(255,215,0,0.3); color: #FFD700; }
.hd-role-moderator { background: rgba(124,58,237,0.3); color: #a78bfa; }
.hd-role-member { background: rgba(52,199,89,0.3); color: #6ee7b7; }

/* Body / info */
.hd-body { padding: 16px 20px 0; }
.hd-desc { font-size: 15px; line-height: 1.5; color: var(--text); margin: 0 0 12px; }
.hd-rules { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hd-rules summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--text-secondary); background: var(--card-bg); list-style: none; display: flex; align-items: center; gap: 6px; }
.hd-rules summary::before { content: "▸"; transition: transform 0.2s; display: inline-block; }
.hd-rules[open] summary::before { transform: rotate(90deg); }
.hd-rules p { padding: 0 14px 12px; font-size: 14px; line-height: 1.5; margin: 0; color: var(--text-secondary); }

/* Action buttons */
.hd-actions { padding: 4px 0 16px; }
.hd-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap; }
.hd-btn-primary { background: var(--primary, #7c3aed); color: #fff; }
.hd-btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.hd-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.hd-btn-ghost { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.hd-btn-ghost:hover { background: var(--border); }
.hd-btn-invite { color: #34C759; border-color: rgba(52,199,89,0.3); }
.hd-btn-invite:hover { background: rgba(52,199,89,0.08); }
.hd-btn-danger { color: var(--text-secondary); }
.hd-btn-danger:hover { color: #FF3B30; border-color: rgba(255,59,48,0.3); background: rgba(255,59,48,0.06); }
.hd-btn-active { background: var(--primary, #7c3aed) !important; color: #fff !important; border-color: transparent !important; }
.hd-btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 16px; }

/* Compose */
.hd-compose { margin: 0 20px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.hd-compose-input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--background, #fff); color: var(--text); font-size: 15px; font-family: inherit; resize: vertical; min-height: 60px; box-sizing: border-box; }
.hd-compose-input:focus { outline: none; border-color: var(--primary, #7c3aed); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.hd-compose-tools { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.hd-compose-footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* Panels (members, invite) */
.hd-panel { margin: 0 20px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hd-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.hd-panel-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.hd-panel-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-secondary); padding: 2px 6px; border-radius: 6px; }
.hd-panel-close:hover { background: var(--border); }
.hd-panel-search { width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font-size: 14px; box-sizing: border-box; outline: none; }
.hd-panel-list { max-height: 320px; overflow-y: auto; }
.hd-panel-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.hd-panel-row:last-child { border-bottom: none; }
.hd-panel-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.hd-panel-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(124,58,237,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; flex-shrink: 0; }
.hd-panel-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hd-panel-username { font-size: 12px; color: var(--text-secondary); }
.hd-panel-empty { text-align: center; color: var(--text-secondary); padding: 20px; font-size: 14px; margin: 0; }

/* Feed section */
.hd-feed-section { padding: 0 20px 20px; }
.hd-feed-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.hd-feed-header h2 { margin: 0; font-size: 17px; font-weight: 700; padding-top: 12px; }
.hd-feed-count { font-size: 13px; color: var(--text-secondary); padding-top: 12px; }
.hd-feed-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.hd-feed-empty span { font-size: 40px; display: block; margin-bottom: 8px; }
.hd-feed-empty p { margin: 0 0 16px; font-size: 15px; }

/* ===== MESSAGES ===== */
.msg-page { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 60px); }
.msg-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; position: sticky; top: 0; background: var(--background, #fff); z-index: 10; }
.msg-topbar h2 { margin: 0; font-size: 18px; font-weight: 700; }
.msg-back { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); padding: 4px 8px; border-radius: 8px; }
.msg-back:hover { background: var(--border); }
.msg-topbar-user { cursor: pointer; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.msg-topbar-user strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-lock { font-size: 12px; }

/* Inbox */
.msg-inbox-list { flex: 1; overflow-y: auto; }
.msg-thread-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: none; border-bottom: 1px solid var(--border); background: var(--background, #fff); cursor: pointer; text-align: left; transition: background 0.15s; }
.msg-thread-item:hover { background: var(--card-bg); }
.msg-thread-item.msg-unread { background: var(--card-bg); border-left: 3px solid var(--primary, #7c3aed); }
.msg-thread-info { flex: 1; min-width: 0; }
.msg-thread-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-thread-top strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-time { font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }
.msg-thread-preview { font-size: 13px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.msg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: var(--text-secondary); gap: 12px; }
.msg-empty span { font-size: 48px; }

/* Thread */
.msg-thread { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.msg-thread-empty { text-align: center; color: var(--text-secondary); padding: 60px 20px; font-size: 15px; }
.msg-thread-empty-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 60px 20px; color: var(--text-secondary); gap: 8px; }

/* Message rows - iOS style alignment */
.msg-row { display: flex; margin-bottom: 4px; padding: 0 12px; }
.msg-row-mine { justify-content: flex-end; }
.msg-row-theirs { justify-content: flex-start; }
.msg-bubble-wrap { max-width: 80%; min-width: 60px; }
.msg-row-mine .msg-bubble-wrap { align-items: flex-end; display: flex; flex-direction: column; }
.msg-row-theirs .msg-bubble-wrap { align-items: flex-start; display: flex; flex-direction: column; }

/* Bubbles */
.msg-bubble { padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; word-break: break-word; }
.msg-mine { background: #007AFF; color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs { background: var(--card-bg, #E5E5EA); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-bubble-text { white-space: pre-wrap; }

/* Meta line (time + encryption) */
.msg-bubble-meta { display: flex; align-items: center; gap: 4px; padding: 2px 4px; margin-top: 3px; font-size: 11px; opacity: 0.6; color: var(--text-secondary); }
.msg-row-mine .msg-bubble-meta { justify-content: flex-end; }
.msg-encrypted-icon { font-size: 10px; }

/* Media in messages */
.msg-media-thumb { max-width: 200px; max-height: 200px; border-radius: 12px; cursor: pointer; object-fit: cover; display: block; margin-bottom: 4px; background: var(--card-bg, #E5E5EA); }
.msg-media-wrap { position: relative; cursor: pointer; display: inline-block; margin-bottom: 4px; }
.msg-media-wrap video { max-width: 200px; max-height: 150px; border-radius: 12px; object-fit: cover; background: #000; }
.msg-media-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.5); border-radius: 20px; padding: 8px; font-size: 20px; pointer-events: none; }
.msg-voice-note { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--card-bg, #E5E5EA); border-radius: 16px; min-width: 180px; margin-bottom: 4px; }
.msg-voice-note audio { flex: 1; height: 36px; }
.msg-voice-dur { font-size: 12px; color: var(--text-secondary); }

/* Reaction button on hover */
.msg-bubble-wrap { position: relative; }
.msg-react-btn { position: absolute; top: -4px; opacity: 0; background: var(--background, #fff); border: 1px solid var(--border, #e0e0e0); border-radius: 50%; width: 28px; height: 28px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.12); z-index: 5; padding: 0; }
.msg-bubble-wrap:hover .msg-react-btn { opacity: 1; }
.msg-row-mine .msg-react-btn { left: -32px; }
.msg-row-theirs .msg-react-btn { right: -32px; }

/* Reactions */
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; margin-bottom: 2px; }
.msg-reaction-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 12px; background: var(--card-bg, #F2F2F7); font-size: 14px; cursor: pointer; transition: all 0.15s; border: 1px solid transparent; user-select: none; }
.msg-reaction-pill:hover { filter: brightness(0.95); transform: scale(1.05); }
.msg-reaction-mine { background: rgba(0,122,255,0.12); border-color: #007AFF; }
.msg-reaction-count { font-size: 12px; color: var(--text-secondary); }

/* Reaction picker overlay */
.msg-reaction-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.msg-reaction-picker { background: var(--background, #fff); border-radius: 24px; padding: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.msg-reaction-row { display: flex; gap: 4px; }
.msg-reaction-opt { background: none; border: none; font-size: 28px; padding: 8px; border-radius: 20px; cursor: pointer; transition: all 0.15s; }
.msg-reaction-opt:hover { transform: scale(1.2); }
.msg-reaction-opt-sel { background: rgba(0,122,255,0.12); }

/* Media + button in input bar */
.msg-media-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg, #E5E5EA); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; font-weight: 600; color: var(--text); flex-shrink: 0; transition: background 0.15s; align-self: flex-end; }
.msg-media-btn:hover { filter: brightness(0.9); }

/* Selected media preview bar */
.msg-media-preview-bar { display: flex; align-items: center; padding: 8px 16px; gap: 12px; background: var(--card-bg, #F2F2F7); border-top: 1px solid var(--border); }
.msg-media-preview-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.msg-media-preview-label { flex: 1; font-size: 14px; color: var(--text-secondary); }
.msg-media-preview-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); padding: 4px 8px; }

/* Fullscreen media overlay */
.msg-fullscreen-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.msg-fullscreen-content { position: relative; max-width: 90vw; max-height: 90vh; }
.msg-fullscreen-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 8px; z-index: 10; }
.msg-fullscreen-media { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }

/* Topbar avatar */
.msg-topbar-avatar { width: 32px !important; height: 32px !important; min-width: 32px; min-height: 32px; border-radius: 50%; object-fit: cover; margin-right: 4px; flex-shrink: 0; }
.msg-topbar-avatar-ph { background: var(--card-bg, #E5E5EA); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.msg-verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #007AFF; color: #fff; font-size: 10px; font-weight: 700; margin-left: 4px; }

.msg-input-bar { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--background, #fff); flex-shrink: 0; position: sticky; bottom: 0; align-items: flex-end; }
.msg-input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 22px; font-size: 16px; background: var(--card-bg); color: var(--text); outline: none; }
.msg-input:focus { border-color: #007AFF; }
.msg-send-btn { width: 36px; height: 36px; border-radius: 50%; background: #007AFF; color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.15s; }
.msg-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.msg-send-btn:hover:not(:disabled) { filter: brightness(1.1); }

/* Keys banner */
.msg-keys-banner { padding: 10px 20px; background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.15)); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary, #7c3aed); text-align: center; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.msg-keys-banner:hover { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(124,58,237,0.2)); }
.msg-keys-card { padding: 24px 20px; text-align: center; }
.msg-keys-card h3 { margin: 12px 0 8px; font-size: 18px; }
.msg-keys-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 16px; }
.msg-keys-status { padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin: 12px 0; display: inline-block; }
.msg-keys-ok { background: rgba(52,199,89,0.1); color: #34C759; }
.msg-keys-none { background: rgba(255,59,48,0.1); color: #FF3B30; }
.msg-keys-section { text-align: left; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.msg-keys-section h4 { margin: 0 0 6px; font-size: 15px; }
.msg-keys-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: monospace; background: var(--card-bg); color: var(--text); resize: vertical; box-sizing: border-box; margin: 8px 0; }
.msg-keys-preview { display: block; padding: 8px 12px; background: var(--card-bg); border-radius: 8px; font-size: 12px; color: var(--text-secondary); word-break: break-all; }

/* Compose */
.msg-compose { padding: 20px; flex: 1; }
.msg-compose-to { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.msg-compose-to label { font-size: 14px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.msg-compose-search { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--card-bg); color: var(--text); outline: none; }
.msg-compose-search:focus { border-color: var(--primary, #7c3aed); }
.msg-compose-chip { display: flex; align-items: center; gap: 8px; background: rgba(52,199,89,0.1); border: 1px solid rgba(52,199,89,0.3); border-radius: 20px; padding: 6px 8px 6px 14px; }
.msg-compose-chip button { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 14px; padding: 2px 4px; }
.msg-compose-results { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 12px; max-height: 200px; overflow-y: auto; }
.msg-compose-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border); background: var(--card-bg); cursor: pointer; text-align: left; color: var(--text); }
.msg-compose-result:hover { background: var(--border); }
.msg-compose-result:last-child { border-bottom: none; }
.msg-compose-body { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: var(--card-bg); color: var(--text); font-family: inherit; resize: vertical; min-height: 120px; box-sizing: border-box; outline: none; }
.msg-compose-body:focus { border-color: var(--primary, #7c3aed); }
.msg-compose-body:disabled { opacity: 0.5; }
.msg-compose-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ===== TOS MODAL ===== */
.tos-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tos-modal { background: var(--card-bg, #fff); border-radius: 16px; padding: 32px 28px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: tosSlideIn 0.3s ease-out; }
@keyframes tosSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tos-logo { margin-bottom: 16px; }
.tos-logo img { width: 72px; height: 72px; border-radius: 16px; }
.tos-modal h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--text); }
.tos-modal > p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 20px; }
.tos-links { text-align: left; margin-bottom: 20px; }
.tos-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 14px; color: var(--text); line-height: 1.4; }
.tos-check:hover { background: rgba(124,58,237,0.04); }
.tos-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary, #7c3aed); cursor: pointer; flex-shrink: 0; }
.tos-check a { color: var(--primary, #7c3aed); text-decoration: underline; font-weight: 600; }
.tos-accept-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; background: var(--primary, #7c3aed); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: filter 0.15s, opacity 0.15s; margin-bottom: 10px; }
.tos-accept-btn:hover:not(:disabled) { filter: brightness(1.1); }
.tos-accept-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tos-decline-btn { width: 100%; padding: 10px; border: none; border-radius: 10px; background: transparent; color: var(--text-secondary); font-size: 14px; cursor: pointer; }
.tos-decline-btn:hover { color: #FF3B30; background: rgba(255,59,48,0.06); }

/* ===== LOGIN FOOTER ===== */
.login-footer { margin-top: 24px; text-align: center; }
.login-footer-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.login-footer-links a { color: var(--text-secondary); font-size: 12px; text-decoration: none; transition: color 0.15s; }
.login-footer-links a:hover { color: var(--primary, #7c3aed); text-decoration: underline; }
.login-footer-links span { color: var(--text-secondary); opacity: 0.4; font-size: 10px; }
.login-copyright { font-size: 11px; color: var(--text-secondary); opacity: 0.5; margin: 0; }
.threaded-replies{padding-bottom:1rem}.thread-row{transition:margin-left .2s ease}.thread-row .neigh-card{border-bottom:none;padding:.65rem 1rem}.thread-row.depth-0>.thread-row-inner>.thread-reply-body>.neigh-card{padding:.85rem 1.25rem}.thread-row-inner{position:relative}.thread-line{position:absolute;left:-12px;top:0;bottom:0;width:2px;background:var(--border-color);opacity:.5;border-radius:1px}.thread-row.depth-1 .thread-line{left:-12px}.thread-row.depth-2 .thread-line{left:-12px}.thread-row.depth-3 .thread-line{left:-12px}.thread-row.depth-4 .thread-line{left:-12px}.thread-row.depth-0{border-bottom:1px solid var(--border-color)}.thread-row.depth-0:last-child{border-bottom:none}.thread-responding-to{display:flex;align-items:center;gap:.25rem;padding:.25rem 1.25rem 0;font-size:.78rem;color:var(--text-muted)}.thread-responding-to span{opacity:.8}.thread-responding-link{color:var(--brand-teal);text-decoration:none;font-weight:600}.thread-responding-link:hover{text-decoration:underline}.thread-toggle-btn{display:inline-flex;align-items:center;margin:0 1.25rem .65rem;padding:.35rem .85rem;border-radius:999px;border:none;background:var(--badge-bg);color:var(--brand-teal);font-family:var(--font-display);font-weight:600;font-size:.8rem;cursor:pointer;transition:background .15s,transform .1s}.thread-toggle-btn:hover{background:var(--brand-teal);color:#fff;transform:translateY(-1px)}.thread-row .neigh-avatar img{width:36px;height:36px}.thread-row.depth-0 .neigh-avatar img{width:42px;height:42px}.thread-row .avatar-placeholder{width:36px;height:36px;font-size:1.1rem}.thread-row.depth-0 .avatar-placeholder{width:42px;height:42px;font-size:1.2rem}

/* ===== LIVE STREAMS ===== */
.live-page{padding:1.25rem;max-width:800px;margin:0 auto}
.live-header{margin-bottom:1.5rem}
.live-header-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.live-header h1{font-size:1.5rem;font-weight:700;color:var(--text);margin:0}
.live-header-sub{font-size:.85rem;color:var(--text-secondary);margin-top:.35rem}
.go-live-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1.2rem;border-radius:20px;background:#e53935;color:#fff;font-weight:700;font-size:.85rem;text-decoration:none;transition:filter .15s,transform .1s}
.go-live-btn:hover{filter:brightness(1.15);transform:translateY(-1px)}
.go-live-btn.lg{padding:.75rem 1.6rem;font-size:1rem;border-radius:25px}
.live-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;padding:2rem}
.live-empty-emoji{font-size:4rem;margin-bottom:1rem}
.live-empty h2{font-size:1.25rem;font-weight:700;color:var(--text);margin:0 0 .5rem}
.live-empty p{font-size:1rem;color:var(--text-secondary);margin:0 0 1.5rem}
.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem}
.live-card{text-decoration:none;border-radius:12px;overflow:hidden;background:var(--card-bg);transition:transform .15s,box-shadow .15s}
.live-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.12)}
.live-thumb{position:relative;aspect-ratio:16/9;background:#1a1a2e;overflow:hidden}
.live-thumb img{width:100%;height:100%;object-fit:cover}
.live-thumb-ph{display:flex;align-items:center;justify-content:center;height:100%;font-size:3rem}
.live-badge-pill{display:inline-flex;align-items:center;gap:4px;background:#e53935;color:#fff;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:4px;position:absolute;top:8px;left:8px;letter-spacing:.5px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#fff;animation:livePulse 1.5s ease-in-out infinite}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:.4}}
.live-viewers-pill{position:absolute;bottom:8px;left:8px;background:rgba(0,0,0,.7);color:#fff;font-size:.72rem;font-weight:600;padding:3px 8px;border-radius:4px}
.live-dur-pill{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.7);color:#fff;font-size:.72rem;padding:3px 8px;border-radius:4px}
.live-card-info{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem}
.live-card-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}
.live-card-title{font-size:.9rem;font-weight:600;color:var(--text);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.live-card-user{font-size:.8rem;color:var(--text-secondary);margin-top:.15rem}

/* ===== WATCH STREAM ===== */
.watch-page{display:flex;flex-direction:column;height:calc(100vh - 60px)}
.watch-loading,.watch-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:.75rem;padding:2rem;text-align:center}
.watch-loading p,.watch-error p{color:var(--text-secondary)}
.watch-error h2{color:var(--text);font-size:1.2rem;margin:0}
.watch-error div:first-child{font-size:3rem}
.watch-conn-state{font-size:.8rem;color:var(--text-secondary);opacity:.7}
.watch-error-btns{display:flex;gap:.75rem;margin-top:.5rem}
.watch-back-btn{padding:.6rem 1.2rem;border-radius:8px;background:var(--badge-bg);color:var(--text);text-decoration:none;font-weight:600;font-size:.85rem;transition:filter .15s}
.watch-retry-btn{padding:.6rem 1.2rem;border-radius:8px;background:var(--primary,#7c3aed);color:#fff;border:none;font-weight:600;font-size:.85rem;cursor:pointer}
.watch-video-wrap{position:relative;width:100%;aspect-ratio:16/9;background:#000;flex-shrink:0;overflow:hidden}
.watch-video{width:100%;height:100%;object-fit:contain;background:#000}
.watch-video-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#fff;gap:.5rem}
.watch-overlay-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:.5rem;padding:10px 12px;background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,transparent 100%)}
.watch-overlay-top .live-badge-pill{position:static}
.watch-overlay-top .live-viewers-pill{position:static}
.watch-close-btn{width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px;font-weight:700;margin-right:.25rem}
.watch-floats{position:absolute;bottom:40px;right:16px;width:50px;height:220px;pointer-events:none;overflow:visible}
.watch-float-emoji{position:absolute;bottom:0;font-size:1.6rem;animation:floatUp 2.8s ease-out forwards;transform:translateX(var(--fx,0))}
@keyframes floatUp{0%{opacity:1;transform:translateY(0) translateX(var(--fx,0)) scale(.6)}15%{transform:translateY(-30px) translateX(var(--fx,0)) scale(1.15)}100%{opacity:0;transform:translateY(-220px) translateX(calc(var(--fx,0) + 15px)) scale(1)}}
.watch-info{flex:1;overflow-y:auto;padding:1rem 1.25rem}
.watch-streamer{display:flex;align-items:center;gap:.75rem;margin-bottom:.85rem}
.watch-streamer-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}
.watch-streamer-info{flex:1}
.watch-streamer-name{font-weight:700;font-size:.95rem;color:var(--text)}
.watch-streamer-user{font-size:.82rem;color:var(--text-secondary)}
.watch-duration{font-size:.78rem;color:var(--text-secondary);white-space:nowrap}
.watch-title{font-size:1.1rem;font-weight:600;color:var(--text);margin:0 0 1rem}
.watch-actions{display:flex;gap:.5rem;margin-bottom:.75rem}
.watch-action-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.55rem 1rem;border-radius:10px;border:none;background:var(--badge-bg);color:var(--text);font-weight:600;font-size:.82rem;cursor:pointer;text-decoration:none;transition:all .15s}
.watch-action-btn:hover{filter:brightness(1.1)}
.watch-action-btn.danger{background:#e53935;color:#fff}
.watch-action-btn.active{background:var(--primary,#7c3aed);color:#fff}
.watch-reaction-picker{display:flex;justify-content:space-around;padding:.7rem;margin-bottom:.75rem;border-radius:12px;background:var(--badge-bg);border:1px solid var(--border-color)}
.watch-reaction-btn{padding:.35rem;border:none;background:none;font-size:1.6rem;cursor:pointer;transition:transform .12s}
.watch-reaction-btn:hover{transform:scale(1.3)}
.watch-chat{display:flex;flex-direction:column;flex:1;min-height:0}
.watch-chat-msgs{flex:1;overflow-y:auto;max-height:280px;padding:.5rem;border-radius:10px;background:var(--badge-bg)}
.watch-chat-row{display:flex;flex-wrap:wrap;gap:.35rem;padding:.3rem .5rem;font-size:.82rem}
.watch-chat-user{font-weight:700;color:var(--primary,#7c3aed)}
.watch-chat-text{color:var(--text)}
.watch-chat-input-row{display:flex;gap:.5rem;padding:.65rem 0 0;border-top:1px solid var(--border-color);margin-top:.5rem}
.watch-chat-input{flex:1;height:38px;border-radius:20px;padding:0 14px;font-size:.85rem;border:1px solid var(--border-color);background:var(--bg);color:var(--text);outline:none}
.watch-chat-input:focus{border-color:var(--primary,#7c3aed)}
.watch-chat-send{width:38px;height:38px;border-radius:50%;border:none;background:#007AFF;color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:filter .15s}
.watch-chat-send:hover{filter:brightness(1.15)}

/* ===== GO LIVE ===== */
.golive-page{display:flex;flex-direction:column;height:calc(100vh - 60px);background:#000}
.golive-video-wrap{position:relative;flex:1;overflow:hidden;min-height:300px}
.golive-video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.golive-overlay-top{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:.5rem}
.golive-overlay-top .live-badge-pill{position:static}
.golive-overlay-top .live-viewers-pill{position:static}
.golive-connecting{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.7);color:#fff;gap:.75rem}
.golive-close-btn{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:16px;font-weight:700}
.golive-chat-overlay{position:absolute;bottom:12px;left:12px;right:70px;max-height:180px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
.golive-chat-row{display:flex;flex-wrap:wrap;gap:.3rem;padding:3px 8px;background:rgba(0,0,0,.5);border-radius:6px;margin-bottom:3px;font-size:.8rem;color:#fff}
.golive-chat-user{color:#ffd700;font-weight:700}
.golive-controls{background:rgba(0,0,0,.92);padding:1rem 1.25rem 1.5rem}
.golive-title-input{width:100%;padding:.75rem 1rem;border-radius:12px;border:none;background:#333;color:#fff;font-size:.95rem;outline:none;margin-bottom:.85rem;box-sizing:border-box}
.golive-title-input::placeholder{color:#888}
.golive-btn-row{display:flex;gap:.75rem}
.golive-cancel-btn{flex:1;padding:.85rem;border-radius:12px;background:#333;color:#fff;text-decoration:none;text-align:center;font-weight:700;font-size:.95rem;transition:filter .15s}
.golive-cancel-btn:hover{filter:brightness(1.2)}
.golive-start-btn{flex:2;padding:.85rem;border-radius:12px;background:#dc2626;color:#fff;border:none;font-weight:800;font-size:.95rem;cursor:pointer;transition:filter .15s}
.golive-start-btn:hover:not(:disabled){filter:brightness(1.1)}
.golive-start-btn:disabled{background:#666;cursor:not-allowed}
.golive-live-controls{display:flex;align-items:center;gap:1rem}
.golive-live-info{flex:1}
.golive-live-title{color:#fff;font-size:.95rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.golive-live-chat-count{color:#aaa;font-size:.78rem;margin-top:.2rem}
.golive-end-btn{padding:.75rem 1.25rem;border-radius:12px;background:#dc2626;color:#fff;border:none;font-weight:800;font-size:.95rem;cursor:pointer;transition:filter .15s}
.golive-end-btn:hover{filter:brightness(1.1)}

/* Live nav active state */
.nav-item.active svg circle[fill="currentColor"]{fill:#e53935}

/* Game stream landscape mode */
.game-stream{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;background:#000;display:flex;flex-direction:column}
.game-stream .golive-video-wrap{flex:1;min-height:0}
.game-stream .golive-video{object-fit:contain}
.game-stream .golive-controls{padding:.5rem 1rem;background:rgba(0,0,0,.85);backdrop-filter:blur(8px)}

/* Fullscreen button on watch page */
.watch-fs-btn{background:rgba(0,0,0,.55);border:none;color:#fff;font-size:1.1rem;width:32px;height:32px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;flex-shrink:0}
.watch-fs-btn:hover{background:rgba(255,255,255,.2)}

/* Native fullscreen: video fills screen */
.watch-video:fullscreen{width:100vw;height:100vh;object-fit:contain;background:#000}
.watch-video:-webkit-full-screen{width:100vw;height:100vh;object-fit:contain;background:#000}

@media(max-width:768px){
.live-grid{grid-template-columns:1fr}
.watch-page{height:calc(100vh - 56px)}
.golive-page{height:calc(100vh - 56px)}
}
