
/* =========================================================
   GAMBOCIAL EMPIRE UI FRAMEWORK
   Upload to: public_html/content/themes/default/css/empire.css
   ========================================================= */
:root {
  --empire-black: #050505;
  --empire-black-2: #0c0907;
  --empire-gold: #d4af37;
  --empire-gold-bright: #ffe28a;
  --empire-gold-dark: #8b5a12;
  --empire-purple: #6f42c1;
  --empire-cream: #f8f1dc;
  --empire-card: rgba(255, 248, 226, .965);
  --empire-shadow: 0 28px 90px rgba(0,0,0,.72);
  --empire-serif: Georgia, 'Times New Roman', serif;
}

/* ---------- Global Empire helpers ---------- */
.empire-btn-gold,
.btn.empire-btn-gold,
.empire-auth-card .fr_welcome_btn,
.empire-auth-card .btn-primary {
  border: 1px solid rgba(255,226,138,.9) !important;
  background: linear-gradient(180deg, #fff4b2 0%, #ddb13b 42%, #a46b13 100%) !important;
  color: #080604 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 12px 28px rgba(92,56,10,.42), 0 0 24px rgba(212,175,55,.26) !important;
}
.empire-btn-gold:hover,
.empire-auth-card .fr_welcome_btn:hover,
.empire-auth-card .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.empire-card {
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,241,220,.94));
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

/* ---------- Login Gateway ---------- */
body.empire-login-body,
body.visitor.empire-login-body {
  padding-top: 0 !important;
  background: #030303 !important;
  color: #fff !important;
  overflow-x: hidden;
}
.empire-login-wrapper {
  min-height: 100vh;
  background: #030303;
}
.empire-gateway {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.empire-gateway-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: url('../images/empire/empire-login-bg.png') center center / cover no-repeat fixed;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04) brightness(.58);
}
.empire-gateway-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,218,102,.24), transparent 27%),
    radial-gradient(circle at 78% 38%, rgba(111,66,193,.30), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.46) 46%, rgba(0,0,0,.82) 100%),
    linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.62) 50%, rgba(0,0,0,.94) 100%);
}
.empire-gateway-stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .48;
  background-image:
    radial-gradient(circle, rgba(255,226,138,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.5) 0 1px, transparent 1.4px);
  background-size: 92px 92px, 137px 137px;
  background-position: 0 0, 46px 22px;
  pointer-events: none;
}
.empire-gateway-header {
  position: relative;
  z-index: 3;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(0,0,0,.74);
  border-bottom: 1px solid rgba(255,226,138,.52);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
}
.empire-gateway-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--empire-gold-bright) !important;
  text-decoration: none !important;
}
.empire-gateway-logo img {
  max-height: 64px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(212,175,55,.42));
}
.empire-gateway-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,226,138,.76);
  background: radial-gradient(circle at 35% 25%, #fff4b2, #c79222 48%, #070707 82%);
  color: #080604;
  font-family: var(--empire-serif);
  font-size: 30px;
  font-weight: 900;
}
.empire-gateway-logo-text {
  font-family: var(--empire-serif);
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.empire-gateway-top-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.1;
}
.empire-gateway-top-cta span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212,175,55,.16);
  border: 1px solid rgba(255,226,138,.5);
  color: var(--empire-gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.empire-gateway-top-cta strong {
  margin-top: 6px;
  color: var(--empire-gold-bright);
  font-size: 16px;
  letter-spacing: .04em;
}
.empire-gateway-main {
  width: min(1340px, calc(100% - 44px));
  margin: 0 auto;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(560px, 1.18fr) minmax(390px, 520px);
  gap: clamp(28px, 4.5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px) 0 40px;
}
.empire-gateway-copy {
  text-align: left;
  text-shadow: 0 4px 18px rgba(0,0,0,.86);
}
.empire-gateway-kicker {
  font-family: var(--empire-serif);
  font-size: clamp(26px, 2.55vw, 38px);
  letter-spacing: .23em;
  text-transform: uppercase;
  color: #fff;
}
.empire-gateway-title {
  margin: 6px 0 0;
  font-family: var(--empire-serif);
  font-size: clamp(76px, 7.4vw, 122px);
  line-height: .92;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--empire-gold-bright);
  text-shadow: 0 2px 0 #6d4310, 0 0 34px rgba(255,218,102,.48), 0 14px 28px rgba(0,0,0,.88);
}
.empire-gateway-home {
  margin-top: 14px;
  font-family: var(--empire-serif);
  color: var(--empire-gold-bright);
  font-size: clamp(28px, 2.65vw, 46px);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.empire-gateway-royal {
  margin: 18px 0 8px;
  color: #fff3bb;
  font-size: clamp(20px, 1.65vw, 27px);
}
.empire-gateway-text {
  max-width: 900px;
  color: #fff;
  font-size: clamp(18px, 1.28vw, 23px);
  line-height: 1.5;
}
.empire-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 30px;
}
.empire-benefits div {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(255,226,138,.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.54), rgba(0,0,0,.22));
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.empire-benefits span {
  font-size: 24px;
  line-height: 1;
}
.empire-benefits strong {
  margin-top: 6px;
  color: #fff3bb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.empire-auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 2px solid rgba(255,226,138,.82);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,252,242,.985), rgba(245,233,203,.965));
  color: #111;
  box-shadow: var(--empire-shadow), inset 0 0 36px rgba(212,175,55,.18);
}
.empire-auth-card:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(139,90,18,.22);
  border-radius: 24px;
  pointer-events: none;
}
.empire-auth-crown {
  text-align: center;
  color: #9f6712;
  font-family: var(--empire-serif);
  font-size: 40px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(212,175,55,.25);
}
.empire-auth-eyebrow {
  text-align: center;
  color: #80500d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 6px 0 6px;
}
.empire-auth-card .fr_auth_form,
.empire-auth-card .js_panel {
  position: relative;
  z-index: 2;
  color: #15120a !important;
}
.empire-auth-card .fr_welcome_title,
.empire-auth-card h2,
.empire-auth-card h3 {
  font-family: var(--empire-serif) !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.05 !important;
  color: #090705 !important;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.empire-auth-card .text-center.mt-4.mb-4 {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
.empire-auth-card .fr_welcome_field,
.empire-auth-card .form-group {
  position: relative;
}
.empire-auth-card .fr_welcome_field input,
.empire-auth-card input.form-control,
.empire-auth-card .form-control,
.empire-auth-card .form-select {
  min-height: 62px !important;
  border: 1.5px solid rgba(164,107,19,.72) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.74) !important;
  color: #17130a !important;
  font-size: 18px !important;
  box-shadow: inset 0 0 16px rgba(212,175,55,.08) !important;
}
.empire-auth-card .fr_welcome_field input {
  padding-left: 62px !important;
  padding-right: 52px !important;
}
.empire-auth-card .fr_welcome_field svg.position-absolute {
  left: 21px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 25px !important;
  height: 25px !important;
  color: #9f6712 !important;
}
.empire-auth-card .js_toggle-password {
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #9f6712 !important;
}
.empire-auth-card .js_toggle-password svg {
  width: 30px !important;
  height: 30px !important;
  fill: #9f6712 !important;
}
.empire-auth-card .form-check-label,
.empire-auth-card a,
.empire-auth-card .text-link {
  font-size: 14px;
}
.empire-auth-card a,
.empire-auth-card .text-link {
  color: #87570f !important;
  font-weight: 800;
}
.empire-auth-card .fr_welcome_btn,
.empire-auth-card .btn-primary,
.empire-auth-card button[type="submit"] {
  min-height: 66px !important;
  border-radius: 18px !important;
  font-size: clamp(18px, 2vw, 23px) !important;
}
.empire-auth-card .fr_welcome_switch,
.empire-auth-card .mt20.text-center,
.empire-auth-card .mt-4.text-center {
  color: #312615;
  font-size: 15px;
}
.empire-auth-card .fr_welcome_switch a,
.empire-auth-card .mt20.text-center a,
.empire-auth-card .mt-4.text-center a {
  display: inline-block;
  margin-left: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.72);
  background: #070604;
  color: var(--empire-gold-bright) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}
.empire-free-ribbon,
.empire-signup-free-note {
  text-align: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(164,107,19,.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(212,175,55,.12), rgba(255,255,255,.28));
  color: #21170a;
}
.empire-free-ribbon span,
.empire-signup-free-note {
  display: block;
  font-weight: 950;
  color: #87570f;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.empire-free-ribbon small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4d3c20;
}


/* ---------- Login polish pass: desktop readability ---------- */
.empire-gateway-copy {
  max-width: 940px;
}
.empire-gateway-kicker,
.empire-gateway-title,
.empire-gateway-home,
.empire-gateway-royal,
.empire-gateway-text {
  opacity: 1 !important;
  filter: none !important;
}
.empire-gateway-title {
  white-space: nowrap;
}
.empire-gateway-home {
  text-wrap: balance;
}
.empire-gateway-text {
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0,0,0,.98), 0 0 18px rgba(0,0,0,.85);
}
@media (max-width: 1100px) {
  .empire-gateway-copy {
    max-width: 100%;
  }
  .empire-gateway-title {
    white-space: normal;
  }
}

