:root {
  --bg-main: #040710;
  --bg-card: #060814;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.25);
  --accent-strong: #a5b4fc;
  --accent-pink: #ec4899;
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.25);
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.7);
  --transition-fast: 0.18s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #02010a 100%);
  color: var(--text-primary);
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT GERAL */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 10%, #e5e7eb 0, #facc15 12%, #f97316 35%, #ef4444 70%, #020617 100%),
    radial-gradient(circle at 70% 90%, rgba(59, 130, 246, 0.6), transparent 60%);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.65);
  position: relative;
  overflow: hidden;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.brand-logo::after {
  /* "silhueta" abstrata de corvo */
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 60% 40% 65% 35%;
  background: radial-gradient(circle at 50% 35%, #020617 0, #020617 45%, transparent 55%);
  box-shadow:
    -6px -2px 12px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(30, 64, 175, 0.8);
  opacity: 0.9;
}

.brand-text-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-text-title span {
  color: var(--accent-strong);
}

.brand-text-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

nav a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--accent);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.7), rgba(15, 23, 42, 0.98));
  color: var(--text-primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(79, 70, 229, 0.8);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 0 40px rgba(129, 140, 248, 1);
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.95), rgba(15, 23, 42, 0.98));
}

/* Botão "Jogar agora" com tom vermelho */
.hero-card .btn:first-of-type:not(.btn-secondary) {
  border-color: rgba(239, 68, 68, 0.6);
  background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.7), rgba(185, 28, 28, 0.9));
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.6);
}

.hero-card .btn:first-of-type:not(.btn-secondary):hover {
  background: radial-gradient(circle at top, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 1)) !important;
  border-color: rgba(239, 68, 68, 0.8) !important;
  animation: btnPulse 1.2s ease-in-out infinite !important;
  transform: translateY(-1.5px) !important;
}

/* Animação de pulsação para o botão "Jogar agora" */
@keyframes btnPulse {
  0% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.42), 0 0 27px rgba(239, 68, 68, 0.18);
    transform: translateY(-1.5px) scale(1.0);
  }
  25% {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), 0 0 50px rgba(239, 68, 68, 0.4);
    transform: translateY(-1.5px) scale(1.01);
  }
  50% {
    box-shadow: 0 0 55px rgba(239, 68, 68, 1), 0 0 75px rgba(239, 68, 68, 0.7), 0 0 95px rgba(239, 68, 68, 0.4);
    transform: translateY(-1.5px) scale(1.02);
  }
  75% {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), 0 0 50px rgba(239, 68, 68, 0.4);
    transform: translateY(-1.5px) scale(1.01);
  }
  100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.42), 0 0 27px rgba(239, 68, 68, 0.18);
    transform: translateY(-1.5px) scale(1.0);
  }
}

.btn-secondary {
  border-color: var(--border-soft);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: none;
  color: var(--text-muted);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent-soft);
  box-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
}

main {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.8rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .user-menu-dropdown {
    right: auto;
    left: 0;
    min-width: calc(100vw - 2rem);
    max-width: 320px;
  }
}

/* HERO */

.hero-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.25), transparent 60%),
    linear-gradient(to bottom right, #020617 0, #020617 45%, #02010a 100%),
    rgba(3, 7, 18, 0.85);
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px);
}

/* se um dia tiver o background do corvo, troca aqui: */
/* .hero-card {
     background-image: url("img/ravenx-hero.jpg");
     background-size: cover;
     background-position: center;
   } */

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.92);
  margin-bottom: 0.8rem;
}

.hero-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, transparent 65%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
}

