/* ============================================================
   Azeroth Portal — dark fantasy theme
   ============================================================ */
:root {
  --bg: #08090d;
  --bg-2: #0d0f15;
  --panel: rgba(19, 21, 29, 0.72);
  --panel-solid: #12141b;
  --line: rgba(200, 161, 90, 0.16);
  --line-strong: rgba(200, 161, 90, 0.38);
  --gold: #c8a15a;
  --gold-2: #e8cd94;
  --gold-3: #f6e7c4;
  --text: #e9e7e2;
  --muted: #969ba6;
  --green: #57c98a;
  --red: #e0605e;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(200, 161, 90, 0.16), transparent 60%),
    radial-gradient(800px 500px at 88% 0%, rgba(90, 120, 200, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(120, 60, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0b10 0%, #08090d 45%, #06070a 100%);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

a { color: var(--gold-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-3); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(200, 161, 90, 0.10);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--gold-2);
}

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(200,161,90,.28), rgba(200,161,90,.06));
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  font-size: 16px;
}
.brand-text {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--text);
}
.brand-text em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text.small { font-size: 15px; }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--gold-2); }
.nav-links a.btn { color: #14100a; }

/* ---------------------------------------------------------- layout */
main { padding: 0 clamp(20px, 5vw, 64px) 80px; max-width: 1180px; margin: 0 auto; }

.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 40px; text-align: center; }
.hero-glow {
  position: absolute;
  left: 50%; top: 10%;
  width: min(760px, 90vw); height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200,161,90,.20), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.display {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff8e8 0%, var(--gold-2) 45%, #a97f3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(200,161,90,.18);
}
.display.sm { font-size: clamp(30px, 4.6vw, 48px); }

.lede {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17.5px);
  font-weight: 300;
}
.lede.narrow { max-width: 520px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(200, 161, 90, 0.07);
  font-size: 13.5px;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(87, 201, 138, .6);
  animation: pulse 2.4s infinite;
}
.status-pill.offline .dot { background: var(--red); animation: none; }
.status-pill .sep { opacity: .4; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87,201,138,.55); }
  70% { box-shadow: 0 0 0 10px rgba(87,201,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,201,138,0); }
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, #e6c98d, #c8a15a 55%, #a97f3f);
  color: #17120a;
  box-shadow: 0 10px 30px -12px rgba(200,161,90,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { color: #17120a; box-shadow: 0 14px 36px -12px rgba(200,161,90,.9); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line-strong);
  color: var(--gold-2);
}
.btn-ghost:hover { background: rgba(200,161,90,.10); color: var(--gold-3); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn.wide { width: 100%; }

/* ---------------------------------------------------------- cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0 40px;
}
.stats-grid.four { grid-template-columns: repeat(4, 1fr); }
.stats-grid.five { grid-template-columns: repeat(5, 1fr); }

.stat-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,26,35,.85), rgba(14,16,22,.85));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,161,90,.55), transparent);
}
.stat-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-3);
}
.stat-value.sm { font-size: 24px; }
.stat-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.panel {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.panel h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}
.panel h3 {
  font-family: "Cinzel", serif;
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--gold-2);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* connect box */
.connect-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  overflow: hidden;
}
.connect-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.connect-row:last-child { border-bottom: 0; }
.connect-row .k { color: var(--muted); }
.connect-row .v { font-family: ui-monospace, Menlo, monospace; color: var(--gold-2); }

/* features */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ico {
  flex: 0 0 34px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(200,161,90,.08);
  color: var(--gold-2);
  font-size: 15px;
}
.feature-list strong { display: block; font-size: 14.5px; color: var(--text); }
.feature-list p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------- page head */
.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; text-align: center; }
.page-head.center { text-align: center; }

/* ---------------------------------------------------------- forms */
.form-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.form-panel { padding: 32px; }

