:root {
  --bg: #020617;
  --bg-elevated: rgba(15,23,42,0.96);
  --border-glow: rgba(79,99,135,0.45);
  --accent: #4b5c78;
  --accent-soft: rgba(79,99,135,0.28);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --danger: #f97373;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: var(--text);
}

/* background overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  pointer-events: none;
  z-index: -1;
  background-image: var(--hall-bg-image, radial-gradient(circle at top, #020617 0, #000 80%));
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  column-gap: 28px;
  height: calc(100vh - 56px);
  padding: 80px 32px 24px;
  overflow: visible;
}

.page-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* topbar */
.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 56px;
  backdrop-
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #38bdf8, #0ea5e9 40%, #0369a1 75%, #020617 100%);
  
}

.topbar-nav {
  display: flex;
  gap: 16px;
}

.topbar-link {
  position: relative;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-soft);
}

.topbar-link:hover {
  background: rgba(15,23,42,0.9);
  color: var(--text);
}

.topbar-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.avatar-btn {
  border: 1px solid rgba(56,189,248,0.55);
  background: rgba(15,23,42,0.9);
  color: var(--text-soft);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
}

.icon-btn:hover,
.avatar-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  
}

.icon-btn:hover,
.avatar-btn:hover {
  color: var(--accent);
  
}

.avatar,
.avatar-xs,
.avatar-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-weight: 600;
}

.avatar-xs {
  width: 40px;
  height: 40px;
  font-size: 12px;
  background: radial-gradient(circle at top, #38bdf8, #1d4ed8);
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
  background: radial-gradient(circle at top, #38bdf8, #1d4ed8);
}

/* sidebar */
.sidebar {
  padding-left: 22px;
  padding-right: 24px;
  overflow: visible;
}



.sidebar-section + .sidebar-section {
  margin-top: 18px;
  overflow: visible;
}

.sidebar-title {
  font-size: 11px;
  text-
}

.sidebar-link,
.sidebar-search-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.sidebar-link:hover,
.sidebar-search-toggle:hover {
  background: rgba(15,23,42,0.9);
  color: var(--text);
}

.sidebar-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  
}

.sidebar-glyph {
  width: 26px;
  height: 26px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: radial-gradient(circle at top, #1d4ed8, #0f172a);
  
}

/* content */
.content-three {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 20px;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rightcol {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* cards */
.card {
  background: var(--bg-elevated);
  border-radius: 18px;
  border: 1px solid rgba(30,64,175,0.7);
  
}

.card-header {
  padding: 14px 16px 4px;
}

.card-body {
  padding: 20px 24px 20px;
}


.card-title {
  font-size: 15px;
  margin: 0;
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.card-tight {
  max-width: 420px;
}

/* fields */
.field-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-soft);
}

.field-input,
.field-textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(30,64,175,0.8);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  padding: 8px 10px;
  font-size: 14px;
}

.field-textarea {
  resize: vertical;
}

.field-row {
  margin-bottom: 10px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent);
  background: radial-gradient(circle at top, #38bdf8, #0ea5e9);
  color: #0b1120;
  
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

/* feed */
.feed-card {
  padding: 12px 0;
  border-top: 1px solid rgba(30,64,175,0.7);
}

.feed-card:first-child {
  border-top: none;
}

.feed-card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.feed-card-meta {
  display: flex;
  flex-direction: column;
}

.feed-card-user {
  font-size: 14px;
  font-weight: 500;
}

.feed-card-submeta {
  font-size: 12px;
  color: var(--text-soft);
}

.feed-card-body {
  font-size: 14px;
  margin: 4px 0 6px;
}

.feed-card-footer {
  display: flex;
  gap: 6px;
}

/* pills & chips */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.5);
  padding: 1px 8px;
  font-size: 11px;
  text-
}

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

.list-plain li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 3px 0;
}

/* mini clan */
.mini-clan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.mini-clan-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muted {
  font-size: 13px;
  color: var(--text-soft);
}

/* rune toggle */
.rune-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.6);
  background: radial-gradient(circle at top, #38bdf8, #0f172a);
  
}

.rune-glyph {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.9);
}

/* immersion mode hides cards and lets the background breathe */
body.immersion .card,
body.immersion .sidebar {
  padding-left: 22px;
  padding-right: 24px;
  overflow: visible;
}



body.immersion .rune-toggle {
  
}

/* responsive */
@media (max-width: 1100px) {
  .content-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .rightcol {
    display: none;
  }
}

@media (max-width: 800px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 16px;
  }
  .sidebar {
  padding-left: 22px;
  padding-right: 24px;
  overflow: visible;
}


}
.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ticker {
  min-width: 260px;
  max-width: 420px;
  padding: 4px 14px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.6));
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(56,189,248,0.18) 30%,
    rgba(56,189,248,0.32) 50%,
    rgba(56,189,248,0.18) 70%,
    transparent 100%);
  opacity: 0;
  
}

