/* ==========================================================================
   WORLD OF WARCRAFT: FOREVER — THE HEARTH
   Official phpBB3 Style Sheet (based on prosilver)
   Theme: The Hearth / World of Warcraft: Forever
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Alegreya:ital,wght@0,400;0,600;1,400;1,600&family=Marcellus&family=Marcellus+SC&display=swap');

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  --hf-font-display: 'Marcellus', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --hf-font-header: 'Marcellus SC', 'Palatino Linotype', Georgia, serif;
  --hf-font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --hf-font-lore: 'Alegreya', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;

  --hf-ink: #050b17;
  --hf-night: #0a1730;
  --hf-deep: #10264a;
  --hf-ivory: #f5ecd7;
  --hf-parch: #ddd2ba;
  --hf-steel: #a9bcd8;
  --hf-grey: #8f9db6;
  --hf-gold: #f4c65b;
  --hf-gold-hi: #ffe09a;
  --hf-gold-soft: #e3c07c;
  --hf-sky: #8fcbff;
  --hf-sky-hi: #b9e0ff;
  --hf-azure: #3f8fe0;
  --hf-bronze: #a67d46;
  --hf-bronze-line: #7c5e35;

  --hf-display: var(--hf-font-display);
  --hf-header: var(--hf-font-header);
  --hf-body: var(--hf-font-body);
  --hf-lore-face: var(--hf-font-lore);

  --hf-bar-h: 56px;
  --hf-bar-inset: calc(var(--hf-bar-h) * 0.1875);
  --hf-rail: calc(var(--hf-bar-h) * 0.1146);
  --hf-pad: 20px;
}

/* ==========================================================================
   Base HTML & Body Resets for phpBB (Prosilver Overrides)
   ========================================================================== */
html, body, body#phpbb {
  font-size: 100%;
  background-color: #0a1730 !important;
  color: var(--hf-parch) !important;
}

body#phpbb {
  font: 400 15px/1.6 var(--hf-body);
  background: linear-gradient(#081228e6 0, #08132adb 180px, #0a1730 420px),
              url("./images/hearth/kingdoms-wide.webp") top center / 100% no-repeat,
              #0a1730 !important;
  background-attachment: fixed !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 999px) {
  body#phpbb {
    background: linear-gradient(#081228e6 0, #08132adb 180px, #0a1730 420px),
                url("./images/hearth/kingdoms.webp") top center / 100% no-repeat,
                #0a1730 !important;
    background-attachment: fixed !important;
  }
}

/* Explicit Prosilver Wrapper and Container Resets (No White Boxes) */
#wrap, .wrap, #wrap.wrap, body#phpbb #wrap, body#phpbb .wrap {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 1340px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#page-header, body#phpbb #page-header,
#page-body, body#phpbb #page-body,
#page-footer, body#phpbb #page-footer {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.panel, body#phpbb .panel {
  background: rgba(8, 18, 38, 0.88) !important;
  color: var(--hf-parch) !important;
  border: 1px solid rgba(124, 94, 53, 0.45) !important;
}

.bg1, .bg2, .bg3,
body#phpbb .bg1, body#phpbb .bg2, body#phpbb .bg3 {
  background: transparent !important;
  background-color: transparent !important;
}

.forabg, .forumbg {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Links */
a {
  color: var(--hf-sky);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--hf-sky-hi);
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hf-header);
  font-weight: 400;
  color: var(--hf-gold-soft);
  letter-spacing: 0.06em;
  margin-top: 0;
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }

/* Selection */
::selection {
  color: #fff3d0;
  background: rgba(244, 198, 91, 0.35);
}

/* ==========================================================================
   The Hearth Top HUD Navigation Bar
   ========================================================================== */
