/* ── Tokens ── */
:root {
  --background:         0 0% 6%;
  --foreground:         240 6% 92%;
  --card:               240 4% 9%;
  --primary:            354 75% 56%;
  --primary-foreground: 0 0% 100%;
  --muted:              240 4% 14%;
  --muted-foreground:   240 5% 60%;
  --border:             240 4% 18%;
  --input:              240 4% 13%;
  --ring:               354 75% 56%;
  --radius:             0.625rem;
  --header-overlay:     rgba(0, 0, 0, 0.72);
}

html.light {
  --background:         220 20% 96%;
  --foreground:         220 15% 12%;
  --card:               0 0% 100%;
  --primary:            354 75% 46%;
  --primary-foreground: 0 0% 100%;
  --muted:              220 15% 90%;
  --muted-foreground:   220 10% 45%;
  --border:             220 15% 80%;
  --input:              220 15% 93%;
  --ring:               354 75% 46%;
  --header-overlay:     rgba(255, 255, 255, 0.62);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  opacity: 0;
}

body.ready {
  opacity: 1;
  transition: opacity 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Header ── */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  background-color: hsl(var(--background));
  background-image: url('/assets/background.png');
  background-size: cover;
  background-position: center top;
  transition: left 0.25s ease;
}


.header-fade {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, hsl(var(--background)) 0%, transparent 100%);
  pointer-events: none;
  z-index: 99;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
  pointer-events: none;
  transition: background 0.3s ease;
}


.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Hambúrguer */
.header-hamburger {
  width: 2.375rem;
  height: 2.375rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.header-hamburger:hover {
  color: #1a1a1a;
  border-color: #c4c4c4;
  background: #c4c4c4;
  transform: scale(1.12);
}

/* Link que envolve logo + nome */
.header-home-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

/* Logo circular no header */
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsl(var(--border));
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

/* Nome da corporação */
.header-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c4c4;
  white-space: nowrap;
}

/* Ícones do lado direito (envelope, sino) */
.header-icon {
  width: 2.375rem;
  height: 2.375rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.header-icon:hover {
  color: #1a1a1a;
  border-color: #c4c4c4;
  background: #c4c4c4;
  transform: scale(1.12);
}

/* Botão "Solicite uma licença" — mesmo padrão dos ícones, mas com texto */
.header-license-btn {
  height: 2.375rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.875rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.header-license-btn:hover {
  color: #1a1a1a;
  border-color: #c4c4c4;
  background: #c4c4c4;
  transform: scale(1.12);
}

/* Bloco do usuário no header */
.header-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-user__info {
  text-align: right;
  line-height: 1.25;
}

.header-user__nick {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: 0.02em;
}

.header-user__role {
  display: block;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.03em;
}

.header-user__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  background-position: center -20px;
  background-repeat: no-repeat;
  background-size: auto;
  border: 2px solid hsl(var(--border));
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.header-user__avatar:hover {
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

/* ── Dropdown do usuário ── */
.header-user {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.625rem);
  right: 0;
  width: 220px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.user-dropdown__divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 0.25rem 0;
}

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.user-dropdown__item:hover {
  background: hsl(var(--muted) / 0.6);
  color: hsl(var(--foreground));
}

.user-dropdown__item--danger { color: hsl(var(--primary)); }
.user-dropdown__item--danger:hover {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* ── Body (grid principal) ── */
.dashboard-body {
  display: grid;
  grid-template-columns: 1fr min(360px, 30%);
  gap: 1.5rem;
  padding: 100px 15rem 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  animation: fadeUp 320ms ease both;
  margin-left: 0;
  transition: margin-left 0.25s ease;
}

/* ── Cabeçalho de seção (ícone + título vermelho) ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-icon {
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin: 0;
}

/* ── Coluna principal (esquerda) ── */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Seção de busca */
.search-section { display: flex; flex-direction: column; }

.search-input {
  width: 100%;
  height: 2.75rem;
  background: hsl(var(--input) / 0.6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.7);
  text-transform: uppercase;
}

.search-input:focus {
  border-color: hsl(var(--ring) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}

/* ── Wrapper da busca (posiciona dropdown) ── */
.search-wrapper {
  position: relative;
}

/* ── Dropdown de autocomplete ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  z-index: 50;
  overflow: hidden;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: hsl(var(--foreground));
  transition: background 0.12s;
  user-select: none;
}

.search-dropdown-item:hover {
  background: hsl(var(--muted));
}

.search-dropdown-item__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  background-size: auto;
  background-position: center -3px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ── Card de resultado da busca ── */
.search-result {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  display: none;
  gap: 1rem;
  align-items: flex-start;
}

.search-result.visible {
  display: flex;
}

.search-result__avatar-col {
  flex-shrink: 0;
  align-self: flex-end;
}

.search-result__avatar-col img {
  display: block;
  width: auto;
  max-height: 185px;
  image-rendering: pixelated;
}

.search-result__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-result__nick {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.search-result__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #14532d;
  color: #4ade80;
  white-space: nowrap;
}

.search-result__badge.offline {
  background: hsl(var(--muted));
  color: #6a6a6a;
}

.search-result__badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-result__profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  font-family: "Poppins", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.search-result__profile-btn:hover {
  opacity: 0.85;
}

.search-result__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.search-result__row {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-result__row strong {
  color: hsl(var(--foreground));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.sr-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}

.search-result__close-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.875rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.2rem 0.625rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.search-result__close-btn:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / 0.3);
  background: hsl(var(--muted) / 0.5);
}

/* ── Toast ── */
.toast {
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.5);
  border-radius: var(--radius);
  padding: 0.875rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--primary));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 400px;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Carrossel ── */
.carousel-section { flex: none; }

/* ── Banner Seja VIP ── */
.image-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.image-banners--single {
  grid-template-columns: 1fr;
}

.image-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-banner:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px hsl(var(--primary) / 0.25);
}

