/* ==========================================================================
   Skyblade xClassic — 8-Boss Classic Portal Design System
   Shares Shishikyuu Network shell (/assets/portal.css) with Wuxia Obsidian,
   Imperial Gold, and Crimson accents. Zero AI art — authentic client assets.
   ========================================================================== */

:root {
  --accent: #e5b84b;
  --accent-bright: #fde07a;
  --accent-crimson: #e11d48;
  --accent-jade: #34d399;
  --accent-sky: #38bdf8;
  --accent-violet: #a78bfa;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --panel: rgba(12, 19, 36, 0.86);
  --panel-solid: #0c1324;
  --panel-2: rgba(17, 26, 48, 0.88);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(245, 185, 66, 0.38);
  --glow-gold: 0 10px 30px rgba(229, 184, 75, 0.22);
  --glow-crimson: 0 10px 30px rgba(225, 29, 72, 0.2);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(245, 185, 66, 0.1), transparent 65%),
    radial-gradient(ellipse 65% 45% at 88% 12%, rgba(56, 189, 248, 0.08), transparent 60%),
    #070b15;
}

.ambient-bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 185, 66, 0.07), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(56, 189, 248, 0.06), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.04), transparent 50%);
}

/* ---- Sticky xClassic Sub-Navbar (Aligned with RO & Ran Siblings) ---- */
.x-subnav {
  position: sticky;
  top: 44px;
  z-index: 40;
  background: rgba(7, 11, 21, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.x-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.x-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 1rem;
  color: var(--accent);
  white-space: nowrap;
}

.x-brand small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(229, 184, 75, 0.34);
  background: rgba(229, 184, 75, 0.14);
}

.x-navlinks {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.x-navlinks > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.x-navlinks > a:hover,
.x-navlinks > a.active {
  color: var(--accent-bright);
  background: rgba(229, 184, 75, 0.12);
}

/* ---- Live Telemetry Bar (Exact Shishikyuu Sibling Strip) ---- */
.telemetry-bar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(20, 29, 52, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(229, 184, 75, 0.34);
  font-size: 0.8rem;
}

.telemetry-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tele-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tele-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 600;
}

.tele-pill strong { color: var(--text); font-weight: 700; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
  display: inline-block;
}
.dot.up { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.75); }
.dot.down { background: #f43f5e; box-shadow: 0 0 10px rgba(244, 63, 94, 0.75); }

.tz-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--accent-bright);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.tz-btn:hover { border-color: var(--accent); }

/* ---- Layout Container & Sections ---- */
.x-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.x-section {
  padding: 54px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  scroll-margin-top: 128px;
}

.x-subpage-sec {
  padding: 36px 0 60px;
  min-height: 68vh;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* ---- Overview Hero ---- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background: url('/skyblade/img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(1.1) blur(1px);
  pointer-events: none;
}

.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.65) 0%, rgba(7, 9, 15, 0.88) 65%, #07090f 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(135deg, #fff4cc 0%, #e5b84b 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 22px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-pill {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(16, 20, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.spec-pill strong { color: var(--accent-bright); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Buttons ---- */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  text-decoration: none;
}

.x-btn-gold {
  background: linear-gradient(135deg, #f3cd6d 0%, #d49b2b 100%);
  color: #161106;
  box-shadow: var(--glow-gold);
}
.x-btn-gold:hover { transform: translateY(-2px); filter: brightness(1.07); }

.x-btn-crimson {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  color: #fff;
  box-shadow: var(--glow-crimson);
}
.x-btn-crimson:hover { transform: translateY(-2px); filter: brightness(1.08); }

.x-btn-sky {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #061321;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.x-btn-sky:hover { transform: translateY(-2px); filter: brightness(1.07); }

.x-btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}
.x-btn-glass:hover {
  border-color: var(--line-strong);
  color: var(--accent-bright);
  background: rgba(229, 184, 75, 0.1);
}

.x-btn-sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 8px; }

/* ---- Hero Right Card ---- */
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-art-frame {
  position: relative;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 184, 75, 0.25);
  background: #0a0d16;
}

.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 9, 15, 0.85) 100%);
  pointer-events: none;
}