.hf-top {
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.hf-bar {
  height: var(--hf-bar-h);
  background: 
    url("./images/hearth/hud-left.png") left top / auto 100% no-repeat,
    url("./images/hearth/hud-right.png") right top / auto 100% no-repeat,
    url("./images/hearth/hud-mid.png") left top / auto 100% repeat-x,
    linear-gradient(#7c5e35, #7c5e35) left top calc(var(--hf-bar-h) * 0.15) / 100% 1px no-repeat,
    linear-gradient(#7c5e35, #7c5e35) left bottom var(--hf-rail) / 100% 1px no-repeat,
    #091427;
  align-items: stretch;
  padding: 0 16px 0 12px;
  display: flex;
}

.hf-mark {
  flex: none;
  align-self: stretch;
  align-items: center;
  min-width: 44px;
  padding: 0 10px 0 4px;
  display: flex;
}

.hf-mark-art {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  background: 
    url("./images/hearth/logo-360.png") 50%/contain no-repeat,
    radial-gradient(circle, #2f6db4 0 8px, #a67d46 8.5px 10px, rgba(166,125,70,0) 10.5px) 50%/100% 100% no-repeat;
  width: 48px;
  height: 40px;
  display: block;
  transition: transform 0.2s, filter 0.2s;
}

.hf-mark:hover .hf-mark-art {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(244,198,91,0.5));
  transform: scale(1.04);
}

.hf-tabs {
  flex: auto;
  align-items: stretch;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}
.hf-tabs::-webkit-scrollbar { display: none; }

.hf-tab {
  min-width: 0;
  padding: var(--hf-bar-inset) 14px;
  color: var(--hf-parch);
  font: 400 14px/1 var(--hf-header);
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.12s;
  display: flex;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hf-tab:before {
  content: "";
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.7));
  background: 50%/contain no-repeat;
  flex: none;
  width: 22px;
  height: 22px;
}

.hf-tab[data-tab="hearth"]:before { background-image: url("./images/hearth/g-hearth.png"); }
.hf-tab[data-tab="forums"]:before { background-image: url("./images/hearth/g-codex.png"); }
.hf-tab[data-tab="tracker"]:before { background-image: url("./images/hearth/g-tracker.png"); }
.hf-tab[data-tab="news"]:before { background-image: url("./images/hearth/g-news.png"); }
.hf-tab[data-tab="roadmap"]:before { background-image: url("./images/hearth/g-roadmap.png"); }
.hf-tab[data-tab="codex"]:before { background-image: url("./images/hearth/g-codex.png"); }
.hf-tab[data-tab="ucp"]:before { background-image: url("./images/hearth/k-launch.png"); }

.hf-tab:hover {
  color: #fff3d0;
  text-decoration: none;
}

.hf-tab.is-active,
.hf-tab.active {
  color: #fff3d0 !important;
  background: 
    linear-gradient(#f4c65b, #f4c65b) center bottom calc(var(--hf-bar-h) * 0.126) / 72% 2px no-repeat,
    url("./images/hearth/hud-on.webp") center bottom calc(var(--hf-bar-h) * 0.0615) / 100% calc(var(--hf-bar-h) * 0.7292) no-repeat !important;
}

/* Strip Bar */
.hf-strip {
  min-height: 36px;
  padding: 6px var(--hf-pad);
  background: rgba(5, 11, 23, 0.88);
  border-bottom: 1px solid rgba(124, 94, 53, 0.45);
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  display: flex;
}

.hf-strip-brand,
.hf-strip-name {
  min-width: 0;
  font: 400 15px/1.2 var(--hf-header);
  letter-spacing: 0.08em;
  color: var(--hf-gold);
  text-transform: uppercase;
  white-space: nowrap;
  align-items: baseline;
  gap: 8px;
  display: inline-flex;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hf-strip-brand span,
.hf-strip-name span {
  color: var(--hf-gold);
}

.hf-strip-bullet,
.hf-strip-sep {
  color: var(--hf-bronze) !important;
  font-size: 13px;
  margin: 0 2px;
}

.hf-strip-sub {
  font: 400 15px/1.2 var(--hf-header);
  letter-spacing: 0.08em;
  color: var(--hf-gold);
  text-transform: uppercase;
}

.hf-strip-side {
  display: none !important;
}

/* ==========================================================================
   The Hearth Stone Window (9-Slice Blizzard Window Border)
   ========================================================================== */
.hf-window {
  flex-direction: column;
  min-width: 0;
  margin: 0 0 20px;
  padding: 0 7px 9px;
  display: flex;
  position: relative;
}

.hf-window:before {
  content: "";
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  background: linear-gradient(#7c5e35, #7c5e35) 0 27.5px/100% 1px no-repeat,
              linear-gradient(#0c1b35, #0c1b35) 0 0/100% 28px no-repeat;
  border: 1px solid #7c5e35;
  position: absolute;
  inset: 3px;
}

.hf-window:after {
  content: "";
  z-index: 1;
  pointer-events: none;
  border: 85px solid transparent;
  border-width: 32.5px 85px 14px;
  border-image: url("./images/hearth/window.png") 65 170 28 / 32.5px 85px 14px repeat;
  position: absolute;
  inset: 0;
}

.hf-window-bar {
  z-index: 2;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 32.5px;
  margin: 0 -7px;
  padding: 1px 22px 0 16px;
  display: flex;
  position: relative;
}

.hf-window-title {
  text-overflow: ellipsis;
  min-width: 0;
  font: 400 15px/1 var(--hf-header);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hf-gold-soft);
  white-space: nowrap;
  margin: 0;
  overflow: hidden;
}
.hf-window-title a {
  color: var(--hf-gold-soft);
}
.hf-window-title a:hover {
  color: var(--hf-gold-hi);
  text-decoration: none;
}

.hf-window-side {
  font: 400 13px/1 var(--hf-body);
  letter-spacing: 0.02em;
  color: var(--hf-steel);
  white-space: nowrap;
  flex: none;
}

.hf-window-body {
  z-index: 0;
  background: rgba(8, 18, 38, 0.92);
  padding: 14px 16px 12px;
  position: relative;
}
.hf-window-body > :last-child { margin-bottom: 0; }

/* Section divider rule */
.hf-head {
  font: 400 15px/1.3 var(--hf-header);
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--hf-gold-soft);
  align-items: center;
  gap: 10px;
  margin: 0 2px 14px;
  display: flex;
}
.hf-head:after {
  content: "";
  background: url("./images/hearth/rule.png") 0/384px 8px no-repeat,
              linear-gradient(90deg, rgba(166,125,70,0.7), rgba(166,125,70,0)) 0/100% 1px no-repeat;
  flex: auto;
  min-width: 24px;
  height: 8px;
}

/* ==========================================================================
   The Hearth Buttons (9-Slice btn.png / btn-hover.png)
   ========================================================================== */
.hf-btn,
input.hf-btn,
button.hf-btn,
a.button,
button.button,
input.button1,
input.button2,
a.button1,
a.button2 {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  min-height: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  font: 400 13px/36px var(--hf-header) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--hf-ivory) !important;
  white-space: nowrap !important;
  background-color: #0b1526 !important;
  border: 1px solid #a67d46 !important;
  border-image: url("./images/hearth/btn.png") 12 fill / 6px !important;
  justify-content: center;
  align-items: center;
  padding: 0 18px !important;
  text-decoration: none !important;
  display: inline-flex;
  cursor: pointer;
  outline: none !important;
  transition: all 0.12s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hf-btn:hover,
input.hf-btn:hover,
button.hf-btn:hover,
a.button:hover,
button.button:hover,
input.button1:hover,
input.button2:hover,
a.button1:hover,
a.button2:hover {
  color: #fff3d0 !important;
  border-image-source: url("./images/hearth/btn-hover.png") !important;
  filter: brightness(1.1);
}

.hf-btn.is-primary,
input.hf-btn.is-primary,
button.hf-btn.is-primary,
.button.is-primary,
input.button1 {
  border-color: #f4c65b !important;
  color: var(--hf-gold) !important;
  border-image-source: url("./images/hearth/btn-hover.png") !important;
}

.hf-btn.is-primary:hover,
input.hf-btn.is-primary:hover,
button.hf-btn.is-primary:hover,
input.button1:hover {
  color: var(--hf-gold-hi) !important;
  text-shadow: 0 0 4px rgba(244, 198, 91, 0.4);
}

.btn-copy-realmlist {
  font-family: var(--hf-font-body) !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
}

/* ==========================================================================
   The Hearth Row Styling (9-Slice row.png)
   ========================================================================== */
ul.topiclist,
ul.topiclist.forums,
ul.topiclist.topics,
ul.forums,
ul.topics,
.forabg ul.topiclist,
.forumbg ul.topiclist,
.forabg ul.forums,
.forumbg ul.topics {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hf-row,
li.row,
li.row.bg1,
li.row.bg2 {
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  background: #060e1e !important;
  background-color: #060e1e !important;
  background-image: none !important;
  border: 1px solid rgba(124, 94, 53, 0.5) !important;
  border-image: url("./images/hearth/row.png") 28 fill / 14px !important;
  padding: 10px 14px !important;
  margin-bottom: 6px !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
  color: var(--hf-parch);
}

.hf-row:hover,
li.row:hover,
li.row.bg1:hover,
li.row.bg2:hover {
  background: #0e1e38 !important;
  background-color: #0e1e38 !important;
  background-image: none !important;
  border-color: var(--hf-gold) !important;
}

/* ==========================================================================
   phpBB Wrapper, Breadcrumbs & Header Bar
   ========================================================================== */
#wrap, .wrap, #wrap.wrap, body#phpbb #wrap, body#phpbb .wrap {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 1340px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

#page-header {
  margin-bottom: 16px;
}

/* Breadcrumbs bar inside The Hearth frame */
.forever-breadcrumb-bar {
  background: rgba(5, 11, 23, 0.7);
  border: 1px solid rgba(124, 94, 53, 0.5);
  padding: 8px 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-radius: 2px;
}

.forever-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.forever-breadcrumbs a,
.forever-breadcrumbs .crumb-link {
  color: var(--hf-steel);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}
.forever-breadcrumbs a:hover,
.forever-breadcrumbs .crumb-link:hover {
  color: var(--hf-gold);
  text-decoration: none;
}
.forever-breadcrumbs .crumb-sep {
  color: var(--hf-bronze);
  font-size: 9px;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
}
.forever-breadcrumbs .crumb-current {
  color: var(--hf-gold-soft);
  font-weight: 600;
  font-size: 13px;
}

/* Quick search in header */
.forever-search-box {
  display: flex;
  align-items: center;
}

.forever-search-box form {
  display: flex !important;
  align-items: stretch !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.forever-search-box input.search-input {
  box-sizing: border-box !important;
  height: 30px !important;
  line-height: 28px !important;
  background: #050b17 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  border-right: none !important;
  color: var(--hf-ivory) !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  outline: none !important;
  border-radius: 2px 0 0 2px !important;
  margin: 0 !important;
  vertical-align: top !important;
  -webkit-appearance: none !important;
}

.forever-search-box input.search-input:focus {
  border-color: var(--hf-gold) !important;
}

.forever-search-box button.search-submit {
  box-sizing: border-box !important;
  height: 30px !important;
  line-height: 28px !important;
  background: #0b1526 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  color: var(--hf-gold) !important;
  padding: 0 12px !important;
  cursor: pointer !important;
  border-radius: 0 2px 2px 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: top !important;
  transition: all 0.15s ease !important;
}

.forever-search-box button.search-submit:hover {
  color: #fff3d0 !important;
  background: #10264a !important;
  border-color: var(--hf-gold) !important;
}

/* Hide default phpBB blue headerbar because we use The Hearth Top HUD */
.headerbar {
  display: none !important;
}

/* ==========================================================================
   Forum List & Category Styling
   ========================================================================== */
.forabg, .forumbg {
  background: none !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
}

.forabg .inner, .forumbg .inner {
  padding: 0;
}

ul.topiclist {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Remove default table-like header row, as the stone window-bar already displays the category name */
ul.topiclist.forums dt,
ul.topiclist.topics dt {
  color: var(--hf-parch);
}

li.header {
  display: none !important;
}

/* Category Collapse Toggle */
.collapse-btn {
  background: transparent;
  border: none;
  color: var(--hf-gold-soft);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  transition: color 0.15s;
}
.collapse-btn:hover {
  color: #fff3d0;
}

/* Forum list rows */
li.row {
  margin: 0 0 6px 0;
}

li.row dl {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 2px 0;
}

/* Reset prosilver legacy float and column padding */
ul.topiclist dt,
ul.topiclist dd,
ul.topiclist li.row dt,
ul.topiclist li.row dd {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  border-right: none !important;
  box-sizing: border-box !important;
}

ul.topiclist li.row dl {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 0 !important;
}

ul.topiclist li.row dt {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 16px 0 0 !important;
}

.forum-bullet-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forum-bullet-icon img {
  max-width: 36px;
  max-height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.forum-details {
  flex: 1 1 auto;
  min-width: 0;
}

a.forumtitle {
  font: 500 16px/1.2 var(--hf-header);
  letter-spacing: 0.05em;
  color: var(--hf-gold);
  display: block;
  margin-bottom: 3px;
}
a.forumtitle:hover {
  color: var(--hf-gold-hi);
  text-decoration: underline;
}

.forum-desc {
  font-size: 13px;
  color: var(--hf-steel);
  line-height: 1.4;
  margin-bottom: 2px;
}

.subforums-list {
  font-size: 12px;
  color: var(--hf-grey);
}
.subforums-list strong {
  color: var(--hf-gold-soft);
}
.subforums-list a {
  color: var(--hf-sky);
  margin-right: 6px;
}

/* Forum Stats */
ul.topiclist li.row dd.topics-posts {
  flex: 0 0 90px !important;
  text-align: left !important;
  font-size: 12px !important;
  color: var(--hf-steel) !important;
  border-left: 1px solid rgba(124, 94, 53, 0.45) !important;
  padding: 0 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}
ul.topiclist li.row dd.topics-posts strong {
  color: var(--hf-ivory) !important;
  font-weight: 600 !important;
}

/* Last Post Column */
ul.topiclist li.row dd.lastpost {
  flex: 0 0 240px !important;
  font-size: 12px !important;
  color: var(--hf-steel) !important;
  border-left: 1px solid rgba(124, 94, 53, 0.45) !important;
  padding: 0 0 0 16px !important;
  line-height: 1.4 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}
ul.topiclist li.row dd.lastpost a {
  color: var(--hf-sky) !important;
}
ul.topiclist li.row dd.lastpost strong a {
  color: var(--hf-gold-soft) !important;
}
.lastpost-avatar {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  ul.topiclist li.row dd.topics-posts { display: none !important; }
  ul.topiclist li.row dd.lastpost { flex: 0 0 160px !important; font-size: 11px !important; }
}

/* ==========================================================================
   Topic List & Forum Display (viewforum_body)
   ========================================================================== */
.viewforum-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: rgba(5, 11, 23, 0.75);
  border: 1px solid rgba(124, 94, 53, 0.45);
  border-radius: 2px;
}

.viewforum-header-info {
  flex: 1 1 auto;
  min-width: 0;
}

.viewforum-title {
  font: 400 24px/1.2 var(--hf-display);
  color: var(--hf-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewforum-title a {
  color: var(--hf-gold);
  text-decoration: none;
}
.viewforum-title a:hover {
  color: var(--hf-gold-hi);
}

.viewforum-icon {
  width: 38px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}

.viewforum-desc {
  font-size: 14px;
  color: var(--hf-parch);
  margin-top: 6px;
  line-height: 1.4;
}

.viewforum-header-actions {
  flex: none;
}

/* PBWoW Topic Table */
.pbwow-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 11, 23, 0.7);
}

.pbwow-table thead th {
  background: linear-gradient(#14294d, #0b172d);
  color: var(--hf-gold-soft);
  font: 500 13px/1.2 var(--hf-header);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(124, 94, 53, 0.6);
  border-top: none;
}

.pbwow-table tbody tr {
  border-bottom: 1px solid rgba(124, 94, 53, 0.25);
  background: rgba(5, 11, 23, 0.6);
  transition: background-color 0.15s ease-in-out;
}

.pbwow-table tbody tr:hover {
  background: rgba(16, 38, 74, 0.55);
}

.pbwow-topic-title {
  font: 500 15px/1.3 var(--hf-header);
  letter-spacing: 0.04em;
  color: var(--hf-gold-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

.pbwow-topic-title:hover {
  color: var(--hf-gold-hi);
  text-decoration: underline;
}

.pbwow-topic-meta {
  font-size: 12px;
  color: var(--hf-steel);
}

.topic-status-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.topic-status-icon img {
  max-width: 24px;
  max-height: 24px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.badge-sticky, .badge-announce {
  font: 600 10px/1 var(--hf-header);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.badge-announce {
  background: #dc2626;
  color: #fff;
  border: 1px solid #ef4444;
}

.badge-sticky {
  background: rgba(244, 198, 91, 0.2);
  color: var(--hf-gold);
  border: 1px solid var(--hf-gold);
}

/* Action Bar (Buttons above/below forum and topic) */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.action-bar.bar-top {
  margin-top: 14px;
}

.action-bar.bar-bottom {
  margin-top: 20px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Viewtopic (Topic View & Post Display)
   ========================================================================== */
.topic-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hf-bronze-line);
  padding-bottom: 8px;
}

.topic-main-title {
  font: 400 24px/1.2 var(--hf-display);
  color: var(--hf-ivory);
  margin: 0;
}

/* Topic & Forum Header Windows */
.topic-header-window,
.forum-header-window {
  margin-bottom: 20px;
}

.topic-header-window .hf-window-body,
.forum-header-window .hf-window-body {
  padding: 12px 16px;
}

/* Post Container (Uses The Hearth .hf-window Stone Frame) */
.post.hf-window {
  margin-bottom: 22px;
}

.post.hf-window .hf-window-body,
.post .hf-window-body {
  padding: 0 !important;
}

.post.unreadpost,
.post:target {
  filter: drop-shadow(0 0 8px rgba(244, 198, 91, 0.45));
}

.post.online,
.online {
  background-image: none !important;
}

.post,
.post.bg1,
.post.bg2,
.post.bg3,
.post:target,
.post.unreadpost,
.post.online,
.online {
  background: transparent !important;
  background-color: transparent !important;
}

.post .hf-window-body,
.post.bg1 .hf-window-body,
.post.bg2 .hf-window-body,
.post.bg3 .hf-window-body,
.post:target .hf-window-body,
.post.unreadpost .hf-window-body {
  background: rgba(8, 18, 38, 0.94) !important;
}

.post .postbody,
.post.bg1 .postbody,
.post.bg2 .postbody,
.post.bg3 .postbody,
.post:target .postbody,
.post.unreadpost .postbody {
  background: transparent !important;
  color: var(--hf-parch) !important;
}

.post .inner {
  display: flex;
  flex-direction: row;
  min-height: 200px;
}

/* Left Column: Author Profile */
.postprofile {
  flex: 0 0 200px;
  background: rgba(5, 11, 23, 0.88);
  border-right: 1px solid rgba(124, 94, 53, 0.45);
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--hf-steel);
  box-sizing: border-box;
}

.postprofile dt strong a,
.postprofile dt strong {
  font: 600 16px/1.2 var(--hf-header);
  letter-spacing: 0.06em;
  color: var(--hf-gold) !important;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

/* WoW Portrait Frame */
.postprofile .avatar-container {
  width: 82px;
  height: 83px;
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postprofile .avatar-container img.no-avatar-img {
  width: 82px;
  height: 83px;
  display: block;
}

.postprofile .avatar-container .avatar img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.postprofile .avatar-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 82px;
  height: 83px;
  background: url("./images/portrait-frame-clean.gif") no-repeat center;
  pointer-events: none;
}

.postprofile .profile-rank {
  color: var(--hf-gold-soft);
  font: 500 12px/1.2 var(--hf-header);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 6px 0;
}

.postprofile .profile-online {
  margin-top: 6px;
  color: #4ade80;
  font-weight: 500;
  font-size: 11px;
}

.postprofile dd {
  margin: 3px 0;
}

.postprofile dd strong {
  color: var(--hf-parch);
}

/* Right Column: Post Body */
.postbody {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
}

.postbody-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(124, 94, 53, 0.35);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.post-subject {
  font: 500 17px/1.2 var(--hf-header);
  letter-spacing: 0.04em;
  color: var(--hf-ivory);
  margin: 0 0 3px 0;
}
.post-subject a {
  color: var(--hf-ivory);
  text-decoration: none;
}
.post-subject a:hover {
  color: var(--hf-gold);
}

.post-time {
  font-size: 12px;
  color: var(--hf-steel);
}

/* Post Action Buttons */
.post-buttons {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-btn,
.post-buttons li a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px !important;
  padding: 0 12px !important;
  font: 500 12px/1 var(--hf-header) !important;
  letter-spacing: 0.04em;
  color: var(--hf-parch) !important;
  background: #0b1526 !important;
  border: 1px solid rgba(124, 94, 53, 0.6) !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
}

.post-btn:hover,
.post-buttons li a.button:hover {
  background: #142a4d !important;
  color: var(--hf-gold-hi) !important;
  border-color: var(--hf-gold) !important;
}

.post-btn.btn-quote,
.post-buttons li a.button.is-primary {
  background: linear-gradient(#1c3a6b, #102446) !important;
  color: var(--hf-gold-soft) !important;
  border-color: var(--hf-gold) !important;
}
.post-btn.btn-quote:hover,
.post-buttons li a.button.is-primary:hover {
  background: linear-gradient(#234985, #142e5a) !important;
  color: #fff3d0 !important;
}

.post-btn.btn-danger:hover {
  background: #7f1d1d !important;
  color: #fecaca !important;
  border-color: #ef4444 !important;
}

/* Post Content */
.content,
.postbody .content,
.post .content,
.post:target .content,
.post.unreadpost .content,
.post.reported .content,
.post.online .content,
.post.bg1 .content,
.post.bg2 .content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--hf-parch) !important;
  flex: 1 0 auto;
  word-wrap: break-word;
}

.content a,
.postbody .content a,
.post .content a,
.post:target .content a,
.post.unreadpost .content a {
  color: var(--hf-sky) !important;
  text-decoration: underline;
}
.content a:hover,
.postbody .content a:hover,
.post .content a:hover,
.post:target .content a:hover,
.post.unreadpost .content a:hover {
  color: var(--hf-sky-hi) !important;
}

.postbody h3,
.post:target h3,
.postbody .post-subject,
.postbody .post-subject a,
.post:target h3 a,
.post:target .post-subject a,
.post:target .hf-window-title a,
.post.unreadpost .hf-window-title a,
.hf-window-title a {
  color: var(--hf-gold-soft) !important;
}

.postbody .post-subject a:hover,
.post:target h3 a:hover,
.post:target .hf-window-title a:hover,
.post.unreadpost .hf-window-title a:hover,
.hf-window-title a:hover {
  color: var(--hf-gold-hi) !important;
  text-decoration: none !important;
}

/* Quotes & Blockquotes */
blockquote {
  background: rgba(5, 11, 23, 0.7);
  border: 1px solid rgba(124, 94, 53, 0.6);
  border-left: 3px solid var(--hf-gold);
  padding: 10px 14px;
  margin: 12px 0;
  font-style: italic;
  color: var(--hf-ivory);
}

blockquote cite {
  font-style: normal;
  font-family: var(--hf-header);
  font-size: 12px;
  color: var(--hf-gold-soft);
  display: block;
  margin-bottom: 6px;
}

/* Codebox */
.codebox {
  background: #050b17;
  border: 1px solid var(--hf-bronze-line);
  padding: 8px 12px;
  margin: 12px 0;
  border-radius: 2px;
}
.codebox dt {
  font-family: var(--hf-header);
  font-size: 12px;
  color: var(--hf-gold-soft);
  margin-bottom: 4px;
}
.codebox code {
  color: #a9bcd8;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Signatures */
.signature {
  border-top: 1px solid rgba(124, 94, 53, 0.25);
  margin-top: 20px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--hf-steel);
}

@media (max-width: 768px) {
  .post .inner { flex-direction: column; }
  .postprofile {
    border-right: none;
    border-bottom: 1px solid rgba(124, 94, 53, 0.45);
    padding: 12px;
  }
}

/* ==========================================================================
   Community Statistics & Who Is Online (index_body)
   ========================================================================== */
.stat-block {
  margin-bottom: 16px;
}

.stat-block-content {
  font-size: 13px;
  color: var(--hf-parch);
  line-height: 1.6;
}
.stat-block-content strong {
  color: var(--hf-ivory);
}

.legend-ranks {
  font-size: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(124, 94, 53, 0.4);
  color: var(--hf-steel);
}

/* ==========================================================================
   Forms, Inputs & phpBB Panels
   ========================================================================== */
.panel {
  background: rgba(8, 18, 38, 0.94);
  border: 1px solid var(--hf-bronze-line);
  padding: 16px 20px;
  margin-bottom: 18px;
}

input.inputbox,
textarea.inputbox,
select {
  background: #050b17 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  color: var(--hf-ivory) !important;
  padding: 6px 10px !important;
  font-family: var(--hf-body) !important;
  font-size: 14px !important;
  border-radius: 2px !important;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input.inputbox:focus,
textarea.inputbox:focus,
select:focus {
  border-color: var(--hf-gold) !important;
  box-shadow: 0 0 6px rgba(244, 198, 91, 0.3) !important;
}

/* UCP / MCP Tabs */
#tabs, .tabs {
  line-height: normal;
  margin: 10px 0 0;
  display: flex;
  gap: 4px;
}

#tabs ul, .tabs ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

#tabs li, .tabs li {
  margin: 0;
}

#tabs a, .tabs a {
  background: #0b1526;
  border: 1px solid var(--hf-bronze-line);
  color: var(--hf-steel);
  font: 400 13px/1 var(--hf-header);
  padding: 8px 14px;
  display: block;
  text-decoration: none;
  border-bottom: none;
}

#tabs a:hover, .tabs a:hover {
  color: var(--hf-ivory);
  background: #10264a;
}

#tabs li.activetab a, .tabs li.activetab a {
  background: rgba(8, 18, 38, 0.94);
  color: var(--hf-gold);
  border-color: var(--hf-gold);
}

/* Dropdowns & User Menu */
.dropdown-container .dropdown,
.dropdown,
.hf-dropdown-menu,
.hf-user-dropdown-menu {
  background: #081226 !important;
  border: 1px solid var(--hf-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
  border-radius: 3px !important;
  z-index: 2000 !important;
  min-width: 240px !important;
  right: 0 !important;
  left: auto !important;
  overflow: hidden;
}

.hf-user-dropdown {
  position: relative;
  display: inline-block;
}

.hf-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
}

.hf-dropdown-username,
.hf-dropdown-username *,
.hf-dropdown-menu .username-coloured,
.hf-dropdown-menu [class*="username-"] {
  color: var(--hf-gold) !important;
  font-family: var(--hf-header) !important;
  font-weight: 600 !important;
}

.dropdown-contents,
ul.dropdown-contents,
.hf-dropdown-list {
  background: #081226 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  border: none !important;
}

.dropdown-contents li a,
.hf-dropdown-list li a {
  color: var(--hf-parch) !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: var(--hf-body) !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out !important;
}

.dropdown-contents li a:hover,
.hf-dropdown-list li a:hover {
  background: linear-gradient(90deg, rgba(244, 198, 91, 0.25), rgba(16, 38, 74, 0.8)) !important;
  color: #fff3d0 !important;
  padding-left: 20px !important;
}

.dropdown-contents li a.logout-link:hover,
.hf-dropdown-list li a.logout-link:hover {
  background: rgba(220, 38, 38, 0.25) !important;
  color: #fca5a5 !important;
}

.dropdown-container .pointer,
.dropdown-container .pointer-inner {
  display: none !important;
}

.hf-user-btn,
.hf-btn.dropdown-trigger {
  color: var(--hf-gold) !important;
  font-family: var(--hf-header) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.hf-user-btn span,
.hf-user-btn *,
.hf-btn.dropdown-trigger span,
.hf-btn.dropdown-trigger * {
  color: var(--hf-gold) !important;
}

.hf-user-btn:hover,
.hf-btn.dropdown-trigger:hover,
.hf-user-btn:hover span,
.hf-user-btn:hover *,
.hf-btn.dropdown-trigger:hover span,
.hf-btn.dropdown-trigger:hover * {
  color: #fff3d0 !important;
}

/* ==========================================================================
   Hearth Jumpbox Dropdown
   ========================================================================== */
#jumpbox.dropdown-container {
  position: relative;
}

#jumpbox .hf-btn.dropdown-select,
.jumpbox-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hf-header);
  font-size: 13px;
  color: var(--hf-gold) !important;
  text-transform: uppercase;
}

#jumpbox .dropdown,
.hf-jumpbox-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  bottom: calc(100% + 6px) !important;
  top: auto !important;
  background: #081226 !important;
  border: 1px solid var(--hf-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
  border-radius: 4px !important;
  min-width: 260px !important;
  max-width: 380px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  z-index: 1050 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#jumpbox .dropdown .pointer,
#jumpbox .dropdown .pointer-inner {
  display: none !important;
}

#jumpbox .dropdown-contents {
  background: #081226 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#jumpbox .jumpbox-item,
#jumpbox .dropdown li {
  border-top: 1px solid rgba(124, 94, 53, 0.25) !important;
  padding: 0 !important;
  margin: 0 !important;
}

#jumpbox .jumpbox-cat-link {
  background: linear-gradient(90deg, #182e54, #0d1a33) !important;
  color: var(--hf-gold) !important;
  font-family: var(--hf-header) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  display: block !important;
  border: none !important;
  text-decoration: none !important;
}

#jumpbox .jumpbox-cat-link:hover {
  background: linear-gradient(90deg, #24447d, #142850) !important;
  color: #fff3d0 !important;
}

#jumpbox .jumpbox-forum-link,
#jumpbox .jumpbox-sub-link {
  background: transparent !important;
  color: var(--hf-parch) !important;
  padding: 7px 14px !important;
  display: block !important;
  font-size: 13px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

#jumpbox .jumpbox-forum-link:hover,
#jumpbox .jumpbox-sub-link:hover {
  background: rgba(244, 198, 91, 0.15) !important;
  color: var(--hf-gold) !important;
  padding-left: 20px !important;
}

.hf-user-btn:hover,
.hf-btn.dropdown-trigger:hover,
.hf-user-btn:hover span,
.hf-user-btn:hover *,
.hf-btn.dropdown-trigger:hover span,
.hf-btn.dropdown-trigger:hover * {
  color: #fff3d0 !important;
}

/* Pagination */
.pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-family: var(--hf-header);
  border: 1px solid var(--hf-bronze-line);
  background: #0b1526;
  color: var(--hf-parch);
}

.pagination li.active span {
  background: var(--hf-gold);
  color: #050b17;
  font-weight: bold;
  border-color: var(--hf-gold);
}

.pagination li a:hover {
  background: #10264a;
  color: #fff3d0;
  text-decoration: none;
}

/* Toast Realmlist Copy */
.toast-realm-copy {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #081226;
  border: 1px solid var(--hf-gold);
  color: var(--hf-ivory);
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--hf-header);
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 99999;
}
.toast-realm-copy.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page Footer
   ========================================================================== */
