/* NewFans Portal — 50% Meta Workspace Structure + 50% OnlyFans / NewFans Brand Soul
   - Meta side: airy ambient mesh canvas, structured left sidebar w/ creator switcher dropdown & collapsible groups,
     asymmetric 2-column Hub layout, clean hairline row dividers.
   - OnlyFans / NewFans side: #189be8 signature cyan + #59cbe8 sky gradient, 20px rounded cards, 100px pill buttons,
     OnlyFans-style Creator Cover Banner + overlapping circular avatar + scalloped verified check, visual OFTV/Reel cards. */

:root {
  --ink: #1c1e21;
  --ink-2: #55657a;
  --ink-3: #7c8b9e;
  --ink-strong: #000000;

  /* NewFans + OnlyFans Signature Blues */
  --brand: #189be8;
  --sky: #59cbe8;
  --blue: #0b76b8;
  --blue-hover: #095f95;
  --tint: #e7f5fd;
  --tint-strong: #d0ecfb;
  --purple: #8b5cf6;
  --purple-tint: #f3eeff;

  /* Surfaces & Lines */
  --card: #ffffff;
  --soft: #f6f9fc;
  --hover: #eef4f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Semantic Status */
  --ok: #0d8259;
  --ok-bg: #e6f6f0;
  --amber: #9a5400;
  --amber-bg: #fef4e6;
  --bad: #cf2c21;
  --bad-bg: #fdeaea;

  /* Balanced Radii: Soft OnlyFans/NewFans 20px Cards + 100px Pills + Crisp 12px Inner Controls */
  --radius-card: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 100px;

  --shadow-card: 0 2px 10px rgba(15, 38, 64, 0.04), 0 1px 2px rgba(15, 38, 64, 0.03);
  --shadow-pop: 0 16px 40px rgba(15, 38, 64, 0.14), 0 2px 8px rgba(15, 38, 64, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  color: var(--ink);
  /* Airy Meta ambient mesh tuned to NewFans sky-blue & soft lavender */
  background-color: #f1f6fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(157, 117, 252, 0.08) 0px, transparent 45%),
    radial-gradient(at 100% 8%, rgba(24, 155, 232, 0.10) 0px, transparent 48%),
    radial-gradient(at 25% 100%, rgba(89, 203, 232, 0.10) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
}

img, svg {
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* =========================================
   ONLYFANS x NEWFANS PILL BUTTONS & BADGES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.12s;
}

.btn:hover {
  background: var(--soft);
  border-color: var(--brand);
  color: var(--blue);
}

.btn:active {
  transform: scale(0.985);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-sm {
  height: 33px;
  padding: 0 14px;
  font-size: 12.5px;
  gap: 6px;
}

.btn-xs {
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
  gap: 5px;
}

.btn-blue {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-white {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: var(--tint);
  border-color: #fff;
}

.btn-tint {
  background: var(--tint);
  border-color: transparent;
  color: var(--blue);
}

.btn-tint:hover {
  background: var(--tint-strong);
}

.link-action {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.link-action:hover {
  text-decoration: underline;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--tint);
  border-color: var(--brand);
  color: var(--blue);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
}

.icon-btn-sm svg {
  width: 13.5px;
  height: 13.5px;
}

.icon-btn.danger:hover {
  background: var(--bad-bg);
  border-color: #f3b4b0;
  color: var(--bad);
}

.btn-danger-soft {
  background: var(--bad-bg);
  border-color: #f5c2bf;
  color: var(--bad);
}

.btn-danger-soft:hover {
  background: #fbd5d5;
  border-color: var(--bad);
  color: var(--bad);
}

/* Pill Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-of { background: var(--tint); color: var(--blue); }
.pill-brand { background: var(--brand); color: #fff; }
.pill-purple { background: var(--purple-tint); color: var(--purple); }
.pill-neutral { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }

.tick {
  width: 17px;
  height: 17px;
  color: var(--brand);
  display: inline-block;
  vertical-align: -3px;
  flex: none;
}

.tick-white {
  color: #fff;
}

/* =========================================
   LAYOUT SHELL: META LEFT SIDEBAR + WORKSPACE
   ========================================= */
.portal-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100svh;
}

/* Clean White Sidebar (Meta Business Suite Organization + NewFans/OF Brand Styling) */
.suite-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 4px;
}

.sidebar-brand img {
  width: 138px;
  height: auto;
}

.suite-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--tint);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Meta-Style Portfolio / Creator Switcher Box (With OnlyFans Circular Ringed Avatar!) */
.creator-switcher-wrap {
  position: relative;
}

.creator-switcher-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s, background 0.16s;
}

