/* =========================
   SpicyChat Favorite Creators
   Clean unified stylesheet
   ========================= */

   *,
   *::before,
   *::after { box-sizing: border-box; }
   
   html, body { height: 100%; }
   
   :root{
     --bg0:#0b0f16;
     --bg1:#0f1521;
     --panel: rgba(255,255,255,0.03);
     --border: rgba(255,255,255,0.10);
     --border2: rgba(255,255,255,0.14);
     --text:#e8eefc;
     --muted: rgba(232,238,252,0.75);
     --blue:#3b82f6;
     --blue2: rgba(59,130,246,0.18);
     --blue3: rgba(59,130,246,0.35);
     --red:#ef4444;
     --red2: rgba(239,68,68,0.12);
     --red3: rgba(239,68,68,0.35);
     --shadow: 0 10px 30px rgba(0,0,0,0.35);
     --radius: 14px;
   }
   
   body{
     margin:0;
     font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
     color: var(--text);
     background:
       radial-gradient(1200px 600px at 30% -10%, rgba(59,130,246,0.18), transparent 50%),
       radial-gradient(900px 500px at 85% 10%, rgba(255,255,255,0.06), transparent 55%),
       linear-gradient(180deg, var(--bg0), var(--bg1));
   }
   
   /* ---------- App container (default pages) ---------- */
   main.container{
     width: 100%;
     max-width: 1400px;
     margin: 0 auto;
     padding: 18px 18px 28px;
   }
   
    /* ---------- Global Trending: match overall app gutters/width ---------- */
    body.page-gt main.container{
      max-width: none;
      width: min(1900px, 96vw);
      padding-left: 18px;
      padding-right: 18px;
    }

   
   /* ---------- Navbar ---------- */
   .navbar{
     position: sticky;
     top: 0;
     z-index: 30;
     backdrop-filter: blur(10px);
     background: rgba(10, 14, 22, 0.70);
     border-bottom: 1px solid rgba(255,255,255,0.08);
   }
   
   .navbar-inner{
     max-width: 2200px;
     margin: 0 auto;
     padding: 12px 18px;
     display:flex;
     align-items:center;
     justify-content: space-between;
     gap: 14px;
   }
   
   .brand{
     font-weight: 800;
     letter-spacing: 0.2px;
     text-decoration:none;
   }
   
   .nav-links{
     display:flex;
     align-items:center;
     gap: 14px;
     flex-wrap: wrap;
   }
   
   .nav-links a{
     text-decoration:none;
     color: rgba(232,238,252,0.85);
     padding: 6px 10px;
     border-radius: 999px;
     border: 1px solid transparent;
   }
   
   .nav-links a:hover{
     background: rgba(255,255,255,0.04);
     border-color: rgba(255,255,255,0.08);
   }
   
   /* ---------- Flash ---------- */
   .flash{
     border-radius: 12px;
     padding: 10px 12px;
     border: 1px solid rgba(255,255,255,0.10);
     background: rgba(255,255,255,0.03);
     margin-bottom: 12px;
   }
   .flash.success{ border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.10); }
   .flash.error{ border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.10); }
   .flash.info{ border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.10); }
   
   /* ---------- Card ---------- */
   .card{
     border-radius: var(--radius);
     background: var(--panel);
     border: 1px solid var(--border);
     box-shadow: var(--shadow);
     padding: 16px;
   }
   
   /* ---------- Inputs ---------- */
   input, select, textarea { font: inherit; color: var(--text); }
   
   input[type="text"],
   input[type="email"],
   input[type="password"],
   select{
     height: 36px;
     padding: 0 12px;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.12);
     background: rgba(255,255,255,0.03);
     outline: none;
   }
   
   input:focus, select:focus{
     border-color: rgba(59,130,246,0.45);
     box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
   }
   
   /* Fix native select “washed out” menu */
   select, option{
     background-color: #1f232b;
     color: #e8eefc;
   }
   
   select{
     -webkit-appearance:none;
     -moz-appearance:none;
     appearance:none;
     padding-right: 34px;
     background-image:
       linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.85) 50%),
       linear-gradient(135deg, rgba(255,255,255,0.85) 50%, transparent 50%);
     background-position:
       calc(100% - 18px) 50%,
       calc(100% - 12px) 50%;
     background-size: 6px 6px, 6px 6px;
     background-repeat: no-repeat;
   }
   
   /* ---------- Buttons ---------- */
   .btn{
     height: 36px;
     padding: 0 14px;
     border-radius: 999px;
     border: 1px solid var(--border2);
     background: rgba(255,255,255,0.04);
     color: var(--text);
     text-decoration: none;
     display:inline-flex;
     align-items:center;
     justify-content:center;
     gap: 8px;
     cursor: pointer;
   }
   .btn:hover{ filter: brightness(1.06); }
   .btn-primary{ border-color: var(--blue3); background: var(--blue2); }
   
   /* ============================================================
      Global Trending (gt-*) — FULL WIDTH + dynamic grid columns
      ============================================================ */
   
   .gt-wrap{
     display:grid;
     grid-template-columns: minmax(0, 1fr) 330px;
     gap: 16px;
   }
   
   @media (max-width: 1100px){
     .gt-wrap{ grid-template-columns: 1fr; }
   }
   
   .gt-top{ grid-column: 1 / -1; }
   .gt-body{ min-width: 0; }
   .gt-side{ min-width: 0; }
   
   .gt-topbar{
     display:flex;
     justify-content: space-between;
     gap: 16px;
     align-items: flex-start;
     flex-wrap: wrap;
   }
   
   .gt-h1{
     font-size: 2rem;
     font-weight: 800;
     margin: 0;
   }
   
   .gt-sub { opacity: var(--muted); }

   
   .gt-right{
     display:flex;
     flex-direction: column;
     align-items: flex-end;
     gap: 10px;
   }
   
   .gt-controls{
     margin-top: 14px;
     display:flex;
     align-items: flex-end;
     gap: 12px;
     flex-wrap: wrap;
   }
   
   .gt-label{
     display:flex;
     flex-direction: column;
     gap: 6px;
   }
   
   .gt-label span{
     opacity: 0.78;
     font-size: 0.9rem;
   }
   
   .gt-search{ min-width: 360px; }
   @media (max-width: 700px){ .gt-search{ min-width: 240px; } }
   
   .gt-btn{
     height: 36px;
     padding: 0 14px;
     border-radius: 999px;
     border: 1px solid var(--border2);
     background: rgba(255,255,255,0.04);
     color: var(--text);
     text-decoration: none;
     display:inline-flex;
     align-items:center;
     justify-content:center;
     gap: 8px;
     cursor: pointer;
   }
   .gt-btn:hover{ filter: brightness(1.06); }
   .gt-btn-primary{ border-color: var(--blue3); background: var(--blue2); }
   .gt-btn-disabled{ opacity: 0.55; cursor: default; }
   
   .gt-chips{
     margin-top: 10px;
     display:flex;
     flex-wrap: wrap;
     gap: 10px;
   }
   
   .gt-chip{
     display:inline-flex;
     align-items:center;
     gap: 10px;
     padding: 6px 12px;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.14);
     background: rgba(255,255,255,0.03);
     text-decoration:none;
     color: var(--text);
     font-size: 0.92rem;
   }
   .gt-chip-and{ border-color: var(--blue3); background: rgba(59,130,246,0.12); }
   .gt-chip-not{ border-color: var(--red3);  background: rgba(239,68,68,0.10); }
   .gt-chip-x{ opacity: 0.85; font-weight: 900; }
   
   /* KEY: dynamic columns. REMOVE max-width caps so it can grow to 4/5/6 columns */
   .gt-grid{
     min-width: 0;
     display:grid;
     gap: 16px;
     grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
     align-items: stretch;
   }
   
   /* Cards: consistent size, but no max-width clamp */
   .gt-card{
     position: relative;
     border-radius: var(--radius);
     border: 1px solid rgba(255,255,255,0.10);
     background: rgba(255,255,255,0.02);
     padding: 12px;
     box-shadow: var(--shadow);
   
     width: 100%;
     min-width: 0;
     display:flex;
     flex-direction: column;
     min-height: 520px;
   }
   
   .gt-rank{
     position:absolute;
     top: 10px;
     left: 10px;
     font-weight: 800;
     font-size: 0.95rem;
     padding: 3px 8px;
     border-radius: 999px;
     background: rgba(0,0,0,0.55);
     border: 1px solid rgba(255,255,255,0.12);
   }
   
   .gt-img{
     width: 100%;
     aspect-ratio: 1 / 1;
     object-fit: cover;
     border-radius: 12px;
     border: 1px solid rgba(255,255,255,0.08);
     background: rgba(255,255,255,0.02);
   }
   
   .gt-name{
     margin-top: 10px;
     font-weight: 800;
     font-size: 1.0rem;
     text-align:center;
     overflow:hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
   }
   
   .gt-desc{
     margin-top: 6px;
     opacity: 0.72;
     font-size: 0.86rem;
     text-align:center;
     display:-webkit-box;
     /* -webkit-line-clamp: 3; */
     -webkit-box-orient: vertical;
     overflow:hidden;
     min-height: 3.6em;
   }
   .gt-desc-empty{ min-height: 3.6em; }
   
   .gt-meta{
     margin-top: 10px;
     opacity: 0.82;
     font-size: 0.86rem;
     display:grid;
     gap: 4px;
     justify-items: center;
   }
   
   .gt-author{
     margin-top: 10px;
     font-size: 0.86rem;
     text-align:center;
     opacity: 0.9;
   }
   
   .gt-link{ color:#60a5fa; text-decoration:none; }
   .gt-link:hover{ text-decoration: underline; }
   
   .gt-tags{
     margin-top: auto;
     padding-top: 10px;
     display:flex;
     flex-wrap: wrap;
     gap: 6px;
     justify-content:center;
     align-content:flex-start;
   }
   .gt-tags-empty{ margin-top:auto; min-height: 44px; }
   
   .gt-tag{
     font-size: 0.78rem;
     padding: 3px 8px;
     border-radius: 999px;
     border: 1px solid var(--blue3);
     background: rgba(59,130,246,0.16);
     color: #bfdbfe;
     text-decoration:none;
     line-height: 1.2;
   }
   .gt-tag:hover{ filter: brightness(1.06); }
   
  /* Sidebar */
  .gt-side{
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    padding: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);

    /* NEW: make it a flex column so the list can scroll */
    display: flex;
    flex-direction: column;
  }

   
   @media (max-width: 1100px){
     .gt-side{ position: static; height: auto; }
   }
   
   .gt-tabs{
     display:grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
     margin-bottom: 12px;
   }
   
   .gt-tab{
     height: 36px;
     border-radius: 12px;
     border: 1px solid rgba(255,255,255,0.12);
     background: rgba(255,255,255,0.03);
     display:flex;
     align-items:center;
     justify-content:center;
     cursor:pointer;
     font-weight: 700;
     opacity: 0.9;
   }
   
   .gt-tab.active{
     border-color: var(--blue3);
     background: rgba(59,130,246,0.15);
     color: #bfdbfe;
   }
   /* NEW: tab panels must take remaining height so ul can scroll */
    #panel-creators,
    #panel-tags{
      flex: 1 1 auto;
      min-height: 0;   /* CRITICAL: allows inner scrolling */
      overflow: hidden;
    }

    .gt-list{
      list-style: none;
      padding: 0;
      margin: 0;
    
      /* NEW: scroll properly inside the tab panel */
      height: 100%;
      overflow: auto;
    
      display: grid;
      gap: 10px;
    }
    
   
   .gt-li{
     display:flex;
     justify-content: space-between;
     gap: 10px;
     align-items:center;
   }
   
   .gt-li-right{
     display:flex;
     align-items:center;
     gap: 8px;
   }
   
   .gt-count{
     opacity: 0.75;
     font-size: 0.9rem;
     min-width: 22px;
     text-align: right;
   }
   
   .gt-mini{
     width: 26px;
     height: 26px;
     border-radius: 8px;
     border: 1px solid rgba(255,255,255,0.14);
     background: rgba(255,255,255,0.03);
     display:inline-flex;
     align-items:center;
     justify-content:center;
     text-decoration:none;
     color: var(--text);
     font-weight: 900;
   }
   
   .gt-mini.on{
     border-color: var(--blue3);
     background: rgba(59,130,246,0.15);
     color: #bfdbfe;
   }
   
   /* Favorite button under Author */