@keyframes tickerShimmer {
  0%, 30% { opacity: 0;  }
  40%, 60% { opacity: 1;  }
  70%, 100% { opacity: 0;  }
}


/* Auth pages */
body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(58,119,255,0.32), transparent 55%), #050816;
  color: #f5f7ff;
}

.auth-shell {
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.auth-card {
  background: rgba(4, 12, 32, 0.96);
  border-radius: 16px;
  padding: 32px 28px;
  
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-logo {
  width: 28px;
  height: 28px;
  border-radius: 20px;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(215, 227, 255, 0.78);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.auth-input {
  border-radius: 10px;
  border: 1px solid rgba(73, 110, 196, 0.85);
  background: rgba(5, 15, 40, 0.95);
  padding: 9px 11px;
  color: #f5f7ff;
  font-size: 14px;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(118, 186, 255, 0.98);
  
}

.auth-button {
  margin-top: 8px;
  width: 100%;
  border-radius: 20px;
  padding: 10px 14px;
  border: none;
  background: linear-gradient(120deg, #3b82ff, #60a5ff);
  color: #f5f7ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-button:hover {
  
}

.auth-error {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fecaca;
  font-size: 13px;
}

.auth-footer {
  margin-top: 18px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 6px;
  color: rgba(203, 213, 244, 0.82);
}

.auth-footer a {
  color: #60a5ff;
  text-decoration: none;
}

/* Hǫll avatars - image support */
.avatar-has-img {
  background: transparent;
  padding: 0;
}

.avatar-has-img img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

/* Hǫll feed cards - extended layout */
.feed-item {
  list-style: none;
}

#feed-list {
  padding: 0;
  margin: 0;
}

.feed-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feed-card-avatar {
  flex: 0 0 auto;
}

.feed-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-card-author {
  font-size: 14px;
  font-weight: 500;
}

.feed-card-dot {
  color: rgba(148,163,184,0.9);
  font-size: 12px;
}

.feed-card-scope {
  font-size: 12px;
  color: rgba(129,140,248,0.95);
}

.feed-card-sub {
  font-size: 12px;
  color: rgba(148,163,184,0.95);
}

.feed-card-time {
  font-size: 12px;
}

.feed-card-body {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

.feed-card-body p {
  margin: 0;
}


/* Sidebar layout: scrollable nav + fixed hero plate */
.sidebar {
  padding-left: 22px;
  padding-right: 24px;
  overflow: visible;
}



.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 16px;
}

.sidebar-hero {
  flex: 0 0 auto;
  margin-top: 12px;
}

/* Hero plate (bottom user block) */











.hero-plate-glyph {
  font-size: 18px;
  color: rgba(248,250,252,0.9);
  text-shadow:
    0 0 8px rgba(56,189,248,0.9),
    0 0 14px rgba(56,189,248,0.7);
}

.hero-plate-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 4px rgba(15,23,42,0.9),
    0 0 10px rgba(15,23,42,0.95);
}

.hero-plate-status {
  font-size: 12px;
  color: var(--text-soft);
}
.hero-plate-status-
  color: var(--text-soft);
}

.hero-plate-role {
  font-size: 12px;
  font-weight: 500;
  text-
}

.hero-role-allfather {
  color: #0e4bff;
  text-shadow:
    0 0 10px rgba(14,75,255,0.9),
    0 0 20px rgba(43,184,255,0.8);
}

.hero-role-god {
  color: #0e4bff;
  text-shadow:
    0 0 8px rgba(14,75,255,0.85),
    0 0 16px rgba(43,184,255,0.7);
}

.hero-role-staff {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56,189,248,0.9);
}

.hero-role-mod {
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168,85,247,0.85);
}

.hero-role-tier {
  color: #7dd3fc;
}

.hero-allfather 

@keyframes allfatherPulse {
  0% {
    
  }
  50% {
    
  }
  100% {
    
  }
}







.hero-plate-glyph {
  flex: 0 0 auto;
  font-size: 18px;
  color: rgba(248,250,252,0.9);
  text-shadow:
    0 0 8px rgba(56,189,248,0.9),
    0 0 14px rgba(56,189,248,0.7);
}

.hero-plate-glyph-left {
  margin-right: 2px;
}

.hero-plate-glyph-right {
  margin-left: auto;
}







.hero-plate-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 20px;
  border: 2px solid rgba(15,23,42,0.98);
  
}

.hero-plate-status-dot.is-idle {
  background: #facc15;
  
}

