.optimistic-toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: rgba(33, 33, 33, 0.9);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.optimistic-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.optimistic-toast__icon {
  width: 18px;
  height: 18px;
}

.optimistic-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: optimistic-spin 0.9s linear infinite;
}

@keyframes optimistic-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.frame-option:focus{
  outline:2px solid #6dffb0;
  outline-offset:3px
}

@keyframes frameGlow{
  0%,100%{box-shadow:0 15px 40px rgba(0,0,0,0.25)}
  50%{box-shadow:0 25px 55px rgba(255,140,235,0.35)}
}

:root{
  --bg:#0d0d0d;
  --text:#eaeaea;
  --surface:#1a1a1a;
  --surface-2:#252525;
  --border:#252525;
  --muted:#888;
  --input-bg:#0d0d0d;
  --input-border:#252525;
  --shadow:rgba(0,0,0,0.5);
  --modal-overlay:rgba(0,0,0,0.8);
}

html[data-theme="light"]{
  --bg:#f7f7fb;
  --text:#141414;
  --surface:#ffffff;
  --surface-2:#f0f1f5;
  --border:#d7d9e0;
  --muted:#5b5b5b;
  --input-bg:#ffffff;
  --input-border:#cfd3dc;
  --shadow:rgba(0,0,0,0.12);
  --modal-overlay:rgba(0,0,0,0.55);
}

html[data-theme="light"] .navbar-logo,
html[data-theme="light"] .navbar-new .navbar-logo{
  filter:saturate(1.05);
}

body{
  margin:0;
  font-family:Inter,sans-serif;
  background:var(--bg);
  color:var(--text);
  scrollbar-width:none;
}
body::-webkit-scrollbar{display:none;}
.navbar{
  width:100%;
  background:var(--surface);
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  border-bottom:1px solid var(--border);
}
.navbar a{color:var(--text);text-decoration:none;margin-left:12px;font-weight:bold;}

.navbar-new{
  width:100%;
  background:var(--surface);
  padding:15px 20px;
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  border-bottom:1px solid var(--border);
}

.home-tabs{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  right:auto;
  transform:translateX(-50%);
  width:max-content;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:0;
  border-top:0;
  background:transparent;
}
.home-tab{
  background:transparent;
  border:none;
  color:#a9a9a9;
  font-weight:700;
  letter-spacing:0.02em;
  padding:6px 2px;
  cursor:pointer;
  border-bottom:2px solid transparent;
  transition:color 0.16s ease,border-color 0.16s ease;
}
.home-tab:hover,
.home-tab:focus{
  color:#eaeaea;
  outline:none;
}
.home-tab.is-active{
  color:#9c6bff;
  border-bottom-color:rgba(156,107,255,0.85);
}

.friend-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(109,255,176,0.12);
  border:1px solid rgba(109,255,176,0.28);
  color:#6dffb0;
  font-weight:700;
  font-size:0.78em;
  line-height:1;
  margin-left:10px;
}
.navbar-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  position:relative;
}
.navbar-logo{
  position:absolute;
  left:20px;
  font-size:1.1em;
  font-weight:bold;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.nav-btn{
  padding:8px 16px;
  border-radius:50%;
  font-size:1.3em;
  font-weight:bold;
  border:none;
  cursor:pointer;
  transition:0.3s;
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rainbow-btn{
  background:linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size:200% 200%;
  animation:rainbow 3s ease infinite;
  color:white;
}
@keyframes rainbow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
.rainbow-btn:hover{
  transform:scale(1.1) rotate(90deg);
}
.nav-separator{
  color:var(--muted);
  font-size:1.2em;
  font-weight:bold;
}
.nav-link{
  text-decoration:none;
  font-weight:bold;
  font-size:1.05em;
  padding:8px 16px;
  border-radius:8px;
  transition:0.3s;
}
.nav-icon{
  background:transparent;
  border:none;
  font-size:1.2em;
  color:var(--text);
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
  transition:0.2s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.nav-icon-img{
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}
.nav-icon-img.nav-home-img{
  width:26px;
  height:26px;
}
.nav-icon-img.nav-search-img,
.nav-icon-img.nav-notification-img{
  width:22px;
  height:22px;
}
.nav-icon-img.nav-search-img{
  width:22px;
  height:22px;
}
.nav-icon-img.nav-notification-img{
  filter:invert(1);
}
.nav-icon.inbox-icon{
  position:relative;
}
.nav-icon.is-active,
.nav-icon.inbox-icon.is-active{
  background:rgba(100,181,246,0.18);
  color:#9ad7ff;
}
.nav-icon.inbox-icon.is-active::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:50%;
  transform:translateX(-50%);
  width:6px;
  height:6px;
  border-radius:50%;
  background:#9ad7ff;
}
.nav-icon:hover,
.nav-icon:focus{
  background:rgba(255,255,255,0.08);
  outline:none;
}
.thinks-link{
  color:#64b5f6;
}
.thinks-link:hover{
  background:rgba(100,181,246,0.2);
  transform:translateY(-2px);
}
.profile-link{
  color:#2196f3;
}
.profile-link:hover{
  background:rgba(33,150,243,0.2);
  transform:translateY(-2px);
}
.settings-link{
  color:#ce93d8;
}
.settings-link:hover{
  background:rgba(206,147,216,0.2);
  transform:translateY(-2px);
}

.navbar-logo-img{
  height:28px;
  width:auto;
  display:block;
}

.settings-dropdown{
  position:fixed;
  z-index:1200;
  min-width:200px;
  background:var(--surface);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  padding:8px;
  box-shadow:0 16px 28px rgba(0,0,0,0.35);
  overflow:hidden;
  display:none;
  opacity:0;
  transform:translateY(-6px);
  transition:opacity 0.16s ease, transform 0.16s ease;
}
.settings-dropdown.is-visible{
  display:block;
  opacity:1;
  transform:translateY(0);
}
.settings-dropdown-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  background:transparent;
  border:none;
  cursor:pointer;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:0.98em;
  text-align:left;
}
.settings-dropdown-item:hover,
.settings-dropdown-item:focus{
  background:rgba(255,255,255,0.08);
  outline:none;
  transform:none;
}
.settings-dropdown button:hover,
.settings-dropdown .settings-dropdown-item:hover{
  transform:none;
}
.settings-dropdown-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  flex:0 0 18px;
}
.settings-dropdown-logout{
  color:#ff6f91;
}
.settings-dropdown-logout:hover,
.settings-dropdown-logout:focus{
  background:rgba(255,64,96,0.14);
}