.fav-form {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.08);
  color: #cfe3ff;

  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease;
}

.favorite-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.favorite-btn.is-favorited {
  background: rgba(80, 160, 255, 0.18);
  border-color: rgba(80, 160, 255, 0.55);
  color: #e8f1ff;
  cursor: default;
}

.favorite-btn:disabled {
  opacity: 1;                 /* prevent washed-out look */
  cursor: default;
  filter: none;               /* some themes gray disabled buttons via filter */
  -webkit-appearance: none;   /* stop native disabled styling in some browsers */
  appearance: none;
}

.favorite-btn.is-favorited:disabled {
  background: rgba(80, 160, 255, 0.18);
  border-color: rgba(80, 160, 255, 0.55);
  color: #e8f1ff;
}

.favorite-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 1;
}

.blurred { filter: blur(18px); }

/* ---- BOT GRID CONSTRAINT FIX ---- */

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Hard constraint on card width */
.bot-card {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Only the image link should enforce aspect ratio */
.bot-card .bot-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4; /* or 1/1 if you want square */
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}


/* Image fills wrapper without stretching */
.bot-card img.bot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text stays compact */
.bot-name {
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.bot-title {
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
  margin-top: 2px;
}

/* Tags don't force expansion */
.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}

.bot-tags .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .bot-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
/* Tag links must be inline chips, never block */
.bot-tags a {
  display: inline-flex;
  text-decoration: none;
}

.bot-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  line-height: 1;
  color: var(--text-color);
}

.bot-tags a:hover .tag {
  border-color: var(--accent-color);
  background: rgba(255,255,255,0.08);
}
/* =========================
   Creators page accessibility pack
   ========================= */

/* Page background: reduce heavy vignette feel */
body.creators-page {
  background: #0b0f14;
  color: rgba(255,255,255,0.92);
}

/* Stronger surfaces */
.creator-sidebar, .creator-main, .tags-sidebar {
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Headings + subtext readability */
.creator-titleblock h2,
.creator-sidebar h3,
.tags-sidebar h3 {
  color: rgba(255,255,255,0.95);
}

.subheader {
  opacity: 0.90;              /* was too faint */
  color: rgba(255,255,255,0.72);
}

/* Inputs more like the other project */
.creator-add input,
.creator-search input[name="q"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
.creator-add input::placeholder,
.creator-search input[name="q"]::placeholder {
  color: rgba(255,255,255,0.55);
}

/* Dropdowns */
.creator-search select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.90);
}

/* Buttons: higher contrast */
.primary-button {
  background: #2f7dd1;                 /* accessible blue */
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.primary-button:hover {
  filter: brightness(1.05);
}
.primary-button:active {
  filter: brightness(0.98);
}

/* Creator list items: clearer hit targets and contrast */
.creator-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
.creator-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.creator-item.active {
  background: rgba(47, 125, 209, 0.20);
  border-color: rgba(47, 125, 209, 0.55);
}

/* Remove button */
.creator-remove {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.creator-remove:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
}

/* Grid cards: readable text on cards, not floating on page */
.bot-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px;
}
.bot-name {
  color: rgba(255,255,255,0.95);
}
.bot-title {
  color: rgba(255,255,255,0.70);
}

/* Chips: clearer contrast */
.bot-tags .tag,
.chip {
  background: rgba(47, 125, 209, 0.18);
  border: 1px solid rgba(47, 125, 209, 0.35);
  color: rgba(230, 245, 255, 0.95);
}
.bot-tags a:hover .tag {
  background: rgba(47, 125, 209, 0.28);
  border-color: rgba(47, 125, 209, 0.55);
}

/* Sidebar tags rows: improve readability */
.tags-table td {
  color: rgba(255,255,255,0.85);
}
.count-col {
  color: rgba(255,255,255,0.70);
}
.tag-filter-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.tag-filter-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(47, 125, 209, 0.55);
}

/* NEW badge: readable */
.bot-new-badge {
  background: rgba(36, 170, 90, 0.95);
}

/* Blur should not destroy contrast too much (still blurred) */
.blurred {
  filter: blur(14px) saturate(0.9) brightness(0.85);
}

/* ===== Focus rings (big accessibility win) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(143, 198, 255, 0.90);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ===== Modal accessibility ===== */
.modal-backdrop {
  background: rgba(0,0,0,0.55); /* less crushing */
}
.modal-card {
  background: rgba(25, 28, 36, 0.98);
  border: 1px solid rgba(255,255,255,0.14);
}
.modal-header {
  background: rgba(255,255,255,0.03);
}
.modal-body {
  color: rgba(255,255,255,0.92);
}
.modal-body pre {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Better scrollbar visibility (optional but nice) */
.creator-list::-webkit-scrollbar,
.tags-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 10px;
}
.creator-list::-webkit-scrollbar-thumb,
.tags-scroll::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.creator-list::-webkit-scrollbar-thumb:hover,
.tags-scroll::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
}
.modal-meta { color: rgba(255,255,255,0.75); }
/* ============================================================
   Creators page (page-creators) — matches Global Trending theme
   ============================================================ */

   body.page-creators main.container{
    max-width: none;
    width: min(1900px, 96vw);
    padding-left: 18px;
    padding-right: 18px;
  }
  
  .page-creators .creator-layout{
    display:grid;
    grid-template-columns: 320px minmax(720px, 1fr) 360px;
    gap:18px;
    align-items:start;
  }
  
  .page-creators .creator-sidebar,
  .page-creators .creator-main,
  .page-creators .tags-sidebar{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    min-width: 0;
  }
  
  .page-creators .creator-sidebar,
.page-creators .tags-sidebar{
  position: sticky;
  top: 18px; /* matches main container padding */
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

  
  .page-creators .creator-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    overflow:auto;
    max-height: calc(100vh - 260px);
    padding-right:6px;
  }
  
  .page-creators .creator-row{
    display:grid;
    grid-template-columns: 1fr 34px;
    gap:8px;
    align-items:center;
  }
  
  .page-creators .creator-item{
    padding:8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text);
    background: rgba(255,255,255,0.04);
    text-decoration:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    min-width:0;
  }
  
  .page-creators .creator-item span:first-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  
  .page-creators .creator-item.active{
    border-color: var(--blue3);
    background: rgba(59,130,246,0.14);
  }
  
  .page-creators .creator-remove{
    width:34px; height:34px;
    border-radius: 12px;
    border: 1px solid var(--border2);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor:pointer;
    font-size:18px;
    line-height:1;
  }
  .page-creators .creator-remove:hover{
    border-color: var(--blue3);
    background: rgba(59,130,246,0.10);
  }
  
  .page-creators .creator-new-badge{
    display:none;
    padding:2px 8px;
    border-radius:999px;
    font-size:12px;
    background: rgba(239,68,68,0.95);
    color:#fff;
    white-space:nowrap;
    flex-shrink:0;
  }
  
  /* Controls */
  .page-creators .creator-titleblock{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
  .page-creators .subheader{
    opacity: 1;
    color: var(--muted);
    font-size: 13px;
  }
  
  .page-creators .controls-row{
    display:grid;
    grid-template-columns: 1fr max-content;
    gap:10px;
    align-items:center;
  }
  
  .page-creators .right-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
    white-space:nowrap;
  }
  
  /* Use the existing .btn/.btn-primary system (more consistent) */
  .page-creators .primary-button{
    height:36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--blue3);
    background: var(--blue2);
    color: var(--text);
    cursor:pointer;
  }
  .page-creators .primary-button:hover{ filter: brightness(1.06); }
  
  .page-creators .btn-link{
    background:none;
    border:none;
    padding:0;
    color:#60a5fa;
    cursor:pointer;
    text-decoration:none;
    font-size:13px;
  }
  .page-creators .btn-link:hover{ text-decoration: underline; }
  
  /* Grid + card constraints */
  .page-creators .bot-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }
  
  .page-creators .bot-card{
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    min-width: 0;
    display:flex;
    flex-direction: column;
  }
  
  .page-creators .bot-image-link{
    display:block;
    width:100%;
    aspect-ratio: 3 / 4;
    overflow:hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
  }
  
  .page-creators .bot-image{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
  }
  
  .page-creators .bot-new-badge{
    position:absolute;
    top:10px; right:10px;
    padding:3px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    color:#fff;
    background: rgba(46, 204, 113, 0.95);
    z-index:3;
  }
  
  .page-creators .bot-name{
    margin-top: 10px;
    font-weight: 800;
    text-align: center;
  }
  
  .page-creators .bot-title{
    margin-top: 6px;
    opacity: 0.72;
    font-size: 0.86rem;
    text-align:center;
    min-height: 2.8em;
  }
  
  .page-creators .bot-first-seen{
    font-size:12px;
    opacity:0.75;
    margin-top:6px;
    text-align:center;
  }
  
  .page-creators .meta-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:6px;
  }
  .page-creators .meta-pill{
    font-size:12px;
    opacity:0.9;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
  }
  
  /* Tag chips */
  .page-creators .bot-tags{
    margin-top: 10px;
    display:flex;
    flex-wrap: wrap;
    gap:6px;
    justify-content:center;
    align-content:flex-start;
  }
  
  .page-creators .bot-tags a{
    display:inline-flex;
    text-decoration:none;
  }
  .page-creators .bot-tags .tag{
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--blue3);
    background: rgba(59,130,246,0.16);
    color: #bfdbfe;
    line-height: 1.2;
  }
  .page-creators .bot-tags a:hover .tag{ filter: brightness(1.06); }
  
  /* Modal */
  .page-creators .modal-backdrop{ background: rgba(0,0,0,0.55); }
  .page-creators .modal-card{
    background: rgba(25,28,36,0.98);
    border: 1px solid rgba(255,255,255,0.14);
  }
  .page-creators .modal-body pre{
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.14);
  }
  
  /* Focus rings */
  .page-creators a:focus-visible,
  .page-creators button:focus-visible,
  .page-creators input:focus-visible,
  .page-creators select:focus-visible{
    outline: 3px solid rgba(96,165,250,0.9);
    outline-offset: 2px;
    border-radius: 10px;
  }
  
  /* Responsive */
  @media (max-width: 1200px){
    .page-creators .creator-layout{ grid-template-columns: 1fr; }
    .page-creators .creator-sidebar,
    .page-creators .tags-sidebar{
      position: static;
      max-height: none;
      overflow: visible;
    }
    .page-creators .creator-list,
    .page-creators .tags-scroll{ max-height: none; }
    .page-creators .controls-row{ grid-template-columns: 1fr; }
    .page-creators .right-actions{
      width:100%;
      justify-content:flex-start;
    }
  }
  /* ==============================
   Creators controls consistency
   ============================== */