.hero-plate-status-dot.is-dnd {
  background: #f97373;
  
}

.hero-plate-status-dot.is-invisible {
  background: #6b7280;
  
}

.hero-plate-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-plate-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 4px rgba(15,23,42,0.9),
    0 0 10px rgba(15,23,42,0.95);
}

.hero-plate-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-plate-status {
  font-size: 12px;
  color: var(--text-soft);
}
.hero-plate-status-
  color: var(--text-soft);
}

.hero-plate-role {
  font-size: 12px;
  font-weight: 500;
  text-
}

.hero-role-allfather {
  color: #0e4bff;
  text-shadow:
    0 0 10px rgba(14,75,255,0.9),
    0 0 20px rgba(43,184,255,0.8);
}

.hero-role-god {
  color: #0e4bff;
  text-shadow:
    0 0 8px rgba(14,75,255,0.85),
    0 0 16px rgba(43,184,255,0.7);
}

.hero-role-staff {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56,189,248,0.9);
}

.hero-role-mod {
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168,85,247,0.85);
}

.hero-role-tier {
  color: #7dd3fc;
}

.hero-allfather 

@keyframes allfatherPulse {
  0% {
    
  }
  50% {
    
  }
  100% {
    
  }
}



/* Placeholder links: subtle red glow to show not wired yet */
.sidebar-link-placeholder {
  position: relative;
  opacity: 0.8;
  cursor: default;
}

.sidebar-link-placeholder .sidebar-glyph {
  color: #f97373;
}

.sidebar-link-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  
}

/* Runeforge modal shell */
.runeforge-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
  backdrop-
}

.runeforge-backdrop[hidden] {
  display: none;
}

.runeforge-modal {
  width: 78vw;
  max-width: 1320px;
  height: 82vh;
  max-height: 85vh;
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,0.55);
  
}


.runeforge-nav {
  padding: 16px 14px;
  border-right: 1px solid rgba(30,64,175,0.7);
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 100%;
  overflow-y: auto;
}


.runeforge-main {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* simple nav list */
.runeforge-nav-title {
  font-size: 11px;
  text-
}

.runeforge-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.runeforge-nav-item {
  margin-bottom: 4px;
}

.runeforge-nav-button {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.runeforge-nav-button span {
  pointer-events: none;
}

.runeforge-nav-button.is-active {
  background: rgba(56,189,248,0.12);
  color: var(--text);
}

.runeforge-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runeforge-main-title {
  font-size: 18px;
  font-weight: 600;
}

.runeforge-main-subtitle {
  font-size: 13px;
  color: var(--text-soft);
}

.runeforge-close {
  border-radius: 20px;
  border: 1px solid rgba(30,64,175,0.8);
  background: rgba(15,23,42,0.9);
  color: var(--text-soft);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.runeforge-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  min-height: 0;
  overflow: hidden;
}


/* Identity form */
.runeforge-field {
  margin-bottom: 10px;
}

.runeforge-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-soft);
}

.runeforge-input,
.runeforge-textarea,
.runeforge-select {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(30,64,175,0.9);
  background: rgba(15,23,42,0.96);
  color: var(--text);
  padding: 6px 8px;
  font-size: 13px;
}

.runeforge-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Preview card */
.runeforge-preview-card {
  border-radius: 14px;
  padding: 12px 12px;
  background: radial-gradient(circle at top, rgba(30,64,175,0.85), rgba(15,23,42,0.98));
  border: 1px solid rgba(56,189,248,0.35);
  
}

.runeforge-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.runeforge-preview-name {
  font-size: 14px;
  font-weight: 500;
}

.runeforge-preview-tagline {
  font-size: 12px;
  color: var(--text-soft);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .runeforge-modal {
    grid-template-columns: minmax(0, 1fr);
  }
  .runeforge-nav {
    border-right: none;
    border-bottom: 1px solid rgba(30,64,175,0.7);
  }
  .runeforge-body {
    grid-template-columns: minmax(0, 1fr);
  }
}



/* Runeforge v10.3 layout refinements */
.runeforge-main {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.runeforge-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runeforge-main-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.runeforge-title {
  font-size: 18px;
  font-weight: 600;
}

.runeforge-main-subtitle {
  font-size: 13px;
  color: var(--text-soft);
}

.runeforge-profile-header {
  border-radius: 18px;
  padding: 16px 18px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
  border: 1px solid rgba(56,189,248,0.45);
  
}

.runeforge-avatar-ring {
  width: 164px;
  height: 164px;
  border-radius: 20px;
  border: 2px solid rgba(56,189,248,0.8);
  
}

.runeforge-avatar-initial {
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
}

.runeforge-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.runeforge-profile-name {
  font-size: 22px;
  font-weight: 600;
}

.runeforge-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.runeforge-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 20px;
  
}