#page-footer {
  margin-top: auto;
  background: rgba(5, 11, 23, 0.92);
  border-top: 1px solid rgba(124, 94, 53, 0.5);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--hf-steel);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--hf-steel);
}
.footer-nav a:hover {
  color: var(--hf-gold);
}

.footer-copyright {
  color: var(--hf-grey);
  font-size: 12px;
}
.footer-copyright a {
  color: var(--hf-gold-soft);
}

/* ==========================================================================
   Mobile Header & Responsive Drawer Navigation
   ========================================================================== */
.hf-menu-toggle {
  background-color: #0b1526;
  border: 1px solid #a67d46;
  border-image: url("./images/hearth/btn.png") 12 fill / 6px;
  color: var(--hf-gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.12s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hf-menu-toggle:hover {
  border-image-source: url("./images/hearth/btn-hover.png");
  color: var(--hf-gold-hi);
}

@media (max-width: 820px) {
  .hf-menu-toggle {
    display: inline-flex !important;
  }
  .hf-tabs {
    display: none !important;
  }
}

.hf-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 15, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.hf-mobile-drawer.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hf-mobile-drawer.d-none {
  display: none !important;
}

.hf-mobile-drawer .hf-window {
  max-width: 400px;
  width: 100%;
  margin: 15px auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95);
}

.hf-mobile-drawer .hf-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  height: 32px;
  min-height: 32px;
}

