/* ===========================
   Bobek Industries Portal
   WotLK Theme
=========================== */

:root {
  --void:        #020408;
  --deep:        #06090f;
  --navy:        #0a1020;

  --gold:        #c8922a;
  --gold-bright: #edc44a;
  --gold-muted:  #8a6215;
  --gold-glow:   rgba(200, 146, 42, 0.4);

  --ice:         #2869a0;

  --text:        #d8cdb8;
  --text-dim:    #68788e;
  --text-head:   #ecdfc8;

  --online:      rgba(58, 138, 80, 0.4);
  --offline:     rgba(138, 40, 40, 0.4);

  --card:        rgba(5, 8, 18, 0.96);
  --inner:       rgba(255, 255, 255, 0.025);
  --border:      rgba(200, 146, 42, 0.22);
  --border-hi:   rgba(200, 146, 42, 0.5);

  --shadow:      0 28px 80px rgba(0, 0, 0, 0.88);
  --shadow-gold: 0 0 60px rgba(200, 146, 42, 0.08);
}

* {
  box-sizing: border-box;
}

/* ===========================
   BACKGROUND
=========================== */

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 100% 55% at 50%   0%, rgba(12, 35, 80,  0.75) 0%, transparent 55%),
    radial-gradient(ellipse 50%  40% at  0%  65%, rgba(8,  25, 60,  0.5)  0%, transparent 60%),
    radial-gradient(ellipse 40%  35% at 100% 35%, rgba(40, 15, 70,  0.38) 0%, transparent 55%),
    radial-gradient(ellipse 70%  25% at 50% 100%, rgba(10, 20, 50,  0.6)  0%, transparent 60%);
  overflow-x: hidden;
}

/* star-field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 260px 190px, 380px 290px, 490px 370px;
  background-position: 15px 25px, 80px 90px, 210px 155px;
  opacity: 0;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.28; }
  50%       { opacity: 0.44; }
}

.aurora {
  position: fixed;
  top: -40%;
  left: -10%;
  right: -10%;
  height: 70vh;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(18, 70, 150, 0.22), transparent 48%),
    radial-gradient(ellipse at 75% 40%, rgba(80, 30, 150, 0.13), transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(12, 55, 120, 0.17), transparent 50%);
  filter: blur(45px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  from { transform: translateY(-15px) scale(1); }
  to   { transform: translateY(15px)  scale(1.09); }
}

.site-nav,
.shell {
  position: relative;
  z-index: 1;
}

/* ===========================
   NAV
=========================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 4, 8, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200, 146, 42, 0.18);
}

.nav-inner {
  width: min(1040px, 90vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
}

.nav-brand {
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px var(--gold-glow), 0 0 50px rgba(200,146,42,0.12);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.nav-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  font-weight: 400;
  text-shadow: none;
  font-family: "IBM Plex Sans", sans-serif;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links form {
  margin: 0;
  display: contents;
}

/* ===========================
   SHELL
=========================== */

.shell {
  width: min(860px, 90vw);
  margin: 2.2rem auto 4rem;
  padding: 0 1rem;
}

/* ===========================
   CARD
=========================== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.4rem;
  box-shadow: var(--shadow), var(--shadow-gold),
              inset 0 1px 0 rgba(200, 146, 42, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* top gold sheen */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 146, 42, 0.55), transparent);
  pointer-events: none;
}

/* subtle inner depth */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 10% 0%,  rgba(200, 146, 42, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 100%, rgba(40, 80, 150, 0.035) 0%, transparent 40%);
  pointer-events: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */

h1, h2, h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--text-head);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(200, 146, 42, 0.18);
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* realm badge: patch version callout */
.realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
  width: fit-content;
}

.realm-badge span {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.realm-badge small {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ===========================
   ORNAMENTAL SECTION DIVIDER
=========================== */

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.2rem 0 1.4rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 146, 42, 0.32), transparent);
}