.modal{
  display:none;
  position:fixed;
  z-index:1000;
  inset:0;
  width:100%;
  height:100%;
  background:var(--modal-overlay);
  padding:32px 16px;
  box-sizing:border-box;
  overflow-y:auto;
  animation:fadeIn 0.3s;
  align-items:center;
  justify-content:center;
}
.modal::-webkit-scrollbar{display:none;}
.modal{scrollbar-width:none;}
.modal.is-open{
  display:flex;
}
@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}
.modal-content{
  background:var(--surface);
  margin:0;
  padding:30px;
  border-radius:20px;
  width:90%;
  max-width:500px;
  max-height:90vh;
  overflow-y:auto;
  box-shadow:0 0 30px rgba(138,43,226,0.5);
  animation:slideDown 0.3s;
}
.modal-content::-webkit-scrollbar{display:none;}
.modal-content{scrollbar-width:none;}
.modal-content--compact{
  max-width:540px;
}

.settings-status-pill{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  background:rgba(76,175,80,0.12);
  border:1px solid rgba(76,175,80,0.35);
  border-radius:999px;
  font-size:0.8em;
  color:#8df7a5;
  letter-spacing:0.02em;
}
.settings-status-pill.is-unverified{
  background:rgba(255,193,7,0.1);
  border-color:rgba(255,193,7,0.32);
  color:#ffd86b;
}
.settings-status-pill.is-missing{
  background:rgba(255,64,129,0.1);
  border-color:rgba(255,64,129,0.32);
  color:#ff9dbb;
}

.settings-field-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.settings-field-group label{
  font-size:0.8em;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#aaa;
}
.settings-field-group input{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  color:var(--text);
  transition:border 0.2s ease, box-shadow 0.2s ease;
}
.settings-field-group input:focus{
  outline:none;
  border-color:#8a2be2;
  box-shadow:0 0 0 3px rgba(138,43,226,0.25);
}

.settings-actions{
  display:flex;
  gap:12px;
  margin-bottom:16px;
}
.settings-actions .secondary{
  background:#333;
}
.settings-actions .secondary:hover{
  background:#3f3f3f;
}
.settings-actions .danger{
  background:#ff4060;
  color:#fff;
}
.settings-actions .danger:hover{
  background:#ff5c78;
}

.email-security-section{
  margin-top:14px;
  padding:14px;
  background:var(--surface-2);
  border-radius:12px;
}

.email-security-info{
  margin:0 0 12px 0;
  font-size:0.85em;
  color:var(--muted);
}

.input-with-button{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.input-with-button input{
  flex:1;
}
.input-with-button button{
  white-space:nowrap;
  padding:10px 16px;
  border-radius:10px;
  max-width:100%;
}

@media (max-width: 520px){
  .input-with-button button{
    width:100%;
  }
}

.settings-feedback{
  margin-top:12px;
  min-height:18px;
  font-size:0.82em;
  color:var(--muted);
}
.settings-feedback.is-error{
  color:#ff6f91;
}
.settings-feedback.is-success{
  color:#6dffb0;
}

 .thinkdrop-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:54px;
  height:32px;
 }
 .thinkdrop-switch input{
  opacity:0;
  width:0;
  height:0;
 }
 .thinkdrop-switch-slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 12px 22px rgba(0,0,0,0.28);
  transition:background 0.18s ease, border 0.18s ease;
 }
 .thinkdrop-switch-slider::before{
  content:"";
  position:absolute;
  top:50%;
  left:4px;
  width:24px;
  height:24px;
  border-radius:50%;
  transform:translateY(-50%);
  background:linear-gradient(135deg,#ffffff,#d8d8ff);
  box-shadow:0 10px 18px rgba(0,0,0,0.35);
  transition:transform 0.18s ease;
 }
 .thinkdrop-switch input:checked + .thinkdrop-switch-slider{
  background:rgba(138,43,226,0.35);
  border:1px solid rgba(138,43,226,0.65);
 }
 .thinkdrop-switch input:checked + .thinkdrop-switch-slider::before{
  transform:translateY(-50%) translateX(22px);
 }
 .thinkdrop-switch input:focus + .thinkdrop-switch-slider{
  outline:none;
  box-shadow:0 0 0 3px rgba(138,43,226,0.25), 0 12px 22px rgba(0,0,0,0.28);
 }

.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:999px;
  border:1px solid rgba(138,43,226,0.4);
  color:#e0cfff;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0.04em;
  background:rgba(18,18,18,0.7);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-link:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(138,43,226,0.25);
}

 .auth-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  margin-top:4px;
 }
 .auth-error{
  color:#ff6f6f;
  font-size:0.9em;
  font-weight:600;
  display:none;
 }
 .auth-error.is-visible{
  display:inline;
 }

#posts{
  margin:120px auto 48px auto;
  width:min(700px,calc(100% - 48px));
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.home-page #posts{
  margin-top:155px;
}

#posts .post.card{
  width:100%;
  margin:0;
}

.profile-posts-card{
  width:min(700px,calc(100% - 48px));
  max-width:none;
  margin:24px auto 24px auto;
}

.profile-posts-card #userPosts{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.profile-posts-card #userPosts .post.card{
  width:100%;
  margin:0;
  max-width:none;
}

@media (max-width:600px){
  .modal-content{
    padding:22px;
  }
}

