/* Base */
:root {
  --bg: #0b0b0e;
  --text: #e9e9ee;
  --muted: #a4a4b8;
  --card: #141419;
  --border: #1f1f2a;
  --neon: #7c4dff;
  /* roxo */
  --neon2: #00e5ff;
  /* azul */
  --neon3: #00ff88;
  /* verde */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 2px 6px rgba(255, 255, 255, .02);
}

/* Snackbar */
.snackbar-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  width: min(360px, 92vw);
  pointer-events: none;
}

.snackbar {
  background: linear-gradient(135deg, #12121a, #0f0f14);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.snackbar--show {
  opacity: 1;
  transform: translateY(0);
}

.snackbar--hide {
  opacity: 0;
  transform: translateY(10px);
}

.snackbar__msg {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.snackbar__close {
  border: none;
  background: rgba(164, 164, 184, 0.2);
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.snackbar__close:hover {
  background: rgba(164, 164, 184, 0.35);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 12, 0.68);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10050;
}

.confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-dialog {
  width: min(92vw, 460px);
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  color: #f5f7ff;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.confirm-modal.is-open .confirm-dialog {
  transform: translateY(0);
}

.confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
}

.confirm-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.confirm-close {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.confirm-body {
  padding: 4px 20px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
}

.btn-confirm {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm.cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.btn-confirm.confirm {
  background: linear-gradient(135deg, #ff6b6b, #ff8c42);
  color: #0d0f16;
}

.confirm-modal[data-variant="warning"] .btn-confirm.confirm {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
}

.confirm-modal[data-variant="success"] .btn-confirm.confirm {
  background: linear-gradient(135deg, #6ddc6d, #41b37f);
}

.snackbar--success {
  border-left-color: var(--neon3);
}

.snackbar--warning {
  border-left-color: #f2b84b;
}

.snackbar--error {
  border-left-color: #ff6b6b;
}

.snackbar--info {
  border-left-color: var(--neon2);
}

@media (max-width: 768px) {
  .snackbar-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

/* Estilo para figuras e legendas */
.markdown-body figure,
.article-content figure {
  position: relative;
  overflow: hidden;
  margin: 2.5rem auto !important;
  text-align: center !important;
  max-width: 100% !important;
  background: linear-gradient(135deg, #12121a, #0f0f14);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.markdown-body figure img,
.article-content figure img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 0;
}

.markdown-body figcaption,
.article-content figcaption {
  position: static;
  color: rgba(232, 232, 246, 0.72) !important;
  font-size: 0.8rem !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  padding: 10px 14px 12px !important;
  margin: 0 !important;
  text-align: center !important;
  max-width: 100%;
  background: rgba(12, 12, 18, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: none;
  text-shadow: none;
}

/* Animação suave ao carregar imagens */
.markdown-body img,
.article-content img {
  transition: all 0.3s ease !important;
}

.markdown-body img:hover,
.article-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.markdown-body video,
.article-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 18px 0;
  background: #000;
}

.markdown-body .plyr,
.article-content .plyr {
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.markdown-body .plyr__video-wrapper,
.article-content .plyr__video-wrapper {
  background: #000;
}

.markdown-body .plyr--full-ui input[type=range],
.article-content .plyr--full-ui input[type=range] {
  color: var(--neon2);
}

.markdown-body .plyr--video .plyr__control--overlaid,
.article-content .plyr--video .plyr__control--overlaid {
  background: rgba(124, 77, 255, 0.9);
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.45);
}

.markdown-body .plyr--video .plyr__controls,
.article-content .plyr--video .plyr__controls {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.1) 0%, rgba(7, 7, 10, 0.88) 55%, rgba(7, 7, 10, 0.95) 100%);
}

.markdown-body .plyr__menu__container,
.article-content .plyr__menu__container {
  background: #12121a;
  border: 1px solid var(--border);
}

.markdown-body .plyr__control:hover,
.article-content .plyr__control:hover {
  background: rgba(124, 77, 255, 0.2);
}

/* Bootstrap Customizations */
.navbar {
  background: linear-gradient(180deg, rgba(11, 11, 14, .9), rgba(11, 11, 14, .6)) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  color: var(--text) !important;
}

.navbar-nav .nav-link {
  color: var(--text) !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--neon2) !important;
}

/* Botão do X/Twitter no header */
.twitter-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.twitter-link:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.navbar-toggler {
  border-color: var(--border);
  color: var(--text);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.25);
}

.dropdown-menu {
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dropdown-item {
  color: var(--text);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--border);
  color: var(--neon2);
}

.btn-neon {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  border: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
  color: white;
}

.btn-neon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-header {
  background-color: var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table-dark {
  background-color: var(--card);
  color: var(--text);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(124, 77, 255, 0.05);
}

.form-control, .form-select {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  background-color: var(--card);
  border-color: var(--neon2);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.25);
}

.form-control::placeholder {
  color: var(--muted);
}

.badge {
  font-size: 0.75em;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 11, 14, .9), rgba(11, 11, 14, .6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}

.logo {
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.logo img {
  height: 72px;
  width: 72px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, .25));

}

.logo span b {
  color: var(--neon2);
  text-shadow: 0 0 8px var(--neon2);
  font-weight: 800;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  margin: 0 8px;
  opacity: .9;
}

.menu a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.user-toggle:hover {
  background: #121423;
  border-color: var(--neon2);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
  color: var(--text) !important;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #333;
  position: relative;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  border-radius: 50%;
}

.user-name {
  font-weight: 500;
  font-size: 14px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #12121a;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.user-menu-item:last-child {
  border-bottom: none;
}

.user-menu-item:hover {
  background: #1a1a25;
  color: #fff;
}

.user-menu-item.logout:hover {
  background: #2a1014;
  color: #ffb3c1;
}

.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: #111421;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.search input {
  background: #0f0f14;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
}

.top-banner {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.top-banner .banner-inner {
  padding: 28px 20px;
  text-align: center;
}

.top-banner h1 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 28px;
}

.top-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Glitch */
.glitch {
  position: relative;
  color: #fff;
}

.glitch::before,
.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .3;
}