.runeforge-status-dot.is-online {
  background: #22c55e;
}

.runeforge-status-dot.is-idle {
  background: #facc15;
  
}

.runeforge-status-dot.is-dnd {
  background: #f97373;
  
}

.runeforge-status-dot.is-invisible {
  background: #6b7280;
  
}

.runeforge-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.runeforge-badge {
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px dashed rgba(148,163,184,0.7);
  font-size: 11px;
  text-
}

.runeforge-badge-placeholder {
  opacity: 0.85;
}

/* Panels container */
.runeforge-panels {
  margin-top: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.runeforge-panel {
  display: none;
  padding: 8px 2px 6px 2px;
}

.runeforge-panel.is-active {
  display: block;
}

.runeforge-panel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.runeforge-panel-description {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* Forms */
.runeforge-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.runeforge-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 18px;
}

.runeforge-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.runeforge-label {
  font-size: 12px;
  text-
}

.runeforge-input,
.runeforge-textarea,
.runeforge-select {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(30,64,175,0.9);
  background: rgba(15,23,42,0.96);
  color: var(--text);
  padding: 6px 8px;
  font-size: 13px;
}

.runeforge-textarea {
  min-height: 96px;
  resize: vertical;
}

.runeforge-actions-row {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.runeforge-primary,
.runeforge-secondary,
.runeforge-tertiary,
.runeforge-danger {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.runeforge-primary {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #020617;
}

.runeforge-secondary {
  background: rgba(15,23,42,0.9);
  color: var(--text);
  border: 1px solid rgba(56,189,248,0.6);
}

.runeforge-tertiary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(51,65,85,0.85);
}

.runeforge-danger {
  background: transparent;
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.75);
}

/* Log out footer button */
.runeforge-nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(30,64,175,0.7);
}

.runeforge-nav-button-logout {
  justify-content: center;
  border-color: rgba(248,113,113,0.55);
  color: #fecaca;
}

/* ==========================================================
   Hǫll — Sidebar, Hero, Collapsible Nav, Immersion, Scrollbars
   ========================================================== */

/* Hero avatar clamp */




/* Sidebar layout: fixed column with internal scroll */
.sidebar {
  padding-left: 22px;
  padding-right: 24px;
  overflow: visible;
}



.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 16px;
}

/* Keep hero pinned at the bottom of the sidebar column */
.sidebar-hero {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
}

/* Collapsible sections — base styles */
.sidebar-section {
  margin-bottom: 18px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-
}

.sidebar-title-rune {
  font-size: 0.9rem;
  margin-right: 6px;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Rotate rune when closed */
.sidebar-group-closed .sidebar-title-rune {
  
}

/* Hide links when group is closed */
.sidebar-group-closed .sidebar-link,
.sidebar-group-closed .sidebar-link-placeholder {
  display: none;
}

/* Slight hover feedback on header */
.sidebar-title:hover {
  opacity: 1;
}

/* Adaptive spacing by viewport height */
@media (max-height: 850px) {
  .sidebar-section {
    margin-bottom: 12px;
  }
  .sidebar-link,
  .sidebar-link-placeholder {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-height: 720px) {
  .sidebar-section {
    margin-bottom: 8px;
  }
  .sidebar-link,
  .sidebar-link-placeholder {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .sidebar-title {
    font-size: 0.75rem;
  }
}

/* Rune-blue scrollbars for body + sidebar */
body,
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,0.9) rgba(15,23,42,0.45);
}

body::-webkit-scrollbar,
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track,
.sidebar-scroll::-webkit-scrollbar-track {
  background: rgba(15,23,42,0.45);
}

body::-webkit-scrollbar-thumb,
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59,130,246,1), rgba(29,78,216,1));
  border-radius: 8px;
}

/* Immersion mode: hide everything under header with quick fade */
body.hall-immersion .page-shell {
  opacity: 0;
  pointer-events: none;
  
}

body.hall-immersion .sidebar,
body.hall-immersion .sidebar-hero,
body.hall-immersion .right-rail {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}


/* Hǫll app shell — 5-region layout */
:root {
  --hall-shell-header-h: 56px;
  --hall-shell-nav-w: 280px;
  --hall-shell-center-min: 1100px;
  --hall-shell-center-max: 1500px;
  --hall-shell-right-w: 360px;
}

/* Center + right as a 2-column grid inside the shell */
.content-three {
  display: grid;
  grid-template-columns: minmax(var(--hall-shell-center-min), var(--hall-shell-center-max)) var(--hall-shell-right-w);
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  height: 100%;
  overflow: visible;
}

/* Independent scroll regions */
.content-main,
.rightcol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