@keyframes slideDown{
  from{transform:translateY(-50px);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

.close-modal{
  color:var(--muted);
  float:right;
  font-size:28px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}
.close-modal:hover{
  color:var(--text);
  transform:rotate(90deg);
}
.emoji-picker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:15px 0;
  padding:15px;
  background:var(--surface-2);
  border-radius:12px;
  max-height:150px;
  overflow-y:auto;
}
.emoji-picker::-webkit-scrollbar{display:none;}
.emoji-picker{scrollbar-width:none;}
.editor-shell{
  margin-top:18px;
  border:1px solid #2d2d2d;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(145deg, rgba(34,34,34,0.95) 0%, rgba(18,18,18,0.9) 100%);
  box-shadow:0 18px 35px rgba(102,126,234,0.18);
}
.editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding:14px 16px;
  background:rgba(20,20,20,0.92);
  border-bottom:1px solid rgba(120,120,120,0.15);
  backdrop-filter:blur(8px);
}
.editor-toolbar .toolbar-group{
  margin-right:8px;
}
.editor-toolbar .toolbar-group:last-child{
  margin-right:0;
}
.toolbar-btn{
  background:rgba(60,60,60,0.45);
  border:1px solid rgba(120,120,120,0.25);
  color:#f5f5f5;
  border-radius:10px;
  padding:8px 10px;
  min-width:38px;
  font-size:0.95em;
  cursor:pointer;
  transition:0.2s ease;
}
.toolbar-btn span{display:inline-block;transform:translateY(-1px);}
.toolbar-btn:hover,
.toolbar-btn:focus{
  background:#8a2be2;
  border-color:#a76df5;
  color:#fff;
  transform:translateY(-1px);
}
.toolbar-btn-muted{
  background:rgba(40,40,40,0.7);
  border-color:rgba(90,90,90,0.4);
}
.toolbar-divider{
  height:26px;
  width:1px;
  background:rgba(120,120,120,0.2);
  margin:0 4px;
}
.toolbar-group{
  display:flex;
  align-items:center;
  gap:8px;
}
.toolbar-label{
  font-size:0.78em;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:#959595;
}
.color-chip,
.highlight-chip,
.media-chip{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.15);
  cursor:pointer;
  padding:0;
  background:transparent;
  transition:transform 0.2s, box-shadow 0.2s;
}
.color-chip:hover,
.highlight-chip:hover,
.media-chip:hover{
  transform:scale(1.1);
  box-shadow:0 0 12px rgba(138,43,226,0.4);
}
.color-chip{display:inline-flex;align-items:center;justify-content:center;}
.highlight-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.85em;
  letter-spacing:0.03em;
  background:rgba(255,255,255,0.08);
  color:#f5f5f5;
}
.media-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.95em;
  background:rgba(255,255,255,0.08);
  color:#f5f5f5;
}
.media-chip:focus{
  outline:2px solid rgba(138,43,226,0.7);
  outline-offset:2px;
}
.image-previews{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px 16px;
  border-bottom:1px solid rgba(120,120,120,0.15);
  background:rgba(12,12,12,0.9);
}
.image-preview-item{
  position:relative;
  width:82px;
  height:82px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.15);
  box-shadow:0 6px 16px rgba(102,126,234,0.22);
}
.image-preview-item img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.image-remove-btn{
  position:absolute;
  top:6px;
  right:6px;
  background:rgba(13,13,13,0.85);
  border:none;
  color:#fff;
  width:20px;
  height:20px;
  border-radius:50%;
  font-size:0.75em;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s;
}
.image-remove-btn:hover{
  background:rgba(218,55,90,0.95);
}
.post-photo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:10px;
  margin-top:14px;
  border-radius:12px;
  overflow:hidden;
}
.post-photo-grid img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 16px rgba(0,0,0,0.22);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.post-photo-grid img:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 12px 24px rgba(0,0,0,0.28);
}
.editor-surface{
  min-height:170px;
  padding:22px;
  color:#f5f5f5;
  line-height:1.6;
  font-size:1rem;
  background:rgba(16,16,16,0.95);
  border-top:1px solid rgba(120,120,120,0.15);
  outline:none;
  overflow-y:auto;
  max-height:320px;
}
.editor-surface::-webkit-scrollbar{display:none;}
.editor-surface{scrollbar-width:none;}
.editor-surface:focus{
  box-shadow:inset 0 0 0 2px rgba(138,43,226,0.35);
}
.editor-surface:empty::before{
  content:attr(data-placeholder);
  color:#6b6b6b;
}
.editor-surface p,
.editor-surface div{
  margin:0 0 8px 0;
}
.editor-surface ul,
.editor-surface ol{
  margin:0 0 12px 18px;
  padding-left:12px;
}
.editor-surface li{margin:6px 0;}
.publish-btn{
  width:100%;
  margin-top:16px;
  padding:14px 18px;
  font-size:1.05em;
  border-radius:12px;
  background:linear-gradient(120deg,#8a2be2 0%,#667eea 100%);
  box-shadow:0 10px 24px rgba(102,126,234,0.28);
}
.publish-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(102,126,234,0.38);
}
.post-header{
  display:flex;
  align-items:center;
  gap:12px;
}
.post-header-info{
  flex:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.post-header-name{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}
.pinned-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,111,111,0.12);
  border:1px solid rgba(255,111,111,0.28);
  color:#ff6f6f;
  font-weight:700;
  font-size:0.78em;
  line-height:1;
  white-space:nowrap;
  margin-left:8px;
}
.profile-post-timestamp{
  font-size:0.8em;
  color:var(--muted);
  white-space:nowrap;
}
.post-username{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  color:inherit;
  text-decoration:none;
  transition:color 0.2s ease;
}
.post-username:hover,
.post-username:focus{
  color:#64b5f6;
}
.verified-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:transparent;
  padding:0;
  box-shadow:none;
}
.verified-badge-img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}
.private-lock-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  font-size:0.82em;
  line-height:1;
}
.post-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,0.12);
  background:var(--bg);
}
.profile-identity{
  display:flex;
  align-items:center;
  gap:18px;
}
.profile-username{
  margin:0;
  font-size:1.8em;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.profile-post-stats{
  font-size:0.85em;
  color:#888;
  display:flex;
  align-items:center;
  gap:0;
}
.profile-stat-item{
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:2px 6px;
  border-radius:8px;
  transition:transform 0.18s ease, background 0.18s ease;
}
.profile-stat-item:hover{
  background:rgba(255,255,255,0.08);
  transform:translateY(-1px);
}
.profile-stat-item.like-btn{
  color:#ff4081;
  margin-right:0;
}
.profile-stat-item.comment-btn{
  color:#64b5f6;
  margin-right:0;
}
.profile-stat-item.reaction-btn{
  color:var(--text);
  margin-right:0;
}
.profile-stat-item.like-btn.is-pop,
.profile-stat-item.reaction-btn.is-pop{
  animation:like-pop 0.42s ease;
}
.profile-tabs{
  display:flex;
  gap:8px;
  align-items:center;
}
.profile-tab{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:10px;
  padding:10px 14px;
  min-width:86px;
  height:64px;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.profile-tab:hover{
  background:rgba(255,255,255,0.12);
  transform:translateY(-1px);
}
.profile-tab.is-active{
  background:rgba(138,43,226,0.2);
  border-color:rgba(138,43,226,0.5);
}
.profile-tab img{
  display:block;
  width:24px;
  height:24px;
  -webkit-user-drag:none;
  user-drag:none;
  user-select:none;
  pointer-events:none;
}
.profile-tab-icon-fallback{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.1em;
  line-height:1;
  user-select:none;
}
.profile-tab-label{
  margin-top:4px;
  font-size:0.78em;
  font-weight:700;
  color:rgba(255,255,255,0.82);
  line-height:1;
}
.profile-tab-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.profile-tab-title-reposts{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.profile-tab-title-icon{
  width:26px;
  height:26px;
  display:block;
}
.profile-tab-title-icon-fallback{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.1em;
}
.repost-label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  margin-bottom:10px;
  background:rgba(138,43,226,0.12);
  border:1px solid rgba(138,43,226,0.25);
  border-radius:10px;
  font-size:0.85em;
  color:#b88dff;
}
.repost-label-icon{
  font-size:1.1em;
}
.profile-comments-btn{
  background:rgba(100,181,246,0.12);
  border:none;
  color:#9ad7ff;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.85em;
  cursor:pointer;
  transition:background 0.2s ease,color 0.2s ease;
}
.profile-comments-btn:hover,
.profile-comments-btn:focus{
  background:rgba(100,181,246,0.22);
  color:#d1ecff;
  outline:none;
}
.profile-comments-section{
  margin-top:12px;
  padding:12px 16px;
  border-radius:14px;
  background:rgba(26,26,26,0.85);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.profile-comments-empty{
  margin:0;
  text-align:center;
  color:#999;
  font-size:0.9em;
}
.profile-comment{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:0.88em;
  color:#e2e2e2;
}
.profile-comment-author{
  color:#9ad7ff;
}
.profile-comment-text{
  flex:1;
}
.profile-comment-reply-tag{
  background:rgba(100,181,246,0.16);
  color:#89c5ff;
  border-radius:999px;
  padding:2px 6px;
  font-size:0.78em;
}
.profile-follow-btn{
  margin-left:auto;
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(100,181,246,0.35);
  background:rgba(100,181,246,0.12);
  color:#64b5f6;
  font-weight:600;
  cursor:pointer;
  transition:background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display:none;
}
.profile-follow-btn.following{
  background:rgba(33,150,243,0.18);
  color:#2196f3;
}
.profile-follow-btn.pending,
.profile-follow-btn:disabled{
  cursor:default;
  opacity:0.85;
  transform:none;
}
.profile-follow-request-card{
  margin-left:auto;
  padding:8px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:#e6e6e6;
  font-weight:700;
  letter-spacing:0.2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  max-width:220px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-follow-btn.pending{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.12);
  color:#e6e6e6;
}
.profile-follow-btn:hover{
  transform:translateY(-1px);
  background:rgba(100,181,246,0.2);
}
.profile-avatar-wrapper{
  position:relative;
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at 30% 30%,rgba(138,43,226,0.38),rgba(21,21,21,0.92));
  border:2px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 24px rgba(0,0,0,0.4);
  transition:transform .25s ease, box-shadow .25s ease;
}
.profile-avatar-wrapper.is-own-profile{
  cursor:pointer;
}
.profile-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:50%;
  transition:transform .25s ease, filter .25s ease;
  background:#0d0d0d;
}
.profile-avatar-wrapper.is-own-profile:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 36px rgba(0,0,0,0.55);
}
.profile-avatar-wrapper.is-own-profile:hover .profile-avatar{
  transform:scale(1.05);
  filter:brightness(1.05);
}
.profile-avatar-edit-btn{
  position:absolute;
  right:10px;
  bottom:10px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(10,10,10,0.82);
  border:1px solid rgba(255,255,255,0.18);
  color:#f5f5f5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1em;
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease;
}
.profile-avatar-wrapper.is-own-profile:hover .profile-avatar-edit-btn,
.profile-avatar-wrapper.is-own-profile:focus-within .profile-avatar-edit-btn,
.profile-avatar-edit-btn:focus{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.profile-avatar-edit-btn:hover{
  background:rgba(34,34,34,0.9);
}
.profile-username{
  margin:0;
  font-size:1.8em;
  color:var(--text);
  letter-spacing:0.5px;
}
.post-body{
  margin:10px 0;
  white-space:pre-wrap;
  word-break:break-word;
}
.post-body ul,
.post-body ol{
  margin-left:18px;
}
.follow-btn{
  margin-left:auto;
  padding:6px 14px;
  font-size:0.85em;
  border-radius:999px;
  background:#1f8bff;
  color:white;
  border:1px solid rgba(255,255,255,0.2);
  cursor:pointer;
  transition:0.2s;
}
.follow-btn.following{
  background:transparent;
  color:#64b5f6;
  border-color:rgba(100,181,246,0.3);
}
.follow-btn:hover{
  transform:translateY(-1px);
}
.emoji-btn{
  font-size:1.5em;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:5px;
  border-radius:8px;
  transition:0.2s;
  width:40px;
  height:40px;
}
.emoji-btn:hover{
  background:#333;
  transform:scale(1.2);
}
.card{
  background:var(--surface);
  padding:20px;
  margin:80px auto 20px auto;
  border-radius:18px;
  width:90%;
  max-width:400px;
  box-shadow:0 0 10px var(--shadow);
  transition:transform 0.2s;
}
.card:hover{transform:scale(1.02);}
input,textarea{
  width:100%;
  padding:10px;
  margin-bottom:10px;
  border-radius:10px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  color:var(--text);
}
button{
  background:#8a2be2;
  color:white;
  border:none;
  padding:10px 15px;
  border-radius:10px;
  cursor:pointer;
  transition:0.2s;
}
button:hover{transform:scale(1.05);}
.post{
  background:var(--surface-2);
  padding:12px;
  margin-bottom:10px;
  border-radius:12px;
}

@keyframes like-pop{
  0%{transform:scale(1);}
  45%{transform:scale(1.14);}
  100%{transform:scale(1);}
}

.like-btn,
.comment-btn,
.reaction-btn{
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:2px 6px;
  border-radius:8px;
  transition:transform 0.18s ease, background 0.18s ease;
}

.like-btn{color:#ff4081;margin-right:0;}
.comment-btn{color:#64b5f6;margin-right:0;}
.reaction-btn{color:var(--text);margin-right:0;}

.like-btn:hover,
.comment-btn:hover,
.reaction-btn:hover{
  background:rgba(255,255,255,0.08);
  transform:translateY(-1px);
}

.like-btn.is-pop,
.reaction-btn.is-pop{
  animation:like-pop 0.42s ease;
}

.reaction-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  display:none;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 18px 40px var(--shadow);
  backdrop-filter:blur(10px);
  z-index:20;
}

.reaction-menu.is-visible{
  display:flex;
}

.share-btn{
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:28px;
  padding:2px 6px;
  border-radius:8px;
  background:transparent;
  color:var(--text);
  transition:transform 0.18s ease, background 0.18s ease;
}

.share-btn:hover,
.share-btn:focus{
  background:rgba(255,255,255,0.08);
  transform:translateY(-1px);
  outline:none;
}

.share-icon{
  width:18px;
  height:18px;
  filter:grayscale(0.1);
}

.share-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  display:none;
  flex-direction:column;
  gap:6px;
  padding:10px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 18px 40px var(--shadow);
  backdrop-filter:blur(10px);
  z-index:25;
  min-width:160px;
}

.share-menu.is-visible{
  display:flex;
}

.share-menu-item{
  width:100%;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  text-align:left;
  transition:transform 0.18s ease, background 0.18s ease;
}

.share-menu-item:hover,
.share-menu-item:focus{
  background:rgba(255,255,255,0.12);
  transform:translateY(-1px);
  outline:none;
}

.share-menu-repost{
  background:rgba(255,213,74,0.18);
  border:1px solid rgba(255,213,74,0.35);
  color:#ffe07a;
}
.share-menu-repost:hover,
.share-menu-repost:focus{
  background:rgba(255,213,74,0.28);
  transform:translateY(-1px);
  outline:none;
}

.reaction-emoji-option{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface-2);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  padding:0;
  transition:transform 0.18s ease, background 0.18s ease;
}