.divider h2 {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   STATUS GRID
=========================== */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.status-item {
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--inner);
  position: relative;
  overflow: hidden;
}

.status-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

.status-item.up {
  border-color: rgba(58, 138, 80, 0.32);
  background: rgba(58, 138, 80, 0.04);
}

.status-item.up::before {
  background: linear-gradient(180deg, transparent, #3a8a50 35%, #3a8a50 65%, transparent);
}

.status-item.down {
  border-color: rgba(138, 40, 40, 0.32);
  background: rgba(138, 40, 40, 0.04);
}

.status-item.down::before {
  background: linear-gradient(180deg, transparent, #8a2828 35%, #8a2828 65%, transparent);
}

.status-item h3 {
  font-size: 0.7rem;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.status-item p {
  margin: 0.28rem 0 0.1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-head);
}

.status-item small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ===========================
   ONLINE STATS / FACTION BAR
=========================== */

.online-stats {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.online-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  background: rgba(200, 146, 42, 0.07);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  flex-shrink: 0;
}

.online-count .count-number {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 20px var(--gold-glow);
}

.online-count .count-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.faction-bar-wrap {
  flex: 1;
  min-width: 200px;
}

.faction-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.faction-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.faction-label.alliance { color: #6aadff; }
.faction-label.horde    { color: #ff6a6a; }

.faction-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faction-label.alliance .dot { background: #4a8fd4; }
.faction-label.horde    .dot { background: #c44040; }

.faction-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
}

.faction-bar .bar-alliance {
  background: linear-gradient(90deg, #2a5fa8, #5a9fd4);
  transition: width 0.5s ease;
}

.faction-bar .bar-horde {
  background: linear-gradient(90deg, #c44040, #e06060);
  transition: width 0.5s ease;
}

.faction-bar-empty {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ===========================
   ACTIONS BAR
=========================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.4rem;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.86rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: transform 110ms ease, box-shadow 110ms ease, filter 110ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #9e6e12, #d4a030 50%, #e8c050);
  color: #040810;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(200, 146, 42, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 7px 26px rgba(200, 146, 42, 0.58),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(200, 146, 42, 0.07);
  color: #c8a060;
  border: 1px solid rgba(200, 146, 42, 0.26);
}

.btn-ghost:hover {
  background: rgba(200, 146, 42, 0.14);
  color: var(--gold-bright);
  box-shadow: 0 3px 14px rgba(200, 146, 42, 0.14);
}

.btn-danger {
  background: linear-gradient(135deg, #6e1010, #a83030);
  color: #f0c8c8;
  box-shadow: 0 4px 16px rgba(138, 40, 40, 0.32);
}

.btn-danger:hover {
  box-shadow: 0 7px 24px rgba(138, 40, 40, 0.52);
  filter: brightness(1.1);
}

/* ===========================
   PILL
=========================== */

.pill {
  padding: 0.17rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pill.up {
  background: rgba(58, 138, 80, 0.18);
  color: #5fd080;
  border: 1px solid rgba(58, 138, 80, 0.42);
}

.pill.down {
  background: rgba(138, 40, 40, 0.18);
  color: #d07070;
  border: 1px solid rgba(138, 40, 40, 0.42);
}

.pill.up::before {
  content: "● ";
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.3; }
}

/* ===========================
   FORMS
=========================== */

.forms {
  margin-top: 1.6rem;
}

.panel {
  display: grid;
  gap: 0.9rem;
}

.link-row {
  margin-top: 1rem;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  transition: color 0.15s;
}

.text-link:hover {
  color: var(--gold);
}

.hidden {
  display: none;
}

label {
  font-weight: 700;
  font-size: 0.78rem;
  display: grid;
  gap: 0.3rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input {
  background: rgba(200, 146, 42, 0.04);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 7px;
  padding: 0.6rem 0.82rem;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: rgba(200, 146, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.1);
}

input::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

/* ===========================
   FLASH
=========================== */

.flash {
  margin: 1rem 0;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.flash.success {
  background: rgba(58, 138, 80, 0.13);
  border: 1px solid rgba(58, 138, 80, 0.4);
  color: #68d888;
}

.flash.error {
  background: rgba(138, 40, 40, 0.13);
  border: 1px solid rgba(138, 40, 40, 0.4);
  color: #d07070;
}

/* ===========================
   CHARACTER CARDS
=========================== */

.characters {
  display: grid;
  gap: 0.7rem;
}

.character-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1rem 1.2rem;
  background: var(--inner);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.character-card:hover {
  border-color: rgba(200, 146, 42, 0.48);
  background: rgba(200, 146, 42, 0.04);
  box-shadow: 0 4px 22px rgba(200, 146, 42, 0.08);
}

.character-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.character-card p {
  margin: 0.18rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.character-card p strong {
  color: var(--text);
}

.character-card small {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.5;
}

.card-actions {
  margin-top: 0.75rem;
}

/* ===========================
   EMPTY STATE
=========================== */

.empty {
  padding: 1.1rem 1.3rem;
  border-radius: 9px;
  background: transparent;
  border: 1px dashed rgba(200, 146, 42, 0.18);
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}

/* ===========================
   ADMIN
=========================== */

.inline-form {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 230px;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1rem 1.2rem;
  background: var(--inner);
  margin-bottom: 0.7rem;
}

.admin-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.admin-card p {
  margin: 0.18rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.admin-card p strong {
  color: var(--text);
}

.admin-card small {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.admin-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(200, 146, 42, 0.025);
  border: 1px solid rgba(200, 146, 42, 0.14);
  border-radius: 9px;
  padding: 0.8rem;
}

.admin-action .btn {
  margin-top: auto;
}

.admin-action p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ===========================
   TABLES
=========================== */

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(200, 146, 42, 0.07);
}

th {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(200, 146, 42, 0.07);
  font-weight: 600;
}

td {
  font-size: 0.875rem;
  color: var(--text);
}

tbody tr:hover {
  background: rgba(200, 146, 42, 0.04);
}

tbody tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.38rem;
  color: var(--gold);
}

/* ===========================
   TELEPORT CITY GRID
=========================== */

.city-group {
  margin-bottom: 1rem;
}

.city-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.city-group-label.neutral  { color: var(--gold); }
.city-group-label.alliance { color: #6aadff; }
.city-group-label.horde    { color: #ff7070; }

.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.city-btn {
  border-radius: 7px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid;
  transition: transform 110ms ease, box-shadow 110ms ease, background 110ms ease;
  letter-spacing: 0.02em;
}

.city-btn:hover {
  transform: translateY(-2px);
}

.city-btn.neutral {
  background: rgba(200, 146, 42, 0.08);
  border-color: rgba(200, 146, 42, 0.3);
  color: var(--gold-bright);
}

.city-btn.neutral:hover {
  background: rgba(200, 146, 42, 0.16);
  box-shadow: 0 3px 12px rgba(200, 146, 42, 0.2);
}

.city-btn.alliance {
  background: rgba(74, 143, 212, 0.08);
  border-color: rgba(74, 143, 212, 0.3);
  color: #7ab8ff;
}

.city-btn.alliance:hover {
  background: rgba(74, 143, 212, 0.16);
  box-shadow: 0 3px 12px rgba(74, 143, 212, 0.2);
}

.city-btn.horde {
  background: rgba(196, 64, 64, 0.08);
  border-color: rgba(196, 64, 64, 0.3);
  color: #ff8888;
}

.city-btn.horde:hover {
  background: rgba(196, 64, 64, 0.16);
  box-shadow: 0 3px 12px rgba(196, 64, 64, 0.2);
}

/* ===========================
   MISC
=========================== */

.nowrap { white-space: nowrap; }

/* ===========================
   ANIMATIONS
=========================== */

.reveal {
  animation: reveal 500ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 700px) {
  .shell {
    margin: 0.8rem auto 2rem;
  }

  .card {
    padding: 1.4rem;
    border-radius: 12px;
  }

  .nav-sub {
    display: none;
  }
}

/* ===========================
   HERO BANNER
=========================== */

.hero-banner {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%,   rgba(10, 30, 80, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 100%,  rgba(60, 20, 100, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%,   rgba(10, 50, 120, 0.3)  0%, transparent 60%);
  border-bottom: 1px solid rgba(200, 146, 42, 0.13);
}

/* faint horizontal scan line for atmosphere */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 4px
  );
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  font-family: "IBM Plex Sans", sans-serif;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-head);
  text-shadow:
    0 0 80px rgba(200, 146, 42, 0.28),
    0 4px 24px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.94rem;
}

/* ===========================
   SHELL-HOME (wider shell for home page)
=========================== */

.shell-home {
  position: relative;
  z-index: 1;
  width: min(1040px, 90vw);
  margin: 2.2rem auto 4rem;
  padding: 0 1rem;
}

.home-main-card {
  /* full width of .shell-home — two-column layout inside */
}

/* ===========================
   METRICS ROW
=========================== */

.metrics-row {
  display: flex;
  gap: 0.7rem;
  margin: 0.3rem 0 1.6rem;
  flex-wrap: wrap;
}

.metric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(200, 146, 42, 0.05);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 9px;
  padding: 0.6rem 1.1rem;
  min-width: 96px;
  flex: 1;
}

.metric-value {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.22rem;
}

/* ===========================
   HOME GRID (news + leaderboard)
=========================== */

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

/* ===========================
   NEWS SECTION
=========================== */

.news-section {
  padding: 1.8rem 2rem;
}

.news-post {
  border-bottom: 1px solid rgba(200, 146, 42, 0.1);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.news-post:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.news-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.news-author {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.news-title {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.news-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===========================
   LEADERBOARD SECTION
=========================== */

.leaderboard-section {
  padding: 1.8rem 2rem;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--inner);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.leaderboard-row:hover {
  background: rgba(200, 146, 42, 0.04);
  border-color: rgba(200, 146, 42, 0.18);
}

.leaderboard-row.rank-1 {
  background: rgba(200, 146, 42, 0.1);
  border-color: rgba(200, 146, 42, 0.35);
}

.leaderboard-row.rank-2 {
  background: rgba(170, 170, 170, 0.07);
  border-color: rgba(170, 170, 170, 0.22);
}

.leaderboard-row.rank-3 {
  background: rgba(180, 100, 40, 0.07);
  border-color: rgba(180, 100, 40, 0.22);
}

.rank-num {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

.rank-1 .rank-num { color: var(--gold-bright); }
.rank-2 .rank-num { color: #c0c0c0; }
.rank-3 .rank-num { color: #c87850; }

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  display: block;
  font-size: 0.92rem;
  color: var(--text-head);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-detail {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.rank-kills {
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   HOW TO CONNECT
=========================== */

.how-to-card {
  margin-top: 1.2rem;
  padding: 1.6rem 2rem;
}

.how-to > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.how-to > summary::-webkit-details-marker {
  display: none;
}

.how-to-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.how-to-title {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-to-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.how-to-arrow {
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

details[open] .how-to-arrow {
  transform: rotate(180deg);
}

.how-to-steps {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(200, 146, 42, 0.12);
}

@media (min-width: 700px) {
  .how-to-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-to-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid var(--border-hi);
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.step-content {
  display: grid;
  gap: 0.4rem;
}

.step-content strong {
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: 0.04em;
}

.step-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.realmlist-pre {
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 7px;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--gold-bright);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ===========================
   SITE FOOTER
=========================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(200, 146, 42, 0.18);
  background: rgba(2, 4, 8, 0.96);
  backdrop-filter: blur(18px);
  margin-top: 2rem;
}

.footer-inner {
  width: min(1040px, 90vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
}

.footer-brand {
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px var(--gold-glow), 0 0 50px rgba(200,146,42,0.12);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.footer-patch {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  font-weight: 400;
  text-shadow: none;
  font-family: "IBM Plex Sans", sans-serif;
}

.footer-links {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-legal {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.4;
  text-align: right;
}


/* ===========================
   NEWS MANAGEMENT (admin)
=========================== */

.news-compose {
  display: grid;
  gap: 0.85rem;
}

.news-compose textarea {
  background: rgba(200, 146, 42, 0.04);
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 7px;
  padding: 0.6rem 0.82rem;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-compose textarea:focus {
  outline: none;
  border-color: rgba(200, 146, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.1);
}

.news-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(200, 146, 42, 0.08);
}

.news-item-row:last-child {
  border-bottom: 0;
}

.news-item-meta {
  flex: 1;
  min-width: 0;
}

.news-item-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-head);
}

.news-item-meta small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ===========================
   TWO-COLUMN MAIN CARD
=========================== */

.main-card-cols {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.main-col-info {
  flex: 1 1 56%;
  min-width: 0;
  padding-right: 2.4rem;
}

.col-sep {
  width: 1px;
  align-self: stretch;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 146, 42, 0.2) 12%,
    rgba(200, 146, 42, 0.2) 88%,
    transparent 100%
  );
}

.main-col-auth {
  flex: 1 1 44%;
  min-width: 0;
  padding-left: 2.4rem;
}

/* ===========================
   AUTH TABS
=========================== */

.auth-tab-row {
  display: flex;
  border-bottom: 1px solid rgba(200, 146, 42, 0.16);
  margin-bottom: 1.4rem;
  gap: 0;
}

.auth-tab {
  padding: 0.58rem 1.15rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.15s, border-color 0.15s;
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-tab:hover:not(.active) {
  color: var(--text-head);
}

/* ===========================
   AUTH WELCOME (logged-in)
=========================== */

.auth-welcome {
  padding-top: 0.6rem;
}

.auth-greeting {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 700;
}

.auth-username {
  margin: 0.3rem 0 0;
  font-family: "Cinzel", serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(200, 146, 42, 0.4);
  line-height: 1.15;
}

/* ===========================
   BUTTON MODIFIER
=========================== */

.btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ===========================
   HERO STATUS PILL
=========================== */

.hero-status-bar {
  margin: 0 0 1.8rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid;
}

.hero-status-pill.online {
  background: rgba(58, 138, 80, 0.12);
  border-color: rgba(58, 138, 80, 0.35);
  color: #6dd890;
}

.hero-status-pill.offline {
  background: rgba(138, 40, 40, 0.12);
  border-color: rgba(138, 40, 40, 0.35);
  color: #d07070;
}

.hero-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-status-pill.online .hero-status-dot {
  background: #5fd080;
  box-shadow: 0 0 6px rgba(95, 208, 128, 0.85);
  animation: pulse 2.5s ease infinite;
}

.hero-status-pill.offline .hero-status-dot {
  background: #c04040;
}

/* forms inside the auth column — no extra top margin */
.main-col-auth .forms {
  margin-top: 0;
}

/* ===========================
   RESPONSIVE — STACK COLUMNS
=========================== */

@media (max-width: 760px) {
  .main-card-cols {
    flex-direction: column;
  }

  .main-col-info {
    padding-right: 0;
  }

  .col-sep {
    width: auto;
    height: 1px;
    align-self: auto;
    margin: 1.8rem 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(200, 146, 42, 0.2) 20%,
      rgba(200, 146, 42, 0.2) 80%,
      transparent 100%
    );
  }

  .main-col-auth {
    padding-left: 0;
  }
}
