/* ================================================================
   Legend of Mir 2 — Portal Theme
   Warm dark palette: deep black, aged gold, blood crimson
   ================================================================ */

:root {
  --mir-void:         #040302;
  --mir-bg:           #0c0806;
  --mir-bg-soft:      #14100a;
  --mir-bg-raised:    #1c1610;
  --mir-bg-panel:     rgba(8, 6, 3, 0.92);

  --mir-text:         #ddd0b0;
  --mir-text-muted:   #7a6e58;
  --mir-text-dim:     #4a4035;

  --mir-gold:         #c8943c;
  --mir-gold-lt:      #e8c064;
  --mir-gold-bright:  #f5d98a;
  --mir-gold-border:  rgba(200, 148, 60, 0.32);
  --mir-gold-glow:    rgba(200, 148, 60, 0.15);

  --mir-crimson:      #8b1a1a;
  --mir-crimson-lt:   #b52828;
  --mir-crimson-glow: rgba(139, 26, 26, 0.28);

  --mir-shadow:       0 4px 24px rgba(0, 0, 0, 0.7);
  --mir-glow-gold:    0 0 28px rgba(200, 148, 60, 0.18), 0 0 8px rgba(200, 148, 60, 0.10);
}

/* ----------------------------------------------------------------
   Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin: 0;
  padding-bottom: 80px;
  color: var(--mir-text);
  background-color: var(--mir-bg);
  background-image:
    radial-gradient(ellipse 1300px 650px at 78% -5%,  rgba(139, 26, 26, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse  800px 550px at  8% 92%,  rgba(90,  45, 10, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse  700px 500px at 50% 108%, rgba(70,  30,  5, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #040302 0%, #0c0806 35%, #0a0705 70%, #040302 100%);
  font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.03em;
  color: var(--mir-gold-lt);
}
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 500; }

p { color: var(--mir-text); }

a {
  color: var(--mir-gold-lt);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--mir-gold-bright);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   Form controls
   ---------------------------------------------------------------- */