.reaction-emoji-option:hover,
.reaction-emoji-option:focus{
  transform:translateY(-2px) scale(1.05);
  background:rgba(255,255,255,0.12);
  outline:none;
}
.comment{
  margin-left:12px;
  font-size:0.9em;
  padding:8px;
  background:var(--surface);
  border-radius:8px;
  margin-top:5px;
}
.comments-section{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.comment-box{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.comment-input-field{
  width:calc(100% - 90px);
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:#141414;
  color:#f5f5f5;
}
.comment-submit-btn{
  width:80px;
  margin-left:6px;
  padding:10px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,#8a2be2 0%,#667eea 100%);
  border:none;
  color:#fff;
  cursor:pointer;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-submit-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(102,126,234,0.28);
}
.comment{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.comment-text{
  flex:1;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.comment-prefix{
  display:inline-flex;
  align-items:center;
  flex-wrap:nowrap;
}
.comment-reply-btn{
  display:none;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:#e8e8e8;
  font-size:0.78em;
  padding:2px 10px;
  border-radius:999px;
  margin-left:6px;
  cursor:pointer;
  transition:transform 0.16s ease, background 0.16s ease;
}
.comment:hover .comment-reply-btn,
.comment:focus-within .comment-reply-btn{
  display:inline-flex;
}
.comment-reply-btn:hover,
.comment-reply-btn:focus{
  background:rgba(255,255,255,0.14);
  transform:translateY(-1px);
  outline:none;
}
.comment-options-btn{
  background:rgba(255,255,255,0.06);
  border:none;
  color:#f5f5f5;
  width:32px;
  height:32px;
  border-radius:10px;
  cursor:pointer;
  font-size:1.1em;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s ease, transform 0.2s ease;
}
.comment-options-btn:hover{
  background:rgba(255,255,255,0.15);
  transform:translateY(-1px);
}
.comment-author{
  cursor:pointer;
  color:#64b5f6;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.comment-author:hover,
.comment-author:focus{
  color:#9ad7ff;
  outline:none;
}
.comment-author::after{
  content:'';
  font-size:0.85em;
  opacity:0;
  transform:translateY(-1px);
  transition:opacity 0.16s ease;
}
.comment-author:hover::after,
.comment-author:focus::after{
  opacity:0.8;
}
.comment-reply-tag{
  background:rgba(100,181,246,0.16);
  color:#89c5ff;
  font-size:0.8em;
  padding:2px 6px;
  border-radius:999px;
  margin-left:8px;
}
.comment-reply-indicator{
  display:none;
  font-size:0.82em;
  color:#9ad7ff;
  background:rgba(100,181,246,0.14);
  padding:6px 10px;
  border-radius:10px;
  margin-bottom:6px;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.comment-reply-indicator.is-visible{
  display:flex;
}
.reply-cancel-btn{
  width:22px;
  height:22px;
  padding:0;
  border-radius:8px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:#d9d9d9;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition:background 0.16s ease, transform 0.16s ease;
}
.reply-cancel-btn:hover,
.reply-cancel-btn:focus{
  background:rgba(255,255,255,0.16);
  transform:translateY(-1px);
  outline:none;
}
.comment-creator-badge{
  display:inline-flex;
  align-items:center;
  font-size:0.78em;
  font-weight:700;
  color:#ffd54a;
  opacity:0.95;
  margin-left:0;
  white-space:nowrap;
}
.comment-options-menu{
  position:absolute;
  right:0;
  bottom:100%;
  transform:translateY(-12px);
  background:#1f1f1f;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  padding:8px 12px;
  box-shadow:0 16px 28px rgba(0,0,0,0.35);
  display:none;
  opacity:0;
  transition:opacity 0.16s ease;
  z-index:5;
  min-width:170px;
}
.comment-options-menu::after{
  content:"";
  position:absolute;
  bottom:-6px;
  right:12px;
  width:12px;
  height:12px;
  background:#1f1f1f;
  border-left:1px solid rgba(255,255,255,0.15);
  border-bottom:1px solid rgba(255,255,255,0.15);
  transform:rotate(45deg);
}
.comment-options-menu.is-visible{
  display:block;
  opacity:1;
}
.comment-delete-action{
  width:100%;
  background:transparent;
  color:#ff6f6f;
  font-weight:600;
  padding:6px 4px;
  border:none;
  border-radius:8px;
  text-align:left;
  cursor:pointer;
  font-size:0.95em;
  display:flex;
  align-items:center;
  gap:8px;
  transition:background 0.16s ease,color 0.16s ease;
}
.comment-delete-action:hover{
  background:rgba(255,111,111,0.08);
  color:#ff4c4c;
}

 .comment-pin-action{
  width:100%;
  background:transparent;
  color:#9ad7ff;
  font-weight:600;
  padding:6px 4px;
  border:none;
  border-radius:8px;
  text-align:left;
  cursor:pointer;
  font-size:0.95em;
  display:flex;
  align-items:center;
  gap:8px;
  transition:background 0.16s ease,color 0.16s ease;
 }
 .comment-pin-action:hover{
  background:rgba(100,181,246,0.14);
  color:#d1ecff;
 }
.notifications-card{
  max-width:720px;
  margin:100px auto 40px auto;
  padding:28px;
  background:#1d1d1d;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 18px 32px rgba(0,0,0,0.45);
}
.notifications-header{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:20px;
}
.notifications-header h2{
  margin:0;
}
.notifications-header p{
  margin:0;
  color:#a0a0a0;
  font-size:0.95em;
}
.notifications-skeleton{
  display:grid;
  gap:14px;
}
.notifications-skeleton .skeleton-row{
  height:72px;
  border-radius:14px;
  background:linear-gradient(120deg,rgba(35,35,35,0.9) 0%,rgba(55,55,55,0.65) 50%,rgba(35,35,35,0.9) 100%);
  background-size:180% 100%;
  animation:skeletonGlow 1.4s ease-in-out infinite;
}
@keyframes skeletonGlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
.notifications-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:30px 20px;
  background:rgba(26,26,26,0.8);
  border-radius:18px;
  text-align:center;
  color:#9a9a9a;
}
.notifications-empty .empty-icon{
  font-size:2.2em;
}
.notifications-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.notification-item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:16px 18px;
  border-radius:16px;
  background:rgba(26,26,26,0.85);
  border:1px solid rgba(255,255,255,0.06);
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor:pointer;
}
.notification-item:hover,
.notification-item:focus{
  transform:translateY(-2px);
  border-color:rgba(100,181,246,0.25);
  box-shadow:0 16px 28px rgba(0,0,0,0.4);
  outline:none;
}
.notification-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(100,181,246,0.3);
}
.notification-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.notification-header{
  display:flex;
  align-items:center;
  gap:10px;
}
.notification-actor{
  font-weight:600;
  color:#f1f1f1;
}
.notification-badge{
  display:inline-flex;
  width:18px;
  height:18px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#4facfe 0%,#00f2fe 100%);
  color:#0b1f32;
  font-size:0.75em;
  font-weight:700;
}
.notification-time{
  margin-left:auto;
  font-size:0.82em;
  color:#8f8f8f;
}
.notification-message{
  margin:0;
  font-size:0.95em;
  color:#d2d2d2;
  line-height:1.4;
}
.notification-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.notification-action-btn{
  padding:8px 12px;
  border-radius:12px;
  font-weight:600;
  font-size:0.9em;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.08);
  color:#f2f2f2;
  cursor:pointer;
}
.notification-action-btn:hover{
  background:rgba(255,255,255,0.12);
}
.notification-action-btn.accept{
  background:rgba(58,166,85,0.18);
  border-color:rgba(58,166,85,0.35);
  color:#9ff0b2;
}
.notification-action-btn.accept:hover{
  background:rgba(58,166,85,0.26);
}
.notification-action-btn.reject{
  background:rgba(255,64,96,0.16);
  border-color:rgba(255,64,96,0.3);
  color:#ffb3c0;
}
.notification-action-btn.reject:hover{
  background:rgba(255,64,96,0.24);
}

@media (max-width:520px){
  .notifications-card{
    margin:90px 16px 30px 16px;
    padding:22px 18px;
  }
  .notification-item{
    padding:14px;
    gap:12px;
  }
  .notification-avatar{
    width:42px;
    height:42px;
  }
  .notification-message{
    font-size:0.92em;
  }
}
.profile-post-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:16px;
}
.profile-post-stats{
  font-size:0.85em;
  color:#888;
}
.delete-post-btn{
  background:rgba(214,40,57,0.4);
  border:none;
  color:#fff;
  width:34px;
  height:34px;
  border-radius:50%;
  cursor:pointer;
  transition:transform .2s,background .2s;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.05em;
  margin-left:auto;
}
.delete-post-btn:hover{
  background:rgba(214,40,57,0.65);
  transform:translateY(-1px);
}
.icon-edit-btn{
  background:#2c2c2c;
  border:none;
  border-radius:50%;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1em;
  cursor:pointer;
  transition:transform .2s,background .2s
}
.icon-edit-btn:hover{
  transform:scale(1.05);
  background:#383838
}
.post.card{
  transition:box-shadow .3s ease,transform .2s ease
}
.post.card:hover{
  box-shadow:0 18px 32px rgba(0,0,0,0.45);
  transform:translateY(-2px);
}

@media (max-width:720px){
  .navbar-new{
    padding:12px 16px;
  }
  .navbar-content{
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
  }
  .navbar-logo{
    position:static;
    order:-1;
    width:100%;
    text-align:center;
  }
  .nav-separator{
    display:none;
  }
  .nav-link,
  .nav-icon,
  .nav-btn{
    font-size:1em;
    padding:8px 12px;
  }
  #posts{
    width:calc(100% - 32px);
    margin:108px auto 36px auto;
  }
  .card{
    width:calc(100% - 32px);
    margin:96px auto 24px auto;
  }
  .profile-card{
    padding:22px 18px;
  }
  .profile-identity{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
  }
  .profile-post-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .profile-post-actions{
    width:100%;
    display:flex;
    justify-content:flex-end;
    gap:10px;
  }
  .profile-post-stats{
    width:100%;
    justify-content:space-between;
  }

  .profile-post-stats .like-btn,
  .profile-post-stats .comment-btn{
    margin-right:0;
  }

  .profile-posts-card{
    margin-top:24px !important;
  }
  .profile-posts-card h2{
    margin-top:0;
    margin-bottom:10px;
  }
  .profile-posts-card #userPosts{
    margin-top:0;
  }
  .profile-posts-card #userPosts .post.card:first-child{
    margin-top:0;
  }

  .profile-metrics{
    justify-content:space-between !important;
    flex-wrap:wrap;
    gap:10px;
    padding:14px 12px !important;
  }
  .profile-metrics > div{
    flex:1 1 30%;
    min-width:92px;
  }

  .profile-avatar-wrapper{
    width:86px;
    height:86px;
  }
  .profile-username{
    font-size:1.55em;
  }
  .profile-follow-btn{
    margin-left:0;
    align-self:center;
  }
  .profile-follow-request-card{
    margin-left:0;
    align-self:center;
    max-width:100%;
  }
}