/* ---------- Global Header: Black & Gold ---------- */
.main-header {
  background: rgba(5,5,5,.94) !important;
  border-bottom: 1px solid rgba(212,175,55,.48);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.main-header .logo,
.main-header .logo:hover {
  color: var(--empire-gold-bright) !important;
}
.main-header .logo img {
  filter: drop-shadow(0 0 10px rgba(212,175,55,.28));
}
.header-icon,
.header-icon *,
.main-header .menu-icon,
.main-header .menu-icon * {
  color: var(--empire-gold-bright) !important;
  fill: var(--empire-gold-bright) !important;
}
.header-icon.active,
.header-icon.active *,
body.night-mode .header-icon.active,
body.night-mode .header-icon.active * {
  color: var(--empire-gold) !important;
  fill: var(--empire-gold) !important;
}
.navbar-wrapper>ul>li>a:hover,
body.night-mode .navbar-wrapper>ul>li>a:hover {
  background: rgba(212,175,55,.12) !important;
}
.main-header .search-wrapper .form-control {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(212,175,55,.28) !important;
  color: #fff !important;
}
.main-header .search-wrapper .form-control::placeholder {
  color: rgba(255,226,138,.7) !important;
}
.dropdown-menu {
  border: 1px solid rgba(212,175,55,.25) !important;
  background: #0b0b0b !important;
  color: #f6e7bd !important;
}
.dropdown-menu .dropdown-item,
body.night-mode .dropdown-item {
  color: #f6e7bd !important;
}
.dropdown-menu .dropdown-item:hover,
body.night-mode .dropdown-item:hover {
  background: rgba(212,175,55,.12) !important;
}

/* ---------- Footer ---------- */
.empire-footer {
  position: relative;
  margin-top: 34px;
  padding: 44px 18px 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.16), transparent 36%),
    linear-gradient(180deg, #090909 0%, #020202 100%);
  border-top: 1px solid rgba(212,175,55,.48);
  color: #fff;
  text-align: center;
}
.empire-footer-inner {
  max-width: 1050px;
  margin: 0 auto;
}
.empire-footer-crown {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 1px solid rgba(255,226,138,.72);
  color: var(--empire-gold-bright);
  font-family: var(--empire-serif);
  font-size: 38px;
  box-shadow: 0 0 22px rgba(212,175,55,.25);
}
.empire-footer-title {
  font-family: var(--empire-serif);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 25px;
  color: var(--empire-gold-bright);
}
.empire-footer-tagline,
.empire-footer-bottom {
  color: rgba(255,255,255,.82);
}
.empire-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 20px auto;
}
.empire-footer-links a {
  color: var(--empire-gold-bright) !important;
  font-weight: 700;
}
body.empire-login-body .empire-footer {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .empire-gateway-main {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 34px;
  }
  .empire-gateway-copy {
    text-align: center;
  }
  .empire-gateway-text,
  .empire-benefits {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
  .empire-gateway-kicker {
    font-size: clamp(24px, 4vw, 34px);
  }
  .empire-gateway-title {
    font-size: clamp(64px, 10vw, 96px);
  }
  .empire-gateway-home {
    font-size: clamp(25px, 4.2vw, 38px);
  }
  .empire-gateway-royal {
    font-size: clamp(18px, 2.8vw, 24px);
  }
  .empire-gateway-text {
    font-size: clamp(17px, 2.3vw, 22px);
    line-height: 1.45;
  }
  .empire-auth-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .empire-gateway-header {
    height: auto;
    min-height: 74px;
    padding: 12px 16px;
  }
  .empire-gateway-logo img {
    max-height: 50px;
  }
  .empire-gateway-top-cta strong {
    display: none;
  }
  .empire-gateway-main {
    width: min(100% - 24px, 560px);
    min-height: auto;
    padding: 24px 0 28px;
  }
  .empire-gateway-title {
    font-size: clamp(46px, 13vw, 70px);
  }
  .empire-gateway-kicker {
    font-size: 18px;
    letter-spacing: .18em;
  }
  .empire-gateway-home {
    font-size: clamp(19px, 6vw, 28px);
  }
  .empire-gateway-royal {
    font-size: 16px;
  }
  .empire-gateway-text {
    font-size: 15px;
    line-height: 1.42;
  }
  .empire-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .empire-auth-card {
    border-radius: 24px;
    padding: 22px 16px;
  }
  .empire-auth-card .fr_welcome_field input,
  .empire-auth-card input.form-control,
  .empire-auth-card .form-control,
  .empire-auth-card .form-select {
    min-height: 56px !important;
    font-size: 16px !important;
  }
  .empire-auth-card .fr_welcome_btn,
  .empire-auth-card .btn-primary,
  .empire-auth-card button[type="submit"] {
    min-height: 58px !important;
    font-size: 18px !important;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE FOOTER BLACKOUT FIX
   Makes every footer/footer-link area black & gold sitewide
   ========================================================= */

/* Original Sngine footer links row */
.footer,
.row.footer,
.mini-footer {
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.14), transparent 38%),
    linear-gradient(180deg, #080808 0%, #020202 100%) !important;
  color: rgba(255,255,255,.86) !important;
  border-top: 1px solid rgba(212,175,55,.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,226,138,.08) !important;
}

.footer,
.row.footer {
  margin-top: 0 !important;
  padding: 22px 18px !important;
  border-radius: 0 !important;
}

.footer a,
.row.footer a,
.footer .language-dropdown,
.row.footer .language-dropdown,
.mini-footer a,
.mini-footer .language-dropdown {
  color: var(--empire-gold-bright) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.footer a:hover,
.row.footer a:hover,
.mini-footer a:hover {
  color: #fff1b5 !important;
  text-shadow: 0 0 10px rgba(212,175,55,.35) !important;
}

.footer .links,
.row.footer .links {
  text-align: right;
}

/* Main Empire footer */
.empire-footer {
  margin-top: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.18), transparent 34%),
    linear-gradient(180deg, #060606 0%, #000 100%) !important;
  color: #fff !important;
  border-top: 1px solid rgba(212,175,55,.55) !important;
  border-bottom: 1px solid rgba(212,175,55,.22) !important;
}

.empire-footer::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 720px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.82), transparent);
}

/* Keep logged-in mobile bottom nav in the same Empire style */
.footer-bottom-bar {
  background: rgba(5,5,5,.96) !important;
  border-top: 1px solid rgba(212,175,55,.45) !important;
  box-shadow: 0 -10px 30px rgba(0,0,0,.38) !important;
}

.footer-bottom-bar .title,
.footer-bottom-bar a,
.footer-bottom-bar .link a {
  color: rgba(255,255,255,.9) !important;
}

.footer-bottom-bar .link.active .title,
.footer-bottom-bar .link.active a,
.footer-bottom-bar .link.active .header-icon,
.footer-bottom-bar .link.active .header-icon * {
  color: var(--empire-gold-bright) !important;
  fill: var(--empire-gold-bright) !important;
}

@media (max-width: 767px) {
  .footer .links,
  .row.footer .links {
    text-align: center !important;
    margin-top: 10px;
  }
  .footer,
  .row.footer,
  .mini-footer {
    text-align: center !important;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE UNIVERSAL PAGE HERO
   Used on Search, Pages, Groups, Events, Watch, Blogs,
   Funding, Offers, Jobs, Courses, Forums, Contests and
   other Sngine directory/search landing headers.
   ========================================================= */
.page-header {
  position: relative !important;
  overflow: hidden !important;
  min-height: 300px !important;
  padding: 78px 24px 98px !important;
  border-radius: 0 0 38px 38px !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 215, 117, .23), transparent 25%),
    radial-gradient(circle at 82% 10%, rgba(111, 66, 193, .30), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.56), rgba(0,0,0,.88)),
    url('../images/empire/empire-universal-hero-bg.png') center center / cover no-repeat !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(212,175,55,.58) !important;
  box-shadow:
    inset 0 -70px 90px rgba(0,0,0,.58),
    0 20px 50px rgba(0,0,0,.28) !important;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 32%, rgba(212,175,55,.10) 50%, transparent 68%),
    radial-gradient(circle at 50% 100%, rgba(212,175,55,.18), transparent 36%);
  z-index: 0;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(720px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,226,138,.90), transparent);
  box-shadow: 0 0 18px rgba(212,175,55,.48);
  z-index: 1;
}

.page-header .inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1100px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.page-header .inner h2 {
  margin: 0 0 10px !important;
  color: #ffe28a !important;
  font-family: var(--empire-serif, Georgia, serif) !important;
  font-size: clamp(42px, 5.6vw, 84px) !important;
  line-height: .95 !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-shadow:
    0 3px 0 rgba(0,0,0,.38),
    0 0 26px rgba(212,175,55,.28) !important;
}

.page-header .inner h2::before {
  content: "WELCOME TO GAMBOCIAL";
  display: block;
  margin-bottom: 14px;
  color: rgba(255,255,255,.88);
  font-family: var(--body-font-family, Poppins, sans-serif);
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .33em;
  text-shadow: none;
}

.page-header .inner p,
.page-header .inner .text-xlg {
  max-width: 850px !important;
  margin: 0 auto !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(17px, 2vw, 24px) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.72) !important;
}

.page-header .floating-img,
.page-header .circle-2,
.page-header .circle-3 {
  display: none !important;
}

