body.site-bg {
  background-image: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)), url('/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* Mobile background */
@media (max-width: 640px) {
  body.site-bg {
    background-image: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)), url('/backgroundmobile.png');
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
}

nav.bg-black-900.shadow-sm.border-gray-700.sticky.top-0.z-50 {
    background: rgb(0, 0, 0);
}

footer.bg-black-900.border-gray-700.mt-auto {
    background: #000000;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: .5rem;
    --tw-bg-opacity: 1;
    /* Laranja (Tailwind orange-600) */
    background-color: rgb(234 88 12);
    padding: .75rem 1.5rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: 
cubic-bezier(.4, 0, .2, 1);
    transition-duration: .2s;
}

a {
    /* Links padrão em laranja; utilidades específicas continuarão funcionando */
    color: #fb923c;
}

.text-gray-900 {
    --tw-text-opacity: 1;
    color: rgb(255 255 255);
}

/* Forum cards and badges */
.forum-card {
  border-radius: 0.75rem;
  background-color: #000000; /* black-800 */
  border: 1px solid #374151; /* gray-700 */
}
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}
.badge-new { background-color: #1f2937; color: #fb923c; border: 1px solid #374151; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

/* ====== Fórum: lista e linhas estilo clássico ====== */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.forum-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #000000; /* mais escuro que black-800 */
  border: 1px solid #374151; /* gray-700 */
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.forum-row:hover {
  background-color: #000000; /* hover sutil */
  border-color: #4b5563; /* gray-600 */
}

.forum-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  background: linear-gradient(180deg, #fb923c, #f97316); /* faixa lateral laranja */
}

.forum-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #d1d5db;
}

.forum-stats .stat strong {
  color: #ffffff;
  font-weight: 600;
}

/* Cartões e campos usados em páginas do fórum */
.card {
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.92));
  border: 1px solid #374151; /* gray-700 */
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #4b5563; /* gray-600 */
  box-shadow: 0 14px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}

.card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem 1rem;
  border-bottom: 1px solid #374151;
}

.card .card-body {
  padding: 1rem;
}

/* Card mais elegante para formulários */
.form-card {
  border-radius: 1.25rem;
  background: rgba(15,15,15,0.72);
  border: 1px solid #3f3f46; /* zinc-700 */
  box-shadow: 0 16px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.form-card:hover {
  border-color: #52525b; /* zinc-600 */
  box-shadow: 0 20px 34px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* Faixa de destaque superior */
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #f97316, #22c55e);
  opacity: 0.95;
}

/* Seções dentro do formulário com divisores sutis */
.field-section { padding-top: 0.75rem; margin-top: 0.5rem; }
.field-section + .field-section { border-top: 1px solid #2f3136; }

/* Badge de passo numerado */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
  border-radius: 9999px;
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8); /* blue-600 -> blue-700 */
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  border: 1px solid #1d4ed8;
}

