:root {
  --bg-deep: #090b10;
  --bg-panel: #11151f;
  --bg-card: #161b28;
  --bg-card-hover: #1d2436;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(245, 194, 66, 0.45);
  --gold: #f5c242;
  --gold-bright: #ffd966;
  --horde: #ef4444;
  --alliance: #38bdf8;
  --epic: #c084fc;
  --green: #22c55e;
  --orange: #fb923c;
  --text-main: #f3f5f9;
  --text-muted: #9ca6ba;
  --font-ui: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-ui);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* ==================== TOP NAVIGATION BAR ==================== */
.topbar {
  height: 62px;
  background: linear-gradient(180deg, #161b26 0%, #0e121a 100%);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 16px;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 25%, #ffd966, #b47b12 75%);
  border: 2px solid #ffe89e;
  color: #151006;
  font-weight: 900;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(245, 194, 66, 0.45);
}

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.brand-title span {
  color: var(--gold);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Main Tabs */
.main-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.main-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.main-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.main-tab.active {
  background: linear-gradient(180deg, rgba(245, 194, 66, 0.22), rgba(245, 194, 66, 0.08));
  color: var(--gold-bright);
  border-color: var(--border-gold);
  box-shadow: 0 2px 10px rgba(245, 194, 66, 0.15);
}

.tab-ico {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tab-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: #22c55e;
  color: #041309;
}

.tab-badge.gold {
  background: var(--gold);
  color: #1a1200;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s ease;
}

.action-btn img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(245, 194, 66, 0.5);
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.resource-quick-btn {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(22, 27, 40, 0.9));
}

.camp-quick-btn {
  border-color: rgba(192, 132, 252, 0.45);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.16), rgba(22, 27, 40, 0.9));
}

.presentation-btn {
  border-color: rgba(239, 68, 68, 0.45);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
}

.exit-presentation-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 999;
  background: rgba(17, 21, 31, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

body.presentation-mode .topbar,
body.presentation-mode .map-sidebar {
  display: none !important;
}

body.presentation-mode .exit-presentation-btn {
  display: flex;
}

/* ==================== VIEWS ==================== */
.view-section {
  display: none;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.view-section.active {
  display: flex;
}

/* ==================== MAP SIDEBAR ==================== */
.map-sidebar {
  width: 350px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-block {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-block.compact {
  padding: 10px 14px;
}

.block-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.block-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.block-label-row .block-label {
  margin-bottom: 0;
}

.coord-pill {
  font-family: Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(245, 194, 66, 0.14);
  border: 1px solid rgba(245, 194, 66, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

.mini-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* Zone Switcher */
.zone-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.zone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.zone-btn img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.zone-btn-info strong {
  display: block;
  font-size: 13.5px;
}

.zone-btn-info span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.zone-btn.horde.active {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.24), rgba(22, 27, 40, 0.95));
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.22);
}

.zone-btn.alliance.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.24), rgba(22, 27, 40, 0.95));
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

/* View Mode Switcher */
.view-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mode-btn {
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mode-btn.active {
  background: rgba(245, 194, 66, 0.16);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* Filter Chips */
.filter-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
  color: var(--text-muted);
  transition: all 0.14s ease;
}

.filter-chip:not(.active) {
  opacity: 0.42;
}

.filter-chip.active {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.new-gather { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot.gather { background: #10b981; }
.dot.craft { background: #f59e0b; }
.dot.camp { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.dot.auction { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.dot.class { background: #38bdf8; }
.dot.nodes { background: #a3e635; }

.chip-name {
  flex: 1;
  font-weight: 600;
}

.chip-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.chip-tag.camp {
  background: rgba(192, 132, 252, 0.22);
  color: #d8b4fe;
}

/* Preset Routes */
.preset-routes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preset-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--gold);
  background: rgba(245, 194, 66, 0.14);
  color: var(--gold-bright);
}

/* POI Search & List */
.list-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: none;
}

.search-wrap input {
  width: 100%;
  background: #0b0e15;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
  margin-bottom: 8px;
}

.search-wrap input:focus {
  border-color: var(--gold);
}

.poi-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
}

.poi-list::-webkit-scrollbar {
  width: 5px;
}
.poi-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.poi-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
}

.poi-item:hover,
.poi-item.selected {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
}

.poi-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.poi-item-body {
  flex: 1;
  min-width: 0;
}

.poi-item-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-item-coord {
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ==================== MAP STAGE & VIEWPORT ==================== */
.map-stage {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #121722 0%, #07090d 100%);
  overflow: hidden;
}

.zone-hud-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(13, 17, 26, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.zone-hud-banner img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--gold);
}

.hud-zone-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--gold-bright);
}

.hud-zone-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Zoom Controls */
.map-zoom-controls {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 26, 0.88);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.zoom-btn.wide {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
}

.zoom-btn.active {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.zoom-level {
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  min-width: 46px;
  text-align: center;
  color: var(--gold);
}

/* Map Viewport & World */
.map-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.map-viewport.dragging {
  cursor: grabbing;
}

.map-viewport.drawing-cursor {
  cursor: crosshair;
}

.map-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

.map-world img#mapImage {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: contrast(1.06) saturate(1.08);
}

.drawing-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.pins-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* ==================== MAP PINS ==================== */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--pin-scale, 1));
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 16;
  transition: filter 0.14s ease;
}