/* Pull the search card into the hero glow and give it the Empire treatment */
.sg-offcanvas .card:first-child,
.sg-offcanvas-mainbar > .card:first-child {
  border: 1px solid rgba(212,175,55,.42) !important;
  background: rgba(7,7,7,.76) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.sg-offcanvas .card:first-child .form-control,
.sg-offcanvas-mainbar > .card:first-child .form-control {
  min-height: 58px !important;
  border: 1px solid rgba(212,175,55,.40) !important;
  background: rgba(255,255,255,.94) !important;
  color: #15100a !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border-radius: 18px 0 0 18px !important;
}

.sg-offcanvas .card:first-child .btn,
.sg-offcanvas-mainbar > .card:first-child .btn {
  min-height: 58px !important;
  border: 1px solid rgba(255,226,138,.72) !important;
  background: linear-gradient(135deg, #fff1a8 0%, #d4af37 42%, #9b7420 100%) !important;
  color: #111 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 0 18px 18px 0 !important;
}

.sg-offcanvas .card:first-child .btn:hover,
.sg-offcanvas-mainbar > .card:first-child .btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Empire pill tabs for search result filters */
.nav-pills.nav-search .nav-link.active,
.nav-pills.nav-started .nav-link.active {
  background: linear-gradient(135deg, #fff1a8 0%, #d4af37 48%, #9b7420 100%) !important;
  color: #111 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.16) !important;
}

.nav-pills.nav-search .nav-link:not(.active),
.nav-pills.nav-started .nav-link:not(.active) {
  border: 1px solid rgba(212,175,55,.22) !important;
  color: #5d4310 !important;
}

@media (max-width: 767px) {
  .page-header {
    min-height: 245px !important;
    padding: 52px 16px 82px !important;
    border-radius: 0 0 26px 26px !important;
  }
  .page-header .inner h2 {
    font-size: clamp(36px, 11vw, 54px) !important;
    letter-spacing: .035em !important;
  }
  .page-header .inner h2::before {
    font-size: 11px !important;
    letter-spacing: .22em !important;
  }
  .page-header .inner p,
  .page-header .inner .text-xlg {
    font-size: 15px !important;
  }
  .sg-offcanvas .card:first-child .input-group,
  .sg-offcanvas-mainbar > .card:first-child .input-group {
    display: block !important;
  }
  .sg-offcanvas .card:first-child .form-control,
  .sg-offcanvas-mainbar > .card:first-child .form-control,
  .sg-offcanvas .card:first-child .btn,
  .sg-offcanvas-mainbar > .card:first-child .btn {
    width: 100% !important;
    border-radius: 18px !important;
  }
  .sg-offcanvas .card:first-child .btn,
  .sg-offcanvas-mainbar > .card:first-child .btn {
    margin-top: 10px !important;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE UNIVERSAL HERO - RICH POLISH v2
   This overrides the first universal hero pass and gives
   directory/search pages a richer black/gold casino look.
   ========================================================= */
body:not(.empire-login-body) .page-header {
  position: relative !important;
  overflow: hidden !important;
  min-height: 345px !important;
  padding: 88px 24px 118px !important;
  border-radius: 0 0 44px 44px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 226, 138, .32), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(126, 61, 186, .44), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.28), rgba(0,0,0,.68)),
    url('../images/empire/empire-universal-hero-bg.png') center center / cover no-repeat !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 226, 138, .82) !important;
  box-shadow:
    inset 0 -80px 100px rgba(0,0,0,.50),
    0 26px 70px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,226,138,.20) !important;
}

body:not(.empire-login-body) .page-header::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(120deg, rgba(255,255,255,.10), transparent 30%, rgba(255,226,138,.13) 48%, transparent 68%),
    radial-gradient(circle at 50% 100%, rgba(212,175,55,.24), transparent 42%) !important;
  z-index: 0 !important;
}

body:not(.empire-login-body) .page-header::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 34px !important;
  width: min(820px, 78vw) !important;
  height: 1px !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(90deg, transparent, rgba(255,241,168,.98), transparent) !important;
  box-shadow: 0 0 24px rgba(212,175,55,.70) !important;
  z-index: 1 !important;
}

body:not(.empire-login-body) .page-header .inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1120px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 28px 28px 30px !important;
  border: 1px solid rgba(255,226,138,.28) !important;
  border-radius: 34px !important;
  background: rgba(6, 5, 5, .38) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 20px 60px rgba(0,0,0,.20) !important;
}

body:not(.empire-login-body) .page-header .inner h2 {
  margin: 0 0 12px !important;
  color: #ffe28a !important;
  font-family: var(--empire-serif, Georgia, serif) !important;
  font-size: clamp(46px, 5.9vw, 92px) !important;
  line-height: .92 !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-shadow:
    0 4px 0 rgba(0,0,0,.40),
    0 0 30px rgba(212,175,55,.36),
    0 0 6px rgba(255,255,255,.12) !important;
}

body:not(.empire-login-body) .page-header .inner h2::before {
  content: "WELCOME TO GAMBOCIAL" !important;
  display: block !important;
  margin-bottom: 14px !important;
  color: rgba(255,255,255,.94) !important;
  font-family: var(--body-font-family, Poppins, sans-serif) !important;
  font-size: clamp(12px, 1.3vw, 17px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .34em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.60) !important;
}

body:not(.empire-login-body) .page-header .inner p,
body:not(.empire-login-body) .page-header .inner .text-xlg {
  max-width: 900px !important;
  margin: 0 auto !important;
  color: rgba(255,255,255,.96) !important;
  font-size: clamp(17px, 2vw, 25px) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.76) !important;
}

body:not(.empire-login-body) .page-header .inner p::before,
body:not(.empire-login-body) .page-header .inner .text-xlg::before {
  content: "👑 ";
}

body:not(.empire-login-body) .page-header .inner p::after,
body:not(.empire-login-body) .page-header .inner .text-xlg::after {
  content: " 👑";
}

body:not(.empire-login-body) .page-header .floating-img,
body:not(.empire-login-body) .page-header .circle-2,
body:not(.empire-login-body) .page-header .circle-3 {
  display: none !important;
}

/* Rich but readable search box. The first version was too dark. */
.sg-offcanvas .card:first-child,
.sg-offcanvas-mainbar > .card:first-child {
  border: 1px solid rgba(255,226,138,.72) !important;
  background:
    linear-gradient(135deg, rgba(255,250,235,.96), rgba(255,244,214,.90)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 24px !important;
  box-shadow:
    0 22px 58px rgba(0,0,0,.26),
    0 0 0 1px rgba(255,255,255,.50) inset,
    0 0 34px rgba(212,175,55,.18) !important;
}

.sg-offcanvas .card:first-child .card-body,
.sg-offcanvas-mainbar > .card:first-child .card-body {
  padding: 22px !important;
}

.sg-offcanvas .card:first-child .form-control,
.sg-offcanvas-mainbar > .card:first-child .form-control {
  min-height: 62px !important;
  border: 1px solid rgba(157, 113, 23, .50) !important;
  background: rgba(255,255,255,.96) !important;
  color: #15100a !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.05) !important;
}

.sg-offcanvas .card:first-child .form-control::placeholder,
.sg-offcanvas-mainbar > .card:first-child .form-control::placeholder {
  color: rgba(42,31,10,.65) !important;
  font-weight: 700 !important;
}

.sg-offcanvas .card:first-child .btn,
.sg-offcanvas-mainbar > .card:first-child .btn {
  min-height: 62px !important;
  border: 1px solid rgba(255,226,138,.92) !important;
  background: linear-gradient(135deg, #fff3b7 0%, #d4af37 44%, #8b5a12 100%) !important;
  color: #0c0904 !important;
  font-weight: 950 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  border-radius: 0 18px 18px 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 20px rgba(139,90,18,.22) !important;
}

/* Empire up the result/filter cards below the hero */
.sg-offcanvas-mainbar > .row,
.sg-offcanvas .tab-content,
.sg-offcanvas .card:not(:first-child) {
  border-radius: 22px !important;
}

.nav-pills.nav-search,
.nav-pills.nav-started {
  padding: 9px !important;
  border: 1px solid rgba(212,175,55,.34) !important;
  border-radius: 22px !important;
  background: rgba(255,250,235,.90) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.10) !important;
}

.nav-pills.nav-search .nav-link.active,
.nav-pills.nav-started .nav-link.active {
  background: linear-gradient(135deg, #fff3b7 0%, #d4af37 50%, #9b7420 100%) !important;
  color: #111 !important;
  border: 1px solid rgba(139,90,18,.42) !important;
  box-shadow: 0 8px 20px rgba(139,90,18,.18) !important;
}

.nav-pills.nav-search .nav-link:not(.active),
.nav-pills.nav-started .nav-link:not(.active) {
  border: 1px solid rgba(212,175,55,.18) !important;
  color: #694b12 !important;
  background: rgba(255,255,255,.68) !important;
}

/* Footer remains black/gold on these pages */
.footer,
.row.footer,
.mini-footer,
.empire-footer,
footer {
  background: #050505 !important;
  color: rgba(255,255,255,.72) !important;
  border-top: 1px solid rgba(212,175,55,.44) !important;
}

.footer a,
.row.footer a,
.mini-footer a,
.empire-footer a,
footer a {
  color: #d4af37 !important;
}

@media (max-width: 767px) {
  body:not(.empire-login-body) .page-header {
    min-height: 270px !important;
    padding: 56px 14px 86px !important;
    border-radius: 0 0 28px 28px !important;
  }
  body:not(.empire-login-body) .page-header .inner {
    padding: 22px 16px 24px !important;
    border-radius: 24px !important;
    background: rgba(6,5,5,.34) !important;
  }
  body:not(.empire-login-body) .page-header .inner h2 {
    font-size: clamp(34px, 11vw, 52px) !important;
    letter-spacing: .035em !important;
  }
  body:not(.empire-login-body) .page-header .inner h2::before {
    font-size: 10px !important;
    letter-spacing: .20em !important;
  }
  body:not(.empire-login-body) .page-header .inner p,
  body:not(.empire-login-body) .page-header .inner .text-xlg {
    font-size: 14px !important;
  }
  .sg-offcanvas .card:first-child .input-group,
  .sg-offcanvas-mainbar > .card:first-child .input-group {
    display: block !important;
  }
  .sg-offcanvas .card:first-child .form-control,
  .sg-offcanvas-mainbar > .card:first-child .form-control,
  .sg-offcanvas .card:first-child .btn,
  .sg-offcanvas-mainbar > .card:first-child .btn {
    width: 100% !important;
    border-radius: 18px !important;
  }
  .sg-offcanvas .card:first-child .btn,
  .sg-offcanvas-mainbar > .card:first-child .btn {
    margin-top: 10px !important;
  }
}


/* =========================================================
   GAMBOCIAL EMPIRE COMPONENT SYSTEM v1
   Middle-content luxury layer. Header, footer, login and hero
   stay untouched. This replaces the old broad v3-v6 card polish.
   ========================================================= */

:root {
  --empire-ivory: #fffaf0;
  --empire-ivory-2: #f5e8c7;
  --empire-ink-dark: #171008;
  --empire-ink-soft: #4d3a1e;
  --empire-gold-line: rgba(212,175,55,.54);
  --empire-gold-line-soft: rgba(212,175,55,.28);
  --empire-soft-shadow: 0 16px 38px rgba(0,0,0,.14);
  --empire-deep-shadow: 0 20px 54px rgba(0,0,0,.24);
}

/* General page middle stage */
body:not(.empire-login-body) .sg-offcanvas {
  position: relative;
}
body:not(.empire-login-body) .sg-offcanvas-mainbar,
body:not(.empire-login-body) .sg-offcanvas-sidebar {
  color: var(--empire-ink-dark);
}

/* Safe luxury card foundation. Scoped only inside content areas. */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card,
body:not(.empire-login-body) .sg-offcanvas .card.panel-photos,
body:not(.empire-login-body) .sg-offcanvas .card.d-none.d-lg-block,
body:not(.empire-login-body) .sg-offcanvas .card:not(.dropdown-menu) {
  border: 1px solid var(--empire-gold-line-soft) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255,252,242,.98), rgba(246,235,204,.94)) !important;
  color: var(--empire-ink-dark) !important;
  box-shadow: var(--empire-soft-shadow), inset 0 1px 0 rgba(255,255,255,.82) !important;
  overflow: hidden;
}