.image-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Chuva de moedas — partículas JS com rotação 3D */
.image-banner--vip {
  position: relative;
}

.coin-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  perspective: 480px;
}

.coin-particle {
  position: absolute;
  top: -60px;
  background: url('/assets/moeda.png') center / contain no-repeat;
  opacity: var(--op, 0.28);
  animation: coin-fall var(--dur, 3s) var(--del, 0s) linear infinite;
  will-change: transform, opacity;
  transform-origin: center center;
}

@keyframes coin-fall {
  0%   {
    transform: translateY(0) rotateY(0deg) rotateZ(var(--tilt, 0deg));
    opacity: 0;
  }
  7%   { opacity: var(--op, 0.28); }
  86%  { opacity: var(--op, 0.28); }
  100% {
    transform: translateY(var(--travel, 320px)) rotateY(calc(var(--spins, 2) * 360deg)) rotateZ(var(--tilt, 0deg));
    opacity: 0;
  }
}

.image-banner--vip:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 36px rgba(200, 160, 0, 0.32);
}

/* ── Banners de ação (abaixo do carrossel) ── */
.action-banners {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  min-height: 4.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: scale(1.025);
  border-color: hsl(var(--border) / 0.6);
}

.action-card__strip {
  width: 2rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card--tjp .action-card__strip { background: #1f5c2e; }
.action-card--goe .action-card__strip { background: #1a1f2e; }

.action-card__strip-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  flex-shrink: 0;
}

.action-card__icon img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.action-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  position: relative;
  z-index: 1;
}

.action-card__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.action-card__title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  line-height: 1;
}

.action-card__watermark {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Links Úteis ── */
.useful-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.useful-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 0;
}

.useful-link:hover {
  transform: scale(1.04);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 14px hsl(var(--primary) / 0.18);
  z-index: 1;
}

.useful-links:has(.useful-link:hover) .useful-link:not(:hover) {
  transform: scale(0.97);
}