.hf-close-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  background: #0b1526 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  color: var(--hf-gold) !important;
  border-radius: 2px !important;
  min-height: 22px !important;
  height: 22px !important;
  line-height: 20px !important;
  padding: 0 8px !important;
  font-family: var(--hf-header) !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.12s ease-in-out !important;
}

.hf-close-btn:hover {
  border-color: var(--hf-gold) !important;
  color: #fff3d0 !important;
  background: #142a4d !important;
}

.hf-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  min-height: 36px;
  background-color: #060e1e;
  border: 1px solid rgba(124, 94, 53, 0.5);
  border-image: url("./images/hearth/row.png") 28 fill / 8px;
  color: var(--hf-parch);
  text-decoration: none;
  transition: all 0.12s;
  font-family: var(--hf-header);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hf-mobile-link:hover,
.hf-mobile-link.active {
  color: #fff3d0 !important;
  border-color: var(--hf-gold);
  filter: brightness(1.15);
}

.hf-mobile-link.active {
  color: var(--hf-gold) !important;
}

/* ==========================================================================
   Posting Editor & BBCode Format Buttons
   ========================================================================== */
#postingbox .panel {
  background: rgba(8, 18, 38, 0.94);
  border: 1px solid var(--hf-bronze-line);
}

.format-buttons {
  margin: 10px 0 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.format-buttons input[type="button"] {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-family: var(--hf-header) !important;
  font-size: 11px !important;
  background: #0b1526 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  color: var(--hf-parch) !important;
  cursor: pointer;
  border-radius: 2px !important;
  transition: all 0.12s;
}

.format-buttons input[type="button"]:hover {
  background: #10264a !important;
  color: var(--hf-gold) !important;
  border-color: var(--hf-gold) !important;
}

.message-box textarea {
  width: 100% !important;
  min-height: 240px;
  background: #050b17 !important;
  border: 1px solid var(--hf-bronze-line) !important;
  color: var(--hf-ivory) !important;
  padding: 12px !important;
  font-family: var(--hf-body) !important;
  font-size: 15px !important;
  line-height: 1.6;
}

.message-box textarea:focus {
  border-color: var(--hf-gold) !important;
}

/* Smilies container */
#smiley-box {
  background: rgba(5, 11, 23, 0.7);
  border: 1px solid rgba(124, 94, 53, 0.4);
  padding: 10px;
}