.form-control,
.form-select {
  background-color: rgba(10, 7, 3, 0.88);
  border: 1px solid rgba(200, 148, 60, 0.28);
  color: var(--mir-text);
  border-radius: 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
  background-color: rgba(14, 10, 4, 0.96);
  border-color: var(--mir-gold);
  color: var(--mir-text);
  box-shadow: 0 0 0 3px rgba(200, 148, 60, 0.18);
  outline: none;
}
.form-control::placeholder { color: var(--mir-text-dim); }
.form-label {
  color: var(--mir-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.form-text {
  color: var(--mir-text-dim);
  font-size: 0.76rem;
}
.input-group .form-control { border-radius: 5px 0 0 5px; }
.input-group .btn           { border-radius: 0 5px 5px 0; }

/* Focus ring (accessibility) */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(200, 148, 60, 0.22);
}

/* ----------------------------------------------------------------
   Alerts
   ---------------------------------------------------------------- */
.alert-danger  { background: rgba(100,20,20,0.32); border-color: rgba(180,40,40,0.42);  color: #f0a8a8; }
.alert-success { background: rgba(20,60,20,0.32);  border-color: rgba(40,120,40,0.42);  color: #96dc96; }
.alert-info    { background: rgba(20,50,70,0.32);  border-color: rgba(40,100,140,0.42); color: #96ccde; }
.alert-warning { background: rgba(80,55,10,0.32);  border-color: rgba(180,130,20,0.42); color: var(--mir-gold-lt); }

/* ----------------------------------------------------------------
   Buttons — primary (gold)
   ---------------------------------------------------------------- */
.btn-primary,
.btn-success,
.btn-realm-primary,
.btn-mir-primary {
  background: linear-gradient(135deg, #9e6e1e 0%, #c89038 45%, #9e6e1e 100%);
  color: #080501 !important;
  border: 1px solid #b07828;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(200, 148, 60, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.2s;
  padding: 0.55rem 1.5rem;
}
.btn-primary:hover,
.btn-success:hover,
.btn-realm-primary:hover,
.btn-mir-primary:hover {
  background: linear-gradient(135deg, #b88030 0%, #e0aa48 45%, #b88030 100%);
  color: #040300 !important;
  border-color: var(--mir-gold-lt);
  box-shadow: 0 4px 22px rgba(200, 148, 60, 0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-primary:active,
.btn-success:active,
.btn-mir-primary:active { transform: translateY(0); }

/* Danger / red outline */
.btn-danger,
.btn-mir-secondary {
  background: rgba(100, 15, 15, 0.55);
  color: #f0b0b0 !important;
  border: 1px solid rgba(180, 40, 40, 0.55);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-danger:hover,
.btn-mir-secondary:hover {
  background: rgba(140, 20, 20, 0.72);
  color: #ffd0d0 !important;
  border-color: rgba(200, 50, 50, 0.75);
  transform: translateY(-1px);
}

/* Ghost / outline (gold) */
.btn-outline-primary,
.btn-outline-light,
.btn-realm-outline,
.btn-realm-ghost,
.btn-mir-ghost {
  background: rgba(18, 13, 6, 0.6);
  color: rgba(220, 192, 135, 0.78) !important;
  border: 1px solid rgba(200, 148, 60, 0.38);
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
  padding: 0.55rem 1.5rem;
}
.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-realm-outline:hover,
.btn-realm-ghost:hover,
.btn-mir-ghost:hover {
  background: rgba(28, 20, 8, 0.82);
  color: var(--mir-gold-lt) !important;
  border-color: rgba(200, 148, 60, 0.7);
}

/* Small variants */
.btn-sm {
  font-size: 0.74rem;
  padding: 0.35rem 0.85rem;
}

/* Outline-secondary (used in admin) */
.btn-outline-secondary {
  background: transparent;
  color: var(--mir-text-muted) !important;
  border-color: rgba(120, 100, 70, 0.4);
  font-size: 0.8rem;
}
.btn-outline-secondary:hover {
  background: rgba(120, 100, 70, 0.15);
  color: var(--mir-text) !important;
  border-color: rgba(150, 120, 80, 0.6);
}

/* Warning repurposed as crimson register CTA */
.btn-warning {
  background: linear-gradient(135deg, #7a1515, #a82020);
  color: #f8d8d8 !important;
  border-color: rgba(160, 40, 40, 0.6);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #951c1c, #c42828);
  color: #ffe8e8 !important;
  border-color: rgba(200, 50, 50, 0.8);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */
.mir-nav,
.navbar.navbar-dark.bg-dark {
  background: linear-gradient(180deg, #080503 0%, #0e0a06 100%) !important;
  border-bottom: 1px solid var(--mir-gold-border) !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(200, 148, 60, 0.06);
  padding: 0.4rem 0;
}

.navbar-brand {
  font-family: 'Cinzel', serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--mir-gold-lt) !important;
  letter-spacing: 0.1em;
  text-shadow: 0 0 22px rgba(200, 148, 60, 0.5), 0 2px 6px rgba(0, 0, 0, 0.8);
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.navbar-brand:hover { color: var(--mir-gold-bright) !important; }

.navbar-dark .nav-link,
.mir-nav .nav-link {
  color: rgba(218, 196, 155, 0.72) !important;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem !important;
  transition: color 0.2s;
  position: relative;
}
.navbar-dark .nav-link::after,
.mir-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 55%;
  height: 1px;
  background: var(--mir-gold);
  transition: transform 0.22s;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus,
.mir-nav .nav-link:hover {
  color: var(--mir-gold-lt) !important;
}
.navbar-dark .nav-link:hover::after,
.mir-nav .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.dropdown-menu {
  background: #100c06;
  border: 1px solid var(--mir-gold-border);
  border-radius: 6px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.72);
  padding: 0.35rem 0;
}
.dropdown-item {
  color: var(--mir-text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding: 0.48rem 1rem;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(200, 148, 60, 0.12);
  color: var(--mir-gold-lt);
}

.navbar-toggler {
  border-color: var(--mir-gold-border) !important;
}

/* ----------------------------------------------------------------
   Bootstrap .card overrides (admin + dashboard pages)
   ---------------------------------------------------------------- */
.card {
  background: rgba(10, 7, 4, 0.88);
  border: 1px solid var(--mir-gold-border);
  border-radius: 8px;
  color: var(--mir-text);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.card-header {
  background: rgba(200, 148, 60, 0.07);
  border-bottom: 1px solid var(--mir-gold-border);
  color: var(--mir-gold-lt);
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.card-header.bg-dark  { background: rgba(200, 148, 60, 0.07) !important; }
.card-header.bg-warning { background: rgba(139, 26, 26, 0.35) !important; color: #f0c0c0; border-bottom-color: rgba(180,40,40,0.4); }
.card-footer {
  background: rgba(200, 148, 60, 0.04);
  border-top: 1px solid var(--mir-gold-border);
  color: var(--mir-text-muted);
  font-size: 0.85rem;
}
.card-body { background: transparent; }

/* ----------------------------------------------------------------
   Mir-styled form card (login / register)
   ---------------------------------------------------------------- */
.mir-card {
  position: relative;
  background: var(--mir-bg-panel);
  border: 1px solid var(--mir-gold-border);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.72), var(--mir-glow-gold);
}
/* Four corner accent marks */
.mir-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--mir-gold);
  border-left: 2px solid var(--mir-gold);
  border-radius: 8px 0 0 0;
  pointer-events: none;
}
.mir-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--mir-gold);
  border-right:  2px solid var(--mir-gold);
  border-radius: 0 0 8px 0;
  pointer-events: none;
}
.mir-card-corner-tr,
.mir-card-corner-bl {
  position: absolute;
  pointer-events: none;
}
.mir-card-corner-tr {
  top: -1px; right: -1px;
  width: 20px; height: 20px;
  border-top:   2px solid var(--mir-gold);
  border-right: 2px solid var(--mir-gold);
  border-radius: 0 8px 0 0;
}
.mir-card-corner-bl {
  bottom: -1px; left: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--mir-gold);
  border-left:   2px solid var(--mir-gold);
  border-radius: 0 0 0 8px;
}

.mir-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mir-gold-lt);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 22px rgba(200, 148, 60, 0.35);
  margin-bottom: 0.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--mir-gold-border);
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.realm-hero,
.mir-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mir-gold-border);
  border-radius: 12px;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7), inset 0 0 120px rgba(0, 0, 0, 0.4);
}

.realm-hero__backdrop,
.mir-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(4,  3,  2, 0.94) 0%,
      rgba(4,  3,  2, 0.68) 48%,
      rgba(4,  3,  2, 0.88) 100%),
    radial-gradient(ellipse 900px 700px at 10% 110%,
      rgba(90, 38, 8, 0.65) 0%, transparent 58%),
    radial-gradient(ellipse 800px 600px at 88% -15%,
      rgba(110, 22, 22, 0.40) 0%, transparent 52%),
    radial-gradient(ellipse 600px 450px at 55% 55%,
      rgba(60, 28, 5, 0.30) 0%, transparent 62%),
    linear-gradient(170deg,
      #060402 0%, #1a0e07 38%, #0e0b07 68%, #050302 100%);
}

/* golden top-edge shimmer */
.realm-hero::before,
.mir-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--mir-gold) 40%, var(--mir-gold) 60%, transparent 100%);
  opacity: 0.45;
  z-index: 2;
}