.glitch::before {
  color: var(--neon2);
  filter: blur(1px);
  animation: g1 3s infinite linear;
}

.glitch::after {
  color: var(--neon);
  filter: blur(1px);
  animation: g2 2.7s infinite linear;
}

@keyframes g1 {
  0% {
    clip-path: inset(0 0 70% 0);
  }

  50% {
    clip-path: inset(30% 0 20% 0);
  }

  100% {
    clip-path: inset(60% 0 0 0);
  }
}

@keyframes g2 {
  0% {
    clip-path: inset(0 0 60% 0);
  }

  50% {
    clip-path: inset(40% 0 10% 0);
  }

  100% {
    clip-path: inset(80% 0 0 0);
  }
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}

main.container {
  flex: 1 0 auto;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.content-with-sidebar.gap-wide {
  gap: 40px;
}

.content-with-sidebar.wide {
  grid-template-columns: 2fr 260px;
}

.content-with-sidebar.single {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0b0b0e;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    z-index: 60;
  }

  .navbar-collapse.is-open,
  .navbar-collapse.show {
    display: block;
  }

  .menu {
    position: static;
    background: transparent;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0 0 12px;
  }

  .menu a, .menu .btn-neon {
    margin: 6px 0;
  }

  .mobile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* User dropdown mobile */
  .user-dropdown {
    width: 100%;
    margin: 6px 0;
  }
  
  .user-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
  }
  
  .user-name {
    flex: 1;
    text-align: left;
  }
  
  .user-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }
  
  .user-menu.open {
    display: block;
  }
  
  .user-menu-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
  }
  
  .user-menu-item:last-child {
    border-bottom: none;
  }
  
  .search {
    display: none;
  }
  .logo img {
    height: 60px;
    width: 60px;
  }
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Home headline carousel */
.headline-carousel {
  margin: 12px 0 22px;
}

.carousel-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 20%, #171722, #0a0a0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.carousel-shell.is-single .carousel-btn,
.carousel-shell.is-single .carousel-dots,
.carousel-shell.is-single .carousel-progress {
  display: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 9, 15, 0.75) 0%, rgba(9, 9, 15, 0.2) 60%, rgba(9, 9, 15, 0.85) 100%);
  pointer-events: none;
}

.carousel-media {
  min-height: clamp(320px, 46vw, 540px);
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.carousel-overlay {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 5vw, 46px);
  z-index: 2;
  max-width: min(70%, 720px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carousel-kicker {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.7);
  color: var(--neon2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 600;
}

.carousel-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.7rem);
  line-height: 1.1;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  color: var(--text);
}

.carousel-subtitle {
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  color: var(--muted);
}

.headline-bg,
.subtitle-bg {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(6, 6, 10, 0.72);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.subtitle-bg {
  padding: 6px 12px;
  background: rgba(6, 6, 10, 0.64);
}

.carousel-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 229, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(10, 10, 15, 0.6);
  color: #f7f2ea;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(10, 10, 15, 0.85);
  transform: translateY(-50%) scale(1.04);
}

