
/* B11 fase 4: cartões da área de membros na seção Entrega + editor de conteúdo (tela cheia). Prefixo ma-. */
.ma-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; margin-top:14px; }
.ma-card { background:#0a0a0a; border-radius:6px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.ma-card b { color:#fff; font-size:15px; } .ma-card span.s { color:#919eab; font-size:13px; line-height:1.5; } .ma-card.off { opacity:.55; }
.ma-btns { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; align-items:center; }
.ma-ov { position:fixed; inset:0; z-index:1200; background:#0a0a0a; overflow-y:auto; overscroll-behavior:contain; }
.ma-in { max-width:1200px; margin:0 auto; padding:20px 20px 80px; }
.ma-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; } .ma-top h2 { margin:0; flex:1; font-size:20px; color:#fff; }
.ma-sec { background:#1a1a1a; border-radius:6px; padding:16px; margin-bottom:14px; }
.ma-sec label { display:block; font-size:12px; color:#919eab; margin:10px 0 4px; }
.ma-sec input[type=text], .ma-sec input:not([type]), .ma-sec textarea, .ma-form input:not([type]), .ma-form textarea { width:100%; box-sizing:border-box; min-height:44px; border-radius:6px; border:1px solid #333; background:#0a0a0a; color:#fff; padding:10px 12px; font:inherit; font-size:14px; }
.ma-sec textarea, .ma-form textarea { min-height:90px; resize:vertical; }
.ma-mh { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .ma-mh input { flex:1 1 220px; width:auto; }
.ma-les { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 0; border-top:1px solid #262626; } .ma-les .t { flex:1 1 200px; min-width:0; color:#fff; font-size:14px; overflow:hidden; text-overflow:ellipsis; }
.ma-les .t small { display:block; color:#919eab; font-size:12px; }
.ma-form { background:#0a0a0a; border-radius:6px; padding:12px; margin:6px 0 10px; } .ma-form label { display:block; font-size:12px; color:#919eab; margin:10px 0 4px; }
.ma-file { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:13px; color:#d1d5db; } .ma-file span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ma-b { min-height:44px; padding:0 14px; border-radius:6px; border:0; background:#262626; color:#fff; font:inherit; font-size:13px; cursor:pointer; } .ma-b.pri { background:#B8F6FD; color:#121635; font-weight:600; } .ma-b.dan { color:#f87171; } .ma-b[disabled] { opacity:.45; cursor:not-allowed; }
.ma-err { background:rgba(248,113,113,.12); color:#f87171; border-radius:6px; padding:10px 14px; font-size:13px; margin-bottom:12px; }
.ma-chk { display:inline-flex !important; align-items:center; gap:8px; font-size:13px; color:#d1d5db; min-height:44px; } .ma-chk input { width:20px; height:20px; min-height:0; }
.ma-hint { color:#919eab; font-size:12px; margin-top:6px; } .ma-note { color:#fbbf24; font-size:12.5px; margin:6px 0 2px; }
#maThemeBox input:not([type=checkbox]), #maThemeBox select, #maThemeBox .pg-btn { min-height:44px; height:44px; box-sizing:border-box; }
#maThemeBox input[type=color] { width:64px; padding:4px; } #maThemeBox select { width:100%; }
#maShowBox input:not([type=checkbox]), #maShowBox select, #maShowBox .pg-btn { min-height:44px; box-sizing:border-box; } #maShowBox select, #maShowBox select.pg-sel { width:100%; height:44px !important; min-height:44px !important; }
.ma-sci { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid #222; } .ma-sci .n { flex:1 1 200px; min-width:0; overflow-wrap:anywhere; } .ma-sci small { color:#919eab; } .ma-sci small.w { color:#fbbf24; }
@media (max-width:700px) { .ma-in { padding:14px 14px 80px; } .ma-b { flex:1 1 auto; } }
.ma-cap { display:flex; gap:14px; align-items:flex-start; margin-top:12px; flex-wrap:wrap; }
.ma-capth { flex:0 0 110px; width:110px; aspect-ratio:2/3; border-radius:8px; overflow:hidden; position:relative; background:#242424; }
.ma-capth img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ma-capdef { background-color:#15181c; background-image:radial-gradient(140px 170px at 14% 0, rgba(255,255,255,.09), transparent 72%); }
.ma-capf { flex:1 1 240px; min-width:0; }
.ma-capf label { margin-top:0; }

.ma-tabs { display:flex; gap:6px; overflow-x:auto; margin:0 0 16px; padding:4px; background:var(--nx-card-bg,#1a1a1a); border:1px solid var(--nx-card-bd,transparent); border-radius:12px; width:fit-content; max-width:100%; -webkit-overflow-scrolling:touch; }
.ma-tab { flex:0 0 auto; min-height:44px; padding:0 18px; border:0; border-radius:9px; background:transparent; color:var(--nx-muted,#919eab); font:inherit; font-size:14px; font-weight:600; cursor:pointer; } .ma-tab:hover { color:var(--nx-text,#fff); } .ma-tab.on { background:#B8F6FD; color:#121635; }
.ma-h { margin:0 0 6px; font-size:16px; color:var(--nx-text,#fff); } .ma-h2 { display:block; font-size:14px; color:var(--nx-text,#fff); margin-bottom:2px; }
.ma-card.mine { grid-column:1 / -1; }
.ma-ap { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:16px; align-items:start; } .ma-apv { position:sticky; top:16px; }
.ma-pv { border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.1); } .ma-pv-cov { position:relative; height:120px; background:linear-gradient(135deg,#243044,#0f172a); } .ma-pv-cov > img:not(.lg) { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ma-pv-ov { position:absolute; inset:0; background:linear-gradient(transparent 30%,rgba(0,0,0,.65)); } .ma-pv-nm { position:absolute; left:14px; right:14px; bottom:10px; display:flex; align-items:center; gap:10px; color:#fff; } .ma-pv-nm b { font-size:16px; text-shadow:0 1px 4px rgba(0,0,0,.6); } .ma-pv-nm .lg { width:34px; height:34px; border-radius:8px; object-fit:cover; background:#fff; }
.ma-pv-b { padding:14px; display:flex; flex-direction:column; gap:8px; } .ma-pv-b p { margin:0 0 4px; font-size:13px; line-height:1.4; opacity:.85; }
.ma-pv-card { display:flex; align-items:center; gap:10px; padding:10px; border-radius:10px; } .ma-pv-card i { width:44px; height:44px; border-radius:8px; flex:0 0 auto; } .ma-pv-card b { display:block; font-size:13px; } .ma-pv-card span { font-size:12px; }
.ma-pv-btn { align-self:flex-start; margin-top:2px; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:700; }
.ma-sci { cursor:grab; border-radius:8px; padding:10px 8px; } .ma-sci.ma-dragging { opacity:.4; } .ma-sci.ma-over { outline:2px dashed #B8F6FD; outline-offset:-2px; } .ma-gr { color:#919eab; letter-spacing:-3px; font-size:16px; user-select:none; }
@media (max-width:900px) { .ma-ap { grid-template-columns:minmax(0,1fr); } .ma-apv { position:static; order:-1; } }
.ma-card.mine .ma-btns { gap:6px; } .ma-card.mine .ma-btns .pg-btn { padding-left:12px; padding-right:12px; }

.ma-ct { display:grid; grid-template-columns:330px minmax(0,1fr); gap:16px; align-items:start; } .ma-pane { min-width:0; }
.ma-tree { position:sticky; top:12px; max-height:calc(100vh - 140px); overflow-y:auto; background:var(--nx-card-bg,#1a1a1a); border:1px solid var(--nx-card-bd,transparent); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:4px; }
.ma-tree-h { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 2px 8px; } .ma-tree-h b { color:var(--nx-text,#fff); font-size:14px; } .ma-tree-h .ma-b { min-height:36px; }
.ma-tm { display:flex; flex-direction:column; gap:2px; margin-top:6px; }
.ma-tr { display:flex; align-items:center; gap:6px; border-radius:8px; border:0; background:transparent; text-align:left; width:100%; box-sizing:border-box; padding:0 6px; min-height:44px; cursor:pointer; color:var(--nx-text,#fff); }
.ma-tr:hover { background:rgba(128,128,128,.14); } .ma-tr.on { background:#B8F6FD; color:#121635; } .ma-tr.on small { color:#2b3a55; } .ma-tr.off { opacity:.6; }
.ma-trm { font-weight:700; } .ma-trl { margin-left:18px; width:calc(100% - 18px); } .ma-trl .ma-trb b { font-weight:500; }
.ma-trb { flex:1 1 auto; min-width:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; padding:6px 2px; cursor:pointer; display:flex; flex-direction:column; gap:1px; } .ma-trb b { font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ma-trb small { font-size:11.5px; color:var(--nx-muted,#919eab); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ma-add { margin:2px 0 4px 18px; min-height:36px; text-align:left; border:1px dashed rgba(128,128,128,.45); border-radius:8px; background:transparent; color:var(--nx-muted,#919eab); font:inherit; font-size:13px; padding:0 12px; cursor:pointer; } .ma-add:hover { color:var(--nx-text,#fff); border-color:#B8F6FD; }
.ma-tr.ma-dragging { opacity:.4; } .ma-tr.ma-over { outline:2px dashed #B8F6FD; outline-offset:-2px; }
.ma-crumb { font-weight:400; color:var(--nx-muted,#919eab); } .ma-vthumb { display:block; width:200px; max-width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; margin:8px 0 2px; }
@media (max-width:900px) { .ma-ct { grid-template-columns:minmax(0,1fr); } .ma-tree { position:static; max-height:none; } .ma-tree-h .ma-b, .ma-add { min-height:44px; } }
/* 16/11/2026: áreas de membros como cartões com a capa do produto (estilo "Suas áreas de membros") */
.ma-secthead { margin: 28px 0 0; }
.ma-secthead .pg-h { margin: 0 0 2px; font-size: 18px; }
.ma-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); gap: 16px; margin-top: 12px; }
.ma-card { padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--nx-card-bd, #262626); border-radius: 14px; background: var(--nx-card-bg, #141414); }
.ma-card .ma-bd { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.ma-cover { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: #15181c; border-bottom: 1px solid var(--nx-card-bd, #262626); }
.ma-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-cover span { font-size: 44px; font-weight: 700; color: #B8F6FD; }
.ma-card.mine .ma-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; align-items: stretch; }
.ma-card.mine .ma-btns .pg-badge { grid-column: 1 / -1; justify-self: start; }
.ma-card.mine .ma-btns .pg-btn.pri { grid-column: 1 / -1; }
.ma-card.mine .ma-btns .pg-btn.dan { grid-column: 1 / -1; }
.ma-card.off { opacity: .55; }
.ma-card.mine { grid-column: auto; }
.ma-card.mine .ma-btns .pg-btn { margin: 0; }
.ma-card.mine .ma-btns .pg-btn.dan { background: transparent; color: var(--nx-no, #f87171); border: 1px solid color-mix(in srgb, var(--nx-no, #f87171) 35%, transparent); }
#page-products .ma-card.mine .ma-btns .pg-btn { margin: 0; width: 100%; box-sizing: border-box; }
#page-products .ma-card.mine .ma-btns .pg-btn.dan { background: transparent; color: var(--nx-no, #f87171); border: 1px solid color-mix(in srgb, var(--nx-no, #f87171) 35%, transparent); }
.ma-card.off { align-self: start; }
/* 16/11/2026: cartão da área = capa, nome do produto, etiqueta/contagens/situação e uma linha com Gerenciar + lixeira */
.ma-card .ma-t { display: block; color: var(--nx-text, #fff); font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--nx-muted, #919eab); font-size: 12.5px; }
.ma-meta .pg-badge { margin-left: auto; }
.ma-kind { padding: 2px 8px; border-radius: 999px; background: var(--nx-tint, rgba(255,255,255,.06)); color: var(--nx-muted-hi, #c8d0da); font-weight: 600; }
.ma-cnt { display: inline-flex; align-items: center; gap: 5px; }
.ma-row { display: flex; gap: 8px; margin-top: 6px; }
#page-products .ma-row .ma-mng { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
#page-products .ma-row .ma-del { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; margin: 0; background: transparent; color: var(--nx-no, #f87171); border: 1px solid color-mix(in srgb, var(--nx-no, #f87171) 35%, transparent); }
/* editor da área: cabeçalho com título, subtítulo e botões */
.ma-top2 { align-items: flex-start; gap: 16px; }
.ma-top2 .ma-tt { flex: 1 1 260px; min-width: 0; } .ma-top2 h2 { font-size: 26px; }
.ma-sub { margin: 4px 0 0; color: var(--nx-muted-hi, #c8d0da); font-size: 14px; } .ma-sub b { color: var(--nx-text, #fff); }
.ma-tb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ma-b.ma-prev { background: #16a34a; color: #fff; }
.ma-stu { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; }
.ma-stur { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--nx-div, #262626); flex-wrap: wrap; }
.ma-stur .n { flex: 1 1 200px; min-width: 0; } .ma-stur .n b { display: block; color: var(--nx-text, #fff); font-size: 14px; } .ma-stur .n span { display: block; color: var(--nx-muted, #919eab); font-size: 12.5px; overflow-wrap: anywhere; }
.ma-stur small { color: var(--nx-muted, #919eab); }
#maOv .ma-tb .ma-b.ma-prev { background: #16a34a; border-color: #16a34a; color: #fff; }
#maOv .ma-tb .ma-b.ma-prev:hover { background: #15803d; }
/* 16/11/2026: Conteúdo no estilo da referência: uma coluna de módulos (cartões) com aulas em linhas; edição numa janela */
.ma-ct1 { display: block; }
.ma-tree2 { position: static; max-height: none; overflow: visible; background: transparent; border: 0; padding: 0; gap: 14px; }
.ma-tree2 .ma-tree-h { padding: 0 0 4px; flex-wrap: wrap; gap: 12px; }
.ma-ch { margin: 0; font-size: 22px; color: var(--nx-text, #fff); } .ma-th-b { display: flex; gap: 8px; flex-wrap: wrap; }
.ma-tree2 .ma-tm { margin: 0; border: 1px solid var(--nx-card-bd, #262626); border-radius: 14px; overflow: hidden; background: var(--nx-card-bg, #141414); gap: 0; }
.ma-tree2 .ma-trm { min-height: 72px; padding: 10px 14px; border-radius: 0; cursor: default; flex-wrap: wrap; gap: 8px 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--nx-acc-text, #B8F6FD) 8%, transparent), transparent); }
.ma-tree2 .ma-trm:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--nx-acc-text, #B8F6FD) 12%, transparent), transparent); }
.ma-tree2 .ma-trm .ma-trb b { font-size: 17px; } .ma-tree2 .ma-trm .ma-trb small { font-size: 12.5px; color: var(--nx-muted, #919eab); }
.ma-tree2 .ma-trm .ma-trb { flex: 1 1 200px; }
.ma-chev { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--nx-muted-hi, #c8d0da); cursor: pointer; transition: transform .15s; }
.ma-tm.fold .ma-chev { transform: rotate(-90deg); } .ma-tm.fold .ma-tl { display: none; }
.ma-ib { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--nx-muted-hi, #c8d0da); cursor: pointer; }
.ma-ib:hover { background: var(--nx-hover, rgba(255,255,255,.08)); color: var(--nx-text, #fff); } .ma-ib.dan:hover { color: var(--nx-no, #f87171); }
.ma-tree2 .ma-add { margin: 0; min-height: 40px; border-style: solid; border-color: color-mix(in srgb, var(--nx-acc-text, #B8F6FD) 45%, transparent); color: var(--nx-acc-text, #B8F6FD); font-weight: 600; }
.ma-tree2 .ma-dm { min-height: 40px; } .ma-tl { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ma-tree2 .ma-trl, .ma-tree2 .ma-trf { margin: 0; width: 100%; min-height: 64px; padding: 6px 10px; border: 1px solid var(--nx-card-bd, #262626); border-radius: 12px; background: var(--nx-tint, rgba(255,255,255,.03)); cursor: default; }
.ma-tree2 .ma-trl .ma-trb b { font-size: 15px; font-weight: 600; } .ma-tree2 .ma-trl .ma-trb small, .ma-tree2 .ma-trf small { color: var(--nx-muted, #919eab); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-ico { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--nx-acc-text, #B8F6FD) 14%, transparent); color: var(--nx-acc-text, #B8F6FD); }
.ma-ed { position: fixed; inset: 0; z-index: 1250; background: rgba(0, 0, 3, .65); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.ma-edbox { width: min(760px, 100%); background: var(--nx-card-strong-bg, #141517); border: 1px solid var(--nx-card-bd, #262626); border-radius: 16px; padding: 14px 18px 22px; box-sizing: border-box; }
.ma-edh { display: flex; justify-content: flex-end; margin-bottom: 8px; }
@media (max-width: 640px) { .ma-tree2 .ma-trm { padding: 8px; } .ma-tree2 .ma-dm { flex: 1 1 100%; } .ma-ed { padding: 8px; } }
.ma-prevw { position: relative; display: inline-block; }
.ma-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1260; min-width: 180px; padding: 6px; border-radius: 12px; border: 1px solid var(--nx-card-bd, #262626); background: var(--nx-card-strong-bg, #141517); box-shadow: 0 12px 32px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.ma-menu button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--nx-text, #fff); font: inherit; text-align: left; cursor: pointer; }
.ma-menu button:hover:not(:disabled) { background: var(--nx-hover, rgba(255,255,255,.08)); } .ma-menu button:disabled { opacity: .4; cursor: not-allowed; }
#maOv .ma-th-b .ma-b.pri { background: var(--nx-acc, #B8F6FD); color: var(--nx-on-acc, #03060D); border-color: transparent; }
@media (max-width: 640px) { .ma-chev, .ma-ib { width: 44px; height: 44px; flex-basis: 44px; } .ma-tree2 .ma-add, .ma-tree2 .ma-dm { min-height: 44px; } }
/* Banners da área */
.ma-th-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ma-bn { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--nx-div, #262626); }
.ma-bn-th { aspect-ratio: 16 / 5; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #15181c; color: var(--nx-muted, #919eab); font-size: 13px; border: 1px solid var(--nx-card-bd, #262626); }
.ma-bn-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-bn-f { min-width: 0; } .ma-bn-f label { display: block; font-size: 12px; color: var(--nx-muted, #919eab); margin: 8px 0 4px; } .ma-bn-f input:not([type]), .ma-bn-f input[inputmode] { width: 100%; box-sizing: border-box; min-height: 44px; }
@media (max-width: 800px) { .ma-bn { grid-template-columns: minmax(0, 1fr); } }
/* Produtos trancados (ex-Vitrine) e banners com texto/botão */
.ma-lk { margin-top: 18px; } .ma-lk-h { margin: 0 0 8px; font-size: 16px; color: var(--nx-text, #fff); }
.ma-lk .ma-lkr { margin-bottom: 8px; }
.ma-bn-th { position: relative; } .ma-bn-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 10px 14px; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent 70%); color: #fff; text-align: left; }
.ma-bn-ov b { font-size: 14px; } .ma-bn-ov span { padding: 4px 10px; border-radius: 999px; background: var(--nx-acc, #B8F6FD); color: var(--nx-on-acc, #03060D); font-size: 12px; font-weight: 700; }

.ma-bn-sec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; } .ma-bn-sec label { margin: 0; font-size: 13px; }
.ma-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--nx-muted, #919eab); font-size: 12px; } .ma-or::before, .ma-or::after { content: ''; flex: 1; height: 1px; background: var(--nx-div, #262626); }
.ma-lkr .ma-b { min-height: 36px; padding: 0 12px; }
.ma-tree-lk { margin: 22px 0 10px; }

.ma-vrow { display:flex; gap:8px; align-items:stretch; } .ma-vrow input { flex:1; min-width:0; } .ma-vrow .ma-b { white-space:nowrap; }
.ma-vok { padding:12px 14px; border-radius:12px; border:1px solid rgba(74,222,128,.4); background:rgba(74,222,128,.08); }
