/* ReplayArena – estilos globais */
:root {
  --primary: #FF8107;
  --primary-hover: #e57206;
  --secondary: #FFB267;
  --bg-dark: #0D0D0D;
  --bg-card: #1a1a1a;
  --bg-sidebar: #111111;
  --text-muted-custom: #aaaaaa;
  --border-color: #2a2a2a;
}

/* ── Reset / Base ────────────────────────────────────── */
body {
  background-color: var(--bg-dark);
  color: #e5e5e5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

a { color: var(--primary); }
a:hover { color: var(--secondary); }

.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background-color: var(--primary) !important; }

/* ── Botões ──────────────────────────────────────────── */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #000;
  font-weight: 600;
}
.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #000;
}
.btn-outline-primary-custom {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary-custom:hover {
  background-color: var(--primary);
  color: #000;
}

/* ── Cards ───────────────────────────────────────────── */
.card-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.card-dark .card-header {
  background-color: rgba(255,129,7,0.08);
  border-bottom: 1px solid var(--border-color);
}

/* ── Landing Page ────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a0f00 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}
.hero-title span { color: var(--primary); }

.section-dark { background-color: #111111; }
.section-darker { background-color: var(--bg-dark); }

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,129,7,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover, .plan-card.featured {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.plan-card.featured {
  background: linear-gradient(135deg, #1a0f00, #1a1a1a);
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.testimonial-card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
}

/* ── Admin Sidebar ───────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar .brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}
.admin-sidebar .nav-link {
  color: #cccccc;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,129,7,0.12);
  color: var(--primary);
}
.admin-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  margin-left: 260px;
  position: sticky;
  top: 0;
  z-index: 99;
}

@media (max-width: 768px) {
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-content, .admin-topbar { margin-left: 0; }
}

/* ── Stat cards ──────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card .stat-label { color: var(--text-muted-custom); font-size: 0.85rem; }
.stat-card .stat-icon  { font-size: 2rem; opacity: 0.6; }

/* ── Replay card (cliente) ───────────────────────────── */
.replay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.replay-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.replay-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  cursor: pointer;
}
.replay-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.replay-badge-expiry {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255,129,7,0.15);
  color: var(--secondary);
}

/* ── Video player page ───────────────────────────────── */
.video-player-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-player-wrapper video {
  width: 100%;
  max-height: 70vh;
}

/* ── Forms ───────────────────────────────────────────── */
.form-control-dark,
.form-select-dark {
  background-color: #1a1a1a;
  border-color: var(--border-color);
  color: #e5e5e5;
}
.form-control-dark:focus,
.form-select-dark:focus {
  background-color: #1a1a1a;
  border-color: var(--primary);
  color: #e5e5e5;
  box-shadow: 0 0 0 0.2rem rgba(255,129,7,0.25);
}
.form-control-dark::placeholder { color: #666; }

/* ── Tables ──────────────────────────────────────────── */
.table-dark-custom {
  --bs-table-bg: var(--bg-card);
  --bs-table-striped-bg: #1f1f1f;
  --bs-table-border-color: var(--border-color);
  color: #e5e5e5;
}

/* ── Login pages ─────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a0f00 0%, #0D0D0D 70%);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.login-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.25rem;
}
.login-sub {
  text-align: center;
  color: var(--text-muted-custom);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