/* Inputs */
.page-creators input[type="text"],
.page-creators input[type="search"],
.page-creators input:not([type]),
.page-creators .creator-add input,
.page-creators .creator-search input[name="q"]{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.page-creators input::placeholder{
  color: rgba(255,255,255,0.55);
}

/* Select dropdowns - make them look like dropdowns */
.page-creators select{
  appearance: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  color: var(--text);
  font-size: 12px;
}

/* Primary button – match other project pill */
.page-creators .primary-button{
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #4aa8ff, #5b8fd0);
  border: none;
  transition: filter 0.2s ease;
}
.page-creators .primary-button:hover{ filter: brightness(1.12); }

/* btn-link pill */
.page-creators .btn-link{
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  background-color: rgba(74,168,255,0.07);
  color: #4aa8ff;
  display:inline-block;
}
.page-creators .btn-link:hover{ background-color: rgba(74,168,255,0.16); }

/* Header action row spacing */
.page-creators .controls-row{
  gap: 12px;
}
.page-creators .right-actions{
  gap: 10px;
}
/* Better tag chips (match Author Tracker) */
.page-creators .bot-tags{
  margin: 10px 0 6px 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 6px;
}

.page-creators .bot-tags .tag{
  display:inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(74,168,255,0.22);
  border: 1px solid rgba(74,168,255,0.45);
  color: rgba(230,245,255,0.95);
  font-weight: 600;
  white-space: nowrap;
}

.page-creators .bot-tags a{
  text-decoration:none;
}
.page-creators .modal-backdrop{
  background: rgba(0,0,0,0.65);
}

.page-creators .modal-card{
  background: #252528; /* same as card-color in other project */
  border: 1px solid #3a3a3a;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.page-creators .modal-body{
  color: rgba(255,255,255,0.92);
}
/* =========================
   Creators page polish pass
   ========================= */
   .page-creators .creator-layout { gap: 18px; }

   /* Inputs + selects consistent */
   .page-creators input[type="text"],
   .page-creators input[type="search"],
   .page-creators input:not([type]) {
     padding: 9px 12px;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.12);
     background: rgba(0,0,0,0.18);
     color: rgba(255,255,255,0.92);
     font-size: 13px;
     outline: none;
   }
   .page-creators input::placeholder { color: rgba(255,255,255,0.55); }
   
   .page-creators select {
     padding: 7px 12px;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.12);
     background: rgba(0,0,0,0.18);
     color: rgba(255,255,255,0.92);
     font-size: 13px;
   }
   
   /* Buttons (make everything feel “same system”) */
   .page-creators .primary-button,
   .page-creators .btn-link {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 7px 14px;
     border-radius: 999px;
     font-size: 13px;
     font-weight: 600;
     border: 1px solid rgba(255,255,255,0.12);
     text-decoration: none;
     cursor: pointer;
     user-select: none;
   }
   
   /* Primary look */
   .page-creators .primary-button {
     background: linear-gradient(135deg, rgba(74,168,255,0.95), rgba(91,143,208,0.95));
     color: #fff;
     border: none;
   }
   .page-creators .primary-button:hover { filter: brightness(1.08); }
   
   /* Link pill look */
   .page-creators .btn-link {
     background: rgba(74,168,255,0.10);
     color: rgba(74,168,255,0.95);
   }
   .page-creators .btn-link:hover { background: rgba(74,168,255,0.18); }
   
   /* Filter chips row */
   .page-creators .chip-row { display:flex; flex-wrap:wrap; gap: 8px; margin: 10px 0 14px; }
   .page-creators .chip {
     display:inline-flex;
     align-items:center;
     gap: 8px;
     padding: 6px 12px;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.12);
     background: rgba(255,255,255,0.06);
     color: rgba(255,255,255,0.92);
     font-size: 12px;
     font-weight: 600;
   }
   .page-creators .chip a { color: inherit; text-decoration: none; opacity: 0.8; }
   .page-creators .chip a:hover { opacity: 1; }
   .page-creators .chip.and { border-color: rgba(0,200,120,0.35); background: rgba(0,200,120,0.10); }
   .page-creators .chip.not { border-color: rgba(255,90,90,0.35); background: rgba(255,90,90,0.10); }
   
   /* Bot tags as nice pills (not huge / not harsh) */
   .page-creators .bot-tags { display:flex; flex-wrap:wrap; gap: 6px; justify-content:center; margin-top: 10px; }
   .page-creators .bot-tags .tag {
     display:inline-block;
     padding: 3px 10px;
     border-radius: 999px;
     background: rgba(74,168,255,0.22);
     border: 1px solid rgba(74,168,255,0.40);
     color: rgba(235,247,255,0.95);
     font-size: 12px;
     font-weight: 700;
     white-space: nowrap;
   }
   
   /* Tag sidebar ✓ / ✕ buttons should be small circular icons */
   .page-creators .tag-filter-btn {
     display:inline-flex;
     width: 22px;
     height: 22px;
     align-items:center;
     justify-content:center;
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,0.14);
     text-decoration:none;
     font-weight: 800;
   }
   .page-creators .tag-filter-btn.and { background: rgba(0,200,120,0.12); color: rgba(0,200,120,0.95); }
   .page-creators .tag-filter-btn.not { background: rgba(255,90,90,0.12); color: rgba(255,90,90,0.95); }
   .page-creators .tag-filter-btn:hover { filter: brightness(1.12); }
   
   /* Modal should be “solid panel” like the other project */
   .page-creators .modal-backdrop { background: rgba(0,0,0,0.68); }
   .page-creators .modal-card {
     background: rgba(30,30,34,0.98);
     border: 1px solid rgba(255,255,255,0.14);
     box-shadow: 0 12px 50px rgba(0,0,0,0.65);
   }
   .page-creators .modal-body { color: rgba(255,255,255,0.92); }
   /* === ACTUAL MODAL BEHAVIOR (missing piece) === */
.modal-backdrop {
  position: fixed;
  inset: 0;                 /* top/right/bottom/left: 0 */
  display: none;            /* JS toggles this */
  align-items: center;
  justify-content: center;
  z-index: 1000;            /* above navbar (z=30) */
}

.modal-card {
  max-width: 720px;
  width: min(92vw, 720px);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* =========================
   Greeting modal typography
   ========================= */

   .modal-body {
    line-height: 1.6;
    font-size: 15px;
  }
  
  /* Paragraph spacing */
  .modal-body p {
    margin: 0 0 1.1em;
  }
  
  /* Italics → blue, readable */
  .modal-body em {
    font-style: italic;
    color: #7fb7ff; /* soft readable blue */
  }
  
  /* Bold text (thoughts, emphasis) */
  .modal-body strong {
    font-weight: 700;
    color: rgba(255,255,255,0.95);
  }
  
  /* Dialogue lines */
  .modal-body p:has(strong) {
    margin-top: 1.4em;
  }
  
  /* Blockquotes (if any ever appear) */
  .modal-body blockquote {
    margin: 1.2em 0;
    padding-left: 1em;
    border-left: 3px solid rgba(127,183,255,0.45);
    color: rgba(220,235,255,0.95);
  }
  
  /* Lists (just in case) */
  .modal-body ul,
  .modal-body ol {
    margin: 1em 0 1em 1.4em;
  }
  
  /* Horizontal rules */
  .modal-body hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin: 1.4em 0;
  }
  .page-creators .controls-row {
    margin-bottom: 18px; /* same rhythm as card gap */
  }
  .page-creators .creator-add {
    display: flex;
    gap: 10px;          /* matches button spacing elsewhere */
    margin-bottom: 12px;
  }
    /* Tags sidebar rows — aligned like Author Tracker */
.page-creators .tags-sidebar .gt-li,
.page-creators .tags-sidebar tr {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

/* Tag name (left) */
.page-creators .tags-sidebar .gt-li > span:first-child,
.page-creators .tags-sidebar .tag-name {
  justify-self: start;
}

/* Count (center) */
.page-creators .tags-sidebar .gt-count,
.page-creators .tags-sidebar .count-col {
  min-width: 28px;
  text-align: right;
  opacity: 0.75;
}

/* ✓ ✕ group (right) */
.page-creators .tags-sidebar .gt-li-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}
.page-creators .tags-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* ============================
   Creators controls – old-style
   ============================ */

