:root{
  --bg1:#07152b;
  --bg2:#0b1f3d;
  --panel:rgba(255,255,255,0.05);
  --border:rgba(255,255,255,0.08);
  --text:rgba(255,255,255,0.92);
  --glow:rgba(255,140,0,0.6);
}

body{
  margin:0;
  font-family: system-ui, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(1000px 600px at 50% -100px, rgba(25,70,140,0.45), transparent 60%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
  color:var(--text);
}

.wrap{
width:min(1100px,calc(100% - 40px));
  margin:0 auto;
}

/* Generic content panel */
.content-box{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.content-box h2{ margin-top: 0; }

.hl-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.hl-alert-ok{ border-color: rgba(0,255,150,0.22); }
.hl-alert-err{ border-color: rgba(255,80,80,0.28); }

/* Admin table */
.admin-table{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
}
.admin-row{
  display:grid;
  grid-template-columns: 90px 1.5fr 1.5fr 1fr 1fr 2fr;
  gap: 12px;
  padding: 12px 12px;
  border-top: 1px solid var(--border);
  align-items:start;
}

.admin-table.cols5 .admin-row{ grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr; }
.admin-table.cols5 .admin-row.admin-head{ grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr; }

.admin-table.cols5b .admin-row{ grid-template-columns: 1fr 2fr 1fr 1fr 1fr; }
.admin-table.cols5b .admin-row.admin-head{ grid-template-columns: 1fr 2fr 1fr 1fr 1fr; }
.admin-row.admin-head{
  border-top:none;
  font-weight: 800;
  background: rgba(255,255,255,0.03);
}
@media (max-width: 900px){
  .admin-row{
    grid-template-columns: 1fr;
  }
}

.page-title{
  text-align:center;
  margin:40px 0 20px;
  font-weight:800;
  letter-spacing:0.04em;
}

.game-list{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:20px;
}

.game-bar{
  position:relative;
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px 28px;
  border-radius:22px;
  background:var(--panel);
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  transition:0.25s ease;
  box-shadow:0 18px 50px rgba(0,0,0,0.35);
}

.game-bar::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:4px;
  background:linear-gradient(180deg,#ff8c00,#ff6a00);
  border-radius:22px 0 0 22px;
}

.game-bar:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 65px rgba(0,0,0,0.45),0 0 45px var(--glow);
}

.game-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  overflow:hidden;
  flex:0 0 48px;
}

.game-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.game-name{
  font-size:20px;
  font-weight:700;
}
/* GAME BARS */
.game-list{display:flex;flex-direction:column;gap:22px;margin-top:20px;}
.game-bar{position:relative;display:flex;align-items:center;gap:20px;padding:24px 28px;border-radius:22px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);text-decoration:none;color:rgba(255,255,255,0.92);transition:0.25s ease;box-shadow:0 18px 50px rgba(0,0,0,0.35);}
.game-bar::before{content:"";position:absolute;left:0;top:0;height:100%;width:4px;background:linear-gradient(180deg,#ff8c00,#ff6a00);border-radius:22px 0 0 22px;}
.game-bar:hover{transform:translateY(-4px);box-shadow:0 24px 65px rgba(0,0,0,0.45),0 0 45px rgba(255,140,0,0.6);}
.game-icon{width:48px;height:48px;border-radius:12px;overflow:hidden;flex:0 0 48px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;}
.game-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.game-name{font-size:20px;font-weight:700;letter-spacing:0.02em;}

/* =========================
   SERVERS: Card Grid
   ========================= */

.servers-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:22px;
  margin-top:18px;
  padding-bottom: 10px;
}

.server-card{
  border-radius:22px;
  overflow:hidden;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.server-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,140,0,0.35);
  box-shadow: 0 24px 65px rgba(0,0,0,0.45), 0 0 45px rgba(255,140,0,0.55);
}

.server-map{
  position:relative;
  height: 160px;
  background: rgba(255,255,255,0.04);
}

