/* Ajustes do layout principal sem a terceira coluna. */
.public-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: #f7f7f7;
  color: #111114;
  text-align: center;
  transition: opacity .3s ease, visibility .3s ease;
}

.public-loader > span {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(17, 17, 20, .14);
  border-top-color: #111114;
  border-radius: 50%;
  animation: pagination-spin .75s linear infinite;
}

.public-loader strong { font: 800 21px Manrope, sans-serif; }
.public-loader small { color: #73737c; font-size: 14px; }
.public-loader button {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #111114;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

body:not(.public-data-loading) .public-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.public-data-loading > :not(.public-loader) {
  visibility: hidden;
}

.app-shell {
  width: min(1400px, calc(100% - 48px));
  grid-template-columns: 290px minmax(560px, 1fr);
}

/* Escala visual mais confortável e destacada */
.sidebar {
  padding: 36px 28px;
}

.brand {
  font-size: 25px;
}

.brand span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
  overflow: hidden;
  padding: 5px;
  line-height: 0;
}

.brand > span > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.profile-card {
  padding: 40px 0 30px;
}

.avatar-wrap {
  width: 108px;
  height: 108px;
}

.profile-card h1 {
  font-size: 21px;
  margin-top: 18px;
}

.profile-card > p {
  font-size: 15px;
}

.profile-stats b {
  font-size: 19px;
}

.profile-stats span {
  font-size: 12px;
}

.main-nav {
  gap: 9px;
}

.nav-item {
  min-height: 54px;
  padding: 15px 17px;
  border-radius: 16px;
  gap: 15px;
  text-decoration: none;
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.nav-item span {
  font-size: 15px;
}

.nav-item em {
  font-size: 12px;
  padding: 4px 8px;
}

.availability {
  padding: 17px;
}

.availability b {
  font-size: 12px;
}

.availability small {
  font-size: 11px;
}

.content {
  padding: 42px 52px;
}

.eyebrow {
  font-size: 11px;
}

.topbar h2 {
  font-size: 30px;
}

.search {
  width: 240px;
  height: 50px;
  border-radius: 15px;
}

.search svg,
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.search input {
  font-size: 14px;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 15px;
}

.section-heading h3,
.feed-head h3 {
  font-size: 21px;
}

.section-heading button {
  font-size: 13px;
}

.stories {
  gap: 20px;
  margin: 20px 0 38px;
}

.story > span {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  padding: 4px;
}

.story img {
  border-radius: 20px;
}

.story b {
  font-size: 13px;
}

.filters {
  padding: 4px;
  border-radius: 13px;
}

.filters button {
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 13px;
}

.feed {
  gap: 22px;
}

.post {
  padding: 27px;
  border-radius: 25px;
}

.post-author > img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  margin-right: 13px;
}

.post-author b {
  font-size: 15px;
}

.post-author b svg {
  width: 17px;
}

.post-author span {
  font-size: 12px;
}

.post-author > button svg {
  width: 23px;
  height: 23px;
}

.post > p {
  font-size: 15px;
  line-height: 1.7;
  margin: 20px 3px;
}

.project-image {
  height: 390px;
  border-radius: 21px;
}

.project-image > span {
  padding: 9px 13px;
  font-size: 11px;
}

.project-image small {
  font-size: 11px;
}

.project-image b {
  font-size: 28px;
}

.post-meta {
  padding: 17px 3px 13px;
}

.post-meta small,
.reactions small {
  font-size: 12px;
}

.reactions span {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.post-actions {
  padding-top: 13px;
  grid-template-columns: repeat(3, 1fr) 42px;
}

.post-actions button {
  min-height: 44px;
  font-size: 13px;
  border-radius: 11px;
}

.post-actions svg {
  width: 20px;
  height: 20px;
}

.code-preview {
  min-height: 285px;
  border-radius: 21px;
  padding: 40px 54px;
}

.code-copy span {
  font-size: 11px;
}

.code-copy h4 {
  font-size: 34px;
}

.code-copy a {
  font-size: 13px;
}

.orb {
  width: 160px;
  height: 160px;
}

.orb svg {
  width: 34px;
  height: 34px;
}

@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .content {
    padding: 34px;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: 100%;
    display: block;
  }

  .content {
    padding: 26px 20px 96px;
  }

  .topbar h2 {
    font-size: 23px;
  }

  .project-image {
    height: 280px;
  }

  .story > span {
    width: 64px;
    height: 64px;
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }
}

.post-share-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.post-share-footer a {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease;
}

.post-share-footer a:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.post-share-footer svg {
  width: 20px;
  height: 20px;
}

/* Galeria com múltiplas imagens em cada publicação */
.post-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 25px;
  background: #17171b;
}