/* Unified control height */
.page-creators .controls-row input[type="search"],
.page-creators .controls-row select,
.page-creators .controls-row button {
  height: 36px;
  line-height: 36px;
}

/* Search input (old project look) */
.page-creators .controls-row input[type="search"] {
  border-radius: 6px;
  padding: 0 12px;
  background: #111;
  border: 1px solid #3a3a3a;
  color: #fff;
  font-size: 13px;
}

.page-creators .controls-row input[type="search"]::placeholder {
  color: #9aa3ad;
}

/* Dropdowns should look like dropdowns */
.page-creators .controls-row select {
  border-radius: 6px;
  padding: 0 28px 0 10px;
  background-color: #111;
  border: 1px solid #3a3a3a;
  color: #fff;
  font-size: 13px;
  appearance: menulist;
}

/* Dropdown focus */
.page-creators .controls-row select:focus,
.page-creators .controls-row input[type="search"]:focus {
  outline: none;
  border-color: #4aa8ff;
  box-shadow: 0 0 0 1px rgba(74,168,255,0.5);
}

/* Apply button aligned, but slightly tighter */
.page-creators .controls-row .primary-button {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 999px;
}

/* Space between controls (old rhythm) */
.page-creators .controls-row {
  gap: 10px;
  align-items: center;
}
/* Make search bar stretch full available width */
.page-creators .controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search input grows, others do not */
.page-creators .controls-row input[type="search"] {
  flex: 1 1 auto;
  min-width: 0; /* IMPORTANT: allows flexbox to actually shrink/grow */
}

/* Keep dropdowns & buttons compact */
.page-creators .controls-row select,
.page-creators .controls-row button {
  flex: 0 0 auto;
}
.page-creators .controls-row input[type="search"] {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.page-creators .controls-row select:first-of-type {
  margin-left: 6px;
}
/* ===== Controls row: old-project behavior ===== */

.page-creators .controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Left side (search + sort) stretches */
.page-creators .controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;   /* ← THIS is the key */
  min-width: 0;
}

/* Search bar stretches fully */
.page-creators .controls-search {
  flex: 1 1 auto;
  min-width: 0;
}

/* Sort + buttons stay compact */
.page-creators .controls-left select,
.page-creators .controls-left button {
  flex: 0 0 auto;
}

/* Right actions stay pinned */
.page-creators .right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
/* Make Toggle Blur look like a normal button */
.page-creators #toggleBlurCreators {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #9fd0ff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hover / active states */
.page-creators #toggleBlurCreators:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

.page-creators #toggleBlurCreators:active {
  transform: translateY(1px);
}
.page-creators #toggleBlurCreators.is-on {
  background: rgba(74,168,255,0.22);
  border-color: rgba(74,168,255,0.55);
  color: #fff;
}
/* =========================================================
   FAVORITE CREATORS — SINGLE SOURCE OF TRUTH
   ========================================================= */

.page-creators {
  --gap: 18px;
  --control-height: 36px;
}

/* -------------------------
   Layout
   ------------------------- */

.page-creators .creators-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr) 280px;
  gap: var(--gap);
  align-items: start;
}

.page-creators .creator-sidebar,
.page-creators .tags-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
}

/* -------------------------
   Controls row
   ------------------------- */

.page-creators .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

/* Left side (search + sort) */
.page-creators .controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Right side actions */
.page-creators .right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* -------------------------
   Inputs & selects
   ------------------------- */

.page-creators input[type="search"],
.page-creators select {
  height: var(--control-height);
  font-size: 13px;
  border-radius: 6px;
  background: #111;
  border: 1px solid #3a3a3a;
  color: #fff;
}

.page-creators input[type="search"] {
  padding: 0 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-creators input[type="search"]::placeholder {
  color: #9aa3ad;
}

.page-creators select {
  padding: 0 28px 0 10px;
  appearance: menulist;
}

.page-creators input[type="search"]:focus,
.page-creators select:focus {
  outline: none;
  border-color: #4aa8ff;
  box-shadow: 0 0 0 1px rgba(74,168,255,0.5);
}

/* -------------------------
   Buttons
   ------------------------- */

.page-creators .primary-button {
  height: var(--control-height);
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.page-creators #toggleBlurCreators {
  height: var(--control-height);
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #9fd0ff;
}

.page-creators #toggleBlurCreators:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

/* -------------------------
   Bot grid
   ------------------------- */

.page-creators .bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: var(--gap);
}

/* -------------------------
   Bot card
   ------------------------- */

.page-creators .bot-card {
  background: linear-gradient(180deg,#1a1f26,#14181f);
  border-radius: 16px;
  padding: 12px;
}

.page-creators .bot-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.page-creators .bot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-creators .bot-title {
  margin-top: 10px;
  font-weight: 600;
}

/* -------------------------
   Bot tags
   ------------------------- */

.page-creators .bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.page-creators .bot-tags .tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(74,168,255,0.18);
  color: #cfe4ff;
}

/* -------------------------
   Tags sidebar rows
   ------------------------- */

.page-creators .tags-sidebar .tag-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}

.page-creators .tags-sidebar .tag-count {
  min-width: 28px;
  text-align: right;
  opacity: 0.75;
}

.page-creators .tags-sidebar .tag-actions {
  display: flex;
  gap: 6px;
}

/* -------------------------
   Greeting modal
   ------------------------- */

.page-creators .modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
}

.page-creators .modal-card {
  width: min(92vw,720px);
  max-height: 85vh;
  background: #222;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.page-creators .modal-body {
  padding: 16px;
  overflow-y: auto;
  line-height: 1.6;
}

.page-creators .modal-body p {
  margin: 0 0 1.1em;
}

.page-creators .modal-body em {
  color: #7fb7ff;
  font-style: italic;
}
/* === FIX: Tags sidebar should scroll its contents === */
.page-creators .tags-sidebar{
  display: flex;
  flex-direction: column;
  /* keep your existing sticky/max-height/overflow rules as-is */
}

/* this is the scroll container */
.page-creators .tags-scroll{
  flex: 1 1 auto;
  min-height: 0;      /* CRITICAL for scrolling inside flex parents */
  overflow: auto;     /* enables scroll */
  padding-right: 6px; /* optional: breathing room for scrollbar */
}