/* Transparent HUD footer — hero left, toggle right */


.hud-left,


/* Soft ambient glow behind hero */
.hud-left 

/* Slight aura around the toggle */
.hud-right .rune-toggle {
  
}

/* Hide scrollbars but keep scroll behavior */
.sidebar-scroll,
.content-main,
.rightcol {
  scrollbar-width: none;
}

.sidebar-scroll::-webkit-scrollbar,
.content-main::-webkit-scrollbar,
.rightcol::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Lock global scroll; internal regions handle overflow */
html,
body {
  height: 100%;
  overflow: visible;
}

.topbar-actions { display: none !important; }


/* Hero plate width fix */
.hud-left 

/* Remove header runes completely */
.topbar-actions, .topbar-actions * {
  display: none !important;
  visibility: hidden !important;
}

/* Extend sidebar 
}


/* ===========================
   Hǫll shell v3 layout tweaks
   =========================== */

/* Sidebar: balanced padding and no hard border-right (we render 
  padding-right: 24px;
  overflow: visible;
}



/* Sidebar scroll: adaptive with hidden scrollbars */
.sidebar-scroll {
  scrollbar-width: none;
}

.sidebar-scroll::-webkit-scrollbar {
  display: none;
}

/* Global page-shell 
  position: fixed;
  top: 80px;              /* below topbar / shell padding */
  bottom: 88px;           /* above hero HUD footer */
  left: calc(32px + 320px); /* shell left padding + sidebar column width */
  width: 1px;
  background: rgba(30,64,175,0.6);
  
}

/* Tighten the horizontal gap between nav and feed */
.page-shell {
  column-gap: 12px;
}


/* Echoes / feed cards padding refinement */
.feed-item .card-body,
.echo-item .card-body {
  padding: 20px 24px 20px !important;
}


/* Great Hall composer header */
.gh-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(229,231,235,0.96);
  margin-bottom: 12px;
}

.gh-post-header .gh-rune {
  font-size: 1.35rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(56,189,248,0.55);
}

/* Voyages strip (Great Hall only) */
.voyages-strip {
  margin-bottom: 16px;
  padding: 10px 4px 2px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
  border: 1px solid rgba(148,163,184,0.35);
  
}

.voyages-row {
  display: flex;
  gap: 12px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.voyages-row::-webkit-scrollbar {
  display: none;
}

.voyage-card {
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 10px;
  border-radius: 18px;
  background: rgba(15,23,42,0.9);
  position: relative;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  
}

.voyage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(148,163,184,0.32), rgba(15,23,42,0.0));
  opacity: 0.7;
  pointer-events: none;
}

.voyage-card:hover {
  
  
}

.voyage-rune-tag {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: rgba(226,232,240,0.9);
}

.voyage-avatar-frame {
  width: 72px;
  height: 96px;
  border-radius: 18px;
  overflow: visible;
  position: relative;
  
}

.voyage-avatar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(248,250,252,0.15), transparent 55%);
  mix-blend-mode: screen;
}

.voyage-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(226,232,240,0.96);
}

.voyage-label {
  margin-top: 6px;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(209,213,219,0.96);
}

/* first card: user's Voyage */
.voyage-card.me {
  
}

.voyage-card.me .voyage-rune-tag {
  color: var(--accent);
}



/* Runeforge v10.8 refinements */
.runeforge-nav {
  scrollbar-width: thin;
}

.runeforge-nav::-webkit-scrollbar {
  width: 3px;
}

.runeforge-nav::-webkit-scrollbar-track {
  background: transparent;
}

.runeforge-nav::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.4);
  border-radius: 20px;
}

.runeforge-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,0.7);
}

.runeforge-panel-placeholder {
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(51,65,85,0.9);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
}

/* Steward Tools wide mode — content only */
.runeforge-modal {
  transition: max-width 120ms ease-out;
}

/* When Steward Tools is the active panel, subtly widen the content column */
.runeforge-modal:has(.runeforge-panel[data-runeforge-panel="stewardship"].is-active) {
  max-width: 1480px;
}



/* Profile page layout */
.content-profile {
  display: flex;
  padding: 24px 24px 32px;
}

.profile-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.profile-header-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  border: 1px solid rgba(148,163,184,0.45);
}

.profile-banner {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.1), rgba(15,23,42,0.9));
}

.profile-header-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 18px 22px 20px;
  margin-top: -72px;
}

