.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)}
}
body{
  margin:0;
  font-family:Inter,sans-serif;
  background:#0d0d0d;
  color:#eaeaea;
  scrollbar-width:none;
}
body::-webkit-scrollbar{display:none;}
.navbar{
  width:100%;
  background:#1a1a1a;
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  border-bottom:1px solid #252525;
}
.navbar a{color:white;text-decoration:none;margin-left:12px;font-weight:bold;}

.navbar-new{
  width:100%;
  background:#1a1a1a;
  padding:15px 20px;
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  border-bottom:1px solid #252525;
}
.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:#555;
  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:#eaeaea;
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
  transition:0.2s;
}
.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);
}

.modal{
  display:none;
  position:fixed;
  z-index:1000;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  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:#1a1a1a;
  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;
}
@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:#888;
  float:right;
  font-size:28px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}
.close-modal:hover{
  color:#fff;
  transform:rotate(90deg);
}
.emoji-picker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:15px 0;
  padding:15px;
  background:#252525;
  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{
  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{
  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;
}
.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-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:linear-gradient(135deg,#4facfe 0%,#00f2fe 100%);
  color:#0b1f32;
  font-size:0.75em;
  font-weight:700;
  padding:1px;
  box-shadow:0 0 6px rgba(79,172,254,0.55);
}
.post-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,0.12);
  background:#0d0d0d;
}
.profile-identity{
  display:flex;
  align-items:center;
  gap:18px;
}
.profile-username{
  margin:0;
  font-size:1.8em;
  color:#f7f7f7;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.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: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:#f7f7f7;
  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:#1a1a1a;
  padding:20px;
  margin:80px auto 20px auto;
  border-radius:18px;
  width:90%;
  max-width:400px;
  box-shadow:0 0 10px rgba(0,0,0,0.5);
  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 #252525;
  background:#0d0d0d;
  color:white;
}
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:#252525;
  padding:12px;
  margin-bottom:10px;
  border-radius:12px;
}
.like-btn{cursor:pointer;color:#ff4081;margin-right:8px;}
.comment-btn{cursor:pointer;color:#64b5f6;margin-right:8px;}
.comment{
  margin-left:12px;
  font-size:0.9em;
  padding:8px;
  background:#1a1a1a;
  border-radius:8px;
  margin-top:5px;
}
.comments-section{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #333;
}
.comment-box{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #333;
}
.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 38px rgba(0,0,0,0.35);
  transform:translateY(-2px)
}
.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-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);
}