.carousel-btn.prev {
  left: 18px;
}

.carousel-btn.next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--neon2);
  transform: scale(1.1);
}

.carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
  overflow: hidden;
}

.carousel-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-progress.is-animating .carousel-progress-bar {
  animation: carousel-progress 10s linear forwards;
}

@keyframes carousel-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .carousel-overlay {
    max-width: 85%;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 600px) {
  .carousel-overlay {
    max-width: 100%;
    left: 16px;
    right: 16px;
  }

  .carousel-dots {
    right: 16px;
    bottom: 12px;
  }

  .carousel-meta {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .headline-bg {
    padding: 6px 10px;
  }

  .subtitle-bg {
    padding: 5px 9px;
  }

  .carousel-btn {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }

  .carousel-btn {
    transition: none;
  }

  .carousel-progress.is-animating .carousel-progress-bar {
    animation: none;
    transform: scaleX(1);
  }
}

/* Home news grid */
.news-section {
  margin-top: 0;
}

.news-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-kicker {
  display: block;
  color: var(--neon2);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.section-link {
  color: var(--neon2);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--neon);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.7);
}

.news-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.news-grid .card .thumb {
  padding-top: 56.25%;
}

.news-grid .card {
  border-radius: 12px;
}

.news-grid .card .card-body {
  padding: 16px;
}

.news-grid .card h2 {
  font-size: 16px;
  line-height: 1.25;
  color: #c7f3ff;
}

.news-grid .card .subtitle {
  font-size: 13px;
}

.news-grid .card .meta {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

@media (max-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 10px;
}

@media (min-width: 901px) {
  .news-section {
    margin-right: calc(-320px - 18px);
  }
}

.card {
  background: radial-gradient(120% 120% at 10% 10%, #121218, #0d0d12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ad-card {
  background: radial-gradient(120% 120% at 10% 10%, #121218, #0d0d12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.ad-card .ad-content {
  padding: 12px 0;
  text-align: center;
  width: 100%;
}

.card .thumb {
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.card .card-body {
  padding: 14px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #87ceeb;
}

.card .subtitle {
  margin: 0 0 12px;
  color: var(--muted);
}

.card .meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  gap: 10px;
  align-items: flex-start;
}

.card .meta .meta-date {
  white-space: nowrap;
}

.category-stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 70%;
}

.category-pill {
  background: #101018;
  border-color: rgba(255, 255, 255, 0.08);
}

.category-pill.is-muted {
  background: rgba(124, 77, 255, 0.12);
  border-color: rgba(124, 77, 255, 0.35);
  color: #d8d2ff;
}

.category-more-trigger {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(0, 229, 255, 0.18));
  border-color: rgba(124, 77, 255, 0.5);
  color: #e6e3ff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.category-more-trigger:hover,
.category-stack.open .category-more-trigger {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 77, 255, 0.25);
}

.category-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #0f0f16;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.category-stack:hover .category-tooltip,
.category-stack.open .category-tooltip {
  display: flex;
}

.hover-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--neon), 0 0 18px rgba(124, 77, 255, .35), var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #101018;
  color: var(--text);
  font-weight: 500;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: white !important;
  border-color: #6c757d;
}

.badge.bg-success {
  background-color: #28a745 !important;
  color: white !important;
  border-color: #28a745;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107;
}

.badge.bg-primary {
  background-color: var(--neon) !important;
  color: white !important;
  border-color: var(--neon);
}
.badge .link.danger {
  border: 0;
  background: transparent;
  color: #ff9bb3;
  cursor: pointer;
}

/* Sidebar */
.sidebar .sidebar-card {
  background: #11111a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.sidebar .sidebar-card h3 {
  margin: 8px 0 12px;
  font-family: Orbitron, sans-serif;
  font-size: 16px;
}

.sidebar .tags .tag {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}

.sidebar .tags .tag:hover {
  border-color: var(--neon2);
  box-shadow: 0 0 12px rgba(0, 229, 255, .25);
}

/* Article */
.article .title {
  font-family: Orbitron, sans-serif;
  font-size: 32px;
  margin: 8px 0;
}

.article .subtitle {
  color: var(--muted);
  margin: 0 0 8px;
}

.article .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-share {
  display: inline-flex;
  align-items: center;
}

.share-btn--text {
  padding: 2px 6px;
  border-radius: 999px;
  border-width: 1px;
  font-size: 0.95em;
  line-height: 1;
}

.share-btn--text .share-icon {
  font-size: 0.95em;
}