.creator-switcher-btn:hover {
  background: #fff;
  border-color: var(--brand);
}

.sw-avatar-wrap {
  position: relative;
  flex: none;
}

.sw-avatar-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--brand);
}

.sw-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid #fff;
}

.sw-dot.off {
  background: #94a3b8;
}

.sw-text {
  flex: 1;
  min-width: 0;
}

.sw-text b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-text small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Creator Switcher Dropdown Popover */
.switcher-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 8px;
}

.pop-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 6px 8px;
}

.pop-creator-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
}

.pop-creator-btn:hover {
  background: var(--soft);
}

.pop-creator-btn.selected {
  background: var(--tint);
}

.pop-creator-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.pop-creator-meta {
  flex: 1;
  min-width: 0;
}

.pop-creator-meta b {
  display: block;
  font-size: 13px;
  color: var(--ink-strong);
}

.pop-creator-meta small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* Sidebar Navigation Items & Collapsible Groups */
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  width: 100%;
  height: 39px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}

.nav-link:hover {
  background: var(--hover);
  color: var(--ink-strong);
}

/* OnlyFans Sky-Cyan Active Pill (Replaces grim corporate black!) */
.nav-link.active {
  background: var(--tint);
  color: var(--blue);
  font-weight: 700;
}

.nav-link.active svg {
  color: var(--brand);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.nav-group-head {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
}

.nav-group-head:hover {
  background: var(--soft);
}

.nav-group-head svg.g-ico {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}

.nav-chev {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform 0.18s;
}

.nav-group-head[aria-expanded="false"] .nav-chev {
  transform: rotate(180deg);
}

.nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  margin-left: 19px;
  border-left: 1.5px solid var(--line);
  margin-top: 2px;
}

.nav-subitem {
  width: 100%;
  height: 33px;
  padding: 0 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  text-align: left;
}

.nav-subitem:hover {
  background: var(--hover);
  color: var(--ink-strong);
}

