/* TradeOS — Comunidade */
#app .dash-main > .tc { display: block; height: 100%; overflow: auto; }
.tc { color: var(--bone); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.tc svg { width: 16px; height: 16px; flex: none; }
.tc button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tc-wrap { max-width: 1240px; margin: 0 auto; padding: var(--dvx-top, 28px) var(--dvx-gutter, 32px) 48px; }
.tc-kicker { margin: 0 0 12px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .14em; color: var(--label); }
.tc-kicker b { color: var(--acid); font-weight: 600; }
.tc-top h1 { margin: 0; font: 600 34px/1.06 var(--font-display); letter-spacing: -.035em; color: var(--bone); }
.tc-top h1 span, .tc-gate h2 span { color: var(--acid); }
.tc-sub { margin: 10px 0 0; font-size: 14px; color: var(--steel); }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; margin-top: 22px; align-items: start; }
.tc-card { border: 1px solid var(--hairline); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012)), var(--canvas); }
.tc-feed { display: grid; gap: 14px; min-width: 0; }
.tc-side { display: grid; gap: 14px; position: sticky; top: 16px; }
.tc-wait { padding: 24px 0; color: var(--steel); font-size: 13px; }
.tc-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(242, 54, 69, .1); color: #ff8a93; font-size: 12.5px; line-height: 1.45; }
.tc-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--label); }
.tc-label { margin: 0 0 12px; font: 600 11px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.tc-primary { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--acid) !important; color: var(--on-acid, #0b0c0d) !important; font: 600 13.5px/1 var(--font-sans) !important; }
.tc-primary.sm { height: 32px; padding: 0 14px; font-size: 12.5px !important; }
.tc-primary:disabled { opacity: .55; cursor: default; }
.tc-ghost { height: 34px; padding: 0 14px !important; border: 1px solid var(--line2) !important; border-radius: 999px; font: 600 12.5px/1 var(--font-sans) !important; color: var(--steel) !important; }
.tc-ghost:hover { color: var(--bone) !important; }
.tc-link { font: 600 12.5px/1 var(--font-sans) !important; color: var(--label) !important; justify-self: start; }
.tc-link:hover { color: var(--bone) !important; }
.tc-more { justify-self: center; }

/* login e porta */
.tc-gate { max-width: 440px; margin: 6vh auto 0; display: grid; justify-items: center; gap: 4px; text-align: center; animation: tc-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.tc-gate h2 { margin: 0; font: 600 28px/1.1 var(--font-display); letter-spacing: -.03em; }
.tc-gate > p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.tc-badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 18px; background: rgba(216, 255, 62, .1); color: var(--acid); }
.tc-badge svg { width: 26px; height: 26px; }
.tc-form { display: grid; gap: 12px; width: 100%; margin: 18px 0 12px; text-align: left; }
.tc-form label { display: grid; gap: 6px; font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.tc-form input { height: 42px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--field, rgba(255, 255, 255, .04)); color: var(--bone); font: 500 14px/1 var(--font-sans); letter-spacing: 0; text-transform: none; }
.tc-form input:focus { outline: none; border-color: rgba(216, 255, 62, .55); }
.tc-form .tc-primary { margin-top: 4px; }
@keyframes tc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* compositor */
.tc-composer { padding: 16px; }
.tc-row { display: flex; gap: 12px; align-items: flex-start; }
.tc-av { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 82%); font: 700 13px/1 var(--font-sans); }
.tc-av.sm { width: 28px; height: 28px; font-size: 10.5px; }
.tc-av.lg { width: 48px; height: 48px; font-size: 16px; }
.tc-composer textarea { flex: 1; min-height: 44px; padding: 10px 0; resize: vertical; border: 0; background: transparent; color: var(--bone); font: 500 14.5px/1.5 var(--font-sans); }
.tc-composer textarea:focus { outline: none; }
.tc-composer textarea::placeholder { color: var(--label); }
.tc-attach { position: relative; margin: 8px 0 0 50px; width: max-content; max-width: calc(100% - 50px); }
.tc-attach img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--hairline); }
.tc-attach button { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .65) !important; color: #fff !important; }
.tc-tools { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 50px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.tc-tool { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; font: 600 12.5px/1 var(--font-sans); color: var(--steel); cursor: pointer; }
.tc-tool:hover { background: rgba(255, 255, 255, .04); color: var(--bone); }
.tc-tools select { height: 30px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 8px; background: var(--field, rgba(255, 255, 255, .04)); color: var(--bone); font: 600 12.5px/1 var(--font-sans); }
.tc-lvl { margin-left: auto; font: 600 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.tc-composer .tc-err { margin: 10px 0 0 50px; }

/* categorias */
.tc-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-cats button { height: 30px; padding: 0 13px; border: 1px solid var(--line2); border-radius: 999px; font: 600 12.5px/1 var(--font-sans); color: var(--steel); transition: background-color .2s, color .2s, border-color .2s; }
.tc-cats button:hover { color: var(--bone); }
.tc-cats button[aria-selected="true"] { border-color: rgba(216, 255, 62, .5); background: rgba(216, 255, 62, .08); color: var(--acid); }
.tc-newbar button { width: 100%; height: 36px; border-radius: 10px; background: rgba(216, 255, 62, .1) !important; color: var(--acid) !important; font: 600 12.5px/1 var(--font-sans) !important; animation: tc-in .5s both; }

/* publicação */
.tc-list { display: grid; gap: 14px; }
.tc-post { padding: 16px 18px 12px; animation: tc-in .55s cubic-bezier(.16, 1, .3, 1) both; }
.tc-post.pinned { border-color: rgba(216, 255, 62, .28); }
.tc-pinned { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--acid); }
.tc-pinned svg { width: 13px; height: 13px; }
.tc-post header { position: relative; display: flex; align-items: center; gap: 11px; }
.tc-who { flex: 1; min-width: 0; }
.tc-who b { font: 600 14px/1.2 var(--font-sans); color: var(--bone); }
.tc-who small { display: block; margin-top: 3px; font-size: 12px; color: var(--label); }
.tc-lv { color: var(--steel); }
.tc-mod { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(216, 255, 62, .12); color: var(--acid); font: 700 9.5px/1 var(--font-sans); font-style: normal; letter-spacing: .1em; vertical-align: 2px; }
.tc-cat { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); font: 600 11px/1 var(--font-sans); color: var(--steel); white-space: nowrap; }
.tc-cat.avisos { background: rgba(216, 255, 62, .1); color: var(--acid); }
.tc-cat.resultados { background: rgba(47, 182, 124, .12); color: var(--gain); }
.tc-cat.analises { background: rgba(110, 168, 255, .12); color: #8fb8ff; }
.tc-cat.duvidas { background: rgba(255, 184, 77, .12); color: #f0b45a; }
.tc-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--label) !important; }
.tc-icon:hover { background: rgba(255, 255, 255, .05) !important; color: var(--bone) !important; }
.tc-icon.sm { width: 24px; height: 24px; }
.tc-menu { position: absolute; top: 36px; right: 0; z-index: 5; display: grid; min-width: 160px; padding: 6px; border: 1px solid var(--line2); border-radius: 12px; background: #15171a; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.tc-menu button { height: 34px; padding: 0 10px !important; border-radius: 8px; text-align: left; font: 500 13px/1 var(--font-sans) !important; color: var(--bone) !important; }
.tc-menu button:hover { background: rgba(255, 255, 255, .06) !important; }
.tc-body { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--bone); overflow-wrap: anywhere; }
.tc-img { display: block; width: 100%; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline) !important; background: #000 !important; }
.tc-img img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.tc-img-miss { padding: 24px; text-align: center; font-size: 12.5px; color: var(--label); background: rgba(255, 255, 255, .02) !important; }
.tc-post footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.tc-reacts { display: flex; gap: 4px; flex-wrap: wrap; }
.tc-reacts button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px !important; border-radius: 999px; border: 1px solid transparent !important; font: 600 12px/1 var(--font-sans) !important; color: var(--steel) !important; transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .2s; }
.tc-reacts button span { font-size: 15px; filter: grayscale(.6); transition: filter .2s; }
.tc-reacts button:hover { background: rgba(255, 255, 255, .05) !important; }
.tc-reacts button:hover span, .tc-reacts button.on span { filter: none; }
.tc-reacts button.on { border-color: rgba(216, 255, 62, .35) !important; background: rgba(216, 255, 62, .08) !important; color: var(--acid) !important; }
.tc-reacts button:active { transform: scale(.92); }
.tc-cm { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 30px; padding: 0 10px !important; border-radius: 8px; font: 600 12.5px/1 var(--font-sans) !important; color: var(--steel) !important; }
.tc-cm:hover { background: rgba(255, 255, 255, .05) !important; color: var(--bone) !important; }
.tc-thread { display: grid; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.tc-c { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.tc-c p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--bone); overflow-wrap: anywhere; }
.tc-c p small { font-size: 11.5px; color: var(--label); }
.tc-reply { display: flex; gap: 8px; }
.tc-reply input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--field, rgba(255, 255, 255, .04)); color: var(--bone); font: 500 13px/1 var(--font-sans); }
.tc-reply input:focus { outline: none; border-color: rgba(216, 255, 62, .5); }
.tc-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line2); border-radius: 16px; }
.tc-empty b { font: 600 16px/1.3 var(--font-sans); }
.tc-empty p { margin: 6px 0 0; font-size: 13px; color: var(--steel); }

