/* ============================================================
   Forever Blacklisted - WoW theme
   ============================================================ */

:root {
  --fbl-gold:        #f0b429;
  --fbl-gold-light:  #ffd100;
  --fbl-gold-dark:   #8a6d3b;
  --fbl-bg:          #0b0906;
  --fbl-panel:       #1c1710;
  --fbl-panel-2:     #241d13;
  --fbl-border:      #3a2f1c;
  --fbl-text:        #e8dcc0;
  --fbl-text-dim:    #b3a488;
  --fbl-bronze:      #7a5c2e;
  --horde:           #c41e1e;
  --horde-dark:      #6e0f0f;
  --alliance:        #2c5fb8;
  --alliance-dark:   #16305e;
}

html, body {
  background: var(--fbl-bg);
  color: var(--fbl-text);
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(240,180,41,.1), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(20,70,124,.12), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.008) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.008) 0 2px, transparent 2px 6px),
    var(--fbl-bg);
}

h1, h2, h3, .fbl-title {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: .04em;
}

/* ---------- contrast: muted grays readable on dark bg ---------- */
.text-secondary, .text-muted,
.form-text, .form-label { color: var(--fbl-text-dim) !important; }
::placeholder { color: #8f8065 !important; opacity: 1; }

/* ---------- navbar ---------- */
.fbl-navbar {
  background: linear-gradient(180deg, #2a2216 0%, #191410 55%, #0f0c08 100%);
  border-bottom: 2px solid var(--fbl-gold-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,.7), inset 0 -1px 0 rgba(240,180,41,.35);
}
.fbl-navbar .navbar-brand {
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: var(--fbl-gold) !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(240,180,41,.35);
}
.fbl-navbar .nav-link {
  color: var(--fbl-text);
  font-family: "Cinzel", serif;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 4px;
}
.fbl-navbar .nav-link:hover,
.fbl-navbar .nav-link.active {
  color: var(--fbl-gold-light);
  border-color: var(--fbl-gold-dark);
  background: linear-gradient(180deg, rgba(240,180,41,.14), rgba(240,180,41,.03));
}

/* ---------- panels ---------- */
.fbl-panel {
  background: linear-gradient(180deg, var(--fbl-panel-2), var(--fbl-panel));
  border: 1px solid var(--fbl-border);
  border-radius: .6rem;
  box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0,0,0,.5);
  padding: 1.25rem;
}
.fbl-panel .fbl-panel-title {
  color: var(--fbl-gold);
  border-bottom: 1px solid var(--fbl-border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

/* ---------- buttons ---------- */
.btn-fbl {
  background: linear-gradient(180deg, #3d3423, #262014);
  border: 1px solid var(--fbl-gold-dark);
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-weight: 600;
}
.btn-fbl:hover {
  background: linear-gradient(180deg, #4a4028, #2d2517);
  color: #ffe380;
  border-color: var(--fbl-gold);
}
.btn-horde {
  background: linear-gradient(180deg, #8a1515, #5c0d0d);
  border: 1px solid #ff5c5c55;
  color: #ffd9d9;
  font-family: "Cinzel", serif;
  font-weight: 600;
}
.btn-horde:hover { background: #a01a1a; color: #fff; }
.btn-alliance {
  background: linear-gradient(180deg, #1d4690, #122c5c);
  border: 1px solid #6ea8ff55;
  color: #d9e6ff;
  font-family: "Cinzel", serif;
  font-weight: 600;
}
.btn-alliance:hover { background: #2555ab; color: #fff; }

/* ---------- faction cards ---------- */
.faction-card {
  border-radius: .8rem;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px solid var(--fbl-border);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.faction-card:hover {
  transform: translateY(-4px);
}
.faction-horde {
  background: radial-gradient(120% 120% at 50% 0%, rgba(196,30,30,.35), rgba(20,8,8,.9) 70%);
  border-color: #7a1a1a;
}
.faction-horde:hover { box-shadow: 0 0 30px rgba(196,30,30,.35); }
.faction-alliance {
  background: radial-gradient(120% 120% at 50% 0%, rgba(44,95,184,.35), rgba(8,12,24,.9) 70%);
  border-color: #1a3f7a;
}
.faction-alliance:hover { box-shadow: 0 0 30px rgba(44,95,184,.4); }
.faction-card h3 { color: #fff; }
.faction-horde h3    { text-shadow: 0 0 14px rgba(255,80,80,.7); }
.faction-alliance h3 { text-shadow: 0 0 14px rgba(110,168,255,.8); }
.faction-sigil { font-size: 3rem; line-height: 1; margin-bottom: .75rem; }

/* faction theme accent for logged-in pages */
.theme-horde    .fbl-panel-title,
.theme-horde    .accent { color: #ff8a8a; }
.theme-alliance .fbl-panel-title,
.theme-alliance .accent { color: #8ab8ff; }

/* ---------- forms ---------- */
.form-control, .form-select {
  background: #101014;
  border: 1px solid var(--fbl-border);
  color: var(--fbl-text);
}
.form-control:focus, .form-select:focus {
  background: #141419;
  color: var(--fbl-text);
  border-color: var(--fbl-gold);
  box-shadow: 0 0 0 .2rem rgba(248,183,0,.15);
}
.form-label { color: #b9b9c0; }

/* ---------- tables ---------- */
.table-fbl {
  color: var(--fbl-text);
  --bs-table-color: var(--fbl-text);
  --bs-table-bg: transparent;
}
.table-fbl td { color: var(--fbl-text) !important; }
.table-fbl th {
  color: var(--fbl-gold);
  font-family: "Cinzel", serif;
  font-size: .85rem;
  border-bottom: 2px solid var(--fbl-gold-dark) !important;
}
.table-fbl td { border-color: #26262e !important; vertical-align: middle; }
.table-fbl tr:hover td { background: rgba(248,183,0,.05); }

.badge-black { background: #5c0d0d; color: #ffb3b3; border: 1px solid #a03030; }
.badge-good  { background: #0d3d1a; color: #a9f0bd; border: 1px solid #2c7a44; }
.badge-player{ background: #2a2a33; color: #cfcfe0; border: 1px solid #55556a; }
.badge-guild { background: #33284a; color: #d5c6ff; border: 1px solid #6a5599; }
.badge-group { background: #3d3423; color: #ffd97a; border: 1px solid #8a6d00; }
.badge-realm { background: #16305e; color: #9fc1ff; border: 1px solid #2c5fb8; }

/* ---------- entry modal ---------- */
.entry-link { color: var(--fbl-text); text-decoration: none; cursor: pointer; }
.entry-link:hover { color: var(--fbl-gold-light); text-decoration: underline; }
.fbl-modal {
  background: var(--fbl-panel);
  border: 1px solid var(--fbl-gold-dark);
  color: var(--fbl-text);
}
.fbl-modal .modal-header { border-bottom-color: var(--fbl-border); }
.em-note {
  border-left: 2px solid var(--fbl-gold-dark);
  background: #121216;
  padding: .35rem .6rem;
  border-radius: 0 .3rem .3rem 0;
  word-break: break-word;
}

/* ---------- bug tracker status ---------- */
.st-open     { background: #4a3405; color: #ffd97a; border: 1px solid #8a6d00; }
.st-progress { background: #16305e; color: #9fc1ff; border: 1px solid #2c5fb8; }
.st-fixed    { background: #0d3d1a; color: #a9f0bd; border: 1px solid #2c7a44; }
.st-closed   { background: #2a2a33; color: #cfcfe0; border: 1px solid #55556a; }
.st-declined { background: #5c0d0d; color: #ffb3b3; border: 1px solid #a03030; }

/* ---------- token box ---------- */
.token-box {
  font-family: ui-monospace, monospace;
  background: #0a0a0d;
  border: 1px dashed var(--fbl-gold-dark);
  border-radius: .4rem;
  padding: .6rem .8rem;
  word-break: break-all;
  color: var(--fbl-gold-light);
}

/* ---------- docs ---------- */
.fbl-docs h1, .fbl-docs h2, .fbl-docs h3 { color: var(--fbl-gold); margin-top: 1.5rem; }
.fbl-docs pre {
  background: #0a0a0d;
  border: 1px solid var(--fbl-border);
  border-radius: .5rem;
  padding: 1rem;
  overflow-x: auto;
}
.fbl-docs code { color: #ffd97a; }
.fbl-docs table { width: 100%; margin: 1rem 0; }
.fbl-docs th, .fbl-docs td {
  border: 1px solid var(--fbl-border);
  padding: .4rem .6rem;
}
.fbl-docs th { background: #1c1c22; color: var(--fbl-gold); }

/* ---------- hero ---------- */
.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--fbl-gold);
  text-shadow: 0 0 25px rgba(248,183,0,.45), 0 2px 0 #000;
}
.hero-sub { color: #c6c6d2; }

/* ---------- footer ---------- */
.fbl-footer {
  border-top: 1px solid var(--fbl-border);
  color: #9c9ca8;
  font-size: .85rem;
}
.fbl-footer a { color: #b3b3c0 !important; }
.fbl-footer a:hover { color: var(--fbl-gold-light) !important; }

/* mobile tweaks */
@media (max-width: 576px) {
  .faction-card { padding: 1.25rem .75rem; }
  .fbl-panel { padding: 1rem; }
}

/* visitor stats scroll boxes */
.scroll-box { max-height: 240px; overflow-y: auto; border: 1px solid var(--fbl-border, #3a3a48); border-radius: .5rem; }
.scroll-tall { max-height: 420px; }
.scroll-box thead th { position: sticky; top: 0; background: #1c1c26; z-index: 1; }

/* ad slots */
.fbl-ad { margin: 0 auto 1.5rem; max-width: 100%; text-align: center; }
.fbl-ad .ad-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8a9a; margin-bottom: .35rem; }
.fbl-ad ins, .fbl-ad iframe { max-width: 100% !important; }

/* admin tabs */
.fbl-tabs { border-bottom: 1px solid var(--fbl-border, #3a3a48); }
.fbl-tabs .nav-link { color: #b3b3c0; border: 1px solid transparent; }
.fbl-tabs .nav-link:hover { color: var(--fbl-gold-light, #ffd97a); border-color: transparent; }
.fbl-tabs .nav-link.active {
  color: var(--fbl-gold-light, #ffd97a); background: #1c1c26;
  border-color: var(--fbl-border, #3a3a48) var(--fbl-border, #3a3a48) transparent;
}

/* discord button */
.btn-dc { background: #5865F2; color: #fff; border: none; }
.btn-dc:hover, .btn-dc:focus { background: #4752c4; color: #fff; }

/* ---------- My-Social-inspired landing page ---------- */
.home-main { width: 100%; padding: 0; }
.home-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.gold-text {
  background: linear-gradient(180deg, #fff8c9 0%, #ffe57a 32%, var(--fbl-gold-light) 62%, var(--fbl-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.85));
}
.home-hero {
  position: relative;
  text-align: center;
  padding: 5.7rem 0 4.8rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(140,22,22,.22), transparent 60%),
    radial-gradient(ellipse at 50% -20%, rgba(240,180,41,.18), transparent 55%);
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fbl-gold-dark), var(--fbl-gold-light), var(--fbl-gold-dark), transparent);
}
.home-hero::before { top: 0; }
.home-hero::after { bottom: 0; }
.hero-ad { margin-bottom: 2rem; }
.hero-kicker {
  margin-bottom: 1rem;
  color: var(--fbl-text-dim);
  font-family: "Cinzel", serif;
  font-size: .95rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.home-hero .hero-title {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  background: none;
  color: #ffd95a;
  -webkit-text-fill-color: #ffd95a;
  text-shadow: 0 3px 0 rgba(58,37,0,.95), 0 0 22px rgba(255,209,0,.35);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.8));
}
.hero-sub {
  max-width: 680px;
  margin: 1.35rem auto 0;
  color: var(--fbl-text);
  font-size: 1.15rem;
}
.hero-sub strong { color: var(--fbl-gold-light); }
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.35rem;
}
.hero-lock {
  margin: 1.35rem 0 0;
  color: var(--fbl-text-dim);
  font-size: .92rem;
}
.btn-wow {
  display: inline-block;
  padding: .8rem 1.8rem;
  color: #2a1d05;
  background: linear-gradient(180deg, #ffe9a3 0%, var(--fbl-gold-light) 30%, var(--fbl-gold) 65%, #b8860b 100%);
  border: 2px solid var(--fbl-gold-dark);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 4px rgba(0,0,0,.25);
  font-family: "Cinzel", serif;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  transition: filter .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-wow:hover,
.btn-wow:focus {
  color: #1a1204;
  filter: brightness(1.1);
  box-shadow: 0 0 18px rgba(240,180,41,.55), 0 3px 12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.55);
  text-decoration: none;
}
.btn-wow.secondary {
  color: var(--fbl-gold-light);
  background: linear-gradient(180deg, #3a2f1c 0%, #241d10 55%, #171208 100%);
  border-color: var(--fbl-bronze);
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.btn-wow.secondary:hover,
.btn-wow.secondary:focus { color: #ffe9a3; }
.btn-wow.small { padding: .58rem 1.15rem; font-size: .86rem; }
.home-section { padding: 4rem 0; }
.home-section-alt {
  background: linear-gradient(180deg, rgba(240,180,41,.025), rgba(0,0,0,.12));
  border-top: 1px solid rgba(138,109,59,.35);
  border-bottom: 1px solid rgba(138,109,59,.35);
}
.section-title {
  margin-bottom: .6rem;
  color: var(--fbl-gold-light);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  text-align: center;
  text-transform: uppercase;
}
.section-sub {
  max-width: 680px;
  margin: 0 auto 2.6rem;
  color: var(--fbl-text-dim);
  text-align: center;
}
.divider {
  width: min(420px, 80%);
  height: 14px;
  margin: 1.1rem auto 2.4rem;
  background:
    radial-gradient(circle at 50% 50%, var(--fbl-gold-light) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent, var(--fbl-gold-dark) 30%, var(--fbl-gold-light) 50%, var(--fbl-gold-dark) 70%, transparent);
  background-repeat: no-repeat;
  opacity: .9;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.stat-card {
  padding: 1.55rem .9rem;
  text-align: center;
  background: linear-gradient(180deg, var(--fbl-panel-2), var(--fbl-panel));
  border: 1px solid var(--fbl-gold-dark);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.45), inset 0 0 30px rgba(0,0,0,.32);
}
.stat-value {
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 14px rgba(240,180,41,.28);
}
.stat-black .stat-value { color: #ff9e7a; }
.stat-good .stat-value { color: #a9f0bd; }
.stat-label {
  margin-top: .55rem;
  color: var(--fbl-text-dim);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}
.faction-panel {
  height: 100%;
  padding: 2.2rem 1.8rem;
  text-align: center;
  border: 1px solid var(--fbl-gold-dark);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.faction-panel:hover { transform: translateY(-4px); }
.faction-panel.horde {
  background: linear-gradient(160deg, #8c1616 0%, #3a0808 70%);
  box-shadow: inset 0 0 40px rgba(140,22,22,.4);
}
.faction-panel.horde:hover { box-shadow: inset 0 0 40px rgba(140,22,22,.4), 0 0 28px rgba(196,30,30,.28); }
.faction-panel.alliance {
  background: linear-gradient(160deg, #14467c 0%, #0a1f3c 70%);
  box-shadow: inset 0 0 40px rgba(20,70,124,.4);
}
.faction-panel.alliance:hover { box-shadow: inset 0 0 40px rgba(20,70,124,.4), 0 0 28px rgba(44,95,184,.34); }
.faction-panel h3 {
  margin-bottom: .55rem;
  color: #fff;
  font-size: 1.45rem;
  text-transform: uppercase;
}
.faction-panel.horde h3 { color: #ff9e7a; text-shadow: 0 0 14px rgba(255,80,80,.65); }
.faction-panel.alliance h3 { color: #9ec7ff; text-shadow: 0 0 14px rgba(110,168,255,.75); }
.faction-panel p { color: rgba(255,255,255,.78); font-size: .96rem; }
.faction-btn { margin-top: .5rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  position: relative;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  background: linear-gradient(180deg, var(--fbl-panel-2) 0%, var(--fbl-panel) 100%);
  border: 1px solid var(--fbl-gold-dark);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--fbl-gold);
  box-shadow: 0 10px 28px rgba(0,0,0,.65), 0 0 16px rgba(240,180,41,.18);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #3d3220, #171208);
  border: 2px solid var(--fbl-gold-dark);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(0,0,0,.8), 0 0 12px rgba(240,180,41,.25);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--fbl-gold);
  filter: drop-shadow(0 0 4px rgba(240,180,41,.6));
}
.feature-card h3 {
  margin-bottom: .6rem;
  color: var(--fbl-gold-light);
  font-size: 1.15rem;
  text-transform: uppercase;
}
.feature-card p { color: var(--fbl-text-dim); font-size: .97rem; }
.feature-hint { margin: .8rem 0 0; font-size: .83rem !important; }
.fbl-footer {
  background: linear-gradient(180deg, #14100a, #0a0805);
  border-top: 2px solid var(--fbl-gold-dark) !important;
  color: var(--fbl-text-dim) !important;
}
.fbl-footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  text-align: center;
  gap: .35rem;
}
@media (max-width: 991px) {
  .stat-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-hero { padding: 4rem 0 3.4rem; }
  .hero-kicker { letter-spacing: .2em; }
  .stat-grid, .feature-grid, .faction-grid { grid-template-columns: 1fr; }
  .home-section { padding: 3rem 0; }
}

/* ---------- My-Social-inspired interior pages ---------- */
main.container.py-4 {
  padding-top: 2.6rem !important;
  padding-bottom: 3.5rem !important;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(138,109,59,.45);
}
.page-kicker {
  margin-bottom: .3rem;
  color: var(--fbl-text-dim);
  font-family: "Cinzel", serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  text-transform: uppercase;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.fbl-panel {
  background: linear-gradient(180deg, var(--fbl-panel-2) 0%, var(--fbl-panel) 100%);
  border-color: var(--fbl-gold-dark);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.48), inset 0 0 30px rgba(0,0,0,.3);
}
.fbl-panel .fbl-panel-title {
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  border-bottom-color: rgba(138,109,59,.45);
}
main.container h2:not(.page-title),
main.container > .fbl-panel > .fbl-panel-title:first-child {
  letter-spacing: .04em;
}
.btn-fbl {
  background: linear-gradient(180deg, #3a2f1c 0%, #241d10 55%, #171208 100%);
  border: 1px solid var(--fbl-bronze);
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-fbl:hover,
.btn-fbl:focus {
  background: linear-gradient(180deg, #4a3b22 0%, #2d2517 60%, #1b1409 100%);
  color: #ffe9a3;
  border-color: var(--fbl-gold);
  box-shadow: 0 0 12px rgba(240,180,41,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.form-control, .form-select {
  background: #100d08;
  border-color: rgba(138,109,59,.65);
  color: var(--fbl-text);
}
.form-control:focus, .form-select:focus {
  background: #141009;
  color: var(--fbl-text);
  border-color: var(--fbl-gold);
  box-shadow: 0 0 0 .2rem rgba(240,180,41,.15);
}
.input-group > .btn-fbl { border-radius: 0 .375rem .375rem 0; }
.alert {
  border-radius: 6px;
  border-width: 1px;
}
.alert-danger {
  background: rgba(92,13,13,.35);
  border-color: #a03030;
  color: #ffb3b3;
}
.alert-success {
  background: rgba(13,61,26,.35);
  border-color: #2c7a44;
  color: #a9f0bd;
}
.fbl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 1.45rem;
  padding: 0;
  border-bottom: 0;
}
.fbl-tabs .nav-link {
  padding: .62rem 1.25rem;
  background: linear-gradient(180deg, #3a2f1c, #241d10);
  color: var(--fbl-text);
  border: 1px solid var(--fbl-bronze);
  border-radius: 6px;
  font-family: "Cinzel", serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .15s ease;
}
.fbl-tabs .nav-link:hover {
  color: var(--fbl-gold-light);
  border-color: var(--fbl-gold);
  box-shadow: 0 0 10px rgba(240,180,41,.18);
}
.fbl-tabs .nav-link.active {
  color: #2a1d05;
  background: linear-gradient(180deg, #ffe9a3, var(--fbl-gold) 60%, #b8860b);
  border-color: var(--fbl-gold-dark);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 3px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
}
.dashboard-tabs { margin-top: .4rem; }
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.dash-stat {
  padding: 1.25rem .8rem;
  text-align: center;
  background: linear-gradient(180deg, var(--fbl-panel-2), var(--fbl-panel));
  border: 1px solid var(--fbl-gold-dark);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.42), inset 0 0 26px rgba(0,0,0,.3);
}
.dash-stat-value {
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.dash-stat-black .dash-stat-value { color: #ff9e7a; }
.dash-stat-good .dash-stat-value { color: #a9f0bd; }
.dash-stat-label {
  margin-top: .45rem;
  color: var(--fbl-text-dim);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.dash-card { min-height: 100%; }
.dash-card p { color: var(--fbl-text-dim); }
.dash-mini-steps {
  display: grid;
  gap: .65rem;
  margin-top: 1.1rem;
}
.dash-mini-steps div {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .7rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(138,109,59,.35);
  border-radius: 6px;
  color: var(--fbl-text);
}
.dash-mini-steps span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3d3220, #171208);
  border: 1px solid var(--fbl-gold-dark);
  color: var(--fbl-gold-light);
  font-family: "Cinzel", serif;
  font-weight: 700;
}
.token-box {
  background: #100d08;
  border-color: var(--fbl-gold-dark);
  color: var(--fbl-gold-light);
  box-shadow: inset 0 0 12px rgba(0,0,0,.45);
}
.discord-server-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: .55rem;
  padding: .65rem .75rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(138,109,59,.35);
  border-radius: 6px;
}
.table-fbl th {
  color: var(--fbl-gold-light);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.table-fbl td { border-color: rgba(138,109,59,.25) !important; }
.table-fbl tr:hover td { background: rgba(240,180,41,.055); }
.badge { font-weight: 600; }
hr.border-secondary { border-color: rgba(138,109,59,.45) !important; opacity: 1; }
.scroll-box {
  background: rgba(0,0,0,.16);
  border-color: rgba(138,109,59,.45);
}
.scroll-box thead th { background: #241d13; }
.entry-link { color: var(--fbl-text); }
.entry-link:hover { color: var(--fbl-gold-light); }
.accent { color: var(--fbl-gold-light); }
@media (max-width: 991px) {
  .dash-stat-grid, .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main.container.py-4 { padding-top: 1.8rem !important; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dash-stat-grid, .dash-grid { grid-template-columns: 1fr; }
  .fbl-tabs { justify-content: stretch; }
  .fbl-tabs .nav-item, .fbl-tabs .nav-link { width: 100%; }
}

/* auth/content polish */
.auth-panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}
.auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fbl-gold-light), transparent);
}
.auth-panel form,
.auth-panel p,
.auth-panel hr,
.auth-panel a,
.auth-panel .alert,
.auth-panel .fbl-panel-title { position: relative; }
.auth-panel .btn-fbl,
.auth-panel .btn-dc { padding-top: .65rem; padding-bottom: .65rem; }

.download-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
}

.api-strip {
  margin-top: 1.4rem;
  padding: .9rem 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  text-align: center;
  color: var(--fbl-text-dim);
  background: linear-gradient(90deg, rgba(20,16,10,.7), rgba(58,45,20,.7), rgba(20,16,10,.7));
  border: 1px solid var(--fbl-gold-dark);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.35);
}
.api-strip strong {
  color: var(--fbl-gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.api-strip span { font-size: .92rem; }
@media (max-width: 767.98px) {
  .api-strip { flex-direction: column; gap: .35rem; }
}