.server-map img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

.server-map::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 10%, rgba(0,0,0,0.55) 92%);
  pointer-events:none;
}

.server-badges{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  z-index:2;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.04em;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

.badge-online{ color:#30d158; }
.badge-offline{ color:#ff453a; }
.badge-map{ color: rgba(255,255,255,0.92); opacity: 0.95; }

.server-body{
  padding:18px 18px 16px;
}

.server-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:0.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.server-meta{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  opacity:0.92;
}

.meta-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}

.meta-k{ opacity:0.72; }
.meta-v{ font-weight:700; }

.server-stats{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}

.stat{
  padding:10px 10px;
  border-radius:14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}

.stat-k{ opacity:0.72; font-weight:700; }
.stat-v{ font-weight:900; }

.server-actions{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.02em;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  user-select:none;
}



/* Danger / Report button: always red; keeps the global .btn:hover effect */
.btn-danger{
  background: rgba(255, 59, 59, 0.88);
  border-color: rgba(255, 59, 59, 0.55);
  color: rgba(255,255,255,0.98);
}
.btn-primary{
  background: linear-gradient(180deg, #ff8c00, #ff6a00);
  border-color: rgba(255,140,0,0.45);
  color: #0b1f3d;
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}

.btn-disabled{
  opacity:0.55;
  cursor:not-allowed;
}

.connect-hint{
  font-size:12px;
  opacity:0.75;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* INDEX HERO GRID (2 tiles) */
.hero-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  margin:28px 0 0;
}

.card-link{
  display:flex;
  line-height:0;
  border-radius:18px;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 18px 50px rgba(0,0,0,0.35);
  transition:0.25s ease;
}

.card-link:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 65px rgba(0,0,0,0.45),0 0 45px rgba(255,140,0,0.6);
}

.card-link img{
  display:block;
  width:330px;     /* <- wenn du größer willst: 240/260 */
  height:650px;
}

/* STICKY FOOTER LAYOUT */
html, body { height: 100%; }
body{
  min-height: 100vh;
  display:flex;
  flex-direction:column;
}

/* =========================
   HLstatsC INDEX: Premium Layout Fix
   (safe overrides, scoped)
   ========================= */

/* Optional: globale Box-Sizing Hygiene (sehr empfehlenswert) */
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Header: Logo kleiner + ruhiger ---------- */
.site-header .brand img{
  width: clamp(260px, 72vw, 680px);
  height: auto;
  display: block;
  margin: 8px auto 0;
}

/* Falls der Header zu “hoch” wirkt */
.site-header{
  padding: 18px 0 10px;
}

/* ---------- Hero Grid: mittig + premium spacing ---------- */
.hero-grid{
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(18px, 3.6vw, 48px);
  margin: 30px 0 12px;
  flex-wrap: wrap;
  padding: 0 14px;
}

/* Karten: gleichmäßige Größe + hochwertiger Look */
.card-link{
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.card-link:hover{
  transform: translateY(-4px);
  border-color: rgba(255,140,0,0.35);
  box-shadow:
    0 24px 65px rgba(0,0,0,0.45),
    0 0 45px rgba(255,140,0,0.55);
}

/* Bildgröße: responsive und trotzdem “cardig” */
.card-link img{
  display: block;
  width: clamp(310px, 26vw, 280px);
  height: 550px;
}

/* ---------- Footer: BIW Logo kleiner + Abstand ---------- */
/* ---------- Footer unten halten (nur wenn du es brauchst) ---------- */
html, body { height: 100%; }
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ---------- Mobile Feinschliff ---------- */
@media (max-width: 520px){
  .hero-grid{
    gap: 16px;
    margin: 22px 0 10px;
  }
  .site-header{ padding: 14px 0 8px; }
}
/* Footer Text zentrieren */
.site-footer p,
.site-footer small,
.site-footer .copyright{
  text-align: center;
  width: 100%;
  display: block;
}

/* =========================
   HLstatsC PlayerList + PlayerDetail UI
   Paste at END of your style.css
   ========================= */

.container{ width:min(1050px, 92%); margin: 0 auto; }

.page-title{
  text-align:center;
  letter-spacing: .08em;
  margin: 18px 0 14px;
}

.hl-filters{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin: 12px auto 18px;
}

.hl-input, .hl-select{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  min-width: 220px;
}

.hl-select{ min-width: 260px; }

.hl-btn{
  background: rgba(255,140,0,0.18);
  border: 1px solid rgba(255,140,0,0.35);
  color:#fff;
  border-radius: 14px;
  padding: 12px 16px;
  cursor:pointer;
}

.hl-btn:hover{ background: rgba(255,140,0,0.25); }

.hl-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  opacity:.85;
  margin: 8px 0 12px;
}

.hl-bars{ display:flex; flex-direction:column; gap: 14px; padding: 6px 0 12px; }

.hl-bar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hl-bar:hover{
  transform: translateY(-2px);
  border-color: rgba(255,140,0,0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.38), 0 0 36px rgba(255,140,0,0.28);
}

.hl-rank{
  min-width: 68px;
  text-align:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.25);
  font-weight: 700;
}

.hl-name{
  font-size: 1.05rem;
  font-weight: 650;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hl-pagination{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin: 12px 0 10px;
}

.hl-page{
  text-decoration:none;
  color:#fff;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

.hl-page:hover{ border-color: rgba(255,140,0,0.35); }

.hl-page-current{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,140,0,0.16);
  border: 1px solid rgba(255,140,0,0.35);
}

.hl-empty, .hl-error{
  text-align:center;
  padding: 16px 14px;
  border-radius: 16px;
  margin: 14px 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.hl-error{
  border-color: rgba(255,80,80,0.45);
  background: rgba(255,80,80,0.10);
}

/* Player detail cards */
.hl-backrow{ margin: 10px 0 8px; }
.hl-back{
  display:inline-block;
  text-decoration:none;
  color:#fff;
  opacity:.9;
}
.hl-back:hover{ opacity:1; text-decoration:underline; }

.hl-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 10px;
}

.hl-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px 16px;
}

.hl-card-label{ opacity:.80; font-size:.86rem; margin-bottom: 6px; }
.hl-card-value{ font-size: 1.35rem; font-weight: 750; }

.hl-section-title{
  margin: 16px 0 10px;
  font-weight: 750;
  opacity:.95;
}

.hl-tablewrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
}

