:root{
  --bg:#0f0a1a;
  --card:#1a1028;
  --card2:#0f0a1a;
  --text:#e9e4ff;
  --muted:#b8a8d8;
  --line:rgba(168,128,255,.25);
  --brand:#a868ff;
  --danger:#f85149;
  --ok:#3fb950;
  --chat-me:#3b82f6;
  --chat-me-text:#ffffff;
  --chat-other:#2a2f38;
  --chat-other-text:#e9e4ff;
  --shadow: 0 8px 24px rgba(0,0,0,.3);
  --radius:12px;
  --radius2:16px;
}

html[data-theme="light"]{
  --bg:#ffffff;
  --card:#f6f8fa;
  --card2:#eaeef2;
  --text:#24292f;
  --muted:#57606a;
  --line:rgba(31,35,40,.15);
  --brand:#a868ff;
  --danger:#cf222e;
  --ok:#1a7f37;
  --chat-me:#2563eb;
  --chat-me-text:#ffffff;
  --chat-other:#e5e7eb;
  --chat-other-text:#111827;
  --shadow: 0 8px 24px rgba(9,30,66,.12);
}

html[data-theme="dark"]{
  --bg:#0d0a15;
  --card:#1a1028;
  --card2:#0d0a15;
  --text:#e9e4ff;
  --muted:#b8a8d8;
  --line:rgba(168,128,255,.25);
  --brand:#a868ff;
}

html[data-theme="midnight"]{
  --bg:#050210;
  --card:#0f0a1a;
  --card2:#050210;
  --text:#f0e9ff;
  --muted:#c9b8e8;
  --line:rgba(168,128,255,.3);
  --brand:#b878ff;
}

/* ====== background (NO repeat / fixed layer) ====== */
html, body{
  height:100%;
}
body{
  margin:0;
  color:var(--text);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  background: var(--bg);
  letter-spacing: -0.02em;
}
html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background: var(--bg);
}

/* Background patterns */
html[data-bg="gradient"]::before{
  background: 
    radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168,104,255,.4) 0%, rgba(168,104,255,.1) 35%, transparent 60%),
    linear-gradient(135deg, #1a0d2e 0%, #2d1b4e 50%, #1a0d2e 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, repeat;
}

html[data-bg="dots"]::before{
  background: 
    radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 50%), rgba(168,104,255,.25) 0%, rgba(168,104,255,.15) 1px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(168,104,255,.1) 2px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(200,140,255,.08) 1.5px, transparent 2.5px),
    linear-gradient(135deg, #0f0a1a 0%, #1a0d2e 100%);
  background-size: 80px 80px, 120px 120px, 100px 100px, 100% 100%;
  background-attachment: fixed;
}