.hero-subpill {
  font-size: 0.74rem;
  margin-left: 0.5rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.hero-title-main {
  font-size: 2.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.hero-title-main span {
  color: var(--accent-strong);
  text-shadow: 0 0 18px rgba(129, 140, 248, 0.85);
}

.hero-subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-slogan {
  font-size: 0.96rem;
  font-style: italic;
  color: var(--accent-strong);
  text-shadow: 0 0 14px rgba(129, 140, 248, 0.9);
  margin-bottom: 1.1rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #6b7280;
}

.hero-meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

.hero-ornament {
  position: absolute;
  inset: auto -70px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: conic-gradient(from 210deg, rgba(129, 140, 248, 0.7), transparent, rgba(56, 189, 248, 0.7), transparent);
  opacity: 0.55;
  filter: blur(0.4px);
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (max-width: 900px) {
  .hero-ornament {
    width: 180px;
    height: 180px;
    bottom: -70px;
    right: -40px;
    opacity: 0.35;
  }
}

/* LATERAL DIREITA */

.side-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, #020617, #020617 40%, #02010a 100%), rgba(3, 7, 18, 0.85);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  backdrop-filter: blur(18px);
  max-height: 720px;
  width: 100%;
  margin-left: auto;
}

.side-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.info-card {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 0.7rem 0.8rem;
  font-size: 0.82rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin-bottom: 0.18rem;
}

.info-value {
  font-weight: 600;
}

.info-value-accent {
  color: var(--accent-strong);
}

.server-life {
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.7);
  padding: 0.8rem 1rem;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), #020617);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.server-life-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #93c5fd;
}

.server-life-days {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e0f2fe;
}

.server-life-small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lore-card {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 0.75rem 0.9rem;
  background: radial-gradient(circle at bottom, rgba(129, 140, 248, 0.18), #020617);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lore-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.pk-feature {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(236, 72, 153, 0.7);
  font-size: 0.8rem;
  color: #f9fafb;
  background: radial-gradient(circle at left, rgba(236, 72, 153, 0.35), transparent);
}

.pk-feature span {
  color: var(--accent-pink);
  font-weight: 600;
}

/* FEATURES / REGRAS / NEWS */

.section {
  margin-top: 1.6rem;
}

.section-title {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.25), #020617), rgba(3, 7, 18, 0.85);
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(18px);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.85);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.4), #020617);
}

.feature-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--accent-strong);
  margin-bottom: 0.25rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.feature-glow {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.6), transparent 65%);
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
}

.rules-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .rules-news-grid {
    grid-template-columns: 1fr;
  }
}

.rules-card, .news-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), #020617), rgba(3, 7, 18, 0.85);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  backdrop-filter: blur(18px);
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.rules-list li::before {
  content: "◆";
  color: var(--accent-strong);
  margin-right: 0.45rem;
  font-size: 0.6rem;
}

/* Cards de notícias na home (similar aos feature-cards) */
.news-card-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.25), #020617), rgba(3, 7, 18, 0.85);
  padding: 1rem 1rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(18px);
  margin-bottom: 0.1rem;
}

.news-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.85);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.4), #020617);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-card-date {
  color: var(--text-muted);
}

.news-card-author {
  color: var(--accent-strong);
}