.nav-subitem.active {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.nav-count {
  font-size: 11px;
  opacity: 0.8;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================
   MAIN RIGHT COLUMN: FROSTED TOPBAR + CANVAS
   ========================================= */
.main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.frosted-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(241, 246, 250, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-strong);
  white-space: nowrap;
}

.topbar-search {
  position: relative;
  width: 280px;
}

.topbar-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

.topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.topbar-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 155, 232, 0.14);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Perspective Pill Toggle (Agency Admin vs Creator Side) */
.perspective-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.persp-btn {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.persp-btn.active {
  background: var(--brand);
  color: #fff;
}

/* =========================================
   WORKSPACE CONTENT AREA
   ========================================= */
.workspace {
  padding: 22px 28px 64px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* =========================================
   ONLYFANS x META CREATOR PROFILE BANNER CARD
   ========================================= */
.of-profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 18px;
}

.of-cover {
  position: relative;
  height: 112px;
  background: linear-gradient(120deg, #189be8 0%, #31b1ee 58%, #59cbe8 100%);
  overflow: hidden;
  padding: 14px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.of-cover.paused {
  background: linear-gradient(120deg, #526378 0%, #718399 100%);
}

.of-cover-watermark {
  position: absolute;
  right: -24px;
  bottom: -78px;
  width: 240px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.17;
  pointer-events: none;
}

.cover-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.cover-chip {
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cover-chip.white {
  background: #fff;
  color: var(--ok);
}

.of-profile-body {
  padding: 20px 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.of-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.of-avatar {
  width: 92px;
  height: 92px;
  margin-top: -54px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 38, 64, 0.14);
  background: #fff;
  flex: none;
}

.of-name-block {
  padding-top: 2px;
}

.of-name-block h2 {
  font-size: 22px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.of-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
}

.of-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Filter Pills */
.tab-pill {
  height: 34px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab-pill:hover {
  border-color: var(--brand);
  color: var(--ink-strong);
}

.tab-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* =========================================
   META ASYMMETRIC HUB GRID & STRUCTURED CARDS
   ========================================= */
.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-section {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.card-section:last-child {
  border-bottom: 0;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head:last-child {
  margin-bottom: 0;
}

.card-head h2, .card-head h3 {
  font-size: 17px;
  line-height: 1.25;
}

.card-head p {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* Meta-Style Clean Info Grid inside Rounded Card */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.detail-item small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 3px;
}

.detail-item div {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
}

.detail-item .sub {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 1px;
}

/* Google Drive Highlight Banner */
.drive-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eaf6fe 0%, #f4faff 100%);
  border: 1px solid #c3e4fa;
}

.drive-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drive-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  border: 1px solid #cde7fa;
  display: grid;
  place-items: center;
  flex: none;
}

.drive-badge svg {
  width: 21px;
  height: 21px;
}

.drive-strip-left b {
  display: block;
  font-size: 14px;
  color: var(--ink-strong);
}

.drive-strip-left small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================
   ONLYFANS PAGE CARDS & CREDENTIALS
   ========================================= */
.of-pages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.of-page-box {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}

.of-page-box:hover {
  border-color: var(--brand);
}

.of-page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.of-page-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  flex: none;
}

.plat-avatar svg {
  width: 19px;
  height: 19px;
}

.bg-of-paid { background: linear-gradient(135deg, #189be8, #0b76b8); }
.bg-of-free { background: linear-gradient(135deg, #59cbe8, #2c8ec4); }
.bg-of-tv { background: linear-gradient(135deg, #189be8, #8b5cf6); }
.bg-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.bg-threads { background: #14171a; }
.bg-x { background: #0f1419; }
.bg-tiktok { background: linear-gradient(135deg, #111111 45%, #fe2c55 100%); }
.bg-yt { background: #e62117; }
.bg-other { background: #475569; }

.cred-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cred-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
}

.cred-pill-box small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.cred-pill-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
}

/* Social Links List */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 10px;
}

.social-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.14s, box-shadow 0.14s;
}

.social-link-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.social-card-main {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none !important;
}

.social-card-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.social-link-meta {
  flex: 1;
  min-width: 0;
}

.social-link-meta b {
  display: block;
  font-size: 13.5px;
  color: var(--ink-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link-meta small {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
}

/* =========================================
   KPI SCORECARDS (LTV + CREATOR WEEKLY)
   ========================================= */
.ltv-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ltv-tile {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.ltv-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ltv-big {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.bar-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #dfe8f1;
  overflow: hidden;
  margin-top: 8px;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand);
  transition: width 0.25s ease;
}

.bar-fill.ok { background: var(--ok); }
.bar-fill.bad { background: var(--bad); }
.bar-fill.amber { background: #e68a00; }

/* Weekly Creator Deliverables Rows */
.row-list {
  display: flex;
  flex-direction: column;
}

.line-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.line-row:first-child {
  padding-top: 2px;
}

.line-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.line-row-left b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-strong);
}

.line-row-left small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.pill-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.pill-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink-strong);
  font-weight: 700;
  cursor: pointer;
}

.pill-stepper button:hover {
  background: var(--brand);
  color: #fff;
}

.pill-stepper span {
  min-width: 48px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

/* =========================================
   ONLYFANS / NEWFANS CONTENT IDEA CARDS
   ========================================= */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.idea-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}

.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.idea-cover {
  position: relative;
  height: 158px;
  background: #0c1824;
  overflow: hidden;
}

.idea-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.idea-cover-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

/* Signature NewFans white circular play button from index.html! */
.play-disc {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.play-disc svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.idea-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.idea-body h4 {
  font-size: 15px;
  line-height: 1.3;
}

.idea-body p {
  font-size: 13px;
  color: var(--ink-2);
}

.idea-note {
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
  color: var(--ink);
}

.idea-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* =========================================
   CREATORS DIRECTORY CARDS & TABLE
   ========================================= */
.roster-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.roster-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s;
}

.roster-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.rc-banner {
  height: 54px;
  background: linear-gradient(120deg, #189be8, #59cbe8);
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.rc-banner.paused {
  background: linear-gradient(120deg, #64748b, #94a3b8);
}

.rc-body {
  padding: 14px 18px 18px;
}

.rc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rc-top img {
  width: 58px;
  height: 58px;
  margin-top: -36px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.rc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  margin: 12px 0;
}

.rc-stats small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
}

.rc-stats b {
  font-size: 13px;
  color: var(--ink-strong);
}

/* Dropzone */
.pdf-dropzone {
  border: 2px dashed #b0d4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4faff 0%, #ebf5fd 100%);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.15s, background 0.15s;
}

.pdf-dropzone:hover, .pdf-dropzone.dragover {
  border-color: var(--brand);
  background: #e1f2fd;
}

/* Modals & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 26, 42, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(500px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  padding: 24px 26px;
}

.modal-lg {
  width: min(640px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  font-size: 19px;
}

.form-row {
  margin-bottom: 13px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  font-size: 14px;
}

.form-row textarea {
  height: auto;
  min-height: 82px;
  padding: 10px 13px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 155, 232, 0.15);
}

.form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  background: var(--ink-strong);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-pop);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s, opacity 0.2s;
}

.toast.show {
  transform: none;
  opacity: 1;
}

.toast.toast-error {
  background: var(--bad);
}

button:disabled,
.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================
   NEWFANS PORTAL AUTH GATEWAY
   ========================================= */
.auth-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-loading {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.auth-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid var(--tint-strong);
  border-top-color: var(--brand);
  animation: nf-spin 0.72s linear infinite;
}

@keyframes nf-spin {
  to { transform: rotate(360deg); }
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.auth-cover {
  position: relative;
  height: 86px;
  padding: 14px 22px;
  background: linear-gradient(120deg, #189be8 0%, #31b1ee 58%, #59cbe8 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}

.auth-cover-watermark {
  position: absolute;
  left: -18px;
  bottom: -66px;
  width: 196px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.18;
  pointer-events: none;
}

.auth-body {
  padding: 24px 28px 28px;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.auth-brand-row img {
  height: 36px;
  width: auto;
}

.auth-heading {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.auth-alert {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid transparent;
}

.auth-alert.error {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: #f5c2bf;
}

.auth-alert.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #b7e4d4;
}

.pw-input-wrap {
  position: relative;
}

.pw-input-wrap input {
  padding-right: 44px;
}

.pw-eye-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border-color: transparent;
  background: transparent;
}

.pw-eye-btn:hover {
  background: var(--soft);
  border-color: transparent;
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  font-size: 14.5px;
  margin-top: 6px;
}

/* Locked Switcher & Authenticated Sidebar Footer */
.creator-switcher-btn.locked {
  cursor: default;
}

.creator-switcher-btn.locked:hover {
  background: var(--soft);
  border-color: var(--line);
}

.sidebar-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.sf-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sf-email {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Avatar / Media File Upload Row in Modals */
.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  margin-bottom: 13px;
}

.avatar-upload-preview {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1.5px var(--brand);
  background: #fff;
  flex: none;
}

.pdf-dropzone.uploading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 1060px) {
  .hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  .portal-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .suite-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .frosted-topbar {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .workspace {
    padding: 18px 16px 48px;
  }
  .ltv-pair,
  .cred-row-grid,
  .detail-grid,
  .form-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