.hero-art-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.kpi-box {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kpi-label {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-val {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.kpi-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

/* ---- Cards & Grids ---- */
.x-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}
.x-card-gold { border-color: var(--line-strong); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---- Tabs (Exact RO Sibling Tab Strip) ---- */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.tab-btn {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.tab-btn:hover {
  color: var(--text);
  border-color: rgba(245, 185, 66, 0.4);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.22), rgba(56, 189, 248, 0.14));
  border-color: var(--accent);
  color: var(--accent-bright);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- News List ---- */
.news-list { display: flex; flex-direction: column; gap: 10px; }

/* ---- Forms & Inputs ---- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
}

.x-input,
.x-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 15, 0.88);
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.18s ease;
}

.x-input:focus,
.x-select:focus { border-color: var(--accent); }

.alert-box {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  margin-top: 12px;
  display: none;
}
.alert-box.show { display: block; }
.alert-ok { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.alert-err { background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.4); color: #fda4af; }

/* ---- Character Cards (UCP) ---- */
.char-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
}

.char-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.char-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: #fff; }
.char-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

.bar-wrap { margin: 6px 0; }
.bar-lbl { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 3px; }
.bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-hp { background: linear-gradient(90deg, #ef4444, #f97316); }
.bar-mp { background: linear-gradient(90deg, #3b82f6, #38bdf8); }

/* ---- Tables ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar .x-input { max-width: 320px; }
.toolbar .x-select { max-width: 210px; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 17, 0.68);
}

.x-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.x-table th {
  text-align: left;
  padding: 11px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-bright);
  background: rgba(229, 184, 75, 0.08);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.x-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  vertical-align: middle;
}

.x-table tbody tr:hover { background: rgba(229, 184, 75, 0.05); }
.x-table tbody tr.clickable { cursor: pointer; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  white-space: nowrap;
}
.tag-gold { border-color: var(--line-strong); background: rgba(229, 184, 75, 0.14); color: var(--accent-bright); }
.tag-crimson { border-color: rgba(225, 29, 72, 0.45); background: rgba(225, 29, 72, 0.14); color: #fda4af; }
.tag-sky { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.tag-green { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.tag-violet { border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.12); color: #c4b5fd; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---- Town / Planet Strip Cards (5 Interplanetary Charm Planets) ---- */
.town-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.town-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  height: 144px;
  cursor: pointer;
  background: #05070e;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.town-card:hover,
.town-card.active {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(229, 184, 75, 0.28);
}
.town-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(0.96);
  transition: transform 0.25s ease;
}
.town-card:hover img { transform: scale(1.06); }
.town-card-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 10px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 14, 0.88) 58%, rgba(5, 7, 14, 0.96) 100%);
}
.town-card-cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.2;
}
.town-card-cap span {
  display: block;
  font-size: 0.68rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1024px) {
  .town-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Boss Timer Grid ---- */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.mvp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mvp-card.spawn-window { border-color: rgba(245, 158, 11, 0.65); background: rgba(245, 158, 11, 0.08); }
.mvp-card.spawn-alive { border-color: rgba(34, 197, 94, 0.55); background: rgba(34, 197, 94, 0.07); }
.mvp-countdown { font-family: var(--font-tech); font-size: 1.15rem; font-weight: 800; color: var(--accent-bright); }

/* ---- Stat Calculator (Combat Readout: Max HP | Max SP first, every metric in own box) ---- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: 74px 44px 1fr 44px 76px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-name { font-family: var(--font-tech); font-weight: 700; color: var(--accent-bright); font-size: 0.88rem; }

.step-btn {
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.step-btn:hover { border-color: var(--accent); color: var(--accent-bright); }

.calc-out-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-metric {
  padding: 13px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.calc-metric.highlight {
  border-color: var(--line);
  background: rgba(229, 184, 75, 0.06);
}
.calc-metric span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; }
.calc-metric strong { display: block; font-family: var(--font-tech); font-size: 1.25rem; color: #fff; margin-top: 3px; }
.calc-metric.highlight strong { color: var(--accent-bright); }

/* ---- Interactive 8-Hero Showcase Stage (Classes & Guides) ---- */
.job-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090c14;
  min-height: 490px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
}

.job-stage-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transition: background-image 0.35s ease;
  filter: saturate(1.1);
}

.job-stage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.94) 0%, rgba(7, 9, 15, 0.76) 48%, rgba(7, 9, 15, 0.42) 100%);
}

.job-stage-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: 36px 76px 32px;
  min-height: 490px;
}

.job-info { max-width: 560px; }

.job-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 10px 0 6px;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.job-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.job-stat-pill {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.job-stat-pill small { display: block; font-size: 0.69rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.job-stat-pill strong { display: block; font-size: 0.88rem; color: var(--accent-bright); margin-top: 2px; }

.job-art-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 420px;
  position: relative;
}

.job-art-wrap img {
  max-height: 410px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.78));
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.job-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(9, 12, 20, 0.86);
  color: var(--accent-bright);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.job-arrow:hover { background: rgba(229, 184, 75, 0.2); transform: translateY(-50%) scale(1.06); }
.job-prev { left: 16px; }
.job-next { right: 16px; }

.job-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.job-dot {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 17, 26, 0.82);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: var(--font-body);
}
.job-dot:hover { color: #fff; border-color: var(--line); }
.job-dot.active {
  background: rgba(229, 184, 75, 0.18);
  border-color: var(--line-strong);
  color: var(--accent-bright);
}

/* ---- Siege / PvP Banner ---- */
.woe-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 28px;
  background: linear-gradient(125deg, rgba(16, 12, 18, 0.94), rgba(10, 14, 24, 0.92));
  margin-bottom: 20px;
}

.woe-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/skyblade/img/siege-bg.jpg') center/cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
}

.woe-banner > * { position: relative; z-index: 2; }

/* ---- Modal & Toast ---- */
.x-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.x-modal-bg.open { display: flex; }

.x-modal {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #0d111b;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.x-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.x-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.x-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  background: #101522;
  border: 1px solid var(--line-strong);
  color: var(--accent-bright);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.x-toast.show { transform: translateY(0); opacity: 1; }

/* ---- Footer ---- */
.x-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 20px 36px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .grid-2, .grid-3, .grid-4, .job-stage-inner { grid-template-columns: 1fr; }
  .job-stage-inner { padding: 28px 56px; }
  .job-art-wrap { height: 320px; }
  .job-art-wrap img { max-height: 310px; }
  .x-subnav { top: 44px; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 58px 36px 1fr 36px 64px; gap: 5px; }
  .calc-out-grid { grid-template-columns: 1fr; }
  .job-stage-inner { padding: 24px 20px; }
  .job-arrow { top: 20px; transform: none; }
  .job-arrow:hover { transform: scale(1.06); }
}