html[data-bg="mesh"]::before{
  background: 
    linear-gradient(90deg, rgba(168,104,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(168,104,255,.06) 1px, transparent 1px),
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168,104,255,.15) 0%, rgba(168,104,255,.05) 30%, transparent 70%),
    linear-gradient(135deg, #0f0a1a 0%, #2d1b4e 50%, #0f0a1a 100%);
  background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

html[data-bg="aurora"]::before{
  background:
    radial-gradient(600px circle at calc(var(--mouse-x, 50%) + 10%) calc(var(--mouse-y, 50%) - 10%), rgba(94,234,212,.35) 0%, rgba(94,234,212,0) 60%),
    radial-gradient(520px circle at calc(var(--mouse-x, 50%) - 15%) calc(var(--mouse-y, 50%) + 5%), rgba(167,139,250,.35) 0%, rgba(167,139,250,0) 60%),
    radial-gradient(480px circle at calc(var(--mouse-x, 50%) + 20%) calc(var(--mouse-y, 50%) + 20%), rgba(251,191,36,.25) 0%, rgba(251,191,36,0) 60%),
    linear-gradient(135deg, #0b0a14 0%, #151024 50%, #0b0a14 100%);
  background-size: 160% 160%, 150% 150%, 140% 140%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  animation: aurora-drift 16s ease-in-out infinite;
  animation-delay: var(--aurora-delay, 0s);
  background-attachment: fixed;
}

@keyframes aurora-drift{
  0%{
    background-position: 0% 0%, 20% 10%, 10% 30%, 0 0;
  }
  50%{
    background-position: 80% 60%, 60% 70%, 70% 40%, 0 0;
  }
  100%{
    background-position: 0% 0%, 20% 10%, 10% 30%, 0 0;
  }
}

*{ box-sizing:border-box; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(1120px, 94vw);
  margin: 18px auto 70px;
}

/* ====== Topbar (stable layout) ====== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background: rgba(15,17,23,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-theme="light"] .topbar{
  background: rgba(255,255,255,.9);
}

.topbar__inner{
  width:min(1120px, 94vw);
  margin:0 auto;
  height:64px;
  display:grid;
  grid-template-columns: 240px 1fr auto;
  gap:12px;
  align-items:center;
}

.topbar__left{ display:flex; align-items:center; }
.topbar__center{ display:flex; align-items:center; justify-content:center; }
.topbar__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

@media (max-width: 860px){
  .topbar__inner{
    grid-template-columns: 1fr;
    height:auto;
    padding:10px 0 12px;
  }
  .topbar__center{ justify-content:stretch; }
  .topbar__right{ justify-content:space-between; flex-wrap:wrap; }
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.1px;
  font-size:16px;
}
.brand__dot{
  width:12px;height:12px;border-radius:999px;
  background: linear-gradient(135deg, var(--brand), #d68fff);
  box-shadow: 0 0 0 4px rgba(168,104,255,.15);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(168,104,255,.15), 0 0 0 0px rgba(168,104,255,.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(168,104,255,.15), 0 0 0 8px rgba(168,104,255,.2);
    transform: scale(1.1);
  }
}
.brand__text{ }

/* Search */
.search{
  width:min(640px, 100%);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.25), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(168,104,255,.18), rgba(214,143,255,.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 8px 20px rgba(168,104,255,.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
html[data-theme="light"] .search{
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.55), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(168,104,255,.14), rgba(214,143,255,.06));
}
.search:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 12px 26px rgba(168,104,255,.28);
}
.search:focus-within{
  border-color: rgba(255,255,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 14px 30px rgba(168,104,255,.32);
}

.search__icon{ opacity:.7; font-size:14px; }
.search__btn{
  border:1px solid rgba(255,255,255,.35);
  cursor:pointer;
  border-radius:999px;
  padding:6px 12px;
  font-weight:600;
  font-size:12px;
  color:#fff;
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.35), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(168,104,255,.45), rgba(214,143,255,.25));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 14px rgba(168,104,255,.25);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html[data-theme="light"] .search__btn{ color: white; }
.search__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 10px 20px rgba(168,104,255,.35);
}

.input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
/* Buttons */
.btn{
  border:1px solid rgba(255,255,255,.28);
  cursor:pointer;
  border-radius:22px;
  padding:10px 14px;
  font-weight:600;
  font-size:14px;
  color:#fff;
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.35), rgba(255,255,255,0) 40%),
    linear-gradient(135deg, rgba(168,104,255,.45), rgba(214,143,255,.25));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 8px 20px rgba(168,104,255,.25);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  text-align: center;
}
.btn:hover{ 
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 12px 26px rgba(168,104,255,.35);
  border-color: rgba(255,255,255,.45);
}
.btn:active{ transform: translateY(0px); }
.btn--ghost{
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.28), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(168,104,255,.18), rgba(214,143,255,.08));
  border:1px solid rgba(255,255,255,.25);
  color:var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 6px 16px rgba(168,104,255,.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.btn--ghost:hover{
  border-color: rgba(255,255,255,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 10px 22px rgba(168,104,255,.25);
}
html[data-theme="light"] .btn--ghost:hover{
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.45), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(168,104,255,.14), rgba(214,143,255,.06));
}
.btn--danger{
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.35), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(248,81,73,.55), rgba(255,71,87,.25));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 8px 20px rgba(248,81,73,.25);
}
.btn--danger:hover{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 12px 26px rgba(248,81,73,.35);
}
.btn--small{ padding:8px 12px; font-size:13px; border-radius:18px; }

.iconBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.2);
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,.25), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(168,104,255,.15), rgba(214,143,255,.08));
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  cursor:pointer;
  transition: all .15s ease;
}
.iconBtn:hover{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 8px 16px rgba(168,104,255,.2);
}
html[data-theme="light"] .iconBtn:hover{
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,.45), rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(168,104,255,.12), rgba(214,143,255,.06));
}

/* User chip */
.userChip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(168,104,255,.3);
  background: rgba(168,104,255,.08);
  transition: all .15s ease;
}
.userChip:hover{
  background: rgba(168,104,255,.15);
  border-color: rgba(168,104,255,.5);
}
html[data-theme="light"] .userChip:hover{
  background: rgba(168,104,255,.08);
}
.userChip__ava{
  width:28px;height:28px;border-radius:999px; object-fit:cover;
  border:2px solid var(--brand);
}
.userChip__name{ font-weight:600; font-size:14px; }

