:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: rgba(51, 65, 85, 0.6);
  --text: #f1f5f9;
  --muted: #b0bec9;
  --primary: #a5b4fc;
  --accent: #fcd34d;
  --success: #4ade80;
  --topbar-height: 56px;
  --content-max-width: 860px;
}
*, *::before, *::after { box-sizing: border-box; }
button { font-family: inherit; font-size: inherit; color: inherit; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  background-image: radial-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  margin: 0;
  padding: 0;
}
.hidden { display: none !important; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  height: 56px;
  display: block;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: 100%;
  display: flex !important;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}
.topbar-logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-logo h1,
.topbar-logo span {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: var(--text);
}
.topbar-nav {
  display: flex !important;
  align-items: center;
  gap: 4px;
  overflow: visible;
}
.nav-tab {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  white-space: nowrap;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
}
.nav-tab:hover {
  background: rgba(165, 180, 252, 0.08);
  color: var(--text);
}
.nav-tab.active {
  background: rgba(165, 180, 252, 0.15);
  color: var(--primary);
}
.nav-tab i, .nav-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============ NAV GROUPS & DROPDOWNS ============ */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-group-toggle {
  -webkit-appearance: none;
  appearance: none;
}
.nav-chevron {
  width: 10px !important;
  height: 10px !important;
  opacity: 0.35;
  transition: transform 0.2s, opacity 0.2s;
  margin-left: -3px;
}
.nav-group:hover .nav-chevron,
.nav-group.open .nav-chevron {
  opacity: 0.7;
}
.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  padding-top: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 60;
}
.nav-group.open .nav-dropdown {
  display: block;
  animation: dropdownFadeIn 0.15s ease-out;
}
@media (hover: hover) {
  .nav-group:hover .nav-dropdown {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
  }
  .nav-group:hover .nav-chevron {
    transform: rotate(180deg);
  }
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes mobileDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: rgba(165, 180, 252, 0.1);
  color: var(--text);
}
.nav-dropdown-item.active {
  color: var(--primary);
  background: rgba(165, 180, 252, 0.12);
}
.nav-dropdown-item i, .nav-dropdown-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ============ MAIN WRAPPER ============ */
#mainWrapper {
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
}

/* ============ CONTENT AREA ============ */
#contentArea {
  flex: 1;
}

