/* ===== TOKENS ===== */
:root {
  --gold:           #ffbb29;
  --gold-dark:      #c9920a;
  --gold-light:     #ffd166;
  --gold-gradient:  linear-gradient(135deg, #ffd166 0%, #ffbb29 55%, #c9920a 100%);
  --gold-glow:      0 0 14px rgba(255, 187, 41, 0.45);

  --bg-card:        rgba(10, 10, 16, 0.78);
  --bg-card-hover:  rgba(20, 20, 30, 0.88);

  --text-primary:   #f1f1f1;
  --text-muted:     #9a9c9d;

  --border-subtle:  rgba(255, 187, 41, 0.15);
  --border-gold:    rgba(255, 187, 41, 0.45);
  --border-dim:     rgba(255, 255, 255, 0.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --blur: blur(14px);
}

/* ===== TYPOGRAPHY ===== */
body {
  color: var(--text-primary);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(255, 187, 41, 0.25);
  color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(255, 187, 41, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 187, 41, 0.6); }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(5, 5, 8, 0.9) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid var(--border-gold) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55) !important;
  z-index: 1040 !important;
}

.navbar .dropdown-menu {
  z-index: 1050 !important;
}

.navbar .nav-link {
  color: var(--text-primary) !important;
  transition: var(--transition);
}

.navbar .nav-link:hover {
  color: var(--gold) !important;
  text-decoration: none !important;
}

.navbar .nav-link:hover .fas,
.navbar .nav-link:hover .far,
.navbar .nav-link:hover .fab {
  color: var(--gold) !important;
}

/* ===== DISCORD BUTTON ===== */
.discord-btn {
  background: rgba(88, 101, 242, 0.12) !important;
  border: 1px solid rgba(88, 101, 242, 0.35) !important;
  color: rgba(200, 210, 255, 0.85) !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  transition: var(--transition) !important;
}

.discord-btn:hover {
  background: #5865f2 !important;
  border-color: #5865f2 !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.45) !important;
  text-decoration: none !important;
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
  background: rgba(8, 8, 14, 0.96) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55) !important;
}

.dropdown-item {
  color: var(--text-primary) !important;
  font-size: 0.88rem;
  font-weight: 400;
  transition: var(--transition);
  padding-left: 16px !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active {
  background: rgba(255, 187, 41, 0.08) !important;
  color: var(--gold) !important;
  padding-left: 20px !important;
}

.dropdown-divider {
  border-color: var(--border-subtle) !important;
}

/* ===== TABLES ===== */
.table-dark {
  --bs-table-bg: var(--bg-card);
  --bs-table-hover-bg: rgba(255, 187, 41, 0.04);
}

.table-dark thead th {

  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold) !important;
  border-bottom: 2px solid var(--border-gold) !important;
  padding: 14px 10px;
  background: rgba(5, 5, 10, 0.92) !important;
}

.table-dark tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border-dim) !important;
}

.table-dark tbody tr:hover {
  background-color: rgba(255, 187, 41, 0.04) !important;
  box-shadow: inset 3px 0 0 var(--gold);
}

.table-dark tbody td {
  padding: 12px 10px;
  vertical-align: middle;
}

.table-dark tbody td:first-child {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.table-dark a,
.table-dark a:visited {
  color: var(--text-primary) !important;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.table-dark a:hover {
  color: var(--gold) !important;
}

/* rounded wrapper */
.rounded-3 {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--border-subtle) !important;
}

/* ===== POPOVERS ===== */
.popover {
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
}

.popover-header {
  background: var(--gold-gradient) !important;
  color: #1a1000 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
  border-bottom: none !important;
}

.popover-body {
  background: rgba(8, 8, 14, 0.97) !important;
  color: var(--text-primary) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

/* ===== FORM CONTROLS ===== */
.form-check-input {
  border-color: var(--border-gold) !important;
}

.form-check-input:checked {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 187, 41, 0.2) !important;
}

/* ===== BUTTONS (gold variants) ===== */
.btn-warning {
  background: var(--gold-gradient) !important;
  border: none !important;
  color: #1a1000 !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 10px rgba(255, 187, 41, 0.2);
  transition: var(--transition);
}

.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: var(--gold-glow) !important;
}

/* ===== FOOTER ===== */
.footer {
  color: var(--text-muted) !important;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  opacity: 0.7;
}
