:root {
  --cg-primary: #1b4332;
  --cg-primary-dark: #112d22;
  --cg-primary-light: #2d6a4f;
  --cg-forest: #1b4332;
  --cg-forest-hover: #245741;
  --cg-bone-white: #f7f6f0;
  --cg-bone-card: #ffffff;
  --cg-bone-border: #e6e3da;
  --cg-text-dark: #1c1917;
  --cg-text-muted: #64748b;
  --cg-gold: #c5a059;
  --cg-gold-light: #f7e7a9;
  --cg-gold-dark: #aa8619;
  --cg-bg-dark: #0a1411;
  --cg-card-bg: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--cg-bone-white) !important;
  color: var(--cg-text-dark) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.bg-casino {
  background-color: var(--cg-primary) !important;
  background-image: linear-gradient(135deg, var(--cg-primary) 0%, var(--cg-primary-dark) 100%);
}

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

.bg-forest {
  background-color: var(--cg-forest) !important;
}

.btn-forest {
  background-color: var(--cg-forest) !important;
  border-color: var(--cg-forest) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.btn-forest:hover, .btn-forest:focus {
  background-color: var(--cg-forest-hover) !important;
  border-color: var(--cg-forest-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25) !important;
}

.btn-outline-forest {
  border: 1px solid var(--cg-forest) !important;
  color: var(--cg-forest) !important;
  background-color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.btn-outline-forest:hover, .btn-outline-forest:focus {
  background-color: var(--cg-forest) !important;
  border-color: var(--cg-forest) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2) !important;
}

.btn-scene.active {
  background-color: var(--cg-forest) !important;
  color: #ffffff !important;
  border-color: var(--cg-forest) !important;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25) !important;
}
.btn-scene.active i, .btn-scene.active span {
  color: #ffffff !important;
}

/* Modales y Formularios en Blanco Hueso con Verde Bosque */
.modal-content {
  background-color: #ffffff !important;
  color: #1c1917 !important;
  border: 1px solid var(--cg-bone-border) !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

.modal-header {
  border-bottom: 1px solid var(--cg-bone-border) !important;
  background-color: #fcfbfa !important;
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
}

.modal-header .modal-title {
  color: var(--cg-forest) !important;
  font-weight: 700;
}

.modal-footer {
  border-top: 1px solid var(--cg-bone-border) !important;
  background-color: #fcfbfa !important;
}

/* Menús Desplegables Elegantes */
.dropdown-menu:not(.dropdown-menu-dark) {
  background-color: #ffffff !important;
  color: #1c1917 !important;
  border: 1px solid var(--cg-bone-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09) !important;
}

.dropdown-menu:not(.dropdown-menu-dark) .dropdown-item {
  color: #334155 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.dropdown-menu:not(.dropdown-menu-dark) .dropdown-item:hover,
.dropdown-menu:not(.dropdown-menu-dark) .dropdown-item:focus {
  background-color: rgba(27, 67, 50, 0.06) !important;
  color: var(--cg-forest) !important;
}

/* Inputs, Textareas y Selects */
.form-control, .form-select {
  background-color: #ffffff !important;
  color: #1c1917 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.9rem !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--cg-forest) !important;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15) !important;
  background-color: #ffffff !important;
  color: #1c1917 !important;
}

.form-control::placeholder {
  color: #94a3b8 !important;
}

.form-label {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.35rem !important;
}

/* Tarjetas y Tablas */
.card {
  background-color: #ffffff !important;
  border: 1px solid var(--cg-bone-border) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--cg-bone-border) !important;
}

.table {
  color: #1c1917 !important;
  margin-bottom: 0 !important;
}

.table thead th {
  background-color: #fcfbfa !important;
  color: #475569 !important;
  border-bottom: 2px solid var(--cg-bone-border) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.table-light {
  background-color: #fcfbfa !important;
  color: #475569 !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(27, 67, 50, 0.03) !important;
}

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

.bg-gold {
  background-color: var(--cg-gold) !important;
}

.btn-casino {
  background-color: var(--cg-primary);
  border-color: var(--cg-primary);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-casino:hover, .btn-casino:focus {
  background-color: var(--cg-primary-light);
  border-color: var(--cg-primary-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 61, 47, 0.25);
}

.btn-gold {
  background-color: var(--cg-gold);
  border-color: var(--cg-gold-dark);
  color: #1a1a1a;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
}

.btn-gold:hover, .btn-gold:focus {
  background-color: var(--cg-gold-light);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.card {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

/* Big Screen presentation view */
.big-screen-body {
  background-color: var(--cg-bg-dark);
  color: #f8f9fa;
  overflow-x: hidden;
}

.big-screen-header {
  background: linear-gradient(90deg, #091c16 0%, #163e32 50%, #091c16 100%);
  border-bottom: 2px solid var(--cg-gold);
}

.countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

.gold-badge {
  background: linear-gradient(135deg, var(--cg-gold) 0%, var(--cg-gold-dark) 100%);
  color: #000;
  font-weight: 800;
  border-radius: 0.5rem;
  padding: 0.25rem 0.6rem;
}

/* Winner Celebration Animation */
@keyframes winnerPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(212, 175, 55, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
}

.winner-card-celebrate {
  animation: winnerPulse 2.5s infinite ease-in-out;
  border: 3px solid var(--cg-gold) !important;
  background: linear-gradient(135deg, #184336 0%, #0a2019 100%) !important;
}

/* Mobile participant portal */
.touch-lot-card {
  border: 2px solid #e9ecef;
  transition: border-color 0.2s;
}

.touch-lot-card:hover, .touch-lot-card.active {
  border-color: var(--cg-primary);
}

.progress-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* =====================================================================
   ADMIN BACKOFFICE NAVBAR (Executive SaaS / Linear & Stripe Style)
   ===================================================================== */
.admin-navbar-wrapper {
  z-index: 1030;
}

.admin-navbar {
  background: #0b1120 !important; /* Premium dark navy / obsidian */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-height: 56px;
}

.admin-badge {
  background: #d4af37;
  color: #0b1120;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
}

.admin-brand-title {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 991.98px) {
  .admin-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    gap: 0.35rem;
  }
}

.admin-nav-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.45rem !important;
  white-space: nowrap !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  padding: 0.45rem 0.65rem !important;
  border-radius: 6px !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.admin-nav-link i {
  font-size: 0.88rem;
  color: #64748b;
  transition: color 0.15s ease;
  line-height: 1;
}

.admin-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.admin-nav-link:hover i {
  color: #d4af37 !important;
}

.admin-nav-link.active,
.admin-nav-link:focus {
  color: #ffffff !important;
  background: rgba(212, 175, 55, 0.12) !important;
  font-weight: 600 !important;
}

.admin-nav-link.active i {
  color: #d4af37 !important;
}

/* User & Profile Controls */
.admin-web-btn {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.6rem !important;
  white-space: nowrap !important;
}

.admin-web-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.admin-user-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.admin-user-btn:hover,
.admin-user-btn:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.admin-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d4af37;
  color: #0b1120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1;
}

.admin-user-name {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.8rem;
}