body:not(.empire-login-body) .sg-offcanvas .card::before,
body:not(.empire-login-body) .sg-offcanvas .card::after {
  opacity: 0 !important;
  display: none !important;
}

body:not(.empire-login-body) .sg-offcanvas .card:hover {
  border-color: rgba(212,175,55,.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.18), 0 0 20px rgba(212,175,55,.12) !important;
}

body:not(.empire-login-body) .sg-offcanvas .card,
body:not(.empire-login-body) .sg-offcanvas .card * {
  text-shadow: none !important;
}

body:not(.empire-login-body) .sg-offcanvas .card .card-header {
  background: linear-gradient(90deg, rgba(212,175,55,.16), rgba(255,255,255,.38)) !important;
  border-bottom: 1px solid rgba(212,175,55,.22) !important;
  color: #24180a !important;
  font-weight: 900 !important;
}

body:not(.empire-login-body) .sg-offcanvas .card .card-body,
body:not(.empire-login-body) .sg-offcanvas .card p,
body:not(.empire-login-body) .sg-offcanvas .card span,
body:not(.empire-login-body) .sg-offcanvas .card small,
body:not(.empire-login-body) .sg-offcanvas .card div {
  color: var(--empire-ink-soft);
}

body:not(.empire-login-body) .sg-offcanvas .card h1,
body:not(.empire-login-body) .sg-offcanvas .card h2,
body:not(.empire-login-body) .sg-offcanvas .card h3,
body:not(.empire-login-body) .sg-offcanvas .card h4,
body:not(.empire-login-body) .sg-offcanvas .card h5,
body:not(.empire-login-body) .sg-offcanvas .card .title {
  color: #110b04 !important;
  font-weight: 950 !important;
}

body:not(.empire-login-body) .sg-offcanvas .card a:not(.btn):not(.nav-link) {
  color: #7b5512 !important;
  font-weight: 850;
}
body:not(.empire-login-body) .sg-offcanvas .card a:not(.btn):not(.nav-link):hover {
  color: #a97818 !important;
}

/* Left navigation panels. Readable, regal, not smoke-filled. */
body:not(.empire-login-body) .sg-offcanvas-sidebar .card,
body:not(.empire-login-body) .sg-offcanvas-sidebar .card-body.with-nav {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,226,138,.28), transparent 30%),
    linear-gradient(145deg, rgba(255,252,242,.985), rgba(244,231,194,.955)) !important;
}

body:not(.empire-login-body) .side-nav,
body:not(.empire-login-body) .side-nav li {
  background: transparent !important;
}

body:not(.empire-login-body) .side-nav li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 14px;
  color: #2b210f !important;
  font-weight: 850 !important;
  padding: 9px 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body:not(.empire-login-body) .side-nav li a svg,
body:not(.empire-login-body) .side-nav li a i,
body:not(.empire-login-body) .side-nav li a .main-icon {
  color: #9b6a12 !important;
  fill: #9b6a12 !important;
}

body:not(.empire-login-body) .side-nav li.active > a,
body:not(.empire-login-body) .side-nav li a:hover {
  background: linear-gradient(135deg, #191006, #050403) !important;
  color: #ffe9a3 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.14) !important;
  transform: translateX(2px);
}

body:not(.empire-login-body) .side-nav li.active > a svg,
body:not(.empire-login-body) .side-nav li.active > a i,
body:not(.empire-login-body) .side-nav li a:hover svg,
body:not(.empire-login-body) .side-nav li a:hover i {
  color: #ffe9a3 !important;
  fill: #ffe9a3 !important;
}

/* Tabs and filter bars */
body:not(.empire-login-body) .content-tabs,
body:not(.empire-login-body) .posts-filter,
body:not(.empire-login-body) .nav-pills.nav-search,
body:not(.empire-login-body) .nav-pills.nav-started {
  border: 1px solid rgba(212,175,55,.32) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255,252,242,.98), rgba(246,235,204,.94)) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.75) !important;
  color: #1b1208 !important;
}

body:not(.empire-login-body) .content-tabs ul li a,
body:not(.empire-login-body) .nav-pills .nav-link,
body:not(.empire-login-body) .nav-tabs .nav-link,
body:not(.empire-login-body) .card .nav-link {
  color: #5b3c0e !important;
  font-weight: 900 !important;
  border-radius: 14px !important;
}

body:not(.empire-login-body) .content-tabs ul li.active a,
body:not(.empire-login-body) .content-tabs ul li a:hover,
body:not(.empire-login-body) .nav-pills .nav-link.active,
body:not(.empire-login-body) .nav-tabs .nav-link.active,
body:not(.empire-login-body) .card .nav-link.active {
  color: #0e0904 !important;
  background: linear-gradient(180deg, #fff1ae 0%, #d4af37 52%, #9f6c14 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 18px rgba(139,90,18,.16) !important;
}

body:not(.empire-login-body) .posts-filter {
  padding: 12px 14px !important;
  margin-bottom: 16px !important;
}
body:not(.empire-login-body) .posts-filter span {
  color: #150e06 !important;
  font-weight: 950 !important;
}

/* Directory and business cards */
body:not(.empire-login-body) .directory-card {
  position: relative;
  display: block;
  min-height: 190px;
  border: 1px solid rgba(212,175,55,.34) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,226,138,.22), transparent 34%),
    linear-gradient(145deg, rgba(255,252,242,.98), rgba(244,231,194,.94)) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.80) !important;
  transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease;
}
body:not(.empire-login-body) .directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,.66) !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.18), 0 0 20px rgba(212,175,55,.13) !important;
}
body:not(.empire-login-body) .directory-card .main-icon,
body:not(.empire-login-body) .directory-card svg {
  color: #a97818 !important;
  fill: #a97818 !important;
}