.realm-hero__inner,
.mir-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem 3.5rem;
  max-width: 680px;
}
@media (min-width: 992px) {
  .realm-hero__inner,
  .mir-hero__inner { padding: 4rem 4rem 4.5rem; }
}

/* kicker badge */
.realm-kicker {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(200, 148, 60, 0.45);
  color: var(--mir-gold);
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  background: rgba(200, 148, 60, 0.06);
}

/* decorative rule */
.mir-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 0.9rem;
  color: var(--mir-gold);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  opacity: 0.55;
}
.mir-divider::before,
.mir-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mir-gold) 45%, var(--mir-gold) 55%, transparent);
  opacity: 0.55;
}

.realm-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 700;
  color: var(--mir-gold-lt);
  line-height: 1.14;
  margin: 0.5rem 0 0.65rem;
  text-shadow: 0 0 45px rgba(200, 148, 60, 0.4), 0 4px 12px rgba(0, 0, 0, 0.85);
}

.realm-subtitle {
  color: rgba(210, 188, 140, 0.68);
  font-size: 1.03rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.realm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ----------------------------------------------------------------
   Stat strip (hero bottom)
   ---------------------------------------------------------------- */
.realm-meta,
.mir-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}

.realm-meta__card,
.mir-stat {
  border: 1px solid rgba(200, 148, 60, 0.20);
  background: rgba(6, 4, 2, 0.72);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
}
.realm-meta__label,
.mir-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mir-text-dim);
  margin-bottom: 0.12rem;
}
.realm-meta__value,
.mir-stat__value {
  font-size: 0.92rem;
  color: var(--mir-text-muted);
  font-weight: 500;
}

/* ----------------------------------------------------------------
   Panel grid (homepage content cards)
   ---------------------------------------------------------------- */
.realm-grid,
.mir-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1rem;
}

.realm-panel,
.mir-panel {
  position: relative;
  border: 1px solid rgba(200, 148, 60, 0.20);
  background: rgba(10, 7, 4, 0.82);
  border-radius: 8px;
  padding: 1.3rem 1.15rem 1.5rem;
  transition: border-color 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.realm-panel:hover,
.mir-panel:hover {
  border-color: rgba(200, 148, 60, 0.48);
  box-shadow: 0 0 22px rgba(200, 148, 60, 0.08);
}
/* top gold accent bar */
.realm-panel::before,
.mir-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mir-gold) 40%, var(--mir-gold) 60%, transparent);
  opacity: 0.35;
}