/* Options / Attachments tabs */
.sub-panels .panel {
  background: rgba(5, 11, 23, 0.85);
  border: 1px solid rgba(124, 94, 53, 0.4);
}

/* Memberlist & Search Tables */
table.table1 {
  width: 100%;
  border-collapse: collapse;
}

table.table1 thead th {
  font-family: var(--hf-header);
  font-size: 13px;
  color: var(--hf-gold-soft);
  background: rgba(5, 11, 23, 0.9);
  border-bottom: 1px solid var(--hf-bronze-line);
  padding: 10px 14px;
  text-align: left;
}

table.table1 tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(124, 94, 53, 0.15);
  color: var(--hf-parch);
  font-size: 13px;
}

table.table1 tbody tr.bg1 td {
  background: rgba(8, 18, 38, 0.65);
}

table.table1 tbody tr.bg2 td {
  background: rgba(13, 27, 51, 0.65);
}

table.table1 tbody tr:hover td {
  background: rgba(24, 52, 98, 0.65) !important;
}

/* Memberlist alphabet bar */
.memberlist-alphabar .alpha-link {
  transition: all 0.15s ease;
}

.memberlist-alphabar .alpha-link:hover {
  color: var(--hf-gold) !important;
  border-color: var(--hf-gold) !important;
  background: rgba(16, 38, 74, 0.9) !important;
}