body:not(.empire-login-body) .gambocial-directory-toolbar {
  border: 1px solid rgba(212,175,55,.38) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,226,138,.24), transparent 28%),
    linear-gradient(145deg, rgba(255,252,242,.98), rgba(246,235,204,.94)) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.84) !important;
}
body:not(.empire-login-body) .gambocial-directory-title {
  color: #150e06 !important;
}
body:not(.empire-login-body) .gambocial-directory-chip {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,232,192,.82)) !important;
  border: 1px solid rgba(191,147,39,.40) !important;
  color: #5b3c0e !important;
  font-weight: 900 !important;
}
body:not(.empire-login-body) .gambocial-directory-chip:hover,
body:not(.empire-login-body) .gambocial-directory-chip.active {
  background: linear-gradient(180deg, #191006, #050403) !important;
  color: #ffe9a3 !important;
  border-color: rgba(255,226,138,.62) !important;
}
body:not(.empire-login-body) .gambocial-directory-hint {
  color: #604820 !important;
  font-weight: 750;
}

/* Search boxes inside the content body */
body:not(.empire-login-body) .sg-offcanvas .form-control,
body:not(.empire-login-body) .sg-offcanvas .form-select,
body:not(.empire-login-body) .sg-offcanvas input[type="text"],
body:not(.empire-login-body) .sg-offcanvas input[type="search"] {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(191,147,39,.36) !important;
  color: #15100a !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.05) !important;
}
body:not(.empire-login-body) .sg-offcanvas .form-control::placeholder,
body:not(.empire-login-body) .sg-offcanvas input::placeholder {
  color: rgba(42,31,10,.62) !important;
}

/* Buttons */
body:not(.empire-login-body) .sg-offcanvas .btn-primary,
body:not(.empire-login-body) .sg-offcanvas .btn-success,
body:not(.empire-login-body) .sg-offcanvas .btn-light[type="submit"] {
  border: 1px solid rgba(255,226,138,.75) !important;
  background: linear-gradient(180deg, #fff2aa 0%, #d4af37 48%, #8b5a12 100%) !important;
  color: #0c0904 !important;
  font-weight: 900 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 9px 20px rgba(139,90,18,.18) !important;
}
body:not(.empire-login-body) .sg-offcanvas .btn-primary:hover,
body:not(.empire-login-body) .sg-offcanvas .btn-success:hover,
body:not(.empire-login-body) .sg-offcanvas .btn-light[type="submit"]:hover {
  filter: brightness(1.05);
}

/* Profile command widgets. Keep them visible and premium. */
body:not(.empire-login-body) .gemperor-profile-command-card,
body:not(.empire-login-body) .empire-giveaway-command-card {
  position: relative;
  border: 1px solid rgba(255,226,138,.48) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,226,138,.18), transparent 36%),
    linear-gradient(145deg, rgba(18,12,5,.96), rgba(4,3,2,.98)) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28), 0 0 18px rgba(212,175,55,.10) !important;
  overflow: hidden;
}
body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  background: transparent !important;
}

/* Feed cards and post content */
body:not(.empire-login-body) .alert-post,
body:not(.empire-login-body) .post,
body:not(.empire-login-body) .publisher,
body:not(.empire-login-body) .comment,
body:not(.empire-login-body) .x-form-publisher {
  border-radius: 20px !important;
}
body:not(.empire-login-body) .alert-post {
  border: 1px solid rgba(212,175,55,.22) !important;
  background: rgba(255,255,255,.72) !important;
}

/* Forums get their own high-limit room instead of plain rows. */
body:not(.empire-login-body) .forum-category {
  border: 1px solid rgba(212,175,55,.42) !important;
  border-radius: 20px 20px 0 0 !important;
  background: linear-gradient(135deg, #191006, #050403) !important;
  color: #ffe9a3 !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.14) !important;
}
body:not(.empire-login-body) .forum-category a,
body:not(.empire-login-body) .forum-category i {
  color: #ffe9a3 !important;
  font-weight: 900 !important;
}
body:not(.empire-login-body) .forum-head,
body:not(.empire-login-body) .forum-meta-head {
  border: 1px solid rgba(212,175,55,.22) !important;
  background: linear-gradient(180deg, rgba(255,252,242,.96), rgba(246,235,204,.88)) !important;
  color: #1b1208 !important;
  font-weight: 950 !important;
}
body:not(.empire-login-body) .forum-row,
body:not(.empire-login-body) .forum-thread,
body:not(.empire-login-body) .forum-result,
body:not(.empire-login-body) .forum-meta-conent {
  border-left: 1px solid rgba(212,175,55,.22) !important;
  border-right: 1px solid rgba(212,175,55,.22) !important;
  border-bottom: 1px solid rgba(212,175,55,.18) !important;
  background: rgba(255,252,242,.96) !important;
  color: #30220f !important;
}
body:not(.empire-login-body) .forum-row a,
body:not(.empire-login-body) .forum-thread a,
body:not(.empire-login-body) .forum-result a {
  color: #7b5512 !important;
  font-weight: 850 !important;
}
body:not(.empire-login-body) .forum-breadcrumb,
body:not(.empire-login-body) .breadcrumb {
  border: 1px solid rgba(212,175,55,.24) !important;
  border-radius: 16px !important;
  background: rgba(255,252,242,.92) !important;
}

/* Blog, course, market and job widgets */
body:not(.empire-login-body) .blogs-widget-header,
body:not(.empire-login-body) .stat-panel,
body:not(.empire-login-body) .product-meta,
body:not(.empire-login-body) .blog-wrapper {
  border-color: rgba(212,175,55,.25) !important;
}
body:not(.empire-login-body) .blogs-widget-title,
body:not(.empire-login-body) .blog-title,
body:not(.empire-login-body) .product-title {
  color: #140d06 !important;
  font-weight: 950 !important;
}

/* Mobile: avoid the black fog effect and keep tap targets clear. */
@media (max-width: 767px) {
  body:not(.empire-login-body) .sg-offcanvas {
    padding-left: 10px;
    padding-right: 10px;
  }
  body:not(.empire-login-body) .sg-offcanvas-mainbar > .card,
  body:not(.empire-login-body) .sg-offcanvas-sidebar > .card,
  body:not(.empire-login-body) .content-tabs,
  body:not(.empire-login-body) .posts-filter,
  body:not(.empire-login-body) .gambocial-directory-toolbar {
    border-radius: 18px !important;
  }
  body:not(.empire-login-body) .side-nav li a {
    min-height: 40px;
    font-size: 13px !important;
  }
  body:not(.empire-login-body) .content-tabs ul li a,
  body:not(.empire-login-body) .nav-pills .nav-link,
  body:not(.empire-login-body) .nav-tabs .nav-link {
    font-size: 13px !important;
  }
  body:not(.empire-login-body) .gambocial-directory-chips {
    gap: 7px;
  }
  body:not(.empire-login-body) .gambocial-directory-chip {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE WIDGET RESCUE v2
   Fixes the custom widgets/leaderboards without touching
   header, footer, login or the universal hero.
   ========================================================= */

/* Main feed/widget blocks need stronger definition than ordinary cards */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header),
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) {
  border: 1px solid rgba(212,175,55,.46) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,226,138,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,253,247,.99), rgba(246,236,207,.96)) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.16),
    0 0 0 1px rgba(255,255,255,.74) inset,
    0 0 26px rgba(212,175,55,.10) !important;
  overflow: hidden !important;
}

/* Make widget title bars feel intentional, not plain Bootstrap */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-header,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-header {
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(212,175,55,.35) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,245,214,.92) 52%, rgba(239,219,165,.86)) !important;
  color: #120b05 !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.74) !important;
}

body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-header strong,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-header strong {
  color: #120b05 !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
}

/* Give the body room and remove the foggy blank-white feeling */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body {
  padding: 18px !important;
  background:
    radial-gradient(circle at 88% 6%, rgba(111,66,193,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(250,243,223,.92)) !important;
}

/* Custom widgets inside admin/widget HTML: Top Winners, Top Businesses, leaderboard panels, etc. */
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="widget"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Widget"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="leaderboard"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Leaderboard"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="winner"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Winner"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="business"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Business"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="casino"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Casino"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="pulse"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="Pulse"] {
  color: #130d06 !important;
  text-shadow: none !important;
}

/* The inner display cards need a sharper luxury border and less haze */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body > div,
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body > section,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body > div,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body > section {
  max-width: 100% !important;
}

body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body > div:not(.row):not(.clearfix):not(.dropdown-menu):not(.no-data):not(.no-results),
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body > section:not(.row),
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body > div:not(.row):not(.clearfix):not(.dropdown-menu):not(.no-data):not(.no-results),
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body > section:not(.row) {
  border-color: rgba(212,175,55,.42) !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.72) inset,
    0 0 20px rgba(212,175,55,.12) !important;
}

/* Strong readable typography inside leaderboard widgets */
body:not(.empire-login-body) .sg-offcanvas .card .card-body h1,
body:not(.empire-login-body) .sg-offcanvas .card .card-body h2,
body:not(.empire-login-body) .sg-offcanvas .card .card-body h3,
body:not(.empire-login-body) .sg-offcanvas .card .card-body h4,
body:not(.empire-login-body) .sg-offcanvas .card .card-body h5,
body:not(.empire-login-body) .sg-offcanvas .card .card-body strong,
body:not(.empire-login-body) .sg-offcanvas .card .card-body b {
  color: #120b05 !important;
  font-weight: 950 !important;
  text-shadow: none !important;
}

body:not(.empire-login-body) .sg-offcanvas .card .card-body small,
body:not(.empire-login-body) .sg-offcanvas .card .card-body .text-muted,
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="muted"] {
  color: #6a5124 !important;
  font-weight: 750 !important;
}

/* Round avatar/star chips in widgets should look like minted tokens */
body:not(.empire-login-body) .sg-offcanvas .card .card-body .rounded-circle,
body:not(.empire-login-body) .sg-offcanvas .card .card-body img.rounded-circle,
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="avatar"],
body:not(.empire-login-body) .sg-offcanvas .card .card-body [class*="icon"] {
  box-shadow: 0 8px 18px rgba(0,0,0,.13), 0 0 0 1px rgba(212,175,55,.24) !important;
}