.map-pin:hover,
.map-pin.selected {
  z-index: 50;
  filter: brightness(1.18);
}

.pin-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  padding: 2px;
  background: #10141f;
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  transition: transform 0.14s ease;
}

.map-pin:hover .pin-icon-wrap,
.map-pin.selected .pin-icon-wrap {
  transform: scale(1.22);
}

.pin-icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
}

/* Category border & glow styles */
.map-pin.cat-new_gathering .pin-icon-wrap {
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.85), 0 4px 12px rgba(0,0,0,0.9);
}

.map-pin.cat-gathering .pin-icon-wrap {
  border-color: #10b981;
}

.map-pin.cat-crafting .pin-icon-wrap {
  border-color: #f59e0b;
}

.map-pin.cat-camping .pin-icon-wrap {
  border-color: #c084fc;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.9), 0 4px 12px rgba(0,0,0,0.9);
  width: 38px;
  height: 38px;
}

.map-pin.cat-auction .pin-icon-wrap {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.9), 0 4px 12px rgba(0,0,0,0.9);
  width: 38px;
  height: 38px;
}

.map-pin.cat-class_trainer .pin-icon-wrap {
  border-color: #38bdf8;
  width: 28px;
  height: 28px;
}

.map-pin.cat-nodes .pin-icon-wrap {
  border-color: #a3e635;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.map-pin.cat-nodes .pin-icon-wrap img {
  border-radius: 50%;
}

.pin-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  background: #22c55e;
  color: #041309;
  border: 1px solid #041309;
  letter-spacing: 0.3px;
}

.pin-badge.camp {
  background: #c084fc;
  color: #170629;
}

.pin-badge.gold {
  background: #fbbf24;
  color: #1f1400;
}

.pin-label {
  margin-top: 4px;
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pin-label .pin-coord {
  color: var(--gold-bright);
  font-family: Consolas, monospace;
  font-size: 10.5px;
}

body.hide-pin-labels .pin-label {
  display: none;
}

body.hide-pin-labels .map-pin:hover .pin-label,
body.hide-pin-labels .map-pin.selected .pin-label {
  display: flex;
}

/* ==================== DRAWING TOOLBAR ==================== */
.drawing-toolbar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  background: rgba(14, 18, 28, 0.94);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75);
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.draw-tool,
.draw-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.draw-tool:hover,
.draw-action:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.draw-tool.active {
  background: linear-gradient(180deg, rgba(245, 194, 66, 0.26), rgba(245, 194, 66, 0.1));
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(245, 194, 66, 0.25);
}

.draw-action.danger:hover {
  border-color: #ef4444;
  color: #f87171;
}

.tool-divider {
  width: 1px;
  height: 26px;
  background: var(--border-subtle);
}

.color-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.14s ease;
}

.color-swatch.active {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 0 10px var(--swatch);
}

/* ==================== POI INSPECTOR CARD ==================== */
.poi-inspector {
  position: absolute;
  top: 66px;
  right: 16px;
  width: 370px;
  max-height: calc(100% - 150px);
  overflow-y: auto;
  background: rgba(17, 21, 31, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
  z-index: 35;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: none;
}

.poi-inspector.open {
  display: block;
}

.inspector-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 26px;
}