/* Search form inputs and selects */
.search-window input[type="search"],
.search-window input[type="text"],
.search-window input[type="number"],
.search-window select {
  background: #050b17 !important;
  border: 1px solid var(--hf-bronze) !important;
  color: var(--hf-parch) !important;
  font-family: var(--hf-body);
}

.search-window input:focus,
.search-window select:focus {
  border-color: var(--hf-gold) !important;
  outline: none;
}

/* FAQ Page Styling */
.faq-toc-link:hover {
  color: var(--hf-gold) !important;
}

.faq-item {
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(244, 198, 91, 0.5) !important;
  background-color: rgba(14, 28, 54, 0.7) !important;
}

/* ==========================================================================
   Posting Page & Sub-panels (Options, Attachments, Poll)
   ========================================================================== */
#options-panel,
#attach-panel,
#poll-panel {
  background: rgba(5, 11, 23, 0.65) !important;
  border: 1px solid rgba(124, 94, 53, 0.35) !important;
  border-top: none !important;
  border-radius: 0 0 3px 3px !important;
  padding: 18px !important;
  margin-top: 0 !important;
}

#attach-panel,
#poll-panel {
  display: none;
}

#tabs.sub-panels ul,
#tabs ul,
.tabs ul {
  display: flex !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(124, 94, 53, 0.45) !important;
}