/* ============ CONTENT CONTAINER ============ */
.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* ============ SECTION STICKY ZONE ============ */
.section-sticky-zone {
  position: sticky;
  top: var(--topbar-height);
  z-index: 40;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ============ CARD ============ */
.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============ SEARCH ============ */
.search-highlight { background: #fbbf24; color: #000; padding: 0 2px; border-radius: 2px; }
.craft-item-row { transition: background 0.15s; }
.craft-item-row:hover { background: rgba(165, 180, 252, 0.12) !important; }
.craft-item-row:active { background: rgba(165, 180, 252, 0.2) !important; }
.craft-item-row .craft-item-name { transition: color 0.15s; }
.craft-item-row:hover .craft-item-name { color: var(--primary); }
.craftable-material { transition: color 0.15s; cursor: pointer; }
.craftable-material:hover { color: var(--primary) !important; }
.craftable-block { transition: background 0.15s; cursor: pointer; }
.craftable-block:hover { background: rgba(165, 180, 252, 0.12) !important; }

/* ============ SOURCE TAGS ============ */
.source-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.source-tag i, .source-tag svg { width: 12px; height: 12px; }
.source-gather { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.source-craft { background: #818cf822; color: #c7d2fe; border: 1px solid #818cf833; }
.source-shop { background: #fbbf2422; color: #fde68a; border: 1px solid #fbbf2433; }
.source-drop { background: #ef444422; color: #fecaca; border: 1px solid #ef444433; }
.source-trade { background: #ec489922; color: #fbcfe8; border: 1px solid #ec489933; }

/* ============ MODAL ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
}
.modal.show { display: flex; }
.modal.show .modal-inner {
  animation: modalSlideIn 0.25s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content { max-height: 80vh; overflow-y: auto; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  color: var(--muted);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.modal-close i, .modal-close svg { width: 18px; height: 18px; }

/* ============ TIPS ============ */
.tip-content { color: var(--text); line-height: 1.7; }
.tip-content ul, .tip-content ol { padding-left: 1.25rem; margin: 0.25rem 0; }
.tip-content ul { list-style: disc; }
.tip-content ol { list-style: decimal; }
.tip-content li { margin: 0.2rem 0; }
.tip-content ul ul { list-style: circle; }
.tip-content table { border-collapse: collapse; }
.tip-content th { border-bottom: 1px solid var(--border); color: var(--muted); }
.tip-content td { border-bottom: 1px solid var(--border); color: var(--text); }
.tip-content p { margin: 0.25rem 0; }
.tip-content strong { color: #fff; }

/* ============ FILTER PILLS ============ */
.filter-btn {
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.filter-btn i, .filter-btn svg { width: 14px; height: 14px; }
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.filter-btn { flex-shrink: 0; }

/* ---- Filter tabs: horizontal scroll (single row) ---- */
.section-sticky-zone .flex.flex-wrap {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.section-sticky-zone .flex.flex-wrap::-webkit-scrollbar {
  display: none;
}

/* ============ TABLE ============ */
thead th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
tbody tr { transition: background 0.15s; }

/* ============ SEARCH INPUT ============ */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input-area {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-input-area > i, .search-input-area > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-input-area input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}
.search-input-area input:focus {
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.25);
  border-color: var(--primary);
}
.search-btn {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-btn:hover {
  background: #c7d2fe;
  box-shadow: 0 2px 8px rgba(165, 180, 252, 0.4);
}
.search-btn:active {
  transform: scale(0.97);
}
.search-btn i, .search-btn svg { width: 15px; height: 15px; }

/* ============ LOGO ============ */
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.35);
}
.logo-icon i, .logo-icon svg { width: 20px; height: 20px; color: white; }

/* ============ ANIMATIONS ============ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============ SECTION TITLE ============ */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* ============ NEWS ============ */
.news-block-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.news-block-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.news-block-header > i, .news-block-header > svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.news-more {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.news-more:hover { color: var(--primary); }

/* 링크 카드 그리드 */
.link-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 이벤트 가로 스크롤 */
.news-events-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 8px;
}
.news-events-grid::-webkit-scrollbar {
  height: 6px;
}
.news-events-grid::-webkit-scrollbar-track {
  background: transparent;
}
.news-events-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.news-event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 240px;
  max-width: 260px;
  flex-shrink: 0;
}
.news-event-card:hover {
  transform: translateY(-2px);
}
.news-event-thumb {
  width: 100%;
  aspect-ratio: 770 / 280;
  overflow: hidden;
  background: var(--bg);
}
.news-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-event-card:hover .news-event-thumb img {
  transform: scale(1.05);
}
.news-event-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 공지 + 업데이트 2열 */
.news-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 리스트 아이템 */
.news-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.news-list-item:hover {
  background: rgba(165, 180, 252, 0.08);
}
.news-list-title {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.news-list-date {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 뉴스 태그 */
.news-tag {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-tag-info { background: #3b82f622; color: #93c5fd; border: 1px solid #3b82f633; }
.news-tag-maintenance { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.news-tag-done { background: #6b728022; color: #9ca3af; border: 1px solid #6b728033; }
.news-tag-product { background: #f59e0b22; color: #fcd34d; border: 1px solid #f59e0b33; }
.news-tag-ongoing { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.news-tag-past { background: #6b728022; color: #9ca3af; border: 1px solid #6b728033; }
.news-tag-update { background: #8b5cf622; color: #c4b5fd; border: 1px solid #8b5cf633; }
.news-tag-devnote { background: #06b6d422; color: #67e8f9; border: 1px solid #06b6d433; }
.news-tag-default { background: #33415522; color: var(--muted); border: 1px solid #33415533; }

/* ============ RESPONSIVE ============ */
/* Mobile: < 768px — compact top nav (6 groups) */
@media (max-width: 767px) {
  :root {
    --topbar-height: 48px;
  }
  html {
    overflow-x: hidden;
  }
  .link-cards-grid {
    grid-template-columns: 1fr;
  }
  .news-event-card {
    min-width: 200px;
    max-width: 220px;
  }
  .news-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ---- Compact topbar ---- */
  .topbar {
    height: var(--topbar-height);
  }
  .topbar-inner {
    gap: 6px;
    padding: 0 10px;
  }
  .topbar-logo h1,
  .topbar-logo span {
    display: none !important;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .logo-icon i, .logo-icon svg {
    width: 16px;
    height: 16px;
  }

  /* ---- Compact nav (horizontal scroll) ---- */
  .topbar-nav {
    flex: 1;
    min-width: 0;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .topbar-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-tab {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
    border-radius: 6px;
    flex-shrink: 0;
    flex-direction: row;
  }
  .nav-tab span {
    white-space: nowrap;
    word-break: keep-all;
  }
  .nav-group {
    flex-shrink: 0;
  }
  .nav-tab i, .nav-tab svg {
    width: 14px;
    height: 14px;
  }
  .nav-chevron {
    display: none;
  }

  /* ---- Mobile dropdown: fixed below topbar ---- */
  .nav-dropdown {
    position: fixed;
    top: var(--topbar-height);
    left: 12px;
    right: 12px;
    transform: none;
    min-width: auto;
    border-radius: 12px;
  }
  .nav-group.open .nav-dropdown {
    animation: mobileDropdownFadeIn 0.15s ease-out;
  }

  /* ---- Content ---- */
  .content-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* ---- Section zone: NOT sticky on mobile, scrolls with content ---- */
  .section-sticky-zone {
    position: static;
  }
  .section-sticky-zone .content-container {
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }
  .section-sticky-zone .section-title {
    font-size: 1.1rem;
    margin-bottom: 4px !important;
  }
  .section-sticky-zone .search-wrap {
    margin-top: 8px !important;
  }
  .section-sticky-zone .search-input-area input {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .section-sticky-zone .search-btn {
    padding: 8px 14px;
  }

  /* ---- Filter tabs: mobile size adjustments ---- */
  .section-sticky-zone .flex.flex-wrap {
    gap: 6px !important;
    padding-bottom: 2px;
  }
  .section-sticky-zone .filter-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
}

/* Tablet: 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .news-event-card {
    min-width: 220px;
    max-width: 240px;
  }
  .nav-tab {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* ============ CLASS PAGE ============ */
/* Tier Badge */
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tier-S { background: #ef444433; color: #fca5a5; border: 1px solid #ef444455; }
.tier-A { background: #f59e0b33; color: #fcd34d; border: 1px solid #f59e0b55; }
.tier-B { background: #3b82f633; color: #93c5fd; border: 1px solid #3b82f655; }
.tier-C { background: #6b728033; color: #d1d5db; border: 1px solid #6b728055; }

/* Role Tag */
.role-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.role-tag i, .role-tag svg { width: 12px; height: 12px; }
.role-tanker { background: #3b82f622; color: #93c5fd; border: 1px solid #3b82f633; }
.role-dealer { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.role-healer { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.role-supporter { background: #a855f722; color: #d8b4fe; border: 1px solid #a855f733; }

/* Recommended Badge */
.recommend-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #22c55e22;
  color: #86efac;
  border: 1px solid #22c55e33;
  font-weight: 600;
}

/* Class Card */
.class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.class-synergy {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.class-synergy i, .class-synergy svg { width: 14px; height: 14px; color: var(--accent); }

/* ============ RUNE PAGE ============ */
/* Grade Colors */
.grade-tag {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.grade-common { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.grade-rare { background: #3b82f622; color: #93c5fd; border: 1px solid #3b82f633; }
.grade-elite { background: #a855f722; color: #d8b4fe; border: 1px solid #a855f733; }

.grade-epic { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.grade-legend { background: #f9731622; color: #fdba74; border: 1px solid #f9731633; }
.grade-mythic {
  background: linear-gradient(135deg, #ef444422, #f59e0b22, #22c55e22, #3b82f622, #a855f722);
  color: #e9d5ff;
  border: 1px solid #a855f744;
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #fcd34d;
  font-size: 0.75rem;
}
.star-rating .star-empty { color: #475569; }

/* Rune Info Card */
.rune-info-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.rune-info-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rune-info-title i, .rune-info-title svg { width: 16px; height: 16px; color: var(--accent); }

/* ============ ENCHANT ============ */
.enchant-season-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}
.enchant-season-0 { background: rgba(100, 116, 139, 0.3); color: #94a3b8; }
.enchant-season-1 { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.enchant-scroll-card {
  padding: 1rem;
  background: var(--bg);
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.enchant-scroll-card:hover { border-color: var(--border); }
.enchant-effect { color: var(--accent); font-weight: 600; font-size: 0.875rem; }
.enchant-special { color: var(--primary); font-size: 0.8rem; }
.enchant-source { font-size: 0.75rem; color: var(--muted); }
.enchant-amplify-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.enchant-amplify-table th { text-align: left; padding: 0.5rem; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.enchant-amplify-table td { padding: 0.5rem; border-bottom: 1px solid rgba(51, 65, 85, 0.3); }
.enchant-warning { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.8rem; color: #fca5a5; }

/* ============ GUIDE ============ */
.guide-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-impact-high { background: rgba(74, 222, 128, 0.15); color: #4ade80; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.guide-impact-mid { background: rgba(252, 211, 77, 0.15); color: #fcd34d; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.guide-impact-low { background: rgba(148, 163, 184, 0.15); color: #94a3b8; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.guide-stage-card {
  position: relative;
  padding: 1rem;
  padding-left: 2.5rem;
  background: var(--bg);
  border-radius: 0.75rem;
  border-left: 3px solid var(--primary);
}
.guide-stage-card::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
}
.guide-stage-level { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.guide-stage-power { font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.guide-stat-importance-high { color: #f87171; font-weight: 600; }
.guide-stat-importance-mid { color: #fcd34d; font-weight: 600; }
.guide-stat-importance-low { color: #94a3b8; font-weight: 600; }
.guide-milestone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.guide-milestone-level {
  background: var(--primary);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ============ RAID PAGE ============ */
/* Raid Card */
.raid-boss-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.raid-boss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.raid-boss-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.raid-boss-name {
  font-size: 1.1rem;
  font-weight: 700;
}
.raid-season-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.raid-season-0 { background: #6366f122; color: #a5b4fc; border: 1px solid #6366f133; }
.raid-season-1 { background: #f59e0b22; color: #fcd34d; border: 1px solid #f59e0b33; }
.raid-type-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Difficulty Tabs */
.diff-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.diff-tab {
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.diff-tab:hover { color: var(--text); }
.diff-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.diff-content { padding: 16px 20px; }
.diff-panel { display: none; }
.diff-panel.active { display: block; }

/* Raid Stat */
.raid-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
}
.raid-stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  min-width: 70px;
}
.raid-stat-value { font-weight: 600; }

/* Gimmick */
.gimmick-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.gimmick-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.gimmick-icon i, .gimmick-icon svg { width: 16px; height: 16px; }

/* Reward Tags */
.reward-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Raid Tip */
.raid-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.raid-tip i, .raid-tip svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ============ TRANSCEND PAGE ============ */
/* Transcend Stage Badge */
.transcend-stage {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.transcend-base { background: #f9731622; color: #fdba74; border: 1px solid #f9731633; }
.transcend-plus { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.transcend-plusplus {
  background: linear-gradient(135deg, #ef444422, #f59e0b22);
  color: #fde68a;
  border: 1px solid #f59e0b44;
}

/* Transcend Info Card */
.transcend-info-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.transcend-info-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.transcend-info-title i, .transcend-info-title svg { width: 16px; height: 16px; color: var(--accent); }

/* ============ PALADIN PAGE ============ */
/* Artifact Color Tags */
.artifact-color-tag {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.artifact-red { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.artifact-blue { background: #3b82f622; color: #93c5fd; border: 1px solid #3b82f633; }
.artifact-green { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.artifact-colorless { background: #6b728022; color: #d1d5db; border: 1px solid #6b728055; }
.artifact-gold {
  background: linear-gradient(135deg, #f59e0b22, #fbbf2422);
  color: #fde68a;
  border: 1px solid #f59e0b44;
}

/* ============ SKILL PAGE ============ */
/* Skill Build Card */
.skill-build-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.skill-build-card:last-child { border-bottom: none; }
.skill-priority-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.skill-priority-item i, .skill-priority-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.skill-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.skill-tag-pro { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.skill-tag-con { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }

/* ============ DUNGEON PAGE ============ */
/* Dungeon Type Tags */
.dungeon-type-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.dungeon-type-normal { background: #3b82f622; color: #93c5fd; border: 1px solid #3b82f633; }
.dungeon-type-abyss { background: #a855f722; color: #d8b4fe; border: 1px solid #a855f733; }

/* Dungeon Boss Card */
.dungeon-boss-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dungeon-boss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
