﻿@import url('layout/layout.css');
@import url('/static/core/css/chat.css');
@import url('/static/core/css/video_grid.css');

:root{
    --bg:#121212;
    --panel: rgb(255 255 255 / 8%);
    --solid-panel: #242424;
    --text: #e7e7ea;
    --muted: #9aa0a6;
    --line: #222;
    --muted-gray: hsl(0deg 0% 100% / 70%);
    --muted-primary: #b0a0cd;
    --active-peach: #44353e;
    --peach: #ffc4ad;
    --peach-ink: #2e1309;
    --post-button: hsl(0deg 0% 100% / 5%);
    --main-font: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    /* Scrollbar palette */
    --scrollbar-size: 8px;
    --scrollbar-thumb: rgba(255,255,255,0.18);
    --scrollbar-thumb-hover: rgba(255,255,255,0.28);
    --scrollbar-thumb-active: rgba(255,255,255,0.38);
    --scrollbar-track: transparent;
  }


  /* Reset-ish */
  *{ box-sizing: border-box; }

  html,body{ 
    margin:0; 
    padding:0; 
    color:var(--text); 
    font-size:14px; 
    line-height:1.5; 
    font-family:var(--main-font); }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
  }

  p {
    margin: 0;
  }
hr {
    border-width: 1px !important;
    border-top: none;
    border-color: #414141;
    border-radius: 0;
    background: #fff;
    border-left: 0;
    border-right: 0;
    margin: 14px 0;
}
  a{ color:inherit; text-decoration:none; }
  button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
  /* Screen-reader only utility */
  .sr-only{ position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,1,1)!important; white-space:nowrap!important; border:0!important; }
  /* Normalize checkbox size across pages */
  input[type="checkbox"]{
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 2px 6px 2px 0;
    vertical-align: -2px;
    accent-color: var(--peach);
  }

  .icon-right {
        position: absolute;
    right: 0;
    height: 40px;
    display: grid
;
    place-items: center;
    width: 48px;
    z-index: 100;
    top: 0;
  }

  .auth-footer { 
padding: 16px;
    display: flex
;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    bottom: 0;
    width: 100%;
    left: 0;
    margin-top: 27px;
  }

  .auth-footer-inner {
    display: flex;
    gap: 12px;
  }

  .auth-footer a {
  white-space:nowrap;   /* don't wrap inside a link */
  flex:0 1 auto;        /* allow wrapping between items */
  max-width:100%;       /* enables ellipsis with min-width:0 */
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  }
  .auth-footer a span {
    display: block;
  }
  /* Subtle peach glow in top-left */
  .peach-glow{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 1000px);
    height: min(60vh, 600px);
    background: radial-gradient(50% 50% at 50% 50%, rgba(255,196,173,.28) 0%, rgba(255,196,173,0) 65%);
    pointer-events: none;
    z-index: 0;
  }
  /* Peach gradient utilities */
  .gradient-text{
    background: linear-gradient(135deg, #ffc4ad 0%, #ff7a5b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .ring-gradient{
    position: relative;
  }
  .ring-gradient:before{
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, #ffc4ad, #ff7a5b);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  /* Badges */
  .badge{
    padding: 3px 4px;
    border-radius: 5px;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 800;
    display:inline-block;
    white-space: nowrap;
  }
  .badge .icon{ width:12px; height:12px; margin-right:4px; vertical-align:-2px; }
  .badge--new{ background:#004730; border:1px solid #001607; color:#fff; }
  .badge--trending{ background:#0b4f9c; border:1px solid #062c59; color:#fff; }
  .badge--active{ background:#4b2c7a; border:1px solid #2e1a4a; color:#fff; }
  .badge--hot{ background:#7a1f0e; border:1px solid #3d1007; color:#fff; }
  .badges{ display:inline-flex; gap:6px; vertical-align: middle; }
  /* ADMIN peach badge */
  .admin-badge{
    display: inline-flex ;
    align-items: center;
    gap: 2px;
    padding: 0px 4px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--peach-ink);
    background: linear-gradient(90deg, #ffb89e, #ffd1c1 35%, #ffa882 65%, #ffb89e);
    background-size: 200% 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: peachShimmer 2.8s ease-in-out infinite;
    line-height: 12px;
    margin-left: 6px;
  }
  .admin-badge .icon{ width:12px; height:12px; color: var(--peach-ink); }
  @keyframes peachShimmer {
    0%   { background-position: 200% 0; }
    50%  { background-position: 0 0; }
    100% { background-position: -200% 0; }
  }
  /* Small emoji icons inside notifications */
  .notif-emoji { width:16px; height:16px; display:inline-block; vertical-align:-3px; margin: 0 4px; }

  /* Modern, minimal scrollbars (Firefox) */
  * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
  /* Reserve scrollbar gutter only when needed to avoid a constant right gap */
  html { scrollbar-gutter: auto; }
  
  /* Modern, minimal scrollbars (WebKit: Chrome/Safari/Edge) */
  *::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
  *::-webkit-scrollbar-track { background: var(--scrollbar-track); }
  *::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent; /* creates inset look */
    background-clip: padding-box;
  }
  *::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
  *::-webkit-scrollbar-thumb:active { background-color: var(--scrollbar-thumb-active); }
  *::-webkit-scrollbar-corner { background: transparent; }

  /* Layout helpers */
  .container{ max-width:1200px; margin:0 auto; padding:0 16px; }

  /* Icon system */
  .upload-thumb .plus-icon,.upload-thumb .plus-icon svg {
        color: var(--peach);
        height: 31px;
        width: 31px;
  }

  .color-active {
    fill: var(--peach)!important;
    color: var(--peach);
  }

  .plus-icon-post {
      color: var(--peach);
    height: 48px;
    width: 48px;
  }

  .create-post-icon {
    height: 16px!important;
    width: 16px!important;
  }
  .icon{
    flex-shrink: 0;
    width:28px;height:28px;display:inline-block;vertical-align:middle;
    color:var(--fg); /* icons use currentColor */
  }
  .icon-16{width:16px;height:16px}
  .icon-20{width:20px;height:20px}
  .icon-24{width:24px;height:24px}
  .icon-32{width:32px;height:32px}
  .icon-muted{color:var(--muted)}

.field{position: relative;}
.top{
  gap: 12px;
  align-items: center;
  flex-direction: column;
}
  .avatar {
  min-width: 60px;
  min-height: 60px;
  width: 60px;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
}

.clamp-2 {
  display: -webkit-box;           /* makes it a flex-like box */
  line-clamp: 2;
  -webkit-line-clamp: 2;          /* limit to 2 lines */
  -webkit-box-orient: vertical;   /* set vertical layout */
  overflow: hidden;               /* hide the rest */
  text-overflow: ellipsis;        /* add â€¦ */
}

.f-label {
  font-size: 14px;
    color: #dbdbdb;
    font-weight: 600;
    display: block;
    width: 100%;

}
label.f-label.split {
    display: flex;
    justify-content: space-between;
}
.small-hint {
      color: var(--muted);
}

.relative {
  position: relative;
}

.m0 {
  margin: 0!important;
}

.pt-0 {
  padding-top: 0!important;
}

.mt-25 {
  margin-top: 25px;
}

.mt-14 {
  margin-top: 14px!important;
}

.mb-25 {
  margin-bottom: 25px;
}

.btn-sm {
  height: 28px!important;
}
.w100 {
  width: 100%!important;
}
.rounded-top {
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.title{font-weight:800;letter-spacing:.4px;font-size:14px;text-transform:uppercase;line-height:1.5}
.subline{font-size:13px;color:var(--muted-gray)}

.page-title {
    margin: 0;
    line-height: 30px;
}
hr.sep{border: 0;
    border-top: 1px solid #ffffff14;
    margin: 12px 0;
    background: transparent;}

.sec-title {
font-size: 14px;
    font-weight: 800;
    display: block;
    color: #fff;
    line-height: 1;
    margin: 14px;
}

span.sec-title.sec-small {
    margin: 0;
    line-height: 1.4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}
.roles{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    vertical-align: middle;
  }
  
.role-badge{
  text-transform: uppercase;
  padding: 0px 9px;
  font-size: 10px;
  line-height: 26px;
  font-weight: 800;
  border-radius: 100px;
  letter-spacing: .5px;
  }

.clamp-text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;           /* standard property for compatibility */
  -webkit-line-clamp: 3;   /* initial clamp; JS only decides to show the button */
  overflow: hidden;
}
.clamp-wrap.expanded .clamp-text{
  line-clamp: initial;
  -webkit-line-clamp: initial;
  max-height: none;
}
.clamp-toggle{
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.font-12{ font-size:12px; }
.font-13{ font-size:13px; }
[hidden]{ display: none !important; }
.role-none { background: #ffffff;} /* fallback for no roles */
[class^="role-"], [class*=" role-"] { color: rgb(0 0 0 / 85%); } /* default */
/* === Role backgrounds === */
.role-exploring   { background:#ffc4ad; }
.role-top         { background:#65d08a; }
.role-bottom      { background:#ff7a7a; }
.role-vers        { background:#9aa7ff; }

.role-sissy       { background:#ff7eb6; }
.role-femboy      { background:#ff9bd2; }
.role-trap        { background:#ff80c8; }
.role-bimbo       { background:#ff308f; }   /* dark â†’ white text */
.role-doll        { background:#ffb3d9; }
.role-crossdress  { background:#ffa3cf; }

.role-chastity    { background:#8e67ff; }   /* dark â†’ white text */
.role-keyholder   { background:#8f7cff; }   /* dark â†’ white text */
.role-denial      { background:#bba8ff; }
.role-tease       { background:#b48bff; }
.role-edging      { background:#c2a3ff; }

.role-sub         { background:#6aa6ff; }   /* dark â†’ white text */
.role-dom         { background:#6d71ff; }   /* dark â†’ white text */
.role-switch      { background:#7b89ff; }   /* dark â†’ white text */
.role-brat        { background:#7da8ff; }
.role-tamer       { background:#5860ff; }   /* dark â†’ white text */
.role-cuck        { background:#8fb1ff; }
.role-bull        { background:#5b7bff; }   /* dark â†’ white text */
.role-sph         { background:#7c90ff; }
.role-humiliation { background:#5a3e7a; }   /* dark â†’ white text */

.role-panties     { background:#ff92b0; }
.role-latex       { background:#2f2f37; }   /* dark â†’ white text */
.role-leather     { background:#3b2f2a; }   /* dark â†’ white text */
.role-cosplay     { background:#ffc078; }

.role-exhibition  { background:#ffad66; }
.role-voyeur      { background:#ffce73; }
.role-public      { background:#ffc36f; }
.role-cam         { background:#ffdb86; }
.role-photographer{ background:#79c0ff; }
.role-creator     { background:#9ad3ff; }

.role-paypig      { background:#ff8fbf; }
.role-findom      { background:#e86ab8; }
.role-bunny       { background:#f9b0c7; }
.role-sugar       { background:#78e8a4; }
.role-servant     { background:#94c6ff; }
.role-maid        { background:#9bd1ff; }
.role-princess    { background:#ff78c6; }
.role-domme       { background:#8a6bff; }   /* dark â†’ white text */

.role-pet         { background:#7ee5d1; }
.role-pup         { background:#6fe0c7; }
.role-kitten      { background:#8fead9; }
.role-daddy       { background:#5dc0ff; }
.role-mommy       { background:#8cd1ff; }
.role-little      { background:#9be3ff; }
.role-caregiver   { background:#84d9ff; }
.role-rope        { background:#cfa77a; }
.role-rigger      { background:#b98b65; }   /* dark â†’ white text */
.role-owner       { background:#6f7dff; }   /* dark â†’ white text */
.role-handler     { background:#5dd4c6; }

.role-roleplay    { background:#9bb0ff; }
.role-fantasy     { background:#c8a7ff; }
.role-lurker      { background:#5b5b5b; }   /* dark â†’ white text */
.role-baby        { background:#ffd6a3; }
.role-hotwife     { background:#ff9966; }

/* === Force white text for dark roles === */
.role-latex,
.role-leather,
.role-owner,
.role-humiliation,
.role-keyholder,
.role-sub,
.role-switch,
.role-tamer,
.role-rigger,
.role-bull,
.role-dom,
.role-lurker,
.role-domme,
.role-chastity,
.role-bimbo {
  color:#fff !important;
}



.meta-line {
    color: var(--muted-gray);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block!important;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 7px;
}
.about-box {
    display: flex;
    margin-top: 7px;
    background: var(--panel);
    align-self: center;
    padding: 14px;
    border-radius: 12px;
    max-width: 100%;
    gap: 7px;
    flex-direction: column;
    width: 100%;
}

.auth-box {
  background-color: var(--solid-panel);
}
.bio {
    margin: 7px 0 0 0;
    color: #fff;
    font-size: 13px;
  }

span.about-tag {
    border-right: 1px solid #ffffff1a;
    padding-right: 10px;
}

.float-right {
    display: flex
;
    justify-content: flex-end;
}
span.about-tag:last-child {
    border: none;
    padding-right: 0;
}

.flag-wrap {
    height: 12px;
}

textarea {
    padding: 14px;
    line-height: 1.4;
    height: auto;
    padding-bottom: 20px;
    width: 100%;
    color: #fff;
    border-radius: 12px;
    resize: none;
    display: block;
          border: 1px solid #ffffff26;
      background: rgb(0 0 0 / 18%);
      font-family: var(--main-font);
      transition: all .2s ease;
}
textarea:focus {
    border: 1px solid var(--peach);
    outline: none;
}
textarea::placeholder {
    color: var(--muted);
}

.comment-input:focus {
    border: none;
    outline: none;
}

.about-tag.country-pill .flag-wrap img,
.about-tag.country-pill .flag-wrap span.flag-emoji {
  display: inline-block;
  width: auto;
  height: 12px;
  object-fit: cover;
  line-height: 1;
  border-radius: 2px;
}
.bio-collapsed::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #ff050500, var(--bg) 80%);
  pointer-events: none;
}

.bio p {
    margin-top: 0;
}

button#bio-toggle {
    font-size: .7rem;
    text-transform: uppercase;
    color: var(--muted-gray);
    padding: 0;
    text-decoration: underline;
    display: flex
;
}
.no-content {
text-align: center;
    margin: 1.5rem 34px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}
.flag{
  width:18px; height:14px; object-fit:cover; border-radius:2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  vertical-align:-2px;
}
.flag-emoji{ font-size:16px; line-height:1; vertical-align:-2px; }
  .cta-row {
    display: flex;
    gap: 7px;
}

.top .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
  .btn{
    display:inline-flex;align-items:center;justify-content:center;

    padding:7px 14px; 
    border-radius:6px; 
    cursor:pointer;
  }
.btn-follow,
.btn-unfollow {
display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 8px;
    border-radius: 100px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    min-height: 21px;
}

.btn-unfollow {
    background: hsl(16.83deg 100% 83.92% / 23%) !important;
    color: #ffc4ad!important;
}

.btn-follow {
  background: var(--peach)!important;
    color: var(--peach-ink);
}

  .btn-message{
    color: var(--peach);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-danger {
    background-color: #cf1224;
  }
  .btn-cancel {
    background-color: #2a2a2a;
    color: #fff;
  }
  .group-actions {
  display: flex;
  gap: 8px;
}

.group-actions .group-btn {
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    padding: 0 14px;
    height: 28px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 100px;
    flex: 1;
    display: flex;
    line-height: 1;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.group-actions .group-btn .icon {
      fill: var(--peach-ink);
    width: .75rem;
        height: .75rem;
}

.group-actions .btn-member .icon {
      fill: var(--peach);
}
.btn-join {
  background: var(--peach);
  color: var(--peach-ink);
}

.btn-visit {
  background: transparent;
  color: var(--peach);
  border: 1px solid var(--peach);
}

.btn-member {
    background: hsl(16.83deg 100% 83.92% / 23%);
    color: #ffc4ad;
}
.user-info {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    padding: 3px 12px;
    flex: 0 0 auto;
    max-width: 100%;
    border: 1px solid #ffffff1a;
}
.about-tag.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 12px;
  max-width: 100%;
}

.about-tag.country-pill .country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  display: inline-block;
}

.about-tag.country-pill .flag-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.about-tag.country-pill .flag-wrap img,
.about-tag.country-pill .flag-wrap span.flag-emoji {
  display: inline-block;
  max-width: none;
  height: 1em;
}


.cta-row .btn {
    min-width: 30px;
    font-size: 13px;
    text-transform: none;
    box-sizing: border-box;
    border: none;
    padding: 0px !important;
    font-weight: 700;
    background: #212121;
}

.cta-row .btn.w-padding {
  padding: 0 14px!important;
  flex: 1;
}

.w-padding {
  padding: 0 14px!important;
}
.cta-row .btn-follow{
  font-size: 14px;
  text-transform: none;
}

.cta-row .btn-unfollow {
  text-transform: none;
  font-size: 13px;
}

h1.username {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--muted-gray);
}
.stats {
    display: flex;
    margin: 7px auto;
    gap: 18px;
    background: var(--panel);
    align-self: center;
    padding: 14px;
    border-radius: 12px;
    max-width: 100%;
}
.stat .n {
    font-weight: 700;
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1;
}
.stat .t {
    color: var(--muted-gray);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.stat,
.stat a {
    line-height: 1;
    display: flex
;
    flex-direction: column;
    gap: 7px;
}

  /* .stat-left {
    border-right: 1px solid var(--muted-primary);
  }
  .stat-right {
    border-left: 1px solid var(--muted-primary);
  } */
  /* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}
  .nav-row{
    height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  }


  /* Desktop nav */
  .nav{
    display:flex; align-items:center; gap:18px;
  }
  .nav a{
    padding:8px 10px; border-radius:10px; color:#fff;
    transition: color .15s ease, background-color .15s ease;
  }
  .nav a:hover{ color:var(--text); background:#161823; }
  .nav a.is-active{
    color: #fff;
    background: rgb(47 25 43);
    border: 2px solid #753c70;
  }

  /* Right side actions (auth vs guest) */
  .actions{ display:flex; align-items:center; gap:10px; }
  .btn-primary:hover{ filter: brightness(1.03); }

  /* Mobile */
  .burger{ display:none; }
  .burger input{ display:none; }
  .burger label{
    display:flex; width:42px; height:42px; border-radius:10px; align-items:center; justify-content:center;
    border:1px solid var(--line); background:#12131a;
  }
  .burger label .bars{ width:20px; height:2px; background:var(--text); position:relative; }
  .burger label .bars:before, .burger label .bars:after{
    content:""; position:absolute; left:0; width:20px; height:2px; background:var(--text);
  }
  .burger label .bars:before{ top:-6px; } .burger label .bars:after{ top:6px; }

  .mobile-panel{
    display:none;
    border-top:1px solid var(--line);
    background:var(--panel);
  }
  .mobile-links, .mobile-actions{
    display:flex; flex-direction:column; gap:6px; padding:12px 0;
  }
  .mobile-links a{
    padding:12px; color:var(--muted); border-radius:10px; margin:0 8px;
  }
  .mobile-links a.is-active{ color:#fff; background:rgba(114,9,183,.14); }

  /* Toggle mobile */
  #nav-toggle:checked ~ .mobile-panel{ display:block; }

  /* Footer */
  .site-footer{
    border-top:1px solid var(--line); margin-top:48px; background:#0d0e13;
  }
  .foot-row{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:18px 0; color:var(--muted); font-size:14px;
  }
  .foot-links{ display:flex; gap:16px; }
  .foot-links a{ color:var(--muted); }
  .foot-links a:hover{ color:#fff; }
.card {
    padding: 14px;
}
  /* Post Card Styles */
  .posts-list {
    display: flex;
    overflow: hidden;
    flex-direction: column;
  }
  .post-card {
    border-bottom: 1px solid var(--line);
  }

.ellipsis-btn,
.bookmark-btn {
  padding: 0;
  color: var(--muted-gray);
}
.bookmark-btn .icon-active { display: none; }
.bookmark-btn.active .icon-default { display: none; }
.bookmark-btn.active .icon-active  { display: inline; }
/* optional: color change when active */
.bookmark-btn.active { color: var(--acc-2, #7b88ff); }

.bookmark-btn {
  color: #aaa;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bookmark-btn.bookmarked {
  color: var(--peach);
}
.bookmark-label {
  font-weight: 600;
  font-size: 1rem;
}
.bookmarks-list {
    overflow: hidden;
    border-radius: 12px;
}
  .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 10px 14px;
  }
.post-avatar {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.post-card .post-image {
    width: 100%;
    display: block;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}



  .post-card .name-row .dot {
    width: 4px;
    height: 4px;
    background: var(--muted-gray);
    border-radius: 50%;
    display: inline-block;
}

/* Empty State */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 16px;
}
/* .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--active-peach);
  color: var(--peach);
  margin-bottom: 10px;
} */
.empty-title {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.2px;
  margin: 0
}
.empty-subtitle {
  color: var(--muted-gray);
  max-width: 540px;
  margin: 0 auto 10px;
  font-size: 14px;
}
.empty-actions .btn { height: 36px; padding: 0 16px; }

.post-card .name-row-username {
    line-height: 1;
}
a.username-link {
    display: flex
;
    align-items: center;
    font-weight: 600;
    letter-spacing: .3px;
    font-size: 13px;
}

  .avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #e77044, #ffc4ad);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
  }

  .avatar-fallback.big-fallback {
    width: 100%;
    height: 100%;
    font-size: 2rem;
  }

  .avatar-fallback.small-fallback {
    width: 20px;
    height: 20px;
    font-size: 10px;
    color: #fff;
  }
.post-group {
    opacity: 1;
    height: auto;
    display: flex;
    line-height: 12px;
}


/* Let the link block shrink; keep controls fixed */
.post-header > :first-child { flex: 1 1 auto; min-width: 0; } /* left stack */
.post-header > :last-child  { flex: 0 0 auto; }               /* follow + â€¦ */

/* Group row: only the name truncates */
.post-group-link {
  /* you already have display:flex; align-items:center; */

  min-width: 0;          /* KEY: allow shrinking */
  overflow: visible;      /* don't clip the inner ellipsis */
}

.post-group-link span:first-child { /* the "In:" label */
  flex: 0 0 auto;         /* never shrinks */
}

.post-group-link .post-group-name {
  flex: 1 1 auto;         /* the only shrinkable part */
  min-width: 0;           /* KEY: allow truncation */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;         /* avoids inline quirks in some browsers */
}

/* Join/Member stays its size */
.post-group { flex: 0 0 auto; }
.join-group-link { white-space: nowrap; }

/* Follow + ellipsis on the right should not shrink */
.btn-follow,
.ellipsis-btn { flex: 0 0 auto; }


.report-btn.reported { opacity: .6; pointer-events: none; }

.report-title {
    margin-bottom: 7px;
    line-height: 1;
}




.profile-recent-photos {
  position: relative;
    padding: 0 14px 14px 14px;
    border-bottom: 1px solid var(--line);
}

.sec-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.section-title { margin:0; font-size:14px; font-weight:600; opacity:.7; }

.recent-photos-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:7px;
}


.tile {
    position: relative;
    display: flex
;
    overflow: hidden;
    background: hsl(0deg 0% 0% / 54.12%);
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
}

.tile img { width:100%; height:100%; object-fit:cover; display:block; }

.tile .more-overlay  {
    font-size: 12px !important;
    font-weight: 600;
    color: #ffffffcf;
    text-transform: uppercase;
}

.more-photos-count {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.tile.more span {
  display: block;
  text-align: center;
  font-size: 16px;
}
.more-overlay { pointer-events:none; }
.post-group--collapsed {
  transition: opacity .2s ease, height .2s ease, margin .2s ease, padding .2s ease;
  opacity: 0;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.post-collapsed {
  transition: opacity .2s ease, height .2s ease, margin .2s ease, padding .2s ease;
  opacity: 0;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.post-group-link {
    text-decoration: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    line-height: 12px;
    overflow: hidden;
    gap: 4px;
    font-size: 12px;
}

.post-group-link .post-group-name {
      font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
}

a.join-group-link,
.join-group-link.joined {
font-size: 12px;
    color: var(--peach);
    font-weight: 700;
    line-height: 12px;
    margin-left: 4px;
}

button.group-btn.btn-join.is-joined {
    background: hsl(16.83deg 100% 83.92% / 23%) !important;
    color: var(--peach);
}

.post-group .group-name {
  font-weight: 700;
  color: #ceacff;
}
  .user-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .profile {
    padding: 14px;
  }

  .profile .avatar-fallback {
    height: 54px;
    width: 54px;
    color: #fff;
    background: linear-gradient(135deg, #e77044, #ffc4ad);
    font-weight: 800;
    font-size: 2rem;
  }

  .name {
font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    gap: 14px;
}

.timestamp {
  color: var(--muted);
}

button.ellipsis-btn {
  padding-right: 0;
}
  .post-menu {
    margin-left: auto;
  }

  .top button.user-ellipsis-btn {
    margin-left: auto;
}

  .menu-btn {
    background: none;
    border: none;
    color: #E2D1F9;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
  }

  .post-body {
    margin: 0;
    font-size: 1rem;
    color: #E9E9EE;
  }

.post-body p {
    padding: 0px 14px;
    margin-bottom: 10px;
}
  .post-tags {
    display: flex;
    margin: 0px 14px 10px 14px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .tag {
color: var(--peach);
  }

  .tag-list {
    margin: 0;
    list-style: none;
    padding: 0 14px;
  }

  .tag-link {
background: #ffffff0d;
    border: 1px solid var(--line);
    padding: 10px;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    font-weight: 700;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .tag-link .icon {
    width: 25px;
    height: 25px;
    color: var(--peach);
  }
.reaction-summary {
    display: flex;
    align-items: center;
    gap: 4px;
}
  .reactions-bar {
    padding: 0px 14px 10px 14px;
    display: flex;
    margin-top: 10px;
    align-items: center;
    justify-content: space-between;
  }

 .reactions {
display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
  }
  .comment-count .count {
    font-weight: 600;
    font-size: 14px;
}
.reaction-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.react-trigger {
    padding: 0;
    line-height: 26px;
    display: flex;
    padding-right: 7px;
    gap: 7px;
    color: var(--muted);
    align-items: center;

}
a.comment-count {
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    height: 26px;
}

/* Comment Card Styles */
.comments-wrap {
  border-radius: 12px;
  background: #ffffff0d;
  border: 1px solid var(--line);
}
.comment-card {
    padding: 10px;
    overflow: hidden;
    border-bottom: 1px solid var(--bg);
}
.comment-card:last-child {
    border-bottom: none!important;
}
.comment-card:last-child {
    border-bottom: none;
}
.post-card .avatar-fallback {
    font-size: 14px;
}
/* Hide the numeric counts next to emoji inside the popover buttons */
.react-popover .reactions .rx .count {
  display: none !important;
}
.reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 6px;
    background: var(--panel);
    border-radius: 100px;
    height: 26px;
    align-items: center;
}
.reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reaction-emoji img { display: block; width: auto; height: 18px; }
.reaction-count { font-weight: 600; line-height: 1; }
.comment-card .comment-avatar,
.comment-card .avatar-fallback {
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  display: flex;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  color: #fff;
    
    font-weight: 800;
}

.comment-card .avatar-fallback {
  background: linear-gradient(135deg, #e77044, #ffc4ad);
}
.comment-card .comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.comment-card .name-row {
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}

.comment-card .name-row .name {
  font-size: .9rem;
}

.comment-card .name-row .dot {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
}

.comment-card .icon {
  width: 16px;
  height: 16px;   
}

.comment-card .icon-action {
  color: var(--muted);
}

button.delete-comment-btn {
  padding: 5px;
  line-height: 1;
}


.report-reason-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #393939;
    background: transparent;
    color: #fff;
    padding: 8px;
    resize: vertical;
    font-family: var(--main-font);
}

.report-reason-label {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-bottom: 10px;
}
.reported { opacity: .85; }
.comment-input {
height: 21px;
    min-height: 21px;
    max-height: 84px;
    resize: none;
    overflow-y: hidden;
    box-sizing: content-box;
    width: 100%;
    flex: 1 1 auto;
    border: none;
    align-self: center;
    background: none;
    color: var(--text);
    line-height: 21px;
    font-family: var(--main-font);
    font-size: 14px;
    padding: 0 10px;
}

.comment-card .comment-body {
  color: #E9E9EE;
}

.comment-card .comment-body p {
  margin: 4px 0 0 0;
}

/* Add to base.css */
.comment-form-avatar img,
.comment-form .avatar-fallback {
  width: 32px;
  height: 32px ;
  border-radius: 50%; /* square but rounded corners */
  object-fit: cover;
  color: #2e1309;
    background: linear-gradient(135deg, #e77044, #ffc4ad);
    font-weight: 800;
  display: block;
}

.comment-form .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ceacff;
  background: #191024;
}

.comment-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.comment-input:focus {
  outline: none;
  box-shadow: none
}

.comment-btn {
    display: flex;
    align-items: center;
    align-self: flex-end;
    color: var(--peach);
    border-radius: 100px;
    width: 40px;
    justify-content: center;
    margin-left: auto;
    height: 30px;
    min-height: 30px;
    min-width: 40px;
}

.comment-btn svg {
  height: 20px;
  width: 20px;
}


/* ...existing code... */

/* Fixed comment form at bottom of center-content */
.center-content {
  position: relative;
  /* ...existing styles... */
}

/* Fixed comment form at bottom of center-content */
.comment-form-fixed {
    left: 0;
    right: 0;
    margin: 0 auto;
    align-items: end;
    gap: 8px;
    min-height: 76px;
    position: fixed;
    z-index: 999;
    display: flex;
    bottom: 0;
    width: 100%;
    max-width: 600px;
}

.comment-input-row {
    z-index: 99999;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-bottom: 14px;
    align-items: flex-end;
    min-height: 52px;
}

.comment-input-wrap {
flex: 1;
    display: flex
;
    align-items: flex-end;
    padding: 6px;
    background: #232323;
    border-radius: 26px;
    min-height: 36px;
    transition: min-height 0.2s;
    gap: 4px;
    box-shadow: 0px 0px 14px #0000003b;
}

/* Padding div to match comment form height */
.comment-input-padding {
  height: 76px; /* Same as .comment-form-fixed height */
  width: 100%;
  display: block;
}

.react-popover {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 0;
    background: rgb(22 22 22 / 93%);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 2px;
}


/* ...existing comment form styles... */
.rx {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    padding: 0;
}

button.rx.active {
    background: #ffffff24;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 8%) inset;
}

span.count {
    line-height: 18px;
    font-size: 12px;
}



  .rx img {
    width: auto;
    height: 17px;
  }

  .rx .count {
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    margin-right: 5px;
    letter-spacing: .7px;
  }

  /* ===== Links-only tabs â€” MINIMAL, rounded border under active (no JS) ===== */
.pb-tabs {
      margin-bottom: 7px;
    position: sticky;
    top: 48px;
    z-index: 99;
    background: var(--bg);
}
.pb-tablist{
    display: flex;
    align-items: center;
    overflow: hidden;
    scrollbar-width: none;
    border-bottom: 1px solid hsl(0deg 0% 100% / 7%);
}
.pb-tablist::-webkit-scrollbar{ display:none; }

.pb-tab{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 16px 0 14px;
    text-decoration: none;
    color: var(--muted-gray);
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.pb-tab:hover{ color:var(--text-strong); }
.pb-tab:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px; border-radius:8px; }

/* Active (server marks with .is-active or aria-current) */
.pb-tab.is-active,[aria-current="page"].pb-tab{
    color: var(--peach);
    border-bottom: 2px solid var(--peach);
}
.pb-tab.is-active::after,[aria-current="page"].pb-tab::after{ content:none; }

/* Minimal content card */
  .muted{ color:var(--muted); }

.page-header { 
    display: flex;
    align-items: center;
    overflow: hidden;
    scrollbar-width: none;
    height: 48px;
    position: sticky;
    top: 0;
        background: var(--bg);
    z-index: 999;
}

.page-header a {  
    color: #fff;
    display: flex;
    padding: 0;
    min-width: 48px;
    justify-content: center;
      height: 48px;
    align-items: center;
}

.page-header h1 {
    margin: 0;
    font-size: 15px;
    line-height: 48px;
}

.page-header a img {
  width: 32px;
}

/* Tablet: shrink sidebars */
@media (max-width: 1200px) {
  .container.layout {
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
  }
  .sidebar-left,
  .sidebar-right {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    padding: 12px 6px;
  }
}

/* Group Details */
.group-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.group-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.group-details .group-avatar {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-bottom: 0;
  overflow: hidden;
}

.group-avatar-fallback {
      width: 100%;
    height: 100%;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #0b0b0b, #302f2f) !important;
    font-weight: 800;
    text-transform: uppercase;
}

.group-details .group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-details-header .group-title {
font-size: 14px;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;
}

.group-action-btn.join-btn {
    background: var(--peach) !important;
    color: #2e1309;}
.group-action-btn.leave-btn {
    background: hsl(16.83deg 100% 83.92% / 23%);
    color: #ffc4ad;
}

.group-action-btn.edit-btn {
    background: #211f23;
}

.group-details-header .group-meta {
  font-size: 13px;
  color: var(--muted);
}

.group-details-desc p {
    margin: 0;
    font-size: 13px;
    color: var(--muted-gray);
}

.group-details-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.group-details-info .group-title {
  font-size: 15px;
}

.group-details-creator {
    align-self: flex-start;
    display: flex;
    gap: 14px;
    flex-direction: column;
}
.group-admin-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
  color: #fff;
    object-fit: cover;
}

.group-details .group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-action-btn {
    font-size: 13px;
    font-weight: 700;
}
.group-admin {
    display: flex
;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.group-admin-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.group-admin-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    border: none;
    font-weight: 800;
    text-decoration: none;
    transition: transform .06s ease, filter .2s ease;
    border-radius: 100px;
    line-height: 1;
    white-space: nowrap;
}

.username,
.role-badge,
.btn,
.widget-title {
  font-family: var(--main-font);
}

h2.widget-title {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    background: hsl(0deg 0% 0% / 20%);
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.group-profile {
  background: linear-gradient(181deg, #23204a, #191024 45%);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 32px;
}

.group-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.group-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7b88ff, #e46ad3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 0 0 1px #753c70;
}

.group-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.group-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 20px;
}

span.group-stat-count {
    color: #fff;
    font-weight: 700;
}

.join-group-btn {
display: flex
;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-top: .75rem;
    background: var(--peach);
    color: #2e1309;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    line-height: 1.75rem;
}

.group-feed-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b07bff;
  margin-bottom: 10px;
  margin-top: 18px;
  border-top: 1px solid #261730;
  padding-top: 12px;
}

.group-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.muted {
  color: var(--muted);
}

.group-header-img-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0;
}

.group-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) blur(0px);
  background: linear-gradient(135deg, #7b88ff, #e46ad3);
}

.group-header-img-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7b88ff, #e46ad3);
}

.group-header-overlay {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  pointer-events: none;
}

.group-header-content {
  pointer-events: auto;
  background: rgba(30, 20, 40, 0.55);
  border-radius: 18px;
  padding: 28px 32px 18px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(30,20,40,0.18);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 80vw;
}

.group-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px #191024;
}



.group-meta-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 24px 0;
  font-size: 1rem;
  color: #ceacff;
  font-weight: 600;
}

.group-meta-bar a {
  color: #b07bff;
  text-decoration: underline;
  font-weight: 700;
}

.role-count-extra {
    background: hsl(0deg 0% 100% / 5%);
    border: none;
    border-radius: 10px;
    text-transform: uppercase;
    padding: 5px 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    border-radius: 100px;
    color: #fff;
    letter-spacing: .5px;
}
.count-pill {
    font-size: 13px;
    font-weight: 600;
    color: var(--peach);
}
.match-info {
    margin-top: 12px;
    font-size: .9rem;
    color: #cbbadb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-count {
  line-height: 1;
    font-weight: 800;
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 1.1rem;
    background: var(--peach);
    color: var(--bg);
    font-size: .9rem;
}

/* User Tag Styles */
.user-tag-list {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.user-tag {
  padding: 10px;
  display: flex;
  border-radius: 12px;
  align-items: center;
    background: #ffffff0d;
    border: 1px solid var(--line);
}


.user-tag .post-avatar,
.user-tag .avatar-fallback {
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 14px;
  justify-content: center;
}

.user-tag .user-info-link {
  gap: .75rem;
}

.user-tag .post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.name-row {
    display: flex
;
    align-items: center;
    font-size: 13px;
    line-height: 1;
}

.user-tag .name-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.user-tag .name-row .name {
  font-size: 13px;
   font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
    line-height: 1;
}


.user-tag .name-row-username {
  font-weight: 700;
  line-height: 1;
  display: flex
;
    align-items: center;
}

.user-tag-list,
.user-tag-list ul {
  list-style: none;
  margin: 0;
}



/* Call to action for new post */
.cta-new-post {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-top: .75rem;
    background: var(--peach);
    color: #2e1309;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    line-height: 1.75rem;
    margin-left: 8px;
}

.cta-new-post img {
  height: 1.75rem;
}
.cta-new-post:hover {
  background: #ffb288;
}

.search-dropdown {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}
.search-item:hover {
  background: #f3e6fa;
}
.search-type {
  font-size: 0.85rem;
  color: #a07bbd;
  margin-left: 12px;
}
.notifications-panel {
  overflow: hidden;
  padding-bottom: 48px;
  padding: 0 14px;
  overflow-y: auto;
}
.notification-card {
  padding: 10px;
  border-radius: 12px;
    background: var(--panel);
    margin-bottom: 7px;
}
.notif-header{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.notification-card:last-child {
  border-bottom: none;
}
.notification-card.unread {
  background: #fffbe9;
}
.notif-avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.notif-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08em;
}
.notif-name, .notif-username {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.notif-username {
  color: var(--peach);
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
  margin: 0 7px;
}

.notif-link {
  color: var(--peach);
  font-weight: 500;
  text-decoration: none;
}

.newest-notif {
  background: hsl(16.83deg 100% 83.92% / 10%);
  /* Add any other highlight styles you want */
}
.notification-time {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.full-comment {
    background: hsl(0deg 0% 0% / 32%);
    padding: 6px 12px;
    display: inline-block;
    border-radius: 12px;
    margin-top: 4px;
}
.badge-hidden {
  opacity: 0;
}
#notif-badge { display: none; }
#notif-badge:not(:empty):not(:where([data-zero="1"])) { 
  display: inline-flex
;
 }


 .notif-badge {
    display: flex;
    align-items: center;
    background: var(--peach);
    padding: 0;
    border-radius: 100px;
    color: #2e1309;
    font-size: 10px;
    font-weight: 800;
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(50%, -5px);
    box-shadow: 0px 4px 6px hsl(0deg 0% 0% / 29.02%);
    height: 15px;
    min-width: 15px;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
 }



/* Photo Timeline Styles */
/* Add to your CSS file */
.photo-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
        padding: 0 7px;
}
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.timeline-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Groups List Styles */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.group-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
  color: #E9E9EE;
  display: block;
  transition: box-shadow .15s;
}
.group-card:hover {
  box-shadow: 0 2px 16px rgba(114,9,183,.12);
}
.group-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.group-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7b88ff, #e46ad3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 0 1px #753c70;
}
.group-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
  color: #f0f3fa;
}

.group-description {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.group-list .group-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Limit to 2 lines */
  line-clamp: 2;              /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;          /* Adjust for your line-height */
  line-height: 1.4;         /* Match your font-size/line-height */
  font-size: 13px;
}

/* Group Tag Styles */


.group-link {
  margin-bottom: .5rem;
  display: block;
}


.group-avatar {
  width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
    display: flex
;
    align-items: center;
    justify-content: center;
}
.group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.group-avatar-fallback {
    width:100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 10px;
}
.group-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.group-list {
    overflow: hidden;
    display: flex
;
    flex-direction: column;
    gap: 7px;
}


.group-tag-list-item .group-tag-wrap {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 10px;
    align-items: flex-start;
    background: #ffffff0d;
    border: 1px solid var(--line);
    border-radius: 12px;


  }
.group-tag-info {
    width: 100%;
}



.group-tag-list-item {
padding: 0 14px;
}

.group-tag-list-item:last-child {
    border-bottom: none;
}

.group-tag-list-item .group-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.group-tag-list-item .group-info-flex {
  flex: 1;
  display: block;
  min-width: 0;
  margin: 0;
}

.group-tag-list-item .group-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.group-tag-list-item .group-title,
.group-tag-list-item .group-meta,
.group-tag-list-item .group-description,
.group-tag-list-item .group-roles {
  text-align: left;
  justify-content: left;
}

.group-tag-list-item .group-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  flex-shrink: 0;
}



  .groups-header{
    padding: 14px;
  }

  .header-top{ display:flex; align-items:center; justify-content:space-between; gap: 14px; }
.big-header {
    padding: 14px;
    background: #ffc4ad0d;
}

.btn-auth {
  height: 40px;
  width: 100%;
  margin-top: 14px;
}
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.register-btn {
  color: var(--peach);
  font-weight: 700;
}

.new-account {
    width: 100%;
    text-align: center;
    margin-top: 14px;
}

.forgot-pw {
    color: var(--peach);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
  .btn-primary{
    background: var(--peach)!important;
    color: #2e1309;
  }
  .btn-create:active{ transform: translateY(1px); }
  .btn-create:focus-visible{ outline:none; box-shadow: 0 0 0 4px var(--ring); }

  /* Form errors */
  .errorlist {
    list-style: none;
    margin: 8px 0;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    background: #ffb1b1;
    color: #340505!important;
    font-weight: 700;
    font-size: 12px;
  }
  .errorlist li { margin: 0; }
  /* Highlight fields that contain errors (modern browsers) */
  .control:has(.errorlist) input,
  .control:has(.errorlist) textarea,
  .control:has(.errorlist) select {
    border: 1px solid #ffb1b1;
  }

  .search{ position:relative; width:100%; margin-top:10px; }
  .search input{
font-family: var(--main-font);
    width: 100%;
    height: 50px;
    padding: 0 40px 0 48px;
    border-radius: 12px;
    border: 1px solid #ffffff26;
    background: rgb(255 255 255 / 8%);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    line-height: 50px;
    transition: border .2s ease;
    box-shadow: none;
  }

  
   .search input::placeholder{color:var(--muted)}
    .search input:focus{border:2px solid hsl(0deg 0% 100% / 7.84%)}
    .control {
        position: relative;
    }
    input{
      font-family: var(--main-font);
      width: 100%;
      height: 40px;
      padding: 0 40px 0 48px;
      border-radius: 100px;
      border: 1px solid #ffffff26;
      background: rgb(0 0 0 / 18%);
      color: var(--text);
      font-size: 1rem;
      outline: none;
      line-height:50px;
      transition: all .2s ease;
      box-shadow: none;
    }

    .input:focus {
    border: 1px solid var(--peach);
    outline: none;
}
    input::placeholder{color:var(--muted)}
    .icon-left{position:absolute;top:0;height:40px;display:grid;place-items:center;width:48px;z-index: 100;}




/* Member Group Tags */
/* Add to your base.css or a relevant stylesheet */
.member-group-tag-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;

    border-radius: 12px;
    margin: 0 14px;
    background: #ffffff0d;
    border: 1px solid var(--line);
    
    
}
.member-group-tag {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--bg);
}

.member-group-tag:last-child {
  border-bottom: none;
}


.member-group-tag .small-group-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
}

.member-group-tag .small-group-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.member-group-tag .small-group-avatar-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-group-tag .small-group-info-block {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0; /* allows ellipsis to work */
  gap: 1rem;
}

.member-group-tag .small-group-title {
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1; /* take all available space */
}

.member-group-tag .small-group-badge {
background: #342b2a;
    color: #ffc4ad;
    font-weight: 700;
    font-size: 12px;
    border-radius: 100px;
    padding: 4px 12px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    margin-left: auto;
}

.pb-action-tile {
    display: flex;
    align-items: center;
    background: hsl(0deg 0% 100% / 8%);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
    justify-content: center;
    padding: 14px 0;
    border-radius: 12px;
    gap: 8px;
    flex-direction: column;
}

.pb-actions-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.pb-action-tile .icon {

    display: block;
}

.post-options-grid {
  display: flex;
  flex-direction: column ;
  
}

.pb-post-options {
    display: flex;
    align-items: center;
    background: hsl(0deg 0% 100% / 8%);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
    border-radius: 12px;
    gap: 0px;
    margin-bottom: 8px;
    flex-direction: column;
    overflow: hidden;
}

.pb-post-option {
    display: flex;
    align-items: center;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
    padding: 14px ;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid #313131;
    overflow: hidden;
}

.pb-post-option:last-child {
  border-bottom: none!important;
}


/* Create Post */
.pb-upload-input{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pb-upload-thumb {
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    margin-bottom: 20px;
}
.pb-upload-thumb[hidden]{ display: none !important; }
.pb-upload-thumb img{
      max-width: 100%;
      width: 100%;
    height: auto;
    border-radius: 12px;
    border: none;
    display: block;
}
.pb-thumb-clear {
    border: 0;
    background: #000000c2;
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;  
    justify-content: center;
}
.pb-upload-area {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    border: 2px dashed var(--peach);
    border-radius: 12px;
    padding: 42px;
    cursor: pointer;
    transition: border-color .15s ease, transform .05s ease, background-color .2s ease;
    position: relative;
    flex-direction: column;
}

.pb-upload-area[hidden]{ display:none !important; }

.pb-upload-icon{ width: 64px; height: 64px; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 50%, color-mix(in oklab, var(--pb-accent) 38%, transparent) 0%, transparent 70%); border-radius: 12px; }
.pb-upload-svg{ width: 32px; height: 32px; fill: color-mix(in oklab, var(--pb-accent) 90%, white); }

.pb-upload-title{ font-size: 1.1rem; font-weight: 800; }
.pb-upload-sub{ color: var(--muted); }
.pb-upload-hint{ margin-top: 6px; color: color-mix(in oklab, var(--pb-muted) 80%, #fff 10%); font-size: .85rem; }

.pb-upload-cta{ 
    color: var(--peach);
    font-weight: 800;
    font-size: 15px;
    align-self: center;
}

.pb-upload-feedback{ margin-top: 12px; font-size: .9rem; color: var(--pb-muted); min-height: 1.2em; }
.pb-upload-file{ font-weight: 700; color: var(--pb-text); }

/* Submit Loader (post create) */
.pb-submit-overlay{ position: fixed; inset: 0; background: rgb(0 0 0 / 60%); backdrop-filter: blur(1px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.pb-submit-overlay[hidden]{ display: none !important; }
.pb-loader{ display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.pb-spinner{ width: 28px; height: 28px; border: 3px solid rgb(255 255 255 / 30%); border-top-color: var(--peach); border-radius: 50%; animation: pb-spin 1s linear infinite; }
@keyframes pb-spin { to { transform: rotate(360deg); } }
.btn[disabled]{ opacity: .6; pointer-events: none; }
.consent-label {
  display: flex
;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    line-height: 16px;
    background: var(--panel);
    padding: 7px;
    border-radius: 100px;
    justify-content: center;
    border: 1px solid var(--panel);
    box-shadow: 0px 4px 10px #00000047;
}




.consent-label span{ 
    font-size: 13px;
    font-weight: 700;
}
/* Visually-hidden (screen-reader only) */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Infinite scroll loader (feeds/grids) */
.io-loader{ display:none; align-items:center; justify-content:center; padding:12px; width:100%; grid-column: 1 / -1; }
.io-loader.show{ display:flex; }
.feed-sentinel{ display:flex; justify-content:center; width:100%; grid-column: 1 / -1; }
.photos-sentinel{ display:flex; justify-content:center; width:100%; grid-column: 1 / -1; }
.io-end{ display:flex; align-items:center; justify-content:center; color: var(--muted); padding: 12px; font-size: 13px; width:100%; text-align:center; grid-column: 1 / -1; }

.pb-modal[hidden]{ display:none !important; }
.pb-modal{ position: fixed; inset: 0; z-index: 1000; }
.pb-modal-overlay{ position: absolute; inset: 0; background: rgb(19 17 21); }
.pb-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 600px;
    max-height: 100vh;
    margin: 0 auto;
    background: #8b8ba5;
    display: flex;
    flex-direction: column;
}
.pb-modal-head{ display: flex;align-items: center;border-bottom: 1px solid var(--pb-line);background: linear-gradient(135deg, #512069, #291533);flex-shrink:0;height: 48px;padding-right: 16px; }
.pb-modal-title{ font-weight: 800;}
.pb-modal-actions{ margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pb-modal-close {
    background: transparent;
    border: 0;
    color: var(--pb-text);
    font-size: 18px;
    cursor: pointer;
    height: 48px;
    width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.pb-modal-close svg { pointer-events: none; }
.pb-modal-body{ overflow: auto;}
.pb-modal-body img{ display: block; width: 100%; height: auto; object-fit: contain; }




  .field label { display:block; font-weight:600; margin-bottom:6px; }
  .field .hint { color:#6b7280; font-size:12px; }

 .post-form {
    padding: 0 14px;
}

button.btn.btn-skip {
    width: 100%;
    height: 46px;
    color: #e7e7e7;
}
.btnbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 600px);
    padding-right: 14px;
    display: flex;
    z-index: 999;
    justify-content: flex-end
}
.btn-save {
background: transparent;
    color: var(--peach);
    border-radius: 100px;
    font-weight: 700;
    border: 0;
    text-transform: uppercase;
    width: auto;
    height: 48px;
    font-size: 14px;
}
.btnbar{ pointer-events: none; }
.btnbar .btn-save{ pointer-events: auto; }
  /* Button (namespaced) */
  .pb-selected-btn{
    appearance: none;
    color: var(--txt);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transition: .18s transform, .18s background, .18s border-color;
    text-decoration: none;
    height: 40px;  
    max-width: 100%;
    border: 1px solid #ffffff26;
    border-radius: 100px;
    background: rgb(0 0 0 / 18%);
  }
  .pb-selected-btn:hover{
    background: rgb(255 255 255 / 10%);
    border-color: #ffffff40;
  }
  .pb-selected-btn:active{
    transform: translateY(1px);
  }

  .pb-selected-btn.full-size {
    width: 100%;
     justify-content: space-between; 
  }

  .pb-upload-text {
    text-align: center;
  }

.pb-upload-text svg {
    height: 40px;
    width: 40px;
    margin-bottom: 10px;
    fill: var(--muted);
    color: var(--muted);
}
  .pb-btn:hover{background:rgb(255 255 255 / 8%);}
  .pb-btn:active{transform:translateY(1px)}
  .pb-btn-clear,
  .pb-btn-clear:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 100px;
    line-height: 1;
    min-height: 30px;
    background: hsl(16.83deg 100% 83.92% / 11%);
    color: #ffc4ad;
  }
  
  .caret{width:18px;height:18px;opacity:.85;transition:.2s transform}
  .pb-btn[aria-expanded="true"] .caret{transform:rotate(180deg)}
  .pb-selected-btn[aria-expanded="true"] .caret{transform:rotate(180deg)}
span#groupLabel {
    font-weight: 500;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

span#groupLabel b {
    font-weight: 700;
    color: var(--peach);
}
  /* Overlay */
  .overlay{position:fixed; inset:0; background:rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:.25s; z-index: 9998;}
  .overlay.show{opacity:1; pointer-events:auto}

  /* Prevent background scroll when sheets/modals are open */
  html.no-scroll, body.no-scroll{ overflow:hidden; overscroll-behavior: contain; touch-action: none; }

  /* Bottom Sheet (requested class and rules) */
  .pb-group-select{
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0; /* full viewport */
    height: auto;
    /* Full-height sheet that slides from below viewport to top */
    transform: translateY(100%);
    transition: transform .25s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
    background: #121212;
    color: #fff;
    /* Scroll the sheet itself so header can be sticky */
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    z-index: 9999;
  }
  @supports (height: 100dvh) {
    .pb-group-select { height: 100dvh; }
  }
  .pb-group-select.show{ transform: translateY(0) }

  .sheet-head{
    display:flex; 
    padding:0 14px;
    position: sticky; 
    /* Keep header clear of mobile safe area */
    top: calc(env(safe-area-inset-top, 0px)); 
    z-index: 2; 
    background:#121212; 
    flex-direction: column;
  }

  .sheet-head-inner {
    width: 100%;
    display: flex
;
    justify-content: space-between;
    align-items: center;
}
  .handle{
    width:46px;height:6px;border-radius:999px;background:#2c314b;
    /* Ensure handle sits below status bar/notch */
    margin: calc(6px + env(safe-area-inset-top, 0px)) auto 12px;
  }
  .sheet-title{font-size:16px; font-weight:800}
  .sheet-body{padding:0}

  .pb-search{ width: 100%; z-index:1; }
  .pb-search input,
  .pb-search input:focus{
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 0px 14px;
    background: #232323;
    border-radius: 26px;
    min-height: 36px;
    transition: min-height 0.2s;
    gap: 4px;
    box-shadow: 0px 0px 14px #0000003b;
    border: none;
  }

  .search-bar {
    position: sticky;
    z-index: 999;
    top: 0;
    background: var(--bg);
  }

  .select-group-list{list-style:none; margin:0; padding:0}
  .pb-group-select { will-change: transform; }
  .group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgb(255 255 255 / 2%);
  }
  .g-ava{flex: 0 0 36px;
    height: 36px;
    width: 36px;
    border-radius: 10px;
    background: rgb(0 0 0 / 35%);
    display: flex
;
    justify-content: center;
    align-items: center;}
  .g-ava img{width:100%; height:100%; object-fit:cover; border-radius:10px; display:block}
  .g-ava svg{    width: 20px;
    height: 20px;
    color: rgb(255 255 255 / 60%);
    display: block;}
  .g-info{flex:1; min-width:0}
  .g-name{font-weight:500;}

  /* Radio + selected (peach) */
  .radio{margin-left:auto; width:18px; height:18px; border-radius:50%; border:2px solid var(--peach); display:grid; place-items:center}
  .radio .dot{width:10px; height:10px; border-radius:50%; background:transparent; margin: 0}
  .group-item[aria-selected="true"] .g-name{ color:var(--peach) }
  .group-item[aria-selected="true"] .radio .dot{ background:var(--peach) }

  .hidden{display:none}

  /* one-line to three-lines auto grow; uses site font */
  textarea.pb-caption {
    display:block;
    width:100%;
    font: inherit;               /* main font */
    line-height:1.4;
    color:#fff;
    background: transparent;
    border: none;
    padding: 10px 0px;
    resize: none;                /* weâ€™ll control height in JS */
    overflow: hidden;            /* no scrollbar until we hit max */
    margin: 10px 0;
  }
  textarea.pb-caption::placeholder {
    color: var(--muted, #a5adc3); /* muted placeholder */
    opacity: 1;
  }

  textarea.pb-caption:focus {
    border: none;
    outline: none;
  }
/* wrapper acts as positioning context */
.field.tag-field.input-with-icon {
  position: relative;
}

/* the icon sits ON TOP of the input area */
.field.tag-field.input-with-icon .field-icon {
    position: absolute;
    left: 12px;
    top: 12px;

    width: 18px;
    height: 18px;
    color: var(--peach);
    pointer-events: none;
    z-index: 2;
}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
/* unify .chip base once (you had two definitions) */
.chip{
  --bgc:#444; --fgc:#000;
  display:inline-flex; align-items:center; gap:2px; position:relative;
  border:0; border-radius:100px; padding:00px 10px; font-weight:800; font-size:10px;
  letter-spacing:.3px; cursor:pointer; background:var(--bgc); color:var(--fgc);
  text-transform:uppercase;
  line-height: 30px;
}
.chip .chip-label, .chip .chip-icon { position: relative; z-index: 1; }



.chip[aria-pressed="true"]::after{
  content:'';
  position:absolute;
  inset:4px;
  background:rgb(255 255 255 / 50%);
  border-radius:100px;
  z-index:0; /* safe */
  border:1px solid rgb(0 0 0 / 50%);
}
.chip-white.chip[aria-pressed="true"]::after{
  background:#0000005e; border:1px solid #00000052;
}

  #roles-container .chip.chip-white{
    color:#fff;
  }


.chip-icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.chip svg {
  display: block;
}

  .count-pill {
    display: inline-flex;  /* Fixed: Removed extra semicolon */
    align-items: center;
    gap: 8px;
    color: var(--peach);
    border-radius: 999px;
  }


    .f-label.counter-row{ 
    right: 14px;
    color: var(--muted);
    margin: 0;
    text-align: right;
    display: flex;
    font-size: 13px;
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    width: auto;
     }
     .f-label.counter-row.bottom{ 
      bottom: 2px;
      transform: none;
    }
  .is-warn .counter-row{ color: #ff9d9d }
  .is-error .counter-row{ color:var(--err) }

  .form-errors p {
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 100px;
    line-height: 1.35;
    background: var(--panel, #111);
    animation: pwSlideIn .18s 
ease-out both;
background: hsl(0deg 100% 81.9%);
    color: hsl(0deg 100% 18.18%);
    font-weight: 700;
  }

.upload-row{display:flex;align-items:center;gap:6px; flex-direction: column;align-self: center;}
.upload-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed
    color-mix(in oklab, var(--peach) 65%, #ffffff);
    border-radius: 12px;
    padding: 7px;
    height: 100px;
    width: 100px;
    cursor: pointer;
  }
  .upload-thumb img{display:block;width:100%;height:100%;object-fit:cover; border-radius:50%;}
  .group-img-upload .upload-thumb img{ border-radius:12px; }
  .thumb-remove{
    position: absolute;
    top: 0px;
    right: 0px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
       background: #ff4e4e;
    color: #500000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 99;
    border: 1px solid;
  }
.upload-cta{appearance:none;border:0;border-radius:999px;color:var(--peach);font-weight:800;padding:8px 14px;cursor:pointer}
.file-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}


/* Profile completion */
.profile-completion .pc-header{display:flex;align-items:center;justify-content:space-between;}
.profile-completion .pc-progress {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
}
.profile-completion .pc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.profile-completion .pc-list li{display:flex;align-items:center;gap:8px;}
.profile-completion .pc-list a{text-decoration: underline;}
/* Profile completion cards */
.profile-completion .pc-cards{display:flex;flex-direction:column;gap:7px;margin-top:8px}
.pc-card{display:flex;align-items:center;justify-content:space-between;gap:12px;;border-radius:12px;padding:10px;    border: 1px solid #ffffff26;
    background: rgb(0 0 0 / 18%);}
.pc-card-left{display:flex;align-items:center;gap: 7px;}
.pc-icon-circle{
  min-width:30px;
  min-height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgb(255 255 255 / 13%);
    border: 1px solid #ffffff21;
}
.pc-icon-circle svg{
  fill: #fff;
}
.pc-card-title {
    font-weight: 600;
    color: #fff;
    white-space: normal;
    font-size: 13px;
    line-height: 1.4;
}
.pc-card-btn{padding:6px 10px;border-radius:100px;font-size:12px;font-weight:800}

/* Anchor jump offset so targeted posts arenâ€™t hidden under sticky header + tabs */
/* Header is 48px; tabs sit below it. Add a small cushion. */
.feed-item{ scroll-margin-top: 95px; }
/* If you ever change header/tabs height, tweak the calc above. */


/* Peach-colored, underlined links (explicit opt-in) */
.link-peach { color: var(--peach); text-decoration: underline; }
.link-peach:hover { text-decoration: underline; }



/* Comment avatar ring spacing */
.comment-card .avatar-ring{ margin-right: 7px; }

/* Discover page inline style replacements */
.discover-header-caption {
    font-size: 12px;
}

.discover-cta {
    padding: 14px;
}

.discover-cta-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.discover-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.discover-cta-left {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.discover-cta-network {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.discover-cta-network canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.discover-cta-content {
    flex: 1 1 75%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.discover-cta-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffc4ad 0%, #ff9a7a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.discover-cta-content p {
    margin: 0 0 8px;
    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    max-width: 60rem;
    border-radius: 5px;
    padding: 1px;
    background-image: radial-gradient(circle at center, #171717 0%, #171717 87%, rgb(255 240 240 / 0%) 100%);
}

.discover-cta-copy {
    position: relative;
    z-index: 1;
}

.discover-cta-cta-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.discover-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
}

.discover-cta-button--primary {
    font-weight: 800;
    background: linear-gradient(135deg, #ffc4ad 0%, #ff9a7a 100%);
    color: #2e1309;
    box-shadow: 0 4px 12px rgba(255, 196, 173, 0.3);
}

.discover-cta-button--secondary {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.discover-cta-icon {
    flex: 0 0 25%;
    max-width: 25%;
    width: 25%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.discover-cta-icon picture {
    display: block;
    width: 100%;
}

.discover-cta-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 160px;
}

@media (max-width: 720px) {
    .discover-cta-inner {
        flex-direction: row;
        align-items: center;
    }
    .discover-cta-icon {
        width: 28%;
        max-width: 28%;
        flex-basis: 28%;
    }
    .discover-cta-icon img {
        max-height: 120px;
    }
    .discover-cta-inner > div:last-child {
        justify-content: flex-end;
    }
    .discover-cta-cta-buttons {
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
}

#discover-global {
    position: relative;
}

.feed-list-blur {
    filter: blur(7px) brightness(1.1);
    pointer-events: none;
    user-select: none;
}

.global-posts-empty-state {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.discover-empty-state {
    padding: 0 14px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.discover-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 196, 173, 0.15) 0%, rgba(255, 154, 122, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-empty-state-icon svg {
    opacity: 0.8;
    fill: var(--peach);
}

.discover-empty-state-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffc4ad 0%, #ff9a7a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discover-empty-state-copy {
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 15px;
}

.discover-empty-state-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.discover-empty-state-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.discover-empty-state-button svg {
    fill: currentColor;
}

.discover-empty-state-button--primary {
    background: linear-gradient(135deg, #ffc4ad 0%, #ff9a7a 100%);
    color: #2e1309;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 196, 173, 0.3);
}

.discover-empty-state-button--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.discover-empty-state-link-highlight {
    color: var(--peach);
}

.age-gate-affirmation {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--text);
}

.discover-gradient-guide {
    margin: 12px 12px 24px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.discover-gradient-guide-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discover-gradient-guide-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discover-gradient-guide-subtext {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 520px;
}

.discover-gradient-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gradient-sample-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
}

.gradient-sample-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gradient-sample-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.gradient-sample-preview {
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.discover-gradient-sample-copy {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.gradient-sample-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gradient-sample-user-card .wtf-link {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.gradient-sample-user-card .btn-follow {
    min-width: 80px;
    opacity: 0.7;
}

.gradient-sample-group-card {
    max-width: 100%;
}

.gradient-sample-group-card .group-tag-wrap {
    gap: 12px;
}

.gradient-sample-group-card .group-tag-info {
    grid-template-columns: auto;
}

.gradient-sample-group-card .group-actions {
    justify-content: flex-start;
}

.gradient-sample-group-card .group-btn {
    min-width: 80px;
    opacity: 0.7;
}

.gradient-sample-video-card .video-card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gradient-sample-preview--video .video-thumbnail-inner {
    background: linear-gradient(135deg, rgba(255, 196, 173, 0.18) 0%, rgba(255, 154, 122, 0.25) 100%);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}



.gradient-sample-preview--video .video-title {
    font-size: 14px;
}

.gradient-sample-group-card .group-avatar {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.gradient-sample-preview--cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-sample-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 196, 173, 0.14), rgba(255, 154, 122, 0.12));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.gradient-sample-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gradient-sample-cta-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.gradient-sample-cta-sub {
    color: var(--muted);
    font-size: 12px;
}

.gradient-sample-cta-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gradient-sample-cta-actions .discover-cta-button {
    height: 36px;
    padding-inline: 12px;
}

.color-guide .avatar-role-orbit {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.color-guide .avatar-role-orbit .wtf-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
}
.role-orbit span.role-badge.role-keyholder {
  --angle: -18deg;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--orbit-radius, 83px)) rotate(calc(-1 * var(--angle)));

}

.color-guide .avatar-role-orbit .avatar-ring {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.color-guide .role-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.color-guide .role-orbit .role-badge {
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--orbit-radius, 70px)) rotate(calc(-1 * var(--angle)));
}

.color-guide .roles {
    justify-content: center;
    gap: 6px;
}

.color-guide .role-badge {
    line-height: 22px;
    font-size: 10px;
    padding: 0 10px;
}

.role-marquee {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-marquee::before,
.role-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

.role-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #171717 0%, rgba(23, 23, 23, 0) 100%);
}

.role-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #171717 0%, rgba(23, 23, 23, 0) 100%);
}

.role-marquee-line {
    overflow: hidden;
    position: relative;
    height: 28px;
}

.role-marquee-inner{
    display: flex;
    width: max-content;
    animation: role-marquee 50s linear infinite;
    align-items: center;
}

.role-marquee-track {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 0 8px;
}

.role-marquee .role-badge {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    height: 24px;
    line-height: 1;
}

@keyframes role-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.color-guide .avatar-roles-caption {
    margin: 4px 0 0;
    text-align: center;
    font-size: 14px;
}

.color-guide-group-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin: 8px auto 6px;
    width: 100%;
    max-width: 260px;
}

.color-guide-group-mini .group-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.color-guide-group-mini .group-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.color-guide-group-mini .group-mini-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.color-guide-group-mini .group-mini-title {
    font-weight: 700;
    font-size: 12px;
}

.color-guide-group-mini .group-mini-sub {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.3;
}

.badge--peach {
    background: rgba(255, 196, 173, 0.25);
    border: 1px solid rgba(255, 196, 173, 0.65);
    color: #2e1309;
}

.badge--soft {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.badge--group {
    background: rgba(109, 51, 84, 0.25);
    border: 1px solid rgba(109, 51, 84, 0.7);
    color: #ffdcd0;
}

.badge--warm {
    background: rgba(255, 118, 72, 0.25);
    border: 1px solid rgba(255, 118, 72, 0.65);
    color: #2e1309;
}

.badge--video {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.badge--glow {
    background: rgba(255, 196, 173, 0.3);
    border: 1px solid rgba(255, 196, 173, 0.75);
    color: #2e1309;
}