.realm-panel h3,
.mir-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: var(--mir-gold-lt);
}
.realm-panel p,
.mir-panel p {
  color: var(--mir-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.realm-link,
.mir-link {
  color: var(--mir-gold);
  font-size: 0.76rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.07em;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.realm-link:hover,
.mir-link:hover { color: var(--mir-gold-bright); }

/* ----------------------------------------------------------------
   Feature strip
   ---------------------------------------------------------------- */
.realm-feature-strip,
.mir-feature-strip {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.realm-feature,
.mir-feature {
  border-left: 2px solid var(--mir-gold);
  padding: 0.7rem 0.95rem;
  background: rgba(10, 7, 3, 0.62);
  border-radius: 0 6px 6px 0;
}
.realm-feature h4,
.mir-feature h4 {
  font-size: 0.92rem;
  margin-bottom: 0.28rem;
  font-weight: 600;
  color: var(--mir-gold-lt);
}
.realm-feature p,
.mir-feature p {
  color: var(--mir-text-muted);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   Section heading
   ---------------------------------------------------------------- */
.mir-section-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mir-gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.mir-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--mir-gold-border) 0%, transparent 100%);
}

/* ----------------------------------------------------------------
   Tables
   ---------------------------------------------------------------- */
.table {
  color: var(--mir-text);
  border-color: rgba(200, 148, 60, 0.14);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(200, 148, 60, 0.03);
  --bs-table-hover-bg: rgba(200, 148, 60, 0.06);
  --bs-table-border-color: rgba(200, 148, 60, 0.12);
  --bs-table-color: var(--mir-text);
}
.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: rgba(200, 148, 60, 0.1);
  color: var(--mir-text);
  padding: 0.58rem 0.75rem;
}
.table th {
  color: var(--mir-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  border-bottom-color: var(--mir-gold-border) !important;
}
.table-dark { --bs-table-bg: rgba(8, 6, 3, 0.72); }
.table-dark th, .table-dark td { color: var(--mir-text-muted); }
.table-bordered { border-color: var(--mir-gold-border); }
.table-bordered > :not(caption) > * > * { border-color: rgba(200, 148, 60, 0.14); }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.page-link {
  background-color: rgba(10, 7, 3, 0.72);
  border-color: var(--mir-gold-border);
  color: var(--mir-text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.page-link:hover {
  background-color: rgba(200, 148, 60, 0.12);
  border-color: var(--mir-gold);
  color: var(--mir-gold-lt);
}
.page-item.active .page-link {
  background-color: rgba(200, 148, 60, 0.22);
  border-color: var(--mir-gold);
  color: var(--mir-gold-lt);
}
.page-item.disabled .page-link {
  background-color: rgba(6, 4, 2, 0.5);
  border-color: rgba(200, 148, 60, 0.1);
  color: var(--mir-text-dim);
}

/* ----------------------------------------------------------------
   Badges
   ---------------------------------------------------------------- */
.badge.bg-primary   { background: rgba(200, 148, 60, 0.22) !important; color: var(--mir-gold-lt);   border: 1px solid var(--mir-gold-border); }
.badge.bg-success   { background: rgba(30, 80, 30, 0.35) !important;   color: #8cd88c; }
.badge.bg-danger    { background: rgba(100, 20, 20, 0.38) !important;  color: #f0a0a0; }
.badge.bg-warning   { background: rgba(80, 55, 10, 0.38) !important;   color: var(--mir-gold-lt); }
.badge.bg-secondary { background: rgba(40, 30, 20, 0.52) !important;   color: var(--mir-text-muted); }
.badge.bg-dark      { background: rgba(20, 14, 6, 0.75) !important;    color: var(--mir-text-dim); }

/* ----------------------------------------------------------------
   Admin sidebar (overridden by admin.css too)
   ---------------------------------------------------------------- */
.admin-sidebar-nav {
  background: rgba(8, 6, 3, 0.6);
  border-right: 1px solid var(--mir-gold-border) !important;
}
.admin-sidebar-nav .nav-link { color: var(--mir-text-muted); }
.admin-sidebar-nav .nav-link:hover { color: var(--mir-gold-lt); }
.admin-sidebar-nav .nav-link.active { color: var(--mir-gold-lt); font-weight: 600; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.mir-footer,
footer.border-top {
  border-top: 1px solid var(--mir-gold-border) !important;
  padding: 1.1rem 0;
  text-align: center;
  color: var(--mir-text-dim);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-family: 'Cinzel', serif;
  background: linear-gradient(0deg, rgba(4, 3, 2, 0.6) 0%, transparent 100%);
}

/* ----------------------------------------------------------------
   Utility
   ---------------------------------------------------------------- */
hr, .mir-separator {
  border: none;
  border-top: 1px solid var(--mir-gold-border);
  opacity: 1;
  margin: 1.4rem 0;
}

.text-muted { color: var(--mir-text-muted) !important; }

dt { color: var(--mir-text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }
dd { color: var(--mir-text); }

/* form floating placeholder alignment */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder { color: var(--mir-text-dim); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder { text-align: start; }