.profile-avatar-frame {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 2px solid rgba(148,163,184,0.9);
  background: rgba(15,23,42,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-initials {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-meta {
  flex: 1;
}

.profile-display-name {
  font-size: 24px;
  font-weight: 700;
}

.profile-username {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 2px;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.profile-banner-change {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.85);
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}

.profile-banner-change:hover {
  color: var(--text);
  border-color: rgba(148,163,184,1);
}

.profile-tabs {
  display: flex;
  gap: 12px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(30,64,175,0.45);
  margin-bottom: 18px;
}

.profile-tab {
  border: none;
  background: transparent;
  font-size: 13px;
  text-
}

.profile-tab.is-active {
  background: rgba(15,23,42,0.96);
  color: var(--accent);
  
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px;
}

.profile-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card {
  border-radius: 18px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(30,64,175,0.55);
  padding: 14px 16px 16px;
}

.profile-card-title {
  font-size: 13px;
  text-
}

.profile-card-body {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .content-profile {
    padding: 16px;
  }
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-actions {
    margin-top: 8px;
  }
}



/* HǪLL OS — Hero Card */
#hero-shell {
  position: relative;
  margin-bottom: 28px;
}

.hero-card {
  position: sticky;
  top: 18px;
  z-index: 8;
  width: 460px;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,0.65), transparent 55%),
    #02030a;
  background-blend-mode: soft-light, normal;
  
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, var(--tier-metal-edge-start, #4b5563), var(--tier-metal-edge-end, #9ca3af));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 40%, transparent 60%, rgba(255,255,255,0.12));
  opacity: 0;
  
}

.hero-card:hover::after {
  opacity: 1;
  
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
}

.hero-avatar-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-avatar-inset {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 0%, rgba(148,163,184,0.55), transparent 55%),
    radial-gradient(circle at 70% 110%, rgba(15,23,42,0.95), transparent 60%);
  
}

.hero-avatar-glyph {
  font-size: 26px;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-handle {
  font-size: 13px;
  color: var(--text-soft);
}

.hero-tier-label {
  font-size: 12px;
  text-
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(15,23,42,0.94);
  
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 20px;
  background: rgba(52,211,153,1);
  
}

.hero-status-text {
  font-size: 12px;
  color: var(--text-soft);
}

.hero-rune-button {
  border-radius: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle at 30% 0%, rgba(248,250,252,0.3), rgba(15,23,42,1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  
}

.hero-rune-button:hover {
  
}

/* tier palettes */
.hero-card.tier-wanderer {
  --tier-metal-edge-start: #4b5563;
  --tier-metal-edge-end: #9ca3af;
}

.hero-card.tier-settled {
  --tier-metal-edge-start: #0ea5e9;
  --tier-metal-edge-end: #22c55e;
}

.hero-card.tier-guildmaster {
  --tier-metal-edge-start: #eab308;
  --tier-metal-edge-end: #f97316;
}

.hero-card.tier-clan-chief {
  --tier-metal-edge-start: #fb923c;
  --tier-metal-edge-end: #f97316;
}

.hero-card.tier-god {
  --tier-metal-edge-start: #a855f7;
  --tier-metal-edge-end: #f97316;
}

.hero-card.tier-allfather {
  --tier-metal-edge-start: #38bdf8;
  --tier-metal-edge-end: #e5e7eb;
}

/* notification stack anchor (for later steps) */
.hero-notify-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}



/* Hǫll OS core strip: empty stage */
.page-shell.page-shell-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 56px - 72px);
  padding: 0 32px;
}

.os-stage {
  width: 100%;
  max-width: 1200px;
  min-height: 240px;
  pointer-events: none;
}

/* GOD Mode rune in topbar */
.icon-btn-god {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.8);
  
}

.icon-btn-god::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.55), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

/* stronger state when external OS has control (future backend hook) */
body.god-remote .icon-btn-god {
  
}

@keyframes god-pulse {
  0% {
    
    
  }
  40% {
    
    
  }
  100% {
    
    
  }
}



/* ===========================
   HǪLL OS — HERO CARD (MARBLE)
   =========================== */

#hero-shell {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 20px;
}

.hero-card {
  width: 460px;
  padding: 18px 22px;
  border-radius: 20px;
  position: relative;

  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(0,0,0,0.45), transparent 70%),
    url('/assets/img/marble_dark.jpg'),
    #0a0a0c;
  background-size: cover;
  background-blend-mode: overlay;
  
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #6b7280, #d1d5db, #9ca3af, #6b7280);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.hero-avatar-inset {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(circle at 70% 110%, rgba(0,0,0,0.9), transparent 70%);
  
}

.hero-avatar-glyph {
  font-size: 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.hero-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-handle {
  font-size: 13px;
  opacity: 0.7;
}

.hero-tier-label {
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: 0.16em;
}

.hero-status-pill {
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.55);
  
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 20px;
  background: #22c55e;
}

.hero-rune-button {
  width: 42px;
  height: 42px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  
}