/* Profile command row: restore the custom widgets above sports ticker */
body:not(.empire-login-body) .gemperor-profile-command-row {
  max-width: 680px !important;
  gap: 12px !important;
  margin: 18px auto 12px !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card {
  min-height: 78px !important;
  height: 78px !important;
  border: 1px solid rgba(255,226,138,.62) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,226,138,.20), transparent 38%),
    linear-gradient(145deg, rgba(18,12,5,.98), rgba(3,2,1,.98)) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 20px rgba(212,175,55,.14) !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  height: 78px !important;
  background: transparent !important;
}

body:not(.empire-login-body) .empire-giveaway-command-title {
  color: #ffe9a3 !important;
  font-weight: 950 !important;
}
body:not(.empire-login-body) .empire-giveaway-command-sub {
  color: #ffffff !important;
}

@media (max-width: 767px) {
  body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-header,
  body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-header {
    min-height: 50px !important;
    padding: 13px 16px !important;
  }
  body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.card-header) > .card-body,
  body:not(.empire-login-body) .sg-offcanvas-sidebar > .card:has(.card-header) > .card-body {
    padding: 16px !important;
  }
  body:not(.empire-login-body) .gemperor-profile-command-card,
  body:not(.empire-login-body) .gemperor-profile-command-card iframe {
    min-height: 82px !important;
    height: 82px !important;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE WIDGET FRAMEWORK v1.0
   Purpose: make the custom home/profile widgets feel like
   intentional luxury modules without touching header/footer.
   Inspired by current mobile PDF: Top Wins, Businesses,
   Promoted Users, Stories, Good Morning and feed cards.
   ========================================================= */

:root {
  --empire-widget-ink: #1a1208;
  --empire-widget-muted: #6d5730;
  --empire-widget-cream: #fffaf0;
  --empire-widget-ivory: #f7edcf;
  --empire-widget-gold: #d4af37;
  --empire-widget-gold-2: #ffe9a3;
  --empire-widget-purple: #7b3ff2;
  --empire-widget-shadow: 0 18px 48px rgba(20, 13, 4, .16);
}

/* Safety rail: do not remodel the palace gates */
body:not(.empire-login-body) .main-header,
body:not(.empire-login-body) .main-header *,
body:not(.empire-login-body) .footer,
body:not(.empire-login-body) .footer *,
body:not(.empire-login-body) .empire-footer,
body:not(.empire-login-body) .empire-footer *,
body:not(.empire-login-body) .footer-bottom-bar,
body:not(.empire-login-body) .footer-bottom-bar * {
  text-shadow: initial;
}

/* -------- Middle content cards: reduce fog, increase polish -------- */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card,
body:not(.empire-login-body) .content-panel,
body:not(.empire-login-body) .x-widget {
  position: relative !important;
  border-radius: 24px !important;
  border: 1px solid rgba(212,175,55,.34) !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,233,163,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,246,231,.96)) !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,.10),
    0 0 0 1px rgba(255,255,255,.82) inset !important;
  overflow: hidden !important;
}

body:not(.empire-login-body) .sg-offcanvas-mainbar > .card::before,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card::before,
body:not(.empire-login-body) .content-panel::before,
body:not(.empire-login-body) .x-widget::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent, rgba(212,175,55,.18), transparent) top left/100% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.36), transparent 28%) !important;
  opacity: .85 !important;
  z-index: 0 !important;
}

body:not(.empire-login-body) .sg-offcanvas-mainbar > .card > *,
body:not(.empire-login-body) .sg-offcanvas-sidebar > .card > *,
body:not(.empire-login-body) .content-panel > *,
body:not(.empire-login-body) .x-widget > * {
  position: relative !important;
  z-index: 1 !important;
}

body:not(.empire-login-body) .card-header,
body:not(.empire-login-body) .x-widget-header,
body:not(.empire-login-body) .content-panel-header {
  border-bottom: 1px solid rgba(212,175,55,.22) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,237,210,.66)) !important;
  color: var(--empire-widget-ink) !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
}

/* -------- Status widgets: Good Morning, stories, prompt boxes -------- */
body:not(.empire-login-body) .sg-offcanvas-mainbar .publisher,
body:not(.empire-login-body) .sg-offcanvas-mainbar .publisher-box,
body:not(.empire-login-body) .sg-offcanvas-mainbar .stories,
body:not(.empire-login-body) .sg-offcanvas-mainbar .story,
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has(.publisher),
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has([placeholder*="mind"]),
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has(.js_publisher) {
  background:
    radial-gradient(circle at 8% 0%, rgba(255,233,163,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,238,.96)) !important;
}

/* Good Morning style blocks usually have an icon plus compact greeting text */
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:not(:has(.card-header)):not(:has(.post)):not(:has(.publisher)) {
  border-color: rgba(212,175,55,.30) !important;
}

body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:not(:has(.card-header)):not(:has(.post)):not(:has(.publisher)) b,
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:not(:has(.card-header)):not(:has(.post)):not(:has(.publisher)) strong {
  color: #5f4210 !important;
  font-weight: 950 !important;
}

/* -------- Intelligence Widgets: Top 3 Wins / Casino Pulse panels -------- */
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="winner"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Winner"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="casino"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Casino"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="pulse"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Pulse"]) {
  background:
    radial-gradient(circle at 92% 4%, rgba(123,63,242,.15), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,248,229,.94)) !important;
}

body:not(.empire-login-body) .card .card-body [class*="winner"],
body:not(.empire-login-body) .card .card-body [class*="Winner"],
body:not(.empire-login-body) .card .card-body [class*="casino"],
body:not(.empire-login-body) .card .card-body [class*="Casino"],
body:not(.empire-login-body) .card .card-body [class*="pulse"],
body:not(.empire-login-body) .card .card-body [class*="Pulse"] {
  border-color: rgba(212,175,55,.48) !important;
}

/* Inner custom panels in those widgets, the white card inside the white card */
body:not(.empire-login-body) .card:has(.card-header) .card-body > div:not(.row):not(.col):not(.clearfix):not(.dropdown-menu):not(.no-data):not(.no-results),
body:not(.empire-login-body) .card:has(.card-header) .card-body > section:not(.row):not(.col) {
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(123,63,242,.14), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f8efd6 100%) !important;
  border: 1px solid rgba(212,175,55,.46) !important;
  box-shadow:
    0 18px 42px rgba(28,18,5,.18),
    0 0 0 1px rgba(255,255,255,.82) inset,
    0 0 22px rgba(212,175,55,.12) !important;
}

body:not(.empire-login-body) .card:has(.card-header) .card-body > div:not(.row):not(.col):not(.clearfix):not(.dropdown-menu):not(.no-data):not(.no-results)::before,
body:not(.empire-login-body) .card:has(.card-header) .card-body > section:not(.row):not(.col)::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background:
    linear-gradient(90deg, rgba(212,175,55,.62), transparent 26%, transparent 72%, rgba(123,63,242,.22)) top left/100% 2px no-repeat !important;
}

/* Casino Pulse / leaderboard headings */
body:not(.empire-login-body) .card .card-body [class*="title"],
body:not(.empire-login-body) .card .card-body [class*="Title"],
body:not(.empire-login-body) .card .card-body h1,
body:not(.empire-login-body) .card .card-body h2,
body:not(.empire-login-body) .card .card-body h3,
body:not(.empire-login-body) .card .card-body h4,
body:not(.empire-login-body) .card .card-body h5 {
  color: #211405 !important;
  font-weight: 950 !important;
  letter-spacing: -.015em !important;
  text-shadow: none !important;
}

body:not(.empire-login-body) .card .card-body [class*="kicker"],
body:not(.empire-login-body) .card .card-body [class*="Kicker"],
body:not(.empire-login-body) .card .card-body [class*="eyebrow"],
body:not(.empire-login-body) .card .card-body [class*="Eyebrow"] {
  color: #6b4a12 !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

/* Rows inside Top 3 style widgets */
body:not(.empire-login-body) .card .card-body li,
body:not(.empire-login-body) .card .card-body [class*="item"],
body:not(.empire-login-body) .card .card-body [class*="Item"],
body:not(.empire-login-body) .card .card-body [class*="row"],
body:not(.empire-login-body) .card .card-body [class*="Row"] {
  color: var(--empire-widget-ink) !important;
  text-shadow: none !important;
}

body:not(.empire-login-body) .card .card-body [class*="amount"],
body:not(.empire-login-body) .card .card-body [class*="Amount"],
body:not(.empire-login-body) .card .card-body [class*="score"],
body:not(.empire-login-body) .card .card-body [class*="Score"],
body:not(.empire-login-body) .card .card-body [class*="rank"],
body:not(.empire-login-body) .card .card-body [class*="Rank"] {
  color: #5d3b08 !important;
  font-weight: 950 !important;
}

body:not(.empire-login-body) .card .card-body small,
body:not(.empire-login-body) .card .card-body .text-muted,
body:not(.empire-login-body) .card .card-body [class*="demo"],
body:not(.empire-login-body) .card .card-body [class*="Demo"] {
  color: #6b5631 !important;
  font-weight: 800 !important;
}

/* Star / medal buttons inside leaderboards */
body:not(.empire-login-body) .card .card-body .fa-star,
body:not(.empire-login-body) .card .card-body [class*="star"],
body:not(.empire-login-body) .card .card-body [class*="Star"],
body:not(.empire-login-body) .card .card-body [class*="badge"],
body:not(.empire-login-body) .card .card-body [class*="Badge"] {
  color: #8b5a12 !important;
  fill: #8b5a12 !important;
}

body:not(.empire-login-body) .card .card-body .rounded-circle,
body:not(.empire-login-body) .card .card-body [style*="border-radius:50%"],
body:not(.empire-login-body) .card .card-body [style*="border-radius: 50%"] {
  background:
    radial-gradient(circle at 35% 25%, #ffffff, #f8ecd0 68%, #ede0bf) !important;
  border: 1px solid rgba(212,175,55,.28) !important;
  box-shadow:
    0 9px 20px rgba(0,0,0,.14),
    0 0 0 1px rgba(255,255,255,.80) inset !important;
}

/* -------- Leaderboard widgets: businesses, creators, promoted users -------- */
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="business"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Business"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="creator"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Creator"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="promoted"]),
body:not(.empire-login-body) .card:has(.card-header) .card-body:has([class*="Promoted"]) {
  background:
    radial-gradient(circle at 8% 0%, rgba(255,233,163,.17), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,242,222,.95)) !important;
}