.useful-link__icon {
  display: flex;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

/* ── Botão da loja (sidebar) ── */
.loja-btn {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.loja-btn:hover {
  transform: scale(1.04);
}

.loja-btn img {
  width: 100%;
  display: block;
}

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
  cursor: grab;
  user-select: none;
  aspect-ratio: 16 / 7;
}

.carousel.dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  user-select: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.carousel-dots {
  position: absolute;
  bottom: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: hsl(var(--foreground) / 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot--active {
  background: hsl(var(--foreground));
  transform: scale(1.3);
}

/* ── Sidebar (direita) ── */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.sidebar-section { display: flex; flex-direction: column; }

/* Lista de redes sociais — horizontal minimalista */
.socials-list {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 2.375rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #c4c4c4;
  border: 1px solid hsl(var(--border));
  background: transparent;
  transition: color 0.18s ease, transform 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}

.social-item:hover {
  transform: scale(1.18);
  color: #ffffff;
}

/* Cores de marca por rede social */
.social-item[aria-label="Telegram"]:hover {
  background: #2AABEE;
  border-color: #2AABEE;
}

.social-item[aria-label="Discord"]:hover {
  background: #5865F2;
  border-color: #5865F2;
}

.social-item[aria-label="Facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.social-item[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040);
  border-color: transparent;
}

.social-item[aria-label="X"]:hover {
  background: #000000;
  border-color: #000000;
}

.social-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
}

.social-item__icon svg {
  width: 100%;
  height: 100%;
}

/* Tooltip acima do ícone */
.social-item__name {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: hsl(var(--foreground));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.social-item:hover .social-item__name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Card de evento — Save the Date */
.event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

.event-card__info { flex: 1; min-width: 0; }

.event-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-card__datetime {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.event-like-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.15s;
  flex-shrink: 0;
}

.event-like-btn:hover {
  background: hsl(var(--muted) / 0.6);
}

.event-like-btn img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.15s;
}

.event-like-btn span {
  font-family: "Poppins", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  min-width: 1.5rem;
  text-align: left;
  transition: color 0.15s;
}

.event-like-btn.liked img {
  filter: drop-shadow(0 0 4px #f59e0b) brightness(1.15);
}

.event-like-btn.liked span {
  color: #f59e0b;
}

/* ── Rodapé ── */
.content-footer {
  width: 100%;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

.footer-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 1.75rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

/* Logo imagem */
.footer-logo-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-logo-link:hover {
  opacity: 0.72;
  transform: scale(1.04);
}

.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Nav links */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.5rem;
  width: 100%;
}

.footer-nav__sep {
  color: hsl(var(--border));
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
}

.footer-nav__link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav__link:hover {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--foreground));
}

/* Linha divisória */
.footer-divider {
  width: 100%;
  height: 1px;
  background: hsl(var(--border));
  border: none;
  margin: 0.4rem 0;
}

/* Copyright */
.footer-copy {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Disclaimer */
.footer-disclaimer {
  font-size: 0.7rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-disclaimer strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

/* Crédito */
.footer-credit {
  font-size: 0.775rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  text-align: center;
}

.footer-heart {
  color: hsl(var(--primary));
  display: inline-block;
  transform: translateY(1px);
}

.footer-credit__link {
  color: hsl(var(--foreground));
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-credit__link:hover {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* ── Toast (para futuro uso) ── */
.toast-area {
  position: fixed;
  top: 72px;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Responsividade ── */
@media (max-width: 640px) {
  .dashboard-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dashboard-body {
    padding: 76px 1rem 1.5rem;
    gap: 1.25rem;
  }

  /* Header mobile */
  .header-brand      { display: none; }
  .header-user__info { display: none; }

  .header-left,
  .header-right {
    gap: 0.4rem;
  }

  /* Botão de licença: permite quebrar em duas linhas */
  .header-license-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 0 0.5rem;
    height: auto;
    min-height: 2.375rem;
    font-size: 0.55rem;
    max-width: 72px;
  }


  /* Botões de imagem (VIP/Legislação): empilha verticalmente */
  .image-banners {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .dashboard-body {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1440px) {
  .dashboard-body {
    grid-template-columns: 1fr min(400px, 28%);
    margin-left: 0;
    padding-left: 16rem;
    padding-right: 16rem;
  }

}

/* ── Sidebar lateral persistente ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.sidebar-open .drawer-overlay {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -220px;
  height: 100%;
  width: 220px;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: left 0.25s ease;
}

.sidebar-drawer__top {
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
  background-color: hsl(var(--background));
  background-image: url('/assets/background.png');
  background-size: 100vw auto;
  background-position: left top;
  overflow: hidden;
}

.sidebar-drawer__top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
  pointer-events: none;
}

.sidebar-top__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.sidebar-top__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsl(var(--border));
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.sidebar-top__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-top__title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-top__sub {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.03em;
}

.sidebar-close-btn {
  position: relative;
  z-index: 1;
  width: 2.375rem;
  height: 2.375rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  color: #1a1a1a;
  border-color: #c4c4c4;
  background: #c4c4c4;
  transform: scale(1.12);
}

body.sidebar-open .sidebar-drawer { left: 0; }

body.sidebar-open .header-left {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.header-left {
  transition: opacity 0.2s ease;
}

/* Mobile: sidebar vira drawer overlay */
@media (max-width: 767px) {
  .sidebar-drawer {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }

  .sidebar-drawer.open { transform: translateX(0); }

  .drawer-overlay { display: block; }
  .drawer-overlay.open { opacity: 1; pointer-events: all; }

  body.sidebar-open .dashboard-header { left: 0; }
  body.sidebar-open .dashboard-body   { margin-left: 0; }
}

.drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsl(var(--border));
  flex-shrink: 0;
}

.drawer-brand {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c4c4;
}

.drawer-close {
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}

.drawer-close:hover {
  color: #1a1a1a;
  background: #c4c4c4;
  border-color: #c4c4c4;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* ── Theme toggle icons ── */
.icon-moon { display: none; }

html.light .icon-sun  { display: none; }
html.light .icon-moon { display: block; }

/* ── Light mode overrides ── */
html.light body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

html.light .user-dropdown {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
}

html.light .search-result__badge {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

html.light .search-result__profile-btn {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

html.light .sidebar-drawer {
  background: hsl(var(--card));
  border-right-color: hsl(var(--border));
}

html.light .drawer-header {
  border-bottom-color: hsl(var(--border));
}

html.light .sidebar-top__title {
  color: #1a1d23;
}

html.light .sidebar-top__sub {
  color: #1a1d23;
}

html.light .sidebar-close-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: hsl(var(--foreground));
}

html.light .sidebar-close-btn:hover {
  background: #e2e4e9;
  border-color: #e2e4e9;
  color: #1a1a1a;
  transform: scale(1.12);
}

html.light .toast {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

html.light .carousel-dot {
  background: hsl(var(--muted-foreground) / 0.4);
}

html.light .carousel-dot--active {
  background: hsl(var(--foreground));
}

/* Scrollbar — adapta ao tema via variáveis */
* { scrollbar-width: thin; scrollbar-color: hsl(var(--muted-foreground) / 0.22) transparent; }
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: hsl(var(--muted-foreground) / 0.22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.45); }
::-webkit-scrollbar-corner { background: transparent; }

html.light .dashboard-header::before {
  background: rgba(255, 255, 255, 0.80);
  opacity: 1;
}

html.light .header-hamburger,
html.light .header-icon {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

html.light .header-hamburger:hover,
html.light .header-icon:hover {
  background: hsl(var(--muted));
  border-color: hsl(220 15% 65%);
  color: hsl(var(--foreground));
}

html.light .header-license-btn {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

html.light .header-license-btn:hover {
  background: hsl(var(--muted));
}

html.light .header-brand {
  color: hsl(var(--foreground));
}

html.light .header-fade {
  display: none;
}

html.light .social-item:hover {
  color: #ffffff;
}

html.light .social-item {
  color: hsl(220 15% 30%);
  border-color: hsl(var(--border));
  background: hsl(var(--card));
}

/* Pills de status/situação (compartilhados com perfil) */
.pf-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  vertical-align: middle;
}

.pf-status-pill--ativo {
  background: rgba(20, 83, 45, 0.9);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.22);
}

html.light .pf-status-pill--ativo {
  background: hsl(142 76% 90%);
  color: hsl(142 60% 28%);
  border-color: hsl(142 60% 75%);
}

html.light .pf-status-pill--inativo {
  background: hsl(0 76% 92%);
  color: hsl(0 72% 35%);
  border-color: hsl(0 60% 78%);
}

.pf-status-pill--inativo {
  background: rgba(80, 10, 10, 0.9);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
}

.pf-situacao-banido {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
}

html.light .action-card__watermark {
  color: rgba(0, 0, 0, 0.07);
}

html.light .section-title {
  color: hsl(var(--primary));
}

html.light .section-icon {
  color: hsl(var(--primary));
}

html.light .useful-link {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

html.light .useful-link:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12), 0 2px 8px rgba(0,0,0,0.08);
}

html.light .event-card {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

html.light .loja-btn {
  border-color: hsl(var(--border));
}

html.light .search-input {
  background: hsl(var(--input));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

html.light .search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

html.light .search-dropdown {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

html.light .search-dropdown__item:hover {
  background: hsl(var(--muted));
}

html.light .content-footer {
  background: hsl(220 15% 91%);
  border-top-color: hsl(var(--border));
}

html.light .footer-divider {
  background: hsl(var(--border));
}