@media (max-width:480px){
  .navbar-content{
    gap:8px;
  }
  .nav-btn{
    width:48px;
    height:48px;
  }
  .nav-link{
    padding:8px 12px;
  }
  .nav-icon{
    padding:10px 12px;
  }
  .profile-comments-section{
    padding:10px 12px;
  }
  .profile-comments-btn{
    padding:6px 14px;
  }

  .post-header-info{
    align-items:center;
  }
  .profile-post-timestamp{
    font-size:0.78em;
  }
  .pinned-badge{
    padding:4px 8px;
    font-size:0.75em;
  }
  .profile-post-stats{
    gap:10px;
  }

  .profile-posts-card{
    margin-top:20px !important;
  }
  .profile-avatar-wrapper{
    width:78px;
    height:78px;
  }
  .profile-username{
    font-size:1.45em;
  }
}
.post.card.frame-default{
  border:1px solid rgba(255,255,255,0.05);
  background:#1f1f1f
}
.post.card.frame-aurora{
  background:linear-gradient(135deg,#1f1b2e,#3a2b58);
  border:1px solid rgba(163,132,255,0.4);
  box-shadow:0 20px 45px rgba(117,90,210,0.25);
  animation:frameGlow 6s ease-in-out infinite
}
.post.card.frame-midnight{
  background:linear-gradient(135deg,#101b2d,#182b3d);
  border:1px solid rgba(37,98,156,0.45);
  box-shadow:0 20px 45px rgba(63,130,207,0.2);
  animation:frameGlow 7s ease-in-out infinite
}
.post.card.frame-sunset{
  background:linear-gradient(135deg,#321a24,#4d2d3f,#603734);
  border:1px solid rgba(255,115,115,0.35);
  box-shadow:0 20px 45px rgba(255,120,140,0.2);
  animation:frameGlow 5.5s ease-in-out infinite
}
.post.card .post-body{
  background:transparent
}
.frame-picker{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:12px 0
}
.frame-preview{
  margin-top:14px;
}
.frame-preview-card{
  margin:0;
  width:100%;
  max-width:none;
  transition:box-shadow .4s ease;
}
.frame-preview-placeholder{
  color:#777;
  text-align:center;
  margin:0;
  font-size:0.9em;
}
.frame-option{
  position:relative;
  border:2px solid transparent;
  border-radius:14px;
  padding:10px 16px;
  cursor:pointer;
  transition:border .2s,transform .2s;
  background:rgba(255,255,255,0.05);
  color:#eee;
  font-size:0.9em
}
.frame-option.selected{
  border-color:#6dffb0;
  transform:translateY(-1px)
}
.frame-option:hover{
  border-color:#9c6bff
}
.frame-option .swatch{
  display:inline-block;
  width:18px;
  height:18px;
  border-radius:50%;
  margin-right:8px;
  vertical-align:middle
}
.frame-option[data-frame="frame-default"] .swatch{
  background:linear-gradient(135deg,#1f1f1f,#2a2a2a);
  border:1px solid rgba(255,255,255,0.1)
}
.frame-option[data-frame="frame-aurora"] .swatch{
  background:linear-gradient(135deg,#2e1446,#6b3a9b)
}
.frame-option[data-frame="frame-midnight"] .swatch{
  background:linear-gradient(135deg,#0f1f2f,#254a6d)
}
.frame-option[data-frame="frame-sunset"] .swatch{
  background:linear-gradient(135deg,#462035,#ff6584)
}
.search-modal{
  max-width:640px
}
.search-form{
  display:flex;
  gap:10px;
  margin:18px 0 12px 0
}
.search-form input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #2d2d2d;
  background:#0d0d0d;
  color:#f5f5f5
}
.search-form button{
  padding:10px 16px;
  border-radius:10px;
  background:#667eea;
  border:none;
  color:white;
  cursor:pointer;
}
.search-tabs{
  display:flex;
  gap:10px;
  margin:12px 0;
}
.search-tab{
  padding:8px 16px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  color:#f5f5f5;
  cursor:pointer;
  transition:background 0.2s;
}
.search-tab.active{
  background:#667eea;
  border-color:#667eea;
}
.search-tab:hover{
  background:rgba(255,255,255,0.1);
}
.search-feedback{
  font-size:0.85em;
  color:#888;
  min-height:18px;
}
.search-results{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.search-results{scrollbar-width:none;}
.search-results::-webkit-scrollbar{display:none;}
.search-preview{
  display:none;
  margin-top:16px;
  background:#111;
  border-radius:16px;
  padding:18px;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 18px 28px rgba(0,0,0,0.4);
}
.search-preview::-webkit-scrollbar{display:none;}
.search-preview{scrollbar-width:none;}
.search-empty{
  color:#888;
  font-size:0.9em;
  text-align:center;
  padding:12px 0;
}
.search-result-card{
  background:#1a1a1a;
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 10px 22px rgba(0,0,0,0.35);
}
.search-result-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}
.search-meta{
  display:flex;
  gap:20px;
  color:#999;
  font-size:0.85em;
}
.search-posts{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.search-suggestions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.search-suggestion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  background:#1a1a1a;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  transition:transform 0.2s, border-color 0.2s;
}
.search-suggestion:hover{
  transform:translateY(-1px);
  border-color:rgba(102,126,234,0.35);
}
.suggestion-info{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.suggestion-username{
  font-weight:600;
  color:#f5f5f5;
}
.suggestion-meta{
  font-size:0.8em;
  color:#8f8f8f;
}
.suggestion-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.view-profile-btn{
  background:rgba(103,126,234,0.18);
  border:1px solid rgba(103,126,234,0.35);
  color:#87a7ff;
  padding:8px 14px;
  font-size:0.85em;
  border-radius:999px;
}
.view-profile-btn:hover{
  background:rgba(103,126,234,0.3);
}
.search-preview .search-result-card{
  margin:0;
}
.search-posts .post-body{
  background:#151515;
  padding:12px;
  border-radius:10px;
}
.follower-item{
  padding:8px;
  margin:5px 0;
  background:#252525;
  border-radius:8px;
  cursor:pointer;
  transition:0.2s;
}
.follower-item:hover{
  background:#333;
  transform:translateX(5px);
}

@media (max-width:768px){
  .navbar-new{
    padding:12px 16px;
  }
  .navbar-content{
    gap:12px;
  }
  .nav-btn{
    width:52px;
    height:52px;
  }
  .nav-link{
    font-size:1em;
    padding:8px 12px;
  }
  .modal-content{
    width:100%;
    max-width:520px;
  }
}

@media (max-width:520px){
  body{
    font-size:15px;
  }
  .navbar-content{
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
  }
  .navbar-logo{
    position:static;
    order:-1;
    width:100%;
    text-align:center;
    transform:none;
    font-size:1.05em;
  }
  .nav-separator{
    display:none;
  }
  .nav-link,
  .nav-icon{
    padding:8px 10px;
    font-size:0.92em;
  }
  .nav-icon{
    font-size:1.05em;
  }
  .nav-btn{
    width:42px;
    height:42px;
    font-size:1.05em;
  }
  #posts{
    margin:132px auto 32px auto;
  }
  .card{
    margin:116px auto 16px;
    padding:18px 16px;
  }
  input,
  textarea,
  button{
    font-size:0.95em;
  }
  .editor-toolbar{
    gap:6px;
    justify-content:flex-start;
  }
  .editor-toolbar .toolbar-group{
    width:auto;
    justify-content:flex-start;
  }
  .editor-toolbar .toolbar-group:first-child,
  .editor-toolbar .toolbar-group:nth-child(2){
    flex-wrap:nowrap;
  }
  .editor-surface{
    min-height:150px;
    padding:18px;
    font-size:0.95rem;
  }
  .frame-picker{
    gap:8px;
  }
  .post.card{
    padding:18px;
  }
  .post-header{
    flex-wrap:nowrap;
    gap:10px;
  }
  .post-header .follow-btn{
    margin-left:auto;
    width:auto;
    min-width:120px;
  }
  .post-body{
    font-size:0.95em;
  }
  .post-photo-grid{
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  }
  .post-photo-grid img{
    height:130px;
  }
  .profile-post-footer{
    flex-direction:row;
    align-items:center;
    gap:12px;
  }
  .profile-post-actions{
    width:auto;
    display:flex;
    flex-wrap:nowrap;
    gap:12px;
    justify-content:flex-start;
  }
}

@media (max-width:360px){
  body{
    font-size:14px;
  }
  .navbar-content{
    gap:6px;
  }
  .nav-btn{
    width:44px;
    height:44px;
    font-size:1em;
  }
  .nav-link{
    padding:6px 8px;
    font-size:0.9em;
  }
  .nav-icon{
    padding:8px 10px;
    font-size:1em;
  }
  .card{
    padding:16px 14px;
  }
  .post.card{
    padding:16px;
  }
  .post-photo-grid img{
    height:100px;
  }
  .post-photo-grid{
    grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
  }
  .editor-surface{
    padding:16px;
    font-size:0.9rem;
  }
  .modal-content{
    padding:20px;
  }
}