/* lateral */
.tc-me, .tc-rank, .tc-rules { padding: 16px 18px; }
.tc-me .tc-row b { display: block; margin-top: 4px; font: 600 15px/1.2 var(--font-sans); }
.tc-me .tc-row small { display: block; margin-top: 3px; font-size: 12px; color: var(--label); }
.tc-level { margin-top: 16px; }
.tc-level p { display: flex; justify-content: space-between; margin: 0; font-size: 12px; color: var(--label); }
.tc-level p b { font: 600 14px/1 var(--font-sans); color: var(--acid); }
.tc-level i { display: block; position: relative; height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tc-level i u { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--acid); text-decoration: none; transition: width .9s cubic-bezier(.16, 1, .3, 1); }
.tc-level small { display: block; margin-top: 7px; font-size: 11.5px; color: var(--label); }
.tc-mount { display: flex; justify-content: space-between; margin: 14px 0 0; padding: 0; list-style: none; }
.tc-mount li { display: grid; justify-items: center; gap: 5px; font: 600 9.5px/1 var(--font-sans); letter-spacing: .04em; color: var(--label); }
.tc-mount li i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 11px solid rgba(255, 255, 255, .12); }
.tc-mount li.on { color: var(--bone); }
.tc-mount li.on i { border-bottom-color: var(--acid); }
.tc-leaders { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-leaders li { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.tc-leaders .pos { font: 700 12px/1 var(--font-sans); color: var(--label); text-align: center; }
.tc-leaders li:first-child .pos { color: var(--acid); }
.tc-leaders b { display: block; font: 600 13px/1.2 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-leaders small { display: block; margin-top: 2px; font-size: 11px; color: var(--label); }
.tc-leaders li.me b { color: var(--acid); }
.tc-switch { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); cursor: pointer; font: 600 12.5px/1.3 var(--font-sans); }
.tc-switch small { display: block; margin-top: 4px; font-weight: 500; font-size: 11px; line-height: 1.4; color: var(--label); }
.tc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tc-switch i { position: relative; flex: none; width: 32px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background-color .25s; }
.tc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #c9cdd1; transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .25s; }
.tc-switch input:checked + i { background: rgba(216, 255, 62, .28); }
.tc-switch input:checked + i::after { transform: translateX(14px); background: var(--acid); }
.tc-switch input:focus-visible + i { outline: 2px solid var(--acid); outline-offset: 2px; }
.tc-rules ol { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; color: var(--steel); }

/* janelas */
.tc-sheet { width: min(460px, 100%); }
.tc-sheet h2 { font-size: 22px; }
.tc-sheet-p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #a3a9ae; }
.tc-sheet-t { width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); color: #f2f0e9; font: 500 13.5px/1.5 var(--font-sans); resize: vertical; }
.tc-lightbox { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, .88); opacity: 0; transition: opacity .3s; cursor: zoom-out; }
.tc-lightbox.in { opacity: 1; }
.tc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; transform: scale(.96); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.tc-lightbox.in img { transform: none; }
.tc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9300; padding: 11px 16px; border-radius: 999px; background: #f2f0e9; color: #0b0c0d; font: 600 13px/1 var(--font-sans); opacity: 0; transform: translate(-50%, 10px); transition: opacity .3s, transform .45s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.tc-toast.in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) { .tc-grid { grid-template-columns: 1fr; } .tc-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .tc-side { grid-template-columns: 1fr; } .tc-tools { flex-wrap: wrap; margin-left: 0; } .tc-attach { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .tc-post, .tc-gate { animation: none; } }

/* tema claro */
html[data-theme="light"] .tc-kicker b, html[data-theme="light"] .tc-top h1 span, html[data-theme="light"] .tc-gate h2 span,
html[data-theme="light"] .tc-cats button[aria-selected="true"], html[data-theme="light"] .tc-pinned, html[data-theme="light"] .tc-level p b,
html[data-theme="light"] .tc-reacts button.on, html[data-theme="light"] .tc-mod, html[data-theme="light"] .tc-cat.avisos { color: #5E7A00 !important; }
html[data-theme="light"] .tc-menu { background: #fff; }
html[data-theme="light"] .tc-level i, html[data-theme="light"] .tc-switch i { background: rgba(20, 24, 30, .08); }
html[data-theme="light"] .tc-av { background: hsl(var(--h) 60% 90%); color: hsl(var(--h) 50% 30%); }
.tc-menu[hidden], .tc-newbar[hidden], .tc-err[hidden] { display: none !important; }
.tc-still .tc-post, .tc-still .tc-gate { animation: none; }
