/* ===================== comunidade de vendedores: stories, top do mês e perfil ===================== */
#cm-vend { display: grid; gap: 18px; }
.cm-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cm-so { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border); color: var(--muted); font-size: .76rem; font-weight: 700; }

/* avatar redondo (foto da loja ou iniciais) */
.cm-av { --t: 64px; width: var(--t); height: var(--t); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--card2); }
.cm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-av.ini { background: var(--grad); color: #fff; font-weight: 900; font-size: calc(var(--t) * .34); letter-spacing: -.02em; }

/* fileira de stories */
.cm-fila { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cm-fila::-webkit-scrollbar { display: none; }
.cm-item { flex: none; width: 82px; display: grid; justify-items: center; gap: 8px; scroll-snap-align: start; }
.cm-ring { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: var(--border); transition: transform .25s cubic-bezier(.3, .8, .3, 1); }
.cm-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); z-index: 0; }
.cm-ring .cm-av { position: relative; z-index: 1; --t: 68px !important; width: 68px; height: 68px; border: 0; }
.cm-item:hover .cm-ring { transform: scale(1.07); }
.cm-ring.novo { background: conic-gradient(from 0deg, #10B981, #A7F3D0, #047857, #10B981); animation: cm-gira 5s linear infinite; }
.cm-ring.novo .cm-av { animation: cm-gira-inv 5s linear infinite; }
@keyframes cm-gira { to { transform: rotate(360deg); } }
@keyframes cm-gira-inv { to { transform: rotate(-360deg); } }
.cm-item:hover .cm-ring.novo { animation-duration: 2.4s; }
.cm-ring.top1 { background: conic-gradient(from 0deg, #fff, #10B981, #fff, #0A0A0A, #fff); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .3), 0 10px 26px -6px rgba(var(--primary-rgb), .85); }
.cm-ring.top2 { background: linear-gradient(135deg, #A7F3D0, #34d399); box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), .6); }
.cm-ring.top3 { background: linear-gradient(135deg, #10B981, #0A0A0A); box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), .5); }
.cm-ring.visto:not([class*="top"]) { background: var(--border); animation: none; }
.cm-medalha { position: absolute; right: -4px; bottom: -2px; z-index: 2; min-width: 28px; padding: 2px 7px; border-radius: 999px; background: var(--fg); color: var(--bg); font-style: normal; font-size: .68rem; font-weight: 900; letter-spacing: .02em; border: 2px solid var(--bg); }
.cm-ring.top1 .cm-medalha { background: var(--primary); color: #fff; }
.cm-nome { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 700; }
.cm-vazio { display: grid; gap: 6px; justify-items: start; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--border); color: var(--muted); font-size: .92rem; }
.cm-vazio b { color: var(--fg); }

/* painéis: top 3 e corrida */
.cm-rank-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cm-top { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 8px 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--card2); text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s; }
@media (hover: hover) { .cm-top:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .6); } }
.cm-top b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.cm-top small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.cm-top-pos { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 32px; padding: 3px 9px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 900; font-size: .76rem; border: 3px solid var(--card); }
.cm-top.p1, .cm-top.p2, .cm-top.p3 { grid-column: span 1; }
.cm-top.p1 { padding-top: 34px; padding-bottom: 20px; background: linear-gradient(180deg, rgba(var(--primary-rgb), .18), var(--card2)); border-color: rgba(var(--primary-rgb), .55); box-shadow: 0 22px 40px -22px rgba(var(--primary-rgb), .9); }
.cm-top.p1 .cm-top-pos { background: var(--primary); color: #fff; }
.cm-top.p1 .cm-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--primary); }
.cm-top.p2 .cm-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #34d399; }
.cm-top.p3 .cm-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #047857; }
@media (min-width: 640px) { .cm-rank-grade { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .cm-top.p1 { grid-column: span 1; order: -1; } }
.cm-mudo { color: var(--muted); font-size: .9rem; }

/* visualizador tela cheia */
.cm-viewer { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(2, 4, 12, .94); animation: cm-in .22s; }
@keyframes cm-in { from { opacity: 0; } }
.cm-vf { position: relative; height: min(96vh, 900px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 22px; overflow: hidden; background: #050818; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); user-select: none; -webkit-user-select: none; animation: cm-vf .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes cm-vf { from { opacity: 0; transform: scale(.96); } }
.cm-vimg { position: absolute; inset: 0; background: center / cover no-repeat; }
.cm-vsombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 22%, transparent 62%, rgba(0, 0, 0, .78)); pointer-events: none; }
.cm-bars { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 4px; z-index: 3; }
.cm-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.cm-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.cm-bars i.feito b { width: 100%; }
.cm-bars i.ativo b { animation: cm-barra 5.5s linear forwards; }
@keyframes cm-barra { to { width: 100%; } }
.cm-vcab { position: absolute; left: 12px; right: 12px; top: 22px; display: flex; justify-content: space-between; align-items: center; z-index: 3; color: #fff; }
.cm-vloja { display: flex; align-items: center; gap: 10px; }
.cm-vloja span { display: grid; line-height: 1.2; }
.cm-vloja b { font-size: .95rem; }
.cm-vloja small { opacity: .75; font-size: .74rem; }
.cm-vx { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .3); }
.cm-zona { position: absolute; top: 76px; bottom: 120px; z-index: 2; background: none; }
.cm-zona.ant { left: 0; width: 34%; }
.cm-zona.prox { right: 0; width: 66%; }
.cm-vpe { position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 3; display: grid; gap: 12px; justify-items: start; color: #fff; }
.cm-vpe p { font-size: 1.02rem; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.cm-vbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #fff; color: #0A0A0A; font-weight: 800; font-size: .9rem; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .cm-vf { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; } .cm-fila { gap: 14px; } }

/* ===================== perfil do vendedor ===================== */
.pf-capa { position: relative; overflow: hidden; border-radius: 26px; color: #fff; padding: 30px 28px; background: radial-gradient(80% 130% at 0% 0%, #047857, transparent 60%), radial-gradient(70% 100% at 100% 100%, #0A0A0A, transparent 60%), #0A0A0A; }
.pf-capa::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(120deg, transparent 25%, #000); mask-image: linear-gradient(120deg, transparent 25%, #000); }
.pf-capa > * { position: relative; z-index: 1; }
.pf-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pf-anel { position: relative; width: 108px; height: 108px; border-radius: 50%; padding: 4px; display: grid; place-items: center; background: rgba(255, 255, 255, .25); cursor: default; flex: none; }
.pf-anel.tem { cursor: pointer; background: conic-gradient(#10B981, #A7F3D0, #047857, #10B981); animation: cm-gira 6s linear infinite; }
.pf-anel.tem .cm-av { animation: cm-gira-inv 6s linear infinite; }
.pf-anel::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0A0A0A; }
.pf-anel .cm-av { position: relative; z-index: 1; --t: 96px !important; width: 96px; height: 96px; }
.pf-anel .cm-medalha { right: 0; bottom: 2px; }
.pf-nome h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; }
.pf-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pf-b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 800; }
.pf-b.top { background: #fff; color: #0A0A0A; box-shadow: 0 0 26px -4px rgba(143, 163, 245, .9); }
.pf-bio { color: rgba(255, 255, 255, .8); max-width: 42rem; margin-top: 16px; }
.pf-acoes { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-stat { padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.pf-stat small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; }
.pf-stat b { font-size: 1.5rem; letter-spacing: -.03em; }
.pf-stat.oculto b { font-size: 1rem; color: var(--muted); }