/* Hero Plate Restyle */
.footer-hero, 





/* Expanded, marble + metal hero plate */














.hud-left 

/* Ensure footer toggle never gets crushed */
@media (min-width: 768px) {
  
}


/* Room 1 — Canon Hero Plate Style (Clean Room Spec) */
.hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 32px;
  padding-bottom: 18px;
}

.hud-left {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hud-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Rectangular hero plate, layout unchanged, +220px width expansion (approximate) */
.hero-plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 22px;
  border-radius: 20px;
  min-width: 420px;
  width: clamp(420px, 640px, 55vw);
  background:
    radial-gradient(circle at 18% 0%, rgba(148,163,184,0.45), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(30,64,175,0.85), rgba(15,23,42,1)),
    linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,23,42,1));
  border: 1px solid rgba(148,163,184,0.98);
  
}

.hero-plate:hover {
  
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(140% 200% at 15% 0%, rgba(241,245,249,0.5), transparent 45%),
    radial-gradient(140% 220% at 80% 110%, rgba(15,23,42,0.95), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
}

.hero-plate-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  z-index: 1;
}

.hero-plate-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-plate-avatar-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0%, rgba(248,250,252,0.95), rgba(15,23,42,1));
  
}

.hero-plate-avatar-circle::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.9);
  
}

/* Ensure hero plate never steals width from toggle on larger screens */
@media (min-width: 960px) {
  .hud-footer {
    padding-inline: 40px;
  }
}

/* Hero Plate (No Glow) - Cleaned version with black marble, no neon or glow effect */
.hero-plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 22px;
  border-radius: 20px;
  min-width: 420px;
  width: clamp(420px, 640px, 55vw);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(0,0,0,0.7), rgba(15,23,42,1)),
    linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,1)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><rect width="100%" height="100%" fill="url(#marble)"/><defs><linearGradient id="marble" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="rgba(20,20,20,0.25)" stop-opacity="1"/><stop offset="100%" stop-color="rgba(0,0,0,0.35)" stop-opacity="0.25"/></linearGradient></defs></svg>');
  border: 1px solid rgba(148,163,184,0.98);
  
}

.hero-plate:hover {
  
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(140% 200% at 15% 0%, rgba(241,245,249,0.5), transparent 45%),
    radial-gradient(140% 220% at 80% 110%, rgba(15,23,42,0.95), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
}

/* Topbar Styling (Polished Metallic Gradient) */
#topbar {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(30, 64, 175, 0.90));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Toggle Button (Polished Metallic Look) */
.hud-toggle {
  border-radius: 50%;
  padding: 8px;
  background: rgba(56,189,248,0.85);
  border: 2px solid rgba(30,64,175,1);
  
}

.hud-toggle:hover {
  background: rgba(30,64,175,1);
  
}

.hud-toggle:active {
  background: rgba(56,189,248,0.85);
  
}

/* Black Marble Texture Refinement */
.hero-plate {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(0,0,0,0.7), rgba(15,23,42,1)),
    linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,1)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><rect width="100%" height="100%" fill="url(#marble)"/><defs><linearGradient id="marble" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="rgba(20,20,20,0.25)" stop-opacity="1"/><stop offset="100%" stop-color="rgba(0,0,0,0.25)" stop-opacity="0.35"/><stop offset="50%" stop-color="rgba(255, 255, 255, 0.15)" stop-opacity="0.45"/></linearGradient></defs></svg>');
}

/* Increased Text Weight and Contrast for Tier and Status */
.hero-plate .hero-identity {
  font-weight: 600;
  color: #ffffff;
}

.hero-plate .hero-tier-label {
  font-weight: 700;
  color: #3E8EDE;
  text-shadow: 0 0 5px rgba(56,189,248,0.85);
}

.hero-plate .hero-status {
  font-weight: 500;
  color: #A0B0B8;
}

/* Fix Hero Plate Alignment with Toggle */
.hud-footer {
  padding-top: 16px;
  padding-bottom: 18px; /* fine-tune to align with toggle */
}

/* Topbar Styling with Gradient */
#topbar {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(30, 64, 175, 0.90));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Reduce horizontal padding of hero plate */
.hero-plate {
  padding-left: 18px;
  padding-right: 18px;
}

/* Further Hero Plate Alignment Fix */
.hud-footer {
  padding-top: 20px;  /* Further drop hero plate down to align better with the toggle */
  padding-bottom: 18px; /* Fine-tuned spacing to ensure alignment with footer */
}

/* Reduce horizontal padding of hero plate to tighten layout */
.hero-plate {
  padding-left: 16px;  /* Tighten left padding for balance */
  padding-right: 16px; /* Tighten right padding for better alignment */
}