.article .hero {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: clamp(220px, 45vh, 520px);
}

/* Markdown */
.markdown-body {
  line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-family: Orbitron, sans-serif;
}

.markdown-body blockquote {
  border-left: 4px solid var(--neon2);
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #12121a, #0f0f14);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-style: italic;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.markdown-body blockquote::before {
  content: '"';
  font-size: 2em;
  color: var(--neon2);
  position: absolute;
  top: -10px;
  left: 16px;
  opacity: 0.3;
  font-family: serif;
}

.markdown-body blockquote p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.6;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.markdown-body a {
  color: #00d4ff;
  text-decoration: none;
}

.markdown-body a:visited {
  color: #00d4ff;
}

.markdown-body a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00d4ff;
}

/* Dashboard */
.dashboard .dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Melhorar contraste do dashboard */
.dashboard {
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard h1,
.dashboard h2,
.dashboard h3,
.dashboard h4,
.dashboard h5,
.dashboard h6 {
  color: var(--text);
}

.dashboard .h2 {
  color: var(--text);
  font-weight: 600;
}

/* Contraste para cards do dashboard */
.dashboard .card {
  background: linear-gradient(180deg, rgba(20, 22, 34, 0.98), rgba(14, 16, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.dashboard .card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.dashboard .card-body {
  color: var(--text);
}

/* Contraste para formulários */
.dashboard .form-label {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dashboard .form-text {
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(14, 16, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table tbody tr {
  background-color: rgba(14, 16, 24, 0.95) !important;
  color: var(--text) !important;
  transition: background-color 0.2s ease;
}

.table tbody tr:nth-child(even) {
  background-color: rgba(20, 22, 34, 0.9) !important;
  color: var(--text) !important;
}

.table tbody tr:nth-child(odd) {
  background-color: rgba(14, 16, 24, 0.95) !important;
  color: var(--text) !important;
}

.table tbody tr:hover {
  background-color: rgba(124, 77, 255, 0.12) !important;
  color: var(--text) !important;
}

.table td {
  background-color: inherit !important;
  color: var(--text) !important;
}

.table td strong {
  color: var(--text) !important;
  font-weight: 600;
}

.table td small {
  color: var(--muted) !important;
  font-size: 0.875em;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  background-color: rgba(14, 16, 24, 0.95) !important;
  color: var(--text) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > tbody > tr:nth-of-type(even) > th {
  background-color: rgba(20, 22, 34, 0.9) !important;
  color: var(--text) !important;
}

/* Força todas as linhas da tabela a terem fundo escuro */
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > thead > tr > td,
.table > thead > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
  background-color: inherit !important;
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Específico para tabelas do dashboard */
.dashboard .table > tbody > tr > td,
.dashboard .table > tbody > tr > th {
  background-color: inherit !important;
  color: var(--text) !important;
}

.dashboard .table-striped > tbody > tr:nth-of-type(odd) > td,
.dashboard .table-striped > tbody > tr:nth-of-type(odd) > th {
  background-color: rgba(14, 16, 24, 0.95) !important;
  color: var(--text) !important;
}

.dashboard .table-striped > tbody > tr:nth-of-type(even) > td,
.dashboard .table-striped > tbody > tr:nth-of-type(even) > th {
  background-color: rgba(20, 22, 34, 0.9) !important;
  color: var(--text) !important;
}

/* Força contraste em todos os elementos da tabela */
.dashboard .table * {
  color: inherit !important;
}

.dashboard .table td * {
  color: var(--text) !important;
}

.dashboard .table td small,
.dashboard .table td .text-muted {
  color: var(--muted) !important;
}

.dashboard .table .badge {
  background-color: rgba(24, 27, 38, 0.9) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
}

.dashboard .table .badge.bg-secondary {
  background-color: #6c757d !important;
  color: white !important;
  border-color: #6c757d !important;
}

.dashboard .table .badge.bg-success {
  background-color: #28a745 !important;
  color: white !important;
  border-color: #28a745 !important;
}

.dashboard .table .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
  border-color: #ffc107 !important;
}

.dashboard .table .badge.bg-primary {
  background-color: rgba(0, 229, 255, 0.9) !important;
  color: white !important;
  border-color: rgba(0, 229, 255, 0.9) !important;
}

/* Força contraste em botões dentro das tabelas */
.dashboard .table .btn {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  padding: 6px 10px;
}

.dashboard .table .btn-outline-primary {
  color: #5ad4ff !important;
  border-color: rgba(0, 229, 255, 0.6) !important;
}

.dashboard .table .btn-outline-primary:hover {
  background-color: rgba(0, 229, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(0, 229, 255, 0.9) !important;
}

.dashboard .table .btn-outline-danger {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.6) !important;
}

.dashboard .table .btn-outline-danger:hover {
  background-color: rgba(255, 107, 107, 0.2) !important;
  color: white !important;
  border-color: rgba(255, 107, 107, 0.9) !important;
}

.dashboard .table .btn-outline-secondary {
  color: #b2b8c9 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.dashboard .table .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.dashboard .table .fas,
.dashboard .table .fa {
  color: inherit !important;
}

.table .link {
  color: #00d4ff;
  text-decoration: none;
  margin-right: 8px;
}

.table .link:visited {
  color: #00d4ff;
}

.table .link.danger {
  color: #ff6b6b;
}

.table td strong {
  color: var(--text);
  font-weight: 600;
}

.table td small {
  color: var(--muted);
  font-size: 0.875em;
}

.table td .text-muted {
  color: var(--muted) !important;
}

.card .subtitle,
.article .subtitle {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.4;
}

.btn-group .btn {
  color: var(--text);
  border-color: var(--border);
}

.btn-group .btn:hover {
  color: white;
}

.dashboard .btn-outline-primary {
  color: #5ad4ff;
  border-color: rgba(0, 229, 255, 0.6);
}

.dashboard .btn-outline-primary:hover {
  background-color: rgba(0, 229, 255, 0.18);
  color: white;
  border-color: rgba(0, 229, 255, 0.9);
}

.dashboard .btn-outline-danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.6);
}

.dashboard .btn-outline-danger:hover {
  background-color: rgba(255, 107, 107, 0.2);
  color: white;
  border-color: rgba(255, 107, 107, 0.9);
}

.dashboard .btn-outline-secondary {
  color: #b2b8c9;
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.dashboard .fas,
.dashboard .fa {
  color: inherit;
}

.text-muted {
  color: #adb5bd !important; 
}

.text-secondary {
  color: #6c757d !important;
}

.text-dark {
  color: var(--text) !important;
}

.text-light {
  color: var(--text) !important;
}

.text-white {
  color: var(--text) !important;
}

.text-black {
  color: var(--text) !important; 
}

.text-body {
  color: var(--text) !important;
}

.text-body-secondary {
  color: #adb5bd !important;
}

.text-body-tertiary {
  color: #6c757d !important;
}

small, .small {
  color: #adb5bd !important;
}

.form-text {
  color: #adb5bd !important;
}

blockquote {
  color: var(--text);
  border-left-color: var(--border);
}

blockquote .text-muted {
  color: #adb5bd !important;
}

.list-group-item {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.list-group-item .text-muted {
  color: #adb5bd !important;
}

.nav-link {
  color: var(--text);
}

.nav-link:hover {
  color: var(--neon2);
}

.nav-link .text-muted {
  color: #adb5bd !important;
}

.breadcrumb {
  background-color: transparent;
}

.breadcrumb-item {
  color: var(--text);
}

.breadcrumb-item .text-muted {
  color: #adb5bd !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--muted);
}

.pagination .page-link {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.pagination .page-link:hover {
  background-color: var(--border);
  border-color: var(--neon2);
  color: var(--neon2);
}

.pagination .page-item.disabled .page-link {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--muted);
}

.alert {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.alert .text-muted {
  color: #adb5bd !important;
}

.modal-content {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.modal-header {
  border-bottom-color: var(--border);
}

.modal-footer {
  border-top-color: var(--border);
}

.modal .text-muted {
  color: #adb5bd !important;
}

.tooltip {
  --bs-tooltip-bg: var(--card);
  --bs-tooltip-color: var(--text);
}

.popover {
  background-color: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.popover .text-muted {
  color: #adb5bd !important;
}

.moderation-item,
.user-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.moderation-item:hover,
.user-item:hover {
  background-color: rgba(124, 77, 255, 0.05);
}

.status-pending {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid #ffc107;
}

.status-approved {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
}

.status-rejected {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
}

.description-text,
.meta-text {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.4;
}

.action-link {
  color: #007bff;
  text-decoration: none;
}

.action-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.action-link.danger {
  color: #dc3545;
}

.action-link.danger:hover {
  color: #c82333;
}

.lead {
  color: var(--text);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: var(--text);
}

code {
  background-color: rgba(124, 77, 255, 0.1);
  color: var(--neon2);
  border: 1px solid var(--border);
}

pre {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

pre code {
  background-color: transparent;
  border: none;
  color: var(--text);
}

.table .text-muted {
  color: #adb5bd !important;
}

.table .text-secondary {
  color: #6c757d !important;
}

.table .text-dark {
  color: var(--text) !important;
}

.table .text-light {
  color: var(--text) !important;
}

.card .text-muted {
  color: #adb5bd !important;
}

.card .text-secondary {
  color: #6c757d !important;
}

.card .text-dark {
  color: var(--text) !important;
}

.card .text-light {
  color: var(--text) !important;
}

.form-label .text-muted {
  color: #adb5bd !important;
}

.form-text {
  color: #adb5bd !important;
}

.form-check-label .text-muted {
  color: #adb5bd !important;
}

.dropdown-item .text-muted {
  color: #adb5bd !important;
}

.dropdown-item .text-secondary {
  color: #6c757d !important;
}

.navbar .text-muted {
  color: #adb5bd !important;
}

.navbar .text-secondary {
  color: #6c757d !important;
}

.sidebar .text-muted {
  color: #adb5bd !important;
}

.sidebar .text-secondary {
  color: #6c757d !important;
}

.footer .text-muted {
  color: #adb5bd !important;
}

.footer .text-secondary {
  color: #6c757d !important;
}

.article .text-muted {
  color: #adb5bd !important;
}

.article .text-secondary {
  color: #6c757d !important;
}

.comment .text-muted {
  color: #adb5bd !important;
}

.comment .text-secondary {
  color: #6c757d !important;
}

.moderation .text-muted {
  color: #adb5bd !important;
}

.moderation .text-secondary {
  color: #6c757d !important;
}

.user .text-muted {
  color: #adb5bd !important;
}

.user .text-secondary {
  color: #6c757d !important;
}

.editor .editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .editor .editor-grid {
    grid-template-columns: 1fr;
  }
}

/* Editor — Categoria UI */
.editor select {
  width: 100%;
  background: #0f0f14;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.editor .category-box {
  background: linear-gradient(180deg, #0e0f16, #0e0f14);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.editor .category-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.editor .category-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

textarea,
input[type=text],
input[type=url],
input[type=password] {
  width: 100%;
  background: #0f0f14;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

label {
  display: block;
  margin: 10px 0 6px;
  color: #e6e6f5;
}

label.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Auth */
.auth-card {
  max-width: 420px;
  margin: 40px auto;
  background: #12121a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.alert {
  background: #26121a;
  color: #ff9bb3;
  border: 1px solid #4a2030;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 2px solid rgba(0, 212, 255, 0.35);
  margin-top: 40px;
  background: linear-gradient(180deg, #0c1019 0%, #0b0b0e 45%, #090a0d 100%);
  box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.35), 0 -1px 0 rgba(0, 212, 255, 0.2);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0) 0%, rgba(0, 212, 255, 0.6) 50%, rgba(0, 212, 255, 0) 100%);
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 6px
    ),
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.06), transparent 40%);
  opacity: 0.7;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 16px 20px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  justify-items: center;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #e9e9ee;
  font-weight: 600;
  letter-spacing: .3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0;
  text-align: center;
}

.footer-col ul li {
  margin: 6px 0;
  padding-left: 0;
  text-indent: 0;
}

.footer-col .link {
  color: #00d4ff;
  text-decoration: none;
}

.footer-col .link:visited {
  color: #00d4ff;
}

.footer-col .link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00d4ff;
  text-decoration: underline;
}

.footer-col.id .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-col.id .logo img {
  height: 140px;
  width: 140px;
}

.footer-col.id .tagline {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f0f14;
  color: #dfe7ff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .05);
  transition: box-shadow .15s ease, transform .15s ease;
}

.social-icons a i {
  font-size: 20px;
}

.social-icons a:hover {
  box-shadow: 0 0 12px rgba(0, 229, 255, .25), inset 0 0 0 1px rgba(0, 229, 255, .15);
  transform: translateY(-1px);
}

.support-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.support-info p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.support-info strong {
  color: var(--neon2);
}

.support-info .link {
  font-size: 13px;
  word-break: break-all;
}

.ic {
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 20px;
  text-align: center;
  color: var(--muted);
  background: #0a0b12;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-legal .link {
  color: #00d4ff;
  text-decoration: none;
}

.footer-legal .link:visited {
  color: #00d4ff;
}

.footer-legal .link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00d4ff;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col.id .logo {
    justify-content: center;
  }

  .footer-legal {
    display: block;
    margin-top: 6px;
  }
}

/* Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #0f1020, #101528);
  color: #fff;
  border: 1px solid var(--neon2);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, .15), inset 0 0 12px rgba(0, 229, 255, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 229, 255, .35), inset 0 0 16px rgba(0, 229, 255, .08);
}

/* Dashboard Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f0f14, #12121a);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-icon {
  font-size: 14px;
  line-height: 1;
}

.action-text {
  font-size: 11px;
  white-space: nowrap;
}

/* Action button variants */
.action-approve {
  border-color: #2a7;
  color: #9ef7cb;
}

.action-approve:hover {
  background: linear-gradient(135deg, #1a2a1a, #0f1a0f);
  border-color: #3a8;
  box-shadow: 0 4px 12px rgba(42, 119, 0, 0.3);
}

.action-reject {
  border-color: #a22;
  color: #ffb3c1;
}

.action-reject:hover {
  background: linear-gradient(135deg, #2a1a1a, #1a0f0f);
  border-color: #b33;
  box-shadow: 0 4px 12px rgba(162, 34, 0, 0.3);
}

.action-hide {
  border-color: #579;
  color: #cfe3ff;
}

.action-hide:hover {
  background: linear-gradient(135deg, #1a1a2a, #0f0f1a);
  border-color: #68a;
  box-shadow: 0 4px 12px rgba(87, 119, 0, 0.3);
}

.action-delete {
  border-color: #a22;
  color: #ff6b6b;
}

.action-delete:hover {
  background: linear-gradient(135deg, #2a1a1a, #1a0f0f);
  border-color: #b33;
  box-shadow: 0 4px 12px rgba(162, 34, 0, 0.3);
}

.action-edit {
  border-color: #0af;
  color: #cfefff;
}

.action-edit:hover {
  background: linear-gradient(135deg, #0f1a2a, #0a0f1a);
  border-color: #1bf;
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.action-save {
  border-color: #2a7;
  color: #9ef7cb;
}

.action-save:hover {
  background: linear-gradient(135deg, #1a2a1a, #0f1a0f);
  border-color: #3a8;
  box-shadow: 0 4px 12px rgba(42, 119, 0, 0.3);
}

/* Role selector */
.role-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.role-select {
  background: #0f0f14;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
  min-width: 120px;
}

.role-select:focus {
  outline: none;
  border-color: var(--neon2);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* Superadmin badge */
.superadmin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #2a1a2a, #1a0f1a);
  border: 1px solid #a3f;
  border-radius: 8px;
  color: #e6d1ff;
  font-size: 12px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  
  .action-btn {
    justify-content: center;
    padding: 10px 12px;
  }
  
  .role-selector {
    flex-direction: column;
    gap: 6px;
  }
  
  .role-select {
    min-width: auto;
    width: 100%;
  }
}

/* Utility */
.muted {
  color: var(--muted);
}

.not-found {
  text-align: center;
  padding: 60px 0;
}

/* Botão flutuante do X */
.floating-twitter-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-twitter-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-twitter-btn a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1da1f2;
  color: white;
  padding: 12px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
  transition: all 0.3s ease;
}

.floating-twitter-btn a:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
  color: white;
  text-decoration: none;
}

.floating-twitter-btn .btn-text {
  font-size: 14px;
}

.floating-twitter-btn i {
  font-size: 18px;
}

/* Animação de pulso sutil */
@keyframes twitter-pulse {
  0% { box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3); }
  50% { box-shadow: 0 4px 12px rgba(29, 161, 242, 0.5); }
  100% { box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3); }
}

.floating-twitter-btn a {
  animation: twitter-pulse 3s infinite;
}

/* Estilos para o footer - CTA do X */
.twitter-cta {
  background: rgba(29, 161, 242, 0.1);
  border: 1px solid rgba(29, 161, 242, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.twitter-cta p {
  margin: 0 0 8px 0;
  color: var(--text);
}

.twitter-cta p:last-of-type {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 12px;
}

.twitter-follow-btn {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
  transition: all 0.3s ease;
}

.twitter-follow-btn:hover {
  background: #0d8bd9;
  border-color: #0d8bd9;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.twitter-follow-btn i {
  margin-right: 6px;
}

/* Prompt para seguir no X após artigo */
.twitter-follow-prompt {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.1) 0%, rgba(29, 161, 242, 0.05) 100%);
  border: 1px solid rgba(29, 161, 242, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.twitter-follow-prompt.show {
  opacity: 1;
  transform: translateY(0);
}

.prompt-content {
  position: relative;
}

.prompt-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}

.prompt-text h4 {
  color: var(--text);
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.prompt-text p {
  color: var(--muted);
  margin: 0 0 20px 0;
  font-size: 0.95em;
}

.twitter-follow-prompt-btn {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.twitter-follow-prompt-btn:hover {
  background: #0d8bd9;
  border-color: #0d8bd9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.twitter-follow-prompt-btn i {
  margin-right: 8px;
}

.prompt-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--muted);
  font-size: 18px;
  padding: 4px 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.prompt-close:hover {
  color: var(--text);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Botão de follow do X */
.twitter-follow-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #1da1f2;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.twitter-follow-btn:hover {
  background: #0d8bd9;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.twitter-follow-btn:active {
  transform: translateY(0);
}

.twitter-follow-btn svg {
  transition: transform 0.3s ease;
}

.twitter-follow-btn:hover svg {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .twitter-follow-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Botões de ação do artigo */
.article-actions {
  margin: 24px 0;
}

.action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Botão de curtir */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  user-select: none;
}

.like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.like-btn:hover:not(:disabled) {
  border-color: var(--neon);
  background: rgba(124, 77, 255, 0.1);
  transform: translateY(-1px);
}

.like-btn.liked {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

.like-btn.liked:hover {
  background: rgba(255, 71, 87, 0.2);
}

.heart-icon {
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
}

.like-btn:hover:not(:disabled) .heart-icon {
  animation: heartPulse 0.5s ease infinite;
}

.like-btn.liked .heart-icon {
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
  0% { 
    transform: scale(1); 
    color: #ff4757;
  }
  25% { 
    transform: scale(1.4); 
    color: #ff3742;
  }
  50% { 
    transform: scale(1.1); 
    color: #ff4757;
  }
  75% { 
    transform: scale(1.3); 
    color: #ff6b7a;
  }
  100% { 
    transform: scale(1); 
    color: #ff4757;
  }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Botão de compartilhar */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.share-btn:hover {
  border-color: var(--neon);
  background: rgba(124, 77, 255, 0.1);
  transform: translateY(-1px);
}

.share-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.share-btn:hover .share-icon {
  transform: scale(1.1);
}

/* Menu de compartilhamento */
.share-dropdown {
  position: relative;
}

.share-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 8px;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.share-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.share-option:hover {
  background: rgba(124, 77, 255, 0.1);
  color: var(--neon);
}

.share-option-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .like-btn,
  .share-btn {


    justify-content: center;
  }
  
  .share-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 180px;
  }
  
  .share-menu.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* Ads nos artigos */
.article-ad {
  margin: 32px 0 !important;
  padding: 16px 0;
  text-align: center;
  clear: both;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Protege embeds do Twitter de interferência dos ads */
.markdown-body blockquote.twitter-tweet,
.markdown-body .twitter-tweet,
.article-content blockquote.twitter-tweet,
.article-content .twitter-tweet {
  position: relative;
  z-index: 10;
  margin: 24px auto !important;
  padding: 20px !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  max-width: 550px !important;
  clear: both;
}

/* Garante que ads não apareçam dentro de embeds */
.twitter-tweet .article-ad,
blockquote .article-ad,
figure .article-ad,
pre .article-ad {
  display: none !important;
}

/* Espaçamento seguro ao redor de embeds */
.markdown-body .twitter-tweet + .article-ad,
.article-content .twitter-tweet + .article-ad {
  margin-top: 48px !important;
}

.markdown-body .article-ad + .twitter-tweet,
.article-content .article-ad + .twitter-tweet {
  margin-top: 48px !important;
}

/* Animações de notificação */
.notification {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Prompts de notificação push */
.notification-prompt {
  font-family: Inter, sans-serif;
  animation: slideInRight 0.5s ease;
}

.notification-prompt .prompt-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.notification-prompt .prompt-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-prompt .prompt-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.notification-prompt .prompt-text h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.notification-prompt .prompt-text p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.notification-prompt .prompt-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.notification-prompt .btn-allow {
  background: var(--neon);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-prompt .btn-allow:hover {
  background: var(--neon2);
  transform: translateY(-1px);
}

.notification-prompt .btn-deny {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-prompt .btn-deny:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.notification-success .success-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-success .success-icon {
  font-size: 16px;
}

@media (max-width: 768px) {
  .notification-prompt {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .notification-prompt .prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .notification-prompt .prompt-main {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .notification-prompt .prompt-actions {
    justify-content: center;
    width: 100%;
  }
  
  .notification-prompt .btn-allow,
  .notification-prompt .btn-deny {
    flex: 1;
  }
}