.inspector-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid var(--gold);
}

.inspector-title {
  font-size: 16px;
  font-weight: 800;
}

.inspector-role {
  font-size: 12.5px;
  color: var(--gold-bright);
  font-weight: 600;
}

.inspector-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-cell {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
}

.meta-cell span {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.meta-cell strong {
  font-size: 13px;
  color: var(--text-main);
}

.inspector-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #dbe2f0;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  padding: 9px 11px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.inspector-way-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(245, 194, 66, 0.14);
  color: var(--gold-bright);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
}

.inspector-way-btn:hover {
  background: rgba(245, 194, 66, 0.25);
}

/* ==================== SCROLLABLE SUB-VIEWS ==================== */
.content-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  max-width: 1520px;
  margin: 0 auto;
  width: 100%;
}

.wow-icon {
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.wow-icon.lg { width: 46px; height: 46px; }
.wow-icon.xl { width: 60px; height: 60px; }
.wow-icon.epic-border { border-color: #c084fc; box-shadow: 0 0 18px rgba(192, 132, 252, 0.5); }
.wow-icon.gold-border { border-color: var(--gold); box-shadow: 0 0 18px rgba(245, 194, 66, 0.4); }

/* Camping Hero Grid */
.camp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.camp-spotlight-card,
.campfire-mechanics-card {
  background: linear-gradient(145deg, #171c2b 0%, #10141f 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.campfire-mechanics-card {
  border-color: var(--border-gold);
}

.spotlight-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(192, 132, 252, 0.22);
  color: #e9d5ff;
  margin-bottom: 12px;
}

.spotlight-badge.gold {
  background: rgba(245, 194, 66, 0.22);
  color: var(--gold-bright);
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.spotlight-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.tag-pill.lw { color: #fcd34d; background: rgba(245, 158, 11, 0.18); }
.tag-pill.cd { color: #93c5fd; background: rgba(59, 130, 246, 0.18); }
.tag-pill.xp { color: #d8b4fe; background: rgba(192, 132, 252, 0.22); }

.spotlight-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.spotlight-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rule-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.rule-box strong {
  display: block;
  font-size: 12px;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.rule-box span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Mechanics Card */
.mechanics-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.mechanics-header h3 {
  font-size: 18px;
}

.mechanics-header span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.mechanics-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.mechanics-steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #171100;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mechanics-steps strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.mechanics-steps p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.combo-banner {
  background: rgba(245, 194, 66, 0.1);
  border: 1px solid rgba(245, 194, 66, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.combo-banner strong {
  color: var(--gold-bright);
}

/* Section Title Bar */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title-bar h3 {
  font-size: 19px;
}

.section-title-bar p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.prof-filter-tabs,
.res-filter-pills {
  display: flex;
  gap: 6px;
}

.pf-btn,
.rf-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.pf-btn.active,
.rf-pill.active {
  background: rgba(245, 194, 66, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Camp Objects Grid */
.camp-objects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.camp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 16px;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.camp-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.camp-card.featured {
  border-color: #c084fc;
  background: linear-gradient(160deg, rgba(192, 132, 252, 0.13), var(--bg-card));
}

.camp-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.camp-card-top img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 2px solid var(--gold);
}

.camp-card-title {
  font-size: 15.5px;
  font-weight: 800;
}

.camp-card-prof {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.camp-buff-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #bbf7d0;
  font-weight: 600;
}

.camp-details-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.camp-details-list div strong {
  color: var(--text-main);
}

.fold {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.fold.open {
  border-color: var(--border-gold);
}

.fold-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.fold-head img,
.fold-head .no-ico {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.fold-title {
  font-weight: 800;
  font-size: 15px;
}

.fold-sub {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.fold-chev {
  margin-left: auto;
  color: var(--text-muted);
}

.fold-body {
  display: none;
  padding: 0 14px 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.fold.open .fold-body {
  display: block;
}

.use-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.use-btn {
  background: #121826;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.use-btn.on {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.use-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
}

.src-line {
  margin-top: 8px;
  font-size: 11px;
  color: #7f8aa0;
}

.fold-body p {
  margin-bottom: 8px;
}

/* ==================== RESOURCES VIEW ==================== */
.resources-header-card {
  background: linear-gradient(145deg, #171c2b 0%, #10141f 100%);
  border: 1px solid var(--border-gold);
  border-radius: 15px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 20px;
}

.res-note {
  font-size: 14px;
  color: #d5deee;
  line-height: 1.4;
}

.res-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.res-search {
  flex: 1 1 240px;
  min-width: 200px;
  background: #0e121b;
  color: #f3ead4;
  border: 1px solid rgba(245, 194, 66, 0.55);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
}

.res-filter-pills {
  flex-wrap: wrap;
}

.video-table-card {
  overflow-x: auto;
}

.fold-title {
  color: #ffd100;
}

.res-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.res-header-left h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.res-header-left p {
  font-size: 13px;
  color: var(--text-muted);
}

.resources-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.pay-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
}

.pay-row img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 2px solid rgba(245, 194, 66, 0.55);
  flex-shrink: 0;
}

.pay-name {
  color: #ffd100;
  font-weight: 800;
  font-size: 14px;
}

.no-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  color: #ffd100;
  border: 2px solid rgba(245, 194, 66, 0.7);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 194, 66, 0.2), transparent 55%),
    linear-gradient(180deg, #2a2416, #12160f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.no-ico b { font-size: 16px; line-height: 1; }
.no-ico i { font-style: normal; font-size: 7px; line-height: 1.05; color: #f3e6b8; padding: 0 2px; }

.camp-answer,
.fish-block {
  background: #121722;
  border: 1px solid rgba(245, 194, 66, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.camp-answer h3,
.fish-block h3 {
  color: #ffd100;
  font-size: 18px;
  margin-bottom: 6px;
}

.camp-answer li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.35;
}

.class-btn {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(245, 194, 66, 0.28);
  border-radius: 10px;
  color: inherit;
  padding: 8px;
  margin: 6px 0;
  cursor: pointer;
}

.class-btn img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 2px solid rgba(245, 194, 66, 0.55);
}

.class-more {
  display: none;
  padding-left: 8px;
}

.class-slot.open .class-more {
  display: block;
}

.pick-line {
  background: rgba(245, 194, 66, 0.1);
  border: 1px solid rgba(245, 194, 66, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.new-pill {
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
}

#wowTip {
  position: fixed;
  z-index: 500;
  display: none;
  width: 280px;
  background: #0e1016;
  border: 1px solid #8a6a2f;
  border-radius: 3px;
  padding: 8px 10px 10px;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

#wowTip.show {
  display: block;
}

.tip-name {
  color: #ffd100;
  font-weight: 800;
  font-size: 15px;
}

.tip-kind {
  color: #9aa0a6;
  font-size: 12px;
  margin: 2px 0 6px;
}

.recipe { border: 1px solid rgba(245, 194, 66, 0.28); border-radius: 12px; margin: 8px 0; background: #121722; }
.recipe.open { border-color: rgba(245, 194, 66, 0.7); }
.recipe-head { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: transparent; color: inherit; border: 0; padding: 8px 10px; cursor: pointer; }
.recipe-head .out-ico img, .recipe-head .out-ico .no-ico { width: 48px; height: 48px; }
.recipe-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.steps { display: flex; gap: 6px; font-size: 12px; font-weight: 800; }
.steps .so { color: #ff8000; } .steps .sy { color: #ffd100; } .steps .sg { color: #1eff00; } .steps .sr { color: #9d9d9d; }
.made { color: #ffd100; font-weight: 800; min-width: 28px; }
.recipe-body { display: none; padding: 0 12px 12px 68px; }
.recipe.open .recipe-body { display: block; }
.reag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.reag { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.reag-ico { position: relative; width: 46px; height: 46px; }
.reag-ico img, .reag-ico .no-ico { width: 46px; height: 46px; }
.reag-ico b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; padding: 0 3px; background: #111; color: #fff; border: 1px solid #ffd100; border-radius: 6px; font-size: 11px; line-height: 14px; }
.reag-name { font-size: 11px; color: #ffd100; line-height: 1.15; }
.reag-need { font-size: 10px; color: #f3ead4; }
.chg-pill { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #7c4a12; color: #ffd100; font-size: 10px; font-weight: 800; }
.tip-src { margin-top: 6px; color: #8d8270; font-size: 11px; }
.tip-line {
  color: #f3ead4;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.16s ease;
}

.res-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.res-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.res-card-head img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  border: 2px solid var(--gold);
}

.res-card-name {
  font-size: 16px;
  font-weight: 800;
}

.res-card-ru {
  font-size: 12px;
  color: var(--text-muted);
}

.demand-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 194, 66, 0.2);
  color: var(--gold-bright);
}

.res-row {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.res-row span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Video Table */
.video-table-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.table-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card-header span {
  font-size: 12px;
  color: var(--text-muted);
}

.wow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.wow-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-bright);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.wow-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.wow-table tbody tr {
  cursor: pointer;
  transition: background 0.14s ease;
}

.wow-table tbody tr:hover,
.wow-table tbody tr.highlighted {
  background: rgba(245, 194, 66, 0.14);
}

.table-item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.table-item-cell img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--gold);
}

/* ==================== WAYLAID CRATES VIEW ==================== */
.crates-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.crates-hero-info,
.crates-payout-box {
  background: linear-gradient(145deg, #171c2b 0%, #10141f 100%);
  border: 1px solid var(--border-gold);
  border-radius: 15px;
  padding: 22px;
}

.crates-hero-info h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.crates-hero-info p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #dbe2f0;
  margin-bottom: 16px;
}

.crates-hubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hub-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
}

.hub-box.horde { border-color: rgba(239, 68, 68, 0.5); }
.hub-box.alliance { border-color: rgba(56, 189, 248, 0.5); }

.hub-box img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.hub-box strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}

.hub-box span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.crates-payout-box h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--gold-bright);
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 7px;
  font-size: 12.5px;
}

.payout-row.highlight {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.favor-val {
  color: var(--gold-bright);
}

.payout-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(245, 194, 66, 0.1);
  padding: 8px 10px;
  border-radius: 8px;
}

.crates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

/* ==================== QUICK MODAL OVERLAY ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.hidden {
  display: none;
}

.quick-modal {
  width: min(1080px, 95vw);
  max-height: 86vh;
  background: #121723;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.quick-modal-header h3 {
  font-size: 18px;
  color: var(--gold-bright);
}

.quick-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.poi-cost-brief {
  color: #f5c242;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 2px;
}

.cost-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 194, 66, 0.45);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  line-height: 1.4;
}

.cost-box strong { color: #ffd100; }

.prof-more {
  display: block;
  margin: 8px auto 24px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: #1a160c;
  color: #ffd100;
  font-weight: 800;
  cursor: pointer;
}

.prof-sort {
  width: auto;
  min-width: 190px;
  cursor: pointer;
}

.prof-sort option {
  background: #111722;
  color: #e8edf7;
}

body.notes-open .view-section { margin-right: 340px; }
body.presentation-mode .notes-panel { display: none !important; }
body.presentation-mode .view-section { margin-right: 0 !important; }

.notes-panel {
  position: fixed;
  top: 62px;
  right: 0;
  width: 340px;
  height: calc(100vh - 62px);
  z-index: 80;
  background: linear-gradient(180deg, #1a140c, #10141c);
  border-left: 1px solid rgba(245, 194, 66, 0.55);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(110%);
  transition: transform 0.2s ease;
  user-select: text;
}
body.notes-open .notes-panel { transform: none; }
.notes-head, .notes-actions { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.notes-head strong { color: #ffd100; font-size: 16px; }
.notes-panel button, .notes-panel input, .notes-panel textarea {
  font: inherit;
  color: #f3f5f9;
  background: #121820;
  border: 1px solid rgba(245, 194, 66, 0.35);
  border-radius: 8px;
}
.notes-panel button { cursor: pointer; padding: 6px 8px; color: #ffd100; font-weight: 700; }
.notes-title-label { display: flex; flex-direction: column; gap: 4px; color: #f5c242; font-size: 12px; font-weight: 700; }
.notes-title-label input, .note-text { width: 100%; padding: 8px; }
.note-text { min-height: 52px; resize: vertical; }
#notesList { overflow: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.note-card { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); }
.note-card.done { opacity: 0.55; }
.note-num { color: #ffd100; font-weight: 800; }
.note-tools { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.note-tools label { font-size: 12px; color: #f3e6b8; display: flex; gap: 4px; align-items: center; }