#tabs.sub-panels li.tab,
#tabs li.tab,
.tabs li.tab {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

#tabs.sub-panels li.tab.responsive-tab,
#tabs li.tab.responsive-tab,
.tabs li.tab.responsive-tab,
.responsive-tab {
  display: none !important;
}

#tabs.sub-panels li.tab a,
#tabs li.tab a,
.tabs li.tab a {
  display: inline-block !important;
  padding: 8px 18px !important;
  font-family: var(--hf-header) !important;
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--hf-steel) !important;
  background: rgba(5, 11, 23, 0.7) !important;
  border: 1px solid rgba(124, 94, 53, 0.35) !important;
  border-bottom: none !important;
  border-radius: 3px 3px 0 0 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

#tabs.sub-panels li.tab:hover a,
#tabs li.tab:hover a,
.tabs li.tab:hover a {
  color: #fff3d0 !important;
  background: rgba(16, 38, 74, 0.8) !important;
  border-color: var(--hf-bronze) !important;
}

#tabs.sub-panels li.tab.activetab a,
#tabs li.tab.activetab a,
.tabs li.tab.activetab a {
  color: var(--hf-gold) !important;
  background: rgba(5, 11, 23, 0.95) !important;
  border-color: var(--hf-gold) !important;
  font-weight: 600 !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4) !important;
}