/* Fix Hero Plate Vertical Alignment with Toggle */
.hud-footer {
  padding-top: 30px;  /* Further align hero plate with toggle */
  padding-bottom: 18px; /* Consistent spacing with footer toggle */
}

/* Tighten horizontal padding for more balanced layout */
.hero-plate {
  padding-left: 12px;  /* Slightly reduced padding */
  padding-right: 12px; /* Slightly reduced padding */
}

/* Topbar Gradient Fix */
#topbar {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(30, 64, 175, 0.90));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Update avatar and tier text */
.hero-plate .hero-tier-label {
  font-weight: 700;
  color: #3E8EDE;
  text-shadow: 0 0 5px rgba(56,189,248,0.85);
}

.hero-plate-avatar-circle {
  box-shadow:
    0 0 0 2px rgba(15,23,42,1),
    0 0 18px rgba(56,189,248,0.85),
    0 0 36px rgba(59,130,246,0.80);
}

/* Further Lower Hero Plate to align properly with the toggle */
.hud-footer {
  padding-top: 35px;  /* Lower hero plate further */
}

/* Refine Hero Plate - Minimalist Style */
.hero-plate {
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(0,0,0,0.6), rgba(15,23,42,1)),
    linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,1));
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow:
    0 18px 42px rgba(15,23,42,0.7),
    0 0 18px rgba(56,189,248,0.6),
    inset 0 0 12px rgba(15,23,42,0.8);
  transition: background-color 0.3s ease;
}

/* Remove excessive glow effect */
.hero-plate:hover {
  box-shadow:
    0 18px 42px rgba(15,23,42,0.7),
    0 0 18px rgba(56,189,248,0.5);
  border-color: rgba(148,163,184,0.7);
}

/* Update Text for Tier and Status */
.hero-plate .hero-tier-label {
  font-weight: 600;
  color: #A0B0B8;  /* Subtle off-white for tier text */
}

.hero-plate .hero-status {
  font-weight: 400;
  color: #A0B0B8;  /* Subtle off-white for status */
}

/* Fix Avatar Glow and Border */
.hero-plate-avatar-circle {
  box-shadow:
    0 0 0 2px rgba(15,23,42,1),
    0 0 10px rgba(56,189,248,0.6);
}

/* Lower Hero Plate to align with toggle properly */
.hud-footer {
  padding-top: 40px;  /* Lower the hero plate further */
}

/* Adjust horizontal padding to center the layout */
.hero-plate {
  padding-left: 8px;  /* Reduce padding */
  padding-right: 8px; /* Reduce padding */
}

/* Refine Glow and Shadows for Clean Look */
.hero-plate {
  box-shadow:
    0 18px 42px rgba(15,23,42,0.5),
    0 0 18px rgba(56,189,248,0.5),
    inset 0 0 12px rgba(15,23,42,0.6);
}

/* Subtle avatar glow to match minimal theme */
.hero-plate-avatar-circle {
  box-shadow:
    0 0 0 2px rgba(15,23,42,1),
    0 0 10px rgba(56,189,248,0.4);
}

/* Ensure strong contrast for hero plate text */
.hero-plate {
  background-color: rgba(15,23,42,0.95);
}

.hero-plate .hero-identity, .hero-plate .hero-tier-label, .hero-plate .hero-status {
  color: #FFFFFF;  /* Ensure white text on dark background */
  font-weight: 600;
}

/* Adjust padding to balance the content */
.hero-plate {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-plate-avatar-circle {
  box-shadow:
    0 0 0 2px rgba(15,23,42,1),
    0 0 10px rgba(56,189,248,0.4);
}

/* Adjust outer border color based on tier level */
.hero-plate {
  border: 2px solid rgba(56, 189, 248, 1);  /* GOD Tier (blue) - adjust this dynamically for other tiers */
}

/* Improve black marble visibility */
.hero-plate {
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,0.15), transparent 55%),
    radial-gradient(circle at 82% 120%, rgba(0,0,0,0.7), rgba(15,23,42,1)),
    linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,1));
}

/* Align text properly in hero plate */
.hero-plate .hero-identity {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.hero-plate .hero-identity .username {
  margin-right: 12px;
}
.hero-plate .hero-tier-label {
  font-size: 18px;
  margin-left: 8px;
}

/* Remove offline text if status dot is present */
.hero-plate .hero-status {
  display: none;  /* Will show the dot and hide the "Offline" text */
}

.hero-plate .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: green;  /* Will update dynamically depending on status (green for online) */
  border-radius: 50%;
  margin-right: 5px;
}

/* Avatar setup (will handle pulling from the database later) */
.hero-plate-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #A0A0A0; /* Placeholder for avatar image */
}