/* Link de ação dentro de prévias */
.action-link { color: #60a5fa; }
.action-link:hover { color: #93c5fd; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: .5rem;
  background-color: #0b0b0b;
  border: 1px solid #374151;
  color: #d1d5db;
  padding: .5rem .9rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-secondary:hover {
  background-color: #111111;
  border-color: #4b5563;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ===== Admin styles ===== */
.admin-page { background: radial-gradient(1200px 480px at 20% -10%, rgba(251,146,60,0.08), transparent 60%), radial-gradient(1200px 480px at 80% -10%, rgba(59,130,246,0.08), transparent 60%); }
.admin-header { background-color: #0b0b0b; border-bottom: 1px solid #374151; }
.admin-stat { position: relative; overflow: hidden; }
.admin-stat::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, #60a5fa, #fb923c); opacity:0.9; }
.admin-action { display:block; padding:1rem; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.admin-action:hover { border-color:#4b5563; box-shadow:0 14px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06); transform: translateY(-2px); background: linear-gradient(180deg, rgba(15,15,15,0.85), rgba(18,18,18,0.92)); }
.admin-list-item { background-color:#0f0f10; border:1px solid #2f3136; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.admin-list-item:hover { background-color:#151516; border-color:#3b3d42; transform: translateY(-1px); }

/* Botões de ação coloridos (Aprovar, Rejeitar, Desativar) */
.btn-approve {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: .5rem;
  background-color: #16a34a; /* green-600 */
  border: 1px solid #166534; /* green-700 */
  color: #ffffff;
  padding: .5rem .9rem;
  font-weight: 500;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-approve:hover {
  background-color: #22c55e; /* green-500 */
  transform: translateY(-1px);
}

.btn-reject {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: .5rem;
  background-color: #dc2626; /* red-600 */
  border: 1px solid #991b1b; /* red-800 */
  color: #ffffff;
  padding: .5rem .9rem;
  font-weight: 500;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-reject:hover {
  background-color: #ef4444; /* red-500 */
  transform: translateY(-1px);
}

.btn-deactivate {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: .5rem;
  background-color: #f59e0b; /* amber-500 */
  border: 1px solid #b45309; /* amber-700 */
  color: #ffffff;
  padding: .5rem .9rem;
  font-weight: 500;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-deactivate:hover {
  background-color: #fbbf24; /* amber-400 */
  transform: translateY(-1px);
}

/* ====== Cards de Estatísticas (Meus Vídeos) ====== */
.stat-card {
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(12,12,12,0.92));
  border: 1px solid #374151; /* gray-700 */
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: #4b5563; box-shadow: 0 14px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06); }

.stat-card .stat-title { font-size: 0.875rem; color: #cbd5e1; }
.stat-card .stat-value { font-size: 1.25rem; font-weight: 700; color: #ffffff; }

.stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0b0b;
  border: 1px solid #374151;
  box-shadow: 0 4px 10px rgba(0,0,0,0.24);
}

/* Variações de cor */
.stat-blue { border-color: #1e3a8a; background: linear-gradient(180deg, rgb(23, 37, 84), rgb(13, 20, 43)); }
.stat-blue:hover { border-color: #2563eb; }
.stat-blue .stat-icon { background-color: rgb(12, 20, 40); border-color: #1e3a8a; }
.stat-blue .stat-value { color: #dbeafe; }

.stat-green { border-color: #166534; background: linear-gradient(180deg, rgb(5, 46, 22), rgb(8, 25, 16)); }
.stat-green:hover { border-color: #22c55e; }
.stat-green .stat-icon { background-color: rgba(8,25,16,0.95); border-color: #166534; }
.stat-green .stat-value { color: #bbf7d0; }

.stat-yellow { border-color: #a16207; background: linear-gradient(180deg, rgb(69, 26, 3), rgb(45, 20, 3)); }
.stat-yellow:hover { border-color: #f59e0b; }
.stat-yellow .stat-icon { background-color: rgba(45,20,3,0.95); border-color: #a16207; }
.stat-yellow .stat-value { color: #fde68a; }

.stat-red { border-color: #991b1b; background: linear-gradient(180deg, rgb(69, 10, 10), rgb(42, 10, 10)); }
.stat-red:hover { border-color: #ef4444; }
.stat-red .stat-icon { background-color: rgba(42,10,10,0.95); border-color: #991b1b; }
.stat-red .stat-value { color: #fecaca; }

.form-label { color: #d1d5db; font-size: .875rem; margin-bottom: .25rem; display: inline-block; }
.form-input { background-color: #000000; border: 1px solid #374151; color: #ffffff; border-radius: .5rem; padding: .5rem .75rem; width: 100%; }
.form-input:focus { outline: none; border-color: #fb923c; box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15); }

/* Badges melhorados (discretos) */
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; border: 1px solid #374151; background-color: rgba(255,255,255,0.06); color: #e5e7eb; }
.badge-new { background: linear-gradient(180deg, #1f2937, #111827); color: #fb923c; border: 1px solid #374151; }

.input-field {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #000000;
  border: 1px solid #374151;
  color: #ffffff;
}

.input-field:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}

/* ====== Grid estilo 1.html ====== */
.forum-row-grid {
  display: grid;
  grid-template-columns: 56px minmax(320px, 2fr) 160px 280px;
  align-items: center;
  column-gap: 0.75rem;
}

@media (max-width: 768px) {
  .forum-row-grid {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.5rem;
  }
  .forum-row-grid .forum-stats,
  .forum-row-grid .forum-last {
    grid-column: 1 / -1;
  }
  .forum-last { margin-top: 0.25rem; }
}

.forum-icon img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.forum-description h4 {
  margin: 0;
  font-size: 1rem;
}
.forum-description p {
  margin: 0.25rem 0 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.2rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.forum-description { min-width: 0; }
.forum-last { min-width: 0; }
.forum-stats { white-space: nowrap; }

.forum-last {
  font-size: 0.9rem;
  color: #d1d5db;
}
.forum-last b a { color: #fb923c; }

/* ====== Contest: cards, badges e utilitários ====== */
.contest-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(10,10,10,0.88), rgba(12,12,12,0.95));
  border: 1px solid #374151; /* gray-700 */
  box-shadow: 0 12px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contest-card:hover {
  transform: translateY(-2px);
  border-color: #4b5563; /* gray-600 */
  box-shadow: 0 16px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.contest-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #f97316, #22c55e);
  opacity: 0.9;
}

/* ====== Ranking styles ====== */
.ranking-item {
  background-color: rgba(255,255,255,0.04);
  transition: background-color .18s ease, transform .18s ease;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ranking-item:hover { background-color: rgba(255,255,255,0.06); transform: translateY(-1px); }

.medal {
  width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.125rem; color: #ffffff;
}
.medal-gold { background: linear-gradient(180deg, #f59e0b, #b45309); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35); }
.medal-silver { background: linear-gradient(180deg, #9ca3af, #6b7280); box-shadow: 0 4px 10px rgba(156, 163, 175, 0.35); }
.medal-bronze { background: linear-gradient(180deg, #d97706, #92400e); box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35); }
.medal-default { background: #374151; color: #e5e7eb; }

.rank-score { font-size: 1.5rem; font-weight: 700; color: #60a5fa; }

/* Variantes de badge para status de competição */
.badge-success {
  background: rgba(34, 197, 94, 0.12); /* green-500 */
  border: 1px solid #14532d; /* green-900 */
  color: #22c55e; /* green-500 */
}
.badge-warning {
  background: rgba(245, 158, 11, 0.18); /* amber-500 */
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #f59e0b; /* amber-500 */
}
.badge-danger {
  background: rgba(239, 68, 68, 0.18); /* red-500 */
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #f87171; /* red-400 */
}
.badge-default {
  background: rgba(148, 163, 184, 0.14); /* slate-400 */
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1; /* slate-300 */
}

/* Clamp de texto para descrições longas */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Contest detail summary */
.contest-summary {
  background: rgba(20, 20, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.contest-summary .stat-label {
  color: #b0b4ba;
  font-size: 12px;
}
.contest-summary .stat-value {
  color: #fff;
  font-weight: 600;
}
.participant-avatar {
  background: #2a2d33;
}