/* Theme menu */
.bgPicker{ position:relative; }
.bgMenu{
  position:absolute;
  right:0;
  top:48px;
  min-width:190px;
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 8px;
  padding:8px;
  box-shadow: var(--shadow);
  display:none;
}
.bgMenu.open{ display:block; }
.bgMenu button{
  width:100%;
  background: transparent;
  border:1px solid transparent;
  color: var(--text);
  padding:10px 10px;
  border-radius:6px;
  text-align:left;
  cursor:pointer;
  transition: all .15s ease;
}
.bgMenu button:hover{
  border-color: var(--line);
  background: rgba(255,255,255,.05);
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
  margin-bottom:12px;
}
html[data-theme="light"] .card{ background: var(--card); }

.row{ display:flex; align-items:center; gap:10px; }
.sp{ justify-content:space-between; }
.muted{ color:var(--muted); }
.small{ font-size:13px; }
.chatLast{
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:8px;
  background: var(--card2);
  color:var(--text);
  padding:12px;
  outline:none;
  font-size:14px;
  line-height:1.5;
  font-family: inherit;
}
textarea:focus{
  border-color: var(--brand);
}
html[data-theme="light"] textarea{ background: var(--card2); }

/* New post input */
.newPostHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.newPostTitle{ font-weight:1000; }
.newPostForm{ position:relative; }
.newPostInput{
  position:relative;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.18), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(168,104,255,.12), rgba(214,143,255,.06));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 20px rgba(168,104,255,.12);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.newPostGlow{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:18px;
  background: conic-gradient(
    rgba(255,107,107,.35),
    rgba(254,202,87,.35),
    rgba(29,209,161,.35),
    rgba(84,160,255,.35),
    rgba(95,39,205,.35),
    rgba(255,107,107,.35)
  );
  opacity:0;
  filter: blur(10px);
  transition: opacity .25s ease;
  pointer-events:none;
  z-index:0;
}
.newPostInput textarea{
  position:relative;
  z-index:1;
  min-height:140px;
  border:none;
  background: transparent;
  padding:14px 16px;
}
.newPostInput:focus-within{
  border-color: rgba(255,255,255,.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 12px 26px rgba(168,104,255,.22);
  transform: translateY(-1px);
}
.newPostInput:active{
  transform: translateY(0px) scale(0.995);
}
.newPostInput:focus-within .newPostGlow{
  opacity:.5;
  animation: glow-pulse 1.6s ease-in-out infinite;
}

@keyframes glow-pulse{
  0%, 100%{ opacity:.45; }
  50%{ opacity:.7; }
}

/* Comment input */
.commentForm{ margin-top:10px; }
.commentInput{
  position:relative;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(140% 140% at 10% 10%, rgba(255,255,255,.16), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(168,104,255,.10), rgba(214,143,255,.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 8px 18px rgba(168,104,255,.10);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.commentGlow{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:16px;
  background: conic-gradient(
    rgba(255,107,107,.28),
    rgba(254,202,87,.28),
    rgba(29,209,161,.28),
    rgba(84,160,255,.28),
    rgba(95,39,205,.28),
    rgba(255,107,107,.28)
  );
  opacity:0;
  filter: blur(10px);
  transition: opacity .25s ease;
  pointer-events:none;
  z-index:0;
}
.commentInput textarea{
  position:relative;
  z-index:1;
  min-height:110px;
  border:none;
  background: transparent;
  padding:12px 14px;
}
.commentInput:focus-within{
  border-color: rgba(255,255,255,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 12px 24px rgba(168,104,255,.18);
  transform: translateY(-1px);
}
.commentInput:active{
  transform: translateY(0px) scale(0.995);
}
.commentInput:focus-within .commentGlow{
  opacity:.5;
  animation: glow-pulse 1.6s ease-in-out infinite;
}

/* Avatars / badges */
.miniAva{
  width:36px;height:36px;border-radius:999px;
  object-fit:cover;
  border:2px solid var(--brand);
}
.badge{
  width:18px;height:18px; vertical-align:middle; margin-left:6px;
}
.badgeBanned{
  height:20px;
  width:auto;
  vertical-align:middle;
  margin-left:6px;
  position: relative;
  top: 6px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(168,104,255,.3);
  background: rgba(168,104,255,.12);
  font-size:12px;
  font-weight:600;
}
.chip.danger{
  border-color: rgba(248,81,73,.5);
  background: rgba(248,81,73,.15);
}

/* Posts */
.likeBtn{ display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.likeBtn.isLiked{
  color: var(--danger);
}
.postTitle{ font-weight:700; font-size:18px; line-height:1.25; }
.postBody{ margin-top:8px; line-height:1.6; color: var(--text); }
.divider{ height:1px; background: var(--line); margin:10px 0; }
.feedPhoto{
  width:auto;
  max-width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  border:1px solid var(--line);
  background: var(--card2);
  max-height: 360px;
  object-fit: contain;
  margin: 0;
}
.feedPhoto--portrait{
  max-height: 280px;
  max-width: 75%;
}

/* Chat */
.chatMessage{
  display:flex;
  gap:10px;
  margin:10px 0;
}
.chatMessage__ava{ flex:0 0 auto; }
.chatMessage__content{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:70%;
}
.chatMessage__meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.chatMessage__name{ font-weight:700; }
.chatMessage__bubble{
  padding:10px 12px;
  border-radius:14px;
  background: var(--chat-other);
  color: var(--chat-other-text);
  border:1px solid var(--line);
  line-height:1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chatMessage--me{
  justify-content:flex-end;
}
.chatMessage--me .chatMessage__content{
  align-items:flex-end;
  text-align:right;
}
.chatMessage--me .chatMessage__bubble{
  background: var(--chat-me);
  color: var(--chat-me-text);
  border-color: transparent;
}

.chatCard{
  max-width: 820px;
  margin-left:auto;
  margin-right:auto;
}

/* Photos */
.gridPhotos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
@media (max-width:820px){ .gridPhotos{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:520px){ .gridPhotos{ grid-template-columns: 1fr; } }

.ph{
  width:100%;
  border-radius:8px;
  border:1px solid var(--line);
  object-fit:cover;
  aspect-ratio: 1 / 1;
  cursor:zoom-in;
  transition: all .2s ease;
}
.ph:hover{
  transform: scale(1.02);
}

/* Modal */
.imgModal{
  position:fixed; inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.imgModal.open{ display:flex; }
.imgModal__back{
  position:absolute; inset:0;
  background: rgba(0,0,0,.8);
}
.imgModal__card{
  position:relative;
  width:min(980px, 94vw);
  border-radius: 12px;
  overflow:hidden;
  background: var(--card);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.imgModal__card img{
  width:100%;
  display:block;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}
.imgModal__cap{
  padding:12px;
  color: var(--muted);
  font-weight:600;
  font-size:14px;
}
.imgModal__close{
  position:absolute;
  right:10px;
  top:10px;
}

/* Rings */
.ring{
  width:92px;height:92px;border-radius:999px;
  padding:3px;
  background: transparent;
}
.ring img{
  width:100%;height:100%;
  border-radius:999px;
  object-fit:cover;
  border:2px solid var(--line);
}
.ring.verified{
  background: conic-gradient(
    #ff6b6b,
    #feca57,
    #1dd1a1,
    #54a0ff,
    #5f27cd,
    #ff6b6b
  );
  animation: spin-ring 6s linear infinite;
}
.ring.verified img{
  border: 2px solid transparent;
  box-shadow: 0 0 18px rgba(168,104,255,.35), 0 0 36px rgba(168,104,255,.2);
  will-change: transform;
}

.ring.banned{
  background: transparent;
}
.ring.banned img{
  border: 2px solid var(--danger);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--danger), 0 0 12px rgba(248,81,73,.3);
}

@keyframes spin-ring{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

@keyframes spin-avatar{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

/* Toast */
.toast{ margin-bottom:12px; }
.toast__item{
  background: rgba(88,166,255,.14);
  border: 1px solid rgba(88,166,255,.30);
  padding:12px;
  border-radius: 8px;
  margin-bottom:8px;
  font-weight:600;
  font-size:14px;
}

/* Table */
.table{ width:100%; border-collapse: collapse; overflow:hidden; }
.table th, .table td{
  padding:12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.table th{ color: var(--muted); font-size:12px; font-weight:700; }
/* ===== Fix layout helpers ===== */
.btnRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.row{
  align-items:flex-start; /* чтобы не прыгало по высоте */
}

.card .row.sp{
  align-items:flex-start;
}

.postActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Verified badge animation */
.badge--verified{
  position: relative;
  width: 18px;
  height: 18px;
  top: 6px;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(168, 104, 255, 0.4));
  animation: pulse-verified 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: all 0.3s ease;
}

.badge--verified:hover{
  animation: pulse-verified 0.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 0 16px rgba(168, 104, 255, 0.8));
  transform: scale(1.3);
}

@keyframes pulse-verified{
  0%, 100%{
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(168, 104, 255, 0.4));
  }
  50%{
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(168, 104, 255, 0.2));
  }
}

@media (max-width: 640px){
  .postActions{
    justify-content:flex-start;
  }
/* Verified badge in PROFILE: немного вниз и левее */
.badge--profile{
  position: relative;
  top: 1px;
  left: -1px;
  }
}