.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #5c616b; }
.field input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(200,161,90,.12);
}
.field small { display: block; margin-top: 6px; font-size: 12px; color: #6f747e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert.ok { background: rgba(87,201,138,.08); border-color: rgba(87,201,138,.35); color: #b6f0cd; }
.alert.err { background: rgba(224,96,94,.08); border-color: rgba(224,96,94,.35); color: #f3b6b5; }
.alert a { display: inline-block; margin-top: 6px; }

.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.steps li span {
  flex: 0 0 26px;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
}

/* ---------------------------------------------------------- armory */
.search-wrap { max-width: 640px; margin: 0 auto 30px; }
.search { display: flex; gap: 10px; }
.search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(200,161,90,.12); }

.results { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.char-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,26,35,.8), rgba(14,16,22,.8));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.char-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(30,32,42,.9), rgba(18,20,27,.9));
}
.char-avatar {
  flex: 0 0 44px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--c, var(--gold-2));
  background: color-mix(in srgb, var(--c, #c8a15a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #c8a15a) 40%, transparent);
}
.char-avatar.xl { flex: 0 0 84px; width: 84px; height: 84px; font-size: 34px; border-radius: 20px; }
.char-main { flex: 1; min-width: 0; }
.char-name { display: block; font-family: "Cinzel", serif; font-weight: 700; font-size: 17px; }
.char-meta { display: block; font-size: 13px; color: var(--muted); }
.char-side { display: flex; align-items: center; gap: 12px; }
.guild { color: var(--gold); font-size: 13px; }

.pill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: .04em;
}
.pill.on { color: #8fe3b4; border-color: rgba(87,201,138,.4); background: rgba(87,201,138,.1); }
.pill.off { color: #8b909a; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }

.empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  max-width: 820px;
  margin: 0 auto;
}

/* character page */
.char-hero {
  position: relative;
  margin: 30px 0 20px;
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(24,26,35,.9), rgba(12,14,19,.9));
}
.char-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.char-hero-inner { position: relative; display: flex; align-items: center; gap: 22px; }
.char-sub { margin: 0; color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.kv { margin: 0; display: grid; gap: 0; }
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 14px;
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------- download */
.download-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.dl-icon {
  flex: 0 0 42px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(200,161,90,.1);
  color: var(--gold-2);
}
.dl-icon.big { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 16px; }
.dl-main { flex: 1; min-width: 0; }
.dl-main strong { display: block; font-size: 15px; word-break: break-all; }
.dl-empty { text-align: center; padding: 20px 10px; }

/* ---------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 5vw, 64px) 40px;
  background: rgba(6,7,10,.6);
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 20px; font-size: 14px; }
.foot .tiny { max-width: 1180px; margin: 0 auto; }

.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .stats-grid, .stats-grid.four, .stats-grid.five { grid-template-columns: repeat(2, 1fr); }
  .split, .form-wrap, .download-wrap { grid-template-columns: 1fr; }
  .nav { padding: 12px 18px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 560px) {
  .stats-grid, .stats-grid.four, .stats-grid.five { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .char-side { display: none; }
  .char-hero-inner { flex-direction: column; text-align: center; }
  .brand-text { font-size: 15px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------------------------------------------------------- bots */
.bot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bot-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .16s ease;
}
.chip span {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active {
  border-color: var(--line-strong);
  background: rgba(200,161,90,.12);
  color: var(--gold-2);
}
.bot-search {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.bot-search:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(200,161,90,.12); }

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.bot-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,26,35,.8), rgba(13,15,21,.85));
  transition: transform .16s ease, border-color .16s ease;
}
.bot-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.bot-avatar {
  flex: 0 0 40px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--c, var(--gold-2));
  background: color-mix(in srgb, var(--c, #c8a15a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #c8a15a) 40%, transparent);
}
.bot-body { flex: 1; min-width: 0; }
.bot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bot-name { font-family: "Cinzel", serif; font-weight: 700; font-size: 15px; }
.bot-meta { font-size: 12.5px; color: var(--muted); }
.pin {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,161,90,.14);
  vertical-align: middle;
}
.bot-place {
  font-size: 12.5px;
  color: var(--gold);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bot-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.state {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: .03em;
}
.state.combat { color: #f0a3a2; border-color: rgba(224,96,94,.4); background: rgba(224,96,94,.1); }
.state.idle { color: #9fd8b8; border-color: rgba(87,201,138,.35); background: rgba(87,201,138,.08); }
.state.dead { color: #9aa0ab; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.bot-target {
  font-size: 11.5px;
  color: #e0b0a0;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-hp { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.warn-inline { color: #e0b070; }

/* ---------------------------------------------------------- server meters */
.meter-row { margin-bottom: 16px; }
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.meter-head span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.meter-head em { font-style: normal; font-size: 12px; }
.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.04);
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a97f3f, var(--gold-2));
  box-shadow: 0 0 12px rgba(200,161,90,.35);
  transition: width .6s ease;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.mini-k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-v { display: block; font-family: "Cinzel", serif; font-size: 17px; color: var(--gold-2); margin-top: 3px; }

.bot-summary { display: flex; gap: 22px; margin: 18px 0 20px; flex-wrap: wrap; }
.bs-item { display: flex; align-items: baseline; gap: 8px; }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bs-dot.live { background: var(--green); box-shadow: 0 0 8px rgba(87,201,138,.6); }
.bs-dot.gold { background: var(--gold); }
.bs-dot.dim { background: #6b7280; }
.bs-n { font-family: "Cinzel", serif; font-size: 22px; color: var(--gold-3); }
.bs-l { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- bot detail */
.split-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  margin: 6px 0 16px;
}
.split-bar .seg { display: block; height: 100%; }
.split-bar .seg.combat { background: linear-gradient(90deg, #b34a48, #e0605e); }
.split-bar .seg.idle { background: linear-gradient(90deg, #3f8f66, #57c98a); }
.split-bar .seg.dead { background: #4b5563; }
.legend { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 12px 150px 110px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13.5px;
}
.timeline li:last-child { border-bottom: 0; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.tl-dot.combat { background: var(--red); box-shadow: 0 0 8px rgba(224,96,94,.5); }
.tl-dot.idle { background: var(--green); }
.tl-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tl-state { color: var(--gold-2); text-transform: capitalize; }
.tl-zone { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-target { color: #e0b0a0; font-size: 12.5px; }
.tl-dur { color: var(--muted); font-size: 12px; }
a.bot-card { color: inherit; }
a.bot-card:hover { color: inherit; }

@media (max-width: 700px) {
  .timeline li { grid-template-columns: 12px 1fr auto; }
  .tl-zone, .tl-target { display: none; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------- battlegrounds */
.match-list { display: grid; gap: 8px; }
.match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.22);
}
.match-bg { display: block; font-family: "Cinzel", serif; font-size: 14.5px; color: var(--gold-2); }
.match-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.match-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.match-stats { font-size: 11.5px; color: var(--muted); }
.pill.ally { color: #9ec5ff; border-color: rgba(90,140,220,.45); background: rgba(90,140,220,.12); }
.pill.horde { color: #f3a3a2; border-color: rgba(200,70,70,.45); background: rgba(200,70,70,.12); }

.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
}
.board td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.board tr:last-child td { border-bottom: 0; }
.board tr:hover td { background: rgba(200,161,90,.03); }
.board .rank { color: var(--muted); width: 34px; font-variant-numeric: tabular-nums; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.board .num em { font-style: normal; font-size: 12px; }
.board-class { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ---------------------------------------------------------- home battlegrounds */
.bg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bg-count { display: flex; flex-direction: column; }
.bg-n { font-family: "Cinzel", serif; font-size: 34px; line-height: 1; color: var(--gold-3); }
.bg-l { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.bg-split { display: flex; gap: 18px; text-align: right; }
.bg-side { display: flex; flex-direction: column; }
.bg-pct { font-family: "Cinzel", serif; font-size: 20px; color: var(--text); }
.bg-tag { font-size: 11px; letter-spacing: .04em; }
.bg-tag.ally { color: #9ec5ff; }
.bg-tag.horde { color: #f3a3a2; }

.match-list.compact .match { padding: 9px 12px; }
.match-list.compact .match-bg { font-size: 13.5px; }
.match-list.compact .match-meta { font-size: 11.5px; }
.small-pad { padding: 10px 0; }

.leaders { list-style: none; margin: 0 0 14px; padding: 0; }
.leaders li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.leaders li:last-child { border-bottom: 0; }
.lead-rank {
  flex: 0 0 22px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.lead-main { flex: 1; min-width: 0; }
.lead-main a { font-family: "Cinzel", serif; font-weight: 700; font-size: 14.5px; }
.lead-sub { display: block; font-size: 11.5px; color: var(--muted); }
.lead-num {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--gold-2);
  text-align: right;
}
.lead-num em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.honor-total {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12.5px;
  color: var(--muted);
}
.honor-total span { color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- network readout */
.net-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.net-chip {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- armor / items */
.gear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-items: stretch; }
.gear-col { display: flex; flex-direction: column; gap: 6px; }
.gear-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.18);
  min-height: 58px;
}
.gear-slot.empty { opacity: .45; }
.gear-icon {
  flex: 0 0 36px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--q, #9aa0ab);
  border: 1px solid color-mix(in srgb, var(--q, #9aa0ab) 45%, transparent);
  background: color-mix(in srgb, var(--q, #9aa0ab) 14%, transparent);
}
.gear-info { min-width: 0; display: flex; flex-direction: column; }
.gear-slot-name { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gear-item { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gear-meta { font-size: 11px; color: var(--muted); }

.item-results { display: grid; gap: 8px; max-width: 900px; margin: 0 auto; }
.item-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24,26,35,.8), rgba(14,16,22,.8));
  transition: transform .15s ease, border-color .15s ease;
}
.item-row:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.item-icon {
  flex: 0 0 34px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  font-family: "Cinzel", serif; font-weight: 700;
  color: var(--q, #9aa0ab);
  border: 1px solid color-mix(in srgb, var(--q, #9aa0ab) 45%, transparent);
  background: color-mix(in srgb, var(--q, #9aa0ab) 14%, transparent);
}
.item-icon.xl { flex: 0 0 64px; width: 64px; height: 64px; font-size: 24px; border-radius: 14px; }
.item-main { flex: 1; min-width: 0; }
.item-name { display: block; font-family: "Cinzel", serif; font-weight: 700; font-size: 15px; }
.item-meta { display: block; font-size: 12px; color: var(--muted); }
.item-side { text-align: right; }
.item-ilvl { display: block; font-size: 13px; color: var(--gold-2); }
.item-req { display: block; font-size: 11.5px; color: var(--muted); }

.item-big { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.item-big-name { font-family: "Cinzel", serif; font-weight: 700; font-size: 20px; }
.item-big-meta { font-size: 12.5px; color: var(--muted); }
.item-stats { list-style: none; margin: 0 0 12px; padding: 0; }
.item-stats li { padding: 3px 0; font-size: 14px; color: var(--text); }
.item-flavor { font-style: italic; font-size: 13px; color: var(--gold); border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; }

@media (max-width: 700px) {
  .gear-grid { grid-template-columns: 1fr; }
}
