/* Padrão visual Tati Weg (do layout no Figma): fundo creme, laranja nos botões,
   títulos em Playfair Display e textos em Manrope. */
:root {
  --bg: #FBF7F3; --panel-bg: #F7F4F1; --surface: #fff; --ink: #1F1A17; --text: #3D3530; --muted: #7A706A; --soft: #A69C95;
  --line: #EDE3DA; --line-2: #E4DAD1; --orange: #FF7A1F; --orange-d: #EB6A10; --brown: #B4501A; --peach: #FDEEE3; --peach-2: #FEF5EE;
  --dark: #241D19; --gold: #F0B35A; --green: #2F7A47; --green-bg: #E6F4EA; --chip: #F2EDE8; --red: #C2341E; --red-bg: #FDE8E4;
  --privacy: #F26B2A; --fatalfans: #E8457C; --onlyfans: #00AFF0;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif;
  --r: 12px; --r-sm: 8px;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brown); }
.eyebrow.gold { color: var(--gold); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { flex: none; }

/* ---------------------------------------------------------------- botões e campos */
button, .btn { font: 600 14px var(--sans); border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: var(--r-sm); padding: 0 16px; height: 44px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
button:hover, .btn:hover { border-color: #d3c6bb; background: #fffdfb; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-split { justify-content: space-between; }
.btn-danger { color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--chip); border-color: transparent; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-color: transparent; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--chip); border-color: transparent; }
.link { color: var(--brown); font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; height: auto; cursor: pointer; }
.link:hover { text-decoration: underline; background: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
input, select, textarea { font: 16px var(--sans); color: var(--ink); width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); padding: 0 14px; height: 48px; }
textarea { padding: 12px 14px; height: auto; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--soft); }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A706A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--orange); flex: none; margin: 0; }
input[type=color] { padding: 3px; height: 40px; width: 56px; }
input[type=range] { padding: 0; height: 24px; accent-color: var(--orange); border: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); font-size: 13px; margin: 14px 0; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw button { position: absolute; right: 4px; top: 4px; }
.error { color: var(--red); font-size: 13px; min-height: 1px; margin-top: 10px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 12px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line-2); }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #DCD3CB; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch i::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::before { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--chip); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--green-bg); color: var(--green); }
.chip.warn { background: var(--peach); color: var(--brown); }
.chip.bad { background: var(--red-bg); color: var(--red); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.avatar.ph { display: inline-grid; place-items: center; background: var(--peach); color: var(--brown); font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.empty { color: var(--muted); text-align: center; padding: 48px 16px; }
.cover-ph { display: grid; place-items: center; background: linear-gradient(135deg, #F6E6D8, #EBD5C3); }
.cover-ph img { width: 38%; max-width: 160px; opacity: .55; }

/* ---------------------------------------------------------------- cabeçalho público */
.site-header { height: 88px; background: #fff; border-bottom: 1px solid #F6DCCB; display: flex; align-items: center; padding: 0 64px; gap: 24px; position: sticky; top: 0; z-index: 40; }
.brand img { height: 30px; display: block; }
.site-nav { display: flex; gap: 12px; margin-left: auto; margin-right: 120px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 14px; border-radius: 6px; }
.site-nav a.on { color: var(--ink); font-weight: 700; }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.account-btn { width: 200px; justify-content: space-between; height: 46px; border-color: #E8DFD7; }
.cart-btn { position: relative; }
.cart-btn [data-cart-count] { position: absolute; top: 2px; right: 0; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 10px; }
.mobile-menu { position: fixed; inset: 76px 0 0; background: #fff; z-index: 39; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 14px 4px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-footer { max-width: 1312px; margin: 0 auto; padding: 22px 0 32px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
.site-footer b { color: var(--ink); font-size: 10px; letter-spacing: .04em; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { text-decoration: none; }
.wrap { max-width: 1312px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- início (link na bio) */
.bio { max-width: 520px; margin: 0 auto; padding: 26px 24px 40px; text-align: center; }
.badge-pill { display: inline-flex; align-items: center; height: 27px; padding: 0 22px; border-radius: 99px; background: var(--peach); color: var(--brown); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.bio-photo { width: 110px; height: 110px; margin: 22px auto 14px; border-radius: 50%; border: 2px solid var(--orange); padding: 4px; }
.bio-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bio h1 { font-family: var(--serif); font-size: 44px; line-height: 1.25; }
.bio .lead { color: var(--muted); font-size: 15px; margin-top: 8px; }
.bio-links { display: flex; flex-direction: column; gap: 10px; margin: 36px 0 32px; text-align: left; }
.bio-link { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 20px 0 12px; background: #fff; border: 1px solid #ECE3DB; border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.bio-link:hover { border-color: var(--orange); transform: translateY(-1px); }
.bio-link .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--peach); color: var(--brown); display: grid; place-items: center; flex: none; }
.bio-link b { display: block; font-size: 15px; }
.bio-link small { color: var(--muted); font-size: 12px; }
.bio-link .go { margin-left: auto; color: var(--muted); }
.access { background: var(--dark); color: #fff; border-radius: 12px; padding: 22px 20px 18px; text-align: left; }
.access .eyebrow { color: var(--gold); font-size: 10px; }
.access p { font-size: 17px; margin: 12px 0 16px; }
.access .btn-primary { width: 100%; justify-content: space-between; height: 46px; }
.bio-more { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 36px; font-size: 13px; font-weight: 700; }
.bio-more a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.bio-copy { font-size: 11px; color: var(--muted); margin-top: 54px; }

/* ---------------------------------------------------------------- blog público */
.blog-head { padding: 40px 0 46px; }
.blog-head h1 { font-family: var(--serif); font-size: 52px; line-height: 1.2; margin-top: 12px; }
.blog-head p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.featured { display: grid; grid-template-columns: 57% 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-height: 390px; text-decoration: none; }
.featured .cv { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 300px; }
.featured .tx { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-family: var(--serif); font-size: 40px; line-height: 1.3; margin: 18px 0 20px; }
.featured p { color: var(--muted); font-size: 15px; max-width: 320px; }
.meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.meta i { font-style: normal; color: var(--soft); }
.featured .meta { margin: 20px 0 24px; }
.featured .btn-primary { align-self: flex-start; width: 190px; justify-content: space-between; }
.blog-tools { display: flex; align-items: center; gap: 12px; margin: 46px 0 22px; flex-wrap: wrap; }
.tabs-pill { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs-pill button { height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 500; padding: 0 18px; border-radius: 99px; }
.tabs-pill button.on { background: var(--dark); color: #fff; font-weight: 600; }
.searchbox { position: relative; margin-left: auto; width: 290px; }
.searchbox .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { padding-left: 42px; height: 40px; font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 32px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60,35,20,.08); }
.post-card .cv { width: 100%; aspect-ratio: 413 / 208; object-fit: cover; display: block; }
.post-card .tx { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 10px 0 28px; }
.post-card .row-end { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.load-more { display: flex; justify-content: center; margin: 32px 0 28px; }
.load-more button { width: 196px; justify-content: space-between; }

/* leitura */
.article { max-width: 1000px; margin: 0 auto; padding: 32px 24px 0; }
.article h1 { font-family: var(--serif); font-size: 56px; line-height: 1.32; margin: 18px 0 20px; max-width: 640px; }
.article .sub { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.5; }
.byline { display: flex; align-items: center; gap: 12px; margin: 30px 0 28px; }
.byline b { display: block; font-size: 13px; }
.byline .btn { margin-left: auto; width: 190px; }
.article .cover { width: 100%; border-radius: 10px; display: block; max-height: 520px; object-fit: cover; }
.article .cover.cover-ph { aspect-ratio: 1000 / 345; }
.caption { font-size: 11px; color: var(--muted); margin-top: 10px; }
.prose { max-width: 600px; margin: 44px auto 0; font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--serif); font-size: 32px; line-height: 1.3; margin: 1.4em 0 .6em; }
.prose h3 { font-family: var(--serif); font-size: 24px; margin: 1.3em 0 .5em; }
.prose img { width: 100%; border-radius: 10px; margin: 1em 0; display: block; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--orange); font-family: var(--serif); font-size: 22px; }
.prose a { color: var(--brown); }
.free-layout { margin-top: 36px; display: flex; justify-content: center; }
.cta-box { max-width: 760px; margin: 44px auto 0; background: var(--peach); border-radius: 10px; padding: 24px 24px; display: flex; align-items: center; gap: 20px; }
.cta-box h3 { font-family: var(--serif); font-size: 22px; }
.cta-box p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cta-box .btn { margin-left: auto; width: 176px; }
.locked { max-width: 560px; margin: 60px auto; text-align: center; }
.locked h2 { font-family: var(--serif); font-size: 32px; margin: 14px 0 10px; }
.locked .row { justify-content: center; margin-top: 22px; }
.comments { max-width: 760px; margin: 56px auto 0; }
.comments h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 18px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-size: 13px; }
.comment p { margin-top: 4px; line-height: 1.55; }
.comment.off { opacity: .5; }
.comment-form { margin-top: 20px; padding: 20px; }

/* revistas públicas */
.mag-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }
.mag-item { text-decoration: none; }
.mag-item .frame { background: #EFE6DE; border-radius: 10px; padding: 18px; display: flex; justify-content: center; transition: transform .15s; }
.mag-item:hover .frame { transform: translateY(-3px); }
.mag-item .frame .page-wrap { box-shadow: 0 12px 28px rgba(40,20,10,.2); }
.mag-item h3 { font-weight: 700; font-size: 16px; margin-top: 14px; }
.reader { padding-bottom: 40px; }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 18px; }
.reader-top h1 { font-family: var(--serif); font-size: 32px; }
.flip { display: flex; align-items: center; justify-content: center; gap: 16px; }
.spread { display: flex; box-shadow: 0 25px 60px rgba(40,20,10,.25); }
.spread .page-wrap + .page-wrap { box-shadow: inset 14px 0 22px -14px rgba(0,0,0,.45); }
.spread.in-r { animation: inR .35s ease; } .spread.in-l { animation: inL .35s ease; }
@keyframes inR { from { opacity: 0; transform: perspective(1600px) rotateY(-10deg) translateX(30px); } }
@keyframes inL { from { opacity: 0; transform: perspective(1600px) rotateY(10deg) translateX(-30px); } }
.flip .nav { width: 52px; height: 52px; border-radius: 50%; }
.pager { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* loja pública */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.product .pimg { position: relative; aspect-ratio: 1; }
.product .pimg > img, .product .pimg > .cover-ph { width: 100%; height: 100%; object-fit: cover; display: grid; }
.product .tag { position: absolute; top: 12px; left: 12px; }
.product .tx { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-weight: 700; font-size: 16px; }
.product .price { font-family: var(--serif); font-size: 24px; margin-top: auto; padding-top: 8px; }
.product.soldout .pimg img { filter: grayscale(1); opacity: .6; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto 40px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line .thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; display: grid; }
.cart-total { display: flex; justify-content: space-between; padding: 18px 20px; border-top: 1px solid var(--line-2); font-size: 15px; }
.cart-total b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); height: 36px; }
.stepper button { border: 0; height: 34px; width: 34px; padding: 0; background: transparent; }
.stepper b { min-width: 30px; text-align: center; font-size: 14px; }
.done-box { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 32px; }
.done-box h1 { font-family: var(--serif); font-size: 36px; margin: 14px 0 10px; }

/* ---------------------------------------------------------------- entrar / criar conta */
.auth-header { height: 88px; background: #fff; border-bottom: 1px solid #F6DCCB; display: flex; align-items: center; justify-content: space-between; padding: 0 64px; }
.auth { display: grid; grid-template-columns: 640px 1fr; gap: 0; padding: 24px 32px 32px; min-height: calc(100vh - 88px); }
.auth-art { background: var(--dark); border-radius: 12px; color: #fff; padding: 40px 40px 24px; display: flex; flex-direction: column; overflow: hidden; }
.auth-art h2 { font-family: var(--serif); font-size: 56px; line-height: 1.4; margin: 36px 0 30px; }
.auth-art p { color: #E9DFD7; font-size: 16px; max-width: 320px; }
.auth-art .art-img { margin: 64px -16px 0; flex: 1; border-radius: 8px; min-height: 260px; background: linear-gradient(160deg, #3a2e27, #1b1512); display: grid; place-items: center; overflow: hidden; }
.auth-art .art-img img { width: 70%; max-width: 300px; filter: brightness(0) invert(1); opacity: .9; }
.auth-form { width: 100%; max-width: 460px; margin: 0 auto; align-self: center; padding: 40px 0; }
.auth-form h1 { font-family: var(--serif); font-size: 38px; margin: 12px 0 10px; }
.auth-form .lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth-form .btn-primary { width: 100%; margin-top: 8px; }
.auth-form .row-between { display: flex; justify-content: space-between; align-items: center; }
.auth-form .row-between .check { margin: 14px 0; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.auth-alt a { color: var(--ink); text-decoration: none; font-weight: 600; }
.auth-safe { text-align: center; font-size: 11px; color: var(--muted); margin-top: 60px; }

/* ---------------------------------------------------------------- painel administrativo */
.admin { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: var(--panel-bg); }
.side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { height: 88px; display: flex; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); flex: none; }
.side .brand img { height: 28px; }
.side nav { padding: 28px 16px 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.side .eyebrow { color: var(--ink); font-size: 10px; padding: 0 12px 12px; }
.side nav a { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; position: relative; }
.side nav a:hover { color: var(--ink); background: var(--panel-bg); }
.side nav a.on { background: var(--peach); color: var(--brown); font-weight: 700; }
.side nav a.on::before { content: ''; position: absolute; left: -2px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--orange); }
.side nav a .count { margin-left: auto; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 18px 12px; }
.side .help { margin: auto 16px 0; background: #F8F5F2; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; }
.side .help b { font-size: 13px; }
.side .help p { font-size: 12px; color: var(--muted); margin: 8px 0 14px; line-height: 1.5; }
.side .logout { display: flex; align-items: center; gap: 14px; padding: 24px 32px 32px; color: var(--muted); font-size: 14px; background: none; border: 0; height: auto; justify-content: flex-start; }
.side .logout:hover { color: var(--ink); }
.admin-top { height: 88px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 40px; gap: 16px; position: sticky; top: 0; z-index: 30; }
.crumbs { font-size: 13px; color: var(--muted); }
.admin-top .spacer { flex: 1; }
.me-box { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); height: 44px; }
.me-box b { font-size: 13px; display: block; }
.me-box small { font-size: 11px; color: var(--muted); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.notes { position: absolute; right: 0; top: 48px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(40,20,10,.15); padding: 8px; z-index: 50; }
.notes a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.notes a:hover { background: var(--panel-bg); }
.notes small { color: var(--muted); display: block; font-size: 11px; }
.admin-main { padding: 26px 40px 40px; }
.admin-main .eyebrow { color: var(--ink); font-size: 10px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 12px 0 30px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.page-head h1.serif { font-weight: 400; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.page-head .btn-primary { min-width: 216px; }
.page-head .actions { display: flex; gap: 12px; }
.page-head .actions .btn { min-width: 160px; }
.foot-note { font-size: 11px; color: var(--muted); margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.stat .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stat .top .ic { color: var(--brown); }
.stat b { display: block; font-size: 30px; margin-top: 14px; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tabs { display: flex; gap: 52px; border-bottom: 1px solid var(--line); padding: 0 20px; }
.tabs button { border: 0; background: none; height: 56px; padding: 0; color: var(--muted); font-weight: 500; font-size: 13px; border-radius: 0; position: relative; }
.tabs button.on { color: var(--ink); font-weight: 700; }
.tabs button.on::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -1px; height: 3px; background: var(--orange); border-radius: 3px; }
.tabs.flat { padding: 0; }
.panel-tools { display: flex; gap: 12px; align-items: center; padding: 22px 20px 20px; }
.panel-tools .searchbox { margin-left: 0; flex: 1; max-width: 640px; }
.panel-tools .searchbox input { background: #F8F5F2; }
.panel-tools > .btn, .panel-tools > select { margin-left: auto; }
.panel-tools > select { width: 180px; height: 40px; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; background: #F8F5F2; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; }
table.list td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list .thumb { width: 46px; height: 34px; border-radius: 4px; object-fit: cover; display: grid; flex: none; }
table.list .thumb.cover-ph img { width: 70%; }
.cell-title { display: flex; align-items: center; gap: 12px; }
.cell-title b { font-weight: 600; display: block; }
.cell-title small { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; position: relative; }
.row-actions .icon-btn { width: 34px; height: 34px; }
.menu-pop { position: absolute; right: 0; top: 38px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(40,20,10,.15); padding: 6px; z-index: 20; min-width: 170px; }
.menu-pop button { width: 100%; justify-content: flex-start; border: 0; height: 38px; font-weight: 500; }
.menu-pop button:hover { background: var(--panel-bg); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.pagination { display: flex; gap: 2px; align-items: center; }
.pagination button { height: 30px; min-width: 30px; padding: 0 6px; border: 0; background: none; font-weight: 600; font-size: 13px; }
.pagination button.on { color: var(--orange); }
.callout { background: var(--peach-2); border: 1px solid #F8DCC6; border-radius: 10px; padding: 16px 20px; font-size: 12px; color: var(--muted); }
.callout b { color: var(--brown); display: block; font-size: 12px; margin-bottom: 6px; }

/* criar publicação */
.post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 24px; align-items: start; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 24px; }
.doc .title-in { border: 0; padding: 0; height: auto; font: 32px/1.3 var(--serif); margin: 22px 0 10px; }
.doc .slug { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.doc .slug input { border: 0; padding: 0; height: 20px; font-size: 11px; color: var(--muted); width: auto; flex: 1; }
.doc .sub-in { border: 0; padding: 0; font: 600 17px/1.5 var(--sans); resize: none; margin-top: 18px; }
.fmt-switch { display: inline-flex; background: var(--panel-bg); border-radius: 8px; padding: 3px; margin-top: 18px; }
.fmt-switch button { height: 32px; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px; }
.fmt-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rt-bar { display: flex; align-items: center; gap: 4px; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 6px; height: 34px; padding: 0 8px; margin: 18px 0 22px; position: sticky; top: 96px; z-index: 5; flex-wrap: wrap; }
.rt-bar button { height: 28px; min-width: 28px; padding: 0 8px; border: 0; background: none; font-size: 12px; font-weight: 600; border-radius: 4px; }
.rt-bar button:hover { background: #fff; }
.rt-bar select { height: 28px; width: auto; border: 0; background-color: transparent; font-size: 12px; padding: 0 26px 0 6px; }
.rt-bar .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 10px; }
.rt-bar .push { margin-left: auto; }
.rich { min-height: 360px; outline: none; font-size: 14px; line-height: 1.7; }
.rich:empty::before { content: attr(data-placeholder); color: var(--soft); }
.rich p { margin: 0 0 1em; }
.rich h2 { font-family: var(--serif); font-size: 28px; margin: 1.2em 0 .5em; }
.rich h3 { font-family: var(--serif); font-size: 22px; margin: 1em 0 .4em; }
.rich img { max-width: 100%; border-radius: 6px; display: block; margin: 1em 0; }
.rich blockquote { border-left: 3px solid var(--orange); padding-left: 14px; margin: 1em 0; font-family: var(--serif); font-size: 18px; }
.doc-free { margin-top: 18px; height: 640px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.settings { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 16px 16px; position: sticky; top: 112px; }
.settings h3 { font-size: 18px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.settings .eyebrow { color: var(--muted); font-size: 9px; }
.settings .cover-box { margin-top: 12px; border-radius: 6px; overflow: hidden; aspect-ratio: 215 / 110; display: grid; }
.settings .cover-box img { width: 100%; height: 100%; object-fit: cover; }
.settings .btn { width: 100%; margin-top: 12px; }
.settings label { margin-top: 20px; }
.settings select, .settings input { height: 40px; font-size: 13px; }
.settings .callout { margin-top: 24px; }
.editor-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 18px; }

/* minhas revistas / modelos */
.mag-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mag-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; display: flex; flex-direction: column; }
.mag-card .frame { background: #EFE6DE; border-radius: 8px; height: 380px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mag-card .frame .page-wrap { box-shadow: 0 8px 22px rgba(40,20,10,.18); }
.mag-card .flag { position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; padding: 5px 34px; border-radius: 99px; text-transform: uppercase; }
.mag-card .body { padding: 18px 6px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mag-card h3 { font-size: 18px; font-weight: 700; }
.mag-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mag-card .meta { margin-top: 4px; }
.mag-card .btn { margin-top: auto; width: 100%; }
.mag-card .chip { align-self: flex-start; }
.mag-card .more { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; height: 52px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.steps span { display: flex; align-items: center; gap: 8px; }
.steps .on { color: var(--brown); font-weight: 700; }
.toolbar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.toolbar-row .tabs { flex: 1; }
.toolbar-row select { width: 180px; height: 40px; border-color: transparent; background-color: transparent; font-size: 12px; color: var(--muted); }

/* editor de revista */
.mag-editor { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: calc(100vh - 88px - 170px); min-height: 560px; display: flex; flex-direction: column; }

/* grupos */
.groups { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; height: calc(100vh - 88px - 200px); min-height: 520px; overflow: hidden; }
.groups > section { display: flex; flex-direction: column; min-height: 0; }
.g-list { border-right: 1px solid var(--line); padding: 20px 12px 16px; }
.g-list h3 { font-size: 15px; font-weight: 700; padding: 0 6px; }
.g-list .searchbox { width: auto; margin: 16px 0 14px; }
.g-list .searchbox input { background: #F8F5F2; height: 38px; }
.g-items { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.g-item { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 12px; border-radius: 10px; cursor: pointer; text-align: left; height: auto; border: 0; background: none; align-items: center; justify-content: stretch; font-weight: 400; white-space: normal; }
.g-item:hover { background: var(--panel-bg); }
.g-item.on { background: var(--peach); }
.g-item b { font-size: 13px; display: block; }
.g-item small { font-size: 11px; color: var(--muted); }
.g-item .last { grid-column: 1 / -1; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-list .foot { font-size: 10px; color: var(--muted); padding: 10px 6px 0; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 14px; }
.chat-head small { font-size: 11px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 16px; background: #FCFAF8; display: flex; flex-direction: column; gap: 14px; }
.chat-note { background: var(--peach); color: var(--brown); font-size: 11px; border-radius: 6px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.day { text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; max-width: 340px; flex: 0 1 auto; }
.msg .who { font-size: 10px; font-weight: 700; color: var(--brown); }
.msg .bubble p { font-size: 12px; margin-top: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .bubble img { width: 100%; border-radius: 6px; margin-top: 8px; display: block; }
.msg .time { text-align: right; font-size: 10px; color: var(--muted); margin-top: 6px; display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.msg .time button { height: auto; border: 0; padding: 0; background: none; color: var(--soft); font-size: 10px; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { background: #FFF6EF; border-color: #F8DCC6; }
.compose { padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.compose form { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 4px 4px 6px; }
.compose input[type=text] { border: 0; height: 36px; padding: 0 6px; font-size: 13px; }
.compose .icon-btn { width: 36px; height: 36px; }
.compose .send { width: 36px; height: 36px; padding: 0; border-radius: 8px; }
.compose small { font-size: 9px; color: var(--muted); display: block; padding: 4px 6px 0; }
.compose .preview { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); padding: 0 6px 8px; }
.compose .preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.g-details { border-left: 1px solid var(--line); padding: 20px 14px; overflow-y: auto; }
.g-details h3 { font-size: 14px; font-weight: 700; }
.g-details .center { text-align: center; margin: 22px 0 18px; }
.g-details .center .avatar { border: 2px solid var(--orange); padding: 3px; }
.g-details .center b { display: block; font-size: 17px; margin-top: 12px; }
.g-details .center small { font-size: 11px; color: var(--muted); }
.g-details .btn { width: 100%; }
.g-details hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.g-details .eyebrow { color: var(--ink); font-size: 9px; margin-bottom: 14px; }
.rule { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 14px; gap: 10px; }
.invite { background: #F8F5F2; border: 1px solid var(--line); border-radius: 8px; height: 40px; display: flex; align-items: center; padding: 0 12px; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-details .note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.member { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 6px 0; }
.member b { display: block; font-size: 12px; }
.member small { color: var(--muted); font-size: 10px; }
.member .acts { margin-left: auto; display: flex; gap: 4px; }
.member .acts button { height: 28px; padding: 0 8px; font-size: 11px; }

/* loja admin / pedidos */
.order { padding: 20px; margin-bottom: 14px; }
.order header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.order .total { font-family: var(--serif); font-size: 22px; }
.order-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 13px; line-height: 1.7; }
.order-body ul { margin: 0; padding-left: 18px; }
.order select { width: 200px; height: 40px; }

/* minha conta (leitor) */
.account { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.account h1 { font-family: var(--serif); font-size: 40px; margin: 10px 0 24px; }
.account .card { padding: 22px; margin-bottom: 18px; }
.account .card h3 { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.member-chat { height: 600px; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.member-chat > section { display: flex; flex-direction: column; min-height: 0; }

/* ---------------------------------------------------------------- janelas e avisos */
.modal-bg { position: fixed; inset: 0; background: rgba(36,29,25,.45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.wide { width: min(1040px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal header h3 { font-weight: 700; font-size: 17px; }
.modal-body { padding: 4px 22px 22px; overflow-y: auto; }
.modal-body > p:first-child { margin-top: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-top: 18px; }
.tpl { cursor: pointer; text-align: center; background: none; border: 0; height: auto; padding: 0; display: block; font-weight: 600; white-space: normal; }
.tpl:hover { background: none; }
.tpl .frame { height: 220px; display: grid; place-items: center; background: #EFE6DE; border-radius: 10px; border: 2px solid transparent; transition: border-color .15s; }
.tpl:hover .frame, .tpl:focus-visible .frame { border-color: var(--orange); }
.tpl span { display: block; margin-top: 8px; font-size: 13px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 10px; transition: .25s; z-index: 200; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------------------------------------------------------------- páginas renderizadas (canvas) */
.page-wrap { position: relative; overflow: hidden; flex-shrink: 0; }
.page { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; }
.el { position: absolute; overflow: hidden; }
.el-content { width: 100%; height: 100%; overflow: hidden; outline: none; overflow-wrap: break-word; }
.el-content p { margin: 0 0 .7em; } .el-content p:last-child { margin-bottom: 0; }
.el-heading .el-content { line-height: 1.1; }
.el-card .el-content, .el-postit .el-content, .el-quote .el-content { padding: 18px 20px; }
.el-card h3 { margin: 0 0 .4em; font-size: 1.3em; font-family: var(--serif); }
.el-postit { font-family: Caveat, cursive; box-shadow: 0 10px 18px rgba(0,0,0,.14); }
.el-shape .el-content { display: flex; align-items: center; justify-content: center; padding: 10px; }
.el-quote .el-content { display: flex; flex-direction: column; justify-content: center; }
.el-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; font: 600 13px var(--sans); color: #A08B7C; background: linear-gradient(135deg, #EFE3D8, #E3D2C4); padding: 10px; }
.has-link { cursor: pointer; }

/* editor de canvas (blog livre e revista) */
.ed { display: grid; grid-template-rows: 52px minmax(0, 1fr); height: 100%; }
.ed-top { display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; overflow-x: auto; }
.ed-top button { height: 34px; border: 0; background: none; font-size: 12px; font-weight: 600; padding: 0 10px; }
.ed-top button:hover { background: var(--panel-bg); }
.ed-top button.on { color: var(--brown); background: var(--peach); }
.ed-top .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 6px; }
.ed-top .push { margin-left: auto; }
.ed-top .muted-btn { color: var(--muted); font-weight: 500; }
.ed-top .saved { font-size: 11px; color: var(--green); font-weight: 600; padding: 0 8px; white-space: nowrap; }
.ed-top .saved.pending { color: var(--muted); }
.ed-body { display: grid; grid-template-columns: auto minmax(0, 1fr) 240px; min-height: 0; }
.ed-left:empty { display: none; }
.ed-left { width: 140px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.ed-center { display: flex; flex-direction: column; min-height: 0; background: #EFEBE7; }
.ed-stage-wrap { flex: 1; overflow: auto; padding: 32px; min-height: 0; }
.ed-stage { position: relative; margin: 0 auto; box-shadow: 0 10px 34px rgba(40,20,10,.18); }
.ed-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px 16px; gap: 10px; font-size: 12px; color: var(--muted); }
.ed-foot .pnav { display: flex; align-items: center; gap: 4px; }
.ed-foot .pnav button, .zoom button { height: 28px; width: 28px; padding: 0; border: 0; background: none; }
.zoom { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 40px; padding: 0 8px; min-width: 112px; justify-content: space-between; font-weight: 700; color: var(--ink); }
.page.editing { user-select: none; }
.page.editing.drop { outline: 4px dashed var(--orange); }
.page.editing .el { cursor: move; overflow: visible; }
.page.editing .el-image { overflow: hidden; }
.page.editing .el-image.selected { overflow: visible; }
.page.editing .el:hover { outline: 1px dashed rgba(255,122,31,.7); }
.page.editing .el.selected { outline: 2px solid var(--orange); }
.page.editing .el.is-editing { cursor: text; user-select: text; }
.page.editing .el.is-editing .el-content { user-select: text; overflow: auto; }
.h { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--orange); border-radius: 2px; z-index: 5; }
.h-nw { left: -6px; top: -6px; cursor: nwse-resize; } .h-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.h-ne { right: -6px; top: -6px; cursor: nesw-resize; } .h-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.h-n { left: calc(50% - 5px); top: -6px; cursor: ns-resize; } .h-s { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; }
.h-e { right: -6px; top: calc(50% - 5px); cursor: ew-resize; } .h-w { left: -6px; top: calc(50% - 5px); cursor: ew-resize; }
.ed-panel { border-left: 1px solid var(--line); padding: 20px 16px 30px; overflow-y: auto; background: #fff; }
.ed-panel h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ed-panel .eyebrow { color: var(--muted); font-size: 9px; margin: 18px 0 8px; display: block; }
.ed-panel label { font-size: 12px; margin: 16px 0 6px; }
.ed-panel input, .ed-panel select { height: 36px; font-size: 12px; padding: 0 10px; background-color: #F8F5F2; border-color: var(--line); }
.ed-panel select { padding-right: 30px; }
.ed-panel input[type=color] { width: 100%; padding: 3px; }
.ed-panel textarea { font-size: 13px; background: #F8F5F2; border-color: var(--line); min-height: 72px; }
.ed-panel .btn, .ed-panel button { height: 36px; font-size: 12px; }
.ed-panel .full { width: 100%; margin-top: 10px; }
.ed-panel hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ed-panel .seg { display: flex; background: #F8F5F2; border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.ed-panel .seg button { flex: 1; height: 28px; border: 0; background: none; font-size: 11px; padding: 0 4px; }
.ed-panel .seg button.on { background: #fff; color: var(--brown); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ed-panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.ed-panel .two label { margin-top: 12px; }
.ed-panel .hint { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.ed-panel .check { font-size: 12px; color: var(--ink); margin: 12px 0; }
.pages-list { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.pages-list .eyebrow { color: var(--muted); font-size: 9px; }
.pthumb { cursor: pointer; background: none; border: 0; padding: 0; height: auto; display: block; text-align: left; font-weight: 400; white-space: normal; }
.pthumb:hover { background: none; }
.pthumb .page-wrap { border: 2px solid transparent; outline: 1px solid var(--line); }
.pthumb.on .page-wrap { border-color: var(--orange); outline-color: var(--orange); }
.pthumb span { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.pthumb.on span { color: var(--ink); font-weight: 700; }
.pages-actions { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.pages-actions .btn { width: 100%; height: 40px; }
.pages-actions .row { justify-content: space-between; gap: 2px; }
.pages-actions .icon-btn { width: 26px; height: 30px; }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1180px) {
  .site-nav { margin-right: 16px; }
  .site-header, .auth-header { padding: 0 24px; }
  .post-grid, .mag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr 1fr; }
  .groups { grid-template-columns: 260px minmax(0, 1fr); }
  .g-details { display: none; }
  .groups.show-details .g-details { display: block; position: absolute; right: 40px; width: 320px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.15); height: calc(100vh - 290px); border-radius: 12px; z-index: 10; }
}
@media (max-width: 900px) {
  .site-header { height: 76px; }
  .site-nav, .account-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .featured { grid-template-columns: 1fr; }
  .featured h2 { font-size: 30px; }
  .blog-head h1, .article h1 { font-size: 38px; }
  .post-grid, .mag-cards { grid-template-columns: 1fr; }
  .searchbox { width: 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; padding: 16px; }
  .auth-art { display: none; }
  .admin { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 60; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px rgba(0,0,0,.2); }
  .admin.nav-open .side { transform: none; }
  .admin-top { padding: 0 16px; }
  .admin-top .menu-btn { display: inline-flex; width: 40px; height: 40px; }
  .admin-main { padding: 20px 16px 32px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-head { flex-direction: column; }
  .post-editor { grid-template-columns: 1fr; }
  .settings { position: static; }
  .tabs { gap: 24px; overflow-x: auto; }
  .groups { grid-template-columns: 1fr; height: auto; }
  .g-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; }
  .chat-body { min-height: 380px; }
  .me-box div { display: none; }
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-left, .ed-panel { display: none; }
  .order-body, .grid2 { grid-template-columns: 1fr; }
  table.list .hide-sm { display: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .btn { margin-left: 0; }
  .byline .btn { width: auto; }
}
@media (max-width: 600px) {
  .bio h1 { font-size: 36px; }
  .bio-more { gap: 14px; }
  .site-footer { flex-direction: column; padding: 22px 24px 32px; }
  .stats b { font-size: 24px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cart-line .line-total { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ajustes finos */
[hidden] { display: none !important; }
.cover-ph { display: grid !important; place-items: center; }
.g-details > * { flex-shrink: 0; }
.settings .switch, .g-details .switch, .rule .switch { margin: 0; }
.settings > button.btn-primary { width: 100%; margin-top: 16px; }
.panel-tools > select { width: 220px; }
.pages-actions .row { flex-wrap: nowrap; }
.pages-actions .icon-btn { width: 22px; height: 28px; }
.pages-actions .icon-btn .ic { width: 14px; height: 14px; }
/* início: botão revela as plataformas */
.access .btn-primary { width: 100%; justify-content: space-between; height: 46px; }
.access + .bio-links { margin: 24px 0 0; }
.bio-links:not([hidden]) .bio-link { animation: linkIn .35s ease both; }
.bio-links .bio-link:nth-child(2) { animation-delay: .05s; } .bio-links .bio-link:nth-child(3) { animation-delay: .1s; }
.bio-links .bio-link:nth-child(4) { animation-delay: .15s; } .bio-links .bio-link:nth-child(5) { animation-delay: .2s; }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } }
.bio .access { margin-top: 36px; }
/* plataforma principal em destaque */
.bio-link.main { height: 80px; border: 2px solid var(--orange); background: var(--peach-2); box-shadow: 0 10px 24px rgba(255,122,31,.15); }
.bio-link.main .ico { background: var(--orange); color: #fff; width: 46px; height: 46px; }
.bio-link.main b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.bio-link.main .go { color: var(--orange); }
.main-chip { height: 20px; padding: 0 8px; font-size: 10px; background: var(--orange); color: #fff; }

/* cores das plataformas (cartela: Privacy laranja, FatalFans rosa, OnlyFans azul) */
.bio-link[style*="--c"] .ico { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.bio-link[style*="--c"] .go { color: var(--c); }
.bio-link[style*="--c"]:hover { border-color: var(--c); }
.bio-link.main[style*="--c"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 22%, transparent); }
.bio-link.main[style*="--c"] .ico { background: var(--c); color: #fff; }
.bio-link.main[style*="--c"] .main-chip { background: var(--c); }
