/* =====================================================================
   Creator Club — tema claro profissional, inspirado na organização de
   interface de plataformas de subscrição (topbar + coluna de navegação +
   feed central + coluna de sugestões). CSS puro, sem dependências.
   ===================================================================== */

:root {
  --brand: #00aff0;
  --brand-dark: #0095cc;
  --brand-ink: #0b6f96;
  --brand-soft: #e8f7fe;
  --brand-ring: rgba(0, 175, 240, 0.28);

  --ink: #0d0d0d;
  --ink-2: #262626;
  --ink-3: #404040;
  --muted: #808080;
  --muted-2: #9aa5ad;

  --bg: #f7f9fa;
  --surface: #ffffff;
  --line: #e7ecef;
  --line-2: #f0f4f6;
  --line-3: #dbe3e8;

  --ok: #12a150;
  --ok-soft: #e7f7ee;
  --warn: #c47f17;
  --warn-soft: #fdf5e6;
  --danger: #d92d20;
  --danger-soft: #fdecea;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.22);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brand-ring); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6dee4; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #bcc8d1; background-clip: content-box; }

/* ---------------- Barra de topo ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1220px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--brand) 0%, #4f7bff 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex: none;
}

.searchbar { position: relative; flex: 1; max-width: 420px; margin-left: 6px; }
.searchbar input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--line-2);
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.searchbar .search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.iconbtn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.iconbtn:hover { background: var(--line-2); color: var(--ink); }
.iconbtn .badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

.who-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 190px;
}
.who-chip:hover { background: var(--line-2); }
.who-chip .who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Avatares ---------------- */

.avatar {
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand) 0%, #6f6bff 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
  user-select: none;
}
.avatar-xs { width: 32px; height: 32px; font-size: 13px; }
.avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.avatar-md { width: 56px; height: 56px; font-size: 21px; }
.avatar-lg { width: 96px; height: 96px; font-size: 36px; border: 4px solid #fff; box-shadow: var(--shadow-xs); }

/* ---------------- Botões ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--line-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-outline { background: #fff; border-color: var(--line-3); color: var(--ink-2); }
.btn-outline:hover:not(:disabled) { background: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink-3); }
.btn-ghost:hover:not(:disabled) { background: var(--line-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #fbdcd9; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }

.linkbtn { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 650; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* ---------------- Elementos soltos ---------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tag-sub { background: var(--brand-soft); color: var(--brand-ink); }
.tag-ppv { background: #fdf1e3; color: #a35a06; }
.tag-live { background: var(--ok-soft); color: #0a7a3c; }
.tag-demo { background: #f1eefe; color: #5b45c9; }
.tag-plain { background: var(--line-2); color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { font-size: 15px; }
.card-head .spacer { margin-left: auto; }

.hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 6px; }
.divider { height: 1px; background: var(--line-2); }

.field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-3);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.field { height: auto; padding: 11px 14px; resize: vertical; min-height: 44px; line-height: 1.45; }
select.field { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.field::placeholder { color: var(--muted-2); }
.label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }

/* ---------------- Marcas de pagamento ---------------- */

.brandmarks { display: flex; align-items: center; gap: 4px; }
.pmark { width: 34px; height: 23px; border-radius: 5px; display: block; flex: none; }
/* ---------------- Estrutura em 3 colunas ---------------- */

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 96px;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.col-left, .col-right { position: sticky; top: calc(var(--topbar-h) + 22px); display: grid; gap: 16px; }
.col-main { min-width: 0; }
.feedwrap { max-width: 660px; margin: 0 auto; display: grid; gap: 16px; }

/* ---------------- Navegação lateral ---------------- */

.railnav { display: grid; gap: 2px; }

.railitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.railitem svg { flex: none; color: var(--muted); }
.railitem:hover { background: var(--line-2); color: var(--ink); }
.railitem:hover svg { color: var(--ink-3); }
.railitem.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.railitem.active svg { color: var(--brand); }
.railitem .count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.railcard { padding: 14px; }
.railcard .rail-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.railstat { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.railstat:last-of-type { border-bottom: 0; }
.railstat .k { font-size: 13px; color: var(--muted); }
.railstat .v { font-size: 13.5px; font-weight: 700; }

/* ---------------- Cabeçalho do perfil ---------------- */

.profilehead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.profilecover { height: 132px; background: linear-gradient(115deg, #37c6ff 0%, var(--brand) 42%, #6f6bff 100%); position: relative; }
.profilecover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.45), transparent 52%);
}

.profilebody { padding: 0 20px 18px; margin-top: -46px; position: relative; }
.profiletitle { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.profilename { display: flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.profilemeta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.profilestats { display: flex; gap: 22px; margin-top: 14px; }
.pstat { display: grid; gap: 1px; }
.pstat b { font-size: 16px; font-weight: 800; }
.pstat span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.profilebio { margin: 14px 0 0; color: var(--ink-3); font-size: 14.5px; }
.profilecta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.profilecta .btn-primary { min-width: 190px; }

.verified { color: var(--brand); flex: none; display: inline-grid; place-items: center; }

/* ---------------- Publicações ---------------- */

.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post.is-new { animation: popIn 0.45s ease; box-shadow: 0 0 0 3px var(--brand-ring); }
@keyframes popIn { 0% { transform: scale(0.985); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } }

.posthead { display: flex; align-items: center; gap: 11px; padding: 14px 16px 10px; }
.posthead .who { min-width: 0; }
.postname { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; }
.postsub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.postmenu { margin-left: auto; }

.posttext { padding: 0 16px 12px; color: var(--ink-2); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

.postmedia { position: relative; background: #0f1418; overflow: hidden; }
.postmedia > img, .postmedia > video { width: 100%; max-height: 640px; object-fit: cover; }
.postmedia.blurred > img { filter: blur(22px) saturate(1.1) brightness(1.02); transform: scale(1.12); }

/* Caixa do cadeado (o bloqueio a sério é no servidor) */
.lockbox {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 14, 20, 0.34) 0%, rgba(9, 14, 20, 0.66) 100%);
  color: #fff;
  backdrop-filter: blur(1.5px);
}
.lockglyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.locktitle { font-size: 16.5px; font-weight: 700; }
.locksub { font-size: 13px; color: rgba(255, 255, 255, 0.86); max-width: 300px; }
.lockprice { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lockprice small { font-size: 13px; font-weight: 600; opacity: 0.8; letter-spacing: 0; }
.ratenote { margin-top: 6px; font-size: 12px; line-height: 1.35; opacity: 0.75; }
.lockactions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }

.ratelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ratepill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px;
  border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.ratepill b { font-weight: 700; color: var(--ink); }

.postactions { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--line-2); }
.actbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.actbtn:hover { background: var(--line-2); color: var(--ink); }
.actbtn.on { color: #e0345b; }
.actbtn.on svg { fill: currentColor; stroke: currentColor; }
.actbtn.mine { color: var(--brand-ink); }
.postactions .spacer { margin-left: auto; }
.views { display: inline-flex; align-items: center; gap: 6px; padding-right: 8px; font-size: 12.5px; color: var(--muted); }

.comments { border-top: 1px solid var(--line-2); background: #fbfcfd; padding: 12px 16px 14px; display: grid; gap: 11px; }
.comment { display: flex; gap: 10px; font-size: 14px; }
.comment .cname { font-weight: 700; margin-right: 6px; }
.comment .cwhen { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.commentform { display: flex; gap: 8px; }

/* ---------------- Mensagens ---------------- */

.dm { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - var(--topbar-h) - 96px); min-height: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dmhead { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dmbody { overflow-y: auto; padding: 18px 16px; display: grid; gap: 10px; align-content: start; background: #fbfcfd; }
.dmcompose { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.dmcompose textarea { flex: 1; max-height: 140px; }

.bubble { max-width: 74%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .when { display: block; font-size: 10.5px; opacity: 0.72; margin-top: 5px; }
.from-creator { justify-self: start; background: var(--brand); color: #fff; border-bottom-left-radius: 6px; }
.from-fan { justify-self: end; background: #fff; border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.bubble-post { margin-top: 9px; border-radius: 10px; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.bubble-post img { width: 100%; max-height: 180px; object-fit: cover; }
.bubble-post .bpbody { padding: 10px; display: grid; gap: 7px; }
.bubble-post .bptitle { font-size: 12.5px; font-weight: 700; }
.daysep { justify-self: center; font-size: 11.5px; color: var(--muted); background: var(--line-2); padding: 3px 11px; border-radius: var(--pill); }

/* ---------------- Conta ---------------- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panelpad { padding: 16px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 13.5px; color: var(--muted); }
.kv .v { font-weight: 700; text-align: right; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; }
.pill-ok { background: var(--ok-soft); color: #0a7a3c; }
.pill-off { background: var(--line-2); color: var(--muted); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-no { background: var(--danger-soft); color: var(--danger); }
.pill-demo { background: #f1eefe; color: #5b45c9; }

.txrow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.txrow:last-child { border-bottom: 0; }
.txrow .txmain { min-width: 0; flex: 1; }
.txrow .txtitle { font-weight: 650; font-size: 14px; }
.txrow .txmeta { font-size: 12.5px; color: var(--muted); }
.txrow .txamt { font-weight: 800; text-align: right; }

.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 44px 24px; color: var(--muted); }
.empty .em-ico { font-size: 30px; }

/* ---------------- Sugestões ---------------- */

.minipost { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-top: 1px solid var(--line-2); cursor: pointer; }
.minipost:first-of-type { border-top: 0; }
.minipost:hover { background: var(--line-2); }
.minithumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: #0f1418; }
.minipost .mini-title { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.minipost .mini-price { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); margin-top: 2px; }

.skel { border-radius: var(--radius); background: linear-gradient(90deg, #eef2f5 25%, #e5eaee 37%, #eef2f5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* ---------------- Janela de pagamento ---------------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(10, 15, 22, 0.55); backdrop-filter: blur(3px); overflow-y: auto; }
.sheet { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: sheetIn 0.2s ease; }
.sheet.wide { max-width: 720px; }
@keyframes sheetIn { from { transform: translateY(8px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }

.sheethead { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.sheethead h2 { font-size: 17px; }
.sheetclose { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sheetclose:hover { background: var(--line-2); color: var(--ink); }
.sheetbody { padding: 0 18px 4px; display: grid; gap: 14px; }
.sheetfoot { padding: 14px 18px 18px; display: grid; gap: 10px; }

/* Resumo do pedido */
.summary { border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfd; padding: 14px; display: grid; gap: 10px; }
.summary .srow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 14px; }
.summary .srow .slabel { color: var(--ink-3); }
.summary .srow .svalue { font-weight: 650; text-align: right; }
.summary .stotal { border-top: 1px dashed var(--line-3); padding-top: 11px; display: flex; align-items: baseline; justify-content: space-between; }
.summary .stotal .k { font-size: 13.5px; color: var(--muted); }
.summary .stotal .v { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }

/* Métodos */
.paylist { display: grid; gap: 8px; }
.payrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.payrow:hover { border-color: var(--line-3); background: #fcfdfe; }
.payrow.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.payrow .paymain { flex: 1; min-width: 0; }
.payrow .payname { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.payrow .payblurb { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.payrow input { position: absolute; opacity: 0; pointer-events: none; }
.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
}
.payrow.sel .radio { border-color: var(--brand); }
.payrow.sel .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Estados */
.note { display: flex; gap: 10px; padding: 12px 13px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.45; }
.note-info { background: var(--brand-soft); color: var(--brand-ink); }
.note-warn { background: var(--warn-soft); color: #8a5a10; }
.note-ok { background: var(--ok-soft); color: #0a7a3c; }
.note-no { background: var(--danger-soft); color: #a1201a; }
.note-demo { background: #f1eefe; color: #4c37b8; }
.note .noteico { flex: none; margin-top: 1px; }

.waitbox { display: grid; place-items: center; gap: 12px; text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfd; }
.waitbox .spinner-lg { width: 34px; height: 34px; border: 3px solid var(--line-3); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tick { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner.dark { border-color: var(--line-3); border-top-color: var(--ink); }

.trust { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--muted); text-align: center; }
.trust svg { flex: none; }

/* ---------------- Portões (idade / sessão) ---------------- */

.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: var(--bg); overflow-y: auto; }
.gatebox { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 28px; text-align: center; }
.gatebox .brand { justify-content: center; margin-bottom: 20px; }
.gatebox h1 { font-size: 22px; margin-bottom: 8px; }
.gatebox p { color: var(--ink-3); font-size: 14.5px; margin: 0 0 8px; }
.gateage { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: var(--pill); background: var(--danger-soft); color: #a1201a; font-weight: 800; font-size: 12.5px; margin-bottom: 16px; letter-spacing: 0.02em; }
.gateactions { display: grid; gap: 10px; margin-top: 20px; }
.gatefine { font-size: 12px; color: var(--muted-2); margin-top: 16px; line-height: 1.5; }
.gateform { text-align: left; margin-top: 18px; display: grid; gap: 12px; }

/* ---------------- Avisos ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: min(92vw, 560px);
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast.ok { background: #0f8f47; }
.toast.err { background: #c62a20; }

/* ---------------- Navegação móvel ---------------- */

.mobilenav { display: none; }

/* ---------------- Administração ---------------- */

.adminshell { max-width: 1180px; margin: 0 auto; padding: 22px 20px 80px; display: grid; gap: 18px; }
.admintabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px; }
.admintab { border: 0; background: transparent; color: var(--ink-3); font-weight: 650; font-size: 14px; padding: 9px 16px; border-radius: var(--pill); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.admintab:hover { background: var(--line-2); color: var(--ink); }
.admintab.active { background: var(--ink); color: #fff; }
.admintab .count { background: var(--danger); color: #fff; border-radius: var(--pill); font-size: 11px; font-weight: 700; padding: 1px 7px; }
.admintab.active .count { background: rgba(255, 255, 255, 0.26); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.kpi .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.kpi .v { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfdfe; }

.threadlist { display: grid; max-height: 540px; overflow-y: auto; }
.thread { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; cursor: pointer; }
.thread:hover { background: var(--line-2); }
.thread.sel { background: var(--brand-soft); border-left-color: var(--brand); }
.thread .tmain { min-width: 0; flex: 1; }
.thread .twho { font-weight: 700; font-size: 13.5px; }
.thread .tlast { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread .tunread { background: var(--brand); color: #fff; border-radius: var(--pill); font-size: 11px; font-weight: 700; padding: 2px 8px; }

.chatbox { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.chatbody { background: #fbfcfd; padding: 16px; display: grid; gap: 10px; align-content: start; height: 400px; overflow-y: auto; }
.chatfoot { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }

.dropzone { border: 1.5px dashed var(--line-3); border-radius: var(--radius); padding: 18px; text-align: center; background: #fbfcfd; transition: border-color 0.15s ease, background 0.15s ease; }
.dropzone.hasfile { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type="file"] { display: none; }
.preview { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--radius-sm); margin-top: 10px; background: #0f1418; }
.thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #0f1418; flex: none; }

/* ---------------- Responsivo ---------------- */

@media (max-width: 1120px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  .col-right { display: none; }
}

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 92px; gap: 16px; }
  .col-left { display: none; }
  .feedwrap { max-width: none; }
  .searchbar { display: none; }
  .who-chip .who-name { display: none; }
  .who-chip { padding: 0 6px; border: 0; }
  .dm { height: calc(100vh - var(--topbar-h) - 120px); }
  .grid2, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .bubble { max-width: 88%; }

  .mobilenav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobilenav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 650;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .mobilenav button.active { color: var(--brand); }
}
/* ---------------- Galeria de desbloqueios ---------------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.gal {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gal:hover { border-color: var(--line-3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.gal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #0f1418; }
.gal .galbody { padding: 9px 10px 11px; display: grid; gap: 3px; }
.gal .galtitle { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gal .galmeta { font-size: 11.5px; color: var(--muted); }
.gal .galbadge { position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; }

/* ---------------- Painel de administração ---------------- */

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.toolbar select, .toolbar input { height: 34px; }
.statline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: #fbfcfd; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.statline b { color: var(--ink); }
.tablewrap { overflow-x: auto; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table .who .mono { color: var(--muted); font-size: 12px; }

@media (max-width: 560px) {
  .payrow .brandmarks { display: none; }
  .sheet { max-height: 94vh; }
}

/* ---------------- Avatares e capa com imagem real ---------------- */

.avatar.has-photo { padding: 0; overflow: hidden; background: var(--line-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profilecover.has-photo { background-size: cover; background-position: center; }
.profilecover.has-photo::after { background: linear-gradient(180deg, rgba(11, 20, 26, 0.03) 45%, rgba(11, 20, 26, 0.2) 100%); }

/* ---------------- Gestão da subscrição (conta do fã) ---------------- */

.subactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------------- Painel: editor de perfil ---------------- */

.mediaedit { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.mediabox {
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--line-2); border: 1px solid var(--line-3);
  overflow: hidden; display: grid; place-items: center; flex: none;
  color: var(--muted-2); font-size: 30px; font-weight: 700;
}
.mediabox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coverbox {
  flex: 1 1 300px; min-width: 220px; height: 128px;
  border-radius: var(--radius); border: 1px solid var(--line-3);
  background: linear-gradient(115deg, #37c6ff 0%, var(--brand) 42%, #6f6bff 100%);
  overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 650;
}
.coverbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mediaactions { display: grid; gap: 8px; align-content: center; }
.fieldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.profilepreview { max-width: 460px; }
.profilepreview .profilecover { height: 96px; }
.profilepreview .profilebody { margin-top: -38px; padding: 0 16px 16px; }
.profilepreview .avatar-lg { width: 74px; height: 74px; font-size: 26px; border-width: 3px; }
.profilepreview .profilename { font-size: 18px; }
.brand-mark.has-photo { padding: 0; overflow: hidden; background: var(--line-2); }
.brand-mark.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---- Seletor de idioma (deteccao por pais + escolha manual) ---- */
.langpick { display: inline-flex; align-items: center; }
.langselect {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-3);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23808080' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 26px 7px 11px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.langselect:hover { border-color: var(--brand); }
.langselect:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
@media (max-width: 560px) { .langpick { display: none; } }
/* No telemovel o seletor vive na barra de baixo (onde estao os dedos). */
.langpick-m { display: none; }
@media (max-width: 560px) {
  .langpick-m {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 650;
  }
  .langpick-m .langselect {
    border: 0;
    background: transparent;
    background-image: none;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 0;
    width: 100%;
    text-align: center;
    text-align-last: center;
  }
  .langpick-m .langselect:hover,
  .langpick-m .langselect:focus-visible { box-shadow: none; }
}

/* Precos, datas e numeros seguem o idioma ativo via Intl (TL.money/date). */
.tl-num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* Painel: varias contas de criadora                                   */
/* ------------------------------------------------------------------ */

.creatorswitch { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.creatorswitch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.creatorswitch .field {
  height: 34px;
  padding: 0 30px 0 10px;
  font-size: 13.5px;
  font-weight: 650;
  max-width: 260px;
}

.creatorcard {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: #fff;
  display: grid;
  gap: 12px;
}
.creatorcard + .creatorcard { margin-top: 12px; }
.creatorcard.is-off { background: #fafbfc; opacity: .78; }
.creatorcard-head { display: flex; align-items: center; gap: 11px; }
.creatorcard-head .postsub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.creatorcard-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 18px;
  border-top: 1px solid var(--line-2);
}

.identitynew { display: flex; gap: 18px; align-items: flex-start; }
.identitynew .mediabox { flex: none; }
.identitynew .grow { min-width: 0; }