.admin-created-post .post-gallery {
  width: 100%;
  height: clamp(390px, 56vw, 620px);
  margin: 26px 0;
}

.admin-created-post .post-gallery .gallery-track,
.admin-created-post .post-gallery .gallery-slide,
.admin-created-post .post-gallery .project-image {
  height: 100%;
}

.admin-created-post .post-gallery .gallery-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-created-post .post-gallery.single-image .gallery-slide {
  flex-basis: 100%;
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(.22,.75,.24,1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(15, 15, 18, 0.62);
  color: #fff;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.gallery-arrow:hover {
  background: rgba(15, 15, 18, 0.9);
}

.post-gallery:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.gallery-arrow svg {
  width: 23px;
  height: 23px;
}

.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }

.gallery-footer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: 130px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.68);
  color: #fff;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.gallery-dots button.active {
  width: 20px;
  background: #fff;
}

.gallery-count {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.code-gallery .code-preview,
.code-gallery .project-image {
  height: 350px;
}

@media (max-width: 780px) {
  .admin-created-post .post-gallery {
    height: clamp(320px, 82vw, 500px);
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
    opacity: 1;
    transform: scale(1);
  }

  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }

  .gallery-footer {
    bottom: 12px;
  }

  .code-gallery .code-preview,
  .code-gallery .project-image {
    height: 280px;
  }
}

@media (max-width: 520px) {
  .admin-created-post .post-gallery {
    height: 310px;
  }

  .gallery-arrow {
    top: 46%;
    width: 36px;
    height: 36px;
  }

  .code-gallery .code-preview,
  .code-gallery .project-image {
    height: 235px;
  }
}

/* Hashtags interativas das publicações */
.post > p .hashtag {
  display: inline-flex;
  align-items: center;
  margin: 2px 2px;
  padding: 5px 10px;
  border: 1px solid rgba(17, 17, 20, 0.16);
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.055);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.post > p .hashtag:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 20, 0.42);
}

.post > p .hashtag.active {
  background: #111114;
  border-color: #111114;
  color: #fff;
}

body.dark .post > p .hashtag {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

body.dark .post > p .hashtag.active {
  background: #fff;
  border-color: #fff;
  color: #111114;
}

/* Filtros escaláveis em rolagem horizontal */
.feed-head {
  min-width: 0;
}

.filters {
  max-width: min(62%, 560px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 20, .35) transparent;
}

.filters button {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.filters::-webkit-scrollbar {
  height: 4px;
}

.filters::-webkit-scrollbar-track {
  background: transparent;
}

.filters::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 20, .35);
  border-radius: 999px;
}

.feed-pagination {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.feed-pagination p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.pagination-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(17, 17, 20, .14);
  border-top-color: var(--ink);
  border-radius: 50%;
  opacity: 0;
}

.feed-pagination.loading .pagination-spinner {
  opacity: 1;
  animation: pagination-spin .7s linear infinite;
}

.feed-pagination.finished .pagination-spinner {
  display: none;
}

@keyframes pagination-spin {
  to { transform: rotate(360deg); }
}

/* Conteúdo rico dentro das publicações */
.post-content-block {
  width: 100%;
  margin: 22px 0;
  border: 1px solid rgba(17, 17, 20, .14);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .58);
}