/* Suggested friends / invite / action widgets */
body:not(.empire-login-body) .card:has(a[href*="friends"]),
body:not(.empire-login-body) .card:has(a[href*="invite"]),
body:not(.empire-login-body) .card:has([class*="friend"]),
body:not(.empire-login-body) .card:has([class*="Friend"]),
body:not(.empire-login-body) .card:has([class*="invite"]),
body:not(.empire-login-body) .card:has([class*="Invite"]) {
  background:
    radial-gradient(circle at 90% 0%, rgba(212,175,55,.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,244,229,.96)) !important;
}

body:not(.empire-login-body) .card a.btn,
body:not(.empire-login-body) .card button.btn,
body:not(.empire-login-body) .card .btn-primary,
body:not(.empire-login-body) .card .btn-success {
  border-radius: 999px !important;
  border: 1px solid rgba(212,175,55,.54) !important;
  background: linear-gradient(180deg, #fff3b7 0%, #d4af37 52%, #946513 100%) !important;
  color: #100a03 !important;
  font-weight: 950 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 8px 22px rgba(139,90,18,.16) !important;
}

/* -------- Feed cards: magazine-clean, not foggy -------- */
body:not(.empire-login-body) .post,
body:not(.empire-login-body) .posts .card,
body:not(.empire-login-body) .js_posts .card,
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has(.post-header),
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has(.post-footer),
body:not(.empire-login-body) .sg-offcanvas-mainbar .card:has(.post-stats) {
  border-radius: 24px !important;
  border: 1px solid rgba(212,175,55,.22) !important;
  background: rgba(255,255,255,.985) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.08) !important;
}

body:not(.empire-login-body) .post .post-header,
body:not(.empire-login-body) .post-header {
  padding-top: 18px !important;
}

body:not(.empire-login-body) .post .post-footer,
body:not(.empire-login-body) .post-footer,
body:not(.empire-login-body) .post-actions {
  border-top: 1px solid rgba(212,175,55,.16) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,246,235,.82)) !important;
}

body:not(.empire-login-body) .post img,
body:not(.empire-login-body) .post-media img,
body:not(.empire-login-body) .post-media video {
  box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}

/* Feed filter bar: Recent Updates */
body:not(.empire-login-body) .posts-filter,
body:not(.empire-login-body) .post-filter,
body:not(.empire-login-body) .js_posts_stream_filters,
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.dropdown):has(.fa-globe),
body:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.dropdown):has(.fa-bars) {
  border-radius: 20px !important;
  border: 1px solid rgba(212,175,55,.34) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
}

/* -------- Profile command row: Gemperor Ranking + Empire Giveaway -------- */
body:not(.empire-login-body) .gemperor-profile-command-row {
  max-width: 700px !important;
  gap: 12px !important;
  margin: 18px auto 14px !important;
  padding-inline: 14px !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card {
  min-height: 82px !important;
  height: 82px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,226,138,.66) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,226,138,.22), transparent 38%),
    linear-gradient(145deg, #1b1005, #050302 72%) !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.26),
    0 0 22px rgba(212,175,55,.14),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  height: 82px !important;
  background: transparent !important;
}

body:not(.empire-login-body) .empire-giveaway-command-card {
  position: relative !important;
  overflow: hidden !important;
}

body:not(.empire-login-body) .empire-giveaway-command-card::after {
  content: "" !important;
  position: absolute !important;
  inset: -40% auto -40% -32% !important;
  width: 48% !important;
  transform: rotate(18deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent) !important;
  pointer-events: none !important;
}

body:not(.empire-login-body) .empire-giveaway-command-icon {
  background: radial-gradient(circle at 35% 25%, #fff7c5, #d4af37 55%, #7b4d0d) !important;
  color: #080604 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 0 18px rgba(212,175,55,.28) !important;
}

body:not(.empire-login-body) .empire-giveaway-command-title {
  color: #ffe9a3 !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
}

body:not(.empire-login-body) .empire-giveaway-command-sub {
  color: #ffffff !important;
  font-weight: 950 !important;
}

/* -------- Mobile tightening -------- */
@media (max-width: 767px) {
  body:not(.empire-login-body) .sg-offcanvas-mainbar > .card,
  body:not(.empire-login-body) .sg-offcanvas-sidebar > .card,
  body:not(.empire-login-body) .post,
  body:not(.empire-login-body) .posts .card,
  body:not(.empire-login-body) .js_posts .card {
    border-radius: 22px !important;
  }

  body:not(.empire-login-body) .card-header,
  body:not(.empire-login-body) .x-widget-header,
  body:not(.empire-login-body) .content-panel-header {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }

  body:not(.empire-login-body) .card:has(.card-header) .card-body > div:not(.row):not(.col):not(.clearfix):not(.dropdown-menu):not(.no-data):not(.no-results),
  body:not(.empire-login-body) .card:has(.card-header) .card-body > section:not(.row):not(.col) {
    border-radius: 20px !important;
  }

  body:not(.empire-login-body) .gemperor-profile-command-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    padding-inline: 12px !important;
  }

  body:not(.empire-login-body) .gemperor-profile-command-card,
  body:not(.empire-login-body) .gemperor-profile-command-card iframe {
    min-height: 78px !important;
    height: 78px !important;
  }
}