.hl-table{
  width:100%;
  border-collapse: collapse;
  min-width: 820px;
}

.hl-table th, .hl-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align:left;
}

.hl-table thead th{
  position: sticky;
  top: 0;
  background: rgba(10,18,30,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  z-index: 1;
}

@media (max-width: 900px){
  .hl-cards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .hl-cards{ grid-template-columns: 1fr; }
  .hl-input{ min-width: 180px; }
  .hl-select{ min-width: 220px; }
}

/* Fix: Dropdown Text im Dark Theme */
.hl-select {
  color: #ffffff;
  background-color: rgba(255,255,255,0.06);
}

.hl-select option {
  color: #000000;          /* schwarzer Text im Dropdown */
  background-color: #ffffff; 
}

/* =========================
   HLstatsC – Centered & Clean Player Table
   Replace previous table patch with this
   ========================= */

/* Wider but centered container */
.container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Table wrapper centered */
.hl-tablewrap{
  display: flex;
  justify-content: center;
  overflow: visible;
  margin-top: 10px;
}

/* Table clean layout */
.hl-table{
  width: 100%;
  max-width: 1100px;
  table-layout: auto;
  border-collapse: collapse;
}

/* Header styling */
.hl-table thead th{
  text-align: center;
  padding: 10px 8px;
}

/* Body cells centered */
.hl-table td{
  text-align: center;
  padding: 10px 8px;
}

/* Server column left aligned but controlled width */
.hl-table th:first-child,
.hl-table td:first-child{
  text-align: left;
  width: 280px;
  white-space: normal;
}

/* Remove forced widths from other columns */
.hl-table th:not(:first-child),
.hl-table td:not(:first-child){
  width: auto;
}

/* Subtle row separation for premium feel */
.hl-table tbody tr{
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Hover effect */
.hl-table tbody tr:hover{
  background: rgba(255,255,255,0.04);
}

/* Mobile fallback */
@media (max-width: 1000px){
  .hl-tablewrap{
    overflow-x: auto;
  }
  .hl-table{
    min-width: 1000px;
  }
}


/* Server cards clickable (but keep Connect buttons working) */
.server-card-link{ cursor:pointer; }
.server-card-link .server-actions a,
.server-card-link .server-actions .btn{ cursor:pointer; }

/* Server internal ranking layout */
.hl-server-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 0 auto 14px;
  max-width: 980px;
}

.btn-ghost{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.hl-server-connect{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Non-clickable bars (server ranking) */
.hl-bar-static{ cursor:default; }
.hl-bar-static:hover{
  transform:none;
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.hl-avatar{
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hl-avatar img{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:block;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}

.hl-avatar-fallback{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  opacity: .8;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.hl-name-link{
  color:#fff;
  text-decoration:none;
}
.hl-name-link:hover{ text-decoration: underline; }

.hl-stats{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.hl-stat{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 2px;
  min-width: 62px;
}

.hl-stat .k{
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}
.hl-stat .v{
  font-size: 14px;
  font-weight: 700;
  opacity: 0.95;
}

/* Mobile: stack stats */
@media (max-width: 720px){
  .hl-bar{ flex-wrap: wrap; }
  .hl-stats{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
  .hl-stat{ align-items:flex-start; }
}

.hl-name,
.hl-name:visited {
  color: #ffffff !important;
}

.hl-name:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Modal (Thumbnail Upload) */
.hl-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.hl-modal.is-open{ display:block; }
.hl-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.62); backdrop-filter: blur(2px); }
.hl-modal-card{
  position:relative;
  width:min(520px, calc(100vw - 24px));
  margin: 10vh auto 0;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(12,24,44,0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow:hidden;
}
.hl-modal-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.08); }
.hl-modal-title{ font-weight:900; letter-spacing:0.02em; }
.hl-modal-x{
  width:36px; height:36px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
}
.hl-modal-body{ padding:16px; display:flex; flex-direction:column; gap:10px; }
.hl-label{ font-weight:800; font-size:13px; opacity:0.9; }
.hl-input{
  height:44px; padding:0 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}
.hl-modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.hl-hint{ font-size:12px; opacity:0.75; line-height:1.35; }

/* Notices */
.notice{ padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,0.10); }
.notice.ok{ background: rgba(0,255,140,0.08); border-color: rgba(0,255,140,0.20); }
.notice.err{ background: rgba(255,60,60,0.08); border-color: rgba(255,60,60,0.22); }
/* HLstatsC – Servers list: push thumbnail button to the right (same style as other .btn buttons) */
.btn-right{
  margin-left:auto;
}


/* =========================
   HLstatsC – Unify hl-btn with orange primary buttons
   ========================= */
.hl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.02em;
  text-decoration:none;
  user-select:none;
  cursor:pointer;

  background: linear-gradient(180deg, #ff8c00, #ff6a00);
  border: 1px solid rgba(255,140,0,0.45);
  color: #0b1f3d;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hl-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}


/* =========================
   HLstatsC – Make "Back to list" (.hl-back) look like primary orange button
   ========================= */
.hl-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.02em;
  text-decoration:none !important;
  user-select:none;
  cursor:pointer;

  background: linear-gradient(180deg, #ff8c00, #ff6a00);
  border: 1px solid rgba(255,140,0,0.45);
  color: #0b1f3d !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hl-back:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}

/* --- Legal Notice Button (before footer) --- */
.footer-link{
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-link:hover{
  text-decoration: underline;
}

/* --- First-visit Rules Popup --- */
.rules-popup{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
}

.rules-box{
  width: min(520px, calc(100% - 24px));
  background: rgba(13,31,58,0.98);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 22px 22px 18px 22px;
  color: rgba(255,255,255,0.92);
  text-align:left;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.rules-box h2{
  margin: 0 0 10px 0;
  font-size: 20px;
}

.rules-links{
  margin: 10px 0 12px 0;
  color: rgba(255,255,255,0.85);
}

.rules-links a{
  color: #ffb24d;
  text-decoration: none;
}
.rules-links a:hover{ text-decoration: underline; }

.rules-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top: 8px;
}

.rules-actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
}

/* =========================
   FORCE PRIMARY STYLE FOR MODAL ACTION BUTTONS
   ========================= */

.hl-modal-actions .btn{
  background: linear-gradient(180deg,#ff8c00,#ff6a00) !important;
  border: 1px solid rgba(255,140,0,0.45) !important;
  color:#0b1f3d !important;
}

.hl-modal-actions .btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 26px rgba(255,140,0,0.45);
}


/* =========================
   Sub Navigation (under logo)
   ========================= */
.hl-subnav{
  max-width: 1000px;
  margin: 12px auto 0;
  padding: 0 12px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 12px;
}
.hl-subnav-center{
  justify-self:center;
  text-align:center;
}


/* Unify hl-btn with primary */
.hl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.02em;
  text-decoration:none;
  user-select:none;
  cursor:pointer;

  background: linear-gradient(180deg, #ff8c00, #ff6a00);
  border: 1px solid rgba(255,140,0,0.45);
  color: #0b1f3d;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hl-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}

/* Force modal action buttons (Cancel/Continue) to primary */
.hl-modal-actions .btn{
  background: linear-gradient(180deg,#ff8c00,#ff6a00) !important;
  border: 1px solid rgba(255,140,0,0.45) !important;
  color:#0b1f3d !important;
}
.hl-modal-actions .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}

/* Legacy back links fallback */
.hl-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.02em;
  text-decoration:none !important;
  user-select:none;
  cursor:pointer;

  background: linear-gradient(180deg, #ff8c00, #ff6a00);
  border: 1px solid rgba(255,140,0,0.45);
  color: #0b1f3d !important;
}
.hl-back:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 26px rgba(255,140,0,0.45);
}




/* =========================
   Register Server – layout polish
   ========================= */
.hl-preview{
  min-height: 200px;
  max-height: 260px;
  overflow: auto;
  resize: vertical;
  line-height: 1.35;
}

.hl-actions-center{
  text-align: center;
  margin-top: 16px;
}

/* =========================
   Footer border position tweak (all pages)
   ========================= */
.footer-line{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}
.footer-link{ color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-link:hover{ text-decoration: underline; }

/* =========================================================
   LAYOUT: sticky footer without overlaying content
   ========================================================= */
.page-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main{
  flex: 1 0 auto;
}

/* =========================================================
   FOOTER (gradient only inside footer)
   ========================================================= */
.site-footer{
  flex-shrink: 0;
  position: relative;  /* IMPORTANT: not fixed */
  width: 100%;
  padding: 26px 0 22px;
  background: linear-gradient(180deg,
    rgba(8,28,58,0.00) 0%,
    rgba(7,24,48,0.72) 35%,
    rgba(5,18,40,0.92) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 1;
}

.footer-inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  text-align: center;
}

.footer-logo img{
  width: 92px;   /* bigger BIW logo */
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

.footer-links{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a{
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
}

.footer-links a:hover{
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.45);
}



/* Smooth blend into darker footer (no border, no click-block) */
.site-footer{ position: relative; }
.site-footer::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.30) 100%);
}