.code-block {
  background: #121216;
  color: #e9e9ee;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.block-toolbar {
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.block-toolbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.block-toolbar b {
  margin-left: 8px;
  color: #aaaab4;
  font: 600 13px 'DM Sans', sans-serif;
}

.block-dot {
  width: 9px;
  height: 9px;
  border: 1px solid #696971;
  border-radius: 50%;
}

.copy-code {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #d5d5db;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.copy-code:hover,
.copy-code.copied {
  background: #fff;
  color: #111114;
}

.copy-code svg {
  width: 16px;
  height: 16px;
}

.code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 25px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #5e5e68 transparent;
}

.code-block code {
  font: 500 14px/1.8 Consolas, 'Courier New', monospace;
  white-space: pre;
  tab-size: 2;
}

.code-keyword { color: #d5a6ff; }
.code-method { color: #7fdcff; }
.code-string { color: #b9e986; }
.code-number { color: #ffbd7a; }

.linked-image-block {
  position: relative;
  margin-block: 22px;
}

.linked-image-block > a {
  position: relative;
  height: 390px;
  display: block;
  overflow: hidden;
  background: #e7e7e9;
}

.linked-image-block img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.linked-image-block a:hover img {
  transform: scale(1.025);
}

.linked-image-block a > span {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 18, .7);
  color: #fff;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.linked-image-block a > span svg {
  width: 19px;
  height: 19px;
}

.post-content-block figcaption {
  min-height: 55px;
  padding: 12px 17px;
  border-top: 1px solid rgba(17, 17, 20, .1);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.post-content-block figcaption svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.video-block video {
  width: 100%;
  max-height: 520px;
  display: block;
  background: #09090b;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

body.dark .post-content-block {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .13);
}

body.dark .post-content-block figcaption {
  border-color: rgba(255, 255, 255, .1);
}

.admin-post-header{margin:24px 0 18px}.admin-post-header h2{margin:0 0 8px;font:800 30px/1.2 Manrope,sans-serif;letter-spacing:-.8px}.admin-post-header p{margin:0;color:var(--muted);font-size:17px}.rich-post-content{font-size:17px;line-height:1.75;overflow-wrap:anywhere}.rich-post-content h2{font:800 28px Manrope}.rich-post-content h3{font:800 22px Manrope}.rich-post-content img,.rich-post-content video{max-width:100%;height:auto}.rich-post-content pre{padding:22px;border-radius:16px;background:#121216;color:#eee;overflow-x:auto;font:14px/1.7 Consolas,monospace}.rich-post-content blockquote{margin-left:0;padding:4px 0 4px 20px;border-left:4px solid var(--ink);color:var(--muted)}.admin-media-block{max-width:100%}.admin-media-block.linked-image-block>a{height:100%;min-height:240px}

@media (max-width: 520px) {
  .post {
    padding: 19px;
  }

  .post > p {
    font-size: 14px;
  }

  .project-image {
    height: 235px;
  }

  .code-preview {
    min-height: 230px;
    padding: 26px;
  }

  .code-copy h4 {
    font-size: 24px;
  }

  .orb {
    width: 96px;
    height: 96px;
  }
}

/* Escala extra grande para telas amplas */
@media (min-width: 781px) {
  .app-shell {
    width: min(1580px, calc(100% - 28px));
    grid-template-columns: 330px minmax(650px, 1fr);
    border-radius: 38px;
  }

  .sidebar {
    padding: 42px 32px;
  }

  .brand {
    font-size: 29px;
  }

  .brand span {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 24px;
  }

  .avatar-wrap {
    width: 126px;
    height: 126px;
  }

  .profile-card h1 {
    font-size: 25px;
  }

  .profile-card > p,
  .nav-item span {
    font-size: 17px;
  }

  .profile-stats b {
    font-size: 23px;
  }

  .profile-stats span {
    font-size: 14px;
  }

  .nav-item {
    min-height: 64px;
    padding: 18px 20px;
  }

  .nav-item svg {
    width: 27px;
    height: 27px;
  }

  .availability {
    padding: 20px;
  }

  .availability b {
    font-size: 14px;
  }

  .availability small {
    font-size: 12px;
  }

  .content {
    padding: 50px 64px;
  }

  .topbar h2 {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .search {
    width: 285px;
    height: 58px;
  }

  .search input {
    font-size: 16px;
  }

  .icon-btn {
    width: 58px;
    height: 58px;
  }

  .section-heading h3,
  .feed-head h3 {
    font-size: 25px;
  }

  .section-heading button {
    font-size: 15px;
  }

  .story > span {
    width: 92px;
    height: 92px;
    border-radius: 28px;
  }

  .story img {
    border-radius: 24px;
  }

  .story b,
  .filters button {
    font-size: 15px;
  }

  .post {
    padding: 34px;
    border-radius: 30px;
  }

  .post-author > img {
    width: 60px;
    height: 60px;
    border-radius: 19px;
  }

  .post-author b {
    font-size: 18px;
  }

  .post-author span {
    font-size: 14px;
  }

  .post > p {
    font-size: 18px;
    margin: 25px 4px;
  }

  .project-image {
    height: 500px;
    border-radius: 25px;
  }

  .project-image b {
    font-size: 34px;
  }

  .project-image small,
  .project-image > span {
    font-size: 13px;
  }

  .post-meta small,
  .reactions small,
  .post-actions button {
    font-size: 15px;
  }

  .post-actions button {
    min-height: 54px;
  }

  .post-actions svg {
    width: 24px;
    height: 24px;
  }

  .code-preview {
    min-height: 350px;
    padding: 50px 68px;
  }

  .code-copy h4 {
    font-size: 42px;
  }

  .code-copy span,
  .code-copy a {
    font-size: 15px;
  }

  .orb {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 781px) and (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .content {
    padding: 38px;
  }

  .project-image {
    height: 390px;
  }
}

/* Tema monocromático com linhas tecnológicas animadas */
body,
body.dark {
  --bg: #f7f7f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(18, 18, 20, 0.05);
  --ink: #111114;
  --muted: #73737c;
  --line: rgba(17, 17, 20, 0.13);
  --accent: #111114;
  --accent-2: #111114;
  --pink: #111114;
  background: #f7f7f7;
}

.tech-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 15, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 15, 18, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.tech-background::before,
.tech-background::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(17, 17, 20, 0.45);
  background: #f7f7f7;
  transform: rotate(45deg);
  animation: tech-node 12s linear infinite;
}

.tech-background::before {
  left: 12%;
  top: 22%;
}

.tech-background::after {
  right: 15%;
  bottom: 18%;
  animation-delay: -6s;
}

.tech-beam {
  position: absolute;
  display: block;
  opacity: 0;
}

.beam-horizontal {
  width: 34vw;
  height: 1px;
  left: -36vw;
  top: 24%;
  background: linear-gradient(90deg, transparent, #17171b 55%, transparent);
  box-shadow: 0 0 9px rgba(17, 17, 20, 0.35);
  animation: scan-horizontal 8s linear infinite;
}

.beam-horizontal.beam-delay {
  top: 72%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.beam-vertical {
  width: 1px;
  height: 36vh;
  top: -38vh;
  left: 23%;
  background: linear-gradient(180deg, transparent, #17171b 55%, transparent);
  box-shadow: 0 0 9px rgba(17, 17, 20, 0.35);
  animation: scan-vertical 10s linear infinite;
}

.beam-vertical.beam-delay {
  left: 81%;
  animation-delay: -5s;
  animation-duration: 13s;
}

.tech-orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(17, 17, 20, 0.09);
  border-radius: 50%;
  animation: orbit-pulse 7s ease-in-out infinite;
}

.orbit-one {
  width: 420px;
  height: 420px;
  left: -210px;
  top: 18%;
}

.orbit-two {
  width: 560px;
  height: 560px;
  right: -280px;
  bottom: -130px;
  animation-delay: -3.5s;
}

.app-shell {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(17, 17, 20, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 25px 70px rgba(17, 17, 20, 0.1);
}

.content,
.rightbar,
.dark .content,
.dark .rightbar {
  background: transparent;
}

.sidebar {
  background: rgba(255, 255, 255, 0.24);
}

.post,
.dark .post {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(17, 17, 20, 0.14);
  box-shadow: 0 12px 32px rgba(17, 17, 20, 0.045);
}

.post::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -45%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #111, transparent);
  animation: card-line 6s linear infinite;
}

.post:nth-child(2)::before {
  animation-delay: -3s;
}

.nav-item.active {
  background: #111114;
}

.availability,
.tags span,
.add-story > span,
.filters,
.dark .availability,
.dark .filters {
  background: rgba(17, 17, 20, 0.055);
}

.story > span {
  background: transparent;
  border: 1px solid rgba(17, 17, 20, 0.4);
}

.story img {
  border-color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease;
}

.story:hover img {
  transform: scale(1.025);
}

.project-image > img {
  filter: none;
}

.orb {
  background: radial-gradient(circle at 32% 28%, #fff, #777 46%, #111 72%);
  box-shadow: 0 0 60px rgba(17, 17, 20, 0.32);
}

@keyframes scan-horizontal {
  0% { transform: translateX(0); opacity: 0; }
  8%, 88% { opacity: 0.7; }
  100% { transform: translateX(140vw); opacity: 0; }
}

@keyframes scan-vertical {
  0% { transform: translateY(0); opacity: 0; }
  8%, 88% { opacity: 0.65; }
  100% { transform: translateY(140vh); opacity: 0; }
}

@keyframes card-line {
  0% { transform: translateX(0); opacity: 0; }
  12%, 80% { opacity: 0.65; }
  100% { transform: translateX(350%); opacity: 0; }
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.2; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes tech-node {
  0% { transform: translate(0, 0) rotate(45deg); }
  25% { transform: translate(42px, 0) rotate(135deg); }
  50% { transform: translate(42px, 42px) rotate(225deg); }
  75% { transform: translate(0, 42px) rotate(315deg); }
  100% { transform: translate(0, 0) rotate(405deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-beam,
  .tech-orbit,
  .tech-background::before,
  .tech-background::after,
  .post::before {
    animation: none;
  }
}

/* Dark mode permanente */
body.dark {
  --bg: #09090b;
  --surface: rgba(17, 17, 20, 0.78);
  --surface-2: rgba(255, 255, 255, 0.07);
  --ink: #f5f5f5;
  --muted: #9999a3;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffffff;
  --accent-2: #ffffff;
  --pink: #ffffff;
  background: #09090b;
}

body.dark .tech-background {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

body.dark .tech-background::before,
body.dark .tech-background::after {
  border-color: rgba(255, 255, 255, 0.5);
  background: #09090b;
}

body.dark .tech-beam {
  filter: invert(1);
}

body.dark .tech-orbit {
  border-color: rgba(255, 255, 255, 0.11);
}

body.dark .app-shell {
  background: rgba(15, 15, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

body.dark .sidebar {
  background: rgba(255, 255, 255, 0.015);
}

body.dark .post {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

body.dark .post::before {
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

body.dark .search,
body.dark .icon-btn,
body.dark .filters button.active {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .story > span {
  border-color: rgba(255, 255, 255, 0.4);
}

body.dark .story img {
  border-color: #17171a;
}

/* Destaque de disponibilidade */
.availability,
.dark .availability {
  position: relative;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid rgba(17, 17, 20, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(17, 17, 20, 0.08);
  overflow: hidden;
  margin: 0 0 22px;
}

.availability::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 1px;
  right: -20px;
  top: 15px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 20, 0.5));
  transform: rotate(-35deg);
}

.availability > span {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: #111114;
  box-shadow: 0 0 0 6px rgba(17, 17, 20, 0.1);
  animation: availability-pulse 2.2s ease-in-out infinite;
}

.availability b,
body.dark .availability b {
  font: 800 17px/1.25 Manrope, sans-serif;
  letter-spacing: -0.25px;
  color: var(--ink);
}

.availability small,
body.dark .availability small {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

body.dark .availability {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

body.dark .availability > span {
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
}

@keyframes availability-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1); opacity: 1; }
}

/* Coluna lateral e rolagem da página */
html {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 20, 0.55) rgba(17, 17, 20, 0.06);
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(17, 17, 20, 0.06);
}

body::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 20, 0.5);
  border: 3px solid #f7f7f7;
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 17, 20, 0.72);
}

.app-shell {
  align-items: stretch;
  overflow: hidden;
}

.sidebar {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100%;
  align-self: stretch;
  border-right: 1px solid var(--line);
}

body.dark::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

body.dark::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  border-color: #09090b;
}

@media (max-width: 780px) {
  .sidebar {
    position: fixed;
    top: auto;
    height: 70px;
    min-height: 0;
    border-right: 0;
  }
}

/* Leitura confortável e preservação das imagens inseridas pelo editor. */
.rich-post-content {
  font-size: 19px;
  line-height: 1.8;
}

.rich-post-content .editor-inline-image {
  margin: 30px auto;
  max-width: 100%;
  text-align: center;
}

.rich-post-content .editor-inline-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
}

.rich-post-content .editor-inline-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.rich-post-content .editor-table-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
}

.rich-post-content .editor-content-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.rich-post-content .editor-content-table th,
.rich-post-content .editor-content-table td {
  min-width: 130px;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rich-post-content .editor-content-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 750;
}

.rich-post-content .table-theme-accent th { background: #5b4bff; }
.rich-post-content .table-theme-dark { background: #17171c; color: #f7f7f8; }
.rich-post-content .table-theme-dark th { background: #08080a; }
.rich-post-content .table-theme-dark th,
.rich-post-content .table-theme-dark td { border-color: rgba(255, 255, 255, 0.16); }
.rich-post-content .table-theme-striped tbody tr:nth-child(even) { background: rgba(17, 17, 20, 0.055); }
.rich-post-content .table-theme-minimal th {
  background: transparent;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.rich-post-content .table-theme-minimal th,
.rich-post-content .table-theme-minimal td { border-right: 0; }

.rich-post-content .editor-content-table tbody tr:nth-child(even) {
  background: rgba(17, 17, 20, 0.035);
}

.rich-post-content .editor-content-table tr:last-child td {
  border-bottom: 0;
}

.rich-post-content .editor-content-table th:last-child,
.rich-post-content .editor-content-table td:last-child {
  border-right: 0;
}

@media (max-width: 780px) {
  .rich-post-content {
    font-size: 17px;
  }
}