.news-card-body {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

.news-card-glow {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.6), transparent 65%);
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Badges de categoria usando paleta do site */
.news-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Cores dos badges baseadas na paleta do site */
.news-category-geral {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-strong);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.news-category-eventos {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.news-category-atualizações {
  background: rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.news-category-manutenção,
.news-category-manutencao {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.news-category-anúncios,
.news-category-anuncios {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Fallback para categorias não mapeadas */
.news-category-badge:not([class*="news-category-"]) {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-strong);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.news-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.news-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.news-body {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
  text-align: center;
}

.news-error {
  font-size: 0.8rem;
  color: var(--danger);
  padding: 2rem;
  text-align: center;
}

/* Seção de notícias na home */
#news-section {
  margin-bottom: 3rem;
}

.news-search-wrapper {
  margin-bottom: 1.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.33rem; /* Reduzido para 1/3 do valor original (1rem -> 0.33rem) */
}

.news-search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.news-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.news-pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-pagination-btn {
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
  color: var(--accent-strong);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-pagination-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--accent);
}

.news-pagination-info {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-category {
  color: var(--accent-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Estilos para gerenciamento de notícias no dashboard */
.news-management-section {
  padding: 1.5rem;
}

.news-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.news-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-tab:hover {
  color: var(--text-primary);
}

.news-tab.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.news-panel {
  display: none;
}

.news-panel.active {
  display: block;
}

.news-item-admin {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.news-item-admin:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.news-item-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-item-content-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Modal de notícias */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.news-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
}

.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.news-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.news-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.news-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

#newsForm {
  padding: 1.5rem;
}

.news-form-field {
  margin-bottom: 1.5rem;
}

.news-form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.news-form-field input[type="text"],
.news-form-field textarea,
.news-form-field select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.news-form-field input[type="text"]:focus,
.news-form-field textarea:focus,
.news-form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.news-form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.news-form-field input[type="checkbox"] {
  margin-right: 0.5rem;
  width: auto;
}

.news-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.empty-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

.error-message {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
}

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

/* =============== INTRO RAVENX – corvo com glow e borda suave =============== */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: radial-gradient(circle at top, #020617 0%, #000 80%);
  opacity: 1;
  pointer-events: auto;
}

/* frame da imagem do corvo */
.intro-raven-frame {
  position: relative;
  max-width: 80vw;
  margin: 0 auto;
}

/* imagem em si */
.intro-raven-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  /* glow só no corvo */
  filter:
    brightness(1.18)
    contrast(1.16)
    drop-shadow(0 0 22px rgba(99, 102, 241, 0.9))
    drop-shadow(0 0 50px rgba(56, 189, 248, 0.35));

  animation: ravenFloat 6s ease-in-out infinite;
}

/* vignette por cima da imagem pra comer as bordas e disfarçar o quadrado */
.intro-raven-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* centro transparente, bordas escurecendo até o fundo */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 45%,     /* miolo 0% escuro */
    rgba(0, 0, 0, 0.55) 75%,  /* transição */
    rgba(0, 0, 0, 0.95) 100%  /* borda praticamente preta */
  );
}

/* animação leve de flutuar (já tinha) */
@keyframes ravenFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-6px) scale(1.02); }
}

/* ===================== MODAL DE LOGIN / CADASTRO ===================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(0, 0, 0, 0.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.22), transparent 60%),
    rgba(3, 7, 18, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem 1.3rem;
  backdrop-filter: blur(20px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.modal-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.85);
}

.modal-tabs {
  display: inline-flex;
  padding: 0.16rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 1rem;
}

.modal-tab {
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-tab.is-active {
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.8), rgba(15, 23, 42, 1));
  color: var(--text-primary);
}

.modal-body {
  font-size: 0.85rem;
}

.modal-section {
  display: none;
}

.modal-section.is-active {
  display: block;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.modal-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.modal-input {
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.modal-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 23, 42, 0.98);
  accent-color: var(--accent);
}

.modal-link {
  font-size: 0.8rem;
  color: var(--accent-strong);
  cursor: pointer;
  text-decoration: none;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

/* Área logada simples no side-card */
.user-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.35), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  max-height: 600px;
  font-size: 0.85rem;
}

.user-panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 0.1rem;
}

.user-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5f5;
}

.user-panel-row span {
  color: #9ca3af;
}

/* Menu dropdown "Minha conta" */
.user-menu-wrapper {
  position: relative;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  padding: 1rem;
  border-radius: 0.75rem;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.4), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1000;
  pointer-events: none;
}

.user-menu-wrapper.active .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-dashboard {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 1001;
  display: block;
  text-decoration: none;
}

.user-menu-dashboard:hover {
  pointer-events: auto !important;
}

.user-menu-dashboard:active {
  pointer-events: auto !important;
}

.user-menu-header {
  margin-bottom: 0.75rem;
}

.user-menu-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.user-menu-username {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.user-menu-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: 0.75rem 0;
}

.user-menu-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.user-menu-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.user-menu-info-label {
  color: #9ca3af;
}

.user-menu-info-value {
  color: #cbd5f5;
  font-weight: 500;
}

.user-menu-dashboard {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent-soft);
  border-radius: 0.5rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.user-menu-dashboard:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.user-menu-logout {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(249, 115, 115, 0.4);
  border-radius: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(249, 115, 115, 0.3);
}

/* olhos pulsando em loop */
@keyframes eyePulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.95))
            drop-shadow(0 0 28px rgba(139, 92, 246, 0.7));
  }
}

.eye-glow {
  animation: eyePulse 2.8s ease-in-out infinite;
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