/* optional but helps layout consistency */
.page-creators .tags-table{
  width: 100%;
  border-collapse: collapse;
}
.page-creators .tags-table td{
  padding: 1px 0;
  vertical-align: middle;
}
/* ------------------------------------------------------------
   Navbar: match the app’s “page header” scale & professionalism
   ------------------------------------------------------------ */

   .navbar{
    position: sticky;
    top: 0;
    z-index: 50;
  
    /* visually closer to your page header card */
    background: linear-gradient(180deg, rgba(10,14,20,.92), rgba(10,14,20,.72));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  
  .navbar-inner{
    /* match your wide page layout */
    max-width: none;
    width: min(1900px, 96vw);
    margin: 0 auto;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    /* make it feel like a real header */
    padding: 18px 18px;
    min-height: 64px;
  }
  
  .navbar .brand{
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .2px;
    text-decoration: none;
    color: #eaf2ff;
  }
  
  .navbar .nav-links{
    display: flex;
    align-items: center;
    gap: 18px;
  }
  
  .navbar .nav-links a{
    text-decoration: none;
    color: rgba(235,242,255,.86);
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  
  .navbar .nav-links a:hover{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.10);
    color: #ffffff;
  }
  
  /* Optional: if you ever add an "active" class to the current page link */
  .navbar .nav-links a.active{
    background: rgba(59,130,246,.18);
    border-color: rgba(59,130,246,.35);
    color: #ffffff;
  }
  /* ============================================================
   App-wide layout: keep page margins consistent at any zoom
   ============================================================ */

main.container{
  max-width: none;
  width: min(1900px, 96vw);
  padding-left: 18px;
  padding-right: 18px;
  margin: 0 auto;
}
.navbar-inner{
  max-width: none;
  width: min(1900px, 96vw);
  margin: 0 auto;
  padding: 18px 18px;
}
/* Navbar should NOT shrink with the page container */
.navbar-inner{
  width: 100%;
  max-width: none;
  margin: 0;                 /* not centered like the content container */

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* fixed professional gutters that stay consistent */
  padding: 18px 28px;
  min-height: 64px;
}
.navbar-inner{
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}


/* add a soft cap via a centered inner wrapper using padding instead of vw */
.navbar{
  padding-left: 18px;
  padding-right: 18px;
}
.navbar-inner{
  width: 100%;
  max-width: none;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* bigger header */
  padding: 22px 28px;
  min-height: 78px;
}
.navbar .brand{
  font-weight: 850;
  font-size: 24px;      /* was ~20 */
  letter-spacing: .2px;
  text-decoration: none;
  color: #eaf2ff;
}

.navbar .nav-links a{
  font-size: 15px;      /* was ~14 */
  padding: 12px 14px;   /* slightly bigger targets */
  border-radius: 10px;
}
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;

  background: linear-gradient(180deg, rgba(10,14,20,.94), rgba(10,14,20,.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
/* Creators bot cards grid */
.creator-bots-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.creator-bot-card{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(10,14,20,0.5);
}

.creator-bot-img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display:block;
  margin-bottom: 10px;
}

.creator-bot-name{
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-bot-title{
  font-size: 13px;
  opacity: 0.85;
  min-height: 18px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shared metrics block (Total / 24h / Rating) */
.bot-meta{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  justify-content: initial !important;
  gap: 10px;
  font-size: 13px;
  opacity: 0.9;
  background: #0f1622;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 8px 0;
}

.creator-bot-created{
  font-size: 12px;
  margin-top: 6px;
}

.creator-bot-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.creator-bot-tag{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.9;
}
.bot-meta{
  display: flex;
  flex-direction: column;   /* ⬅ stack top → bottom */
  gap: 4px;
  font-size: 13px;
  opacity: 0.9;
  background: #0f1622;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 8px 0;
}

.bot-meta > div{
  display: flex;
  justify-content: space-between; /* label left, value right */
  line-height: 1.2;
}

/* =========================
   Creators meta – match Global Trending
   ========================= */

   .page-creators .bot-meta{
    margin-top: 10px;
    opacity: 0.82;
    font-size: 0.86rem;
  
    display: grid;
    gap: 4px;
    justify-items: center;
  
    background: none;      /* remove pill look */
    padding: 0;
    border-radius: 0;
  }
  
  .page-creators .bot-meta > div{
    display: block;        /* no label/value split */
  }
  /* Global Trending: author pill (match Creators) */
.page-gt .meta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:10px; /* similar spacing to old gt-author */
}

.page-gt .meta-pill{
  font-size:12px;
  opacity:0.9;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
  color: var(--text);
}

.page-gt .meta-pill:hover{
  border-color: var(--blue3);
  background: rgba(59,130,246,0.10);
}
.page-gt .fav-form{ margin-top: 10px; }
/* =========================
   Card vertical justification fix
   ========================= */

/* Ensure all card text blocks are centered */
.gt-card,
.page-creators .bot-card{
  text-align: center;
}

/* Meta stacks already centered, just normalize spacing */
.gt-meta,
.page-creators .bot-meta{
  margin-top: 10px;
}

/* Author pill row: same spacing everywhere */
.meta-row{
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Created line should not push alignment */
.gt-author,
.page-creators .bot-first-seen{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}
.page-creators .bot-first-seen{
  max-width: 100%;
  white-space: nowrap;
}
.gt-meta > div,
.page-creators .bot-meta > div{
  line-height: 1.35;
}
/* GT: make View Greeting match Creators */
.page-gt .btn-link{
  background: rgba(74,168,255,0.10);
  color: rgba(74,168,255,0.95);
}
.page-gt .btn-link:hover{
  background: rgba(74,168,255,0.18);
}
/* GT: make View Greeting look exactly like Creators pill */
.page-gt .btn-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;

  text-decoration: none;
  cursor: pointer;

  background: rgba(74,168,255,0.10);
  border: 1px solid rgba(74,168,255,0.22);
  color: rgba(74,168,255,0.95);
}

.page-gt .btn-link:hover{
  background: rgba(74,168,255,0.18);
  border-color: rgba(74,168,255,0.35);
}
/* =========================
   Landing page
   ========================= */

   .page-home .home-hero-top{
    display:flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .page-home .home-title{
    margin: 0 0 6px;
    font-size: 28px;
  }
  
  .page-home .home-subtitle{
    margin: 0;
    opacity: 0.85;
    max-width: 860px;
  }
  
  .page-home .home-status{
    display:flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  
  .page-home .home-cta{
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
  }
  
  .page-home .home-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    font-size: 12px;
    opacity: 0.92;
  }
  
  .page-home .home-badge.ok{
    border-color: rgba(67, 203, 145, 0.35);
    background: rgba(67, 203, 145, 0.10);
  }
  
  .page-home .home-badge.warn{
    border-color: rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.10);
  }
  
  .page-home .home-badge.subtle{
    opacity: 0.70;
  }
  
  .page-home .home-highlights{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  
  .page-home .home-highlight{
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
  }
  
  .page-home .home-highlight-title{
    font-weight: 700;
    margin-bottom: 4px;
  }
  
  .page-home .home-highlight-text{
    opacity: 0.8;
    font-size: 13px;
  }
  
  .page-home .home-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  
  .page-home .home-card h2{
    margin-top: 0;
  }
  
  .page-home .home-bullets-gt,
  .page-home .home-bullets-fc,
  .page-home .home-bullets-t{
    margin: 10px 0 0;
    padding-left: 18px;
    opacity: 0.88;
  }
  
  .page-home .home-bullets-gt li,
  .page-home .home-bullets-fc li,
  .page-home .home-bullets-t li{
    margin: 6px 0;
  }
  
  .page-home .home-actions{
    display:flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  
  .page-home .home-footer{
    margin-top: 16px;
  }
  /* =========================
   Landing page clickable cards
   ========================= */

.home-card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-card{
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.home-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.home-card:focus-within{
  outline: 2px solid rgba(74,168,255,0.55);
  outline-offset: 2px;
}

.home-card-hint{
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.75;
  text-align: right;
}
/* NEW count badge next to creator name */
.new-count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width: 18px;
  height: 18px;
  padding: 0 6px;

  margin-left: 8px;
  border-radius: 999px;

  background: #ef4444;   /* red */
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
/* =========================
   Navbar metadata
   ========================= */

   .nav-meta{
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  
  .nav-last-update{
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
  }
  
  /* Optional: hide on very small screens */
  @media (max-width: 720px){
    .nav-meta{
      display: none;
    }
  }
  /* =========================
   Navbar last update
   ========================= */

.nav-links-wrap{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-last-update{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* Hide metadata on very small screens */
@media (max-width: 720px){
  .nav-last-update{
    display: none;
  }
}
/* =========================
   Navbar user dropdown
   ========================= */

   .nav-user{
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  
  .nav-user-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    /* Match link button sizing */
    height: 34px;
    width: 34px;
  
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
  
    padding: 0;
    cursor: pointer;
  }
  
  .nav-user-btn:hover{
    background: rgba(255,255,255,0.10);
  }
  
  .nav-user-btn:focus{
    outline: 2px solid rgba(74,168,255,0.55);
    outline-offset: 2px;
  }
  
  .nav-avatar{
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
  }
  
  .nav-avatar-fallback{
    font-size: 16px;
    line-height: 1;
    opacity: 0.9;
  }
  
  /* Dropdown menu */
  .nav-user-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
  
    min-width: 160px;
    padding: 6px;
  
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(20,20,24,0.95);
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
  
    display: none;
    z-index: 999;
  }
  
  .nav-user-menu.open{
    display: block;
  }
  
  .nav-user-item{
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 13px;
  }
  
  .nav-user-item:hover{
    background: rgba(255,255,255,0.08);
  }
  .nav-user-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
  }
  .nav-links-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
  }
  
  .nav-last-update{
    margin-top:4px;
    font-size:12px;
    opacity:0.7;
  }
  .bot-card { position: relative; } /* if not already */

.bot-group-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(120, 120, 255, 0.18);
  border: 1px solid rgba(120, 120, 255, 0.35);
}
/* Greeting modal: center with room around edges */
.modal-backdrop{
  position: fixed;
  inset: 0;
  display: none;                 /* JS toggles to flex */
  align-items: center;
  justify-content: center;
  padding: 24px;                 /* “margin” from viewport edges */
  z-index: 1000;
  background: rgba(0,0,0,0.65);
}

/* Card: cap height; body will scroll */
.modal-card{
  position: relative;
  width: min(92vw, 720px);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scrollable content area + comfortable text padding */
.modal-body{
  flex: 1 1 auto;
  min-height: 0;                 /* important for scrolling in flex */
  overflow: auto;
  padding: 18px 20px;            /* left/right breathing room */
}

/* Small hint footer (optional) */
.modal-hint{
  padding: 10px 20px 14px;
  font-size: 12px;
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Optional close pill inside the modal (bottom-right) */
.modal-close-pill{
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.modal-close-pill:hover{
  background: rgba(255,255,255,0.10);
}
/* ============================
   Mobile responsive (no desktop impact)
   ============================ */
   @media (max-width: 900px) {
    /* Prevent background scroll when drawers open */
    body.no-scroll { overflow: hidden; }

    /* Header: show hamburger, hide redundant app name */
    #sidebarMobileBtn{ display:inline-flex !important; }
    .thin-app{ display:none; }
    .thin-header{
      grid-template-columns: auto 1fr auto;
      padding: 0 12px;
    }

    /* Main sidebar becomes an off-canvas drawer */
    .app-shell{ grid-template-columns: 1fr !important; }
    .sidebar{
      position: fixed !important;
      top: 0;
      left: 0;
      height: 100vh;
      width: min(86vw, 320px);
      transform: translateX(-105%);
      transition: transform 180ms ease;
      z-index: 9999;
    }
    body.sidebar-mobile-open .sidebar{ transform: translateX(0); }
    .sidebar-overlay{ z-index: 9998; }
  
    /* Generic overlay for drawers */
    .mobile-overlay{
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 9998;
    }
  
    /* ---------- Global Trending ---------- */
  
    /* Show the mobile filters button; hide on desktop by default (see below) */
    .gt-mobile-filters-btn{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      color: inherit;
      cursor: pointer;
      white-space: nowrap;
    }
  
    /* Turn the right sidebar into an off-canvas drawer */
    .gt-side{
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      width: min(86vw, 380px);
      transform: translateX(105%);
      transition: transform 180ms ease;
      z-index: 9999;
      overflow: auto;
    }
    .gt-side.is-open{
      transform: translateX(0);
    }
  
    /* Make GT grid tighter and cards smaller */
    .gt-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .gt-card{
      padding: 10px;
      min-height: auto;
    }
    .gt-img{
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
    }

    /* Toolbar: search full width; sort below; no giant controls */
    .page-gt .gt-toolbar-box{
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .page-gt .gt-searchbox{ width:100%; }
    .page-gt .gt-sort{
      width: 100%;
      flex: none;
      height: 40px;
    }
    .page-gt .gt-searchbox{ padding: 10px 12px; }

    /* Tighten GT cards a bit */
    .gt-desc,
    .gt-desc-empty{ min-height: 2.4em; }

    .favorite-btn{
      height: 36px;
      padding: 0 12px;
      font-size: 14px;
    }
  
    /* Mobile card “subset of data”: keep Name, Title, Creator, +Favorite */
    .gt-meta,
    .gt-tags{
      display: none !important;
    }
    /* If you want to also hide rank on mobile, uncomment:
    .gt-rank{ display:none !important; }
    */
  
    /* ---------- Creators page ---------- */
  
    /* Stack layout instead of 3 columns */
    .page-creators .creator-layout{
      display: block;
    }

    /* Creators toolbar: search full width, sort below, controls below */
    .cr-toolbar-box{
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .cr-toolbar{
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .cr-searchbox{ width:100%; }
    .cr-sort{
      width: 100%;
      flex: none;
      height: 40px;
    }

    /* Buttons: keep readable but not huge */
    #toggleBlurCreators,
    .cr-markseen-form .primary-button{
      height: 40px;
      padding: 0 12px;
      font-size: 14px;
    }
  
    /* Make the left favorites list less “wide” on mobile */
    .page-creators .creator-sidebar{
      margin-bottom: 12px;
    }
  
    /* Mobile tags button */
    .creator-mobile-tags-btn{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      color: inherit;
      cursor: pointer;
      white-space: nowrap;
    }
  
    /* Off-canvas Tags sidebar on mobile */
    .page-creators .tags-sidebar{
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      width: min(86vw, 380px);
      transform: translateX(105%);
      transition: transform 180ms ease;
      z-index: 9999;
      overflow: auto;
    }
    .page-creators .tags-sidebar.is-open{
      transform: translateX(0);
    }
  
    /* Creators grid: smaller cards */
    .page-creators .bot-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .page-creators .bot-card{
      padding: 10px;
    }
    .page-creators .bot-image{
      width: 72px;
      height: 72px;
    }
  
    /* Mobile card “subset of data”: keep Name, Title, Creator, (+Favorite if you add it) */
    
    .page-creators .bot-tags,
    .page-creators .bot-first-seen{
      display: none !important;
    }
    .page-creators .bot-meta,
    .page-creators .view-greeting{
      display: inline-flex !important;
    }
    
  }
  
  /* Hide the mobile-only buttons by default (desktop) */
  .gt-mobile-filters-btn,
  .creator-mobile-tags-btn{
    display: none;
  }
  /* ============================================================
   Desktop shell: Sidebar + Thin header
   ============================================================ */

.app-shell{
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(10px);
}

.sidebar-top{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-toggle{
  height: 36px;
  width: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.sidebar-toggle:hover{ background: rgba(255,255,255,0.10); }

.sidebar-brand{
  text-decoration: none;
  color: var(--text);
  font-weight: 850;
  letter-spacing: .2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 4px;
}

.nav-item{
  display: flex;
  align-items: center;
  gap: 10px;

  height: 40px;
  padding: 0 10px;

  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);

  color: rgba(232,238,252,0.92);
  text-decoration: none;
  cursor: pointer;
}

.nav-item:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.nav-ico{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.nav-label{
  font-weight: 650;
  font-size: 14px;
  letter-spacing: .1px;
}

/* Filters slot */
.sidebar-filters{
  flex: 1 1 auto;
  min-height: 0;              /* critical for scrolling */
  overflow: auto;
  padding: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Profile footer (always last) */
.sidebar-profile{
  position: relative;
  padding: 4px;
}

.profile-item{
  width: 100%;
  justify-content: flex-start; /* avatar then "Profile" to the right */
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}


.avatar-ico{
  border-radius: 999px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile dropdown menu */
.profile-menu{
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: calc(100% + 8px);

  display: none;
  padding: 6px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20,20,24,0.95);
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
  z-index: 999;
}

.profile-menu.open{ display: block; }

.profile-menu-item{
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 13px;
}
.profile-menu-item:hover{ background: rgba(255,255,255,0.08); }

/* Main + thin header */
.main{
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thin-header{
  position: sticky;
  top: 0;
  z-index: 35;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;

  height: 56px;
  padding: 0 18px;

  background: rgba(10,14,20,0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.thin-app{
  font-weight: 850;
  letter-spacing: .2px;
  opacity: 0.95;
}
.thin-mid{ text-align: center; }
.thin-page{
  font-weight: 750;
  opacity: 0.92;
}
.thin-right{ text-align: right; }
.thin-status{
  font-size: 12px;
  opacity: 0.70;
  white-space: nowrap;
}

/* Mobile hamburger (header) — hidden on desktop */
@media (min-width: 901px){
  #sidebarMobileBtn{ display:none; }
}


.thin-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.thin-menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  width:40px;
  border-radius:12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
}

.sidebar-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}

/* Collapsed behavior */
body.sidebar-collapsed .app-shell{
  grid-template-columns: 78px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar-brand{ display: none; }
body.sidebar-collapsed .nav-label{ display: none; }     /* <-- “avatar only” works here */
body.sidebar-collapsed .sidebar-filters{ display: none; } /* hide filters entirely */

body.sidebar-collapsed .nav-item{
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .nav-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

/* Make sure buttons using .nav-item style don't inherit anchor defaults */
button.nav-item{
  color: rgba(232,238,252,0.92);
}
/* Sidebar top: just the button now */
.sidebar-top{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ✅ always left */
  gap:10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Ensure the grid responds to collapsed */
body.sidebar-collapsed .app-shell{
  grid-template-columns: 78px minmax(0, 1fr) !important;
}

/* Collapsed: icons only + filters hidden */
body.sidebar-collapsed .nav-label{ display:none !important; }
body.sidebar-collapsed .sidebar-filters{ display:none !important; }

body.sidebar-collapsed .nav-item{
  justify-content:center;
  padding:0 !important;
}
.main{
  flex: 1 1 auto;
  min-width: 0;   /* critical for grid/flex children */
  max-width: 100%;
}
.main > .container{
  width: 100%;
  max-width: none;        /* remove old page constraint */
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
body.sidebar-collapsed .main > .container{
  padding-left: 18px;
  padding-right: 18px;
}
/* ============================================================
   APP SHELL OVERRIDES (keep GT/Creators inside main column)
   ============================================================ */
   .app-shell .main > main.container{
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* Constrain page wrappers inside main */
  .app-shell .main .gt-wrap,
  .app-shell .main .creator-layout{
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* ============================================================
     SIDEBAR: consistent sizing + alignment
     ============================================================ */
  .sidebar .sidebar-top{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .sidebar .sidebar-toggle{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
  }
  
  .sidebar .nav-item{
    height: 52px;
  }
  
  .sidebar .nav-ico{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
  }
  
  /* Avatar stacks image + fallback */
  .sidebar .avatar-ico{
    position: relative;
    overflow: hidden;
  }
  
  .sidebar .avatar-img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .sidebar .avatar-fallback{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
  
  /* ============================================================
     COLLAPSED: strict icon column + hide filters
     ============================================================ */
  body.sidebar-collapsed .sidebar-filters{
    display: none;
  }
  
  body.sidebar-collapsed .sidebar .sidebar-nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
  }
  
  body.sidebar-collapsed .sidebar .nav-item{
    width: 52px;
    height: 52px;
    padding: 0;
    margin: 0;
    justify-content: center;
    border-radius: 18px;
  }
  
  body.sidebar-collapsed .sidebar .nav-label{
    display: none;
  }
  /* ============================================================
   Sidebar filters: collapsible panels that share height
   ============================================================ */

.sidebar-filters{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;           /* critical for flex+scroll */
}

/* panel */
.sb-panel{
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.sb-head{
  position: sticky;        /* stays visible while body scrolls */
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 12px;
  background: rgba(20, 24, 32, 0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.10);

  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.sb-chev{
  opacity: 0.75;
  transform: rotate(0deg);
  transition: transform 120ms ease;
}

.sb-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;

  /* scrollbar “margin” so it doesn’t cover text edge */
  padding: 10px 12px;
  padding-right: 18px;

  /* helps on modern browsers */
  scrollbar-gutter: stable;
}

.sb-panel.is-collapsed .sb-body{
  display: none;
}

.sb-panel.is-collapsed .sb-chev{
  transform: rotate(-90deg);
}

/* When collapsed sidebar: hide filters entirely (you already wanted this) */
body.sidebar-collapsed .sidebar-filters{
  display: none;
}
/* Creators page: ensure main content fills available width */
.page-creators .creator-layout{
  display: block;
}

.page-creators .creator-main{
  width: 100%;
  max-width: none;
}
/* Sidebar filter panels: controlled height sharing */
.sidebar-filters{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Favorite Creators: size to content */
.sidebar-filters .sb-panel:first-child{
  flex: 0 0 auto;
}

/* Tags: consume remaining space */
.sidebar-filters .sb-panel:last-child{
  flex: 1 1 auto;
  min-height: 0;
}
/* Global Trending: header controls (search left, sort right) */
.page-gt .gt-head-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.page-gt .gt-search-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 420px;
  max-width: 720px;
  width: 52vw;
}

.page-gt .gt-search-ico{
  opacity: 0.75;
  font-size: 16px;
  line-height: 1;
}

.page-gt .gt-search-input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
  font-size: 16px;
}

.page-gt .gt-sort-select{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 16px;
}
/* Sidebar filters: panels share space + scroll, with gutter so scrollbar doesn't cover text */
.sidebar .sidebar-filters {
  display: flex;
  flex-direction: column;
  min-height: 0;          /* critical for nested scrolling */
  gap: 12px;
}

.sidebar .sb-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar .sb-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 14px;     /* space between text and scrollbar */
  scrollbar-gutter: stable both-edges;
}

.sidebar .gt-list {
  margin: 0;
  padding-right: 4px;      /* extra breathing room */
}
/* Tags actions: keep ✓ ✕ horizontal */
.tags-table .action-col{
  white-space: nowrap;
}
.tags-table .action-col .tag-filter-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
}
/* Collapsed sidebar panels shouldn't reserve height */
.sb-panel.is-collapsed{
  flex: 0 0 auto !important;
}
.sb-panel.is-collapsed .sb-body{
  display: none !important;
}
/* Creators page: ensure main fills full available width */
.page-creators .creator-layout{
  display: block !important;
}
.page-creators .creator-main{
  width: 100% !important;
  max-width: none !important;
}
/* Make main content use full available width inside app-shell */
.app-shell .main > main.container{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Global Trending toolbar */
.gt-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.gt-searchbox{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

.gt-searchbox input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
}

.gt-sort{
  min-width: 170px;
  height: 44px;
  border-radius: 14px;
}

/* Creators toolbar (same feel) */
.cr-toolbar{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.cr-searchbox{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}

.cr-searchbox input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
}

.cr-sort{
  min-width: 170px;
  height: 44px;
  border-radius: 14px;
}
/* Creators: unified toolbar row */
.cr-toolbar-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.cr-toolbar{
  flex:1;
  display:flex;
  align-items:center;
  gap:14px;
}
.cr-toolbar-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
}
/* One unified toolbar "box" that contains search, sort, and buttons */
.cr-toolbar-box{
  display:flex;
  align-items:center;
  gap:14px;

  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);

  margin-bottom:14px;
}

/* GET form takes remaining space so the buttons sit on the right */
.cr-toolbar{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:14px;
  margin:0; /* prevent form default spacing */
}

/* Search grows; sort stays a fixed width */
.cr-searchbox{ flex:1 1 auto; }
.cr-sort{ flex:0 0 220px; }

/* Keep button heights aligned with inputs */
#toggleBlurCreators,
.cr-markseen-form .primary-button{
  height:44px;
}
/* =========================================================
   Global Trending toolbar — match Creators exactly
   ========================================================= */

   .page-gt .gt-toolbar-box{
    display:flex;
    align-items:center;
    gap:14px;
  
    padding:14px;
    border-radius:18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
  
    margin-bottom:14px;
  }
  
  /* Search grows, sort stays compact */
  .page-gt .gt-searchbox{
    flex:1 1 auto;
    min-width:0;
  
    display:flex;
    align-items:center;
    gap:10px;
  
    padding:10px 12px;
    border-radius:14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
  }
  
  .page-gt .gt-searchbox input{
    width:100%;
    min-width:0;
    background: transparent;
    border: 0;
    outline: none;
    color: inherit;
  }
  
  .page-gt .gt-sort{
    flex:0 0 220px;
    height:44px;
    border-radius:14px;
  }
  /* GT no longer has a right-side panel; filters live in the base sidebar now */
.app-shell .main .gt-wrap{
  grid-template-columns: 1fr !important;
}
.page-creators .creator-add input{
  width: 100%;
}
/* Global Trending: make filters share vertical space */
body.page-gt .sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}
body.page-gt .sidebar-filters .sb-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}
body.page-gt .sidebar-filters .sb-body {
  flex: 1 1 auto;
  min-height: 0;     /* critical */
  overflow: auto;
}
.sb-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;

  /* scrollbar “margin” so it doesn’t cover text edge */
  padding: 10px 12px;
  padding-right: 18px;

  scrollbar-gutter: stable;
}
.sb-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;

  /* normal padding (no fake gutter) */
  padding: 10px 12px;

  /* keep layout from jumping when scrollbar appears */
  scrollbar-gutter: stable;
}

/* Scrollbar styling (Chromium/WebKit) */
.sb-body::-webkit-scrollbar{
  width: 10px;
}
.sb-body::-webkit-scrollbar-track{
  background: transparent;
}
.sb-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;

  /* makes the thumb look inset and keeps it off the content */
  border: 2px solid rgba(0,0,0,0.0);
  background-clip: padding-box;
}
.sb-body::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.28);
  background-clip: padding-box;
}

/* Firefox */
.sb-body{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}
.page-gt .tag-filter-btn{
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  font-weight: 800;
  margin-left: 6px;
}
.page-gt .tag-filter-btn.and{
  background: rgba(0,200,120,0.12);
  color: rgba(0,200,120,0.95);
}
.page-gt .tag-filter-btn.not{
  background: rgba(255,90,90,0.12);
  color: rgba(255,90,90,0.95);
}
/* GT: Creators panel scrollbar flush to panel edge */
.page-gt .sidebar-filters .sb-panel:first-child .sb-body{
  padding-right: 12px;              /* normal padding only */
  scrollbar-gutter: stable;         /* NOT both-edges */
}

/* Remove extra inset padding on the list itself */
.page-gt .sidebar-filters .sb-panel:first-child .gt-list{
  padding-right: 0;
}
/* =========================================================
   GT FILTERS (new names to avoid overrides)
   ========================================================= */

   .page-gt .gtfilters{
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    height: 100%;
  }
  
  /* Panels share height */
  .page-gt .gtfilters-panel{
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 0;
  
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    overflow: hidden;
  }
  
  /* Keep collapse behavior compatible:
     JS toggles .is-collapsed on [data-sb-panel] */
  .page-gt .gtfilters-panel.is-collapsed{
    flex: 0 0 auto !important;
  }
  .page-gt .gtfilters-panel.is-collapsed .gtfilters-body{
    display: none !important;
  }
  .page-gt .gtfilters-panel.is-collapsed .gtfilters-chev{
    transform: rotate(-90deg);
  }
  
  .page-gt .gtfilters-head{
    position: sticky;
    top: 0;
    z-index: 2;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 10px 12px;
    background: rgba(20, 24, 32, 0.55);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  
    font-weight: 800;
    cursor: pointer;
    user-select: none;
  }
  .page-gt .gtfilters-chev{
    opacity: 0.75;
    transform: rotate(0deg);
    transition: transform 120ms ease;
  }
  
  /* The scroller: scrollbar must be flush to panel edge */
  .page-gt .gtfilters-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  
    /* no fake right gutter */
    padding: 10px 12px;
  
    scrollbar-gutter: stable;
  }
  
  /* Table layout: consistent columns across both panels */
  .page-gt .gtfilters-table{
    width: 100%;
    border-collapse: collapse;
  }
  .page-gt .gtfilters-table td{
    padding: 1px 0;
    vertical-align: middle;
  }
  
  /* 3-column rows (name | count | actions).
     Creators rows simply have no actions cell. */
  .page-gt .gtfilters-table tr{
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
  }
  .page-gt .gtfilters-name{ min-width: 0; }
  .page-gt .gtfilters-link{
    color: #60a5fa;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
  }
  .page-gt .gtfilters-link:hover{ text-decoration: underline; }
  
  .page-gt .gtfilters-count{
    opacity: 0.75;
    text-align: right;
    min-width: 28px;
    line-height: 1.25;
  }
  
  .page-gt .gtfilters-actions{
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }
  
  /* Tag buttons (Creators-style) */
  .page-gt .gtfilters-btn{
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.14);
  }
  .page-gt .gtfilters-btn-and{
    background: rgba(0,200,120,0.12);
    color: rgba(0,200,120,0.95);
  }
  .page-gt .gtfilters-btn-not{
    background: rgba(255,90,90,0.12);
    color: rgba(255,90,90,0.95);
  }
  .page-gt .gtfilters-btn.is-on{
    border-color: rgba(255,255,255,0.28);
    filter: brightness(1.08);
  }
  
  /* Scrollbar styling: flush + subtle (Chromium/WebKit) */
  .page-gt .gtfilters-body::-webkit-scrollbar{
    width: 10px;
  }
  .page-gt .gtfilters-body::-webkit-scrollbar-track{
    background: transparent;
  }
  .page-gt .gtfilters-body::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
  }
  .page-gt .gtfilters-body::-webkit-scrollbar-thumb:hover{
    background: rgba(255,255,255,0.28);
  }
  
  /* Firefox */
  .page-gt .gtfilters-body{
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
  }
  /* =========================================================
   Scroll-to-top button (Global)
   ========================================================= */

.scroll-top-btn{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,24,32,0.75);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    background 120ms ease;
}

.scroll-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover{
  background: rgba(60,80,120,0.85);
}

.scroll-top-btn:active{
  transform: translateY(1px);
}
/* =========================================================
   Creators toolbar: desktop = search + (sort/blur/mark) row
   mobile = search full width, controls row below
   ========================================================= */
   .page-creators .cr-toolbar-box{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border-radius:18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 14px;
  }
  
  /* Remove nested “inner box” look on the GET form itself */
  .page-creators .cr-toolbar{
    flex: 1 1 auto;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0;
    margin:0;
    background: transparent;
    border: 0;
  }
  
  /* Search takes remaining space */
  .page-creators .cr-searchbox{
    flex: 1 1 auto;
    min-width: 0;
  }
  
  /* Controls container */
  .page-creators .cr-toolbar-controls{
    display:flex;
    align-items:center;
    gap:14px;
    flex: 0 0 auto;
  }
  
  /* Make sort + buttons match height/shape */
  .page-creators .cr-sort,
  .page-creators .cr-ctl-btn{
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 44px;
  }
  
  /* Button base (rectangle, rounded edges, “professional”) */
  .page-creators .cr-ctl-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    white-space: nowrap;
  }
  
  /* Keep Blur “ghost” feel */
  .page-creators .cr-ctl-btn-ghost{
    background: rgba(255,255,255,0.06);
    color: inherit;
  }
  
  /* It used to be a big pill — force it to match the controls */
  .page-creators .cr-markseen-form{
    margin:0;
  }
  .page-creators .cr-ctl-btn-primary{
    background: #4aa3ff; /* keep your blue vibe */
    color: #fff;
    border-color: rgba(255,255,255,0.10);
  }
  
  /* ===== Mobile layout ===== */
  @media (max-width: 900px){
    .page-creators .cr-toolbar-box{
      flex-wrap: wrap;
    }
  
    /* Search is full width */
    .page-creators .cr-toolbar{
      flex: 1 1 100%;
    }
    .page-creators .cr-searchbox{
      width: 100%;
    }
  
    /* Controls row beneath search: 3 items share the row */
    .page-creators .cr-toolbar-controls{
      flex: 1 1 100%;
    }
  
    .page-creators .cr-sort{
      flex: 1 1 0;
      min-width: 0;
    }
  
    .page-creators .cr-ctl-btn{
      flex: 1 1 0;
      min-width: 0;
      padding: 0 12px;
    }
  }
  /* ===== Creators: make controls (sort + buttons) identical ===== */
.page-creators .cr-sort{
  height: 44px;
  border-radius: 14px;
  font-size: 16px;
  padding: 0 16px;
}

/* Reset any inherited button styles that cause “pill” look */
.page-creators .cr-ctl-btn{
  height: 44px;
  border-radius: 14px;
  font-size: 16px;
  padding: 0 16px;
  line-height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;

  /* important: prevent button internal metrics from changing shape */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Keep your “primary” blue, but same geometry */
.page-creators .cr-ctl-btn-primary{
  background: #4aa3ff;
  color: #fff;
  border-color: rgba(255,255,255,0.10);
}

/* Ensure blur doesn't become shorter than sort on some browsers */
.page-creators .cr-ctl-btn-ghost{
  background: rgba(255,255,255,0.06);
}

/* Mobile: make all three equal widths and same height */
@media (max-width: 900px){
  .page-creators .cr-sort,
  .page-creators .cr-ctl-btn{
    height: 44px;
    min-height: 44px;
    line-height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }
}
/* =========================================================
   Unified controls: Sort + Blur + Mark seen (Creators + GT)
   - Same height/radius/colors as GT sort
   - Sort width fits content (Top Rated + caret)
   - Custom caret (so it matches GT)
   ========================================================= */

/* Shared look */
.page-creators select[name="sort"],
.page-gt       select[name="sort"],
.page-creators #toggleBlurCreators,
.page-creators .cr-markseen-form button,
.page-gt       #toggleBlur,
.page-gt       .markseen-form button {
  height: 44px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 44px;
  padding: 0 16px;

  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Make "Blur" NOT pill-shaped */
.page-creators #toggleBlurCreators,
.page-gt #toggleBlur {
  min-width: 96px;
}

/* Keep your blue for Mark seen, but same geometry */
.page-creators .cr-markseen-form button,
.page-gt .markseen-form button {
  background: #4aa3ff;
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}

/* ---- Sort: fix width + caret to match GT ---- */
.page-creators select[name="sort"],
.page-gt select[name="sort"] {
  /* remove native look so caret is consistent */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* width should only be as long as the text + caret */
  width: auto;
  inline-size: max-content;
  max-width: 220px;         /* prevents insane width */
  padding-right: 44px;      /* room for caret */
  min-width: 150px;         /* fits "Top Rated" nicely */

  /* custom caret (white, GT-style) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

/* Hover/focus polish */
.page-creators select[name="sort"]:focus,
.page-gt select[name="sort"]:focus,
.page-creators #toggleBlurCreators:focus,
.page-gt #toggleBlur:focus,
.page-creators .cr-markseen-form button:focus,
.page-gt .markseen-form button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,163,255,0.55);
}

/* Mobile: keep the three controls on one row beneath search */
@media (max-width: 900px){
  .page-creators .cr-toolbar-controls,
  .page-gt .gt-toolbar-controls {
    display: flex;
    gap: 12px;
  }

  .page-creators select[name="sort"],
  .page-gt select[name="sort"],
  .page-creators #toggleBlurCreators,
  .page-creators .cr-markseen-form button,
  .page-gt #toggleBlur,
  .page-gt .markseen-form button {
    flex: 1 1 0;
    min-width: 0;
  }
}
/* ===== Tighten Blur, make Mark seen match Sort, shrink Sort width ===== */

/* 1) Blur: slightly less side padding */
.page-creators #toggleBlurCreators,
.page-gt #toggleBlur {
  padding-left: 12px !important;
  padding-right: 12px !important;
  min-width: 88px !important;
}

/* 2) Mark seen: same color + geometry as GT sort (NOT blue) */
.page-creators .cr-markseen-form button,
.page-gt .markseen-form button {
  background: rgba(0,0,0,0.55) !important;     /* same as sort */
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;

  padding-left: 14px !important;
  padding-right: 14px !important;
  min-width: 120px !important;                 /* prevents “giant pill” look */
}

/* 3) Sort: shrink to label + caret (no forced minimum) */
.page-creators select[name="sort"],
.page-gt select[name="sort"] {
  min-width: 0 !important;                     /* remove the previous min-width */
  width: max-content !important;
  max-width: 170px !important;                 /* ~ Top Rated + caret */
  padding-right: 42px !important;              /* caret room */
}
/* ===== Final polish: exact alignment + slightly tighter sort ===== */

/* Same inner padding for all three controls (sort + blur + mark) */
.page-creators select[name="sort"],
.page-gt select[name="sort"],
.page-creators #toggleBlurCreators,
.page-gt #toggleBlur,
.page-creators .cr-markseen-form button,
.page-gt .markseen-form button {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Slightly tighten sort while still fitting "Top Rated" + caret */
.page-creators select[name="sort"],
.page-gt select[name="sort"] {
  max-width: 162px !important;   /* was 170 */
  padding-right: 40px !important; /* caret room, a bit tighter */
}

/* Make Mark seen not look wider than the others */
.page-creators .cr-markseen-form button,
.page-gt .markseen-form button {
  min-width: 0 !important;
}
/* FINAL: lock sort width to "Top Rated" exactly */
.page-creators select[name="sort"],
.page-gt select[name="sort"] {
  width: 125px !important;      /* fits "Top Rated" + caret perfectly */
  max-width: 125px !important;
  padding-right: 36px !important;
}
/* Mobile-only landing info block (status + highlights moved below panels) */
.page-home .home-mobile-info{
  display: none;
}

.page-home .home-status--bottom,
.page-home .home-highlights--bottom{
  display: none;
}

@media (max-width: 720px){
  /* Hide top status/highlights in hero on mobile */
  .page-home .home-status--top,
  .page-home .home-highlights--top{
    display: none;
  }

  /* Show the moved block below GT/Creators panels */
  .page-home .home-mobile-info{
    display: block;
    margin-top: 16px;
    padding: 14px;
  }

  .page-home .home-status--bottom{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .page-home .home-highlights--bottom{
    display: grid;
    margin-top: 0; /* keep tight in the new card */
  }

  /* Smaller access/badges/CTA on mobile */
  .page-home .home-badge{
    font-size: 11px;
    padding: 5px 8px;
  }

  .page-home .home-cta{
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 10px;
  }

  /* Mobile: hide long bullet lists in the two big panels */
  .page-home .home-bullets-gt,
  .page-home .home-bullets-fc{
    display: none;
  }
}
/* Landing: move status+highlights below panels on mobile (keep Tips unchanged) */
.page-home .home-mobile-moved{
  display: none; /* desktop default */
}

@media (max-width: 720px){
  /* Hide the original top versions (whatever their container is) */
  .page-home .home-status,
  .page-home .home-highlights{
    display: none;
  }

  /* Re-enable Tips (do NOT hide it) */
  .page-home .home-tips,
  .page-home #tips,
  .page-home .tips,
  .page-home .tips-card{
    display: block;
  }

  /* Show the moved block */
  .page-home .home-mobile-moved{
    display: block;
    margin: 14px 0 0 0;
  }

  /* Smaller badges/CTA in moved area */
  .page-home .home-mobile-moved .home-badge{
    font-size: 11px;
    padding: 5px 8px;
  }

  .page-home .home-mobile-moved .home-cta{
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 10px;
  }
}
/* Lock background scroll when drawer is open */
body.no-scroll{
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

/* Mobile drawer overlay that captures taps */
@media (max-width: 900px){
  .sidebar-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;

    /* IMPORTANT: capture taps */
    pointer-events: auto;
    touch-action: none;
  }

  /* Sidebar sits above overlay */
  .sidebar{
    z-index: 9999;
    pointer-events: auto;
  }
}
/* Mobile: remove the two-tone / animated background layer entirely */
@media (max-width: 900px){
  html, body{
    background: #0b0f16 !important; /* pick your base dark */
    background-image: none !important;
  }

  /* Kill common gradient/overlay layers */
  body::before,
  body::after,
  .app-shell::before,
  .app-shell::after,
  .main::before,
  .main::after{
    content: none !important;
    display: none !important;
  }

  /* If you have a dedicated background element/class, hide it too */
  .app-bg,
  .background,
  .bg,
  .bg-layer{
    display: none !important;
  }
}
/* Modal card should be rounded (GT + Creators) */
.modal-card{
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

/* Footer row with pill close */
.modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}

/* Hint in footer should be left-aligned and not huge */
.modal-footer .modal-hint{
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0.7;
  font-size: 12px;
}

/* Close pill matches your control style */
.modal-close-pill{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.modal-close-pill:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
/* Creators mobile: search MUST take full row width (override late rules) */
@media (max-width: 900px){
  .page-creators .cr-toolbar-box{
    flex-wrap: wrap !important;
  }

  .page-creators .cr-toolbar{
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .page-creators .cr-searchbox{
    width: 100% !important;
  }

  .page-creators .cr-toolbar-controls{
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
/* Ensure badges anchor to the card */
.bot-card { position: relative; }

/* NEW stays top-right (keep your existing if you already have it) */
.bot-new-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

/* GROUP pill: top-left, not a full-width banner */
.bot-group-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;

  /* match your transparent style */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.92);

  /* prevent it stretching across the card */
  width: auto;
  max-width: calc(100% - 24px);
  white-space: nowrap;
}
/* ------------------------------------------------------------------
   Analytics
------------------------------------------------------------------ */

.analytics-landing{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.analytics-demo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.analytics-demo-img{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}

.analytics-demo-placeholder{
  margin-top: 8px;
}

.analytics-demo-placeholder .placeholder-row{
  height: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  margin: 10px 0;
}

.analytics-bullets{
  margin: 10px 0 16px 18px;
  padding: 0;
}

.analytics-setup{
  max-width: 640px;
}

.analytics-setup-form{
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.analytics-setup-form .field{
  flex: 1 1 320px;
}

.analytics-metrics{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
}

.metric-label{
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
}

.metric-value{
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}

.metric-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.analytics-charts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.chart-card{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 240px;
}

.chart-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.chart-header h2{
  font-size: 16px;
  margin: 0;
}

.analytics-bots-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.analytics-controls{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.analytics-controls input{
  width: min(320px, 55vw);
}

.analytics-bot-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
}

.analytics-bot-card{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.analytics-bot-media{
  position: relative;
  background: rgba(255,255,255,0.03);
}

.analytics-bot-media img.bot-avatar,
.analytics-bot-media .bot-avatar-fallback{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.rank-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
}

.analytics-bot-body{
  padding: 12px;
}

.analytics-bot-body .bot-name{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.analytics-bot-body .bot-title{
  margin-top: 4px;
  font-size: 12px;
}

.analytics-bot-body .tags{
  margin-top: 10px;
}

.analytics-bot-body .tag{
  display: inline-block;
  padding: 4px 8px;
  margin: 3px 4px 0 0;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(80,160,255,0.18);
  border: 1px solid rgba(80,160,255,0.25);
}

.analytics-bot-body .bot-metrics{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  display: grid;
  gap: 4px;
}

.analytics-bot-actions{
  padding: 12px;
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-small{
  padding: 8px 12px;
  font-size: 12px;
}

.is-blurred{
  filter: blur(14px);
  transform: scale(1.05);
}

@media (max-width: 1100px){
  .analytics-metrics{ grid-template-columns: repeat(2, 1fr); }
  .analytics-charts{ grid-template-columns: 1fr; }
  .analytics-bot-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .analytics-landing{ grid-template-columns: 1fr; }
  .analytics-demo{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .analytics-bot-grid{ grid-template-columns: 1fr; }
  .analytics-controls input{ width: 100%; }
}
/* Analytics charts: prevent infinite canvas growth */
.chart-wrap{
  position: relative;
  height: 320px;          /* tune this */
  width: 100%;
}

.chart-wrap canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.chart-card{
  overflow: hidden;
}
@media (max-width: 768px){
  .chart-wrap{ height: 240px; }
}
.bot-actions{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
/* Analytics: make buttons look like Creators-style pills */
.page-analytics .pill-btn{
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  background-color: rgba(74,168,255,0.07);
  color: #4aa8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(74,168,255,0.18);
  cursor: pointer;
}

.page-analytics .pill-btn:hover{
  background-color: rgba(74,168,255,0.16);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(232,238,252,0.92);
  cursor:pointer;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
}