/* Older browser fallback if :has is weak: keep the page readable */
@supports not selector(:has(*)) {
  body:not(.empire-login-body) .sg-offcanvas-mainbar > .card,
  body:not(.empire-login-body) .sg-offcanvas-sidebar > .card,
  body:not(.empire-login-body) .x-widget,
  body:not(.empire-login-body) .content-panel {
    background: linear-gradient(180deg, #ffffff, #fbf4df) !important;
    color: #1a1208 !important;
  }
  body:not(.empire-login-body) .card *,
  body:not(.empire-login-body) .x-widget *,
  body:not(.empire-login-body) .content-panel * {
    text-shadow: none !important;
  }
}

/* =========================================================
   GAMBOCIAL EMPIRE UI 1.0 - SURGICAL ICON COLOR LOCK
   Baseline: keeps working Stories + poker-chip widgets intact.
   Purpose: remove remaining Sngine blue SVG/icon color only.
   ========================================================= */

:root {
  --empire-icon-bronze: #9a6f2a;
  --empire-icon-bronze-light: #b98a35;
  --empire-icon-gold-hover: #d4af37;
  --empire-icon-cream-hover: #fff1b8;
}

/* Remove blue from left slide-out/menu icons without adding boxes */
body:not(.empire-login-body) .side-nav svg,
body:not(.empire-login-body) .side-nav svg *,
body:not(.empire-login-body) .side-nav .main-icon,
body:not(.empire-login-body) .side-nav .main-icon *,
body:not(.empire-login-body) .side-nav i,
body:not(.empire-login-body) .side-nav .icon,
body:not(.empire-login-body) .side-nav [class*="icon"],
body:not(.empire-login-body) .side-nav [class^="fa"],
body:not(.empire-login-body) .sg-offcanvas-sidebar svg,
body:not(.empire-login-body) .sg-offcanvas-sidebar svg *,
body:not(.empire-login-body) .sg-offcanvas-sidebar .main-icon,
body:not(.empire-login-body) .sg-offcanvas-sidebar .main-icon *,
body:not(.empire-login-body) .sg-offcanvas-sidebar i,
body:not(.empire-login-body) .sg-offcanvas-sidebar .icon,
body:not(.empire-login-body) .sg-offcanvas-sidebar [class*="icon"],
body:not(.empire-login-body) .sg-offcanvas-sidebar [class^="fa"] {
  color: var(--empire-icon-bronze) !important;
  fill: var(--empire-icon-bronze) !important;
  stroke: var(--empire-icon-bronze) !important;
  background-color: transparent !important;
}

/* Keep icon wrappers clean: no funky square plates */
body:not(.empire-login-body) .side-nav .main-icon,
body:not(.empire-login-body) .side-nav .icon,
body:not(.empire-login-body) .side-nav [class*="icon"],
body:not(.empire-login-body) .sg-offcanvas-sidebar .main-icon,
body:not(.empire-login-body) .sg-offcanvas-sidebar .icon,
body:not(.empire-login-body) .sg-offcanvas-sidebar [class*="icon"] {
  box-shadow: none !important;
  border: 0 !important;
}

/* Active/hover states: warm gold, still no blue */
body:not(.empire-login-body) .side-nav li.active > a svg,
body:not(.empire-login-body) .side-nav li.active > a svg *,
body:not(.empire-login-body) .side-nav li.active > a .main-icon,
body:not(.empire-login-body) .side-nav li.active > a .main-icon *,
body:not(.empire-login-body) .side-nav li.active > a i,
body:not(.empire-login-body) .side-nav li a:hover svg,
body:not(.empire-login-body) .side-nav li a:hover svg *,
body:not(.empire-login-body) .side-nav li a:hover .main-icon,
body:not(.empire-login-body) .side-nav li a:hover .main-icon *,
body:not(.empire-login-body) .side-nav li a:hover i {
  color: var(--empire-icon-gold-hover) !important;
  fill: var(--empire-icon-gold-hover) !important;
  stroke: var(--empire-icon-gold-hover) !important;
}

/* Header dropdown/profile dropdown icons */
body:not(.empire-login-body) .dropdown-menu svg,
body:not(.empire-login-body) .dropdown-menu svg *,
body:not(.empire-login-body) .dropdown-menu i,
body:not(.empire-login-body) .dropdown-menu .main-icon,
body:not(.empire-login-body) .dropdown-menu .main-icon *,
body:not(.empire-login-body) .dropdown-menu [class*="icon"],
body:not(.empire-login-body) .dropdown-menu [class^="fa"],
body:not(.empire-login-body) .profile-dropdown svg,
body:not(.empire-login-body) .profile-dropdown svg *,
body:not(.empire-login-body) .profile-dropdown i,
body:not(.empire-login-body) .profile-dropdown .main-icon,
body:not(.empire-login-body) .profile-dropdown .main-icon *,
body:not(.empire-login-body) .profile-dropdown [class*="icon"],
body:not(.empire-login-body) .profile-dropdown [class^="fa"] {
  color: var(--empire-icon-bronze-light) !important;
  fill: var(--empire-icon-bronze-light) !important;
  stroke: var(--empire-icon-bronze-light) !important;
}

/* Preserve top black header icons as gold */
body:not(.empire-login-body) .main-header .header-icon,
body:not(.empire-login-body) .main-header .header-icon *,
body:not(.empire-login-body) .main-header svg,
body:not(.empire-login-body) .main-header svg *,
body:not(.empire-login-body) .main-header i {
  color: var(--empire-gold-bright) !important;
  fill: var(--empire-gold-bright) !important;
  stroke: var(--empire-gold-bright) !important;
}

/* Avatar polish only: brighten real avatars in dropdowns, but do not touch Stories layout */
body:not(.empire-login-body) .dropdown-menu img,
body:not(.empire-login-body) .profile-dropdown img,
body:not(.empire-login-body) .main-header img {
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
}

/* Stories safety lock: never repaint the story image tile into a gold block */
body:not(.empire-login-body) .stories img,
body:not(.empire-login-body) .stories .avatar,
body:not(.empire-login-body) .story img,
body:not(.empire-login-body) .story .avatar,
body:not(.empire-login-body) [class*="story"] img,
body:not(.empire-login-body) [class*="Story"] img {
  background: transparent !important;
  filter: brightness(1.04) contrast(1.03) saturate(1.04);
}

/* =========================================================
   GAMBOCIAL EMPIRE NIGHT MODE POLISH
   Fixes Recent Updates text in dark theme and adds metallic
   side shading to Gemperor profile command cards.
   ========================================================= */

/* Recent Updates / feed filters: readable in night mode */
body.night-mode:not(.empire-login-body) .posts-filter,
body.night-mode:not(.empire-login-body) .post-filter,
body.night-mode:not(.empire-login-body) .js_posts_stream_filters,
body.night-mode:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.dropdown):has(.fa-globe),
body.night-mode:not(.empire-login-body) .sg-offcanvas-mainbar > .card:has(.dropdown):has(.fa-bars) {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,226,138,.16), transparent 34%),
    linear-gradient(145deg, rgba(18,14,8,.96), rgba(6,5,4,.98)) !important;
  border: 1px solid rgba(212,175,55,.48) !important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: #ffe9a3 !important;
}

body.night-mode:not(.empire-login-body) .posts-filter *,
body.night-mode:not(.empire-login-body) .post-filter *,
body.night-mode:not(.empire-login-body) .js_posts_stream_filters *,
body.night-mode:not(.empire-login-body) .posts-filter span,
body.night-mode:not(.empire-login-body) .post-filter span,
body.night-mode:not(.empire-login-body) .js_posts_stream_filters span,
body.night-mode:not(.empire-login-body) .posts-filter a,
body.night-mode:not(.empire-login-body) .post-filter a,
body.night-mode:not(.empire-login-body) .js_posts_stream_filters a {
  color: #ffe9a3 !important;
  fill: #d4af37 !important;
  stroke: #d4af37 !important;
  font-weight: 900 !important;
}

body.night-mode:not(.empire-login-body) .posts-filter .dropdown-toggle,
body.night-mode:not(.empire-login-body) .post-filter .dropdown-toggle,
body.night-mode:not(.empire-login-body) .js_posts_stream_filters .dropdown-toggle {
  color: #fff1b8 !important;
  text-shadow: 0 0 10px rgba(212,175,55,.26) !important;
}

/* Gemperor score/profile command raised block: metallic gold side rails */
body:not(.empire-login-body) .gemperor-profile-command-card {
  position: relative !important;
  isolation: isolate !important;
  border-color: rgba(255,226,138,.82) !important;
  background:
    linear-gradient(90deg,
      rgba(105,67,13,.92) 0%,
      rgba(212,175,55,.55) 3%,
      rgba(18,12,5,.98) 10%,
      rgba(5,3,2,.98) 50%,
      rgba(18,12,5,.98) 90%,
      rgba(212,175,55,.55) 97%,
      rgba(105,67,13,.92) 100%) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    0 0 24px rgba(212,175,55,.18),
    inset 8px 0 18px rgba(255,226,138,.18),
    inset -8px 0 18px rgba(255,226,138,.18),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card::before,
body:not(.empire-login-body) .gemperor-profile-command-card::after {
  content: "" !important;
  position: absolute !important;
  top: 9px !important;
  bottom: 9px !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff4b2 0%, #d4af37 45%, #7f5010 100%) !important;
  box-shadow: 0 0 14px rgba(212,175,55,.34) !important;
  opacity: .88 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card::before {
  left: 10px !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card::after {
  right: 10px !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card > *,
body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  position: relative !important;
  z-index: 2 !important;
}

body.night-mode:not(.empire-login-body) .gemperor-profile-command-card {
  border-color: rgba(255,226,138,.9) !important;
  box-shadow:
    0 20px 52px rgba(0,0,0,.52),
    0 0 30px rgba(212,175,55,.24),
    inset 10px 0 22px rgba(255,226,138,.20),
    inset -10px 0 22px rgba(255,226,138,.20),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}


/* =========================================================
   GAMBOCIAL EMPIRE PROFILE COMMAND COUSIN FIX
   Makes Gemperor Ranking match the Empire Giveaway black/gold
   raised command block instead of the split white/purple look.
   ========================================================= */

body:not(.empire-login-body) .gemperor-profile-command-row {
  align-items: stretch !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 82px !important;
  height: 82px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,226,138,.76) !important;
  background:
    linear-gradient(90deg,
      rgba(112,75,18,.96) 0%,
      rgba(245,210,104,.78) 4%,
      rgba(20,13,5,.98) 13%,
      rgba(5,3,2,.99) 50%,
      rgba(20,13,5,.98) 87%,
      rgba(245,210,104,.78) 96%,
      rgba(112,75,18,.96) 100%) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    0 0 25px rgba(212,175,55,.18),
    inset 10px 0 22px rgba(255,226,138,.22),
    inset -10px 0 22px rgba(255,226,138,.22),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 44px !important;
  border-radius: 24px 0 0 24px !important;
  background:
    radial-gradient(circle at 60% 50%, rgba(255,244,178,.64), transparent 34%),
    linear-gradient(90deg, rgba(255,226,138,.72), rgba(133,87,17,.55), transparent) !important;
  box-shadow: inset -1px 0 0 rgba(255,244,178,.38), 0 0 18px rgba(212,175,55,.20) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 0 auto !important;
  width: 44px !important;
  border-radius: 0 24px 24px 0 !important;
  background:
    radial-gradient(circle at 40% 50%, rgba(255,244,178,.58), transparent 34%),
    linear-gradient(270deg, rgba(255,226,138,.70), rgba(133,87,17,.55), transparent) !important;
  box-shadow: inset 1px 0 0 rgba(255,244,178,.34), 0 0 18px rgba(212,175,55,.20) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card > *,
body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  position: relative !important;
  z-index: 3 !important;
}

body:not(.empire-login-body) .gemperor-profile-command-card iframe {
  display: block !important;
  width: 100% !important;
  min-height: 82px !important;
  height: 82px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.night-mode:not(.empire-login-body) .gemperor-profile-command-card {
  border-color: rgba(255,226,138,.90) !important;
  background:
    linear-gradient(90deg,
      rgba(124,82,18,.98) 0%,
      rgba(255,225,122,.82) 4%,
      rgba(17,11,4,.99) 13%,
      rgba(2,1,1,.99) 50%,
      rgba(17,11,4,.99) 87%,
      rgba(255,225,122,.82) 96%,
      rgba(124,82,18,.98) 100%) !important;
  box-shadow:
    0 20px 52px rgba(0,0,0,.54),
    0 0 32px rgba(212,175,55,.25),
    inset 10px 0 24px rgba(255,226,138,.24),
    inset -10px 0 24px rgba(255,226,138,.24),
    inset 0 1px 0 rgba(255,255,255,.17) !important;
}