#options-panel,
#attach-panel,
#poll-panel,
.sub-panel {
  background: rgba(5, 11, 23, 0.75) !important;
  border: 1px solid rgba(124, 94, 53, 0.4) !important;
  border-top: none !important;
  border-radius: 0 0 3px 3px !important;
  padding: 18px !important;
  color: var(--hf-parch) !important;
}

#options-panel dt label,
#attach-panel dt label,
#poll-panel dt label {
  font-family: var(--hf-header) !important;
  color: var(--hf-gold) !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
}

#options-panel label,
#attach-panel label,
#poll-panel label {
  color: var(--hf-parch) !important;
}

#options-panel input[type="text"],
#options-panel input[type="number"],
#poll-panel input[type="text"],
#poll-panel input[type="number"],
#poll-panel textarea,
#attach-panel input[type="text"],
#attach-panel textarea {
  background: #050b17 !important;
  border: 1px solid var(--hf-bronze) !important;
  color: var(--hf-parch) !important;
  padding: 6px 10px !important;
  border-radius: 2px !important;
  font-family: var(--hf-body) !important;
}

#poll-panel textarea {
  width: 100% !important;
  max-width: 500px !important;
}

.posting-editor-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .posting-editor-row {
    flex-direction: column !important;
  }
  .posting-editor-row #smiley-box {
    flex: none !important;
    width: 100% !important;
  }
}

/* Quick Reply & Topic Review windows */
.quickreply-window,
.topic-review-window,
.preview-window {
  margin-top: 20px;
}

/* Notification badges */
.badge {
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: bold;
}
.badge.bg-warning {
  background: var(--hf-gold) !important;
  color: #050b17 !important;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hf-tabs {
    display: none;
  }
  .hf-strip {
    font-size: 12px;
  }
  .hf-strip-brand {
    white-space: normal;
    flex-wrap: wrap;
  }
  .forever-breadcrumb-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Registration & UCP Form Alignments & Label Fixes */
fieldset dl dt label,
fieldset dl:hover dt label,
fieldset.fields1 dl dt label,
fieldset.fields1 dl:hover dt label,
fieldset.fields2 dl dt label,
fieldset.fields2 dl:hover dt label,
.captcha-panel dt label,
.captcha-panel dl:hover dt label,
label[for="timezone"],
label[for="confirm_code"],
.hf-tz-label,
dt label {
  color: var(--hf-gold) !important;
}

fieldset dl:hover dt label:hover,
label[for="timezone"]:hover,
.hf-tz-label:hover {
  color: var(--hf-gold-soft) !important;
}

/* Timezone & Dropdown Styling */
select option,
select optgroup {
  background: #081226 !important;
  color: var(--hf-ivory) !important;
}

.hf-timezone-group dl,
.register-window dl {
  margin: 0 !important;
  padding: 0 !important;
}

.hf-timezone-group dt,
.register-window dt {
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.hf-timezone-group dd,
.register-window dd {
  float: none !important;
  margin: 0 0 10px 0 !important;
  width: 100% !important;
  display: block !important;
}

